query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
get project commit count by pgid
public int getProjectCommitCount(int pgId) { int commitNumber = 0; String sql = "SELECT commitNumber from Project_Commit_Record a where (a.commitNumber = " + "(SELECT max(commitNumber) FROM Project_Commit_Record WHERE auId = ?));"; try (Connection conn = database.getConnection(); PreparedStatement preStmt = conn.prepareStatement(sql)) { preStmt.setInt(1, pgId); try (ResultSet rs = preStmt.executeQuery()) { while (rs.next()) { commitNumber = rs.getInt("commitNumber"); } } } catch (SQLException e) { e.printStackTrace(); } return commitNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCommitStatusbyPgid(int pgid) {\n int status = 0;\n String sql = \"SELECT status FROM Project_Commit_Record WHERE pgId=?\";\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgid);\n try (ResultSet rs = preStmt.executeQuery()) {\n while (rs.next()) {\n status = rs.getInt(\"status\");\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return status;\n }", "Integer getProjectCount( String key ){\n return developer.projects.size();\n }", "public int getProjectCount(){\n\t\treturn projectRepository.getProjectCount();\n\t}", "@Override\r\n\tpublic int selectProjectCount(String id) {\n\t\treturn dao.selectProjectCount(session,id);\r\n\t}", "@Override\r\n\tpublic int countCopProject(Map<String, Object> map) throws Exception {\n\t\treturn 0;\r\n\t}", "public int countByG_UT(long groupId, String urlTitle);", "int countByExample(ProjGroupExample example);", "public int getCommits() {\n return Integer.parseInt(getCellContent(COMMITS));\n }", "public int countByUUID_G(String uuid, long groupId);", "public int countByUUID_G(String uuid, long groupId);", "public int countByUUID_G(java.lang.String uuid, long groupId);", "public int getNumGruppoPacchetti();", "public int countByGroupId(long groupId);", "public int countByGroupId(long groupId);", "int getPackagesCount();", "public int countByG_S(long groupId, int status);", "long getCommitID() {\r\n return commit_id;\r\n }", "public String getProjectCommitRecordStatus(int pgId, int commitNumber) {\n String status = \"\";\n String query = \"SELECT status FROM Project_Commit_Record where pgId = ? and limit ?,1\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(query)) {\n preStmt.setInt(1, pgId);\n preStmt.setInt(2, commitNumber - 1);\n\n try (ResultSet rs = preStmt.executeQuery();) {\n if (rs.next()) {\n status = rs.getString(\"status\");\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return status;\n\n }", "public int numCommitVotes() {\n return commitVotes;\n }", "int getGroupCount();", "@Override\n\tpublic Long queryCountBiGid(int gid) {\n\t\treturn sDao.queryCountGid(gid);\n\t}", "int getVersionsCount();", "@Override\r\n\tpublic int countListProject(Map<String, Object> map) throws Exception {\n\t\treturn 0;\r\n\t}", "int getFHPackagesCount();", "public synchronized int getCommitNumber()\n\t{\n\t\treturn m_dbCommitNum;\n\t}", "public int countByG_UT_ST(long groupId, String urlTitle, int status);", "public Integer getProjectID() { return projectID; }", "public int countByP_L(long groupId, java.lang.String language);", "public int getProjectCommitRecordId(int pgId, int commitNumber) {\n String query = \"SELECT id FROM Project_Commit_Record where pgId = ? and commitNumber = ?\";\n int id = 0;\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(query)) {\n preStmt.setInt(1, pgId);\n preStmt.setInt(2, commitNumber);\n\n try (ResultSet rs = preStmt.executeQuery();) {\n if (rs.next()) {\n id = rs.getInt(\"id\");\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return id;\n }", "int getNumberOfImportedProject() {\n return allProjects().size();\n }", "public int getBadgeCount()\n\t{\n\t\tint result = 0;\n\t\tfor(int i = 0; i < m_badges.length; i++)\n\t\t\tif(m_badges[i] == 1)\n\t\t\t\tresult++;\n\t\treturn result;\n\t}", "public int getModuleArtifactsForDiffCount(BuildParams buildParams, String offset, String limit) {\n ResultSet rs = null;\n try {\n Object[] diffParams = getArtifactDiffCountParam(buildParams);\n String buildQuery = getArtifactDiffCount(buildParams);\n rs = jdbcHelper.executeSelect(buildQuery, diffParams);\n if (rs.next()) {\n return rs.getInt(1);\n }\n } catch (SQLException e) {\n log.error(e.toString());\n } finally {\n DbUtils.close(rs);\n }\n return 0;\n }", "public int getProjectId()\r\n\t{\r\n\t\treturn projectId;\r\n\t}", "public Integer getProjectId() {\n return projectId;\n }", "int getReprojectedModisId(String project, DataDate date) throws SQLException;", "public int getModuleDependencyForDiffCount(BuildParams buildParams, String offset, String limit) {\n ResultSet rs = null;\n String baseQuery;\n try {\n baseQuery = getBuildDependencyCountQuery(buildParams);\n Object[] diffParams = getBuildDependencyCountParam(buildParams);\n StringBuilder builder = new StringBuilder(baseQuery);\n if (buildParams.isExcludeInternalDependencies()) {\n // exclude internal dependencies\n builder.append(\"where dependency_name_id not in (select build_modules.module_name_id from build_modules \\n\" +\n \"inner join builds on builds.build_id = build_modules.build_id\\n\" +\n \" where builds.build_number=? and builds.build_date=?)\");\n }\n String buildQuery = builder.toString();\n rs = jdbcHelper.executeSelect(buildQuery, diffParams);\n if (rs.next()) {\n return rs.getInt(1);\n }\n } catch (SQLException e) {\n log.error(e.toString());\n } finally {\n DbUtils.close(rs);\n }\n return 0;\n }", "public Integer getProjectId() {\n return projectId;\n }", "public Integer getProjectId() {\n return projectId;\n }", "public int countByDataPackId(long dataPackId);", "public int getC_Project_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_Project_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "@Override\n\tpublic int contaGruppi () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tint numeroGruppi = 0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\"SELECT COUNT(ID) FROM GRUPPO\");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroGruppi = resultSet.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE contaGruppi utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroGruppi;\n\t}", "@Override\r\n\tpublic int countApplyProject(Map<String, Object> map) throws Exception {\n\t\treturn 0;\r\n\t}", "public JSONObject getProjectCommitRecord(int pgId) {\n String sql = \"SELECT * FROM Project_Commit_Record WHERE pgId=?\";\n JSONObject ob = new JSONObject();\n JSONArray array = new JSONArray();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n try (ResultSet rs = preStmt.executeQuery()) {\n while (rs.next()) {\n int statusId = rs.getInt(\"status\");\n StatusEnum statusEnum = csDb.getStatusNameById(statusId);\n int commitNumber = rs.getInt(\"commitNumber\");\n Date commitTime = rs.getTimestamp(\"time\");\n String commitStudent = rs.getString(\"commitStudent\");\n JSONObject eachHw = new JSONObject();\n eachHw.put(\"status\", statusEnum.getType());\n eachHw.put(\"commitNumber\", commitNumber);\n eachHw.put(\"commitTime\", commitTime);\n eachHw.put(\"commitStudent\", commitStudent);\n array.put(eachHw);\n }\n }\n ob.put(\"commits\", array);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return ob;\n }", "public long getProjectId() {\r\n return projectId;\r\n }", "@ApiModelProperty(value = \"Count of private projects.\")\n\t@JsonProperty(\"privateProjectCount\")\n\tpublic Integer getPrivateProjectCount() {\n\t\treturn privateProjectCount;\n\t}", "@Override\n\tpublic int countProjectTeam() {\n\t\treturn 0;\n\t}", "public int findByCount(Map<String, Object> map) {\n\treturn projectmapper.findByCount(map);\n}", "public Vector<String> getAIRelatedProjectCounts(Context context, String[] args) throws Exception {\n logger.debug(\"pss.slc.ui.SLCUIUtil:getAIRelatedProjectCounts:START\");\n Vector vProjectCountList = new Vector();\n try {\n\n HashMap programMap = (HashMap) JPO.unpackArgs(args);\n MapList mlCRObjectIdList = (MapList) programMap.get(\"objectList\");\n String strMode = \"CRSLCView\";\n\n int nCRCount = 0;\n Iterator itrCRObjectList = mlCRObjectIdList.iterator();\n while (itrCRObjectList.hasNext()) {\n\n Map mpCRObject = (Map) itrCRObjectList.next();\n String strCRObjectId = (String) mpCRObject.get(DomainConstants.SELECT_ID);\n\n DomainObject domCRObject = DomainObject.newInstance(context, strCRObjectId);\n StringList slAffectedItemList = domCRObject.getInfoList(context, \"from[\" + TigerConstants.RELATIONSHIP_PSS_AFFECTEDITEM + \"].to.id\");\n\n StringBuffer sbProjectIDList = new StringBuffer();\n StringBuffer sbProjectRelIDList = new StringBuffer();\n int nProjectCountPerCR = 0;\n\n Iterator itrAffectedItemList = slAffectedItemList.iterator();\n while (itrAffectedItemList.hasNext()) {\n String strAffectedItemObjectId = (String) itrAffectedItemList.next();\n DomainObject domAffectedItemObject = DomainObject.newInstance(context, strAffectedItemObjectId);\n\n pss.ecm.MultiProgramChange_mxJPO multiProjramObj = new pss.ecm.MultiProgramChange_mxJPO();\n MapList mlConnectedProgramProjects = multiProjramObj.getConnectedProjectFromAffectedItem(context, domAffectedItemObject, DomainObject.EMPTY_STRING, 0);\n // PCM2.0 TIGTK-10418: 9/10/2017:START\n if (mlConnectedProgramProjects != null) {\n // PCM2.0 TIGTK-10418: 9/10/2017:END\n int intProgramProjectCount = mlConnectedProgramProjects.size();\n for (int cntProg = 0; cntProg < intProgramProjectCount; cntProg++) {\n Map mProgProj = (Map) mlConnectedProgramProjects.get(cntProg);\n String strProgramProjectId = (String) mProgProj.get(\"id\");\n // RE:TIGTK-6897:19/9/2017:Start\n String strRelId = (String) mProgProj.get(DomainConstants.SELECT_RELATIONSHIP_ID);\n sbProjectRelIDList.append(strRelId);\n sbProjectRelIDList.append(\",\");\n // RE:TIGTK-6897:19/9/2017:End\n sbProjectIDList.append(strProgramProjectId);\n sbProjectIDList.append(\",\");\n nProjectCountPerCR++;\n }\n }\n }\n\n StringBuffer sbFormAction = new StringBuffer();\n // TIGTK-16067:16-07-2018:STARTS\n if (nProjectCountPerCR == 0) {\n sbFormAction.append(nProjectCountPerCR);\n } else {\n // TIGTK-16067:16-07-2018:ENDS\n sbFormAction.append(\"<input id='projectInput\");\n sbFormAction.append(nCRCount);\n sbFormAction.append(\"' type='hidden' value='\");\n sbFormAction.append(sbProjectIDList.toString());\n // RE:TIGTK-6897:19/9/2017:Start\n sbFormAction.append(\"'/><input id='projectRelInput\");\n sbFormAction.append(nCRCount);\n sbFormAction.append(\"' type='hidden' value='\");\n sbFormAction.append(sbProjectRelIDList.toString());\n // RE:TIGTK-6897:19/9/2017:End\n sbFormAction.append(\"'/><a onclick=\\\"showModalDialog('../enterprisechangemgt/PSS_ECMAffectedProjectSummary.jsp?selectedRowNo=\");\n sbFormAction.append(nCRCount);\n sbFormAction.append(\"&amp;mode=\");\n sbFormAction.append(strMode);\n // RE:TIGTK-6897:19/9/2017:Start\n sbFormAction.append(\"&amp;objectId=\");\n sbFormAction.append(strCRObjectId);\n // RE:TIGTK-6897:19/9/2017:End\n\n sbFormAction.append(\"&amp;program=PSS_enoECMChangeUtil:getProjectList', 800, 600, true)\\\">\");\n sbFormAction.append(nProjectCountPerCR);\n sbFormAction.append(\"</a>\");\n }\n vProjectCountList.add(sbFormAction.toString());\n nCRCount++;\n }\n\n } catch (Exception ex) {\n logger.error(\"Error in pss.slc.ui.SLCUIUtil:getAIRelatedProjectCounts:ERROR \", ex);\n throw ex;\n }\n return vProjectCountList;\n }", "int getTaskIdCount();", "private String getArtifactDiffCount(BuildParams buildParams) {\n String baseQuery;\n if (!buildParams.isAllArtifact()) {\n baseQuery = BuildQueries.MODULE_ARTIFACT_DIFF_COUNT;\n } else {\n baseQuery = BuildQueries.BUILD_ARTIFACT_DIFF_COUNT;\n }\n return baseQuery;\n }", "public int gid() { return gid; }", "int getGroupCountByStructureId(Integer structureId);", "public static int getCount()\n\t{\n\t\treturn projectileCount;\n\t}", "public static int getBadge(Context context) {\n int badgeCount = 0;\n Cursor cursor = null;\n\n try {\n // This is the content uri for the BadgeProvider\n Uri uri = Uri.parse(\"content://com.sec.badge/apps\");\n\n cursor = context.getContentResolver().query(uri, null, \"package IS ?\", new String[]{context.getPackageName()}, null);\n\n // This indicates the provider doesn't exist and you probably aren't running\n // on a Samsung phone running TWLauncher. This has to be outside of try/finally block\n if (cursor == null) {\n return -1;\n }\n\n if (!cursor.moveToFirst()) {\n // No results. Nothing to query\n return -1;\n }\n\n do {\n String pkg = cursor.getString(1);\n String clazz = cursor.getString(2);\n badgeCount = cursor.getInt(3);\n Log.d(\"BadgeTest\", \"package: \" + pkg + \", class: \" + clazz + \", count: \" + String.valueOf(badgeCount));\n } while (cursor.moveToNext());\n } finally {\n if (cursor != null) cursor.close();\n }\n\n return badgeCount;\n }", "public int getProjectID() {\n return projectID;\n }", "public synchronized void updateCommitNumber()\n\t{\n\t\tm_dbCommitNum++;\n\t}", "public int countByUUID_G(java.lang.String uuid, long groupId)\n throws com.liferay.portal.kernel.exception.SystemException;", "public int countByUUID_G(java.lang.String uuid, long groupId)\n throws com.liferay.portal.kernel.exception.SystemException;", "int getSourceFileCount();", "int getCompletionsCount();", "public int countByG_lN(long groupId, java.lang.String layerName)\n throws com.liferay.portal.kernel.exception.SystemException;", "public int commitcount(int AID) {\n\t\treturn acmapper.commitcount(AID);\n\t}", "public JSONObject getLastProjectCommitRecord(int pgId) {\n String sql = \"SELECT * from Project_Commit_Record a where (a.commitNumber = \"\n + \"(SELECT max(commitNumber) FROM Project_Commit_Record WHERE pgId = ?));\";\n JSONObject ob = new JSONObject();\n JSONArray array = new JSONArray();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n try (ResultSet rs = preStmt.executeQuery()) {\n\n int statusId = rs.getInt(\"status\");\n StatusEnum statusEnum = csDb.getStatusNameById(statusId);\n int commitNumber = rs.getInt(\"commitNumber\");\n Date commitTime = rs.getTimestamp(\"time\");\n String commitStudent = rs.getString(\"commitStudent\");\n JSONObject eachHw = new JSONObject();\n eachHw.put(\"status\", statusEnum.getType());\n eachHw.put(\"commitNumber\", commitNumber);\n eachHw.put(\"commitTime\", commitTime);\n eachHw.put(\"commitStudent\", commitStudent);\n array.put(eachHw);\n }\n ob.put(\"commits\", array);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return ob;\n }", "public Integer getProjectId() {\n\t\treturn projectId;\n\t}", "@ApiModelProperty(value = \"Count of public projects.\")\n\t@JsonProperty(\"publicProjectCount\")\n\tpublic Integer getPublicProjectCount() {\n\t\treturn publicProjectCount;\n\t}", "private String getBuildDependencyCountQuery(BuildParams buildParams) {\n String baseQuery;\n if (!buildParams.isAllArtifact()) {\n baseQuery = BuildQueries.MODULE_DEPENDENCY_DIFF_COUNT;\n } else {\n baseQuery = BuildQueries.BUILD_DEPENDENCY_DIFF_COUNT;\n }\n return baseQuery;\n }", "int getSrcIdCount();", "public int getPublishedModulesCounts(String buildName, String date) {\n ResultSet rs = null;\n String buildQuery = \"SELECT count(*) as cnt FROM build_modules\\n\" +\n \"left join builds on builds.build_id=build_modules.build_id \\n\" +\n \"where builds.build_number=? and builds.build_date=?\";\n try {\n rs = jdbcHelper.executeSelect(buildQuery,buildName,date);\n if (rs.next()) {\n return rs.getInt(1);\n }\n } catch (SQLException e) {\n log.error(e.toString());\n } finally {\n DbUtils.close(rs);\n }\n return 0;\n }", "public String getProjectno() {\r\n return projectno;\r\n }", "public int countByc_g(long groupId, long companyId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic int getCount() {\n\t\tString sql=\"SELECT count(*) FROM `tc_student` where project=\"+project;\n\t\tResultSet rs=mysql.query(sql);\n\t\ttry {\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO 自动生成的 catch 块\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\t}", "int commentsCount();", "int getUncommittedEventCount();", "long countByExample(CliStaffProjectExample example);", "public String countProjects(Map<String, Object> parameter) {\n return new SQL() {{\n SELECT(\"count(0)\");\n\n FROM(TABLE_NAME + \" p\");\n WHERE(\"p.id in \" +\n \"(select project_id from \"+ RELEATION_TABLE_NAME+\" where user_id=#{userId} \" +\n \"union select id as project_id from \"+ TABLE_NAME+\" where user_id=#{userId})\");\n\n Object searchVal = parameter.get(\"searchVal\");\n if(searchVal != null && StringUtils.isNotEmpty(searchVal.toString())){\n WHERE( \" p.name like concat('%', #{searchVal}, '%') \");\n }\n WHERE(\"p.flag = 1\");\n }}.toString();\n }", "public int getProjectileCount() {\n\t\treturn projectileCount;\n\t}", "Map<Project, JGitStatus> push(List<Project> projects, ProgressListener progressListener);", "@Override\n\tpublic int getOpenPRCount(String pullURL) {\n\t\t\n\t\treturn 0;\n\t}", "Map<Project, JGitStatus> commitChanges(List<Project> projects, String commitMessage, boolean isPushImmediately,\n ProgressListener progressListener);", "int getJarCount();", "public int getPackageCount() {\r\n return myPackages.size();\r\n }", "public String getProjId() {\n return projId;\n }", "public Number getProjectId() {\n return (Number) getAttributeInternal(PROJECTID);\n }", "int getUserQuestJobsCount();", "public NumberOfDependentProjectOnGitHub(GitHubDataFetcher fetcher) throws IOException {\n super(fetcher);\n }", "public static int countByTitle_G(long groupId, String title) {\n\t\treturn getPersistence().countByTitle_G(groupId, title);\n\t}", "com.google.protobuf.ByteString getProjectIdBytes();", "public String getProjectId() {\r\n return projectId;\r\n }", "public int getPropsDiffCount(BuildParams buildParams) {\n ResultSet rs = null;\n try {\n String baseQuery;\n Object[] diffParams = {buildParams.getCurrBuildNum(), buildParams.getCurrBuildDate(),\n buildParams.getCurrBuildNum(), buildParams.getCurrBuildDate(),\n buildParams.getComperedBuildNum(), buildParams.getComperedBuildDate()};\n String buildQuery = BuildQueries.BUILD_PROPS_COUNT;\n rs = jdbcHelper.executeSelect(buildQuery, diffParams);\n if (rs.next()) {\n return rs.getInt(1);\n }\n } catch (SQLException e) {\n log.error(e.toString());\n } finally {\n DbUtils.close(rs);\n }\n return 0;\n }", "int countByExample(UserOperateProjectExample example);", "public long getBuildPropsCounts(BuildParams buildParams) {\n ResultSet rs = null;\n try {\n Object[] diffParams = getBuildPropsParam(buildParams);\n String buildQuery = getPropsQueryCounts(buildParams);\n rs = jdbcHelper.executeSelect(buildQuery, diffParams);\n if (rs.next()) {\n return rs.getLong(1);\n }\n } catch (SQLException e) {\n log.error(e.toString());\n } finally {\n DbUtils.close(rs);\n }\n return 0;\n }", "public int get_count();", "public int countByGroupId(long groupId)\n throws com.liferay.portal.kernel.exception.SystemException;", "@Test\n\tpublic void test_increment_commits(){\n\t\tassertEquals(\"Initial commit number should be 1\", 1, test1.getCommitCount());\n\t\ttest1.incrementCommitCount();\n\t\tassertEquals(\"Number of Commit should be incremented\", 2, test1.getCommitCount());\n\t}", "@Override\n\tpublic int countByS_C(long groupId, String code) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_S_C;\n\n\t\tObject[] finderArgs = new Object[] { groupId, code };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_VCMSPORTION_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_S_C_GROUPID_2);\n\n\t\t\tboolean bindCode = false;\n\n\t\t\tif (code == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_S_C_CODE_1);\n\t\t\t}\n\t\t\telse if (code.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_S_C_CODE_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindCode = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_S_C_CODE_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(groupId);\n\n\t\t\t\tif (bindCode) {\n\t\t\t\t\tqPos.add(code);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public Long getProjectId() {\n return projectId;\n }", "public String getProjectId() {\n return projectId;\n }", "long getPackageid();", "long getPackageid();", "@Override\n\tpublic int countByUUID_G(String uuid, long groupId) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_G;\n\n\t\tObject[] finderArgs = new Object[] { uuid, groupId };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_PAPER_WHERE);\n\n\t\t\tboolean bindUuid = false;\n\n\t\t\tif (uuid == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_1);\n\t\t\t}\n\t\t\telse if (uuid.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindUuid = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_2);\n\t\t\t}\n\n\t\t\tquery.append(_FINDER_COLUMN_UUID_G_GROUPID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindUuid) {\n\t\t\t\t\tqPos.add(uuid);\n\t\t\t\t}\n\n\t\t\t\tqPos.add(groupId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}" ]
[ "0.72097373", "0.6727879", "0.6326183", "0.6220769", "0.6044316", "0.5843508", "0.5618758", "0.55959225", "0.55685633", "0.55685633", "0.55486363", "0.54852796", "0.54681027", "0.54681027", "0.5462715", "0.5461013", "0.544514", "0.54185617", "0.54146796", "0.5412097", "0.5405481", "0.53991467", "0.5396205", "0.53873914", "0.5334184", "0.53095853", "0.5241662", "0.52329904", "0.52168465", "0.51974887", "0.51746064", "0.5169989", "0.5157523", "0.5154742", "0.5137775", "0.51291066", "0.51250494", "0.51250494", "0.51234895", "0.51146775", "0.5107888", "0.50967467", "0.50904423", "0.5075938", "0.5069956", "0.5065238", "0.5054083", "0.5043395", "0.5036908", "0.5033715", "0.503019", "0.50296986", "0.5024919", "0.5020499", "0.5019771", "0.50110525", "0.49990165", "0.49990165", "0.49987695", "0.49940467", "0.49936357", "0.4991959", "0.49899283", "0.49887663", "0.4988041", "0.4975751", "0.4974167", "0.49705142", "0.4966829", "0.49649024", "0.4964726", "0.49382138", "0.49379596", "0.49239904", "0.4921392", "0.49203822", "0.49141195", "0.4912779", "0.4904407", "0.49031302", "0.4898498", "0.48897982", "0.48846206", "0.48811376", "0.48622927", "0.48594737", "0.48588508", "0.48540664", "0.48490033", "0.48467416", "0.48403686", "0.48361093", "0.48360822", "0.48320052", "0.48297465", "0.48252532", "0.48135093", "0.48106632", "0.48106632", "0.48098662" ]
0.76562715
0
delete built record of specific pgid
public void deleteProjectRecord(int pgId) { String sql = "DELETE FROM Project_Commit_Record WHERE pgid=?"; try (Connection conn = database.getConnection(); PreparedStatement preStmt = conn.prepareStatement(sql)) { preStmt.setInt(1, pgId); preStmt.executeUpdate(); } catch (SQLException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int deleteByPrimaryKey(GrpTagKey key);", "int deleteByPrimaryKey(GpPubgPlayer record);", "@Override\r\n\tpublic boolean deleteImageRecordBuildingInfo(Long id) {\n\t\treturn delete(get(id));\r\n\t}", "public boolean deleteBuild(int buildId);", "int deleteByPrimaryKey(SeGroupKey key);", "public void desister(int p_id,int g_id) throws RemoteException{\r\n\t\t\t\r\n\t\t\tString requete = \"DELETE FROM association Where a_idprojet = \" + p_id +\r\n\t\t\t\t\t\t\t \" AND a_idgroupe = \" + g_id;\r\n\t\t\tSystem.out.println(\"\\nrequete desister : \" + requete);\r\n\t\t\tdatabase.executeUpdate(requete);\r\n\t\t\t\r\n\t\t}", "public void deleteGroup(Group group);", "int deleteByExample(GrpTagExample example);", "int deleteByExample(ProjGroupExample example);", "void deleteDag(Long id);", "int deleteByPrimaryKey(PersonRegisterDo record);", "private void delete() {\n\n\t}", "@Override\n public int deleteByPrimaryKey(BorrowDO record){\n return borrowExtMapper.deleteByPrimaryKey(record);\n }", "@Override\n\tpublic void dbDelete(PreparedStatement pstmt) {\n\n\t\ttry \n\t\t{\n\t\t\tpstmt.setInt(1, getParent());\n\t\t\tpstmt.setInt(2, getParentType().getValue()); \t\t\t// owner_type\n\t\t\tpstmt.setString(3, this.predefinedPeriod.getKey() ); \t\t\t// period key\n\n\t\t\tpstmt.addBatch();\n\n\t\t} catch (SQLException e) {\n\t\t\tLogger logger = LogManager.getLogger(StateInterval.class.getName());\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\t\t\t\n\n\t}", "void delete(long id);", "void delete(long id);", "void delete(long id);", "void deleteBypostno(int postno);", "@Override\r\n\tpublic int deleteByPrimaryKey(Integer prid) {\n\t\treturn 0;\r\n\t}", "public void removeByDataPackId(long dataPackId);", "SpCharInSeq delete(Integer spcharinseqId);", "private void Delete(String[] p) {\n String classname = p[1];\n String attrname = p[2];\n int classid = 0;\n int attrid=0;\n String attrtype=null;\n for (ClassTableItem item:classt.classTable) {\n if (item.classname.equals(classname) && item.attrname.equals(attrname)) {\n classid = item.classid;\n attrid = item.attrid;\n attrtype = item.attrtype;\n break;\n }\n }\n //寻找需要删除的\n OandB ob2 = new OandB();\n for (Iterator it1 = topt.objectTable.iterator(); it1.hasNext();){\n ObjectTableItem item = (ObjectTableItem)it1.next();\n if(item.classid == classid){\n Tuple tuple = GetTuple(item.blockid,item.offset);\n if(Condition(attrtype,tuple,attrid,p[4])){\n //需要删除的元组\n OandB ob =new OandB(DeletebyID(item.tupleid));\n for(ObjectTableItem obj:ob.o){\n ob2.o.add(obj);\n }\n for(BiPointerTableItem bip:ob.b){\n ob2.b.add(bip);\n }\n\n }\n }\n }\n for(ObjectTableItem obj:ob2.o){\n topt.objectTable.remove(obj);\n }\n for(BiPointerTableItem bip:ob2.b) {\n biPointerT.biPointerTable.remove(bip);\n }\n\n }", "int deleteByPrimaryKey(Integer buildProcedureId);", "int deleteByPrimaryKey(Integer pmKeyId);", "void delete(long idToDelete);", "Result deleteGroup(String group);", "int deleteByPrimaryKey(Long idreg);", "void delete(K id);", "void delete(K id);", "public void delete(SmsAgendaGrupoPk pk) throws SmsAgendaGrupoDaoException;", "@Override\r\n\tpublic void DeletePackage(PackageJour pj) {\n\t\tem.remove(em.contains(pj) ? pj : em.merge(pj));\r\n\t}", "private void deleteJob(int floorNumber){\n jobs.remove(floorNumber);\n }", "int deleteByPrimaryKey(Long groupRightId);", "int deleteByPrimaryKey(String batchNo);", "public Process delete(int p){\n\t\tif (search(p) == -1){\n\t\tSystem.out.println(p);\n\t\t\tSystem.out.println(\"error: tried to delete nonexistent process\");\n\t\t\treturn new Process(0, 0, \"errorprocess\");\n\t\t}\n\t\tProcess output = this.table[search(p)].getValue();\n\t\tthis.table[search(p)] = null;\n\t\treturn output;\n\t\t\n\t}", "void deleteMataKuliah (int id);", "@Override\n\tpublic void delRec() {\n\t\t\n\t}", "void deleteDaftarhunianDtl(DaftarhunianDtl.MyCompositePK no) {\n }", "int deleteByExample(PmKeyDbObjExample example);", "void eliminar(PK id);", "int deleteByPrimaryKey(String maperId);", "int deleteByExample(OrgMemberRecordExample example);", "public void delete(Integer id) {\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tboolean flag = true;\r\n\t\ttry {\r\n\t\t\tconn = JDBCUtil.getConnection();\r\n\t\t\tString sql = \"delete from group_info where id=?\";\r\n\t\t\tpstmt = conn.prepareStatement(sql);\r\n\t\t\tpstmt.setInt(1, id);\r\n\t\t\tpstmt.executeUpdate();\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\t//throw new DAOException(e.getMessage(), e);\r\n\t\t} finally {\r\n\t\t\tJDBCUtil.close(null, pstmt, conn);\r\n\t\t}\r\n\r\n\t}", "int deleteByPrimaryKey(Short act_id);", "String deleteAggregator(String aggregatorId) throws RepoxException;", "int delete(long id);", "public void deleteJob(ConfigProperties cprop){\n\t\tjobs.remove(cprop.getProperty(\"PROJ.id\"));\n\t\tjlog.info(\"Delete Job \"+cprop.getProperty(\"PROJ.id\"));\n\t}", "public void deleteGroup(GroupUser group) {\n try{\n PreparedStatement s = sql.prepareStatement(\"DELETE FROM Groups WHERE groupName=? AND id=?;\");\n s.setString(1, group.getId());\n s.setInt(2, group.getIdNum());\n s.execute();\n\n s.close();\n } catch (SQLException e) {\n sqlException(e);\n }\n }", "int deleteByPrimaryKey(Long id_message_group);", "int deleteByPrimaryKey(RepStuLearningKey key);", "void deleteParameter(long id);", "int deleteByPrimaryKey(String ugId);", "public void delete(CrGrupoFormularioPk pk) throws CrGrupoFormularioDaoException;", "public abstract boolean deleteGame(int game_id) throws SQLException;", "int deleteByPrimaryKey(ApplicationDOKey key);", "@Override\n\tpublic void delete(DatabaseHandler db) {\n\t\tdb.deleteWork(this);\n\t\t\n\t}", "public void delete(UsStatePk pk) throws UsStateDaoException;", "int deleteByPrimaryKey(String samId);", "public void delete(K id);", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "public void deleteFileDescByFileGid(String fileGID) {\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_deleteFileDescByFileGid);\n\t\t\tps.setString(1, fileGID);\n\t\t\tps.executeUpdate();\n\t\t\t\n\t\t\tString query = \"DELETE FROM File WHERE FILEGID =\"+ fileGID+\")\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t}\n\n\t}", "@Override\n\tpublic void orphan(DBSet db, boolean asPack) \n\t{\n\t\tdb.getAddressPersonMap().removeItem(this.recipient.getAddress());\n\t\tdb.getPersonAddressMap().removeItem(this.key, this.recipient.getAddress());\n\n\t\t//UPDATE REFERENCE OF CREATOR\n\t\t// not needthis.creator.setLastReference(this.reference, db);\t\t\n\t\t//UPDATE REFERENCE OF RECIPIENT\n\t\tthis.recipient.removeReference(db);\n\t}", "public boolean deletePalvelupisteet();", "int deleteByPrimaryKey(String licFlow);", "void delete(int metaTagId);", "int deleteByPrimaryKey(String thingid);", "int deleteByExample(SeGroupExample example);", "public void eliminar(Long id) throws AppException;", "void delete( Long id );", "ArrayMap<Integer,DefinedProperty> relDelete( long relId );", "int deleteByPrimaryKey(String taxregcode);", "@Override\n public int deleteByPrimaryKey(Ares2ClusterDO record) {\n return ares2ClusterExtMapper.deleteByPrimaryKey(record);\n }", "public void deldrumentry(String idi) {\n\t\tourDatabase.delete(DATABASE_TABLE, Drum_RowID + \"=\" +idi, null);\n\t\t\t\n\t}", "void delData();", "public void remove(Record r) \n\t{\n\t\tfilled--; //reduce load factor\n\t\tif (r.placement != -1){ //if r's expected position isnt null\n\t\t\tRecord newRecord = new Record(\"deleted\"); //make a new record with value \"deleted\n\t\t\tnewRecord.placement = -2; //set position to -1 (as is standard for deleted\n\t\t\tTable[r.placement] = newRecord; //puts deleted slot in table\n\t\t}\t\n\t}", "@Override\n\tpublic String deleteByPrimaryKey(Familybranch record, Model m) throws Exception {\n\t\treturn null;\n\t}", "int deleteByPrimaryKey(Integer tpUid);", "void delete(int id);", "void delete(int id);", "public void delete(String so_cd);", "public void deleteRecord() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry\n\t\t{\n\t\t\tmyData.record.delete(background.getClient());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "int deleteByPrimaryKey(Integer actPrizeId);", "public void deleteEntry(int id) {\n\t\tString sql=\"delete from suppplierpayments where supplierpayId=\"+id+\"\"; \n\t template.update(sql); \n\t\t\n\t}", "public int delete( Conge conge ) ;", "int deleteByPrimaryKey(Long dictId);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);", "void delete(Long id);" ]
[ "0.6578889", "0.6395484", "0.62015796", "0.6175528", "0.61494404", "0.61289066", "0.59852505", "0.59786904", "0.59372044", "0.58927107", "0.58728665", "0.58308375", "0.5771483", "0.5771263", "0.57625294", "0.57625294", "0.57625294", "0.5761882", "0.57582283", "0.5728269", "0.57271713", "0.5717", "0.56729144", "0.5665899", "0.566305", "0.565964", "0.56371474", "0.5632324", "0.5632324", "0.5630956", "0.56238145", "0.56237394", "0.5616384", "0.5615286", "0.5608266", "0.56032", "0.55950296", "0.5593207", "0.5591025", "0.5588094", "0.5579425", "0.5568824", "0.5561305", "0.55594754", "0.5558248", "0.5552535", "0.55399287", "0.55359215", "0.55309063", "0.55306685", "0.5529714", "0.55272937", "0.5525831", "0.55139905", "0.5513917", "0.5513764", "0.5513187", "0.55125624", "0.5511515", "0.55080324", "0.5506847", "0.55026025", "0.5500738", "0.5498188", "0.54926145", "0.5489306", "0.5487288", "0.54857606", "0.5484151", "0.54819816", "0.54793787", "0.5477829", "0.54773957", "0.54762936", "0.5474457", "0.54737073", "0.5467188", "0.5465576", "0.5465576", "0.54606336", "0.54549366", "0.5448194", "0.5448029", "0.5446844", "0.5445334", "0.54448336", "0.54448336", "0.54448336", "0.54448336", "0.54448336", "0.54448336", "0.54448336", "0.54448336", "0.54448336", "0.54448336", "0.54448336", "0.54448336", "0.54448336", "0.54448336", "0.54448336" ]
0.692973
0
get Project_Commit_Status id by pgId
public int getCommitStatusbyPgid(int pgid) { int status = 0; String sql = "SELECT status FROM Project_Commit_Record WHERE pgId=?"; try (Connection conn = database.getConnection(); PreparedStatement preStmt = conn.prepareStatement(sql)) { preStmt.setInt(1, pgid); try (ResultSet rs = preStmt.executeQuery()) { while (rs.next()) { status = rs.getInt("status"); } } } catch (SQLException e) { e.printStackTrace(); } return status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getProjectCommitRecordStatus(int pgId, int commitNumber) {\n String status = \"\";\n String query = \"SELECT status FROM Project_Commit_Record where pgId = ? and limit ?,1\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(query)) {\n preStmt.setInt(1, pgId);\n preStmt.setInt(2, commitNumber - 1);\n\n try (ResultSet rs = preStmt.executeQuery();) {\n if (rs.next()) {\n status = rs.getString(\"status\");\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return status;\n\n }", "public int getProjectCommitRecordId(int pgId, int commitNumber) {\n String query = \"SELECT id FROM Project_Commit_Record where pgId = ? and commitNumber = ?\";\n int id = 0;\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(query)) {\n preStmt.setInt(1, pgId);\n preStmt.setInt(2, commitNumber);\n\n try (ResultSet rs = preStmt.executeQuery();) {\n if (rs.next()) {\n id = rs.getInt(\"id\");\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return id;\n }", "public JSONObject getProjectCommitRecord(int pgId) {\n String sql = \"SELECT * FROM Project_Commit_Record WHERE pgId=?\";\n JSONObject ob = new JSONObject();\n JSONArray array = new JSONArray();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n try (ResultSet rs = preStmt.executeQuery()) {\n while (rs.next()) {\n int statusId = rs.getInt(\"status\");\n StatusEnum statusEnum = csDb.getStatusNameById(statusId);\n int commitNumber = rs.getInt(\"commitNumber\");\n Date commitTime = rs.getTimestamp(\"time\");\n String commitStudent = rs.getString(\"commitStudent\");\n JSONObject eachHw = new JSONObject();\n eachHw.put(\"status\", statusEnum.getType());\n eachHw.put(\"commitNumber\", commitNumber);\n eachHw.put(\"commitTime\", commitTime);\n eachHw.put(\"commitStudent\", commitStudent);\n array.put(eachHw);\n }\n }\n ob.put(\"commits\", array);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return ob;\n }", "public int getProjectCommitCount(int pgId) {\n int commitNumber = 0;\n String sql = \"SELECT commitNumber from Project_Commit_Record a where (a.commitNumber = \"\n + \"(SELECT max(commitNumber) FROM Project_Commit_Record WHERE auId = ?));\";\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n try (ResultSet rs = preStmt.executeQuery()) {\n while (rs.next()) {\n commitNumber = rs.getInt(\"commitNumber\");\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return commitNumber;\n }", "public long getStatusId();", "public abstract long getStatusId();", "public JSONObject getLastProjectCommitRecord(int pgId) {\n String sql = \"SELECT * from Project_Commit_Record a where (a.commitNumber = \"\n + \"(SELECT max(commitNumber) FROM Project_Commit_Record WHERE pgId = ?));\";\n JSONObject ob = new JSONObject();\n JSONArray array = new JSONArray();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n try (ResultSet rs = preStmt.executeQuery()) {\n\n int statusId = rs.getInt(\"status\");\n StatusEnum statusEnum = csDb.getStatusNameById(statusId);\n int commitNumber = rs.getInt(\"commitNumber\");\n Date commitTime = rs.getTimestamp(\"time\");\n String commitStudent = rs.getString(\"commitStudent\");\n JSONObject eachHw = new JSONObject();\n eachHw.put(\"status\", statusEnum.getType());\n eachHw.put(\"commitNumber\", commitNumber);\n eachHw.put(\"commitTime\", commitTime);\n eachHw.put(\"commitStudent\", commitStudent);\n array.put(eachHw);\n }\n ob.put(\"commits\", array);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return ob;\n }", "long getCommitID() {\r\n return commit_id;\r\n }", "String getOldStatusId();", "java.lang.String getProjectId();", "public Integer getProjectID() { return projectID; }", "public int getStatusId() {\n return _statusId;\n }", "String getOrderStatusId();", "int getReprojectedModisId(String project, DataDate date) throws SQLException;", "public Integer getProjectId() {\n return projectId;\n }", "public String getStatusId() {\n return getProperty(Property.STATUS_ID);\n }", "private static String getCommitId(RevCommit m )\n\t{\n\t\treturn m.getId().abbreviate(10).name();\n\t}", "public void deleteProjectRecord(int pgId) {\n String sql = \"DELETE FROM Project_Commit_Record WHERE pgid=?\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n preStmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public Integer getProjectId() {\n return projectId;\n }", "public Integer getProjectId() {\n return projectId;\n }", "public int getProjectId()\r\n\t{\r\n\t\treturn projectId;\r\n\t}", "public long getProjectId() {\r\n return projectId;\r\n }", "public Project getProject(Long projectId);", "public int getJobStatus(int jNo);", "java.lang.String getBranchId();", "@NonNull\n public String getCommitId() {\n return this.commitId;\n }", "public Integer getProjectId() {\n\t\treturn projectId;\n\t}", "public long getDossierStatusId();", "public String getStatusId(Object object);", "public Long getProjectId() {\n return projectId;\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dmGtStatus.getPrimaryKey();\n\t}", "public int getProjectID() {\n return projectID;\n }", "@Override\n\tpublic long getId() {\n\t\treturn _dmGtStatus.getId();\n\t}", "public int getHC_JobDataChange_ID();", "StatusReplies selectByPrimaryKey(Integer id);", "public static int queryDbTransactionStatusToRefreshView(int rowid) {\n //\n mDbHelper = PointOfSaleDb.getInstance(context);\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\n\n String selection = \"_ROWID_\" + \" = ? \";\n String[] selectioinArgs = { String.valueOf(rowid) };\n\n // get the following columns:\n String[] tableColumns = { PointOfSaleDb.TRANSACTIONS_COLUMN_TX_STATUS};\n\n\n Cursor c = db.query(PointOfSaleDb.TRANSACTIONS_TABLE_NAME, tableColumns, selection, selectioinArgs, null, null, null);\n\n int status=TxStatus.PENDING;//default to pending\n if(c.moveToFirst()) {\n status = Integer.parseInt(c.getString(0));\n }\n\n return status;\n }", "Project selectByPrimaryKey(Long id);", "public String getProjectId() {\r\n return projectId;\r\n }", "public void Found_project_from_DATABASE(int id){\n print_pro();\n// return project;\n }", "public String getProjectId() {\n return projectId;\n }", "int getBomId();", "TParklotstatusFile selectByPrimaryKey(Integer parklotstatusid);", "int getReprojectedEtoId(String project, DataDate date) throws SQLException;", "public Status getStatus(int id) {\n\t\treturn null;\r\n\t}", "@Transient\n @JsonProperty(\"project\")\n public Long getProjectId() {\n if (project == null) {\n return 0L;\n } else {\n return project.getId();\n }\n }", "public Number getProjectId() {\n return (Number) getAttributeInternal(PROJECTID);\n }", "public int getC_Project_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_Project_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "int getReprojectedTrmmId(String project, DataDate date) throws SQLException;", "public String getProjectId() {\n\t\treturn projectId;\n\t}", "public String getIssueStatusName(int issueId)\n {\n return getIssueStatusName(issueId,\"\");\n }", "public String getProjId() {\n return projId;\n }", "UserOperateProject selectByPrimaryKey(String userOperateProjectId);", "public Commit getCommitById(int id) {\r\n for (Commit c : this.commmit) {\r\n if (c.getId() == id) {\r\n return c;\r\n }\r\n }\r\n return null;\r\n }", "public Integer getProstatusid() {\n return prostatusid;\n }", "com.google.protobuf.ByteString getProjectIdBytes();", "public int getStatusIdByName(String statusName) {\n\t\ttry {\n\n\t\t\tList<IssueStatus> statusList = redmineMng.getIssueManager().getStatuses();\n\t\t\tfor (Iterator<IssueStatus> iter = statusList.iterator(); iter.hasNext();) {\n\n\t\t\t\tIssueStatus issueStatus = iter.next();\n\t\t\t\tif (statusName.equals(issueStatus.getName())) {\n\t\t\t\t\treturn issueStatus.getId();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (RedmineException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\t}", "public Projects findByProjectID(int proj_id){\n\t\tString sql = \"select * from projects where proj_id = \"+proj_id;\n\t\treturn getJdbcTemplate().queryForObject(sql, new BeanPropertyRowMapper<Projects>(Projects.class));\n\t}", "public String getTrackingBranch(Project project);", "String labPlanId();", "public String getProjectId() {\n return getProperty(Property.PROJECT_ID);\n }", "public String retrieveLastTaskIdOfProject(Long projectId);", "public TransactionStatus getByOid(long _oid) \r\n {\r\n \r\n TransactionStatus ts = (TransactionStatus)currentSession().get(TransactionStatus.class, _oid);\r\n \r\n return ts;\r\n \r\n }", "public String getIdStatus() {\n return idStatus;\n }", "@Test\n\tpublic void getIdWithCommit() throws Exception {\n\t\tRepository repo = new FileRepository(testRepo);\n\t\tRevCommit commit = add(\"d1/f1.txt\", \"content\");\n\t\tassertNull(TreeUtils.getId(repo, commit, \"d2/f1.txt\"));\n\t\tassertNull(TreeUtils.getId(repo, commit, \"d1/f1.txt\"));\n\t\tObjectId treeId = TreeUtils.getId(repo, commit, \"d1\");\n\t\tassertNotNull(treeId);\n\t\tassertFalse(treeId.equals(commit.getTree()));\n\t\tassertNull(BlobUtils.getId(repo, commit, \"d1\"));\n\t\tassertFalse(treeId.equals(BlobUtils.getId(repo, commit, \"d1/f1.txt\")));\n\t}", "Project findProjectById(Long projectId);", "@Override\n\tpublic int getStatus(Integer id) {\n\t\tint status = taxTaskDao.getStatus(id);\n\t\treturn status;\n\t}", "long getSourceId();", "ProjGroup selectByPrimaryKey(Long id);", "@java.lang.Override\n public java.lang.String getProjectId() {\n java.lang.Object ref = projectId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n projectId_ = s;\n return s;\n }\n }", "public Project findByPrimaryKey(int id) throws ProjectDaoException {\n\t\tProject ret[] = findByDynamicSelect(SQL_SELECT + \" WHERE ID = ?\", new Object[] { new Integer(id) });\n\t\treturn ret.length == 0 ? null : ret[0];\n\t}", "Project getById(Long id);", "Integer obtenerEstatusPolizaGeneral(int idEstatusPolizaPago);", "String getId() throws RepositoryException;", "@Query(\"SELECT id FROM Projects t WHERE t.ownerId =:ownerId\")\n @Transactional(readOnly = true)\n Iterable<Integer> findProjectID(@Param(\"ownerId\")Integer userID);", "String getBbgGlobalId();", "public int Approvecomp(Long id) throws SQLException {\n\tLong idd=null;\r\n\trs=DbConnect.getStatement().executeQuery(\"select login_id from company where comp_id=\"+id+\"\");\r\n\tif(rs.next())\r\n\t{\r\n\t\tidd=rs.getLong(1);\r\n\t}\r\n\tSystem.out.println(idd);\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update login set status='approved' where login_id=\"+idd+\"\");\r\n\treturn i;\r\n\t\r\n}", "public java.lang.Object getProjectID() {\n return projectID;\n }", "private String calculateCostStatus(BigDecimal projectId) {\r\n log.debug(\"calculateCostStatus.START\");\r\n costDao = new CostDao();\r\n String costStatus = costDao.getCostStatus(projectId);\r\n if (costStatus != null) {\r\n if (costStatus.equals(\"1\"))\r\n return Constant.GOOD_STATUS;\r\n if (costStatus.equals(\"2\"))\r\n return Constant.NORMAL_STATUS;\r\n return Constant.BAD_STATUS;\r\n }\r\n return Constant.BLANK;\r\n\r\n }", "State findByPrimaryKey( int nIdState );", "Project findProjectById(String projectId);", "String getModuleId();", "public static String getHeadCommitId(@NotNull JSONObject jsonObject) {\n return jsonObject.getJSONObject(\"head_commit\").get(\"id\").toString();\n }", "SysId selectByPrimaryKey(String id);", "SysCode selectByPrimaryKey(String id);", "public Optional<Status> selectByIdStatut(int id){\n\treturn statusDao.findById(id);\n\t}", "int getStatementId();", "int getStatementId();", "int getStatementId();", "int getBId();", "public java.lang.String getProjectId() {\n java.lang.Object ref = projectId_;\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 projectId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "void setCommitID(long commit_id) {\r\n this.commit_id = commit_id;\r\n }", "public void setStatusId(long statusId);", "@Override\n\tpublic boolean updateTaskStatus(int id, String status) throws SQLException, ClassNotFoundException{\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 (updateTaskStatus)\");\n\t\t \n\t\t stmt = c.createStatement();\n\t ResultSet rs = stmt.executeQuery( \"SELECT * FROM task WHERE id=\"+id+\";\" );\n\t rs.next();\n\t \n\t if(rs.getString(\"status\").equals(status))\n\t {\n\t \t return false;\n\t }\n\t \n\t stmt = c.createStatement();\n\t \n\t String sql = \"UPDATE task SET status='\"+status+\"' WHERE id=\"+id+\";\";\n\t \n\t stmt.executeUpdate(sql);\n\t \n\t stmt.close();\n\t c.commit();\n\t c.close();\n\t \n\t logger.info(\"Task Status changed to planned\");\n\t\t \n\t return true;\n\t}", "public List<GLJournalApprovalVO> getProject(String OrgId, String ClientId, String projectId) {\n String sqlQuery = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n List<GLJournalApprovalVO> list = null;\n try {\n list = new ArrayList<GLJournalApprovalVO>();\n sqlQuery = \" SELECT C_PROJECT.C_PROJECT_ID AS ID,C_PROJECT.NAME FROM C_PROJECT WHERE AD_ORG_ID IN (\"\n + OrgId + \") \" + \" AND AD_CLIENT_ID IN (\" + ClientId + \") AND C_PROJECT_ID IN (\"\n + projectId + \") \";\n st = conn.prepareStatement(sqlQuery);\n rs = st.executeQuery();\n while (rs.next()) {\n GLJournalApprovalVO VO = new GLJournalApprovalVO();\n VO.setId(rs.getString(1));\n VO.setName(rs.getString(2));\n list.add(VO);\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return list;\n }", "public synchronized int getCommitNumber()\n\t{\n\t\treturn m_dbCommitNum;\n\t}", "public String jobOperatorQueryJobExecutionStatus(long key, String requestedStatus){\r\n\t\t\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement statement = null;\r\n\t\tResultSet rs = null;\r\n\t\tString status;\r\n\t\tObjectInputStream objectIn = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tconn = getConnection();\r\n\t\t\tstatement = conn.prepareStatement(\"select \" + requestedStatus + \" from executioninstancedata where id = ?\");\r\n\t\t\tstatement.setObject(1, key);\r\n\t\t\trs = statement.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tbyte[] buf = rs.getBytes(requestedStatus);\r\n\t\t\t\tif (buf != null) {\r\n\t\t\t\t\tobjectIn = new ObjectInputStream(new ByteArrayInputStream(buf));\r\n\t\t\t\t}\r\n\t\t\t\tstatus = (String) objectIn.readObject();\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tcleanupConnection(conn, rs, statement);\r\n\t\t}\r\n\t\t\r\n\t\t//return status;\r\n\t\treturn \"FIGURING OUT HOW TO GET A STRING FROM A BLOB\";\r\n\t}", "public int getAD_Tree_Project_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_Tree_Project_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "UploadStateRegDTO selectByPrimaryKey(Integer id);", "TrackerProjects getTrackerProjects(final Integer id);", "public abstract void setStatusId(long statusId);" ]
[ "0.76888734", "0.7161853", "0.6979626", "0.6968089", "0.65584874", "0.6271812", "0.6247926", "0.61093336", "0.60236543", "0.5992512", "0.59121335", "0.5894257", "0.5834116", "0.5814489", "0.5801639", "0.5739246", "0.5726008", "0.57129127", "0.5697746", "0.5697746", "0.569724", "0.56894505", "0.5671036", "0.56403863", "0.5609601", "0.5593326", "0.5589115", "0.55729425", "0.5571647", "0.5569338", "0.55070406", "0.5497533", "0.5478857", "0.5436483", "0.542728", "0.5414812", "0.54100865", "0.53960395", "0.53742445", "0.53488505", "0.53296787", "0.5319971", "0.5317791", "0.5307255", "0.52996975", "0.5296976", "0.5289387", "0.52865577", "0.5274322", "0.5256556", "0.5255075", "0.5231401", "0.52310133", "0.52299684", "0.5214376", "0.52104336", "0.51995033", "0.51985127", "0.51883876", "0.5182251", "0.5181029", "0.51803213", "0.51769096", "0.5170231", "0.5168058", "0.5165531", "0.5162459", "0.515638", "0.5149322", "0.5144699", "0.51439446", "0.51317775", "0.51275593", "0.5125779", "0.51253945", "0.5112815", "0.51118046", "0.5107643", "0.50989664", "0.50950575", "0.5091967", "0.5081325", "0.5078037", "0.5073594", "0.5073009", "0.5062457", "0.5062457", "0.5062457", "0.50585705", "0.50560814", "0.50446475", "0.50438017", "0.5042733", "0.50412494", "0.5022441", "0.50205743", "0.50182796", "0.5006337", "0.4994135", "0.498925" ]
0.78143907
0
Omitted for the purpose of this sample.
@Override public void verify(@NotNull LedgerTransaction tx) throws IllegalArgumentException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "private stendhal() {\n\t}", "private void addSampleData() {\r\n }", "@Override\n protected void setup() {\n }", "@Override\n public void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@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\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {\n\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n void init() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void setup() {\n }", "@Override\n public void setup() {\n }", "@Override public int describeContents() { return 0; }", "public void mo38117a() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\r\n\tpublic void init()\r\n\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\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n public void initialize() {\n \n }", "private void init() {\n\n\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void init() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\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\r\n\tprotected void processInit() {\n\r\n\t}", "@Override\n\tpublic void init() {\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void initialize() {\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}" ]
[ "0.63463485", "0.6227791", "0.6173956", "0.6150231", "0.6150231", "0.6150231", "0.6150231", "0.6150231", "0.6150231", "0.61386526", "0.6105178", "0.60873306", "0.6056974", "0.6025473", "0.60204667", "0.601142", "0.6009426", "0.6008717", "0.60044295", "0.60044295", "0.5997351", "0.5996105", "0.5994268", "0.5984883", "0.59580344", "0.5952236", "0.59509534", "0.59466136", "0.5929726", "0.59277976", "0.59245723", "0.59166807", "0.59166807", "0.59166807", "0.59166807", "0.59166807", "0.59081316", "0.5884399", "0.5883645", "0.5879463", "0.5879463", "0.58698076", "0.58569837", "0.58552885", "0.58467776", "0.58390546", "0.58390546", "0.58390546", "0.582928", "0.582928", "0.58286244", "0.5828613", "0.5825638", "0.5825638", "0.5818625", "0.58170086", "0.5814038", "0.58101726", "0.58101726", "0.58101726", "0.5808719", "0.5807806", "0.5807806", "0.5807806", "0.5807806", "0.5807806", "0.5807806", "0.5807375", "0.5798751", "0.57936317", "0.57894444", "0.57894444", "0.57806456", "0.57806456", "0.57793796", "0.57774097", "0.57762986", "0.57757413", "0.57736886", "0.57736886", "0.57736886", "0.57736886", "0.57736886", "0.57736886", "0.57736886", "0.57736886", "0.57736886", "0.57736886", "0.57683253", "0.57683253", "0.57672095", "0.57672095", "0.57672095", "0.5762205", "0.5762107", "0.57603675", "0.5755587", "0.5755587", "0.57495046", "0.5747256", "0.5747256" ]
0.0
-1
int containing the data /////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////// Sets the bitMap info from other given bitmap (it computes an logical OR with the two bit maps)
public void incorporateBitMapInfo(final BitMap otherFlags) { _bitMap |= otherFlags.getBitMap(); // logical OR }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createBitMap() {\n bitMap = bitMap.copy(bitMap.getConfig(), true);\n Canvas canvas = new Canvas(bitMap);\n Paint paint = new Paint();\n paint.setAntiAlias(true);\n paint.setColor(Color.BLACK);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth(4.5f);\n canvas.drawCircle(50, 50, 30, paint);\n winningBitMap = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas2 = new Canvas(winningBitMap);\n paint.setAntiAlias(true);\n paint.setColor(Color.GREEN);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas2.drawCircle(50, 50, 30, paint);\n bitMapWin = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas3 = new Canvas(bitMapWin);\n paint.setAntiAlias(true);\n paint.setColor(Color.MAGENTA);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas3.drawCircle(50, 50, 30, paint);\n bitMapCat = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas4 = new Canvas(bitMapCat);\n paint.setAntiAlias(true);\n paint.setColor(Color.DKGRAY);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas4.drawCircle(50, 50, 30, paint);\n }", "private void markBitmap(int frameNo){\n int bit = frameNo/32;\n int mask = frameNo%32;\n bitMap[bit] = bitMap[bit]|MASK[mask];\n }", "private int getIntegerValueByBitMap(LinkedHashMap<String, Integer> bitMap) {\r\n\t\r\n\tint identityInfoValue = 0;\r\n if(bitMap != null && bitMap.size() > 0) {\r\n \tStringBuilder sb = new StringBuilder();\r\n \t\r\n \tsb.append(bitMap.get(ProjectConstants.Asia)).append(bitMap.get(ProjectConstants.Korea)).append(bitMap.get(ProjectConstants.Europe))\r\n \t.append(bitMap.get(ProjectConstants.Japan)).append(bitMap.get(ProjectConstants.America));\r\n \r\n \tif(sb != null) {\r\n \t\t int num = Integer.parseInt(sb.toString().replaceFirst(\"^0+(?!$)\", \"\"));\r\n \t\t identityInfoValue = convertBinaryToDecimal(num);\r\n \t}\r\n }\r\n return identityInfoValue;\r\n}", "public GenericPair<HashMap<Pair, Integer>, HashMap<Integer, Pair>> mapBitextToInt(HashMap<Pair, Integer>sd_count){\n\t\tHashMap<Pair, Integer> index = new HashMap<Pair, Integer>();\n\t\tHashMap<Integer, Pair> biword = new HashMap<Integer, Pair>();\n\t\tint i = 0;\n\t\tfor (Pair pair : sd_count.keySet()){\n\t\t\tindex.put(pair, i);\n\t\t\tbiword.put(i, pair);\n\t\t\ti++;\n\t\t}\n\t\treturn new GenericPair<HashMap<Pair, Integer>, HashMap<Integer, Pair>>(index, biword);\n\t}", "private static void setBitAtGivenPositions(int pos1, int pos2) {\n\t\tlong temp1 = 1l << pos1;\n\t\tlong temp2 = 1l << pos2;\n\t\tlong result = temp1 | temp2;\n\t\tSystem.out.println(result);\n\t}", "public synchronized boolean compare(bitMap other) {\n\tfor (int i = 0; i < map.size(); i++) {\r\n\t if (other.getbitMap().get(i) == true && map.get(i) == false) {\r\n\t\treturn true;\r\n\t }\r\n\t}\r\n\treturn false;\r\n }", "private void bitToByte(Bitmap bmap) {\n\t\ttry {\n\t\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\t\tbmap.compress(Bitmap.CompressFormat.PNG, 100, bos);\n\t\t\tbytePhoto = bos.toByteArray();\n\t\t\tbos.close();\n\t\t} catch (IOException ioe) {\n\n\t\t}\n\t}", "public final void mo12410a(Map<String, String> map, Map<String, String> map2) {\n AppMethodBeat.m2504i(98681);\n HashMap hashMap = new HashMap();\n hashMap.putAll(map);\n hashMap.put(\"B59\", this.f1552p);\n if (this.f1561y) {\n hashMap.put(\"B85\", \"1\");\n }\n if (this.f15282c) {\n hashMap.put(\"B95\", \"1\");\n } else {\n hashMap.put(\"B96\", this.f1547C);\n }\n if (!this.f1562z) {\n hashMap.put(\"B23\", \"1\");\n }\n HashMap hashMap2 = new HashMap();\n hashMap2.putAll(map2);\n if (this.f15292m != 0) {\n hashMap2.put(\"B84\", this.f15292m);\n }\n hashMap2.put(\"B87\", this.f1545A);\n hashMap2.put(\"B88\", this.f1546B);\n hashMap2.put(\"B90\", this.f1549E.f1569g);\n hashMap2.put(\"B91\", this.f1549E.f1570h);\n hashMap2.put(\"B92\", this.f1549E.f1571i);\n hashMap2.put(\"B93\", this.f1549E.f1572j);\n hashMap2.put(\"B94\", this.f1549E.f1573k);\n if (!TextUtils.isEmpty(this.f15287h)) {\n hashMap2.put(\"B47\", this.f15287h);\n }\n if (!TextUtils.isEmpty(this.f1548D)) {\n hashMap2.put(\"B41\", this.f1548D);\n }\n int i = this.f1559w.f1540a != 0 ? this.f1559w.f1540a : this.f1559w.f1542c == 200 ? 0 : this.f1559w.f1542c;\n if (!this.f1555s || i == -4) {\n C24371es.m37719b(\"HLHttpDirect\", C46772bt.m88739c(), i, this.f1559w.f1541b, hashMap, hashMap2, this.f15288i);\n AppMethodBeat.m2505o(98681);\n return;\n }\n C24371es.m37717a(\"HLHttpDirect\", C46772bt.m88739c(), i, this.f1559w.f1541b, hashMap, hashMap2, this.f15288i);\n AppMethodBeat.m2505o(98681);\n }", "public void mo8098a(Bitmap bitmap, Bitmap bitmap2) {\n if (bitmap2 != null) {\n C2342x.m9083a((View) this, (Drawable) new BitmapDrawable(getContext().getResources(), bitmap2));\n } else {\n C2342x.m9082a((View) this, 0);\n }\n if (bitmap != null) {\n this.f6228b = bitmap.getWidth();\n this.f6229c = bitmap.getHeight();\n this.f6227a.setImageBitmap(Bitmap.createBitmap(bitmap));\n return;\n }\n this.f6227a.setImageDrawable(null);\n }", "public int getAnalysisBits();", "static void getIndexSetBits(int[] setBits, long board) {\n\t\tint onBits = 0;\n\t\twhile (board != 0) {\n\t\t\tsetBits[onBits] = Long.numberOfTrailingZeros(board);\n\t\t\tboard ^= (1L << setBits[onBits++]);\n\t\t}\n\t\tsetBits[onBits] = -1;\n\t}", "public Bitmap mo8554a(BitmapPool bitmapPool, Bitmap bitmap, int i, int i2) {\n float f;\n C12932j.m33818b(bitmapPool, \"pool\");\n C12932j.m33818b(bitmap, \"srcBmp\");\n Bitmap bitmap2 = bitmapPool.get(i, i2, bitmap.getConfig());\n C12932j.m33815a((Object) bitmap2, \"pool.get(outWidth, outHeight, srcBmp.config)\");\n Matrix matrix = new Matrix();\n int i3 = this.f7488e;\n float f2 = (float) i;\n float f3 = (float) i2;\n matrix.setScale(1.0f - ((((float) i3) * 2.0f) / f2), 1.0f - ((((float) i3) * 2.0f) / f3), f2 / 2.0f, f3 / 2.0f);\n C1334a aVar = this.f7487d;\n if (aVar instanceof C1336b) {\n f = ((C1336b) aVar).mo6551b() * ((float) Math.min(i, i2));\n } else if (aVar instanceof C1335a) {\n f = ((C1335a) aVar).mo6547b();\n } else {\n throw new NoWhenBranchMatchedException();\n }\n C7780a aVar2 = new C7780a();\n aVar2.mo19991c(0.0f);\n aVar2.mo19994e(0.0f);\n aVar2.mo19993d(f2);\n aVar2.mo19985a(f3);\n aVar2.mo19989b(f);\n Path a = C7780a.m18885a(aVar2, null, 1, null);\n Canvas canvas = new Canvas(bitmap2);\n canvas.drawPath(a, this.f7485b);\n canvas.drawBitmap(bitmap, matrix, this.f7486c);\n return bitmap2;\n }", "private android.graphics.Bitmap getMaskBitmap() {\n /*\n r20 = this;\n r0 = r20;\n r1 = r0.f5066b;\n if (r1 == 0) goto L_0x0009;\n L_0x0006:\n r1 = r0.f5066b;\n return r1;\n L_0x0009:\n r1 = r0.f5069f;\n r2 = r20.getWidth();\n r1 = r1.m6537a(r2);\n r2 = r0.f5069f;\n r3 = r20.getHeight();\n r2 = r2.m6539b(r3);\n r3 = m6543a(r1, r2);\n r0.f5066b = r3;\n r4 = new android.graphics.Canvas;\n r3 = r0.f5066b;\n r4.<init>(r3);\n r3 = com.facebook.shimmer.ShimmerFrameLayout.C18663.f5049a;\n r5 = r0.f5069f;\n r5 = r5.f5059i;\n r5 = r5.ordinal();\n r3 = r3[r5];\n r5 = 4611686018427387904; // 0x4000000000000000 float:0.0 double:2.0;\n r7 = 2;\n if (r3 == r7) goto L_0x0074;\n L_0x003b:\n r3 = com.facebook.shimmer.ShimmerFrameLayout.C18663.f5050b;\n r8 = r0.f5069f;\n r8 = r8.f5051a;\n r8 = r8.ordinal();\n r3 = r3[r8];\n r8 = 0;\n switch(r3) {\n case 2: goto L_0x0055;\n case 3: goto L_0x0051;\n case 4: goto L_0x004f;\n default: goto L_0x004b;\n };\n L_0x004b:\n r9 = r1;\n r3 = 0;\n L_0x004d:\n r10 = 0;\n goto L_0x0058;\n L_0x004f:\n r3 = r2;\n goto L_0x0053;\n L_0x0051:\n r8 = r1;\n r3 = 0;\n L_0x0053:\n r9 = 0;\n goto L_0x004d;\n L_0x0055:\n r10 = r2;\n r3 = 0;\n r9 = 0;\n L_0x0058:\n r19 = new android.graphics.LinearGradient;\n r12 = (float) r8;\n r13 = (float) r3;\n r14 = (float) r9;\n r15 = (float) r10;\n r3 = r0.f5069f;\n r16 = r3.m6538a();\n r3 = r0.f5069f;\n r17 = r3.m6540b();\n r18 = android.graphics.Shader.TileMode.REPEAT;\n r11 = r19;\n r11.<init>(r12, r13, r14, r15, r16, r17, r18);\n r3 = r19;\n goto L_0x009c;\n L_0x0074:\n r3 = r1 / 2;\n r8 = r2 / 2;\n r16 = new android.graphics.RadialGradient;\n r10 = (float) r3;\n r11 = (float) r8;\n r3 = java.lang.Math.max(r1, r2);\n r8 = (double) r3;\n r12 = java.lang.Math.sqrt(r5);\n r8 = r8 / r12;\n r12 = (float) r8;\n r3 = r0.f5069f;\n r13 = r3.m6538a();\n r3 = r0.f5069f;\n r14 = r3.m6540b();\n r15 = android.graphics.Shader.TileMode.REPEAT;\n r9 = r16;\n r9.<init>(r10, r11, r12, r13, r14, r15);\n r3 = r16;\n L_0x009c:\n r8 = r0.f5069f;\n r8 = r8.f5052b;\n r9 = r1 / 2;\n r9 = (float) r9;\n r10 = r2 / 2;\n r10 = (float) r10;\n r4.rotate(r8, r9, r10);\n r9 = new android.graphics.Paint;\n r9.<init>();\n r9.setShader(r3);\n r5 = java.lang.Math.sqrt(r5);\n r3 = java.lang.Math.max(r1, r2);\n r10 = (double) r3;\n r5 = r5 * r10;\n r3 = (int) r5;\n r3 = r3 / r7;\n r5 = -r3;\n r6 = (float) r5;\n r1 = r1 + r3;\n r7 = (float) r1;\n r2 = r2 + r3;\n r8 = (float) r2;\n r5 = r6;\n r4.drawRect(r5, r6, r7, r8, r9);\n r1 = r0.f5066b;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.getMaskBitmap():android.graphics.Bitmap\");\n }", "public static void adicionaMap2() {\n\t\t\t\tcDebitos_DFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"dam\", new Integer[] { 6, 18 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"fiti\", new Integer[] { 19, 26 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"cartorio\", new Integer[] { 39, 76 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"valor\", new Integer[] { 77, 90 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\t\t\t\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"processo\", new Integer[] { 21, 34 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"data_Venc\", new Integer[] { 35, 46 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"tributos\", new Integer[] { 47, 60 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"historico\", new Integer[] { 61, 78 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"valor\", new Integer[] { 79, 90 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\r\n\r\n\t\t// No DAM ANO DATA VENC No. PROCESSO\r\n\t\t// No. PARCELAMENTO VALOR JUROS TOTAL\r\n\t\tcDebitos_JFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_JFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_JFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_JFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_JFlorianopolis.put(\"processo\", new Integer[] { 39, 55 });\r\n\t\tcDebitos_JFlorianopolis.put(\"nParcelamento\", new Integer[] { 55, 76 });\r\n\t\tcDebitos_JFlorianopolis.put(\"valor\", new Integer[] { 77, 104 });\r\n\t\tcDebitos_JFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_JFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t// DAM LIV/FOLHA/CERT. DATA INSC HISTORICO\r\n\t\t// INSCRICAO VALOR\r\n\r\n\t\tcDebitos_J1Florianopolis.put(\"dam\", new Integer[] { 1, 13 });\r\n\t\tcDebitos_J1Florianopolis.put(\"liv_Folha_Cert\", new Integer[] { 14, 34 });\r\n\t\tcDebitos_J1Florianopolis.put(\"data_Insc\", new Integer[] { 35, 46 });\r\n\t\tcDebitos_J1Florianopolis.put(\"historico\", new Integer[] { 47, 92 });\r\n\t\tcDebitos_J1Florianopolis.put(\"inscricao\", new Integer[] { 93, 119 });\r\n\t\tcDebitos_J1Florianopolis.put(\"valor\", new Integer[] { 120, 132 });\r\n\t\t\r\n\t\t\r\n\t\t// No DAM ANO DATA VENC HISTORICO PROCESSO VALOR JUROS TOTAL\r\n\t\tcDebitos_LFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_LFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_LFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_LFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_LFlorianopolis.put(\"historico\", new Integer[] { 39, 76 });\r\n\t\tcDebitos_LFlorianopolis.put(\"processo\", new Integer[] { 77, 91 });\r\n\t\tcDebitos_LFlorianopolis.put(\"valor\", new Integer[] { 92, 104 });\r\n\t\tcDebitos_LFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_LFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\r\n\t}", "public int updateBit(int i,int j, boolean set){\n int value=(set)?1:0;\n int mask=~(1<<j);\n int clear=mask&i;\n return clear|(1<<value);\n\n}", "public BufferedImage bitwiseOR(BufferedImage image, BufferedImage image1) {\r\n int[][][] arr = convertToArray(image);\r\n int[][][] arr1 = convertToArray(image1);\r\n\r\n int width = arr.length, height = arr[0].length;\r\n int width1 = arr1.length, height1 = arr1[0].length;\r\n\r\n int x = (width < width1) ? width : width1; //get area to add\r\n int y = (height < height1) ? height : height1;\r\n\r\n for (int i = 0; i < y; i++) {\r\n for (int j = 0; j < x; j++) {\r\n arr[j][i][1] = arr[j][i][1] | arr1[j][i][1] & 0xff;\r\n arr[j][i][2] = arr[j][i][2] | arr1[j][i][2] & 0xff;\r\n arr[j][i][3] = arr[j][i][3] | arr1[j][i][3] & 0xff;\r\n }\r\n }\r\n return convertToBimage(arr);\r\n }", "protected final void operationBIT(final int data) {\r\n this.signFlag = data >= 0x80;\r\n this.overflowFlag = (data & 0x40) > 0;\r\n this.zeroFlag = (this.ac & data) == 0;\r\n }", "public IntMap(int size){\r\n hashMask=size-1;\r\n indexMask=(size<<1)-1;\r\n data=new int[size<<1];\r\n }", "public boolean put2BuffMap( byte[] rec){\n\t\t/**\n\t\t * update\n\t\t */\n\t\t\n\t\tKey key = new Key(rec);\n\t\t\n\t\tif(buffMap.containsKey(key)){\n\t\t\tint val = buffMap.get(key)+1;\n\t\t\tbuffMap.replace(key, val);\n\t\t}else{\n\t\t\tbuffMap.put(key, 1);\n\t\t}\n\t\treturn true;\n\t}", "private int setNibble(int num, int data, int which, int bitsToReplace) {\n return (num & ~(bitsToReplace << (which * 4)) | (data << (which * 4)));\n }", "private int mediePixeli(int pixel1, int pixel2) {\n\t return (int) (((((pixel1) ^ (pixel2)) & 0xfffefefeL) >> 1) + ((pixel1) & (pixel2)));\n\t }", "private static void mapAwb(android.hardware.camera2.impl.CameraMetadataNative r1, android.hardware.Camera.Parameters r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.mapAwb(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.Camera$Parameters):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.mapAwb(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.Camera$Parameters):void\");\n }", "public void setBitToOne(int k) {\n if (this.inBitRange(k)) {\n int i = k / 8;\n int j = k % 8;\n int b = this.data.get(i);\n int c = 1 << (7 - j);\n b = b | c;\n byte d = (byte) b;\n this.data.set(i, d);\n }\n }", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "interface WorldmapBuffer2 {\n final static byte[] image2 = {\n -125, 47, -3, 77, 51, 29, -45, -103, -120, 119, 76, -122, -82, -22, -106, 61, 113, 4, -59, 124, -116, 59, 115, -26, -44,\n 56, -115, 34, 106, -124, 98, 83, -115, 70, 9, -67, -116, 99, 92, -127, 89, -23, -68, -11, -41, 72, -15, -68, -48, 4,\n 29, 85, -30, 4, -79, -56, -20, 126, 69, 119, -119, -115, -116, 60, -37, -53, -107, 68, 90, -45, 79, -99, 108, 109, 45,\n 84, -65, -93, -44, -79, -23, -40, 23, -40, -48, 98, -92, -50, 125, -104, -52, -58, 50, -97, -119, 13, -78, -81, 82, -86,\n 15, -71, -92, 77, -115, -48, 48, 77, -88, 6, 61, 104, -117, -51, 103, -90, 5, -71, -52, 42, 76, -68, 113, 79, -7,\n 43, -42, -84, 38, -56, -100, 93, -44, 34, 71, -113, 100, -116, 64, 42, 88, -40, 94, 93, -83, -118, -115, 99, -32, -27,\n 72, -26, 43, -104, 35, 7, 37, 101, 12, -66, 107, -104, -128, -106, -116, 54, -93, -83, -119, -50, 23, -47, -117, 39, 89,\n 6, -9, 41, 47, 10, -37, -124, -2, 115, -40, -55, -67, -37, -118, -118, 92, 108, 24, -41, 35, -43, -61, 45, 44, 118,\n 87, 92, 70, -14, 108, -37, -22, -106, -41, -127, 124, -92, -70, -99, -42, 22, -38, 106, 43, -8, -84, -97, -99, -39, -48,\n -6, -62, 78, -10, -98, -38, 109, -98, -23, -87, -45, 112, -67, 73, 42, 21, 99, -25, 109, -40, -21, 10, 120, -88, -110,\n -99, 105, -37, -97, 68, -70, -112, 15, 54, -99, 111, 77, 37, 108, 52, -33, 113, 93, 59, -33, 56, -78, 124, -85, 42,\n 107, -3, -54, -94, 29, -37, 97, -53, -54, -24, 8, -113, -18, 45, 108, 61, 122, -124, 19, 102, 118, -65, -14, -31, 32,\n 30, -30, -8, 35, -40, 102, -106, -109, -33, -115, -58, -27, 38, -37, 43, 88, 106, -11, -104, -51, -16, 11, -39, 116, 24,\n -123, -48, -6, 107, 73, -39, -31, -107, 109, -98, 85, -36, 39, 115, 61, -37, -33, 53, -61, -49, 103, -119, -73, 84, -35,\n -64, -6, 97, -72, -85, -98, -94, 58, -33, 127, 77, -34, 96, 90, -127, 58, -22, -118, -61, -83, 58, 96, 59, 95, 27,\n 11, -29, -123, 76, 79, -108, 11, -48, -35, -100, -40, 82, 4, 97, 57, -18, -36, -63, -94, -28, -105, -87, -76, -57, -84,\n 122, -13, -40, -60, -37, -6, -28, -105, -42, -34, -105, 76, 61, 59, -2, -27, -103, -125, -76, 111, 39, -39, 118, -88, -119,\n 56, 43, 116, 50, 22, -87, 44, 43, -91, 63, -21, -51, -2, -14, -26, -38, -76, 36, -26, -52, -122, -26, 100, -61, -75,\n -108, 7, 24, -24, 92, -37, -28, -116, -51, 52, 126, -33, -103, -102, 114, -27, 77, -24, -124, 87, 68, -13, -119, -28, 99,\n -71, -33, 25, 88, -49, 120, 41, -24, -125, -82, -62, 102, -25, -49, -119, 25, -82, 111, 38, 63, -52, 76, 26, 81, 71,\n 118, -115, 39, 125, -58, -94, -26, 29, -109, -25, -4, -92, -80, 43, -42, -83, -108, -66, -86, -65, 43, -25, 19, 70, -23,\n -80, -68, -54, -72, -3, -43, 32, -117, -93, 102, -93, 27, -29, -77, 56, -70, -38, -34, 27, -67, -94, 52, -75, -119, -73,\n -5, -45, 58, 120, -48, 107, 125, -112, 109, -84, -25, 40, 78, -21, -8, 69, -27, -117, -36, 108, 57, 93, -114, 52, 120,\n -32, 100, 68, -48, -51, 65, -35, -42, 78, 82, 58, -88, 96, -121, 126, -39, 104, 34, -123, -6, 9, 66, -35, 40, 107,\n 66, -120, -65, 127, -125, -19, -75, 6, 122, -30, -21, -74, 42, 126, -121, 2, 3, -19, 22, 20, 53, 85, 89, 61, -21,\n -25, -95, 94, 18, -18, -35, 70, -101, 33, 10, -80, 18, 35, 94, 99, -98, -18, 40, -66, 87, 54, -18, -23, -36, 107,\n -24, 8, 47, -28, -113, -61, -87, -20, -98, -19, -71, 45, -35, -128, -82, -80, -23, -121, -38, 99, -117, -70, 7, 104, -20,\n 52, 122, -18, 76, -115, -40, 36, -6, -16, 88, -59, -72, 127, -58, -111, 59, 126, -2, 82, -17, -68, -49, -18, -63, -118,\n 111, -109, -33, 120, -118, -50, -52, 52, -29, -121, -2, -62, 126, 26, -124, -46, -18, -112, -115, 92, -65, 117, 125, -16, -74,\n 74, 90, -9, 27, -61, 0, 111, 110, 2, -72, -125, -102, 30, 22, 42, -33, 115, 23, -6, -24, 124, -102, -57, -16, 78,\n -62, 76, -119, 91, -48, -87, -65, -71, 126, -118, -123, -89, -18, -31, -92, -13, -95, -68, -35, -63, -100, 55, 88, -68, -47,\n -69, 55, -12, 99, 33, -16, -34, -22, -63, 66, 78, -11, -93, 78, 66, 17, 12, -75, -115, 6, -109, 34, 9, 114, -108,\n -72, -103, 8, -76, 112, 58, 126, -16, -74, -34, 102, 29, -56, -64, 88, 103, 123, -91, 100, 55, 61, -55, -50, 59, -33,\n -22, 90, 55, -90, -106, -3, -20, -79, -35, 53, -112, -2, -47, 49, -114, -23, 30, 95, -16, 25, 70, -17, 75, 53, -9,\n -38, 73, 109, 53, 38, -10, 106, -102, 55, -17, -31, 76, -26, -6, -128, -110, -1, -44, 25, 7, -56, 86, -56, -9, -6,\n 9, -10, -57, -66, -20, 5, 125, -8, 106, -83, -8, -1, -89, -13, -114, 31, -97, -88, -120, 75, -21, 42, -22, -19, -111,\n 101, -117, 107, -30, -71, 121, -11, -99, 23, 88, -68, -8, -88, -85, 25, -128, 72, 47, -95, -122, -125, -87, 50, -82, 50,\n -14, -34, -92, 112, 102, -29, -87, -113, -106, -64, -18, 108, 26, 107, 32, 69, -37, 120, 10, -113, 118, -20, -2, 38, -46,\n 93, -116, -63, 23, 126, -19, 25, -55, -113, -95, -99, 121, -55, 106, -122, 29, 72, -32, 117, 103, -106, 86, -52, 104, -37,\n 15, -14, -122, -27, -33, 77, 79, 96, 4, 27, 34, -87, -6, 69, -69, -69, -93, 113, 3, -49, 69, -75, 56, 101, 106,\n 78, 57, 62, -15, -16, 92, -8, -63, -114, -48, -59, -82, 95, 52, 116, 108, 104, 11, -69, 78, 6, 16, 1, 4, 14,\n 36, 88, -48, -32, 65, -124, 9, 21, 46, 100, 56, 80, 0, 0, 1, 7, 35, 10, -96, 8, 49, 98, -61, -126, 15,\n 1, 108, -28, -40, -47, -29, 71, -112, 33, 69, -114, 36, 89, -46, -28, 73, -108, 41, 47, 98, 76, -88, 113, 100, -59,\n -115, 43, 9, -62, -20, 72, 49, -128, 77, -121, 11, 93, -106, -92, 72, 83, -92, -52, -101, 61, 29, -6, -12, -120, 51,\n -88, -48, -116, 10, -127, 74, 100, 57, 115, 105, 83, -88, 45, -97, 10, -20, 57, 53, 42, 84, -93, 59, 85, 62, 20,\n -86, 53, -27, 87, -80, 97, -59, -114, 37, 91, -42, 108, 88, -85, 87, -43, -82, 101, -120, 52, -93, 70, -93, 87, -67,\n -98, -91, 91, -41, -82, -39, -86, 108, -25, 22, -35, 25, 119, -24, -57, -117, 50, -105, 86, 37, 10, 56, 110, -31, -102,\n 84, -111, 30, -2, -23, 23, -95, 85, -57, 65, 115, 98, -115, -52, 118, 109, 86, -73, -106, -43, 10, 30, -37, -109, 35,\n -30, -69, -2, -95, 69, -113, 38, 93, 58, 100, 90, -51, -87, 85, 27, -52, -85, 23, -76, 105, -40, -79, -47, 14, 69,\n -51, 122, 47, 95, -61, -84, 1, 83, 117, 74, -8, -90, 83, -117, 46, 43, 7, -83, 73, 24, -13, -17, -103, -89, 99,\n 54, -100, -24, -72, -7, 98, -29, -61, 21, -41, 94, -51, 50, 115, 117, -21, -103, 111, -13, -12, 44, -37, -5, 119, -16,\n -31, 65, 82, -57, 94, -34, -68, -50, -18, -30, -43, -81, 79, 60, 25, -29, -21, -94, 55, 79, -21, 110, -1, -5, -16,\n 68, -38, -48, -87, -73, 126, 59, 84, -30, 120, -72, -104, -29, -115, 53, -34, -116, -21, -17, 49, -14, -50, 83, -80, 41,\n -56, -2, -21, 108, 34, -10, 34, -108, 112, 66, -80, 18, 92, -16, -62, -43, -46, -93, 112, 67, -39, 4, -77, 78, 37,\n -86, 78, 3, -118, -90, -107, 112, 10, 44, -90, -86, -118, -77, -112, -71, 18, 31, -37, 77, -70, -57, -108, -102, 46, 58,\n 4, 49, -76, -47, -75, -89, 42, -37, -114, 39, -30, 56, -12, -15, 71, 9, 87, -68, 113, 72, -84, -128, 52, 114, 52,\n 15, -33, -5, -22, -60, -58, 104, 91, 14, 57, -59, -28, -5, -52, 64, 5, 3, 67, 48, -66, -53, 90, -126, 18, 61,\n 24, -119, -12, 50, -71, 39, -35, 123, -85, -84, 18, -113, 52, -13, 76, -46, -124, -4, 114, 77, 7, -47, 116, -77, -77,\n -103, 62, 4, 81, -54, -105, 66, -2, -124, 9, 63, -121, 32, -30, 107, -56, -25, -24, -29, 75, -51, 40, 9, -108, -18,\n 58, 54, 11, 5, 46, -52, -93, 108, -61, 11, -52, 55, 27, 117, 116, 73, 67, 35, 109, -53, -90, 29, 31, -75, 52,\n -52, 4, 43, 125, -47, 36, 38, -21, -53, 19, 75, 27, -97, -93, -76, 83, 80, 47, 27, 49, 63, 26, 37, 85, -107,\n -50, 39, 73, 100, -108, -52, 87, 47, -107, 117, 86, 64, 87, 93, -112, 43, -8, 102, -75, -76, 69, 37, -105, -52, -75,\n -43, -15, 14, 45, -11, -42, 1, 41, 101, 117, 79, -53, -4, 66, -83, 86, 91, 85, 35, -86, -71, 97, 53, -27, 49,\n 68, 93, -85, -107, -107, -39, 102, -85, -85, 8, 66, 107, -83, 53, -111, 65, -76, 78, -30, 118, -73, -93, -126, -67, 49,\n 48, -63, -74, -61, -42, 63, 49, 109, 91, 55, -37, -88, -26, 42, 108, -80, -77, -54, -20, -10, -34, 55, -33, -123, 87,\n -77, -82, -16, -11, 118, 75, -99, 68, 51, -18, 37, 19, -5, -22, -46, -39, -106, -22, -20, 109, -77, 1, -37, 117, 120,\n -33, 42, 81, 26, 76, -38, -97, 62, -11, -9, -30, 35, -7, -125, -40, 75, 13, 49, -34, 21, -32, -124, -21, -30, -17,\n -41, -32, -114, -123, -24, 92, -91, 42, 30, 89, -56, -26, -100, -118, 113, -29, 80, -59, 45, -40, 100, 72, -87, -11, -8,\n 102, 31, -11, -123, -103, 50, -118, 113, -34, -48, 74, -26, -2, 66, 51, -111, 83, 81, -55, 13, 85, 42, 17, -91, 34,\n 15, -49, -55, -46, -43, 121, -25, -128, -125, 123, -115, -79, 37, 17, -19, -39, 103, -84, -45, -124, -102, -29, -85, -77, -114,\n -80, -27, -74, -46, 36, -103, -44, -8, 8, -115, 55, 58, -115, 37, -14, -86, 54, -77, 103, 76, 21, 74, -96, -73, -66,\n 80, -39, -67, 56, -37, 74, 89, -81, -13, 86, -17, 105, -71, 83, -42, -37, -51, 59, -89, -22, -72, 49, -76, 83, 28,\n 79, 102, -102, -91, 62, 85, 109, -76, -109, 114, 92, 41, -31, 14, -114, 44, -45, -103, -5, 38, 114, -22, -116, 36, 6,\n 57, -15, -65, 59, 23, -38, 114, 12, -69, -10, -4, 107, 116, 65, 43, -4, 101, -50, 125, 37, -102, -72, -126, -17, -44,\n -119, 41, 22, 87, 84, -106, 103, 116, 65, -97, 123, -57, 17, 53, 119, 113, 116, -34, -111, -76, -3, -68, -63, 123, -49,\n -8, -74, -74, -75, -76, -7, 59, -83, -26, 125, 29, 118, -32, -29, -52, -82, 70, -105, 127, -41, 107, -38, -52, -87, -9,\n 83, 120, -20, -21, -107, 30, -8, -20, -49, 36, 12, 89, -84, 98, 37, 51, 120, -18, -124, 91, -98, -7, -14, -66, 101,\n 16, 61, -55, 54, -33, 62, 108, -21, -113, 87, 88, -47, -18, -21, 39, -117, 111, -23, 73, -74, 95, -68, 17, -45, 94,\n 95, -4, 7, 125, -81, 124, -84, 74, 75, 1, -101, -41, -66, -1, 65, -18, 113, -2, -17, -21, 21, 73, 114, 7, 32,\n -33, 108, -55, 112, -5, -93, -96, -18, 24, -104, -84, 10, 2, 73, 112, 122, 1, 96, 120, -58, -123, 40, 2, 25, 47,\n 125, 28, -20, -115, -1, -16, -73, 49, 105, -107, 14, 64, 74, -109, -110, -24, 50, 88, -65, -30, 93, 48, 106, 47, -4,\n -103, 8, -49, 102, -79, 32, -127, -49, 54, 54, -44, 22, 9, -99, -57, 67, 25, -50, -112, 96, 117, 43, -99, 91, -32,\n 66, 67, 36, 110, 37, -120, -17, 113, 97, 18, 5, 38, -93, 120, 9, 43, 103, 13, 99, 23, 16, 17, 38, 23, -25,\n 64, 113, -119, 65, -69, -33, 4, -115, -24, 68, 48, 90, 112, -117, 109, 10, -29, 122, 96, 4, -88, -2, -3, -120, 105,\n -127, 58, 31, 118, -48, -120, 58, -12, -115, -47, 111, 104, 73, 79, 119, -56, 87, 70, 60, 126, 70, -114, -41, -53, 35,\n 120, -10, -109, -91, -73, 52, -15, 46, -38, -79, -48, -63, -62, 119, -74, 28, 105, 113, -113, 33, -85, -48, -119, -122, -90,\n -89, 62, 70, -46, 92, 123, -44, -97, 36, 69, -74, 52, 64, -70, 103, -126, 14, 20, 100, -46, 2, 37, 59, 55, -54,\n 69, -127, 112, 92, 36, 25, 37, 118, 50, -55, 84, -46, -110, 97, 124, -37, -5, 58, -71, -54, -102, 89, 39, -109, -101,\n -53, -107, 10, -75, -89, 49, -106, -123, -14, -112, -118, -100, 78, 41, -123, 40, 46, 84, 114, 5, -106, -61, -2, 4, 85,\n -23, -74, -9, 74, 98, -118, 107, 82, -2, -5, 95, 1, 43, 22, -56, -15, 49, -82, -112, -70, 124, 30, 47, -87, -24,\n -53, 64, -118, -114, 108, -55, 36, -90, 49, -39, -120, -86, 19, -14, -117, -101, -90, 97, 91, 15, -35, 39, 63, 79, 101,\n 115, -120, 125, -111, -32, 125, 100, -103, -95, -3, 116, 105, -125, -40, 68, -112, 42, -127, 53, 78, 110, 50, -55, 105, -124,\n 10, -25, 101, -16, 89, -102, 114, 102, -24, -100, 127, 25, 86, 8, 55, -103, 21, 20, -127, -19, -102, -67, 108, -29, 21,\n -95, 39, 32, 82, -46, -77, -125, -100, -76, -25, 63, -111, -88, -49, 4, -50, -115, -117, 22, -3, 28, -5, -32, -55, 68,\n -72, 24, -48, 93, -3, 3, 90, -110, 30, 26, 71, 126, 89, -77, 45, -11, -108, 40, -3, 56, -6, -46, 105, 5, 40,\n -93, -38, 58, -35, -18, 96, 42, -78, 81, -102, -109, 65, 1, -35, -52, 96, 60, -54, 56, -121, -94, -76, -95, -46, -108,\n 104, 69, 111, -118, -49, 113, -127, -110, 123, -122, -71, 14, 50, -113, 42, 56, 67, 70, -47, 60, -52, -102, -35, 74, -43,\n 6, 66, 44, 102, 83, -87, -25, 99, -90, 12, 7, 118, 84, -80, 98, -55, 124, 9, -116, 33, 56, 35, 88, 41, -124,\n -122, -11, 126, 59, 36, -42, 84, 119, -7, -55, -91, -111, 52, -99, 88, -20, 42, 68, -83, 122, 32, -41, 64, -52, -87,\n 106, -59, -2, 99, 29, 17, -7, -80, -22, -119, 40, -123, 56, -28, 43, -30, -94, -89, 81, -73, -18, 114, 84, -120, -52,\n 11, 59, 125, -8, 88, -107, 2, -106, 69, 3, 53, -44, 94, 11, 91, 70, 87, 37, 11, 114, 56, 69, -25, 101, -97,\n -7, -61, -48, 29, 112, -89, 11, -107, -86, 98, -26, 90, 90, -122, 49, -47, -118, 92, 2, -19, -86, 44, -21, 89, 86,\n -114, 21, -78, -90, -75, -117, -35, 96, -21, -55, 5, -74, 53, -79, -76, -101, -22, 105, -33, -6, -37, -55, 10, -107, -95,\n 8, 92, -104, -83, 94, 123, 91, 26, 62, 18, -107, -77, -20, -47, 32, 39, 10, -37, 8, -110, 86, -76, 35, -116, -105,\n 69, 122, -21, -37, -103, 114, -87, 86, -109, 107, -36, 112, 89, 42, -87, -29, 34, 55, -125, -117, -63, -18, 123, -98, -69,\n -42, -13, -14, -107, -92, 101, 21, -24, 116, -63, -75, 92, 109, -23, 16, -75, 67, 53, 85, -125, 22, 39, -62, 126, 54,\n 80, -68, 96, -91, 84, 121, -19, 26, 94, -85, -19, 87, -113, 44, 68, -20, 110, -85, 11, -33, 12, -27, 102, 70, -26,\n -67, 43, 77, 103, 87, -94, -74, 25, 49, 82, 0, 22, -16, 11, 63, -120, 45, -27, 58, -105, -80, -73, 21, 41, 101,\n 83, -22, -34, -9, 34, 56, 53, 68, 116, 108, 100, 67, 88, -91, -82, -12, 73, 42, 39, 94, 19, -123, 43, 108, 97,\n 2, -14, -53, -88, -54, 76, 93, -2, 97, 33, 76, 37, -23, 6, -107, -102, 114, 25, 112, 124, -43, 37, 98, 22, -45,\n 119, -86, 107, -116, 104, -114, 67, -9, -30, -53, -6, 68, 95, 20, -34, 38, 116, 91, -85, -74, 42, 69, -39, -97, 64,\n -106, 113, 99, 18, 90, -28, -43, 38, 118, 89, -62, 61, 23, -110, 109, 76, -89, 119, -71, 56, 56, 21, 54, -87, -112,\n 71, 12, -30, 16, -29, -49, 116, -57, -117, -18, -115, 35, -52, 39, -17, 2, 54, -65, -65, -12, -14, 83, 109, -74, 46,\n 49, 35, -7, -66, -11, -116, 42, 112, 117, 124, 96, 42, -69, 6, -126, -60, -5, -22, 105, -25, -20, 48, -19, 112, 57,\n 102, 9, -83, 51, 76, -19, 21, -24, -115, 54, 90, -61, 79, 94, 96, -97, -33, -71, 99, 30, -9, -40, 89, 107, 67,\n -50, -116, -105, 27, -35, 2, -117, 105, -98, 45, 30, 112, -98, 37, -35, 59, 82, 89, 122, -61, -89, 94, 84, 110, -125,\n -20, 97, 81, 98, 58, -45, 88, 77, 22, -114, 33, 44, 22, 34, -93, -84, -75, -119, 84, 117, -83, 19, 99, 106, 86,\n -13, -82, -65, -2, -75, 105, -80, 91, 125, -40, 34, -97, 16, -44, -20, 125, 53, -96, 105, -51, 92, 68, -29, -102, 77,\n -89, -118, 91, 127, 14, 77, -48, 82, 27, -5, -91, -54, 115, -10, 32, 55, -23, -39, 61, -81, -74, -41, 39, 61, 10,\n -124, -77, -37, 109, -66, -31, -46, -108, -70, 27, 119, -84, -2, -93, -73, -27, -97, -10, -44, 92, -64, -42, -10, -24, -28,\n -43, -19, 122, -47, -51, -55, -82, 86, 116, -104, 121, 105, 72, -86, 126, 16, -46, 56, 18, 92, 0, 57, -106, 31, 88,\n 67, -75, 118, -17, -124, -113, -64, -21, 109, -25, 16, -25, -69, -36, 99, -6, 50, -65, -5, -67, 93, 120, -29, 53, -53,\n 13, 46, 49, -102, 59, -53, 41, -74, 74, 57, 64, -110, 115, -77, -94, -109, -13, 43, 79, 63, 92, -110, -78, -69, 100,\n -32, 8, -87, -42, 68, -38, 117, -29, 51, -49, -15, -96, 10, 119, 115, -25, 104, -38, -29, 77, -28, 76, 63, 83, -68,\n -100, 66, -30, 9, -86, 124, -82, -102, -54, -43, 91, 36, -94, 21, -70, 124, -24, -30, 47, -86, 24, 28, -17, 6, -101,\n -8, -101, -108, -34, -116, -50, 13, -68, -22, 57, 109, 107, -87, -49, -54, -22, 64, -47, 102, -12, 122, -77, 28, -28, -127,\n 85, 98, 115, 45, 10, -22, 75, 71, -99, -36, 102, -82, -94, 100, -99, 61, 103, 122, -31, 69, -74, -15, -3, 108, -38,\n -35, 103, 48, -80, -121, 125, -42, 117, -1, 56, -115, -51, -114, -44, -39, 74, 29, -42, -51, 14, -7, -32, 35, -99, -33,\n -72, 79, -102, -18, 124, -49, 41, -78, 77, 70, -17, -68, 3, 6, -77, 123, -97, 15, -39, 99, 41, -64, 127, 110, -105,\n 50, 80, 118, -9, 50, -37, 77, -58, -49, -1, -37, 119, 110, 28, -5, 40, 71, -2, 45, -81, -56, -17, 45, -27, 127,\n 83, -109, -70, -42, 45, -79, -114, 21, 14, -106, -102, 71, -19, -25, -73, -102, -32, -126, 18, -36, -14, -100, -59, 125, -4,\n 52, 14, -78, 71, -85, 8, -14, -87, 63, -39, -22, -11, 102, 105, -41, -13, -111, 46, -58, -62, 118, 31, 105, -49, -40,\n 15, -37, 125, -60, 70, -21, 105, -15, 0, -84, 51, 85, 54, 40, -73, -63, -49, 54, -15, -3, -24, -4, -96, 79, 50,\n -67, -72, 110, -22, -16, -15, -11, -4, -50, -89, -10, -36, 24, -92, 62, 72, 115, 45, -59, -114, -78, 63, -106, -108, -10,\n -23, -29, 29, -82, 58, -17, -13, 55, -24, 56, -98, -114, -73, -65, 117, -48, 111, -125, 49, -11, 75, 63, 2, 84, -69,\n -23, -53, -67, 21, -77, -72, 60, -61, 48, -98, 107, 54, 115, 75, -91, -61, -127, 21, -29, -53, 63, 48, 10, -67, 68,\n -103, 64, -63, 34, -94, -66, -126, -74, -11, -21, 64, -102, -85, 58, 4, 36, -68, 28, -119, 13, -86, -126, -107, 87, 3,\n -101, -1, -117, 63, -13, -93, 64, 97, 107, -67, 20, 124, 56, -86, -30, 64, 63, 99, -69, -22, 107, 63, 44, 3, 24,\n 12, -12, 61, 57, 65, -81, -100, -104, 24, -125, -86, -79, 10, 25, 63, 22, -20, -90, 92, -94, 45, -67, 11, -68, -89,\n -109, 65, -63, 43, 45, 78, 91, 48, -73, -77, -113, 28, 44, -67, -99, -46, 30, 118, -7, 35, 35, 92, -2, 62, 33,\n 28, 66, 34, -52, -88, 21, -76, 36, 111, -14, 64, 26, 52, 64, 49, -52, 36, 78, 115, 39, -54, -118, 66, 49, -46,\n 47, 19, 108, -95, -63, -77, -110, -67, -78, 45, 45, 12, -85, -5, -96, -101, -32, -61, 60, 61, -53, -118, 25, -108, -71,\n -7, -110, 62, -51, -38, 48, 94, -93, 51, -17, 8, -65, 75, 2, 51, 35, -45, 36, 32, -12, -69, 46, -116, 67, -20,\n 57, -88, -121, 73, -101, 68, 20, -64, -57, 57, -93, 1, -36, 67, -43, 106, 47, 63, -28, -68, 57, -30, 31, 53, 20,\n -103, -10, -64, -92, 78, -93, -62, 67, 84, 68, 57, 92, 40, 103, 122, -79, 13, 42, -94, -18, 114, -65, 62, -52, 67,\n 104, 75, 30, -109, 67, -61, -39, -128, 31, 114, 50, 60, 94, 65, -90, -5, 19, 69, 14, -117, -71, -111, 34, -77, 37,\n 116, -65, 37, 43, -64, -24, -117, -107, 112, -21, 13, 10, -39, -113, 14, -15, 68, -14, 90, -108, 71, -60, -59, 10, -86,\n 42, -68, 90, -58, -3, -47, -66, -68, 122, -102, 94, 83, -74, 98, 27, -58, -65, -101, 16, -74, 57, 70, -91, 57, -85,\n -66, -125, -108, 59, 98, 70, 27, 51, -106, -61, -40, 61, 14, -21, -59, -121, -62, 62, 92, 1, -61, 73, -92, -72, -2,\n 113, 18, 13, -110, -59, 89, -44, 69, -40, 113, -86, -42, -127, 70, 113, -20, 30, 3, -55, 57, 83, -76, -75, -82, -93,\n 58, -10, -2, 74, -58, 76, -71, -70, -1, 48, -73, 0, -100, 34, 64, 124, -94, 106, 19, 41, 91, -60, -107, 97, -53,\n 71, 61, 43, 54, -15, -22, -86, -96, 75, 64, 77, -62, 37, -68, 25, 72, -126, 44, 72, 59, -12, -98, -124, 124, 34,\n 40, -84, -74, 19, 107, -56, -104, -80, 8, -120, -84, -77, 17, -108, -69, 97, -62, 57, -24, -24, 69, -95, -29, 51, -117,\n 28, 67, 36, 100, -100, 107, -55, 68, -40, -128, -106, 86, -63, -81, 124, 43, -118, -109, 68, 73, -27, -13, -107, 22, 90,\n -91, -38, -15, -63, 14, 123, 29, -37, -101, 38, -99, 90, 38, -40, -29, -112, 82, -20, 16, 54, -45, -111, 44, -28, -92,\n -98, 100, -75, -60, 107, -92, 79, -127, 69, -42, -29, 21, 44, -117, -89, 39, 52, 74, 62, 84, -62, -85, -94, -88, 91,\n 52, 35, 70, 34, 65, 116, -14, -63, -88, -92, -88, -87, -108, -76, 7, 2, -54, -65, 120, -56, 72, 82, -88, -83, 28,\n 41, 34, -93, 61, -92, 60, 51, -43, 34, 49, 115, 100, 15, -56, 64, -98, 108, -124, -81, 52, -70, -97, 78, 92, -53,\n 70, 83, 58, -65, -93, 13, 0, -6, 58, 124, 100, -54, -89, -61, -56, 22, -87, 63, 38, 100, -57, 36, 52, 47, -105,\n 43, 56, -124, -4, 73, -128, -86, 27, 81, 123, -91, 103, 17, 38, -62, -116, -56, -88, -100, 24, -47, -60, 72, 20, 105,\n 70, 1, -63, 67, 68, -61, -58, -2, 36, -116, 43, -68, 84, -84, 109, -68, -52, -67, 20, 27, -62, 73, 75, 17, -111,\n 60, -84, -4, 76, 47, 76, -85, -61, -76, -113, -127, -109, -90, -15, -6, 61, -32, 83, -97, 30, -92, 58, -114, 99, 27,\n -111, 4, 70, -103, -116, -51, -81, 113, -87, 99, 116, -96, 43, -124, 19, 121, 73, 30, -36, 20, -80, -126, -103, 18, 110,\n -117, 19, -82, -112, -73, -33, 108, 31, -43, 76, 20, -20, 36, -50, -27, -111, 28, -16, -100, -52, -81, 124, 61, 109, 4,\n -114, -37, -100, 15, -41, -13, -52, -15, -87, -51, 41, -103, 78, 50, -13, 38, 47, 26, -55, -23, -79, -80, 50, 59, -61,\n -92, -72, -49, -43, -20, 70, -62, 43, -49, 101, -6, -56, -13, 36, 68, 96, 107, -78, -30, 88, 62, 7, -22, 62, -8,\n -100, 72, -6, 72, 17, 122, -84, -81, -59, 100, -52, 3, -111, 68, -115, 107, 61, -128, -124, 58, -55, -44, -82, -86, 84,\n -93, 24, 27, 80, -84, 43, -55, 122, -31, -114, 79, 75, 80, -22, -84, 67, -30, 26, -49, -25, 121, -48, 26, 26, 78,\n 15, -13, 41, -83, -108, 62, -76, 12, 67, -109, -93, -85, 111, 44, 70, -79, 50, -53, 25, 117, 74, 9, 18, -47, -8,\n 60, -106, -116, -101, 37, 20, 13, -48, 78, 43, 81, -108, 122, -55, 61, 44, -94, 11, 109, 59, 75, -4, 81, 101, 26,\n 80, 2, -11, -53, -74, -44, -47, -3, -46, 16, -29, -116, -2, -63, 14, 109, -63, 78, 123, 63, -6, 11, -46, 25, 108,\n 55, -106, -95, -58, 42, 53, -109, 38, -3, -100, -12, 76, -70, 79, 83, 82, 40, -75, 31, -54, -23, 41, -38, -52, 26,\n -56, -100, 75, 44, -91, -53, 27, 36, 79, 61, 36, 67, 90, -71, -47, -38, 58, 72, 3, -3, -119, 30, 27, -45, 51,\n 21, 74, -38, -111, -89, -108, -116, -58, -18, -68, -69, 84, -20, -49, -82, 76, -50, 56, 77, 59, 51, -107, -103, -31, -61,\n 15, -84, -84, 36, 8, 89, -44, 62, 93, -60, -103, 4, -56, 112, -12, -100, 114, -116, 40, -52, 49, -44, 67, 69, -44,\n 24, 109, 35, 73, -27, 20, -43, 11, 83, -85, -4, 75, 0, -103, -44, 83, 67, 63, 43, -38, 39, 24, 58, -50, -51,\n 116, 78, 78, 53, 60, 79, -75, -72, -55, 12, 85, 51, -38, 84, 59, -35, 77, 83, -27, 73, 84, 45, 76, -80, 68,\n 76, 57, -29, -45, 70, 33, 36, -33, -48, -97, 116, -103, 83, -57, -29, -77, -37, -85, -90, 47, 21, -98, -25, 104, 63,\n -50, -124, -86, 94, -115, -68, 55, -126, 28, -83, -100, 39, 97, -51, -105, -125, -20, 25, -90, -77, 46, 33, 91, 56, -73,\n -95, 67, -49, 83, 69, -52, -124, -95, 75, 108, 86, 78, 10, -53, 105, -51, -69, 106, 37, 48, -72, 121, -103, 108, 5,\n -100, 109, -51, -70, -112, 18, 67, 112, 45, -73, -14, -101, -46, -72, -102, -100, -117, -2, 58, -41, 92, 109, 18, -26, 92,\n 87, -107, 107, 87, -89, 115, 28, 105, 12, -59, 60, -70, -50, -71, 68, -72, 74, 44, 88, 39, 116, 88, -13, -116, 70,\n -62, -126, -61, 32, 68, 69, -127, -91, -42, 86, -76, 33, 122, 28, 75, -64, 11, -49, -70, -6, 83, -55, -14, 70, -101,\n 76, -82, -26, -93, 88, 49, -30, -66, -117, -123, -63, -116, 37, 37, -56, 36, -43, 124, 90, 41, -3, -28, 64, -115, -108,\n -56, 36, -78, 45, -109, -27, -114, 74, 75, 89, -93, -93, 82, 5, 116, -75, 107, 109, -70, -88, -13, 82, 90, 29, 90,\n 91, -115, 71, -117, -55, 48, -100, -35, 62, -99, 29, -40, -22, 19, -51, 56, 114, 51, -68, -71, -87, -101, 3, -83, 116,\n -5, -44, -66, -116, 75, 97, -31, 88, 27, 4, -66, -50, 88, 90, -104, -5, 43, 82, 60, 61, -76, 43, -41, -105, -107,\n -96, 11, 52, -47, 115, -13, 68, -78, 117, -94, -64, -68, 84, -83, 19, 65, 81, -27, 85, -81, -107, 90, 10, 125, -73,\n 101, 81, -75, -94, -83, -106, -123, 124, -64, 66, -12, 51, -75, 93, 83, 10, -102, 24, 15, 37, -100, 23, 13, 44, 59,\n -20, -52, -68, -99, -37, 107, 113, 85, -6, -78, -64, -78, -28, 40, 19, 74, -44, -76, 117, -47, 110, -94, 89, 114, 41,\n 84, 104, 90, -81, 50, 84, -36, -77, 27, 90, 119, -71, -100, -89, 58, 88, -76, -83, -43, -88, 122, -46, -2, -39, 115,\n 23, 88, -115, 56, -100, 99, 42, -50, -51, 60, 56, 69, -57, -34, 115, 52, -47, -19, -37, 75, -13, 43, -103, 75, -36,\n 124, -79, 92, 98, -13, 19, -83, 45, -48, -42, 29, -89, -69, -123, -35, 3, -108, -38, -58, 77, 82, -7, 66, 29, -36,\n 29, -42, -120, -75, -70, 76, -20, 93, -21, -124, -96, -33, 77, 88, 40, 42, -54, 35, -5, -109, -28, 5, -45, -30, 61,\n 51, 70, 100, -80, -21, 85, 94, -27, 124, 54, 83, -46, -89, 112, 76, -98, 91, -117, -34, 10, -44, -94, -39, -67, -107,\n 82, -119, 87, -84, -95, 94, 89, 101, -97, -92, 18, 82, -90, -24, 94, -17, -3, -34, 76, 17, 43, 60, 5, 88, -84,\n 99, 95, -13, 69, -109, -94, 28, -75, 80, 25, -37, 93, 101, 37, 40, 27, 84, -87, -30, -106, -104, 93, -37, -107, 92,\n -34, -91, 89, 95, -98, -93, -40, -22, -20, -33, 69, -52, -111, -47, 28, -35, 17, 19, 78, 5, 102, 91, -125, 77, 96,\n -122, -7, -71, 119, 124, 92, -56, 101, -32, 72, 3, 76, -71, -109, -46, -128, -107, 96, 76, 77, -42, -111, -46, -85, -114,\n 36, -32, -102, -93, -87, 2, -71, 59, -35, 117, -35, -120, 21, -32, -57, -117, 18, -118, -23, -52, -109, -125, -116, 25, -93,\n 95, 20, -74, -102, -47, -38, 26, -61, 36, 89, 25, -42, 37, -82, 4, -36, -107, -101, 97, 61, -46, -114, -53, 117, 94,\n -91, 43, -2, 41, -104, -67, 84, -61, -8, -31, -113, -95, 93, 96, -75, 29, 31, -10, -93, 115, 82, 51, 89, -67, -39,\n 109, 83, -30, -46, 68, -111, -65, 68, -63, -69, 89, -30, -103, 125, 78, 16, -91, 98, 121, -19, 84, 36, -75, 28, -2,\n -83, -55, 15, -36, -68, -51, -53, -30, 58, -51, 96, -55, 83, -49, -30, 35, 19, 49, 54, -64, 28, 54, 73, 53, -58,\n 94, -26, 107, 88, 87, -46, -32, -62, -77, 68, 124, 27, -59, -17, -83, -40, -30, 123, -61, 65, 1, -29, -46, 124, -29,\n 63, -66, 60, -42, 92, 34, 41, 118, 86, -2, -109, -75, 29, 76, 50, 47, -122, -50, -63, -11, -74, 27, 36, -76, -2,\n -94, 99, -50, 93, -42, 45, -126, 100, 109, -43, -75, 67, -82, 56, -124, 101, 84, 18, 108, 83, -44, -107, 26, 36, -114,\n 100, -65, 60, -46, -33, 17, 101, -128, -126, -40, 77, -93, 60, -24, 26, 98, -63, -60, -47, 67, 117, -71, 127, -107, -27,\n -27, -108, -45, 82, 78, -82, -90, 114, -93, -42, 51, -59, 18, -86, -28, 32, -119, 85, 30, -75, -27, -2, -75, 66, 108,\n -126, 102, -112, 124, 90, 102, -61, -60, 76, 86, 80, 107, 13, 85, 3, 94, 101, 97, 54, 90, 24, -67, 32, 106, -82,\n -26, 74, -77, 96, 21, -106, -57, -119, 52, 70, -28, 73, -61, -41, -4, -26, 58, -114, 99, 113, 38, -30, 122, -20, 102,\n 108, -34, -60, 116, -74, 62, 102, -2, -18, 34, 70, 125, -78, 47, 114, 103, 93, 113, 95, 74, -22, -41, -104, 100, -29,\n 115, 6, -48, 123, 94, -74, 20, 93, -116, -84, -19, 86, 127, -66, 20, -128, 30, -93, 113, 38, 103, -1, -28, 60, -28,\n -37, 89, 0, -52, 95, -42, -19, -94, -56, 65, -39, 16, 109, -24, 42, -42, 84, -120, -82, 89, 74, 4, 42, -32, 28,\n 89, 106, 77, -95, 22, 94, 62, -14, -39, 100, -113, -50, 24, -45, 107, 100, 55, 38, -28, 11, 29, 14, 102, -117, 104,\n -74, 101, -24, -67, -127, -65, -106, -58, 94, -113, 82, -72, -104, -106, -23, -119, 110, 99, 21, 69, 103, 113, -60, -55, 32,\n 73, -58, -99, -10, 95, 23, 101, -36, 125, -79, -23, 91, -98, -23, 2, 2, -44, -75, 92, 84, -116, 78, -22, 98, -52,\n -114, -59, 50, -25, 66, 113, -22, -89, 102, -72, 8, -117, -22, -88, -10, -26, 81, -74, -22, -117, -23, -46, 79, 5, -81,\n 13, -36, 41, 55, 44, 92, 69, -39, 39, -114, -18, -45, 124, -58, 13, -78, -10, 23, 82, -98, 58, 120, -31, 106, -83,\n -15, 33, 35, -126, 74, -121, -44, -111, -117, -75, 88, -112, -61, -21, -99, 46, -62, 122, 54, 46, -23, -99, -83, 76, -51,\n -49, -34, -20, 26, -63, 14, 92, -25, 104, 56, 116, -99, -21, -36, 101, 69, -7, -83, 44, -25, 91, -59, 64, -94, 37,\n -7, 104, 103, -103, -55, -57, -78, 74, 62, -79, -106, 108, -2, -105, 14, 106, -69, -98, -74, -53, 102, -84, 51, -86, -65,\n -20, 52, -23, 58, 105, -20, -20, 81, -25, -49, 114, -19, -122, -66, -53, -32, -78, -20, -61, -90, -20, -1, 90, -106, 57,\n 9, -19, 35, 52, -24, -73, 22, 109, -121, 38, 109, -83, -66, -82, -55, 67, 78, -84, -10, 78, 71, -82, 15, -39, 102,\n 83, -82, 27, 97, -22, 91, 110, 119, 62, 99, 98, -26, -109, -37, -58, 109, -104, 116, 27, 16, -98, 31, -24, -58, -103,\n -14, -19, -51, 26, 11, 76, -32, -42, 91, -98, -94, 101, -30, 118, -31, -111, 110, -68, 31, -78, -52, -92, 13, 102, -97,\n -36, 97, -40, -82, 60, -118, 11, -17, 127, 14, 107, -21, -114, -104, -76, 54, -18, 79, -106, 51, 41, 68, -29, -34, 118,\n 30, -110, 99, 60, -10, -106, 111, 35, -111, 86, -62, -2, -110, -19, -58, -62, 118, -60, -48, 31, 92, -34, -110, 57, -31,\n -2, 38, -24, -3, -51, 110, 1, 127, 20, -88, 68, 109, -114, -87, -18, -6, -50, -41, -90, 97, -32, -85, 29, -40, 6,\n -33, -76, -83, 13, -16, 9, 7, -25, -31, -10, -36, -12, -71, 111, -4, 22, -22, 118, 114, -16, -14, 58, -16, 110, 105,\n 25, 53, 11, 65, 23, -9, -25, -60, -2, -43, 19, -57, 44, -52, 69, -17, -110, -90, -38, 68, -42, 109, -90, 117, 92,\n -101, -14, -15, 17, -9, 22, -71, -76, -15, -59, 59, 95, 105, 26, 91, 37, 71, -2, 86, 59, 21, -14, 35, 68, -68,\n -43, -106, -16, 33, 15, 110, 127, -93, 110, 20, -9, -68, -77, -78, 97, -72, -35, -17, 68, 110, -17, -93, 49, -24, 41,\n -9, 94, 60, -77, -14, 43, 23, 100, 12, 70, -42, 28, 102, -19, 84, -67, -21, 48, -1, -105, -9, 61, -21, -31, 45,\n -13, 49, -92, 109, -2, -98, 31, 59, -26, 69, 54, 111, -13, 127, -122, -16, -58, 34, 115, 12, 103, 114, 43, -58, -63,\n 88, -68, 115, 60, -65, -21, 25, -113, -18, 78, 37, 36, 63, -1, 115, 26, -4, 91, 23, 82, -17, 96, -69, -26, -83,\n 62, 116, 97, 102, 106, 126, -69, 54, 17, 55, 87, 118, -108, -26, 71, -105, -14, 40, -3, -40, 60, -41, 115, 71, -79,\n 116, 57, -21, 50, 63, 13, -22, -15, -18, -12, -28, 30, 71, 76, 47, 111, 81, 7, 28, -38, 5, 96, -11, 61, -11,\n -23, 30, 79, -106, 6, -16, 76, 119, 52, -81, 122, -11, -6, 109, 81, -30, 60, 52, 74, 87, -68, 112, -114, -36, 46,\n -105, -15, 59, 12, -94, 96, 87, -29, 90, -28, -50, 55, 69, 110, 87, 79, -30, -1, -28, -103, 104, -37, 109, 6, -105,\n 67, -17, -2, 105, 94, -9, -56, 98, -87, -62, 35, 38, -67, 100, 26, -17, 102, -30, 87, 106, 47, -10, -48, -107, -93,\n -72, -50, 118, 45, -66, 98, 42, -110, -89, 11, -82, 106, 70, 55, -15, 66, 14, -44, 52, -116, 108, -120, -2, 11, 104,\n 116, 39, -15, -66, 5, 119, -54, -48, -11, 112, 110, -60, 85, 103, 94, -34, -18, -40, 82, 74, 118, -13, 117, -27, -75,\n 43, 104, 48, 95, -32, 126, -81, 112, 66, -89, 50, -126, -65, 106, 95, 122, -8, -33, -3, -32, -38, -122, -13, 58, 23,\n -8, 56, 126, 104, -58, 110, -8, 47, -98, -26, 123, -65, -52, 106, -124, -25, -128, -57, 90, -105, 12, 90, 109, -30, -8,\n 16, -90, 39, -119, 87, 92, 95, 15, 98, 120, 31, -32, -50, -43, 113, 120, -65, -11, -44, 53, 101, 72, -12, -8, -113,\n 111, 102, 8, 63, 65, -25, 6, -38, -127, -66, 100, -29, 49, 62, -25, 85, 101, -100, -49, 121, -78, -36, 121, -97, 61,\n 35, 112, -13, -54, 64, 87, -20, 60, 61, -10, -94, 50, 122, -66, 44, 113, 68, 43, -60, -107, 79, 119, 45, 105, -7,\n -55, -70, 122, -113, 105, 118, 74, -106, -6, -93, 111, 122, -98, 63, -61, 125, -117, 17, 80, 55, 123, -101, -105, -61, 86,\n -97, 48, -80, -49, 105, -79, 95, -31, 119, -11, 116, -30, 21, -7, -96, -9, -20, -106, 26, -7, -74, -105, -74, -73, 39,\n 48, 39, 39, 122, 103, -74, -25, 56, 92, 123, -74, -49, -5, 64, 68, 122, 64, -89, -9, -104, -73, -8, -124, -49, 63,\n -63, -33, 106, -62, 47, -4, -67, -9, 84, -82, -41, 68, -125, -97, 50, -69, -113, -6, -57, -73, -47, 55, -105, 124, -22,\n 52, -37, -2, 27, 34, 119, -17, 107, 124, -45, -50, -4, -101, -116, 124, -105, -60, -13, -77, -81, 71, -48, 15, 125, -52,\n 39, -3, -89, -82, -38, -98, 47, 123, -11, -93, 121, 45, 20, 125, 3, 119, -3, 89, -36, -4, -116, 7, -51, 1, 68,\n 90, -120, -76, -3, 11, -57, -3, -68, -58, -66, -54, 70, 124, 68, 22, -91, 126, 38, 76, -32, 95, 116, -31, -81, 45,\n -35, 71, 94, -71, -105, -3, 34, -59, -51, -27, 55, -11, -26, 23, -45, -92, -124, 116, -34, 23, -89, -23, -84, -2, -22,\n -67, 126, -25, 34, -2, -33, -101, 124, 8, -27, -2, -18, 31, 50, 73, 127, 118, -16, -65, 37, 67, 78, -17, 72, 55,\n -1, -13, -105, -79, 111, 75, -3, 35, 95, 127, -100, 18, 127, -125, 122, 127, 65, 19, -47, -128, -53, -31, -54, 7, -120,\n 0, 2, 7, 18, 44, 104, 112, -96, 0, 0, 10, 23, 50, 108, -24, -16, 33, -60, -120, 18, 39, 82, -84, 104, -15,\n 34, -58, -116, 26, 55, 114, -20, -24, -15, 35, -56, -123, 2, 4, -114, 60, 104, -14, 100, -128, -110, 7, 71, 38, 12,\n -23, -14, 37, -52, -104, 27, 85, -94, 60, -39, 82, 38, -50, -100, 58, 119, -30, -92, 89, -45, -96, -128, -101, 24, 125,\n 6, -3, 105, 20, 40, -49, -92, 74, -105, 50, 109, -22, 84, 105, 73, -97, 71, -127, -94, 12, -6, -12, 42, -42, -105,\n 82, -89, 10, -51, -22, -11, 43, -2, 88, -122, 91, 127, 90, -19, 72, -77, -24, -44, -93, 93, -61, -78, 109, -21, -10,\n -19, 85, -107, 99, -45, -90, -84, 10, -9, 46, -40, -71, 85, -41, -30, -19, -21, 87, -93, -34, -96, -126, 7, -125, -108,\n 11, 64, 47, 93, -110, 127, 23, 51, 110, -36, 88, 110, -30, -107, 104, 11, -14, 117, 108, 57, 36, 98, -54, -107, 47,\n 115, -10, 59, -103, -14, -50, -88, -103, 19, 111, -18, 108, -6, 52, 106, -114, 103, 35, 35, 61, 44, 88, 113, -22, -40,\n 67, 7, -45, -82, 93, 90, 54, 110, -84, -97, -53, -22, 20, 124, -72, 46, -21, -107, 95, 121, -25, 46, 110, -4, 35,\n -28, -32, -96, -59, -34, 62, -18, -4, 57, 116, -73, 69, -101, 107, 117, 61, 90, 109, 88, -33, -47, -73, 115, -1, -115,\n 80, -7, -14, -18, -30, -57, -109, 127, 74, 61, -26, -21, -49, -84, -49, -13, -116, 90, -2, 125, -22, -43, -32, 9, -78,\n -121, 111, -1, 62, -2, -20, 9, -81, -37, -51, -98, 50, 63, -128, -98, 81, 54, 31, 125, 1, 26, 120, 32, -126, -70,\n -127, 87, 95, 123, 12, 38, -8, 32, 122, -12, 17, 24, 30, -124, 21, 90, 120, -31, 80, 11, 74, -73, 31, -122, 29,\n -54, 68, -44, -124, 5, 122, 56, 34, -119, 24, -14, -41, 90, 91, -124, -107, -72, -30, 76, 3, -122, -8, 31, -117, 49,\n -54, 120, -33, -119, 20, -78, 53, -35, -116, 57, 70, 4, -2, 98, -120, 14, -22, -8, 35, -112, -114, -115, 53, -105, 118,\n -46, -111, 68, 91, -112, 51, -14, 56, -95, -113, 73, 58, -7, 100, -118, 72, -99, 85, 36, 92, 91, 53, 9, 37, -115,\n 18, 46, -88, 34, -106, 93, 122, -23, 25, 90, 55, -79, 116, 37, 83, 86, 126, 57, -94, 124, 116, 33, 121, 38, -101,\n 109, -34, 69, -100, 107, -116, -103, -23, -90, -123, 105, -90, 69, 38, -99, 121, -22, 25, -38, 98, 86, -30, -71, -25, 113,\n 75, -34, 9, 40, -95, -123, -42, -87, -103, -95, 7, 10, -54, 85, -94, -115, 58, -118, -33, 89, -113, 2, -72, 40, 118,\n -110, 90, 122, 41, 116, -122, 97, 106, 31, -91, -110, -123, -71, 41, -88, -95, 50, 39, -26, -97, -24, 53, -28, -98, -88,\n -28, 117, -118, 34, -107, -87, -70, -22, -88, 104, 44, 25, -39, 82, 122, -81, -114, 87, 91, -91, -74, -22, 42, -23, -100,\n -2, -91, 52, 38, -100, -69, 58, 71, 106, -91, -91, 10, 123, -84, -116, 82, 25, 91, 24, -118, -56, 102, -86, 16, 75,\n -40, 5, -21, 44, -75, 94, 42, 123, 35, 125, -53, 86, 91, 37, -83, -64, -111, -43, -22, -74, -31, 62, 25, -87, -81,\n -80, -119, 27, 104, -73, -4, 77, 123, 46, -69, 57, 106, 58, 28, -71, -19, 26, -105, 110, -82, -14, -38, -85, 35, -72,\n 113, 53, 123, 47, 110, -55, -43, -92, 45, -65, 1, -17, -87, -34, -111, 2, -9, -2, -5, 29, 89, 6, 43, -84, -85,\n -97, 11, -53, -26, -81, 77, 14, 75, 28, -22, -112, 19, -57, 22, 109, -62, 22, 107, 12, -85, 73, 0, 111, -36, 84,\n 84, -33, 126, 60, 50, -95, 21, -109, 124, 89, -56, 54, 121, 124, 50, -53, -121, 10, -41, -14, 95, 86, 65, 108, 35,\n -52, 53, -113, -37, -80, -51, 111, 30, -119, 112, -57, 57, -5, 124, -77, 104, 63, -65, -7, 26, -49, 61, 11, 125, -12,\n -113, -21, 34, -99, -105, -117, -3, 45, -3, 52, -44, -37, -38, -23, 116, -44, 85, 91, -3, 106, -104, 70, -83, 124, 53,\n -41, 93, 39, 61, -104, -42, 94, -117, 61, -74, -95, -109, -115, -74, 53, -39, 105, -85, -99, -96, -39, 25, -81, -3, 54,\n -36, 73, -18, -25, 109, -60, 113, -37, 125, 119, -78, -45, -3, -117, 55, -33, 125, -93, 73, 55, 85, 104, -5, 61, 56,\n -31, -90, 17, -35, -79, -32, -123, 43, -66, -72, -100, -121, 35, -60, 56, -28, -111, -33, 90, -76, -71, -110, 91, 126, 121,\n 110, -47, 18, 53, -45, -102, -104, 123, -2, -71, 110, 41, 87, 126, -111, -52, -7, -126, 126, 58, -22, -24, 77, 71, 52,\n -125, -76, 38, -98, 58, -20, -96, 59, -2, -85, -46, -79, -37, 126, 59, 84, -23, 117, -114, 59, -17, -67, -73, 71, -69,\n 92, -81, -5, 62, 124, -22, -91, 3, -1, 43, -15, -55, 43, 111, 86, -23, -34, -115, -71, 60, -12, -47, 59, 83, -124,\n -85, -73, -75, 75, 127, 61, -15, -70, 3, 110, 61, -10, -35, -13, -98, 30, 66, 92, 122, 63, -66, -14, -69, -109, 127,\n 126, -10, -74, -95, -65, 126, -7, -36, -77, -1, 62, -4, -15, -53, 63, 63, -3, -11, -37, 127, 63, -2, -7, -21, -65,\n 63, -1, -3, -81, 24, 16, 0, 0, 59\n };\n}", "private static int galoisMult(int a, int b)\n\t{\n\t\tint result = 0;\n\t\tfor (int i=0; i<8; i++)\n\t\t{\n\t\t\tif((b&1) == 1) //low bit of b set\n\t\t\t\tresult = result^a;\n\t\t\tboolean aHighSet = (a & 128) == 128; //8th bit of a set\n\t\t\ta <<= 1;\n\t\t\tassert (a&1) == 0;\n\t\t\t\n\t\t\ta &= 255; //getting rid of 9th bit\n\t\t\tassert ((a&256) != 256);\n\t\t\t\n\t\t\tif (aHighSet)\n\t\t\t\ta ^= (0x1b);\n\t\t\t\n\t\t\tb >>= 1;\n\t\t\tassert (b&128) != 128; //8 bit is zero\n\t\t}\n\t\treturn result;\n\t}", "void setCategoryBits (long bits);", "public void setBitmapRight(Bitmap b){\n\t\timgRight = b;\n\t\tright.setBitmap(b);\n\t\tinvalidate();\n\t}", "void setBits(int... values);", "private static void m17787a(Bitmap bitmap, byte[] bArr) {\n int i;\n int i2 = 0;\n int[] iArr = new int[(bitmap.getWidth() - 2)];\n bitmap.getPixels(iArr, 0, iArr.length, 1, bitmap.getHeight() - 1, iArr.length, 1);\n for (i = 0; i < iArr.length; i++) {\n if (-16777216 == iArr[i]) {\n C5225r.m17789a(bArr, 12, i);\n break;\n }\n }\n for (i = iArr.length - 1; i >= 0; i--) {\n if (-16777216 == iArr[i]) {\n C5225r.m17789a(bArr, 16, (iArr.length - i) - 2);\n break;\n }\n }\n int[] iArr2 = new int[(bitmap.getHeight() - 2)];\n bitmap.getPixels(iArr2, 0, 1, bitmap.getWidth() - 1, 0, 1, iArr2.length);\n while (i2 < iArr2.length) {\n if (-16777216 == iArr2[i2]) {\n C5225r.m17789a(bArr, 20, i2);\n break;\n }\n i2++;\n }\n for (i = iArr2.length - 1; i >= 0; i--) {\n if (-16777216 == iArr2[i]) {\n C5225r.m17789a(bArr, 24, (iArr2.length - i) - 2);\n return;\n }\n }\n }", "public void LoadSecondMap(int up_offset, int down_offset, int left_offset,\n int right_offset) {\n int counter = 0;\n for (int y = 0; y < MAP_HEIGHT; y++) {\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.waterMap[counter], true);\n backGroundTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.waterMap_base[counter], true);\n grassTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.waterMap_grass[counter], true);\n counter++;\n }\n }\n\n for (int i = 0; i < up_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustUp();\n }\n }\n for (int i = 0; i < down_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustDown();\n }\n }\n for (int i = 0; i < left_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustLeft();\n }\n }\n for (int i = 0; i < right_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustRight();\n }\n }\n\n this.setGrassTileRaw(Constants.waterMap_grass); // used for IsInGrass\n this.id = 2;\n\n }", "public arm a(int paramInt1, int paramInt2)\r\n/* 18: */ {\r\n/* 19:32 */ return this.b[(paramInt1 & 0xF | (paramInt2 & 0xF) << 4)];\r\n/* 20: */ }", "public void adjustMap(MapData mapd){\n int[][] map = mapd.getMap();\n int mx=mapd.getX();\n int my=mapd.getY();\n for(int y=0;y<my;y++){\n for(int x=0;x<mx;x++){\n boolean l = false;\n boolean r = false;\n boolean t = false;\n boolean b = false;\n boolean tl = false;\n boolean tr = false;\n boolean bl = false;\n boolean br = false;\n \n\n if(map[x][y]>0 && map[x][y]<26) {\n int mustSet = 0;\n //LEFT\n if (x > 0 && map[x - 1][y] > 0 && map[x-1][y]<26) {\n l = true;\n }\n //RIGHT\n if (x < mx - 1 && map[x + 1][y] > 0 && map[x+1][y]<26) {\n r = true;\n }\n //TOP\n if (y > 0 && map[x][y - 1] > 0 && map[x][y-1]<26) {\n t = true;\n }\n //Bottom\n if (y < my - 1 && map[x][y + 1] > 0 && map[x][y+1]<26) {\n b = true;\n }\n //TOP LEFT\n if (x > 0 && y > 0 && map[x - 1][y - 1] > 0 && map[x-1][y-1]<26) {\n tl = true;\n }\n //TOP RIGHT\n if (x < mx - 1 && y > 0 && map[x + 1][y - 1] > 0 && map[x+1][y-1]<26) {\n tr = true;\n }\n //Bottom LEFT\n if (x > 0 && y < my - 1 && map[x - 1][y + 1] > 0 && map[x-1][y+1]<26) {\n bl = true;\n }\n //Bottom RIGHT\n if (x < mx - 1 && y < my - 1 && map[x + 1][y + 1] > 0 && map[x+1][y+1]<26) {\n br = true;\n }\n\n //Decide Image to View\n if (!r && !l && !t && !b) {\n mustSet = 23;\n }\n if (r && !l && !t && !b) {\n mustSet = 22;\n }\n if (!r && l && !t && !b) {\n mustSet = 25;\n }\n if (!r && !l && t && !b) {\n mustSet = 21;\n }\n if (!r && !l && !t && b) {\n mustSet = 19;\n }\n if (r && l && !t && !b) {\n mustSet = 24;\n }\n if (!r && !l && t && b) {\n mustSet = 20;\n }\n if (r && !l && t && !b && !tr) {\n mustSet = 11;\n }\n if (r && !l && t && !b && tr) {\n mustSet = 2;\n }\n if (!r && l && t && !b && !tl) {\n mustSet = 12;\n }\n if (!r && l && t && !b && tl) {\n mustSet = 3;\n }\n if (r && !l && !t && b && br) {\n mustSet = 1;\n }\n if (r && !l && !t && b && !br) {\n mustSet = 10;\n }\n if (!r && l && !t && b && bl) {\n mustSet = 4;\n }\n if (r && !l && t && b && !tr) {\n mustSet = 15;\n }\n if (r && !l && t && b && tr) {\n mustSet = 6;\n }\n if (!r && l && t && b && !tl) {\n mustSet = 17;\n }\n if (!r && l && t && b && tl) {\n mustSet = 8;\n }\n if (r && l && !t && b && !br) {\n mustSet = 14;\n }\n if (r && l && !t && b && br) {\n mustSet = 5;\n }\n if (r && l && t && !b && !tr) {\n mustSet = 16;\n }\n if (r && l && t && !b && tr) {\n mustSet = 7;\n }\n if (!r && l && !t && b && !bl) {\n mustSet = 13;\n }\n if (r && l && t && b && br && tl) {\n mustSet = 9;\n }\n if (r && l && t && b && !br && !tl) {\n mustSet = 18;\n }\n\n //System.out.println(\"MAP SEGMENT : \" + mustSet);\n map[x][y] = mustSet;\n }\n mapd.setMap(map);\n }\n }\n System.out.println(\"Map Adjust OK !\");\n }", "private void createBitStremMap(){\n itemListMap = new HashMap<>();\n \n for (ArrayList<Integer> transactions_set1 : transactions_set) {\n ArrayList curr_tr = (ArrayList) transactions_set1;\n if(curr_tr.size() >= min_itemset_size_K) \n for (Object curr_tr1 : curr_tr) {\n int item = (int) curr_tr1;\n itemListMap.put(item, itemListMap.getOrDefault(item, 0)+1);\n }\n }\n \n // 3. Remove items without minimum support\n itemListMap.values().removeIf(val -> val<min_sup);\n \n // 4. Sort the map to a set of entries\n Set<Map.Entry<Integer, Integer>> set = itemListMap.entrySet();\n frequentItemListSetLenOne = new ArrayList<>(set);\n Collections.sort( frequentItemListSetLenOne, new Comparator<Map.Entry<Integer, Integer>>(){\n @Override\n public int compare( Map.Entry<Integer, Integer> o1, Map.Entry<Integer, Integer> o2 )\n {\n return (o2.getValue()).compareTo( o1.getValue() );\n }\n });\n\n // 5.\n itemIndex = new HashMap<>();\n for(Map.Entry<Integer, Integer> entry : frequentItemListSetLenOne){\n itemIndex.put(entry.getKey(), itemIndex.size());\n }\n\n // 6.\n bitsetLen = frequentItemListSetLenOne.size();\n }", "protected final void operationCPY(final int data) {\r\n this.carryFlag = this.y >= data;\r\n this.zeroFlag = this.y == data;\r\n this.signFlag = ((this.y - data) & 0xff) >= 0x80;\r\n }", "private static void m17789a(byte[] bArr, int i, int i2) {\n bArr[i + 0] = (byte) (i2 >> 0);\n bArr[i + 1] = (byte) (i2 >> 8);\n bArr[i + 2] = (byte) (i2 >> 16);\n bArr[i + 3] = (byte) (i2 >> 24);\n }", "public static void main(String[] args)\n {\n BitSet bs1 = new BitSet();\n BitSet bs2 = new BitSet();\n\n /* assigning values to set1*/\n bs1.set(0);\n bs1.set(1);\n bs1.set(3);\n bs1.set(4);\n\n // assign values to bs2\n bs2.set(4);\n bs2.set(6);\n bs2.set(5);\n bs2.set(1);\n bs2.set(2);\n bs2.set(3);\n bs2.set(12);\n\n // Printing the 2 Bitsets\n System.out.println(\"bs1 : \" + bs1);\n System.out.println(\"bs2 : \" + bs2);\n\n // Print the first clear bit of bs1\n System.out.println(bs1.nextClearBit(1));\n\n // Print the first clear bit of bs2 after index 3\n System.out.println(bs2.nextClearBit(3));\n }", "void setCollideBits (long bits);", "public void mo1284a(Bitmap bitmap) {\n C3037a a = this.f9475e.m11976a(C0987h.m3406a(bitmap), bitmap.getConfig());\n this.f9476f.m3539a(a, bitmap);\n bitmap = m11980a(bitmap.getConfig());\n Integer num = (Integer) bitmap.get(Integer.valueOf(a.f9469b));\n Integer valueOf = Integer.valueOf(a.f9469b);\n int i = 1;\n if (num != null) {\n i = 1 + num.intValue();\n }\n bitmap.put(valueOf, Integer.valueOf(i));\n }", "public Bitmap mo8554a(BitmapPool bitmapPool, Bitmap bitmap, int i, int i2) {\n C12932j.m33818b(bitmapPool, \"pool\");\n C12932j.m33818b(bitmap, \"srcBmp\");\n Bitmap bitmap2 = bitmapPool.get(i, i2, bitmap.getConfig());\n C12932j.m33815a((Object) bitmap2, \"pool.get(outWidth, outHeight, srcBmp.config)\");\n Canvas canvas = new Canvas(bitmap2);\n canvas.drawBitmap(bitmap, 0.0f, 0.0f, this.f7473c);\n TextPaint textPaint = new TextPaint(this.f7472b);\n float f = this.f7478h;\n if (f > ((float) 0) && f <= ((float) 1)) {\n textPaint.setTextSize(f * ((float) Math.min(i, i2)));\n }\n Layout a = m8723a(canvas.getWidth() - (this.f7479i * 2), textPaint);\n canvas.save();\n canvas.translate(((float) (canvas.getWidth() - a.getWidth())) / 2.0f, ((float) (canvas.getHeight() - a.getHeight())) / 2.0f);\n a.draw(canvas);\n canvas.restore();\n return bitmap2;\n }", "private static int setBit(int ci, int bo, int newBit) {\n int clearMask = ~(1 << bo);\n int ciWithBitCleared = ci & clearMask;\n int bitMask = newBit << bo;\n int xiWithNewBitSet = ciWithBitCleared | bitMask;\n return xiWithNewBitSet;\n }", "long getCollideBits();", "void setBit(int index, int value);", "public int bitAt(int i) {\n // PUT YOUR CODE HERE\n }", "public static void main(String[] args) {\n\t\tBitSet bits1 = new BitSet(16);\n\t\tBitSet bits2 = new BitSet(16);\n\n\t\t// set some bits\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tif ((i % 2) == 0) bits1.set(i);\n\t\t\tif ((i % 5) != 0) bits2.set(i);\n\t\t}\n\t\tSystem.out.println(\"Initial pattern in bits1: \");\n\t\tSystem.out.println(bits1);\n\t\tSystem.out.println(\"\\nInitial pattern in bits2: \");\n\t\tSystem.out.println(bits2);\n\n\t\t// AND bits\n\t\tbits2.and(bits1);\n\t\tSystem.out.println(\"\\nbits2 AND bits1: \");\n\t\tSystem.out.println(bits2);\n\n\t\t// OR bits\n\t\tbits2.or(bits1);\n\t\tSystem.out.println(\"\\nbits2 OR bits1: \");\n\t\tSystem.out.println(bits2);\n\n\t\t// XOR bits\n\t\tbits2.xor(bits1);\n\t\tSystem.out.println(\"\\nbits2 XOR bits1: \");\n\t\tSystem.out.println(bits2);\n\t}", "Bitmap m7900a(Bitmap bitmap);", "public final void mo8280a(int i, int i2, C1207m c1207m) {\n }", "protected void reduceBitmapMode(BufferedImage img, int xoffs, int yoffs) {\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tMap<Integer, Integer>[] histograms = new Map[(img.getWidth() + 7) / 8];\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tMap<Integer, Integer>[] histogramSides = new Map[(img.getWidth() + 7) / 8];\n \t\t\n \t\t// be sure we select the 8 pixel groups sensibly\n \t\tif ((xoffs & 7) > 3)\n \t\t\txoffs = (xoffs + 7) & ~7;\n \t\telse\n \t\t\txoffs = xoffs & ~7;\n \t\t\n \t\tint width = img.getWidth();\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\t// first scan: get histogram for each range\n \t\t\t\n \t\t\tfor (int x = 0; x < width; x += 8) {\n \t\t\t\tMap<Integer, Integer> histogram = new HashMap<Integer, Integer>();\n \t\t\t\tMap<Integer, Integer> histogramSide = new HashMap<Integer, Integer>();\n \t\t\t\t\n \t\t\t\thistograms[x / 8] = histogram;\n \t\t\t\thistogramSides[x / 8] = histogramSide;\n \t\t\t\t\n \t\t\t\tint maxx = x + 8 < width ? x + 8 : width;\n \t\t\t\t\n \t\t\t\tint scmx;\n \t\t\t\tint scmn;\n \t\t\t\t\n \t\t\t\t// scan outside the 8 pixels to get a broader\n \t\t\t\t// idea of what colors are important\n \t\t\t\tscmn = Math.max(0, x - 4);\n \t\t\t\tscmx = Math.min(width, maxx + 4);\n \t\t\t\t\n \t\t\t\tint pixel = 0;\n \t\t\t\tfor (int xd = scmn; xd < scmx; xd++) {\n \t\t\t\t\tif (xd < width)\n \t\t\t\t\t\tpixel = img.getRGB(xd, y);\n \t\t\t\t\t\n \t\t\t\t\tMap<Integer, Integer> hist = (xd >= x && xd < maxx) ? histogram : histogramSide;\n \t\t\t\t\t\n \t\t\t\t\tInteger cnt = hist.get(pixel);\n \t\t\t\t\tif (cnt == null)\n \t\t\t\t\t\tcnt = 1;\n \t\t\t\t\telse\n \t\t\t\t\t\tcnt++;\n \t\t\t\t\t\n \t\t\t\t\thist.put(pixel, cnt);\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\n \t\t\tfor (int x = 0; x < width; x += 8) {\n \t\t\t\tMap<Integer, Integer> histogram = histograms[x / 8];\n \t\t\t\tMap<Integer, Integer> histogramSide = histogramSides[x / 8];\n \t\t\t\t\n \t\t\t\tint maxx = x + 8 < width ? x + 8 : width;\n \t\t\t\t\n \t\t\t\t// get prominent colors, weighing colors that also\n \t\t\t\t// appear in surrounding pixels higher \n \t\t\t\tList<Pair<Integer, Integer>> sorted = new ArrayList<Pair<Integer,Integer>>();\n \t\t\t\tfor (Map.Entry<Integer, Integer> entry : histogram.entrySet()) {\n \t\t\t\t\tInteger c = entry.getKey();\n \t\t\t\t\tint cnt = entry.getValue() * 2;\n \t\t\t\t\tInteger scnt = histogramSide.get(c);\n \t\t\t\t\tif (scnt != null)\n \t\t\t\t\t\tcnt += scnt;\n \t\t\t\t\tsorted.add(new Pair<Integer, Integer>(c, cnt));\n \t\t\t\t}\n \t\t\t\tCollections.sort(sorted, new Comparator<Pair<Integer, Integer>>() {\n \t\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic int compare(Pair<Integer, Integer> o1,\n \t\t\t\t\t\t\tPair<Integer, Integer> o2) {\n \t\t\t\t\t\treturn o2.second - o1.second;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t});\n \t\n \t\t\t\tint fpixel, bpixel;\n \t\t\t\tif (sorted.size() >= 2) {\n \t\t\t\t\tfpixel = sorted.get(0).first;\n \t\t\t\t\tbpixel = sorted.get(1).first;\n \t\t\t\t} else {\n \t\t\t\t\tfpixel = bpixel = sorted.get(0).first;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tint newPixel = 0;\n \t\t\t\tfor (int xd = x; xd < maxx; xd++) {\n \t\t\t\t\tif (xd < width)\n \t\t\t\t\t\tnewPixel = img.getRGB(xd, y);\n \t\t\t\t\t\n \t\t\t\t\tif (newPixel != fpixel && newPixel != bpixel) {\n \t\t\t\t\t\tif (fpixel < bpixel) {\n \t\t\t\t\t\t\tnewPixel = newPixel <= fpixel ? fpixel : bpixel;\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tnewPixel = newPixel < bpixel ? fpixel : bpixel;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\timageData.setPixel(xd + xoffs, y + yoffs, newPixel);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public int addMap(GlobalMap otherMap){\r\n\t\tif(otherMap.getMap().size() < 3) return -1;\r\n\t\t/*map exists, but i need to re-mix it*/\r\n\t\tif(this.getCT() > (SimClock.getTime() - TIMEOUT)){\r\n\t\t\tthis.mapExists = false;\r\n\t\t}\r\n\t\tif(mapExists && synced == -1){\r\n\t\t\tlocalmix();\r\n\t\t}\t\r\n\t\t/*if i cant make a map yet, i use the one i got*/\r\n\t\telse if(!mapExists){\r\n\t\t\tint c = makeGlobal();\r\n\t\t\tif(c < 0){\r\n\t\t\t\tif(otherMap.getCT() > (SimClock.getTime() - TIMEOUT)){\r\n\t\t\t\t\tthis.globalMap = otherMap.globalMap;\r\n\t\t\t\t\tthis.myMapNodes = otherMap.myMapNodes;\r\n\t\t\t\t\tthis.synced = 1;\r\n\t\t\t\t\tthis.mapExists = true;\r\n\t\t\t\t\tthis.ref_id = otherMap.ref_id;\r\n\t\t\t\t\tthis.ref_c = otherMap.ref_c;\r\n\t\t\t\t\t//core.Debug.p(\"a\");\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tthis.synced = 0;\r\n\t\t\t\tthis.mapExists = true;\r\n\t\t\t\t//core.Debug.p(\"b\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*if i have an updated map, just join them preferring the one that used newer data*/\r\n\t\tif(mapExists && (synced == 0 || synced == 1)){\r\n\t\t\t//core.Debug.p(\"nene\");\r\n\t\t\tboolean newer = this.updateTime < otherMap.updateTime ? true : false;\r\n\t\t\t//have to be careful with shifted values!\r\n\t\t\tCoord c = new Coord(this.ref_c.getX() - otherMap.ref_c.getX(), this.ref_c.getY() - otherMap.ref_c.getY());\r\n\t\t\tMap<Integer, Coord> othershifted = shiftMap(otherMap.getMap(), c);\r\n\t\t\t\r\n\t\t\tfor(Map.Entry<Integer, Coord> node : othershifted.entrySet()){\r\n\t\t\t\tif(globalMap.containsKey(node.getKey())){\r\n\t\t\t\t\tif(newer) globalMap.replace(node.getKey(), node.getValue());\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tglobalMap.put(node.getKey(), node.getValue());\r\n\t\t\t\t\tmyMapNodes.add(node.getKey());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn myMapNodes.size();\r\n\t\t}\r\n\t\telse return -1;\r\n\t}", "public void or(FormatableBitSet otherBit)\n \t{\n \t\tif (otherBit == null) {\n \t\t\treturn;\n \t\t}\n \t\tint otherLength = otherBit.getLength();\n \n \t\tif (otherLength > getLength()) {\n \t\t\tgrow(otherLength);\n \t\t}\n \n \t\tint obByteLen = otherBit.getLengthInBytes();\n \t\tfor (int i = 0; i < obByteLen; ++i) {\n \t\t\tvalue[i] |= otherBit.value[i];\n \t\t}\n \t\tif (SanityManager.DEBUG) {\n \t\t\tSanityManager.ASSERT(invariantHolds(),\"or() broke invariant\");\n \t\t}\n \t}", "public static void setBitmapRange(LongBuffer bitmap, int start, int end) {\n if (isBackedBySimpleArray(bitmap)) {\n Util.setBitmapRange(bitmap.array(), start, end);\n return;\n }\n if (start == end) {\n return;\n }\n int firstword = start / 64;\n int endword = (end - 1) / 64;\n if (firstword == endword) {\n bitmap.put(firstword, bitmap.get(firstword) | ((~0L << start) & (~0L >>> -end)));\n\n return;\n }\n bitmap.put(firstword, bitmap.get(firstword) | (~0L << start));\n for (int i = firstword + 1; i < endword; i++) {\n bitmap.put(i, ~0L);\n }\n bitmap.put(endword, bitmap.get(endword) | (~0L >>> -end));\n }", "public final int mo15605a(Bitmap bitmap) {\n if (bitmap == null) {\n C3900je.m17429b(\"Bitmap is null. Skipping putting into the Memory Map.\");\n return -1;\n }\n int andIncrement = this.f13511b.getAndIncrement();\n this.f13510a.put(Integer.valueOf(andIncrement), bitmap);\n return andIncrement;\n }", "private void populateFromSprite() {\n long start = System.currentTimeMillis();\n int bitSetIndex = 0;\n BufferedImage bImage = (BufferedImage) sprite.m_image;\n //BufferedImage img = ImageIO.read(new File(\"assets/LoopBitmap.bmp\"));\n int color;\n // Loop through image according to scale\n for(int i = 0; i < sprite.getWidth(); i+=scale) {\n for(int j = 0; j < sprite.getHeight(); j+= scale) {\n // Get color at pixel i, j, if black set Bitmap index to true.\n color = bImage.getRGB(i, j);\n if(color == Color.BLACK.getRGB()) { //tempColor.equals(Color.black)) {\n this.set(bitSetIndex, true);\n //System.out.println(\"'BLACK' Color = \"+color + \" i=\"+ i + \", j=\"+j);\n }\n bitSetIndex++;\n }\n }\n long end = System.currentTimeMillis();\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n// System.out.println(\"BITMAP DONE :)\");\n// System.out.println(\"Time to build = \"+(end-start)+\"ms\");\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n }", "void mo88a(byte[] bArr, int i, int i2);", "public void SetBinaryGenotype(BitSet binaryData) {\n this.SetBinaryPhenotype(binaryData);\n this.m_Genotype =(BitSet)binaryData.clone();\n }", "public final void mo14275a(byte[] bArr, byte[] bArr2) {\n this.f10976a.f10927ce = this.f10976a.f10898bq ^ this.f10976a.f10927ce;\n this.f10976a.f10927ce ^= this.f10976a.f10971z;\n this.f10976a.f10874bS = this.f10976a.f10927ce ^ this.f10976a.f10874bS;\n this.f10976a.f10899br = this.f10976a.f10971z & this.f10976a.f10899br;\n this.f10976a.f10899br = this.f10976a.f10876bU ^ this.f10976a.f10899br;\n this.f10976a.f10876bU = this.f10976a.f10855b ^ this.f10976a.f10832ad;\n this.f10976a.f10927ce = this.f10976a.f10876bU ^ this.f10976a.f10789N;\n this.f10976a.f10898bq = this.f10976a.f10789N | this.f10976a.f10876bU;\n this.f10976a.f10898bq = this.f10976a.f10876bU ^ this.f10976a.f10898bq;\n this.f10976a.f10850av = this.f10976a.f10898bq ^ this.f10976a.f10850av;\n this.f10976a.f10898bq = this.f10976a.f10789N | this.f10976a.f10876bU;\n this.f10976a.f10898bq &= this.f10976a.f10840al ^ -1;\n this.f10976a.f10898bq = this.f10976a.f10881bZ ^ this.f10976a.f10898bq;\n this.f10976a.f10871bP = this.f10976a.f10898bq ^ this.f10976a.f10871bP;\n this.f10976a.f10898bq = this.f10976a.f10855b & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10898bq = this.f10976a.f10832ad ^ this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10840al | this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10864bI ^ this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10797V | this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10850av ^ this.f10976a.f10898bq;\n this.f10976a.f10850av = this.f10976a.f10855b ^ this.f10976a.f10963r;\n this.f10976a.f10850av &= this.f10976a.f10971z;\n this.f10976a.f10850av = this.f10976a.f10873bR ^ this.f10976a.f10850av;\n this.f10976a.f10850av = this.f10976a.f10840al & (this.f10976a.f10850av ^ -1);\n this.f10976a.f10850av = this.f10976a.f10899br ^ this.f10976a.f10850av;\n this.f10976a.f10824aV = this.f10976a.f10850av ^ this.f10976a.f10824aV;\n this.f10976a.f10776A = this.f10976a.f10824aV ^ this.f10976a.f10776A;\n this.f10976a.f10824aV = this.f10976a.f10776A & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10850av = this.f10976a.f10792Q | this.f10976a.f10776A;\n this.f10976a.f10873bR = this.f10976a.f10832ad & this.f10976a.f10855b;\n this.f10976a.f10864bI = this.f10976a.f10873bR & this.f10976a.f10840al;\n this.f10976a.f10864bI = this.f10976a.f10867bL ^ this.f10976a.f10864bI;\n this.f10976a.f10864bI &= this.f10976a.f10797V ^ -1;\n this.f10976a.f10861bF = this.f10976a.f10873bR ^ this.f10976a.f10861bF;\n this.f10976a.f10847as = this.f10976a.f10861bF ^ this.f10976a.f10847as;\n this.f10976a.f10847as = this.f10976a.f10797V | this.f10976a.f10847as;\n this.f10976a.f10861bF = this.f10976a.f10873bR & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10861bF = this.f10976a.f10876bU ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10840al | this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10927ce ^ this.f10976a.f10861bF;\n this.f10976a.f10810aH = this.f10976a.f10861bF ^ this.f10976a.f10810aH;\n this.f10976a.f10810aH |= this.f10976a.f10781F;\n this.f10976a.f10810aH = this.f10976a.f10849au ^ this.f10976a.f10810aH;\n this.f10976a.f10835ag = this.f10976a.f10810aH ^ this.f10976a.f10835ag;\n this.f10976a.f10810aH = this.f10976a.f10792Q & (this.f10976a.f10835ag ^ -1);\n this.f10976a.f10849au = this.f10976a.f10776A & (this.f10976a.f10835ag ^ -1);\n this.f10976a.f10861bF = this.f10976a.f10789N | this.f10976a.f10873bR;\n this.f10976a.f10861bF = this.f10976a.f10816aN ^ this.f10976a.f10861bF;\n this.f10976a.f10816aN = this.f10976a.f10873bR & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10816aN = this.f10976a.f10873bR ^ this.f10976a.f10816aN;\n this.f10976a.f10876bU = this.f10976a.f10816aN & (this.f10976a.f10840al ^ -1);\n this.f10976a.f10876bU = this.f10976a.f10814aL ^ this.f10976a.f10876bU;\n this.f10976a.f10864bI = this.f10976a.f10876bU ^ this.f10976a.f10864bI;\n this.f10976a.f10864bI |= this.f10976a.f10781F;\n this.f10976a.f10864bI = this.f10976a.f10898bq ^ this.f10976a.f10864bI;\n this.f10976a.f10837ai = this.f10976a.f10864bI ^ this.f10976a.f10837ai;\n this.f10976a.f10864bI = this.f10976a.f10952g & this.f10976a.f10837ai;\n this.f10976a.f10898bq = this.f10976a.f10952g & (this.f10976a.f10837ai ^ -1);\n this.f10976a.f10898bq &= this.f10976a.f10960o;\n this.f10976a.f10898bq = this.f10976a.f10837ai ^ this.f10976a.f10898bq;\n this.f10976a.f10889bh = this.f10976a.f10837ai ^ this.f10976a.f10889bh;\n this.f10976a.f10876bU = this.f10976a.f10837ai & (this.f10976a.f10788M ^ -1);\n this.f10976a.f10814aL = this.f10976a.f10952g & this.f10976a.f10876bU;\n this.f10976a.f10876bU = this.f10976a.f10952g & this.f10976a.f10876bU;\n this.f10976a.f10876bU = this.f10976a.f10837ai ^ this.f10976a.f10876bU;\n this.f10976a.f10928cf = this.f10976a.f10876bU ^ this.f10976a.f10928cf;\n this.f10976a.f10876bU &= this.f10976a.f10960o ^ -1;\n this.f10976a.f10876bU = this.f10976a.f10837ai ^ this.f10976a.f10876bU;\n this.f10976a.f10867bL = this.f10976a.f10788M & (this.f10976a.f10837ai ^ -1);\n this.f10976a.f10881bZ = this.f10976a.f10952g & this.f10976a.f10867bL;\n this.f10976a.f10881bZ = this.f10976a.f10867bL ^ this.f10976a.f10881bZ;\n this.f10976a.f10881bZ &= this.f10976a.f10960o ^ -1;\n this.f10976a.f10867bL = this.f10976a.f10952g & this.f10976a.f10867bL;\n this.f10976a.f10867bL = this.f10976a.f10960o & (this.f10976a.f10867bL ^ -1);\n this.f10976a.f10867bL = this.f10976a.f10889bh ^ this.f10976a.f10867bL;\n this.f10976a.f10889bh = this.f10976a.f10788M | this.f10976a.f10837ai;\n this.f10976a.f10884bc = this.f10976a.f10952g & (this.f10976a.f10889bh ^ -1);\n this.f10976a.f10864bI = this.f10976a.f10889bh ^ this.f10976a.f10864bI;\n this.f10976a.f10864bI = this.f10976a.f10960o & (this.f10976a.f10864bI ^ -1);\n this.f10976a.f10858bC = this.f10976a.f10889bh & (this.f10976a.f10837ai ^ -1);\n this.f10976a.f10858bC = this.f10976a.f10952g & (this.f10976a.f10858bC ^ -1);\n this.f10976a.f10858bC = this.f10976a.f10889bh ^ this.f10976a.f10858bC;\n this.f10976a.f10889bh = this.f10976a.f10788M & this.f10976a.f10837ai;\n this.f10976a.f10822aT = this.f10976a.f10889bh ^ this.f10976a.f10952g;\n this.f10976a.f10822aT = this.f10976a.f10960o | this.f10976a.f10822aT;\n this.f10976a.f10886be = this.f10976a.f10837ai & (this.f10976a.f10889bh ^ -1);\n this.f10976a.f10888bg = this.f10976a.f10952g & (this.f10976a.f10886be ^ -1);\n this.f10976a.f10843ao = this.f10976a.f10888bg & this.f10976a.f10960o;\n this.f10976a.f10888bg = this.f10976a.f10960o | this.f10976a.f10888bg;\n this.f10976a.f10888bg = this.f10976a.f10926cd ^ this.f10976a.f10888bg;\n this.f10976a.f10886be = this.f10976a.f10952g & (this.f10976a.f10886be ^ -1);\n this.f10976a.f10886be = this.f10976a.f10889bh ^ this.f10976a.f10886be;\n this.f10976a.f10822aT = this.f10976a.f10886be ^ this.f10976a.f10822aT;\n this.f10976a.f10817aO = this.f10976a.f10889bh ^ this.f10976a.f10817aO;\n this.f10976a.f10817aO = this.f10976a.f10960o & this.f10976a.f10817aO;\n this.f10976a.f10817aO = this.f10976a.f10926cd ^ this.f10976a.f10817aO;\n this.f10976a.f10926cd = this.f10976a.f10788M ^ this.f10976a.f10837ai;\n this.f10976a.f10862bG = this.f10976a.f10952g & (this.f10976a.f10926cd ^ -1);\n this.f10976a.f10862bG = this.f10976a.f10889bh ^ this.f10976a.f10862bG;\n this.f10976a.f10864bI = this.f10976a.f10862bG ^ this.f10976a.f10864bI;\n this.f10976a.f10926cd ^= this.f10976a.f10952g;\n this.f10976a.f10843ao = this.f10976a.f10926cd ^ this.f10976a.f10843ao;\n this.f10976a.f10924cb = this.f10976a.f10816aN ^ this.f10976a.f10924cb;\n this.f10976a.f10924cb = this.f10976a.f10797V | this.f10976a.f10924cb;\n this.f10976a.f10924cb = this.f10976a.f10887bf ^ this.f10976a.f10924cb;\n this.f10976a.f10924cb &= this.f10976a.f10781F ^ -1;\n this.f10976a.f10924cb = this.f10976a.f10871bP ^ this.f10976a.f10924cb;\n this.f10976a.f10956k = this.f10976a.f10924cb ^ this.f10976a.f10956k;\n this.f10976a.f10873bR = this.f10976a.f10832ad & (this.f10976a.f10873bR ^ -1);\n this.f10976a.f10873bR = this.f10976a.f10789N | this.f10976a.f10873bR;\n this.f10976a.f10873bR = this.f10976a.f10880bY ^ this.f10976a.f10873bR;\n this.f10976a.f10880bY = this.f10976a.f10840al & (this.f10976a.f10873bR ^ -1);\n this.f10976a.f10880bY = this.f10976a.f10927ce ^ this.f10976a.f10880bY;\n this.f10976a.f10841am = this.f10976a.f10880bY ^ this.f10976a.f10841am;\n this.f10976a.f10873bR &= this.f10976a.f10840al ^ -1;\n this.f10976a.f10873bR = this.f10976a.f10861bF ^ this.f10976a.f10873bR;\n this.f10976a.f10847as = this.f10976a.f10873bR ^ this.f10976a.f10847as;\n this.f10976a.f10847as &= this.f10976a.f10781F ^ -1;\n this.f10976a.f10847as = this.f10976a.f10841am ^ this.f10976a.f10847as;\n this.f10976a.f10954i = this.f10976a.f10847as ^ this.f10976a.f10954i;\n this.f10976a.f10847as = this.f10976a.f10954i & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10841am = this.f10976a.f10954i & this.f10976a.f10782G;\n this.f10976a.f10873bR = this.f10976a.f10841am & (this.f10976a.f10970y ^ -1);\n this.f10976a.f10861bF = this.f10976a.f10841am & (this.f10976a.f10970y ^ -1);\n this.f10976a.f10880bY = this.f10976a.f10954i & this.f10976a.f10782G;\n this.f10976a.f10927ce = this.f10976a.f10954i & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10927ce = this.f10976a.f10782G ^ this.f10976a.f10927ce;\n this.f10976a.f10924cb = this.f10976a.f10954i & this.f10976a.f10782G;\n this.f10976a.f10871bP = this.f10976a.f10954i & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10887bf = this.f10976a.f10955j & (this.f10976a.f10855b ^ -1);\n this.f10976a.f10904bw = this.f10976a.f10887bf ^ this.f10976a.f10904bw;\n this.f10976a.f10904bw &= this.f10976a.f10840al ^ -1;\n this.f10976a.f10904bw = this.f10976a.f10899br ^ this.f10976a.f10904bw;\n this.f10976a.f10877bV = this.f10976a.f10904bw ^ this.f10976a.f10877bV;\n this.f10976a.f10780E = this.f10976a.f10877bV ^ this.f10976a.f10780E;\n this.f10976a.f10814aL = this.f10976a.f10780E | this.f10976a.f10814aL;\n this.f10976a.f10814aL = this.f10976a.f10898bq ^ this.f10976a.f10814aL;\n this.f10976a.f10858bC = this.f10976a.f10780E | this.f10976a.f10858bC;\n this.f10976a.f10858bC = this.f10976a.f10886be ^ this.f10976a.f10858bC;\n this.f10976a.f10881bZ = this.f10976a.f10780E | this.f10976a.f10881bZ;\n this.f10976a.f10881bZ = this.f10976a.f10822aT ^ this.f10976a.f10881bZ;\n this.f10976a.f10869bN = this.f10976a.f10780E ^ this.f10976a.f10869bN;\n this.f10976a.f10822aT = this.f10976a.f10802a | this.f10976a.f10780E;\n this.f10976a.f10886be = this.f10976a.f10822aT & (this.f10976a.f10780E ^ -1);\n this.f10976a.f10898bq = this.f10976a.f10831ac & (this.f10976a.f10886be ^ -1);\n this.f10976a.f10898bq = this.f10976a.f10802a ^ this.f10976a.f10898bq;\n this.f10976a.f10877bV = this.f10976a.f10831ac & (this.f10976a.f10822aT ^ -1);\n this.f10976a.f10877bV = this.f10976a.f10822aT ^ this.f10976a.f10877bV;\n this.f10976a.f10904bw = this.f10976a.f10831ac & (this.f10976a.f10822aT ^ -1);\n this.f10976a.f10899br = this.f10976a.f10802a & this.f10976a.f10780E;\n this.f10976a.f10816aN = this.f10976a.f10831ac & this.f10976a.f10899br;\n this.f10976a.f10816aN = this.f10976a.f10802a ^ this.f10976a.f10816aN;\n this.f10976a.f10926cd = this.f10976a.f10831ac & this.f10976a.f10899br;\n this.f10976a.f10862bG = this.f10976a.f10831ac & this.f10976a.f10899br;\n this.f10976a.f10862bG = this.f10976a.f10780E ^ this.f10976a.f10862bG;\n this.f10976a.f10806aD = this.f10976a.f10802a & (this.f10976a.f10780E ^ -1);\n this.f10976a.f10904bw = this.f10976a.f10806aD ^ this.f10976a.f10904bw;\n this.f10976a.f10897bp = this.f10976a.f10831ac & this.f10976a.f10806aD;\n this.f10976a.f10854az = this.f10976a.f10806aD ^ this.f10976a.f10831ac;\n this.f10976a.f10812aJ = this.f10976a.f10831ac & this.f10976a.f10806aD;\n this.f10976a.f10812aJ = this.f10976a.f10780E ^ this.f10976a.f10812aJ;\n this.f10976a.f10821aS = this.f10976a.f10831ac & this.f10976a.f10806aD;\n this.f10976a.f10930ch = this.f10976a.f10831ac & this.f10976a.f10806aD;\n this.f10976a.f10930ch = this.f10976a.f10899br ^ this.f10976a.f10930ch;\n this.f10976a.f10806aD = this.f10976a.f10831ac & this.f10976a.f10806aD;\n this.f10976a.f10889bh &= this.f10976a.f10780E ^ -1;\n this.f10976a.f10889bh = this.f10976a.f10884bc ^ this.f10976a.f10889bh;\n this.f10976a.f10884bc = this.f10976a.f10831ac & this.f10976a.f10780E;\n this.f10976a.f10884bc = this.f10976a.f10899br ^ this.f10976a.f10884bc;\n this.f10976a.f10931ci = this.f10976a.f10780E & (this.f10976a.f10802a ^ -1);\n this.f10976a.f10897bp = this.f10976a.f10931ci ^ this.f10976a.f10897bp;\n this.f10976a.f10931ci = this.f10976a.f10831ac & this.f10976a.f10931ci;\n this.f10976a.f10864bI = this.f10976a.f10780E | this.f10976a.f10864bI;\n this.f10976a.f10864bI = this.f10976a.f10867bL ^ this.f10976a.f10864bI;\n this.f10976a.f10867bL = this.f10976a.f10831ac & this.f10976a.f10780E;\n this.f10976a.f10867bL = this.f10976a.f10802a ^ this.f10976a.f10867bL;\n this.f10976a.f10928cf &= this.f10976a.f10780E ^ -1;\n this.f10976a.f10928cf = this.f10976a.f10817aO ^ this.f10976a.f10928cf;\n this.f10976a.f10888bg &= this.f10976a.f10780E ^ -1;\n this.f10976a.f10888bg = this.f10976a.f10843ao ^ this.f10976a.f10888bg;\n this.f10976a.f10843ao = this.f10976a.f10802a ^ this.f10976a.f10780E;\n this.f10976a.f10817aO = this.f10976a.f10831ac & (this.f10976a.f10843ao ^ -1);\n this.f10976a.f10931ci = this.f10976a.f10843ao ^ this.f10976a.f10931ci;\n this.f10976a.f10821aS = this.f10976a.f10843ao ^ this.f10976a.f10821aS;\n this.f10976a.f10843ao = this.f10976a.f10831ac & (this.f10976a.f10843ao ^ -1);\n this.f10976a.f10843ao = this.f10976a.f10802a ^ this.f10976a.f10843ao;\n this.f10976a.f10876bU &= this.f10976a.f10780E ^ -1;\n this.f10976a.f10876bU = this.f10976a.f10808aF ^ this.f10976a.f10876bU;\n this.f10976a.f10844ap = this.f10976a.f10887bf ^ this.f10976a.f10844ap;\n this.f10976a.f10900bs = this.f10976a.f10844ap ^ this.f10976a.f10900bs;\n this.f10976a.f10820aR = this.f10976a.f10900bs ^ this.f10976a.f10820aR;\n this.f10976a.f10820aR = this.f10976a.f10783H & (this.f10976a.f10820aR ^ -1);\n this.f10976a.f10820aR = this.f10976a.f10959n ^ this.f10976a.f10820aR;\n this.f10976a.f10790O = this.f10976a.f10820aR ^ this.f10976a.f10790O;\n this.f10976a.f10820aR = this.f10976a.f10970y & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10959n = this.f10976a.f10970y & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10900bs = this.f10976a.f10790O | this.f10976a.f10970y;\n this.f10976a.f10844ap = this.f10976a.f10790O | this.f10976a.f10970y;\n this.f10976a.f10887bf = this.f10976a.f10963r | this.f10976a.f10855b;\n this.f10976a.f10887bf = this.f10976a.f10855b ^ this.f10976a.f10887bf;\n this.f10976a.f10887bf &= this.f10976a.f10971z;\n this.f10976a.f10887bf = this.f10976a.f10923ca ^ this.f10976a.f10887bf;\n this.f10976a.f10815aM = this.f10976a.f10887bf ^ this.f10976a.f10815aM;\n this.f10976a.f10815aM = this.f10976a.f10783H & (this.f10976a.f10815aM ^ -1);\n this.f10976a.f10815aM = this.f10976a.f10874bS ^ this.f10976a.f10815aM;\n this.f10976a.f10958m = this.f10976a.f10815aM ^ this.f10976a.f10958m;\n this.f10976a.f10882ba &= this.f10976a.f10908c ^ -1;\n this.f10976a.f10882ba = this.f10976a.f10865bJ ^ this.f10976a.f10882ba;\n this.f10976a.f10805aC = this.f10976a.f10882ba ^ this.f10976a.f10805aC;\n this.f10976a.f10805aC = this.f10976a.f10833ae | this.f10976a.f10805aC;\n this.f10976a.f10805aC = this.f10976a.f10902bu ^ this.f10976a.f10805aC;\n this.f10976a.f10787L = this.f10976a.f10805aC ^ this.f10976a.f10787L;\n this.f10976a.f10845aq = this.f10976a.f10787L & this.f10976a.f10845aq;\n this.f10976a.f10845aq = this.f10976a.f10964s ^ this.f10976a.f10845aq;\n this.f10976a.f10845aq |= this.f10976a.f10838aj;\n this.f10976a.f10964s = this.f10976a.f10787L & this.f10976a.f10852ax;\n this.f10976a.f10964s = this.f10976a.f10842an ^ this.f10976a.f10964s;\n this.f10976a.f10964s = this.f10976a.f10856bA | this.f10976a.f10964s;\n this.f10976a.f10866bK = this.f10976a.f10787L & this.f10976a.f10866bK;\n this.f10976a.f10866bK = this.f10976a.f10819aQ ^ this.f10976a.f10866bK;\n this.f10976a.f10803aA = this.f10976a.f10787L & (this.f10976a.f10803aA ^ -1);\n this.f10976a.f10803aA = this.f10976a.f10906by ^ this.f10976a.f10803aA;\n this.f10976a.f10851aw = this.f10976a.f10787L & this.f10976a.f10851aw;\n this.f10976a.f10851aw = this.f10976a.f10853ay ^ this.f10976a.f10851aw;\n this.f10976a.f10851aw |= this.f10976a.f10838aj;\n this.f10976a.f10853ay = this.f10976a.f10787L & (this.f10976a.f10896bo ^ -1);\n this.f10976a.f10853ay = this.f10976a.f10804aB ^ this.f10976a.f10853ay;\n this.f10976a.f10964s = this.f10976a.f10853ay ^ this.f10976a.f10964s;\n this.f10976a.f10852ax = this.f10976a.f10787L & this.f10976a.f10852ax;\n this.f10976a.f10852ax = this.f10976a.f10870bO ^ this.f10976a.f10852ax;\n this.f10976a.f10852ax = this.f10976a.f10856bA | this.f10976a.f10852ax;\n this.f10976a.f10903bv = this.f10976a.f10787L & this.f10976a.f10903bv;\n this.f10976a.f10903bv = this.f10976a.f10848at ^ this.f10976a.f10903bv;\n this.f10976a.f10903bv &= this.f10976a.f10838aj ^ -1;\n this.f10976a.f10809aG = this.f10976a.f10787L & (this.f10976a.f10809aG ^ -1);\n this.f10976a.f10809aG = this.f10976a.f10846ar ^ this.f10976a.f10809aG;\n this.f10976a.f10845aq = this.f10976a.f10809aG ^ this.f10976a.f10845aq;\n this.f10976a.f10962q = this.f10976a.f10845aq ^ this.f10976a.f10962q;\n this.f10976a.f10845aq = this.f10976a.f10782G & this.f10976a.f10962q;\n this.f10976a.f10924cb = this.f10976a.f10845aq ^ this.f10976a.f10924cb;\n this.f10976a.f10924cb = this.f10976a.f10970y | this.f10976a.f10924cb;\n this.f10976a.f10809aG = this.f10976a.f10782G & (this.f10976a.f10845aq ^ -1);\n this.f10976a.f10809aG = this.f10976a.f10954i & (this.f10976a.f10809aG ^ -1);\n this.f10976a.f10809aG = this.f10976a.f10845aq ^ this.f10976a.f10809aG;\n this.f10976a.f10846ar = this.f10976a.f10954i & this.f10976a.f10845aq;\n this.f10976a.f10848at = this.f10976a.f10954i & this.f10976a.f10962q;\n this.f10976a.f10870bO = this.f10976a.f10848at & (this.f10976a.f10970y ^ -1);\n this.f10976a.f10870bO = this.f10976a.f10927ce ^ this.f10976a.f10870bO;\n this.f10976a.f10848at = this.f10976a.f10970y | this.f10976a.f10848at;\n this.f10976a.f10853ay = this.f10976a.f10782G & (this.f10976a.f10962q ^ -1);\n this.f10976a.f10853ay ^= this.f10976a.f10954i;\n this.f10976a.f10861bF = this.f10976a.f10853ay ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF &= this.f10976a.f10802a ^ -1;\n this.f10976a.f10804aB = this.f10976a.f10962q & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10906by = this.f10976a.f10954i & this.f10976a.f10804aB;\n this.f10976a.f10906by = this.f10976a.f10845aq ^ this.f10976a.f10906by;\n this.f10976a.f10906by = this.f10976a.f10970y | this.f10976a.f10906by;\n this.f10976a.f10906by = this.f10976a.f10809aG ^ this.f10976a.f10906by;\n this.f10976a.f10880bY = this.f10976a.f10804aB ^ this.f10976a.f10880bY;\n this.f10976a.f10809aG = this.f10976a.f10880bY & (this.f10976a.f10970y ^ -1);\n this.f10976a.f10809aG = this.f10976a.f10847as ^ this.f10976a.f10809aG;\n this.f10976a.f10809aG &= this.f10976a.f10802a ^ -1;\n this.f10976a.f10809aG = this.f10976a.f10870bO ^ this.f10976a.f10809aG;\n this.f10976a.f10880bY = this.f10976a.f10970y & (this.f10976a.f10880bY ^ -1);\n this.f10976a.f10880bY = this.f10976a.f10847as ^ this.f10976a.f10880bY;\n this.f10976a.f10880bY = this.f10976a.f10802a | this.f10976a.f10880bY;\n this.f10976a.f10870bO = this.f10976a.f10804aB & (this.f10976a.f10802a ^ -1);\n this.f10976a.f10804aB |= this.f10976a.f10970y;\n this.f10976a.f10845aq = this.f10976a.f10962q | this.f10976a.f10782G;\n this.f10976a.f10819aQ = this.f10976a.f10845aq ^ this.f10976a.f10954i;\n this.f10976a.f10924cb = this.f10976a.f10819aQ ^ this.f10976a.f10924cb;\n this.f10976a.f10819aQ = this.f10976a.f10845aq & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10871bP = this.f10976a.f10819aQ ^ this.f10976a.f10871bP;\n this.f10976a.f10842an = this.f10976a.f10871bP | this.f10976a.f10970y;\n this.f10976a.f10842an = this.f10976a.f10841am ^ this.f10976a.f10842an;\n this.f10976a.f10842an &= this.f10976a.f10802a ^ -1;\n this.f10976a.f10871bP |= this.f10976a.f10970y;\n this.f10976a.f10871bP = this.f10976a.f10853ay ^ this.f10976a.f10871bP;\n this.f10976a.f10880bY = this.f10976a.f10871bP ^ this.f10976a.f10880bY;\n this.f10976a.f10871bP = this.f10976a.f10954i & (this.f10976a.f10845aq ^ -1);\n this.f10976a.f10871bP = this.f10976a.f10845aq ^ this.f10976a.f10871bP;\n this.f10976a.f10871bP = this.f10976a.f10970y & (this.f10976a.f10871bP ^ -1);\n this.f10976a.f10871bP = this.f10976a.f10927ce ^ this.f10976a.f10871bP;\n this.f10976a.f10870bO = this.f10976a.f10871bP ^ this.f10976a.f10870bO;\n this.f10976a.f10871bP = this.f10976a.f10962q ^ this.f10976a.f10782G;\n this.f10976a.f10927ce = this.f10976a.f10954i & this.f10976a.f10871bP;\n this.f10976a.f10927ce = this.f10976a.f10819aQ ^ this.f10976a.f10927ce;\n this.f10976a.f10804aB = this.f10976a.f10927ce ^ this.f10976a.f10804aB;\n this.f10976a.f10804aB &= this.f10976a.f10802a ^ -1;\n this.f10976a.f10804aB = this.f10976a.f10906by ^ this.f10976a.f10804aB;\n this.f10976a.f10848at = this.f10976a.f10871bP ^ this.f10976a.f10848at;\n this.f10976a.f10861bF = this.f10976a.f10848at ^ this.f10976a.f10861bF;\n this.f10976a.f10873bR = this.f10976a.f10871bP ^ this.f10976a.f10873bR;\n this.f10976a.f10873bR = this.f10976a.f10802a | this.f10976a.f10873bR;\n this.f10976a.f10873bR = this.f10976a.f10924cb ^ this.f10976a.f10873bR;\n this.f10976a.f10846ar = this.f10976a.f10871bP ^ this.f10976a.f10846ar;\n this.f10976a.f10846ar = this.f10976a.f10970y & this.f10976a.f10846ar;\n this.f10976a.f10846ar = this.f10976a.f10847as ^ this.f10976a.f10846ar;\n this.f10976a.f10842an = this.f10976a.f10846ar ^ this.f10976a.f10842an;\n this.f10976a.f10893bl = this.f10976a.f10787L & this.f10976a.f10893bl;\n this.f10976a.f10893bl = this.f10976a.f10857bB ^ this.f10976a.f10893bl;\n this.f10976a.f10852ax = this.f10976a.f10893bl ^ this.f10976a.f10852ax;\n this.f10976a.f10896bo = this.f10976a.f10787L & (this.f10976a.f10896bo ^ -1);\n this.f10976a.f10896bo = this.f10976a.f10859bD ^ this.f10976a.f10896bo;\n this.f10976a.f10896bo |= this.f10976a.f10856bA;\n this.f10976a.f10885bd = this.f10976a.f10787L & (this.f10976a.f10885bd ^ -1);\n this.f10976a.f10885bd = this.f10976a.f10892bk ^ this.f10976a.f10885bd;\n this.f10976a.f10885bd &= this.f10976a.f10838aj ^ -1;\n this.f10976a.f10885bd = this.f10976a.f10803aA ^ this.f10976a.f10885bd;\n this.f10976a.f10968w = this.f10976a.f10885bd ^ this.f10976a.f10968w;\n this.f10976a.f10889bh = this.f10976a.f10968w & (this.f10976a.f10889bh ^ -1);\n this.f10976a.f10889bh = this.f10976a.f10888bg ^ this.f10976a.f10889bh;\n this.f10976a.f10779D = this.f10976a.f10889bh ^ this.f10976a.f10779D;\n this.f10976a.f10814aL &= this.f10976a.f10968w;\n this.f10976a.f10814aL = this.f10976a.f10876bU ^ this.f10976a.f10814aL;\n this.f10976a.f10783H = this.f10976a.f10814aL ^ this.f10976a.f10783H;\n this.f10976a.f10858bC = this.f10976a.f10968w & (this.f10976a.f10858bC ^ -1);\n this.f10976a.f10858bC = this.f10976a.f10864bI ^ this.f10976a.f10858bC;\n this.f10976a.f10801Z = this.f10976a.f10858bC ^ this.f10976a.f10801Z;\n this.f10976a.f10928cf = this.f10976a.f10968w & (this.f10976a.f10928cf ^ -1);\n this.f10976a.f10928cf = this.f10976a.f10881bZ ^ this.f10976a.f10928cf;\n this.f10976a.f10832ad = this.f10976a.f10928cf ^ this.f10976a.f10832ad;\n this.f10976a.f10895bn = this.f10976a.f10787L & (this.f10976a.f10895bn ^ -1);\n this.f10976a.f10895bn = this.f10976a.f10868bM ^ this.f10976a.f10895bn;\n this.f10976a.f10896bo = this.f10976a.f10895bn ^ this.f10976a.f10896bo;\n this.f10976a.f10895bn = this.f10976a.f10836ah & this.f10976a.f10896bo;\n this.f10976a.f10895bn = this.f10976a.f10852ax ^ this.f10976a.f10895bn;\n this.f10976a.f10839ak = this.f10976a.f10895bn ^ this.f10976a.f10839ak;\n this.f10976a.f10895bn = this.f10976a.f10930ch & (this.f10976a.f10839ak ^ -1);\n this.f10976a.f10895bn = this.f10976a.f10843ao ^ this.f10976a.f10895bn;\n this.f10976a.f10895bn = this.f10976a.f10788M & (this.f10976a.f10895bn ^ -1);\n this.f10976a.f10843ao = this.f10976a.f10898bq & (this.f10976a.f10839ak ^ -1);\n this.f10976a.f10843ao = this.f10976a.f10862bG ^ this.f10976a.f10843ao;\n this.f10976a.f10822aT &= this.f10976a.f10839ak ^ -1;\n this.f10976a.f10822aT = this.f10976a.f10816aN ^ this.f10976a.f10822aT;\n this.f10976a.f10822aT = this.f10976a.f10788M & (this.f10976a.f10822aT ^ -1);\n this.f10976a.f10812aJ &= this.f10976a.f10839ak ^ -1;\n this.f10976a.f10812aJ = this.f10976a.f10898bq ^ this.f10976a.f10812aJ;\n this.f10976a.f10816aN = this.f10976a.f10839ak & (this.f10976a.f10897bp ^ -1);\n this.f10976a.f10816aN = this.f10976a.f10899br ^ this.f10976a.f10816aN;\n this.f10976a.f10877bV &= this.f10976a.f10839ak ^ -1;\n this.f10976a.f10877bV = this.f10976a.f10780E ^ this.f10976a.f10877bV;\n this.f10976a.f10822aT = this.f10976a.f10877bV ^ this.f10976a.f10822aT;\n this.f10976a.f10822aT = this.f10976a.f10796U | this.f10976a.f10822aT;\n this.f10976a.f10877bV = this.f10976a.f10898bq & (this.f10976a.f10839ak ^ -1);\n this.f10976a.f10877bV = this.f10976a.f10930ch ^ this.f10976a.f10877bV;\n this.f10976a.f10877bV = this.f10976a.f10788M & this.f10976a.f10877bV;\n this.f10976a.f10867bL = this.f10976a.f10839ak | this.f10976a.f10867bL;\n this.f10976a.f10867bL = this.f10976a.f10854az ^ this.f10976a.f10867bL;\n this.f10976a.f10877bV = this.f10976a.f10867bL ^ this.f10976a.f10877bV;\n this.f10976a.f10822aT = this.f10976a.f10877bV ^ this.f10976a.f10822aT;\n this.f10976a.f10957l = this.f10976a.f10822aT ^ this.f10976a.f10957l;\n this.f10976a.f10842an &= this.f10976a.f10839ak ^ -1;\n this.f10976a.f10842an = this.f10976a.f10880bY ^ this.f10976a.f10842an;\n this.f10976a.f10781F = this.f10976a.f10842an ^ this.f10976a.f10781F;\n this.f10976a.f10842an = this.f10976a.f10781F | this.f10976a.f10832ad;\n this.f10976a.f10822aT = this.f10976a.f10842an & (this.f10976a.f10832ad ^ -1);\n this.f10976a.f10877bV = this.f10976a.f10832ad & this.f10976a.f10781F;\n this.f10976a.f10867bL = this.f10976a.f10832ad & (this.f10976a.f10877bV ^ -1);\n this.f10976a.f10854az = this.f10976a.f10781F & (this.f10976a.f10832ad ^ -1);\n this.f10976a.f10862bG = this.f10976a.f10781F ^ this.f10976a.f10832ad;\n this.f10976a.f10868bM = this.f10976a.f10832ad & (this.f10976a.f10781F ^ -1);\n this.f10976a.f10821aS &= this.f10976a.f10839ak ^ -1;\n this.f10976a.f10821aS = this.f10976a.f10886be ^ this.f10976a.f10821aS;\n this.f10976a.f10886be = this.f10976a.f10839ak | this.f10976a.f10931ci;\n this.f10976a.f10886be = this.f10976a.f10904bw ^ this.f10976a.f10886be;\n this.f10976a.f10886be = this.f10976a.f10788M & (this.f10976a.f10886be ^ -1);\n this.f10976a.f10886be = this.f10976a.f10812aJ ^ this.f10976a.f10886be;\n this.f10976a.f10809aG = this.f10976a.f10839ak | this.f10976a.f10809aG;\n this.f10976a.f10809aG = this.f10976a.f10861bF ^ this.f10976a.f10809aG;\n this.f10976a.f10809aG ^= this.f10976a.f10856bA;\n this.f10976a.f10861bF = this.f10976a.f10839ak & (this.f10976a.f10802a ^ -1);\n this.f10976a.f10861bF = this.f10976a.f10930ch ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10788M & this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10816aN ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10796U | this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10886be ^ this.f10976a.f10861bF;\n this.f10976a.f10955j = this.f10976a.f10861bF ^ this.f10976a.f10955j;\n this.f10976a.f10926cd &= this.f10976a.f10839ak ^ -1;\n this.f10976a.f10926cd = this.f10976a.f10806aD ^ this.f10976a.f10926cd;\n this.f10976a.f10926cd = this.f10976a.f10788M & (this.f10976a.f10926cd ^ -1);\n this.f10976a.f10926cd = this.f10976a.f10843ao ^ this.f10976a.f10926cd;\n this.f10976a.f10884bc = this.f10976a.f10839ak | this.f10976a.f10884bc;\n this.f10976a.f10884bc = this.f10976a.f10897bp ^ this.f10976a.f10884bc;\n this.f10976a.f10895bn = this.f10976a.f10884bc ^ this.f10976a.f10895bn;\n this.f10976a.f10804aB = this.f10976a.f10839ak & (this.f10976a.f10804aB ^ -1);\n this.f10976a.f10804aB = this.f10976a.f10880bY ^ this.f10976a.f10804aB;\n this.f10976a.f10777B = this.f10976a.f10804aB ^ this.f10976a.f10777B;\n this.f10976a.f10804aB = this.f10976a.f10802a & (this.f10976a.f10839ak ^ -1);\n this.f10976a.f10804aB = this.f10976a.f10869bN ^ this.f10976a.f10804aB;\n this.f10976a.f10804aB = this.f10976a.f10788M & (this.f10976a.f10804aB ^ -1);\n this.f10976a.f10870bO &= this.f10976a.f10839ak ^ -1;\n this.f10976a.f10870bO = this.f10976a.f10873bR ^ this.f10976a.f10870bO;\n this.f10976a.f10791P = this.f10976a.f10870bO ^ this.f10976a.f10791P;\n this.f10976a.f10870bO = this.f10976a.f10783H & this.f10976a.f10791P;\n this.f10976a.f10873bR = this.f10976a.f10783H & this.f10976a.f10791P;\n this.f10976a.f10869bN = this.f10976a.f10783H & (this.f10976a.f10791P ^ -1);\n this.f10976a.f10880bY = this.f10976a.f10783H & this.f10976a.f10791P;\n this.f10976a.f10884bc = this.f10976a.f10783H & (this.f10976a.f10791P ^ -1);\n this.f10976a.f10884bc = this.f10976a.f10791P ^ this.f10976a.f10884bc;\n this.f10976a.f10897bp = this.f10976a.f10783H & this.f10976a.f10791P;\n this.f10976a.f10843ao = this.f10976a.f10783H & this.f10976a.f10791P;\n this.f10976a.f10898bq = this.f10976a.f10839ak | this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10817aO ^ this.f10976a.f10898bq;\n this.f10976a.f10804aB = this.f10976a.f10898bq ^ this.f10976a.f10804aB;\n this.f10976a.f10804aB &= this.f10976a.f10796U ^ -1;\n this.f10976a.f10804aB = this.f10976a.f10926cd ^ this.f10976a.f10804aB;\n this.f10976a.f10838aj = this.f10976a.f10804aB ^ this.f10976a.f10838aj;\n this.f10976a.f10804aB = this.f10976a.f10838aj ^ this.f10976a.f10781F;\n this.f10976a.f10899br = this.f10976a.f10839ak | this.f10976a.f10899br;\n this.f10976a.f10899br = this.f10976a.f10931ci ^ this.f10976a.f10899br;\n this.f10976a.f10899br = this.f10976a.f10788M & (this.f10976a.f10899br ^ -1);\n this.f10976a.f10899br = this.f10976a.f10821aS ^ this.f10976a.f10899br;\n this.f10976a.f10899br = this.f10976a.f10796U | this.f10976a.f10899br;\n this.f10976a.f10899br = this.f10976a.f10895bn ^ this.f10976a.f10899br;\n this.f10976a.f10899br ^= this.f10976a.f10836ah;\n this.f10976a.f10896bo |= this.f10976a.f10836ah;\n this.f10976a.f10896bo = this.f10976a.f10852ax ^ this.f10976a.f10896bo;\n this.f10976a.f10829aa = this.f10976a.f10896bo ^ this.f10976a.f10829aa;\n this.f10976a.f10896bo = this.f10976a.f10778C | this.f10976a.f10829aa;\n this.f10976a.f10896bo = this.f10976a.f10786K & (this.f10976a.f10896bo ^ -1);\n this.f10976a.f10896bo = this.f10976a.f10829aa ^ this.f10976a.f10896bo;\n this.f10976a.f10852ax = this.f10976a.f10829aa & (this.f10976a.f10778C ^ -1);\n this.f10976a.f10895bn = this.f10976a.f10829aa & (this.f10976a.f10852ax ^ -1);\n this.f10976a.f10821aS = this.f10976a.f10794S | this.f10976a.f10895bn;\n this.f10976a.f10931ci = this.f10976a.f10786K & this.f10976a.f10852ax;\n this.f10976a.f10931ci = this.f10976a.f10852ax ^ this.f10976a.f10931ci;\n this.f10976a.f10878bW = this.f10976a.f10852ax ^ this.f10976a.f10878bW;\n this.f10976a.f10878bW &= this.f10976a.f10794S ^ -1;\n this.f10976a.f10878bW = this.f10976a.f10901bt ^ this.f10976a.f10878bW;\n this.f10976a.f10878bW = this.f10976a.f10952g & this.f10976a.f10878bW;\n this.f10976a.f10926cd = this.f10976a.f10786K & this.f10976a.f10852ax;\n this.f10976a.f10907bz = this.f10976a.f10852ax ^ this.f10976a.f10907bz;\n this.f10976a.f10878bW = this.f10976a.f10907bz ^ this.f10976a.f10878bW;\n this.f10976a.f10878bW &= this.f10976a.f10837ai ^ -1;\n this.f10976a.f10907bz = this.f10976a.f10786K & (this.f10976a.f10829aa ^ -1);\n this.f10976a.f10827aY = this.f10976a.f10829aa ^ this.f10976a.f10827aY;\n this.f10976a.f10827aY &= this.f10976a.f10794S ^ -1;\n this.f10976a.f10827aY = this.f10976a.f10829aa ^ this.f10976a.f10827aY;\n this.f10976a.f10827aY = this.f10976a.f10952g & this.f10976a.f10827aY;\n this.f10976a.f10827aY = this.f10976a.f10896bo ^ this.f10976a.f10827aY;\n this.f10976a.f10827aY = this.f10976a.f10837ai | this.f10976a.f10827aY;\n this.f10976a.f10896bo = this.f10976a.f10829aa & (this.f10976a.f10794S ^ -1);\n this.f10976a.f10896bo = this.f10976a.f10931ci ^ this.f10976a.f10896bo;\n this.f10976a.f10896bo = this.f10976a.f10952g & this.f10976a.f10896bo;\n this.f10976a.f10896bo = this.f10976a.f10890bi ^ this.f10976a.f10896bo;\n this.f10976a.f10896bo = this.f10976a.f10837ai | this.f10976a.f10896bo;\n this.f10976a.f10890bi = this.f10976a.f10778C & (this.f10976a.f10829aa ^ -1);\n this.f10976a.f10898bq = this.f10976a.f10786K & (this.f10976a.f10890bi ^ -1);\n this.f10976a.f10898bq = this.f10976a.f10829aa ^ this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10794S | this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10926cd ^ this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10952g & this.f10976a.f10898bq;\n this.f10976a.f10926cd = this.f10976a.f10786K & (this.f10976a.f10890bi ^ -1);\n this.f10976a.f10926cd &= this.f10976a.f10794S ^ -1;\n this.f10976a.f10817aO = this.f10976a.f10890bi & (this.f10976a.f10794S ^ -1);\n this.f10976a.f10890bi = this.f10976a.f10786K & this.f10976a.f10890bi;\n this.f10976a.f10890bi = this.f10976a.f10778C ^ this.f10976a.f10890bi;\n this.f10976a.f10890bi &= this.f10976a.f10794S;\n this.f10976a.f10890bi = this.f10976a.f10952g & (this.f10976a.f10890bi ^ -1);\n this.f10976a.f10806aD = this.f10976a.f10778C & this.f10976a.f10829aa;\n this.f10976a.f10861bF = this.f10976a.f10786K & this.f10976a.f10806aD;\n this.f10976a.f10861bF = this.f10976a.f10829aa ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF &= this.f10976a.f10794S ^ -1;\n this.f10976a.f10861bF = this.f10976a.f10931ci ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10952g & (this.f10976a.f10861bF ^ -1);\n this.f10976a.f10806aD ^= this.f10976a.f10786K;\n this.f10976a.f10806aD &= this.f10976a.f10794S;\n this.f10976a.f10806aD = this.f10976a.f10901bt ^ this.f10976a.f10806aD;\n this.f10976a.f10806aD = this.f10976a.f10952g & this.f10976a.f10806aD;\n this.f10976a.f10901bt = this.f10976a.f10778C ^ this.f10976a.f10829aa;\n this.f10976a.f10931ci = this.f10976a.f10786K & (this.f10976a.f10901bt ^ -1);\n this.f10976a.f10931ci = this.f10976a.f10895bn ^ this.f10976a.f10931ci;\n this.f10976a.f10821aS = this.f10976a.f10931ci ^ this.f10976a.f10821aS;\n this.f10976a.f10806aD = this.f10976a.f10821aS ^ this.f10976a.f10806aD;\n this.f10976a.f10821aS = this.f10976a.f10901bt ^ this.f10976a.f10786K;\n this.f10976a.f10931ci = this.f10976a.f10821aS ^ this.f10976a.f10794S;\n this.f10976a.f10890bi = this.f10976a.f10931ci ^ this.f10976a.f10890bi;\n this.f10976a.f10827aY = this.f10976a.f10890bi ^ this.f10976a.f10827aY;\n this.f10976a.f10949d = this.f10976a.f10827aY ^ this.f10976a.f10949d;\n this.f10976a.f10884bc &= this.f10976a.f10949d ^ -1;\n this.f10976a.f10827aY = this.f10976a.f10949d & this.f10976a.f10783H;\n this.f10976a.f10907bz = this.f10976a.f10901bt ^ this.f10976a.f10907bz;\n this.f10976a.f10926cd = this.f10976a.f10907bz ^ this.f10976a.f10926cd;\n this.f10976a.f10861bF = this.f10976a.f10926cd ^ this.f10976a.f10861bF;\n this.f10976a.f10896bo = this.f10976a.f10861bF ^ this.f10976a.f10896bo;\n this.f10976a.f10951f = this.f10976a.f10896bo ^ this.f10976a.f10951f;\n this.f10976a.f10896bo = this.f10976a.f10951f ^ this.f10976a.f10801Z;\n this.f10976a.f10861bF = this.f10976a.f10951f | this.f10976a.f10801Z;\n this.f10976a.f10926cd = this.f10976a.f10861bF & (this.f10976a.f10801Z ^ -1);\n this.f10976a.f10907bz = this.f10976a.f10951f & (this.f10976a.f10801Z ^ -1);\n this.f10976a.f10890bi = this.f10976a.f10801Z & this.f10976a.f10951f;\n this.f10976a.f10931ci = this.f10976a.f10801Z & (this.f10976a.f10890bi ^ -1);\n this.f10976a.f10895bn = this.f10976a.f10786K & this.f10976a.f10901bt;\n this.f10976a.f10895bn = this.f10976a.f10852ax ^ this.f10976a.f10895bn;\n this.f10976a.f10817aO = this.f10976a.f10895bn ^ this.f10976a.f10817aO;\n this.f10976a.f10895bn = this.f10976a.f10952g & this.f10976a.f10817aO;\n this.f10976a.f10895bn = this.f10976a.f10817aO ^ this.f10976a.f10895bn;\n this.f10976a.f10895bn = this.f10976a.f10837ai | this.f10976a.f10895bn;\n this.f10976a.f10895bn = this.f10976a.f10806aD ^ this.f10976a.f10895bn;\n this.f10976a.f10969x = this.f10976a.f10895bn ^ this.f10976a.f10969x;\n this.f10976a.f10804aB &= this.f10976a.f10969x ^ -1;\n this.f10976a.f10895bn = this.f10976a.f10786K & (this.f10976a.f10901bt ^ -1);\n this.f10976a.f10895bn = this.f10976a.f10901bt ^ this.f10976a.f10895bn;\n this.f10976a.f10895bn = this.f10976a.f10794S | this.f10976a.f10895bn;\n this.f10976a.f10895bn = this.f10976a.f10821aS ^ this.f10976a.f10895bn;\n this.f10976a.f10898bq = this.f10976a.f10895bn ^ this.f10976a.f10898bq;\n this.f10976a.f10878bW = this.f10976a.f10898bq ^ this.f10976a.f10878bW;\n this.f10976a.f10963r = this.f10976a.f10878bW ^ this.f10976a.f10963r;\n this.f10976a.f10905bx = this.f10976a.f10787L & (this.f10976a.f10905bx ^ -1);\n this.f10976a.f10905bx = this.f10976a.f10807aE ^ this.f10976a.f10905bx;\n this.f10976a.f10903bv = this.f10976a.f10905bx ^ this.f10976a.f10903bv;\n this.f10976a.f10950e = this.f10976a.f10903bv ^ this.f10976a.f10950e;\n this.f10976a.f10875bT = this.f10976a.f10950e | this.f10976a.f10875bT;\n this.f10976a.f10875bT = this.f10976a.f10879bX ^ this.f10976a.f10875bT;\n this.f10976a.f10875bT = this.f10976a.f10958m & (this.f10976a.f10875bT ^ -1);\n this.f10976a.f10879bX = this.f10976a.f10776A & this.f10976a.f10950e;\n this.f10976a.f10903bv = this.f10976a.f10950e & (this.f10976a.f10879bX ^ -1);\n this.f10976a.f10905bx = this.f10976a.f10792Q | this.f10976a.f10903bv;\n this.f10976a.f10905bx = this.f10976a.f10879bX ^ this.f10976a.f10905bx;\n this.f10976a.f10807aE = this.f10976a.f10835ag | this.f10976a.f10905bx;\n this.f10976a.f10878bW = this.f10976a.f10835ag | this.f10976a.f10903bv;\n this.f10976a.f10850av = this.f10976a.f10903bv ^ this.f10976a.f10850av;\n this.f10976a.f10903bv ^= this.f10976a.f10792Q;\n this.f10976a.f10898bq = this.f10976a.f10792Q | this.f10976a.f10879bX;\n this.f10976a.f10898bq = this.f10976a.f10950e ^ this.f10976a.f10898bq;\n this.f10976a.f10824aV = this.f10976a.f10879bX ^ this.f10976a.f10824aV;\n this.f10976a.f10824aV = this.f10976a.f10835ag | this.f10976a.f10824aV;\n this.f10976a.f10824aV = this.f10976a.f10898bq ^ this.f10976a.f10824aV;\n this.f10976a.f10898bq = this.f10976a.f10792Q | this.f10976a.f10879bX;\n this.f10976a.f10898bq = this.f10976a.f10879bX ^ this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10835ag | this.f10976a.f10898bq;\n this.f10976a.f10895bn = this.f10976a.f10792Q | this.f10976a.f10879bX;\n this.f10976a.f10821aS = this.f10976a.f10826aX & this.f10976a.f10950e;\n this.f10976a.f10821aS = this.f10976a.f10925cc ^ this.f10976a.f10821aS;\n this.f10976a.f10821aS = this.f10976a.f10958m & (this.f10976a.f10821aS ^ -1);\n this.f10976a.f10901bt = this.f10976a.f10950e & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10806aD = this.f10976a.f10835ag | this.f10976a.f10901bt;\n this.f10976a.f10806aD = this.f10976a.f10903bv ^ this.f10976a.f10806aD;\n this.f10976a.f10826aX &= this.f10976a.f10950e ^ -1;\n this.f10976a.f10826aX = this.f10976a.f10863bH ^ this.f10976a.f10826aX;\n this.f10976a.f10875bT = this.f10976a.f10826aX ^ this.f10976a.f10875bT;\n this.f10976a.f10925cc = this.f10976a.f10950e | this.f10976a.f10925cc;\n this.f10976a.f10925cc = this.f10976a.f10894bm ^ this.f10976a.f10925cc;\n this.f10976a.f10894bm = this.f10976a.f10776A & (this.f10976a.f10950e ^ -1);\n this.f10976a.f10828aZ = this.f10976a.f10950e | this.f10976a.f10828aZ;\n this.f10976a.f10828aZ = this.f10976a.f10872bQ ^ this.f10976a.f10828aZ;\n this.f10976a.f10821aS = this.f10976a.f10828aZ ^ this.f10976a.f10821aS;\n this.f10976a.f10860bE &= this.f10976a.f10950e;\n this.f10976a.f10860bE = this.f10976a.f10863bH ^ this.f10976a.f10860bE;\n this.f10976a.f10863bH = this.f10976a.f10776A ^ this.f10976a.f10950e;\n this.f10976a.f10895bn = this.f10976a.f10863bH ^ this.f10976a.f10895bn;\n this.f10976a.f10895bn &= this.f10976a.f10835ag ^ -1;\n this.f10976a.f10828aZ = this.f10976a.f10863bH & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10826aX = this.f10976a.f10792Q | this.f10976a.f10863bH;\n this.f10976a.f10826aX = this.f10976a.f10894bm ^ this.f10976a.f10826aX;\n this.f10976a.f10849au = this.f10976a.f10826aX ^ this.f10976a.f10849au;\n this.f10976a.f10826aX = this.f10976a.f10863bH & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10826aX = this.f10976a.f10776A ^ this.f10976a.f10826aX;\n this.f10976a.f10823aU &= this.f10976a.f10950e ^ -1;\n this.f10976a.f10823aU = this.f10976a.f10872bQ ^ this.f10976a.f10823aU;\n this.f10976a.f10823aU = this.f10976a.f10958m & this.f10976a.f10823aU;\n this.f10976a.f10823aU = this.f10976a.f10925cc ^ this.f10976a.f10823aU;\n this.f10976a.f10925cc = this.f10976a.f10835ag & (this.f10976a.f10823aU ^ -1);\n this.f10976a.f10925cc = this.f10976a.f10875bT ^ this.f10976a.f10925cc;\n this.f10976a.f10840al = this.f10976a.f10925cc ^ this.f10976a.f10840al;\n this.f10976a.f10823aU &= this.f10976a.f10835ag ^ -1;\n this.f10976a.f10823aU = this.f10976a.f10875bT ^ this.f10976a.f10823aU;\n this.f10976a.f10830ab = this.f10976a.f10823aU ^ this.f10976a.f10830ab;\n this.f10976a.f10823aU = this.f10976a.f10830ab | this.f10976a.f10779D;\n this.f10976a.f10875bT = this.f10976a.f10830ab | this.f10976a.f10779D;\n this.f10976a.f10925cc = this.f10976a.f10830ab | this.f10976a.f10779D;\n this.f10976a.f10925cc = this.f10976a.f10779D ^ this.f10976a.f10925cc;\n this.f10976a.f10872bQ = this.f10976a.f10779D ^ this.f10976a.f10830ab;\n this.f10976a.f10825aW &= this.f10976a.f10950e ^ -1;\n this.f10976a.f10825aW = this.f10976a.f10929cg ^ this.f10976a.f10825aW;\n this.f10976a.f10825aW = this.f10976a.f10958m & this.f10976a.f10825aW;\n this.f10976a.f10825aW = this.f10976a.f10860bE ^ this.f10976a.f10825aW;\n this.f10976a.f10860bE = this.f10976a.f10835ag | this.f10976a.f10825aW;\n this.f10976a.f10860bE = this.f10976a.f10821aS ^ this.f10976a.f10860bE;\n this.f10976a.f10785J = this.f10976a.f10860bE ^ this.f10976a.f10785J;\n this.f10976a.f10860bE = this.f10976a.f10949d & (this.f10976a.f10785J ^ -1);\n this.f10976a.f10929cg = this.f10976a.f10949d & (this.f10976a.f10860bE ^ -1);\n this.f10976a.f10894bm = this.f10976a.f10785J & this.f10976a.f10949d;\n this.f10976a.f10903bv = this.f10976a.f10785J & (this.f10976a.f10949d ^ -1);\n this.f10976a.f10817aO = this.f10976a.f10949d | this.f10976a.f10903bv;\n this.f10976a.f10852ax = this.f10976a.f10903bv & this.f10976a.f10957l;\n this.f10976a.f10886be = this.f10976a.f10903bv & this.f10976a.f10957l;\n this.f10976a.f10816aN = this.f10976a.f10785J ^ this.f10976a.f10949d;\n this.f10976a.f10930ch = this.f10976a.f10785J | this.f10976a.f10949d;\n this.f10976a.f10812aJ = this.f10976a.f10957l & (this.f10976a.f10930ch ^ -1);\n this.f10976a.f10904bw = this.f10976a.f10957l & (this.f10976a.f10930ch ^ -1);\n this.f10976a.f10928cf = this.f10976a.f10930ch & this.f10976a.f10957l;\n this.f10976a.f10825aW &= this.f10976a.f10835ag;\n this.f10976a.f10825aW = this.f10976a.f10821aS ^ this.f10976a.f10825aW;\n this.f10976a.f10799X = this.f10976a.f10825aW ^ this.f10976a.f10799X;\n this.f10976a.f10825aW = this.f10976a.f10950e & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10825aW = this.f10976a.f10863bH ^ this.f10976a.f10825aW;\n this.f10976a.f10898bq = this.f10976a.f10825aW ^ this.f10976a.f10898bq;\n this.f10976a.f10825aW = this.f10976a.f10950e & (this.f10976a.f10776A ^ -1);\n this.f10976a.f10821aS = this.f10976a.f10825aW & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10821aS = this.f10976a.f10879bX ^ this.f10976a.f10821aS;\n this.f10976a.f10881bZ = this.f10976a.f10825aW & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10881bZ = this.f10976a.f10825aW ^ this.f10976a.f10881bZ;\n this.f10976a.f10895bn = this.f10976a.f10881bZ ^ this.f10976a.f10895bn;\n this.f10976a.f10825aW &= this.f10976a.f10792Q ^ -1;\n this.f10976a.f10825aW = this.f10976a.f10863bH ^ this.f10976a.f10825aW;\n this.f10976a.f10807aE = this.f10976a.f10825aW ^ this.f10976a.f10807aE;\n this.f10976a.f10825aW = this.f10976a.f10950e & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10825aW = this.f10976a.f10879bX ^ this.f10976a.f10825aW;\n this.f10976a.f10825aW &= this.f10976a.f10835ag ^ -1;\n this.f10976a.f10879bX = this.f10976a.f10950e | this.f10976a.f10776A;\n this.f10976a.f10825aW = this.f10976a.f10879bX ^ this.f10976a.f10825aW;\n this.f10976a.f10863bH = this.f10976a.f10879bX & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10863bH = this.f10976a.f10879bX ^ this.f10976a.f10863bH;\n this.f10976a.f10863bH = this.f10976a.f10835ag & this.f10976a.f10863bH;\n this.f10976a.f10863bH = this.f10976a.f10901bt ^ this.f10976a.f10863bH;\n this.f10976a.f10901bt = this.f10976a.f10792Q | this.f10976a.f10879bX;\n this.f10976a.f10901bt = this.f10976a.f10879bX ^ this.f10976a.f10901bt;\n this.f10976a.f10881bZ = this.f10976a.f10835ag | this.f10976a.f10901bt;\n this.f10976a.f10881bZ = this.f10976a.f10905bx ^ this.f10976a.f10881bZ;\n this.f10976a.f10878bW = this.f10976a.f10901bt ^ this.f10976a.f10878bW;\n this.f10976a.f10905bx = this.f10976a.f10901bt & this.f10976a.f10835ag;\n this.f10976a.f10858bC = this.f10976a.f10879bX & (this.f10976a.f10950e ^ -1);\n this.f10976a.f10810aH = this.f10976a.f10858bC ^ this.f10976a.f10810aH;\n this.f10976a.f10905bx = this.f10976a.f10858bC ^ this.f10976a.f10905bx;\n this.f10976a.f10858bC = this.f10976a.f10835ag | this.f10976a.f10858bC;\n this.f10976a.f10858bC = this.f10976a.f10901bt ^ this.f10976a.f10858bC;\n this.f10976a.f10828aZ = this.f10976a.f10879bX ^ this.f10976a.f10828aZ;\n this.f10976a.f10828aZ = this.f10976a.f10835ag | this.f10976a.f10828aZ;\n this.f10976a.f10828aZ = this.f10976a.f10850av ^ this.f10976a.f10828aZ;\n this.f10976a.f10818aP = this.f10976a.f10787L & (this.f10976a.f10818aP ^ -1);\n this.f10976a.f10818aP = this.f10976a.f10813aK ^ this.f10976a.f10818aP;\n this.f10976a.f10851aw = this.f10976a.f10818aP ^ this.f10976a.f10851aw;\n this.f10976a.f10908c = this.f10976a.f10851aw ^ this.f10976a.f10908c;\n this.f10976a.f10851aw = this.f10976a.f10776A & (this.f10976a.f10908c ^ -1);\n this.f10976a.f10851aw = this.f10976a.f10908c ^ this.f10976a.f10851aw;\n this.f10976a.f10818aP = this.f10976a.f10908c & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10813aK = this.f10976a.f10908c ^ this.f10976a.f10790O;\n this.f10976a.f10850av = this.f10976a.f10908c & (this.f10976a.f10970y ^ -1);\n this.f10976a.f10879bX = this.f10976a.f10850av & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10900bs = this.f10976a.f10850av ^ this.f10976a.f10900bs;\n this.f10976a.f10900bs = this.f10976a.f10782G & (this.f10976a.f10900bs ^ -1);\n this.f10976a.f10850av = this.f10976a.f10908c & (this.f10976a.f10956k ^ -1);\n this.f10976a.f10901bt = this.f10976a.f10790O | this.f10976a.f10908c;\n this.f10976a.f10864bI = this.f10976a.f10970y & this.f10976a.f10908c;\n this.f10976a.f10814aL = this.f10976a.f10864bI & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10879bX = this.f10976a.f10864bI ^ this.f10976a.f10879bX;\n this.f10976a.f10879bX = this.f10976a.f10782G | this.f10976a.f10879bX;\n this.f10976a.f10901bt = this.f10976a.f10864bI ^ this.f10976a.f10901bt;\n this.f10976a.f10901bt ^= this.f10976a.f10782G;\n this.f10976a.f10876bU = this.f10976a.f10908c & (this.f10976a.f10864bI ^ -1);\n this.f10976a.f10889bh = this.f10976a.f10790O | this.f10976a.f10876bU;\n this.f10976a.f10888bg = this.f10976a.f10889bh & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10889bh |= this.f10976a.f10782G;\n this.f10976a.f10818aP = this.f10976a.f10876bU ^ this.f10976a.f10818aP;\n this.f10976a.f10885bd = this.f10976a.f10864bI & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10803aA = this.f10976a.f10908c & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10892bk = this.f10976a.f10970y & (this.f10976a.f10908c ^ -1);\n this.f10976a.f10893bl = this.f10976a.f10892bk & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10857bB = this.f10976a.f10892bk & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10857bB = this.f10976a.f10908c ^ this.f10976a.f10857bB;\n this.f10976a.f10857bB = this.f10976a.f10782G & this.f10976a.f10857bB;\n this.f10976a.f10857bB = this.f10976a.f10876bU ^ this.f10976a.f10857bB;\n this.f10976a.f10820aR = this.f10976a.f10892bk ^ this.f10976a.f10820aR;\n this.f10976a.f10820aR &= this.f10976a.f10782G ^ -1;\n this.f10976a.f10892bk = this.f10976a.f10970y | this.f10976a.f10908c;\n this.f10976a.f10893bl = this.f10976a.f10892bk ^ this.f10976a.f10893bl;\n this.f10976a.f10803aA = this.f10976a.f10893bl ^ this.f10976a.f10803aA;\n this.f10976a.f10893bl = this.f10976a.f10790O | this.f10976a.f10892bk;\n this.f10976a.f10893bl = this.f10976a.f10864bI ^ this.f10976a.f10893bl;\n this.f10976a.f10893bl |= this.f10976a.f10782G;\n this.f10976a.f10893bl = this.f10976a.f10892bk ^ this.f10976a.f10893bl;\n this.f10976a.f10892bk = this.f10976a.f10790O | this.f10976a.f10892bk;\n this.f10976a.f10900bs = this.f10976a.f10892bk ^ this.f10976a.f10900bs;\n this.f10976a.f10885bd = this.f10976a.f10892bk ^ this.f10976a.f10885bd;\n this.f10976a.f10892bk |= this.f10976a.f10782G;\n this.f10976a.f10864bI = this.f10976a.f10908c & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10846ar = this.f10976a.f10864bI & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10846ar = this.f10976a.f10813aK ^ this.f10976a.f10846ar;\n this.f10976a.f10813aK = this.f10976a.f10970y ^ this.f10976a.f10908c;\n this.f10976a.f10847as = this.f10976a.f10790O | this.f10976a.f10813aK;\n this.f10976a.f10847as |= this.f10976a.f10782G;\n this.f10976a.f10871bP = this.f10976a.f10790O | this.f10976a.f10813aK;\n this.f10976a.f10871bP = this.f10976a.f10908c ^ this.f10976a.f10871bP;\n this.f10976a.f10847as = this.f10976a.f10871bP ^ this.f10976a.f10847as;\n this.f10976a.f10959n = this.f10976a.f10813aK ^ this.f10976a.f10959n;\n this.f10976a.f10892bk = this.f10976a.f10959n ^ this.f10976a.f10892bk;\n this.f10976a.f10959n = this.f10976a.f10813aK & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10959n = this.f10976a.f10782G & this.f10976a.f10959n;\n this.f10976a.f10959n = this.f10976a.f10864bI ^ this.f10976a.f10959n;\n this.f10976a.f10844ap = this.f10976a.f10813aK ^ this.f10976a.f10844ap;\n this.f10976a.f10820aR = this.f10976a.f10844ap ^ this.f10976a.f10820aR;\n this.f10976a.f10814aL = this.f10976a.f10813aK ^ this.f10976a.f10814aL;\n this.f10976a.f10879bX = this.f10976a.f10814aL ^ this.f10976a.f10879bX;\n this.f10976a.f10813aK ^= this.f10976a.f10790O;\n this.f10976a.f10888bg = this.f10976a.f10813aK ^ this.f10976a.f10888bg;\n this.f10976a.f10891bj &= this.f10976a.f10787L ^ -1;\n this.f10976a.f10891bj = this.f10976a.f10859bD ^ this.f10976a.f10891bj;\n this.f10976a.f10856bA = this.f10976a.f10891bj & (this.f10976a.f10856bA ^ -1);\n this.f10976a.f10856bA = this.f10976a.f10866bK ^ this.f10976a.f10856bA;\n this.f10976a.f10866bK = this.f10976a.f10836ah & this.f10976a.f10856bA;\n this.f10976a.f10866bK = this.f10976a.f10964s ^ this.f10976a.f10866bK;\n this.f10976a.f10784I = this.f10976a.f10866bK ^ this.f10976a.f10784I;\n this.f10976a.f10828aZ = this.f10976a.f10784I | this.f10976a.f10828aZ;\n this.f10976a.f10828aZ = this.f10976a.f10810aH ^ this.f10976a.f10828aZ;\n this.f10976a.f10858bC &= this.f10976a.f10784I ^ -1;\n this.f10976a.f10858bC = this.f10976a.f10905bx ^ this.f10976a.f10858bC;\n this.f10976a.f10858bC = this.f10976a.f10800Y & (this.f10976a.f10858bC ^ -1);\n this.f10976a.f10905bx = this.f10976a.f10776A & this.f10976a.f10784I;\n this.f10976a.f10810aH = this.f10976a.f10905bx & (this.f10976a.f10956k ^ -1);\n this.f10976a.f10866bK = this.f10976a.f10784I | this.f10976a.f10908c;\n this.f10976a.f10891bj = this.f10976a.f10866bK | this.f10976a.f10956k;\n this.f10976a.f10859bD = this.f10976a.f10866bK & (this.f10976a.f10908c ^ -1);\n this.f10976a.f10813aK = this.f10976a.f10776A & (this.f10976a.f10859bD ^ -1);\n this.f10976a.f10814aL = this.f10976a.f10776A & (this.f10976a.f10859bD ^ -1);\n this.f10976a.f10859bD = this.f10976a.f10776A & (this.f10976a.f10859bD ^ -1);\n this.f10976a.f10859bD = this.f10976a.f10908c ^ this.f10976a.f10859bD;\n this.f10976a.f10859bD &= this.f10976a.f10956k ^ -1;\n this.f10976a.f10844ap = this.f10976a.f10776A & (this.f10976a.f10866bK ^ -1);\n this.f10976a.f10844ap = this.f10976a.f10956k | this.f10976a.f10844ap;\n this.f10976a.f10864bI = this.f10976a.f10908c & this.f10976a.f10784I;\n this.f10976a.f10814aL = this.f10976a.f10864bI ^ this.f10976a.f10814aL;\n this.f10976a.f10871bP = this.f10976a.f10814aL & (this.f10976a.f10956k ^ -1);\n this.f10976a.f10924cb = this.f10976a.f10908c & (this.f10976a.f10864bI ^ -1);\n this.f10976a.f10848at = this.f10976a.f10776A & this.f10976a.f10864bI;\n this.f10976a.f10848at = this.f10976a.f10864bI ^ this.f10976a.f10848at;\n this.f10976a.f10891bj = this.f10976a.f10848at ^ this.f10976a.f10891bj;\n this.f10976a.f10878bW &= this.f10976a.f10784I ^ -1;\n this.f10976a.f10878bW = this.f10976a.f10806aD ^ this.f10976a.f10878bW;\n this.f10976a.f10878bW = this.f10976a.f10800Y & (this.f10976a.f10878bW ^ -1);\n this.f10976a.f10878bW = this.f10976a.f10828aZ ^ this.f10976a.f10878bW;\n this.f10976a.f10797V = this.f10976a.f10878bW ^ this.f10976a.f10797V;\n this.f10976a.f10878bW = this.f10976a.f10797V & this.f10976a.f10842an;\n this.f10976a.f10826aX &= this.f10976a.f10784I ^ -1;\n this.f10976a.f10826aX = this.f10976a.f10863bH ^ this.f10976a.f10826aX;\n this.f10976a.f10826aX = this.f10976a.f10800Y & (this.f10976a.f10826aX ^ -1);\n this.f10976a.f10863bH = this.f10976a.f10784I & (this.f10976a.f10908c ^ -1);\n this.f10976a.f10828aZ = this.f10976a.f10776A & this.f10976a.f10863bH;\n this.f10976a.f10828aZ = this.f10976a.f10864bI ^ this.f10976a.f10828aZ;\n this.f10976a.f10810aH = this.f10976a.f10828aZ ^ this.f10976a.f10810aH;\n this.f10976a.f10810aH = this.f10976a.f10811aI & this.f10976a.f10810aH;\n this.f10976a.f10810aH = this.f10976a.f10891bj ^ this.f10976a.f10810aH;\n this.f10976a.f10810aH &= this.f10976a.f10883bb ^ -1;\n this.f10976a.f10828aZ = this.f10976a.f10811aI & this.f10976a.f10828aZ;\n this.f10976a.f10891bj = this.f10976a.f10776A & this.f10976a.f10863bH;\n this.f10976a.f10891bj = this.f10976a.f10866bK ^ this.f10976a.f10891bj;\n this.f10976a.f10891bj |= this.f10976a.f10956k;\n this.f10976a.f10891bj = this.f10976a.f10851aw ^ this.f10976a.f10891bj;\n this.f10976a.f10891bj = this.f10976a.f10811aI & (this.f10976a.f10891bj ^ -1);\n this.f10976a.f10821aS = this.f10976a.f10784I | this.f10976a.f10821aS;\n this.f10976a.f10821aS = this.f10976a.f10898bq ^ this.f10976a.f10821aS;\n this.f10976a.f10826aX = this.f10976a.f10821aS ^ this.f10976a.f10826aX;\n this.f10976a.f10967v = this.f10976a.f10826aX ^ this.f10976a.f10967v;\n this.f10976a.f10826aX = this.f10976a.f10951f ^ this.f10976a.f10967v;\n this.f10976a.f10821aS = this.f10976a.f10779D & (this.f10976a.f10826aX ^ -1);\n this.f10976a.f10826aX = this.f10976a.f10779D & (this.f10976a.f10826aX ^ -1);\n this.f10976a.f10898bq = this.f10976a.f10967v & (this.f10976a.f10951f ^ -1);\n this.f10976a.f10898bq = this.f10976a.f10951f ^ this.f10976a.f10898bq;\n this.f10976a.f10851aw = this.f10976a.f10776A & (this.f10976a.f10784I ^ -1);\n this.f10976a.f10851aw = this.f10976a.f10864bI ^ this.f10976a.f10851aw;\n this.f10976a.f10871bP = this.f10976a.f10851aw ^ this.f10976a.f10871bP;\n this.f10976a.f10871bP = this.f10976a.f10811aI & (this.f10976a.f10871bP ^ -1);\n this.f10976a.f10851aw = this.f10976a.f10776A & (this.f10976a.f10784I ^ -1);\n this.f10976a.f10851aw = this.f10976a.f10908c ^ this.f10976a.f10851aw;\n this.f10976a.f10851aw &= this.f10976a.f10956k ^ -1;\n this.f10976a.f10851aw = this.f10976a.f10814aL ^ this.f10976a.f10851aw;\n this.f10976a.f10851aw = this.f10976a.f10811aI & this.f10976a.f10851aw;\n this.f10976a.f10814aL = this.f10976a.f10908c & (this.f10976a.f10784I ^ -1);\n this.f10976a.f10864bI = this.f10976a.f10776A & this.f10976a.f10814aL;\n this.f10976a.f10864bI = this.f10976a.f10784I ^ this.f10976a.f10864bI;\n this.f10976a.f10864bI |= this.f10976a.f10956k;\n this.f10976a.f10866bK = this.f10976a.f10814aL ^ this.f10976a.f10776A;\n this.f10976a.f10806aD = this.f10976a.f10956k & this.f10976a.f10866bK;\n this.f10976a.f10806aD = this.f10976a.f10905bx ^ this.f10976a.f10806aD;\n this.f10976a.f10806aD = this.f10976a.f10811aI & this.f10976a.f10806aD;\n this.f10976a.f10905bx = this.f10976a.f10866bK & (this.f10976a.f10956k ^ -1);\n this.f10976a.f10850av = this.f10976a.f10866bK ^ this.f10976a.f10850av;\n this.f10976a.f10851aw = this.f10976a.f10850av ^ this.f10976a.f10851aw;\n this.f10976a.f10851aw &= this.f10976a.f10883bb ^ -1;\n this.f10976a.f10814aL = this.f10976a.f10776A & this.f10976a.f10814aL;\n this.f10976a.f10864bI = this.f10976a.f10814aL ^ this.f10976a.f10864bI;\n this.f10976a.f10864bI = this.f10976a.f10811aI & this.f10976a.f10864bI;\n this.f10976a.f10814aL = this.f10976a.f10784I ^ this.f10976a.f10908c;\n this.f10976a.f10850av = this.f10976a.f10776A & (this.f10976a.f10814aL ^ -1);\n this.f10976a.f10850av = this.f10976a.f10863bH ^ this.f10976a.f10850av;\n this.f10976a.f10850av = this.f10976a.f10956k & this.f10976a.f10850av;\n this.f10976a.f10850av = this.f10976a.f10848at ^ this.f10976a.f10850av;\n this.f10976a.f10850av = this.f10976a.f10811aI & (this.f10976a.f10850av ^ -1);\n this.f10976a.f10905bx = this.f10976a.f10814aL ^ this.f10976a.f10905bx;\n this.f10976a.f10806aD = this.f10976a.f10905bx ^ this.f10976a.f10806aD;\n this.f10976a.f10806aD |= this.f10976a.f10883bb;\n this.f10976a.f10905bx = this.f10976a.f10814aL ^ this.f10976a.f10956k;\n this.f10976a.f10871bP = this.f10976a.f10905bx ^ this.f10976a.f10871bP;\n this.f10976a.f10851aw = this.f10976a.f10871bP ^ this.f10976a.f10851aw;\n this.f10976a.f10789N = this.f10976a.f10851aw ^ this.f10976a.f10789N;\n this.f10976a.f10851aw = this.f10976a.f10789N | this.f10976a.f10781F;\n this.f10976a.f10851aw &= this.f10976a.f10797V ^ -1;\n this.f10976a.f10871bP = this.f10976a.f10781F & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10878bW = this.f10976a.f10871bP ^ this.f10976a.f10878bW;\n this.f10976a.f10878bW = this.f10976a.f10840al & (this.f10976a.f10878bW ^ -1);\n this.f10976a.f10871bP = this.f10976a.f10789N | this.f10976a.f10781F;\n this.f10976a.f10871bP = this.f10976a.f10842an ^ this.f10976a.f10871bP;\n this.f10976a.f10905bx = this.f10976a.f10871bP & this.f10976a.f10797V;\n this.f10976a.f10871bP &= this.f10976a.f10797V;\n this.f10976a.f10848at = this.f10976a.f10789N | this.f10976a.f10781F;\n this.f10976a.f10848at = this.f10976a.f10877bV ^ this.f10976a.f10848at;\n this.f10976a.f10863bH = this.f10976a.f10797V & (this.f10976a.f10848at ^ -1);\n this.f10976a.f10862bG = this.f10976a.f10789N | this.f10976a.f10862bG;\n this.f10976a.f10862bG = this.f10976a.f10781F ^ this.f10976a.f10862bG;\n this.f10976a.f10906by = this.f10976a.f10838aj & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10906by = this.f10976a.f10838aj ^ this.f10976a.f10906by;\n this.f10976a.f10927ce = this.f10976a.f10906by & (this.f10976a.f10781F ^ -1);\n this.f10976a.f10819aQ = this.f10976a.f10906by & (this.f10976a.f10969x ^ -1);\n this.f10976a.f10845aq = this.f10976a.f10842an & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10845aq = this.f10976a.f10822aT ^ this.f10976a.f10845aq;\n this.f10976a.f10871bP = this.f10976a.f10845aq ^ this.f10976a.f10871bP;\n this.f10976a.f10871bP = this.f10976a.f10840al & (this.f10976a.f10871bP ^ -1);\n this.f10976a.f10845aq = this.f10976a.f10789N | this.f10976a.f10838aj;\n this.f10976a.f10845aq = this.f10976a.f10838aj ^ this.f10976a.f10845aq;\n this.f10976a.f10853ay = this.f10976a.f10845aq & this.f10976a.f10781F;\n this.f10976a.f10845aq &= this.f10976a.f10781F;\n this.f10976a.f10841am = this.f10976a.f10789N | this.f10976a.f10867bL;\n this.f10976a.f10805aC = this.f10976a.f10797V | this.f10976a.f10841am;\n this.f10976a.f10805aC = this.f10976a.f10848at ^ this.f10976a.f10805aC;\n this.f10976a.f10878bW = this.f10976a.f10805aC ^ this.f10976a.f10878bW;\n this.f10976a.f10905bx = this.f10976a.f10841am ^ this.f10976a.f10905bx;\n this.f10976a.f10905bx = this.f10976a.f10840al & (this.f10976a.f10905bx ^ -1);\n this.f10976a.f10867bL = this.f10976a.f10789N | this.f10976a.f10867bL;\n this.f10976a.f10867bL = this.f10976a.f10842an ^ this.f10976a.f10867bL;\n this.f10976a.f10863bH = this.f10976a.f10867bL ^ this.f10976a.f10863bH;\n this.f10976a.f10841am = this.f10976a.f10781F & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10841am = this.f10976a.f10868bM ^ this.f10976a.f10841am;\n this.f10976a.f10841am &= this.f10976a.f10797V ^ -1;\n this.f10976a.f10841am = this.f10976a.f10867bL ^ this.f10976a.f10841am;\n this.f10976a.f10841am = this.f10976a.f10840al & this.f10976a.f10841am;\n this.f10976a.f10805aC = this.f10976a.f10854az & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10805aC = this.f10976a.f10832ad ^ this.f10976a.f10805aC;\n this.f10976a.f10851aw = this.f10976a.f10805aC ^ this.f10976a.f10851aw;\n this.f10976a.f10871bP = this.f10976a.f10851aw ^ this.f10976a.f10871bP;\n this.f10976a.f10851aw = this.f10976a.f10854az & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10848at = this.f10976a.f10789N | this.f10976a.f10838aj;\n this.f10976a.f10848at = this.f10976a.f10781F & (this.f10976a.f10848at ^ -1);\n this.f10976a.f10848at = this.f10976a.f10969x | this.f10976a.f10848at;\n this.f10976a.f10902bu = this.f10976a.f10789N | this.f10976a.f10842an;\n this.f10976a.f10833ae = this.f10976a.f10789N | this.f10976a.f10822aT;\n this.f10976a.f10833ae = this.f10976a.f10877bV ^ this.f10976a.f10833ae;\n this.f10976a.f10833ae = this.f10976a.f10797V & (this.f10976a.f10833ae ^ -1);\n this.f10976a.f10833ae = this.f10976a.f10902bu ^ this.f10976a.f10833ae;\n this.f10976a.f10841am = this.f10976a.f10833ae ^ this.f10976a.f10841am;\n this.f10976a.f10842an ^= this.f10976a.f10789N;\n this.f10976a.f10842an &= this.f10976a.f10797V;\n this.f10976a.f10833ae = this.f10976a.f10789N | this.f10976a.f10822aT;\n this.f10976a.f10833ae = this.f10976a.f10822aT ^ this.f10976a.f10833ae;\n this.f10976a.f10842an = this.f10976a.f10833ae ^ this.f10976a.f10842an;\n this.f10976a.f10842an = this.f10976a.f10840al & this.f10976a.f10842an;\n this.f10976a.f10902bu = this.f10976a.f10833ae & (this.f10976a.f10797V ^ -1);\n this.f10976a.f10902bu = this.f10976a.f10867bL ^ this.f10976a.f10902bu;\n this.f10976a.f10905bx = this.f10976a.f10902bu ^ this.f10976a.f10905bx;\n this.f10976a.f10854az &= this.f10976a.f10789N ^ -1;\n this.f10976a.f10854az = this.f10976a.f10877bV ^ this.f10976a.f10854az;\n this.f10976a.f10877bV = this.f10976a.f10797V & (this.f10976a.f10854az ^ -1);\n this.f10976a.f10877bV = this.f10976a.f10862bG ^ this.f10976a.f10877bV;\n this.f10976a.f10862bG = this.f10976a.f10789N | this.f10976a.f10832ad;\n this.f10976a.f10862bG = this.f10976a.f10797V & (this.f10976a.f10862bG ^ -1);\n this.f10976a.f10862bG = this.f10976a.f10805aC ^ this.f10976a.f10862bG;\n this.f10976a.f10842an = this.f10976a.f10862bG ^ this.f10976a.f10842an;\n this.f10976a.f10862bG = this.f10976a.f10789N | this.f10976a.f10838aj;\n this.f10976a.f10805aC = this.f10976a.f10797V & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10805aC = this.f10976a.f10851aw ^ this.f10976a.f10805aC;\n this.f10976a.f10805aC = this.f10976a.f10840al & (this.f10976a.f10805aC ^ -1);\n this.f10976a.f10805aC = this.f10976a.f10877bV ^ this.f10976a.f10805aC;\n this.f10976a.f10877bV = this.f10976a.f10838aj ^ this.f10976a.f10789N;\n this.f10976a.f10927ce = this.f10976a.f10877bV ^ this.f10976a.f10927ce;\n this.f10976a.f10927ce = this.f10976a.f10969x | this.f10976a.f10927ce;\n this.f10976a.f10822aT ^= this.f10976a.f10789N;\n this.f10976a.f10822aT &= this.f10976a.f10797V;\n this.f10976a.f10822aT = this.f10976a.f10833ae ^ this.f10976a.f10822aT;\n this.f10976a.f10822aT = this.f10976a.f10840al & (this.f10976a.f10822aT ^ -1);\n this.f10976a.f10822aT = this.f10976a.f10863bH ^ this.f10976a.f10822aT;\n this.f10976a.f10863bH = this.f10976a.f10868bM ^ this.f10976a.f10789N;\n this.f10976a.f10863bH = this.f10976a.f10797V & (this.f10976a.f10863bH ^ -1);\n this.f10976a.f10863bH = this.f10976a.f10854az ^ this.f10976a.f10863bH;\n this.f10976a.f10863bH = this.f10976a.f10840al & this.f10976a.f10863bH;\n this.f10976a.f10868bM &= this.f10976a.f10789N ^ -1;\n this.f10976a.f10868bM = this.f10976a.f10781F ^ this.f10976a.f10868bM;\n this.f10976a.f10868bM = this.f10976a.f10797V & (this.f10976a.f10868bM ^ -1);\n this.f10976a.f10863bH = this.f10976a.f10868bM ^ this.f10976a.f10863bH;\n this.f10976a.f10868bM = this.f10976a.f10838aj & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10868bM = this.f10976a.f10781F | this.f10976a.f10868bM;\n this.f10976a.f10868bM = this.f10976a.f10877bV ^ this.f10976a.f10868bM;\n this.f10976a.f10868bM = this.f10976a.f10969x | this.f10976a.f10868bM;\n this.f10976a.f10813aK = this.f10976a.f10814aL ^ this.f10976a.f10813aK;\n this.f10976a.f10844ap = this.f10976a.f10813aK ^ this.f10976a.f10844ap;\n this.f10976a.f10891bj = this.f10976a.f10844ap ^ this.f10976a.f10891bj;\n this.f10976a.f10844ap = this.f10976a.f10956k & this.f10976a.f10814aL;\n this.f10976a.f10844ap = this.f10976a.f10866bK ^ this.f10976a.f10844ap;\n this.f10976a.f10864bI = this.f10976a.f10844ap ^ this.f10976a.f10864bI;\n this.f10976a.f10806aD = this.f10976a.f10864bI ^ this.f10976a.f10806aD;\n this.f10976a.f10793R = this.f10976a.f10806aD ^ this.f10976a.f10793R;\n this.f10976a.f10806aD = this.f10976a.f10861bF & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10864bI = this.f10976a.f10861bF & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10864bI = this.f10976a.f10926cd ^ this.f10976a.f10864bI;\n this.f10976a.f10844ap = this.f10976a.f10899br & this.f10976a.f10864bI;\n this.f10976a.f10866bK = this.f10976a.f10890bi & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10866bK = this.f10976a.f10899br & this.f10976a.f10866bK;\n this.f10976a.f10813aK = this.f10976a.f10907bz & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10813aK = this.f10976a.f10931ci ^ this.f10976a.f10813aK;\n this.f10976a.f10813aK = this.f10976a.f10785J & (this.f10976a.f10813aK ^ -1);\n this.f10976a.f10854az = this.f10976a.f10793R | this.f10976a.f10951f;\n this.f10976a.f10854az = this.f10976a.f10801Z ^ this.f10976a.f10854az;\n this.f10976a.f10854az = this.f10976a.f10899br & this.f10976a.f10854az;\n this.f10976a.f10833ae = this.f10976a.f10951f & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10833ae = this.f10976a.f10801Z ^ this.f10976a.f10833ae;\n this.f10976a.f10851aw = this.f10976a.f10951f & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10851aw = this.f10976a.f10861bF ^ this.f10976a.f10851aw;\n this.f10976a.f10851aw = this.f10976a.f10899br & this.f10976a.f10851aw;\n this.f10976a.f10902bu = this.f10976a.f10951f & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10902bu = this.f10976a.f10926cd ^ this.f10976a.f10902bu;\n this.f10976a.f10851aw = this.f10976a.f10902bu ^ this.f10976a.f10851aw;\n this.f10976a.f10851aw = this.f10976a.f10785J & (this.f10976a.f10851aw ^ -1);\n this.f10976a.f10902bu = this.f10976a.f10793R | this.f10976a.f10890bi;\n this.f10976a.f10867bL = this.f10976a.f10899br & (this.f10976a.f10902bu ^ -1);\n this.f10976a.f10882ba = this.f10976a.f10907bz ^ this.f10976a.f10793R;\n this.f10976a.f10866bK = this.f10976a.f10882ba ^ this.f10976a.f10866bK;\n this.f10976a.f10882ba = this.f10976a.f10861bF & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10882ba = this.f10976a.f10951f ^ this.f10976a.f10882ba;\n this.f10976a.f10882ba |= this.f10976a.f10899br;\n this.f10976a.f10882ba = this.f10976a.f10833ae ^ this.f10976a.f10882ba;\n this.f10976a.f10865bJ = this.f10976a.f10896bo ^ this.f10976a.f10793R;\n this.f10976a.f10865bJ = this.f10976a.f10899br & this.f10976a.f10865bJ;\n this.f10976a.f10865bJ = this.f10976a.f10806aD ^ this.f10976a.f10865bJ;\n this.f10976a.f10865bJ = this.f10976a.f10785J & (this.f10976a.f10865bJ ^ -1);\n this.f10976a.f10865bJ = this.f10976a.f10882ba ^ this.f10976a.f10865bJ;\n this.f10976a.f10882ba = this.f10976a.f10793R | this.f10976a.f10896bo;\n this.f10976a.f10882ba = this.f10976a.f10899br & this.f10976a.f10882ba;\n this.f10976a.f10882ba = this.f10976a.f10864bI ^ this.f10976a.f10882ba;\n this.f10976a.f10813aK = this.f10976a.f10882ba ^ this.f10976a.f10813aK;\n this.f10976a.f10882ba = this.f10976a.f10951f & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10882ba = this.f10976a.f10896bo ^ this.f10976a.f10882ba;\n this.f10976a.f10882ba = this.f10976a.f10899br & (this.f10976a.f10882ba ^ -1);\n this.f10976a.f10907bz &= this.f10976a.f10793R ^ -1;\n this.f10976a.f10907bz = this.f10976a.f10861bF ^ this.f10976a.f10907bz;\n this.f10976a.f10861bF = this.f10976a.f10793R | this.f10976a.f10951f;\n this.f10976a.f10861bF = this.f10976a.f10890bi ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF |= this.f10976a.f10899br;\n this.f10976a.f10861bF = this.f10976a.f10902bu ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10785J & this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10866bK ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10777B & (this.f10976a.f10861bF ^ -1);\n this.f10976a.f10926cd = this.f10976a.f10793R | this.f10976a.f10926cd;\n this.f10976a.f10926cd = this.f10976a.f10890bi ^ this.f10976a.f10926cd;\n this.f10976a.f10844ap = this.f10976a.f10926cd ^ this.f10976a.f10844ap;\n this.f10976a.f10926cd = this.f10976a.f10931ci ^ this.f10976a.f10793R;\n this.f10976a.f10866bK = this.f10976a.f10899br & this.f10976a.f10926cd;\n this.f10976a.f10866bK = this.f10976a.f10833ae ^ this.f10976a.f10866bK;\n this.f10976a.f10833ae = this.f10976a.f10926cd ^ this.f10976a.f10899br;\n this.f10976a.f10851aw = this.f10976a.f10833ae ^ this.f10976a.f10851aw;\n this.f10976a.f10861bF = this.f10976a.f10851aw ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF ^= this.f10976a.f10811aI;\n this.f10976a.f10926cd = this.f10976a.f10899br & (this.f10976a.f10926cd ^ -1);\n this.f10976a.f10926cd = this.f10976a.f10907bz ^ this.f10976a.f10926cd;\n this.f10976a.f10926cd = this.f10976a.f10785J & this.f10976a.f10926cd;\n this.f10976a.f10926cd = this.f10976a.f10931ci ^ this.f10976a.f10926cd;\n this.f10976a.f10926cd = this.f10976a.f10777B & (this.f10976a.f10926cd ^ -1);\n this.f10976a.f10931ci = this.f10976a.f10951f & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10931ci = this.f10976a.f10951f ^ this.f10976a.f10931ci;\n this.f10976a.f10882ba = this.f10976a.f10931ci ^ this.f10976a.f10882ba;\n this.f10976a.f10882ba = this.f10976a.f10785J & (this.f10976a.f10882ba ^ -1);\n this.f10976a.f10882ba = this.f10976a.f10844ap ^ this.f10976a.f10882ba;\n this.f10976a.f10926cd = this.f10976a.f10882ba ^ this.f10976a.f10926cd;\n this.f10976a.f10796U = this.f10976a.f10926cd ^ this.f10976a.f10796U;\n this.f10976a.f10926cd = this.f10976a.f10793R | this.f10976a.f10801Z;\n this.f10976a.f10926cd = this.f10976a.f10890bi ^ this.f10976a.f10926cd;\n this.f10976a.f10854az = this.f10976a.f10926cd ^ this.f10976a.f10854az;\n this.f10976a.f10854az = this.f10976a.f10785J & (this.f10976a.f10854az ^ -1);\n this.f10976a.f10854az = this.f10976a.f10866bK ^ this.f10976a.f10854az;\n this.f10976a.f10854az &= this.f10976a.f10777B;\n this.f10976a.f10854az = this.f10976a.f10865bJ ^ this.f10976a.f10854az;\n this.f10976a.f10952g = this.f10976a.f10854az ^ this.f10976a.f10952g;\n this.f10976a.f10854az = this.f10976a.f10793R | this.f10976a.f10951f;\n this.f10976a.f10867bL = this.f10976a.f10854az ^ this.f10976a.f10867bL;\n this.f10976a.f10896bo &= this.f10976a.f10793R ^ -1;\n this.f10976a.f10896bo = this.f10976a.f10785J & this.f10976a.f10896bo;\n this.f10976a.f10896bo = this.f10976a.f10867bL ^ this.f10976a.f10896bo;\n this.f10976a.f10896bo = this.f10976a.f10777B & this.f10976a.f10896bo;\n this.f10976a.f10896bo = this.f10976a.f10813aK ^ this.f10976a.f10896bo;\n this.f10976a.f10966u = this.f10976a.f10896bo ^ this.f10976a.f10966u;\n this.f10976a.f10814aL = this.f10976a.f10776A & this.f10976a.f10814aL;\n this.f10976a.f10814aL = this.f10976a.f10924cb ^ this.f10976a.f10814aL;\n this.f10976a.f10828aZ = this.f10976a.f10814aL ^ this.f10976a.f10828aZ;\n this.f10976a.f10828aZ = this.f10976a.f10883bb | this.f10976a.f10828aZ;\n this.f10976a.f10828aZ = this.f10976a.f10891bj ^ this.f10976a.f10828aZ;\n this.f10976a.f10795T = this.f10976a.f10828aZ ^ this.f10976a.f10795T;\n this.f10976a.f10828aZ = this.f10976a.f10795T | this.f10976a.f10779D;\n this.f10976a.f10891bj = this.f10976a.f10830ab | this.f10976a.f10828aZ;\n this.f10976a.f10891bj = this.f10976a.f10779D ^ this.f10976a.f10891bj;\n this.f10976a.f10814aL = this.f10976a.f10830ab | this.f10976a.f10795T;\n this.f10976a.f10814aL = this.f10976a.f10795T ^ this.f10976a.f10814aL;\n this.f10976a.f10924cb = this.f10976a.f10795T & (this.f10976a.f10830ab ^ -1);\n }", "public static int offsetBits_infos_type() {\n return 0;\n }", "int mo1684a(byte[] bArr, int i, int i2);", "void union(int a, int b) {\n\t\tif (a==9 && b==4){\r\n\t\tSystem.out.println(\"DEBUGGING 9 AND 4\");\r\n\t\tSystem.out.println(\"size of A: \"+ sizeOf(a));\r\n\t\tSystem.out.println(\"size of B: \"+ sizeOf(b));\r\n\t\t}\r\n\t\tint rootB = getRoot(b); // N array access\r\n\t\tint rootA = getRoot(a); // N array access\r\n\t\tif (rootA==rootB)return;\r\n\r\n\t\tif (sizeOf(rootA)<sizeOf(rootB)){\r\n\t\t\tidNode[rootA] = rootB; // 1 array access\r\n\t\t}\r\n\t\telse{\r\n\t\t\tidNode[rootB] = rootA; // 1 array access\r\n\t\t}\r\n\t}", "public abstract void mo4380b(byte[] bArr, int i, int i2);", "private static byte[] m34877a(byte[] bArr, int i, int i2, byte[] bArr2, int i3) {\n int i4 = 0;\n int i5 = (i2 > 0 ? (bArr[i] << 24) >>> 8 : 0) | (i2 > 1 ? (bArr[i + 1] << 24) >>> 16 : 0);\n if (i2 > 2) {\n i4 = (bArr[i + 2] << 24) >>> 24;\n }\n int i6 = i5 | i4;\n if (i2 == 1) {\n byte[] bArr3 = f27334a;\n bArr2[i3] = bArr3[i6 >>> 18];\n bArr2[i3 + 1] = bArr3[(i6 >>> 12) & 63];\n int i7 = i3 + 3;\n bArr2[i3 + 2] = 61;\n bArr2[i7] = 61;\n return bArr2;\n } else if (i2 == 2) {\n byte[] bArr4 = f27334a;\n bArr2[i3] = bArr4[i6 >>> 18];\n bArr2[i3 + 1] = bArr4[(i6 >>> 12) & 63];\n bArr2[i3 + 2] = bArr4[(i6 >>> 6) & 63];\n bArr2[i3 + 3] = 61;\n return bArr2;\n } else if (i2 != 3) {\n return bArr2;\n } else {\n byte[] bArr5 = f27334a;\n bArr2[i3] = bArr5[i6 >>> 18];\n bArr2[i3 + 1] = bArr5[(i6 >>> 12) & 63];\n bArr2[i3 + 2] = bArr5[(i6 >>> 6) & 63];\n bArr2[i3 + 3] = bArr5[i6 & 63];\n return bArr2;\n }\n }", "public static int offsetBits_dataType() {\n return 0;\n }", "private void createMapOfSecondType(){\n\n this.typeOfMap=2;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true,0,0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false,0,1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = createSquare( ColorOfFigure_Square.GREEN, true,0,3);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.YELLOW, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.YELLOW, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, false,2,3);\n\n\n }", "public static int offsetBits_data(int index1) {\n int offset = 160;\n if (index1 < 0 || index1 >= 60) throw new ArrayIndexOutOfBoundsException();\n offset += 0 + index1 * 8;\n return offset;\n }", "void mo12205a(Bitmap bitmap);", "public static /* synthetic */ BitmapConversionResult copy$default(BitmapConversionResult bitmapConversionResult, File file, Map map, int i, Object obj) {\n if ((i & 1) != 0) {\n file = bitmapConversionResult.a;\n }\n if ((i & 2) != 0) {\n map = bitmapConversionResult.b;\n }\n return bitmapConversionResult.copy(file, map);\n }", "public bit or(bit other)\n\t{\n\t\tbit orBit = new bit();\n\t\t\n\t\tif(bitHolder.getValue() == 1)\n\t\t{\n\t\t\torBit.setValue(1);\n\t\t}else if(other.getValue() == 1)\n\t\t{\n\t\t\torBit.setValue(1);\n\t\t}else\n\t\t{\n\t\t\torBit.setValue(0);\n\t\t}\n\t\t\n\t\treturn orBit;\n\t}", "protected void setAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.setBitAt(i);\n } \t\n }", "public void setMap01(){\n\t\tmapSelect = \"map01.txt\";\n\t\treloadMap(mapSelect);\n\t\tsetImg(mapSelect);\n\t}", "protected int getTextureIndex() {\n/* 83 */ return getData() & 0x7;\n/* */ }", "public void showbitmap2() {\n \t\tImageView i = (ImageView)findViewById(R.id.frame2);\n \t\ti.setImageBitmap(mBitmap2);\n \t}", "public void dAdd(int[] layerOffset, int x1, int y1, int x2, int y2, int[] buffer) {\n if (this.offset != null) {\n float[] floatAlpha = M.getb255();\n int[] var16 = this.offset;\n int canvasWidth = this.W;\n int var18 = canvasWidth;\n x1 = Math.max(x1, 0);\n y1 = Math.max(y1, 0);\n x2 = Math.min(this.W, x2);\n y2 = Math.min(this.H, y2);\n int diffX = x2 - x1;\n int diffY = y2 - y1;\n int var21 = y1 * canvasWidth + x1;\n int var22 = y1 * canvasWidth + x1;\n int var23 = 0;\n int var9;\n int var10;\n int var11;\n int var12;\n int var13;\n float var15;\n int var24;\n int var25;\n int var26;\n switch (this.iCopy) {\n case M_M:\n for (int i = 0; i < diffY; ++i) {\n for (int j = 0; j < diffX; ++j) {\n var9 = var16[var22 + j];\n var10 = layerOffset[var21 + j];\n var11 = var9 >>> 24;\n var12 = var10 >>> 24;\n var13 = var11 + (int) ((float) var12 * floatAlpha[0xFF - var11]);\n int var27 = buffer[var23 + j] & 0xFFFFFF;\n var24 = var10 >>> 16 & 0xFF;\n var25 = var10 >>> 8 & 0xFF;\n var26 = var10 & 0xFF;\n var15 = 1.0F - (float) var12 / (float) var13;\n var24 += (int) ((float) ((var27 >>> 16 & 0xFF) - var24) * var15);\n var25 += (int) ((float) ((var27 >>> 8 & 0xFF) - var25) * var15);\n var26 += (int) ((float) ((var27 & 0xFF) - var26) * var15);\n var10 = var24 << 16 | var25 << 8 | var26;\n if (var12 <= 0) {\n layerOffset[var21 + j] = var9;\n } else {\n var15 = floatAlpha[var11] + floatAlpha[0xFF - var11] * floatAlpha[0xFF - var12];\n layerOffset[var21 + j] = var13 << 24 | (var10 >>> 16 & 0xFF) - (int) (floatAlpha[var10 >>> 16 & 0xFF] * (float) (var9 >>> 16 & 0xFF ^ 0xFF) * var15) << 16 | (var10 >>> 8 & 0xFF) - (int) (floatAlpha[var10 >>> 8 & 0xFF] * (float) (var9 >>> 8 & 0xFF ^ 0xFF) * var15) << 8 | (var10 & 0xFF) - (int) (floatAlpha[var10 & 0xFF] * (float) (var9 & 0xFF ^ 0xFF) * var15);\n }\n }\n\n var21 += var18;\n var22 += canvasWidth;\n var23 += var18;\n }\n\n return;\n case M_R:\n for (int i = 0; i < diffY; ++i) {\n for (int j = 0; j < diffX; ++j) {\n var9 = var16[var22 + j];\n var10 = layerOffset[var21 + j];\n var11 = var9 >>> 24;\n var12 = (int) ((float) (var10 >>> 24) * floatAlpha[0xFF - var11]);\n var13 = var11 + var12;\n var9 ^= 0xFFFFFF;\n if (var13 == 0) {\n layerOffset[var21 + j] = 0xFFFFFF;\n } else {\n var15 = (float) var11 / (float) var13;\n var24 = var10 >>> 16 & 0xFF;\n var25 = var10 >>> 8 & 0xFF;\n var26 = var10 & 0xFF;\n layerOffset[var21 + j] = var15 == 1.0F ? var9 : var13 << 24 | var24 + (int) ((float) ((var9 >>> 16 & 0xFF) - var24) * var15) << 16 | var25 + (int) ((float) ((var9 >>> 8 & 0xFF) - var25) * var15) << 8 | var26 + (int) ((float) ((var9 & 0xFF) - var26) * var15);\n }\n }\n\n var21 += var18;\n var22 += canvasWidth;\n }\n\n return;\n default: // M_N\n for (int i = 0; i < diffY; ++i) {\n for (int j = 0; j < diffX; ++j) {\n var9 = var16[var22 + j];\n var10 = layerOffset[var21 + j];\n var11 = var9 >>> 24;\n var12 = (int) ((float) (var10 >>> 24) * floatAlpha[0xFF - var11]);\n var13 = var11 + var12;\n if (var13 == 0) {\n layerOffset[var21 + j] = 0xFFFFFF;\n } else {\n var15 = (float) var11 / (float) var13;\n var24 = var10 >>> 16 & 0xFF;\n var25 = var10 >>> 8 & 0xFF;\n var26 = var10 & 0xFF;\n layerOffset[var21 + j] = var15 == 1.0F ? var9 : var13 << 24 | var24 + (int) ((float) ((var9 >>> 16 & 0xFF) - var24) * var15) << 16 | var25 + (int) ((float) ((var9 >>> 8 & 0xFF) - var25) * var15) << 8 | var26 + (int) ((float) ((var9 & 0xFF) - var26) * var15);\n }\n }\n\n var21 += var18;\n var22 += canvasWidth;\n }\n\n }\n }\n }", "public BufferedImage bitwiseAND(BufferedImage image, BufferedImage image1) {\r\n int[][][] arr = convertToArray(image);\r\n int[][][] arr1 = convertToArray(image1);\r\n\r\n int width = arr.length, height = arr[0].length;\r\n int width1 = arr1.length, height1 = arr1[0].length;\r\n\r\n int x = (width < width1) ? width : width1; //get area to add\r\n int y = (height < height1) ? height : height1;\r\n\r\n for (int i = 0; i < y; i++) {\r\n for (int j = 0; j < x; j++) {\r\n arr[j][i][1] = arr[j][i][1] & arr1[j][i][1] & 0xff;\r\n arr[j][i][2] = arr[j][i][2] & arr1[j][i][2] & 0xff;\r\n arr[j][i][3] = arr[j][i][3] & arr1[j][i][3] & 0xff;\r\n }\r\n }\r\n return convertToBimage(arr);\r\n }", "void mo8280a(int i, int i2, C1207m c1207m);", "public static boolean mergeUserData(String inMpg, Map<String, Object> map) throws IOException{\n if(null == inMpg) { \n throw new IllegalArgumentException(\"Empty Mpeg4 path!\");\n }\n\n if(null == map) { \n throw new IllegalArgumentException(\"Empty map!\");\n }\n\n byte[] bytes = (byte[]) map.get(HtcZoeMetadata.HTC_DATA_SEMIVIDEO_MD);\t\t\t\n Object bitRate = map.get(HtcZoeMetadata.HTC_METADATA_BITRATE);\n Object frameDropRatio = map.get(HtcZoeMetadata.HTC_METADATA_FRAME_DROP_RATIO);\n\n if(0 == bytes.length){\n throw new IllegalArgumentException(\"Empty bytes!\");\n }\n\t\t\n File ori = new File(inMpg);\t\n if(!ori.exists()){\n throw new IllegalArgumentException(inMpg + \" not exists!\");\n }\n \n //Init \n sUSE_32BIT_OFFSET = false;\n sHMTA_Offset = -1;\n sHMTA_Size = -1;\n sHtcTableOffset = -1;\n \n long fileLength = ori.length();\n RandomAccessFile raf = new RandomAccessFile(ori, \"rws\");\n\n //*****Open file channel to read byte\n FileChannel fc = raf.getChannel();\n\n //*****Get HMTA table offset and size\n long offset[] = new long[1];\n boolean err = false;\n\n offset[0] = 0;\n\n while (true) {\n try {\n err = parseChunk(fc, offset, 0);\n }catch (IOException e){\n err = false;\n }\n \n if (err) {\n continue;\n }\n break;\n }\n\t \n if( -1 == sHMTA_Offset || - 1 == sHMTA_Size){\n if(null != raf){\n raf.close();\n raf = null;\n }\t \t \n\n throw new IllegalArgumentException(\"Not support MPEG4 format!\");\t \t\n } else {\n Log.d(TAG, \"sHMTA_Offset is = \" + sHMTA_Offset + \" sHMTA_Size is = \" + sHMTA_Size);\n }\n\n //*****Restore all table byte info and fill ori region as 0\n byte[] oriHMTA = Util.read(fc, sHMTA_Offset, sHMTA_Size);\t \t \n\n byte emptyHMTA[] = new byte[oriHMTA.length]; \n Arrays.fill( emptyHMTA, (byte) 0 );\n\n Log.d(TAG, \"Empty HMTA: write bytes \" + Util.writeBytes(fc, emptyHMTA, sHMTA_Offset));\n\n //*****Append motion data in file end\n Util.setCurrentOffset(fileLength);\n //*****Append pseudo box info(HTC_INFO_BOX) \n //put 0 at first\n Log.d(TAG, \"HTC_INFO_BOX(fake size) write bytes \" + Util.writeInt(fc, 0));\n Log.d(TAG, \"HTC_INFO_BOX(name) write bytes \" + Util.writeString(fc, HTC_INFO_BOX)); \n Log.d(TAG, \"HTC_DATA_SEMIVIDEO_MD(header) write bytes \" + Util.writeString(fc, HtcZoeMetadata.HTC_DATA_SEMIVIDEO_MD));\n Log.d(TAG, \"HTC_DATA_SEMIVIDEO_MD(content) write bytes \" + Util.writeBytes(fc, bytes));\n Log.d(TAG, \"HTC_DATA_SEMIVIDEO_MD(footer) write bytes \" + Util.writeString(fc, HtcZoeMetadata.HTC_DATA_SEMIVIDEO_MD));\n long motionDataOffset = Util.getCurrentOffset();\n //*****Append HMTA table and add HTC Data(Motion Data key) from HMTA footer\n //HMTA table ori data\n Log.d(TAG, \"Append ori HMTA write bytes \" + Util.writeBytes(fc, oriHMTA));\n long oriHMTAEndOffset = Util.getCurrentOffset();\n //Key: overwrite HMTA footer to add Motion Data section \n long hMTaOffset = oriHMTAEndOffset - 4;\n Util.setCurrentOffset(hMTaOffset);\n Log.d(TAG, \"HTC_DATA_SEMIVIDEO_MD(key name) write bytes \" + Util.writeString(fc, HtcZoeMetadata.HTC_DATA_SEMIVIDEO_MD));\n //IsData \n Log.d(TAG, \"HTC_DATA_SEMIVIDEO_MD(IsData) write bytes \" + Util.writeInt(fc, 1));\n //VALUE_SIZE\n int valSize = sUSE_32BIT_OFFSET?12:16;\n Log.d(TAG, \"HTC_DATA_SEMIVIDEO_MD(valSize) write bytes \" + Util.writeInt(fc, valSize));\n //VALUE\n //VALUE_Index\n Log.d(TAG, \"HTC_DATA_SEMIVIDEO_MD(VALUE_Index) write bytes \" + Util.writeInt(fc, 0));\n //VALUE_offset:bitscheck(sUSE_32BIT_OFFSET) to know if use putlong\n //fileLength + 8 is for pseudo box header\n if(sUSE_32BIT_OFFSET){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n Log.d(TAG, \"HTC_DATA_SEMIVIDEO_MD(VALUE_offset) write bytes \" + Util.writeInt(fc, (int) (fileLength + 8)));\n } else {\n Log.d(TAG, \"HTC_DATA_SEMIVIDEO_MD(VALUE_offset_long) write bytes \" + Util.writeLong(fc, fileLength + 8));\n }\n\n //VALUE_size:MotionData size = input bytes + header/footer size\n Log.d(TAG, \"HTC_DATA_SEMIVIDEO_MD(VALUE_size) write bytes \" + Util.writeInt(fc, bytes.length + 8));\n //MetaData Key:Bit rate key\n if(null != bitRate){\n Log.d(TAG, \"HTC_METADATA_BITRATE(key name) write bytes \" + Util.writeString(fc, HtcZoeMetadata.HTC_METADATA_BITRATE));\n //IsData(0)\n Log.d(TAG, \"HTC_METADATA_BITRATE(IsData) write bytes \" + Util.writeInt(fc, 0));\n //VALUE_SIZE(HTC_METADATA vale size is 4)\n Log.d(TAG, \"HTC_METADATA_BITRATE(VALUE_size) write bytes \" + Util.writeInt(fc, 4));\n //VALUE\n Log.d(TAG, \"HTC_METADATA_BITRATE(VALUE) write bytes \" + Util.writeInt(fc, (Integer) bitRate));\n }\n \n //MetaData Key:Frame drop ratio key\n if(null != frameDropRatio){\n Log.d(TAG, \"HTC_METADATA_FRAME_DROP_RATIO(key name) write bytes \" + Util.writeString(fc, HtcZoeMetadata.HTC_METADATA_FRAME_DROP_RATIO));\n //IsData(0)\n Log.d(TAG, \"HTC_METADATA_FRAME_DROP_RATIO(IsData) write bytes \" + Util.writeInt(fc, 0));\n //VALUE_SIZE(HTC_METADATA vale size is 4)\n Log.d(TAG, \"HTC_METADATA_FRAME_DROP_RATIO(VALUE_size) write bytes \" + Util.writeInt(fc, 4));\n //VALUE\n Log.d(TAG, \"HTC_METADATA_FRAME_DROP_RATIO(VALUE) write bytes \" + Util.writeInt(fc, (Integer) frameDropRatio));\n }\n \n //HMTA footer\n Log.d(TAG, \"HMTA(footer) write bytes \" + Util.writeString(fc, HTC_TABLE_TAG));\n hMTaOffset = Util.getCurrentOffset();\n\n //*****Update HMTA table offset and size\n //offset\n //+8 is htcb header rule\n long localShift = sHtcTableOffset + 8;\n Util.setCurrentOffset(localShift); \n if(sUSE_32BIT_OFFSET){\n Log.d(TAG, \"HMTA(offset) write bytes \" + Util.writeInt(fc, (int) motionDataOffset));\n } else {\n Log.d(TAG, \"HMTA(offset_long) write bytes \" + Util.writeLong(fc, motionDataOffset));\n } \n long hMTAEnhanceSize = hMTaOffset - oriHMTAEndOffset;\n //size\n Log.d(TAG, \"HMTA(size) write bytes \" + Util.writeInt(fc, (int)(oriHMTA.length + hMTAEnhanceSize)));\n\n //*****Update pseudo box size (int)(oriHMTA.length + hMTAEnhanceSize + bytes.length(motion data size) + 8(motion data header/footer) + 8(HTC_INFO_BOX size/name)) \n Util.setCurrentOffset(fileLength); \n Log.d(TAG, \"HTC_INFO_BOX(real size) write bytes \" + Util.writeInt(fc, (int)(oriHMTA.length + hMTAEnhanceSize + bytes.length + 8 + 8)));\n \n //*****Save file and return true\n if(null != raf){\n raf.close();\n raf = null;\n }\n return true;\t\t\n }", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static int offsetBits_dest() {\n return 0;\n }", "protected void setBitAt(final int bitIndex) {\n _bitMap = _setBit(_bitMap,\n \t\t\t\t (Numbers.INTEGER_WIDTH*8-1)-bitIndex-1);\n }", "@Override\n public void function() {\n App.memory.setMemory(op2, Memory.convertBSToBoolArr(Memory.length32(Integer.toBinaryString(\n op1 * Integer.parseInt(App.memory.getMemory(op2, 1 << 2 + 2 + 1), 2)))));\n }", "private android.graphics.Bitmap m14713a(com.clevertap.android.sdk.C3072b1 r18, com.clevertap.android.sdk.C3072b1 r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r18\n r2 = r19\n int[] r10 = r0.f10958m\n r11 = 0\n if (r2 != 0) goto L_0x000e\n java.util.Arrays.fill(r10, r11)\n L_0x000e:\n r12 = 3\n r13 = 2\n r14 = 1\n if (r2 == 0) goto L_0x005e\n int r3 = r2.f10976g\n if (r3 <= 0) goto L_0x005e\n if (r3 != r13) goto L_0x0037\n boolean r3 = r1.f10975f\n if (r3 != 0) goto L_0x002c\n com.clevertap.android.sdk.c1 r3 = r0.f10961p\n int r4 = r3.f11004l\n int[] r5 = r1.f10980k\n if (r5 == 0) goto L_0x0033\n int r3 = r3.f11002j\n int r5 = r1.f10977h\n if (r3 != r5) goto L_0x0033\n goto L_0x0032\n L_0x002c:\n int r3 = r0.f10959n\n if (r3 != 0) goto L_0x0032\n r0.f10969x = r14\n L_0x0032:\n r4 = 0\n L_0x0033:\n r0.m14716a(r10, r2, r4)\n goto L_0x005e\n L_0x0037:\n if (r3 != r12) goto L_0x005e\n android.graphics.Bitmap r3 = r0.f10963r\n if (r3 != 0) goto L_0x0041\n r0.m14716a(r10, r2, r11)\n goto L_0x005e\n L_0x0041:\n int r4 = r2.f10973d\n int r5 = r0.f10966u\n int r9 = r4 / r5\n int r4 = r2.f10971b\n int r7 = r4 / r5\n int r4 = r2.f10972c\n int r8 = r4 / r5\n int r2 = r2.f10970a\n int r6 = r2 / r5\n int r5 = r0.f10968w\n int r2 = r7 * r5\n int r4 = r2 + r6\n r2 = r3\n r3 = r10\n r2.getPixels(r3, r4, r5, r6, r7, r8, r9)\n L_0x005e:\n r17.m14715a(r18)\n int r2 = r1.f10973d\n int r3 = r0.f10966u\n int r2 = r2 / r3\n int r4 = r1.f10971b\n int r4 = r4 / r3\n int r5 = r1.f10972c\n int r5 = r5 / r3\n int r6 = r1.f10970a\n int r6 = r6 / r3\n r3 = 8\n int r7 = r0.f10959n\n if (r7 != 0) goto L_0x0077\n r7 = 1\n goto L_0x0078\n L_0x0077:\n r7 = 0\n L_0x0078:\n r3 = 0\n r8 = 1\n r9 = 8\n L_0x007c:\n if (r11 >= r2) goto L_0x0100\n boolean r15 = r1.f10974e\n if (r15 == 0) goto L_0x0098\n r15 = 4\n if (r3 < r2) goto L_0x0095\n int r8 = r8 + 1\n if (r8 == r13) goto L_0x0094\n if (r8 == r12) goto L_0x0091\n if (r8 == r15) goto L_0x008e\n goto L_0x0095\n L_0x008e:\n r3 = 1\n r9 = 2\n goto L_0x0095\n L_0x0091:\n r3 = 2\n r9 = 4\n goto L_0x0095\n L_0x0094:\n r3 = 4\n L_0x0095:\n int r15 = r3 + r9\n goto L_0x009a\n L_0x0098:\n r15 = r3\n r3 = r11\n L_0x009a:\n int r3 = r3 + r4\n int r12 = r0.f10967v\n if (r3 >= r12) goto L_0x00f0\n int r12 = r0.f10968w\n int r3 = r3 * r12\n int r16 = r3 + r6\n int r13 = r16 + r5\n int r14 = r3 + r12\n if (r14 >= r13) goto L_0x00ad\n int r13 = r3 + r12\n L_0x00ad:\n int r3 = r0.f10966u\n int r12 = r11 * r3\n int r14 = r1.f10972c\n int r12 = r12 * r14\n int r14 = r13 - r16\n int r14 = r14 * r3\n int r14 = r14 + r12\n r3 = r16\n L_0x00bc:\n if (r3 >= r13) goto L_0x00f0\n r19 = r2\n int r2 = r0.f10966u\n r16 = r4\n r4 = 1\n if (r2 != r4) goto L_0x00d2\n byte[] r2 = r0.f10957l\n byte r2 = r2[r12]\n r2 = r2 & 255(0xff, float:3.57E-43)\n int[] r4 = r0.f10946a\n r2 = r4[r2]\n goto L_0x00d8\n L_0x00d2:\n int r2 = r1.f10972c\n int r2 = r0.m14712a(r12, r14, r2)\n L_0x00d8:\n if (r2 == 0) goto L_0x00dd\n r10[r3] = r2\n goto L_0x00e6\n L_0x00dd:\n boolean r2 = r0.f10969x\n if (r2 != 0) goto L_0x00e6\n if (r7 == 0) goto L_0x00e6\n r2 = 1\n r0.f10969x = r2\n L_0x00e6:\n int r2 = r0.f10966u\n int r12 = r12 + r2\n int r3 = r3 + 1\n r2 = r19\n r4 = r16\n goto L_0x00bc\n L_0x00f0:\n r19 = r2\n r16 = r4\n int r11 = r11 + 1\n r2 = r19\n r3 = r15\n r4 = r16\n r12 = 3\n r13 = 2\n r14 = 1\n goto L_0x007c\n L_0x0100:\n boolean r2 = r0.f10964s\n if (r2 == 0) goto L_0x0123\n int r1 = r1.f10976g\n if (r1 == 0) goto L_0x010b\n r2 = 1\n if (r1 != r2) goto L_0x0123\n L_0x010b:\n android.graphics.Bitmap r1 = r0.f10963r\n if (r1 != 0) goto L_0x0115\n android.graphics.Bitmap r1 = r17.m14718q()\n r0.f10963r = r1\n L_0x0115:\n android.graphics.Bitmap r1 = r0.f10963r\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n L_0x0123:\n android.graphics.Bitmap r9 = r17.m14718q()\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r1 = r9\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n return r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.clevertap.android.sdk.C3068a1.m14713a(com.clevertap.android.sdk.b1, com.clevertap.android.sdk.b1):android.graphics.Bitmap\");\n }", "public static int updateBits(int n, int m, int i, int j) {\n\t\tint allOnes = ~0;\r\n\t\tSystem.out.println(\"allOnes: \" +AssortedMethods.toFullBinaryString( allOnes));\r\n\t\t//shift left allOnes j+1 times make all ones from j+1 to the end\r\n\t\t// if the time shift equals 32 result will be 32 bits 0s;\r\n\t\tint left = j < 31 ? allOnes << (j + 1) : 0;\r\n\t\tSystem.out.println(\"left: \" + AssortedMethods.toFullBinaryString(left));\r\n\t\t// shift 1 i times left make 1000000000, then minus 1 make first bit to i-1 bit to be 1111111;\r\n\t\tint right = ((1 << i) - 1);\r\n\t\tSystem.out.println(\"right: \" + AssortedMethods.toFullBinaryString(right));\r\n\t\t// combine left and right to be 1111110000000111111111\r\n\t\tint mask = left | right;\r\n\t\tSystem.out.println(\"mask: \" + AssortedMethods.toFullBinaryString(mask));\r\n\t\t// make int n from i to j to be 0s by and then together to make the mask\r\n\t\tint nWith0s = n & mask;\r\n\t\tSystem.out.println(\"nWith0s: \" + AssortedMethods.toFullBinaryString(nWith0s));\t\r\n\t\t// left shift m j times to make it match with the j to i empty position\r\n\t\tint mShifted = m << i;\r\n\t\tSystem.out.println(\"mShifted: \" + AssortedMethods.toFullBinaryString(mShifted));\r\n\t\t// insert m into n by or them together\r\n\t\treturn mShifted | nWith0s;\r\n\t}", "private void calculateMaps() {\n\tsrcrows = new int[destHeight + 1];\n\tfor (int y = 0; y <= destHeight; y++) {\n\t srcrows[y] = (2 * y * srcHeight + srcHeight) / (2 * destHeight);\n\t}\n\tsrccols = new int[destWidth + 1];\n\tfor (int x = 0; x <= destWidth; x++) {\n\t srccols[x] = (2 * x * srcWidth + srcWidth) / (2 * destWidth);\n\t}\n\n float xscale = ( ( float ) srcWidth - 1 ) / ( ( float ) destWidth );\n float yscale = ( ( float ) srcHeight - 1 ) / ( ( float ) destHeight ) ;\n\n srcxlarr = new int[destWidth+1];\n srcxuarr = new int[destWidth+1];\n srcxarr = new int[destWidth+1];\n\n for (int x = 0 ; x <= destWidth;x++) {\n float tmp = x * xscale ;\n srcxlarr[x] = (int) Math.floor( tmp ) ;\n srcxuarr[x] = (int) Math.ceil( tmp ) ;\n srcxarr[x] = (int) ( ( tmp - srcxlarr[x] ) * 255f );\n }\n\n srcylarr = new int[destHeight+1];\n srcyuarr = new int[destHeight+1];\n srcyarr = new int[destHeight+1];\n\n for (int y = 0 ; y <= destHeight;y++) {\n float tmp = y * yscale ;\n srcylarr[y] = (int) Math.floor( tmp ) ;\n srcyuarr[y] = (int) Math.ceil( tmp ) ;\n srcyarr[y] = (int) ( ( tmp - srcylarr[y] ) * 255f );\n }\n\n /*\n System.out.println( \"srcrows\" );\n for (int i=0;i<srcrows.length;i++) {\n System.out.print( srcrows[i] + \" \" );\n }\n\n System.out.println( \"\\nsrccols\" );\n for (int i=0;i<srccols.length;i++) {\n System.out.print( srccols[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcxlarr\" );\n for (int i=0;i<srcxlarr.length;i++) {\n System.out.print( srcxlarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcxuarr\" );\n for (int i=0;i<srcxuarr.length;i++) {\n System.out.print( srcxuarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcylarr\" );\n for (int i=0;i<srcxlarr.length;i++) {\n System.out.print( srcylarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcyuarr\" );\n for (int i=0;i<srcxuarr.length;i++) {\n System.out.print( srcyuarr[i] + \" \" );\n }\n */\n }", "static void initBin(int[] binToInt)\n {\n for(int i = 0; i < 32; i++)\n {\n binToInt[i] = 0;\n }\n }", "public static int[] buildRasterScanMap(int r1, int r2, int r3, int r4) {\n /*\n int r1 = r1 * r2\n int[] r2 = new int[r1]\n r0 = 0\n L_0x0005:\n if (r0 >= r3) goto L_0x000c\n r2[r0] = r4\n int r0 = r0 + 1\n goto L_0x0005\n L_0x000c:\n if (r0 >= r1) goto L_0x0015\n int r3 = 1 - r4\n r2[r0] = r3\n int r0 = r0 + 1\n goto L_0x000c\n L_0x0015:\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jcodec.codecs.h264.decode.aso.SliceGroupMapBuilder.buildRasterScanMap(int, int, int, boolean):int[]\");\n }", "protected final void operationAND(final int data) {\r\n this.ac &= data;\r\n this.zeroFlag = this.ac == 0;\r\n this.signFlag = this.ac >= 0x80;\r\n }", "public void xor(FormatableBitSet otherBit)\n \t{\n \t\tif (otherBit == null) {\n \t\t\treturn;\n \t\t}\n \t\tint otherLength = otherBit.getLength();\n \t\tif (otherLength > getLength()) {\n \t\t\tgrow(otherLength);\n \t\t}\n \n \t\tint obByteLen = otherBit.getLengthInBytes();\n \t\tfor (int i = 0; i < obByteLen; ++i) {\n \t\t\tvalue[i] ^= otherBit.value[i];\n \t\t}\n \t\tif (SanityManager.DEBUG) {\n \t\t\tSanityManager.ASSERT(invariantHolds(),\"xor() broke invariant\");\n \t\t}\n \t}", "int getBitAsInt(int index);", "@Override\n\tprotected void set(final int... recordIds) {\n\t\tArrays.sort(recordIds);\n\t\tbitmap = bitmap.or(EWAHCompressedBitmap.bitmapOf(recordIds));\n\t}", "public int getTurnCode(){\n return mask;\n }", "@Override\n\t\t\t\t\tprotected int sizeOf(BareJID key, Bitmap bitmap) {\n\t\t\t\t\t\treturn bitmap == mPlaceHolderBitmap ? 0 : (bitmap.getRowBytes() * bitmap.getHeight());\n\t\t\t\t\t}", "public int setBit(int i, int j){\n return (i|(1<<j));\n }", "private static byte[] m5292a(byte[] bArr, byte[] bArr2) {\n int i = 0;\n byte[] bArr3 = new byte[(bArr2.length + 16)];\n while (i < bArr3.length) {\n bArr3[i] = i < 16 ? bArr[i] : bArr2[i - 16];\n i++;\n }\n return bArr3;\n }", "public void setImageGenResults(HashMap<String, View> viewMap, HashMap<String, Bitmap> imageMap) {\n if (map != null) {\n// calling addImages is faster as separate addImage calls for each bitmap.\n map.addImages(imageMap);\n }\n// need to store reference to views to be able to use them as hitboxes for click events.\n this.viewMap = viewMap;\n\n }", "public static void main(String[] args) {\n\n\t\tint bitmask = 0xF0F0;\n\t\tint value = 0x0000;\n\t\tSystem.out.println(bitmask ^ value); // Prints 0xF0F0 = 61680\n\n\t\tbitmask = 0xF0F0;\n\t\tvalue = 0x0F0F;\n\t\tSystem.out.println(bitmask ^ value); // Prints 0xFFFF = 65535\n\n\t\tbitmask = 0xF0F0;\n\t\tvalue = 0xF0F0;\n\t\tSystem.out.println(bitmask ^ value); // Prints 0\n\t}", "private static int m17785a(byte[] bArr, int i) {\n return ((bArr[i + 0] | (bArr[i + 1] << 8)) | (bArr[i + 2] << 16)) | (bArr[i + 3] << 24);\n }", "void mo17011b(int i, int i2);", "public final void rule__AstExpressionBitand__Group_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17622:1: ( ( ( rule__AstExpressionBitand__RightAssignment_1_2 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17623:1: ( ( rule__AstExpressionBitand__RightAssignment_1_2 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17623:1: ( ( rule__AstExpressionBitand__RightAssignment_1_2 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17624:1: ( rule__AstExpressionBitand__RightAssignment_1_2 )\n {\n before(grammarAccess.getAstExpressionBitandAccess().getRightAssignment_1_2()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17625:1: ( rule__AstExpressionBitand__RightAssignment_1_2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:17625:2: rule__AstExpressionBitand__RightAssignment_1_2\n {\n pushFollow(FOLLOW_rule__AstExpressionBitand__RightAssignment_1_2_in_rule__AstExpressionBitand__Group_1__2__Impl35462);\n rule__AstExpressionBitand__RightAssignment_1_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstExpressionBitandAccess().getRightAssignment_1_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void set_map(int[][] map) \n\t{\n\t\tthis.map = map;\n\t}", "public static native int nativeRecoBitmap(Bitmap bitmap, int lft, int rgt, int top, int btm, byte[]bresult, int maxsize);", "private void m60363b(C15937b c15937b, int i, byte b, int i2) throws IOException {\n short s = (short) 0;\n if (i2 == 0) {\n throw C15933c.m60314b(\"PROTOCOL_ERROR: TYPE_DATA streamId == 0\", new Object[0]);\n }\n Object obj = 1;\n boolean z = (b & 1) != 0;\n if ((b & 32) == 0) {\n obj = null;\n }\n if (obj != null) {\n throw C15933c.m60314b(\"PROTOCOL_ERROR: FLAG_COMPRESSED without SETTINGS_COMPRESS_DATA\", new Object[0]);\n }\n if ((b & 8) != 0) {\n s = (short) (this.f49425c.readByte() & 255);\n }\n c15937b.mo13376a(z, i2, this.f49425c, C15938f.m60358a(i, b, s));\n this.f49425c.skip((long) s);\n }" ]
[ "0.6296792", "0.6092813", "0.56555396", "0.55930173", "0.55332136", "0.551857", "0.5504898", "0.5478155", "0.5416372", "0.53910035", "0.53768295", "0.53613216", "0.5324324", "0.5277395", "0.5264292", "0.5244035", "0.5243279", "0.5242721", "0.5230205", "0.51891065", "0.51671666", "0.5155972", "0.51505715", "0.51410776", "0.5139079", "0.51364124", "0.5133213", "0.5115688", "0.51109904", "0.5103085", "0.50975215", "0.5088166", "0.5078056", "0.50719", "0.50698334", "0.5056285", "0.5055887", "0.50521874", "0.50291", "0.50272894", "0.502127", "0.50205034", "0.50146306", "0.5014322", "0.5012864", "0.50090766", "0.5006648", "0.4995299", "0.49893048", "0.49889007", "0.4975907", "0.49752352", "0.49724957", "0.49480367", "0.4945969", "0.49400204", "0.49255124", "0.4919104", "0.49185717", "0.4910798", "0.48938003", "0.48871225", "0.48821303", "0.48787174", "0.48757425", "0.48722795", "0.48662773", "0.48598596", "0.48596114", "0.4838791", "0.48235077", "0.4820396", "0.48132783", "0.48075816", "0.48029515", "0.47944295", "0.47782055", "0.47773385", "0.47739398", "0.47718048", "0.4750006", "0.4749548", "0.47471327", "0.47433722", "0.4738886", "0.47379127", "0.47327483", "0.47314072", "0.47291467", "0.4728173", "0.47260627", "0.4725753", "0.47242305", "0.47197354", "0.47180519", "0.47178385", "0.47146136", "0.47115257", "0.47088844", "0.47032055" ]
0.69925326
0
/////////////////////////////////////////////////////////////////////////////////////// INDIVIDUAL BIT SET/CLEAR METHODS /////////////////////////////////////////////////////////////////////////////////////// Gets a bit value
protected boolean bitAt(final int bitIndex) { return _getBit(_bitMap, (Numbers.INTEGER_WIDTH*8-1)-bitIndex-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getBit() {\r\n return _bit;\r\n }", "int getBitAsInt(int index);", "boolean getBit(int index);", "public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }", "public static int getBit(boolean value) {\n return value ? Constants.BIT_TRUE : Constants.BIT_FALSE;\n }", "public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}", "public int bitAt(int i) {\n // PUT YOUR CODE HERE\n }", "private int getBit(int value, int k) {\r\n\t\treturn (value >> k) & 1;\r\n\t}", "private static int mask(int bit) {\n return MSB >>> bit;\n }", "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "public int getValue()\n\t{\n\t\treturn bitHolder.getValue();\n\t}", "public BitField getBitField(){\n \treturn bitField;\n }", "public interface BitField {\n\n /**\n * @return the size of the field\n */\n int size();\n\n /**\n * set all values of the BitField with the rightmost value being index 0 (LSB).\n * example set(0,0,0,1) would set bit0 == 1 and bit3 == 0\n *\n * @param values the values to set the BitField (only 0 and 1 are accepted)\n * @return the BitField\n */\n void setBits(int... values);\n\n /**\n * set a given bit in the field\n *\n * @param index\n * @param value true == 1, false == 0\n * @throws IndexOutOfBoundsException if you try to set a bit greater than the size of the field\n */\n void setBit(int index, boolean value);\n\n /**\n * set a given bit in the field\n *\n * @param index\n * @param value (only 0 and 1 are accepted)\n * @throws IndexOutOfBoundsException if you try to set a bit greater than the size of the field\n */\n void setBit(int index, int value);\n\n /**\n * replace all values of the bitfield with this integer value\n *\n * @param val\n * @return\n */\n void setToValue(int val);\n\n /**\n * invert all the bits\n */\n void invertAllBits();\n\n /**\n * get a given bit as a boolean\n *\n * @param index\n * @return a boolean for the bit (true == 1, false == 0)\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n boolean getBit(int index);\n\n /**\n * get a given bit as a 0 or 1\n *\n * @param index\n * @return a value for the bit (1 == 1, 0 == 0)\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n int getBitAsInt(int index);\n\n /**\n * get the field as an integer\n *\n * @return the int value of the bitfield\n */\n int intValue();\n\n /**\n * return a nice string representation of the field\n *\n * @return\n */\n String asString();\n\n /**\n * get the LSBs of the BitField (if possible)\n *\n * @param digits the number of LSBs to return\n * @return a new BitField of the LSBs\n */\n BitField getLSBs(int digits);\n\n /**\n * get the MSBs of the BitField (if possible)\n *\n * @param digits the number of MSBs to return\n * @return a new BitField of the MSBs\n */\n BitField getMSBs(int digits);\n\n /**\n * return a new BitField. Inclusive\n *\n * @param from index of the from (0==LSB)\n * @param to index of the to (max is the size-1 of the field)\n * @return a new BitField of the chosen bits\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n BitField getSubField(int from, int to);\n\n /**\n * return a new BitField. Inclusive\n *\n * @param from index of the from (0==LSB)\n * @param to index of the to (if > size then we pad with 0's)\n * @return a new BitField of the chosen bits\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n BitField getSubFieldWithPadding(int from, int to);\n\n /**\n * a convenience method to add to the LS Bits of the BitField.\n * this will resize the BitField, shift everything to the left and insert\n * the new BitField\n *\n * @param fieldToAddToTheRight\n */\n void shiftAndAddToRight(BitField fieldToAddToTheRight);\n\n /**\n * shift to the left and pad the new LSBs with 0's\n *\n * @param numberToShift the number of bits to shift\n */\n void shiftLeft(int numberToShift);\n\n /**\n * shift to the right and have the LSBs dissapear\n *\n * @param numberToShift the number of bits to shift\n */\n void shiftRight(int numberToShift);\n\n /**\n * resize, but trimming/adding to the MSB side\n * <p>\n * if newSize > currentSize, we pad with 0's on the MSBs\n * if newSize < currentSize, we simply drop the bits on the left\n *\n * @param newSize the new size of the BitField\n */\n void resize(int newSize);\n\n /**\n * copy the BitField\n *\n * @return a copy of the bitField\n */\n BitField copy();\n\n /**\n * convert the bit field and return as a collection of bytes made up from the BitField from the LSB to the MSB. Padding in the MSB if needed\n * (byte == 8 bits).\n * <p>\n * For example:\n * 00001000 would return a list with a single byte value of 8\n * 1000001000 would return a list with the first value being a byte with a value of 8, then one with a value of 2\n *\n * @return a collection with the LSB in position 0 and the MSB as the last value\n */\n List<Byte> getAsBytes();\n\n}", "public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}", "public int updateBit(int i,int j, boolean set){\n int value=(set)?1:0;\n int mask=~(1<<j);\n int clear=mask&i;\n return clear|(1<<value);\n\n}", "public static byte set(byte value, int bit){\n return (byte)(value|(1<<bit));\n }", "public int anySetBit()\n \t{\n \t\tint numbytes = getLengthInBytes();\n \t\tint bitpos;\n \n \t\tfor (int i = 0; i < numbytes-1; i++)\n \t\t{\n \t\t\tif (value[i] != 0)\n \t\t\t{\n \t\t\t\tfor (int j = 0; j < 8; j++)\n \t\t\t\t{\n \t\t\t\t\tbitpos = 7-j;\n \t\t\t\t\tif (((1 << bitpos) & value[i]) != 0)\n \t\t\t\t\t\treturn ((i*8)+j);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \n \t\t// only the top part of the last byte is relevant\n \t\tbyte mask = (byte)(0xFF << (8-bitsInLastByte));\n \t\tif ((value[numbytes-1] & mask) != 0)\n \t\t{\n \t\t\tfor (int j = 0; j < bitsInLastByte; j++)\n \t\t\t{\n \t\t\t\tbitpos = 7-j;\n \t\t\t\tif (((1 << bitpos) & value[numbytes-1]) != 0)\n \t\t\t\t\treturn ((numbytes-1)*8)+j;\n \t\t\t}\n \t\t}\n \n \t\treturn -1;\n \t}", "void setBit(int index, int value);", "public int getBit(int columnIndex) {\n BitVector vector = (BitVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }", "public BitSet getBitSetMask() {\r\n return newMask;\r\n }", "boolean getBit(int bitIndex) {\r\n return bits.get(bitIndex);\r\n }", "BitSet valueLeafFlags();", "BitSet valueLeafFlags();", "public static int getBit(byte input,int position){\n return (input >> position) & 1;\n }", "public long bits() {\n\t\tlong x = n;\n\t\tif (x > 0) {\n\t\t\tlong msw = get(x - 1) & 0xffffffffL;\n\t\t\tx = (x - 1) * BPU;\n\t\t\tx = x & 0xffffffffL;\n\t\t\tlong w = BPU;\n\t\t\tdo {\n\t\t\t\tw >>= 1;\n\t\t\t\tif (msw >= ((1 << w) & 0xffffffffL)) {\n\t\t\t\t\tx += w;\n\t\t\t\t\tx = x & 0xffffffffL;\n\t\t\t\t\tmsw >>= w;\n\t\t\t\t}\n\t\t\t} while (w > 8);\n\t\t\tx += bittab[(int) msw];\n\t\t\tx = x & 0xffffffffL;\n\t\t}\n\t\treturn x;\n\t}", "public BitSet getMask() {\r\n return mask;\r\n }", "public int getBit(String columnName) {\n BitVector vector = (BitVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }", "public Tribit getBit(int bit){\n MathUtils.assertInRange(bit, 0, LENGTH - 1);\n return value[bit];\n }", "public static int getBitMask(int x) {\n return (0x01 << x);\n }", "public int anySetBit(int beyondBit)\n \t{\n \t\tif (SanityManager.DEBUG)\n \t\t{\n \t\t\tif (beyondBit >= this.getLength())\n SanityManager.THROWASSERT(\n \"Attempt to access bit position that exceeds the max length (\"\n + this.getLength() + \")\");\n \t\t}\n \n \t\tint startingBit = (beyondBit+1);\n \n \t\t// we have seen the last bit.\n \t\tif (startingBit >= this.getLength())\n \t\t\treturn -1;\n \n \t\tint numbytes = getLengthInBytes();\n \t\tint startingByte = startingBit / 8;\n \t\tint startingBitpos = startingBit % 8;\n \t\tint bitpos;\n \t\tbyte mask;\n \n \t\t// see if any bits in this byte is set, only the bottom part of the\n \t\t// first byte is relevant\n \t\tmask = (byte)(0xFF >> startingBitpos);\n \n \t\tif (startingByte == numbytes-1)\t// starting byte == last byte \n \t\t\tmask &= (byte)(0xFF << (8-bitsInLastByte));\n \n \t\tif ((value[startingByte] & mask ) != 0)\n \t\t{\n \t\t\t// I know we will see the bit before bitsInLastByte even if we are\n \t\t\t// at the last byte, no harm in going up to 8 in the loop\n \t\t\tfor (int j = startingBitpos; j < 8; j++)\n \t\t\t{\n \t\t\t\tif (SanityManager.DEBUG)\n \t\t\t\t{\n \t\t\t\t\tif (startingByte == numbytes-1)\n \t\t\t\t\t\tSanityManager.ASSERT(j < bitsInLastByte,\n \t\t\t\t\t\t\t\t \"going beyond the last bit\");\n \t\t\t\t}\n \t\t\t\tbitpos = 7-j;\n \t\t\t\tif (((1 << bitpos) & value[startingByte]) != 0)\n \t\t\t\t{\n \t\t\t\t\treturn (startingByte*8+j);\n \t\t\t\t}\n \t\t\t}\t\n \t\t}\n \n \t\tfor (int i = (startingByte+1); i < numbytes-1; i++)\n \t\t{\t\t\t\n \t\t\tif (value[i] != 0)\n \t\t\t{\n \t\t\t\tfor (int j = 0; j < 8; j++)\n \t\t\t\t{\n \t\t\t\t\tbitpos = 7-j;\n \t\t\t\t\tif (((1 << bitpos) & value[i]) != 0)\n \t\t\t\t\t{\n \t\t\t\t\t\treturn ((i*8)+j);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t// Last byte if there are more than one bytes. Only the top part of\n \t\t// the last byte is relevant \n \t\tif (startingByte != numbytes-1)\n \t\t{\n \t\t\tmask = (byte)(0xFF << (8-bitsInLastByte));\n \n \t\t\tif ((value[numbytes-1] & mask) != 0)\n \t\t\t{\n \t\t\t\tfor (int j = 0; j < bitsInLastByte; j++)\n \t\t\t\t{\n \t\t\t\t\tbitpos = 7-j;\n \t\t\t\t\tif (((1 << bitpos) & value[numbytes-1]) != 0)\n \t\t\t\t\t{\n \t\t\t\t\t\treturn ((numbytes-1)*8)+j;\t\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\treturn -1;\n \n \t}", "protected boolean getBit(long bitIndex) {\r\n\t long intIndex = (bitIndex >>> ADDRESS_BITS_PER_UNIT);\r\n\t return ((bits[(int)(intIndex / ONE_MB_INTS)][(int)(intIndex % ONE_MB_INTS)] \r\n\t & (1 << (bitIndex & BIT_INDEX_MASK))) != 0);\r\n\t }", "public UnmodifiableBitSet setBit(int i){\n\t\tUnmodifiableBitSet nbs = (UnmodifiableBitSet)this.clone();\n\t\tnbs.setBitInn(i);\n\t\treturn nbs;\n\t}", "@Test\n public void encodeAsBitSet()\n {\n int value = 6;\n final BinaryEncoder encoder = new BinaryEncoder(16);\n\n BitSet result = encoder.encodeAsBitSet(value);\n\n if (IS_VERBOSE)\n {\n System.out.println(\"result = \" + result);\n }\n assertNotNull(result);\n\n assertFalse(result.get(0));\n assertTrue(result.get(1));\n assertTrue(result.get(2));\n assertFalse(result.get(3));\n\n value = 20; // > 16 outside range\n result = encoder.encodeAsBitSet(value);\n if (IS_VERBOSE)\n {\n System.out.println(\"result = \" + result);\n }\n assertNotNull(result);\n\n // 0100 Best fit into 4 digits; ignores higher bits.\n assertFalse(result.get(0));\n assertFalse(result.get(1));\n assertTrue(result.get(2));\n assertFalse(result.get(3));\n }", "public static Integer getBit(byte input, int position){\n return ((input >> position) & 1);\n }", "boolean bitSet(int p, int b) // check if int p bit b is 1\n {\n return ((p>>b) & 1)>0;\n }", "protected final void operationBIT(final int data) {\r\n this.signFlag = data >= 0x80;\r\n this.overflowFlag = (data & 0x40) > 0;\r\n this.zeroFlag = (this.ac & data) == 0;\r\n }", "public int bits() {\n return mat.getType().getBits();\n }", "static int toggleBit(int n){\n return n & (n-1);\n }", "public void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getValue() - 1 ));\n\t\t\n\t}", "public static int getBit(byte b,int position)\n\t{\n\t return ((b >> position) & 1);\n\t}", "abstract boolean testBit(int index);", "public boolean get(Flag flag) {\n return bits.get(flag.getId());\n }", "default BitStream bitStream() {\n return bitStream(0);\n }", "public abstract int getBitSize();", "static int isolateBit(int n){\n return n & (-n);\n }", "int getIntBitLength() {\r\n\t\treturn intBitLength;\r\n\t}", "@Test\n public void encodeAsBitSetNegative()\n {\n final int value = -5;\n final BinaryEncoder encoder = new BinaryEncoder(-8, 8, 1.0);\n\n final BitSet result = encoder.encodeAsBitSet(value);\n\n if (IS_VERBOSE)\n {\n System.out.println(\"result = \" + result);\n }\n assertNotNull(result);\n\n assertTrue(result.get(0));\n assertTrue(result.get(1));\n assertFalse(result.get(2));\n assertFalse(result.get(3));\n }", "void setBit(int index, boolean value);", "private static void isSetOrUnset(long num, int pos) {\n\t\tlong temp = 1l << pos;\n\t\tlong result = num & temp;\n\t\tif (temp == result) {\n\t\t\tSystem.out.println(\"Bit is set\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Bit is unset\");\n\t\t}\n\t}", "public int IMMBYTE() {\n int reg = ROP_ARG(konami.pc);\n konami.pc = konami.pc + 1 & 0xFFFF;\n return reg & 0xFF;//insure it returns a 8bit value\n }", "public static void bitMaxSize(){\n BitSet bitSet = new BitSet(Integer.MAX_VALUE);\n bitSet.set(0);\n }", "private static int _getMask(final int bitIndex) {\n return (1 << bitIndex);\n }", "public byte getBit(int k) {\n if (this.inBitRange(k)) {\n int i = k / 8;\n int j = k % 8;\n int b = this.data.get(i);\n return (byte) ((b >> j) & 1);\n }\n return 0;\n }", "public BitSet getBinaryData() {\n this.m_Phenotype = (BitSet)this.m_Genotype.clone();\n return this.m_Phenotype;\n }", "long getFlags();", "public Tribit[] getBits(){\n return Arrays.copyOf(this.value, this.value.length);\n }", "public bit not()\n\t{\n\t\tbit notBit = new bit();\n\t\t\n\t\tnotBit.setValue(Math.abs(bitHolder.getValue() - 1));\n\t\t\n\t\treturn notBit;\n\t}", "@Test\n public void bitfieldOperations() throws Exception {\n assumeThat(getEnv().serverVersion[0], is(greaterThanOrEqualTo(3)));\n\n awaitIndefinitely(commandClient.del(key(\"bf\")));\n\n List<Long> results = awaitIndefinitely(commandClient.bitfield(key(\"bf\"), asList(new Incrby(I05, 100L, 1L), new Get(U04, 0L))));\n assertThat(results, contains(1L, 0L));\n\n results.clear();\n for (int i = 0; i < 4; i++) {\n results.addAll(awaitIndefinitely(commandClient.bitfield(key(\"bf\"), asList(\n new Incrby(U02, 100L, 1L),\n new Overflow(SAT),\n new Incrby(U02, 102L, 1L)))));\n }\n assertThat(results, contains(1L, 1L, 2L, 2L, 3L, 3L, 0L, 3L));\n\n results = awaitIndefinitely(commandClient.bitfield(key(\"bf\"), asList(new Overflow(FAIL), new Incrby(U02, 102L, 1L))));\n assertThat(results, contains(nullValue()));\n\n awaitIndefinitely(commandClient.del(key(\"bf\")));\n\n // bitfield doesn't support non-numeric offsets (which are used for bitsize-based offsets)\n // but it's possible to get the same behaviour by using the bit size provided by the type enum,\n // ie. the following is equivalent to:\n // BITFIELD <key> SET u8 #2 200 GET u8 #2 GET u4 #4 GET u4 #5\n results = awaitIndefinitely(commandClient.bitfield(key(\"bf\"), asList(\n new Set(U08, U08.getBitSize() * 2, 200L),\n new Get(U08, U08.getBitSize() * 2),\n new Get(U04, U04.getBitSize() * 4),\n new Get(U04, U04.getBitSize() * 5))));\n assertThat(results, contains(0L, 200L, 12L, 8L));\n }", "public int setBit(int i, int j){\n return (i|(1<<j));\n }", "int getBitPosition() {\r\n\t\treturn bitPosition;\r\n\t}", "public boolean isFlagSet( int flag )\n {\n return ( value & ( 1 << ( MAX_SIZE - 1 - flag ) ) ) != 0;\n }", "int getFlag();", "public int getFlags();", "public int getFlags();", "public int getNumBitsSet()\n \t{\n \t\tint count = 0;\n \n \t\tfor (int index = getLength() - 1; index >= 0; index--)\n \t\t{\n \t\t\tif (isSet(index))\n \t\t\t{\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}\n \n \t\treturn count;\n \t}", "public void getBit(String columnName, NullableBitHolder holder) {\n BitVector vector = (BitVector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }", "private int readbit(ByteBuffer buffer) {\n if (numberLeftInBuffer == 0) {\n loadBuffer(buffer);\n numberLeftInBuffer = 8;\n }\n int top = ((byteBuffer >> 7) & 1);\n byteBuffer <<= 1;\n numberLeftInBuffer--;\n return top;\n }", "static int setBit(int n, int pos){\n return n | (1<<pos);\n }", "static boolean getBit(int num, int pos) {\n\t\t\treturn ((num & (1<<pos)) != 0) ;\n\t\t}", "public int getAnalysisBits();", "public static boolean isSet(int value, int bit){\n return (value&(1<<bit))!=0;\n }", "public long getUInt() { return bb.getInt() & 0xffff_ffffL; }", "static int toggleBit(int n, int pos){\n return n ^ (1<<pos);\n }", "public static TribitByte value(int realByte){\n Tribit[] bits = new Tribit[LENGTH];\n int current = realByte;\n for(int idx = 0; idx < LENGTH; idx++){\n int bit = current & 0b1;\n bits[idx] = (bit == 0 ? Tribit.ZERO : Tribit.ONE);\n current = current >>> 1;\n }\n return new TribitByte(bits);\n }", "static int countSetBits(int n)\r\n {\r\n int count = 0;\r\n while (n > 0) {\r\n count += n & 1;\r\n n >>= 1;\r\n }\r\n return count;\r\n }", "long getCollideBits();", "private boolean getBit(int index) {\n int blockIndex = index / 32;\n int bitIndex = index % 32;\n return (data[blockIndex] & (1 << bitIndex)) != 0;\n }", "public org.apache.axis.types.UnsignedInt getFlags() {\n return flags;\n }", "public BitSet makeMod(){\n\t\tBitSet bs = new BitSet(this.length());\n\t\tbs.or(this);\n\t\treturn bs;\n\t}", "private EfficientTerminalSet setBit(int index, boolean value) {\n int[] newData = data.clone();\n int blockIndex = index / 32;\n int bitIndex = index % 32;\n if (value)\n newData[blockIndex] |= 1 << bitIndex;\n else\n newData[blockIndex] &= ~(1 << bitIndex);\n return new EfficientTerminalSet(terminals, indices, newData);\n }", "public static byte setBit(byte input, int position, boolean val){\n return val? (byte) (input | (1 << position)):(byte) (input & ~(1 << position));\n }", "static int setBit(int num, int pos) {\n\t\t\treturn num | (1<<pos);\n\t\t}", "boolean m19264c() {\n return (getState() & 12) != 0;\n }", "public abstract boolean testRightmostBit();", "public int\n setBitRate(int bitRate);", "public long getBitboard() {\r\n return bitboard;\r\n }", "int getHighBitLength();", "public FixedBitSet getLastValue() {\n return value;\n }", "public long getFlags() {\n }", "private static int getBit(int pack, int pos) {\n\t\treturn (pack & (1 << pos)) != 0 ? 1 : 0;\n\t}", "public int getBitOffset() {\r\n\t\treturn bitOffset;\r\n\t}", "public long getMask() {\r\n\t\treturn this.mask;\r\n\t}", "IntsRef getFlags();", "public void getBit(int columnIndex, NullableBitHolder holder) {\n BitVector vector = (BitVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }", "public int clearBit(int i,int j){\n int mask=~(1<<j);\n return i&mask;\n }", "int getIntFromBitFlag(int flag) {\r\n\t\tswitch (flag) {\r\n\t\tcase 1:\r\n\t\t\treturn 1;\r\n\t\tcase 2:\r\n\t\t\treturn 2;\r\n\t\tcase 3:\r\n\t\t\treturn 4;\r\n\t\tcase 4:\r\n\t\t\treturn 8;\r\n\t\tcase 5:\r\n\t\t\treturn 16;\r\n\t\tcase 6:\r\n\t\t\treturn 32;\r\n\t\tcase 7:\r\n\t\t\treturn 64;\r\n\t\tcase 8:\r\n\t\t\treturn 128;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"No flag specified in BaseRobot.getIntFromBitFlag\");\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "int get(int i) {\n int numPosition = i / MAX_BITS;\n int intPosition = i % MAX_BITS;\n long val = values[numPosition] & (1 << intPosition);\n return (int) (val >> intPosition);\n }", "private static int setBit(int ci, int bo, int newBit) {\n int clearMask = ~(1 << bo);\n int ciWithBitCleared = ci & clearMask;\n int bitMask = newBit << bo;\n int xiWithNewBitSet = ciWithBitCleared | bitMask;\n return xiWithNewBitSet;\n }", "public DataBits getDataBits() {\n\t\treturn dataBits;\n\t}", "Integer getBitRate() {\n return bitRate;\n }" ]
[ "0.7499118", "0.72164667", "0.69751036", "0.65721726", "0.6542374", "0.65034246", "0.6445254", "0.64418143", "0.6440744", "0.64184487", "0.6394832", "0.6336797", "0.63205934", "0.6320578", "0.63032156", "0.62622017", "0.62340456", "0.62268716", "0.62060857", "0.6202973", "0.6184723", "0.6158889", "0.6158889", "0.61360943", "0.61175233", "0.60874635", "0.6084333", "0.6066869", "0.6046207", "0.6018033", "0.59836876", "0.59818345", "0.59794766", "0.5959629", "0.5948692", "0.5942341", "0.59371305", "0.5904053", "0.58916634", "0.58889484", "0.58763087", "0.58691895", "0.58688366", "0.58665997", "0.5866474", "0.5843791", "0.5833519", "0.58204496", "0.5813883", "0.5806836", "0.5788372", "0.5736331", "0.5731224", "0.570813", "0.56954235", "0.5683703", "0.56812245", "0.56763506", "0.56637746", "0.56578714", "0.56434774", "0.561155", "0.5610048", "0.5610048", "0.5605953", "0.5584024", "0.55826336", "0.5575258", "0.55667317", "0.5566424", "0.55614525", "0.5554245", "0.5552548", "0.5523622", "0.55225", "0.5522269", "0.55099475", "0.5506014", "0.5500724", "0.54911524", "0.5486608", "0.5485665", "0.54730266", "0.5463803", "0.5459311", "0.54580903", "0.544032", "0.5439915", "0.5439069", "0.5436199", "0.54312676", "0.54305166", "0.5429837", "0.5428566", "0.54199994", "0.54172784", "0.54093605", "0.54077476", "0.53999823", "0.53916717" ]
0.5440121
87
Sets a bit value
protected void setBitAt(final int bitIndex) { _bitMap = _setBit(_bitMap, (Numbers.INTEGER_WIDTH*8-1)-bitIndex-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setBit(int index, int value);", "void setBit(int index, boolean value);", "public void setBit(int pos, int bit) {\r\n\t\tflagBits[pos] = bit;\r\n\t}", "public static byte set(byte value, int bit){\n return (byte)(value|(1<<bit));\n }", "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "public void setBit(int index, boolean bit)\n\t{\n\t\tif (index + 1 > bits.size()) bits.ensureCapacity(index + 1);\n\t\tbits.add(index, bit);\n\t}", "public void setFlag( int flag )\n {\n value |= 1 << flag;\n setBit( flag );\n }", "private EfficientTerminalSet setBit(int index, boolean value) {\n int[] newData = data.clone();\n int blockIndex = index / 32;\n int bitIndex = index % 32;\n if (value)\n newData[blockIndex] |= 1 << bitIndex;\n else\n newData[blockIndex] &= ~(1 << bitIndex);\n return new EfficientTerminalSet(terminals, indices, newData);\n }", "public static int setBit(final int intValue, final Bits bit) {\n return setFlag(intValue, bit, true);\n }", "public static byte setBit(byte input, int position, boolean val){\n return val? (byte) (input | (1 << position)):(byte) (input & ~(1 << position));\n }", "protected void setBit(long bitIndex) {\r\n\t long intIndex = (bitIndex >>> ADDRESS_BITS_PER_UNIT);\r\n\t bits[(int)(intIndex / ONE_MB_INTS)][(int)(intIndex % ONE_MB_INTS)] \r\n\t |= 1 << (bitIndex & BIT_INDEX_MASK);\r\n\t }", "private void setIsBinary(boolean value) {\r\n\t \t_isBinary = value;\r\n\t }", "protected long setBit(long word, boolean flag, long position) {\n\t\tif (!flag) {\n\t\t\treturn word & (~(1L << position));\n\t\t}\n\t\treturn word | (1L << position);\n\t}", "public void setBlueBit(int bit, boolean value) {\n\t this.blue[bit] = value;\n\t this.color = computeColor();\n\t }", "public static long setBit(long value, int pos) {\n pos--;\n return value | (1L << pos);\n\n }", "public void set(int value)\n\t{\n\t\tbitHolder.setValue(value);\n\t}", "static int setBit(int num, int pos) {\n\t\t\treturn num | (1<<pos);\n\t\t}", "public UnmodifiableBitSet setBit(int i){\n\t\tUnmodifiableBitSet nbs = (UnmodifiableBitSet)this.clone();\n\t\tnbs.setBitInn(i);\n\t\treturn nbs;\n\t}", "protected void _setBooleanElement(int index, boolean value) {\n\t\tint bitOffset = Math.multiplyExact(index, this.step);\n\t\t// the number of the Bit in the byte it is in\n\t\tbyte bitnum = (byte) (bitOffset % Constants.BITS_PER_BYTE);\n\t\t// position of the byte in the data section\n\t\tint position = (this.ptr + bitOffset / Constants.BITS_PER_BYTE);\n\t\tbyte oldValue = this.segment.buffer.get(position);\n\t\t// the left side of the '|' zeros the selected bit; the right side sets the new value\n\t\tthis.segment.buffer.put(position, (byte) ((oldValue & (~(1 << bitnum))) | ((value ? 1 : 0) << bitnum)));\n\t}", "public int\n setBitRate(int bitRate);", "public int setBit(int i, int j){\n return (i|(1<<j));\n }", "static int setBit(int n, int pos){\n return n | (1<<pos);\n }", "public void set(int loc, boolean val)\n\t{\n\t\tif (loc < this.size)\n\t\t{\n\t\t\tif (val)\n\t\t\t{\n\t\t\t\tbits[loc / BITS_IN_LONG] |= (1L << (loc % BITS_IN_LONG));\n\t\t\t} else\n\t\t\t{\n\t\t\t\tbits[loc / BITS_IN_LONG] &= ~(1L << (loc % BITS_IN_LONG)); // DO NOT FORGET THAT SECOND L\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // TOOK ME FOREVER TO FIX WHEN I FORGOT\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Exception: tried to set value of BitArray that was out of bounds: \" + loc + \". Size was \" + this.size);\n\t\t}\n\t}", "public int updateBit(int i,int j, boolean set){\n int value=(set)?1:0;\n int mask=~(1<<j);\n int clear=mask&i;\n return clear|(1<<value);\n\n}", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "public void setBitField(BitField bitField){\n \tthis.bitField=bitField;\n }", "public TribitByte setBit(int bitPosition, Tribit bit){\n MathUtils.assertInRange(bitPosition, 0, LENGTH - 1);\n Objects.requireNonNull(bit);\n Tribit[] newValues = Arrays.copyOf(this.value, this.value.length);\n newValues[bitPosition] = bit;\n return new TribitByte(newValues);\n }", "public void setBitToOne(int k) {\n if (this.inBitRange(k)) {\n int i = k / 8;\n int j = k % 8;\n int b = this.data.get(i);\n int c = 1 << (7 - j);\n b = b | c;\n byte d = (byte) b;\n this.data.set(i, d);\n }\n }", "void setBits(int... values);", "public static int setFlag(final int intValue, Bits bit, final boolean condition) {\n if (condition) {\n return intValue | bit.getMask();\n } else {\n return intValue & ~bit.getMask();\n }\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "protected void setMode(int bitIndex, boolean value) {\n modes.set(bitIndex, value);\n }", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "void writeBit(int bit) throws IOException;", "void set(boolean value);", "public void setBoolean(int index, boolean value) throws ArrayIndexOutOfBoundsException\n\t{\n\t\tbytes[index] = (byte) (value ? 1 : 0);\n\t}", "public void setBitMode(byte ucMask, BitModes bitMode) throws FTD2XXException {\n ensureFTStatus(ftd2xx.FT_SetBitMode(ftHandle, ucMask, (byte) bitMode.constant()));\n }", "public void set(boolean bol);", "public void \nsetFlag( int pFlagNumber, boolean pYesNo ) {\n if (pYesNo)\n fFlagBox = fFlagBox | (1 << pFlagNumber); \n else\n fFlagBox = fFlagBox & (~(1 << pFlagNumber));\n}", "void set(int i, int val) {\n int numPosition = i / MAX_BITS;\n int intPosition = i % MAX_BITS;\n\n if (val == 1)\n values[numPosition] |= (1 << intPosition);\n else\n values[numPosition] = values[numPosition]&~(1 << intPosition);\n }", "public void setBitField(byte[] byteField){\n \tbitField.setBitField(byteField);;\n }", "public void setIsDefault(Byte value) {\n set(3, value);\n }", "public void setFlag(int which, boolean value) {\n if (value) {\n flags |= (1 << which); // set flag\n } else {\n flags &= ~(1 << which); // clear flag\n }\n }", "void setCategoryBits (long bits);", "public void set(int value)\n {\n set(value, true);\n }", "public void setFlags( byte[] bytes )\n {\n if ( (bytes== null ) || ( bytes.length != 4 ) )\n {\n value = -1;\n }\n \n value = ( ( bytes[0] & 0x00F ) << 24 ) | ( ( bytes[1] & 0x00FF ) << 16 ) | ( ( bytes[2] & 0x00FF ) << 8 ) | ( 0x00FF & bytes[3] ); \n setData( bytes );\n }", "boolean bitSet(int p, int b) // check if int p bit b is 1\n {\n return ((p>>b) & 1)>0;\n }", "public static int _setBit(final int originalInt,final int bitIndex) {\n return originalInt | _getMask(bitIndex);\n }", "public static byte setFlag(byte field, int pos, boolean value) {\n if(pos < 1 || pos > 8) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 8\");\n }\n\n short flag = (short) Math.pow(2, (pos-1));\n\n if(value) {\n field |= flag;\n } else {\n field &= ~flag;\n }\n return field;\n }", "protected final synchronized void setFlag(int flag, boolean sts) {\n\t\tboolean state = (m_flags & flag) != 0 ? true : false;\n\t\tif ( state && sts == false)\n\t\t\tm_flags -= flag;\n\t\telse if ( state == false && sts == true)\n\t\t\tm_flags += flag;\n\t}", "public void setFlags(int param1) {\n }", "public void setValue(int value) {\n BitSet b = new BitSet();\n addIntToBitset(b, value, 0, 32);\n setMessagePayload(b, getByteSize());\n }", "private static int setBit(int ci, int bo, int newBit) {\n int clearMask = ~(1 << bo);\n int ciWithBitCleared = ci & clearMask;\n int bitMask = newBit << bo;\n int xiWithNewBitSet = ciWithBitCleared | bitMask;\n return xiWithNewBitSet;\n }", "public void setValue(boolean value) {\n this.value = value;\n }", "public static int setFlag(int field, int pos, boolean value) {\n if(pos < 1 || pos > 32) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 32\");\n }\n\n long flag = (long) Math.pow(2, (pos-1));\n\n if(value) {\n field |= flag;\n } else {\n field &= ~flag;\n }\n return field;\n }", "public void setValue(boolean value) {\n this.value = value;\n }", "void setCollideBits (long bits);", "public void setFlagBin(int n) {\n flagBin=Translate.decTobinN(n, 4);\n }", "public void setFlag( KerberosFlag flag )\n {\n int pos = MAX_SIZE - 1 - flag.getOrdinal();\n value |= 1 << pos;\n }", "public void set(int flag)\n {\n setWaitFlags( waitFlags | flag );\n }", "public Builder set(int position, Tribit bit){\n Objects.requireNonNull(bit);\n MathUtils.assertInRange(position, 0, LENGTH - 1);\n bits[position] = bit;\n this.cursor = position + 1;\n return this;\n }", "BinaryArrayReadWrite set(int index, byte x);", "void set(boolean on);", "public void setOpcode(int val);", "public void set(final int i) {\n\t\tint wordPos;\n\t\tint bitPos = 0;\n\t\tint offset;\n\n\t\tassert (i >= 0);\n\n\t\t// try simple set (append style)\n\t\tif (fastSet(i))\n\t\t\treturn;\n\n\t\t// simple set failed. Find compressed word where to set the bit\n\t\tRunningLengthWord rlw = null, prev = null, next = null;\n\n\t\tEWAHIterator iter = new EWAHIterator(this.buffer, actualsizeinwords);\n\t\twhile (iter.hasNext() && (bitPos < i || bitPos == 0)) {\n\t\t\tif (rlw != null)\n\t\t\t\tprev = new RunningLengthWord(rlw);\n\t\t\trlw = iter.next();\n\t\t\tbitPos += rlw.size() * wordinbits;\n\t\t}\n\t\tif (iter.hasNext())\n\t\t\tnext = rlw.getNext();\n\n\t\tbitPos -= rlw.size() * 64;\n\t\toffset = i - bitPos;\n\t\twordPos = rlw.position;\n\n\t\t// the bit to set is in a literal word. Try to set bit directly\n\t\tif (offset >= rlw.getRunningLength() * 64) {\n\t\t\toffset -= rlw.getRunningLength() * 64;\n\t\t\tint literalPos = (offset / 64);\n\t\t\twordPos += literalPos + 1;\n\t\t\tfinal long newdata = 1l << (offset % 64);\n\t\t\tthis.buffer[wordPos] = this.buffer[wordPos] | newdata;\n\t\t\t// if all bits of literal set, then either merge with run length\n\t\t\t// or create new RLW.\n\t\t\tif (this.buffer[wordPos] == oneMask) {\n\t\t\t\t// first literal of current RLW and running bit is set\n\t\t\t\t// increase count by one (unless maximal count reached)\n\t\t\t\tif (literalPos == 0\n\t\t\t\t\t\t&& (rlw.getRunningBit() || rlw.getRunningLength() == 0)\n\t\t\t\t\t\t&& rlw.getRunningLength() < RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\trlw.setRunningBit(true);\n\t\t\t\t\trlw.setRunningLength(rlw.getRunningLength() + 1);\n\t\t\t\t\trlw.setNumberOfLiteralWords(rlw.getNumberOfLiteralWords() - 1);\n\t\t\t\t\t// current RLW has no literals left, try to merge with\n\t\t\t\t\t// following RLW\n\t\t\t\t\tif (rlw.getNumberOfLiteralWords() == 0\n\t\t\t\t\t\t\t&& next != null\n\t\t\t\t\t\t\t&& next.getRunningBit()\n\t\t\t\t\t\t\t&& next.getRunningLength() + rlw.getRunningLength() < RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\t\tif (rlw.equals(this.rlw))\n\t\t\t\t\t\t\tthis.rlw.position = next.position;\n\t\t\t\t\t\tnext.setRunningLength(next.getRunningLength()\n\t\t\t\t\t\t\t\t+ rlw.getRunningLength());\n\t\t\t\t\t\tshiftCompressedWordsLeft(rlw.position + 2, 2);\n\t\t\t\t\t}\n\t\t\t\t\t// merging doesn't work because of size\n\t\t\t\t\t// else just reduce length of rlw by 1\n\t\t\t\t\telse\n\t\t\t\t\t\tshiftCompressedWordsLeft(rlw.position + 2, 1);\n\t\t\t\t}\n\t\t\t\t// if last word increase following running length count if\n\t\t\t\t// possible\n\t\t\t\telse if (next != null\n\t\t\t\t\t\t&& next.getRunningLength() \n\t\t\t\t\t\t\t\t< RunningLengthWord.largestrunninglengthcount\n\t\t\t\t\t\t&& (next.getRunningLength() == 0 || next\n\t\t\t\t\t\t\t\t.getRunningBit())\n\t\t\t\t\t\t&& literalPos == rlw.getNumberOfLiteralWords() - 1) {\n\t\t\t\t\tnext.setRunningBit(true);\n\t\t\t\t\tnext.setRunningLength(next.getRunningLength() + 1);\n\t\t\t\t\trlw.setNumberOfLiteralWords(rlw.getNumberOfLiteralWords() - 1);\n\t\t\t\t\t// current RLW has no literals left, try to merge with\n\t\t\t\t\t// following\n\t\t\t\t\tif (rlw.getNumberOfLiteralWords() == 0\n\t\t\t\t\t\t\t&& next != null\n\t\t\t\t\t\t\t&& next.getRunningBit()) {\n\t\t\t\t\t\tlong totalRunLen = next.getRunningLength() + rlw.getRunningLength(); \n\t\t\t\t\t\t\n\t\t\t\t\t\t// merging into next possible?\n\t\t\t\t\t\tif (totalRunLen < RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\t\t\tnext.setRunningLength(next.getRunningLength()\n\t\t\t\t\t\t\t\t\t+ rlw.getRunningLength());\n\t\t\t\t\t\t\tshiftCompressedWordsLeft(rlw.position + 2, 2);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// run length to large, move run length from next to current\n\t\t\t\t\t\t// and shift next one to the left\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\trlw.setRunningLength(RunningLengthWord.\n\t\t\t\t\t\t\t\t\tlargestrunninglengthcount);\n\t\t\t\t\t\t\tnext.setRunningLength(totalRunLen - RunningLengthWord\n\t\t\t\t\t\t\t\t\t.largestrunninglengthcount);\n\t\t\t\t\t\t\tshiftCompressedWordsLeft(rlw.position + 2, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// remove RLW\n\t\t\t\t\telse\n\t\t\t\t\t\tshiftCompressedWordsLeft(\n\t\t\t\t\t\t\t\trlw.position + rlw.getNumberOfLiteralWords()\n\t\t\t\t\t\t\t\t\t\t+ 2, 1);\n\t\t\t\t}\n\t\t\t\t// cannot merge, have to create new RLW and adapt literal count\n\t\t\t\t// of current RLW\n\t\t\t\telse {\n\t\t\t\t\tint beforeLit = literalPos;\n\t\t\t\t\tint afterLit =\n\t\t\t\t\t\t\trlw.getNumberOfLiteralWords() - literalPos - 1;\n\n\t\t\t\t\tif (log.isDebugEnabled()) {log.debug(\"split into \" + beforeLit + \" and \" + afterLit);};\n\n\t\t\t\t\tRunningLengthWord newRlw = new RunningLengthWord(rlw);\n\t\t\t\t\tnewRlw.position += literalPos + 1;\n\t\t\t\t\tnewRlw.setRunningBit(true);\n\t\t\t\t\tnewRlw.setRunningLength(1L);\n\t\t\t\t\tnewRlw.setNumberOfLiteralWords(afterLit);\n\n\t\t\t\t\trlw.setNumberOfLiteralWords(beforeLit);\n\n\t\t\t\t\t// if next one is full running length 1's we have to switch\n\t\t\t\t\t// running lengths\n\t\t\t\t\tif (next != null\n\t\t\t\t\t\t\t&& next.getRunningBit()\n\t\t\t\t\t\t\t&& next.getRunningLength() == RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\t\tnext.setRunningLength(1L);\n\t\t\t\t\t\tnewRlw.setRunningLength(RunningLengthWord.largestrunninglengthcount);\n\t\t\t\t\t}\n\n\t\t\t\t\t// we split the last word, adapt it\n\t\t\t\t\tif (rlw.position == this.rlw.position)\n\t\t\t\t\t\tthis.rlw.position = newRlw.position;\n\t\t\t\t\tif (log.isDebugEnabled()) {log.debug(\"split because new 1's run\");};\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// bit is in a clean word, if it is a '1' sequence we are fine\n\t\telse if (rlw.getRunningBit()) {\n\t\t\treturn;\n\t\t}\n\t\t// bit to set is in '0' clean word. We have to split this clean word and\n\t\t// shift following words in the buffer.\n\t\t// We do this by adding a new RLW y after the RLW x which has to be\n\t\t// split. This new RWL y takes over all the\n\t\t// literal words of x and encodes the part of the 0 sequence that\n\t\t// follows the bit we want to set. RWL x's\n\t\t// run length is reduced and we add the new bit as the new single\n\t\t// literal word for x.\n\t\telse {\n\t\t\tlong zeroRunLen = rlw.getRunningLength();\n\t\t\tlong newRunLen = offset / 64;\n\t\t\tlong afterRunLen = ((zeroRunLen * 64 - 63) / 64) - newRunLen;\n\t\t\tlong newNumLiterals = rlw.getNumberOfLiteralWords() + 1;\n\t\t\tfinal long newdata = 1l << (offset % 64);\n\n\t\t\t// no preceeding and following run length.\n\t\t\t// CASE 1) Try to merge with preceeding or following RLW.\n\t\t\tif (newRunLen == 0 && afterRunLen == 0) {\n\t\t\t\t// merge with previous if exists and possible\n\t\t\t\tif (prev != null\n\t\t\t\t\t\t&& prev.getNumberOfLiteralWords() + newNumLiterals <= RunningLengthWord.largestliteralcount) {\n\t\t\t\t\tprev.setNumberOfLiteralWords(prev.getNumberOfLiteralWords()\n\t\t\t\t\t\t\t+ newNumLiterals);\n\t\t\t\t\tthis.buffer[rlw.position] = newdata;\n\n\t\t\t\t\tif (this.rlw.equals(rlw))\n\t\t\t\t\t\tthis.rlw = prev;\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// No merging possible!\n\t\t\t// CASE 2) if previous run length = 0 then add new literal into\n\t\t\t// previous if previous still has space\n\t\t\tif (newRunLen == 0\n\t\t\t\t\t&& prev != null\n\t\t\t\t\t&& prev.getNumberOfLiteralWords() < RunningLengthWord.largestliteralcount) {\n\t\t\t\tprev.setNumberOfLiteralWords(prev.getNumberOfLiteralWords() + 1);\n\t\t\t\trlw.setRunningLength(afterRunLen);\n\t\t\t\tshiftCompressedWordsRight(rlw.position, 1);\n\t\t\t\tthis.buffer[prev.position + prev.getNumberOfLiteralWords()] =\n\t\t\t\t\t\tnewdata;\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// CASE 3) No merging possible, if following run length = 0, then\n\t\t\t// try to extend R with the new literal.\n\t\t\tif (afterRunLen == 0\n\t\t\t\t\t&& rlw.getNumberOfLiteralWords() < RunningLengthWord.largestliteralcount) {\n\t\t\t\trlw.setNumberOfLiteralWords(rlw.getNumberOfLiteralWords() + 1);\n\t\t\t\trlw.setRunningLength(newRunLen);\n\t\t\t\tshiftCompressedWordsRight(rlw.position + 1, 1);\n\t\t\t\tthis.buffer[rlw.position + 1] = newdata;\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// TODO rlw is full (literals) and next one has no running length\n\t\t\t// and is not full\n\t\t\tif (afterRunLen == 0\n\t\t\t\t\t& next != null\n\t\t\t\t\t&& rlw.getNumberOfLiteralWords() == RunningLengthWord.largestliteralcount\n\t\t\t\t\t&& next.getNumberOfLiteralWords() < RunningLengthWord.largestliteralcount) {\n\t\t\t\trlw.setRunningLength(rlw.getRunningLength() - 1);\n\t\t\t\tshiftCompressedWordsRight(rlw.position + 1, 1);\n\t\t\t\trlw.array = this.buffer;\n\t\t\t\tnext.array = this.buffer;\n\n\t\t\t\tthis.buffer[rlw.position + 1] = newdata;\n\n\t\t\t\t// switch next header with last literal\n\t\t\t\tlong temp = this.buffer[next.position + 1];\n\t\t\t\tthis.buffer[next.position + 1] = this.buffer[next.position];\n\t\t\t\tthis.buffer[next.position] = temp;\n\t\t\t\tnext.setNumberOfLiteralWords(next.getNumberOfLiteralWords() + 1);\n\n\t\t\t\tif (next.position + 1 == this.rlw.position)\n\t\t\t\t\tthis.rlw.position = next.position;\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// CASE 4) no extension possible. Have to SPLIT the zero sequence\n\t\t\t// and create new RLW\n\t\t\t// new RLW only gets a single literal\n\t\t\tif (afterRunLen == 0) {\n\t\t\t\tassert (rlw.getNumberOfLiteralWords() == RunningLengthWord.largestliteralcount);\n\n\t\t\t\tshiftCompressedWordsRight(rlw.position + 1, 1);\n\t\t\t\tshiftCompressedWordsRight(\n\t\t\t\t\t\trlw.position + rlw.getNumberOfLiteralWords() + 1, 1);\n\t\t\t\tRunningLengthWord newRlw =\n\t\t\t\t\t\tnew RunningLengthWord(this.buffer, rlw.position\n\t\t\t\t\t\t\t\t+ rlw.getNumberOfLiteralWords() + 1);\n\t\t\t\trlw.array = this.buffer;\n\n\t\t\t\tnewRlw.setNumberOfLiteralWords(1L);\n\t\t\t\tnewRlw.setRunningLength(0);\n\t\t\t\tnewRlw.setRunningBit(false);\n\n\t\t\t\trlw.setRunningLength(newRunLen);\n\n\t\t\t\tthis.buffer[rlw.position + 1] = newdata;\n\n\t\t\t\tif (newRlw.position > this.rlw.position)\n\t\t\t\t\tthis.rlw.position = newRlw.position;\n\t\t\t}\n\t\t\t// new RLW also gets run length\n\t\t\telse {\n\t\t\t\tshiftCompressedWordsRight(wordPos + 1, 2);\n\t\t\t\tRunningLengthWord newRlw =\n\t\t\t\t\t\tnew RunningLengthWord(this.buffer, wordPos + 2);\n\t\t\t\trlw.array = this.buffer;\n\n\t\t\t\tnewRlw.setNumberOfLiteralWords(rlw.getNumberOfLiteralWords());\n\t\t\t\tnewRlw.setRunningLength(afterRunLen);\n\t\t\t\tnewRlw.setRunningBit(false);\n\n\t\t\t\trlw.setRunningLength(newRunLen);\n\t\t\t\trlw.setNumberOfLiteralWords(1);\n\n\t\t\t\tthis.buffer[wordPos + 1] = newdata;\n\n\t\t\t\tif (newRlw.position > this.rlw.position)\n\t\t\t\t\tthis.rlw.position = newRlw.position;\n\t\t\t}\n\t\t}\n\t}", "public static long setFlag(long field, int pos, boolean value) {\n if(pos < 1 || pos > 64) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 64\");\n }\n\n long flag = (long) Math.pow(2, (pos-1));\n\n if(value) {\n field |= flag;\n } else {\n field &= ~flag;\n }\n return field;\n }", "void setSet(boolean set);", "private void setFlag(Post p, String s, Boolean b) {\n p.setFlag(s, b);\n }", "public void setFlag( KerberosFlag flag )\n {\n value |= 1 << flag.getOrdinal();\n setBit( flag.getOrdinal() );\n }", "public static short setFlag(short field, int pos, boolean value) {\n if(pos < 1 || pos > 16) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 16\");\n }\n\n int flag = (int) Math.pow(2, (pos-1));\n\n if(value) {\n field |= flag;\n } else {\n field &= ~flag;\n }\n return field;\n }", "protected void setStateFlag(int flag, boolean sts) {\n\t\tif ( sts == true && (m_flags & flag) == 0)\n\t\t\tm_flags += flag;\n\t\telse if ( sts == false && (m_flags & flag) != 0)\n\t\t\tm_flags -= flag;\n\t}", "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 20, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 12, flag);\n\t\t}\n\t}", "public void setBitSetMask(BitSet mask) {\r\n newMask = mask;\r\n }", "public void setZero() {\n\t\tset((byte) (get() | (1 << 7)));\n\t}", "int setShort(int num, int a_short, int which)\n {\n return ((num & (0b1111111111111111 << ((~which) << 4))) | (a_short << (which << 4)));\n }", "public void setBitOffset(int bitOffset) {\r\n\t\tthis.bitOffset = bitOffset;\r\n\t}", "public void setOp ( boolean value ) {\n\t\texecute ( handle -> handle.setOp ( value ) );\n\t}", "void set(ByteModule byteModule);", "public abstract void setInput(boolean value);", "public interface BitField {\n\n /**\n * @return the size of the field\n */\n int size();\n\n /**\n * set all values of the BitField with the rightmost value being index 0 (LSB).\n * example set(0,0,0,1) would set bit0 == 1 and bit3 == 0\n *\n * @param values the values to set the BitField (only 0 and 1 are accepted)\n * @return the BitField\n */\n void setBits(int... values);\n\n /**\n * set a given bit in the field\n *\n * @param index\n * @param value true == 1, false == 0\n * @throws IndexOutOfBoundsException if you try to set a bit greater than the size of the field\n */\n void setBit(int index, boolean value);\n\n /**\n * set a given bit in the field\n *\n * @param index\n * @param value (only 0 and 1 are accepted)\n * @throws IndexOutOfBoundsException if you try to set a bit greater than the size of the field\n */\n void setBit(int index, int value);\n\n /**\n * replace all values of the bitfield with this integer value\n *\n * @param val\n * @return\n */\n void setToValue(int val);\n\n /**\n * invert all the bits\n */\n void invertAllBits();\n\n /**\n * get a given bit as a boolean\n *\n * @param index\n * @return a boolean for the bit (true == 1, false == 0)\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n boolean getBit(int index);\n\n /**\n * get a given bit as a 0 or 1\n *\n * @param index\n * @return a value for the bit (1 == 1, 0 == 0)\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n int getBitAsInt(int index);\n\n /**\n * get the field as an integer\n *\n * @return the int value of the bitfield\n */\n int intValue();\n\n /**\n * return a nice string representation of the field\n *\n * @return\n */\n String asString();\n\n /**\n * get the LSBs of the BitField (if possible)\n *\n * @param digits the number of LSBs to return\n * @return a new BitField of the LSBs\n */\n BitField getLSBs(int digits);\n\n /**\n * get the MSBs of the BitField (if possible)\n *\n * @param digits the number of MSBs to return\n * @return a new BitField of the MSBs\n */\n BitField getMSBs(int digits);\n\n /**\n * return a new BitField. Inclusive\n *\n * @param from index of the from (0==LSB)\n * @param to index of the to (max is the size-1 of the field)\n * @return a new BitField of the chosen bits\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n BitField getSubField(int from, int to);\n\n /**\n * return a new BitField. Inclusive\n *\n * @param from index of the from (0==LSB)\n * @param to index of the to (if > size then we pad with 0's)\n * @return a new BitField of the chosen bits\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n BitField getSubFieldWithPadding(int from, int to);\n\n /**\n * a convenience method to add to the LS Bits of the BitField.\n * this will resize the BitField, shift everything to the left and insert\n * the new BitField\n *\n * @param fieldToAddToTheRight\n */\n void shiftAndAddToRight(BitField fieldToAddToTheRight);\n\n /**\n * shift to the left and pad the new LSBs with 0's\n *\n * @param numberToShift the number of bits to shift\n */\n void shiftLeft(int numberToShift);\n\n /**\n * shift to the right and have the LSBs dissapear\n *\n * @param numberToShift the number of bits to shift\n */\n void shiftRight(int numberToShift);\n\n /**\n * resize, but trimming/adding to the MSB side\n * <p>\n * if newSize > currentSize, we pad with 0's on the MSBs\n * if newSize < currentSize, we simply drop the bits on the left\n *\n * @param newSize the new size of the BitField\n */\n void resize(int newSize);\n\n /**\n * copy the BitField\n *\n * @return a copy of the bitField\n */\n BitField copy();\n\n /**\n * convert the bit field and return as a collection of bytes made up from the BitField from the LSB to the MSB. Padding in the MSB if needed\n * (byte == 8 bits).\n * <p>\n * For example:\n * 00001000 would return a list with a single byte value of 8\n * 1000001000 would return a list with the first value being a byte with a value of 8, then one with a value of 2\n *\n * @return a collection with the LSB in position 0 and the MSB as the last value\n */\n List<Byte> getAsBytes();\n\n}", "public static boolean isSet(int value, int bit){\n return (value&(1<<bit))!=0;\n }", "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t}\n\t}", "public void setBitToZero(int k) {\n if (this.inBitRange(k)) {\n int i = k / 8;\n int j = k % 8;\n int b = this.data.get(i);\n int c = ~(1 << (7 - j));\n b = b & c;\n byte d = (byte) b;\n this.data.set(i, d);\n }\n }", "public void setEight(boolean eight);", "public void set(int address, byte val) {\n try {\n direct_write(address, val);\n } catch (ArrayIndexOutOfBoundsException e) {\n throw new AddressOutOfBoundsException(address);\n }\n }", "void setBoolean(boolean value);", "public void flipper(int bit)\n\t{\n\t\tif (binaryCode[bit])\n\t\t{\n\t\t\t//if value is true, it becomes false\n\t\t\tbinaryCode[bit]=false;\n\n\t\t} else {\n\t\t\t\n\t\t\t//if value is false, it becomes true\n\t\t\tbinaryCode[bit]=true;\n\t\t}\n\t}", "public BB set(String flag)\n {\n Validate.notNull(flag,What.VARIABLE_NAME);\n return add(BAL().newSet(flag,VARIABLE,Boolean.TRUE));\n }", "public void x_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 3); }", "protected void setFlag() {\n flag = flagVal;\n }", "protected void setFlag() {\n flag = flagVal;\n }", "public void y_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 5); }", "protected void doSetValue(Object _value) {\n\t\tthis.value = (Boolean) _value;\n\t}", "public Builder setFlag(int value) {\n bitField0_ |= 0x00000400;\n flag_ = value;\n onChanged();\n return this;\n }", "public void r_SET(short src)\n { set_bytes((short)(src) & -1L, 2, data, 9); }", "public void setFlag(int which) {\n setFlag(which, true);\n }", "void setValue(Short value);", "public void setFlag(short flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeShort(__io__address + 6, flag);\n\t\t} else {\n\t\t\t__io__block.writeShort(__io__address + 6, flag);\n\t\t}\n\t}", "protected final void operationBIT(final int data) {\r\n this.signFlag = data >= 0x80;\r\n this.overflowFlag = (data & 0x40) > 0;\r\n this.zeroFlag = (this.ac & data) == 0;\r\n }", "public void setGPIO(String name, Boolean value) {\n\n Gpio_Set_Request request = Gpio_Set_Request.newBuilder().setName(name).setRequestedState(value).build();\n\n Gpio_Set_Reply response;\n \n try {\n \tresponse = blockingStub.gpioSet(request);\n } catch (StatusRuntimeException e) {\n logger.log(Level.WARNING, \"RPC failed \" + e.getStatus().getDescription() + \" \" + e.getMessage());\n\n // Get the description\n JsonParser parser = new JsonParser();\n JsonObject jsonDescription = parser.parse(e.getStatus().getDescription()).getAsJsonObject();\n \n //Convert to int and string\n int errorCode = jsonDescription.get(\"errorCode\").getAsInt();\n String errorMessage = jsonDescription.get(\"errorMessage\").getAsString();\n \n System.out.println(Integer.toString(errorCode) + \" : \" + errorMessage);\n return;\n }\n }" ]
[ "0.85435253", "0.8146871", "0.7749686", "0.77174455", "0.76097465", "0.736009", "0.73015225", "0.7235396", "0.72089046", "0.7159874", "0.70825195", "0.7062525", "0.7019005", "0.701636", "0.6979116", "0.69367516", "0.689943", "0.6881553", "0.68800133", "0.68534976", "0.6840121", "0.68106014", "0.67833215", "0.67457354", "0.67103803", "0.6702851", "0.66848624", "0.662619", "0.6608286", "0.6594585", "0.65712774", "0.65614617", "0.6540988", "0.6496449", "0.64962894", "0.64871484", "0.647313", "0.6452105", "0.6449068", "0.64173734", "0.640694", "0.6400848", "0.6396983", "0.6387728", "0.6361586", "0.6344888", "0.63381594", "0.6326174", "0.63239473", "0.62696993", "0.62509185", "0.6239039", "0.6194927", "0.61595225", "0.6110122", "0.61024785", "0.609344", "0.6067408", "0.6063766", "0.60571986", "0.60394067", "0.6013767", "0.60092014", "0.600699", "0.5997348", "0.5988462", "0.59509224", "0.59463537", "0.59382325", "0.593626", "0.59243625", "0.59117055", "0.591066", "0.5907585", "0.590736", "0.58811486", "0.5879434", "0.58690137", "0.58544886", "0.58473045", "0.5844555", "0.58272123", "0.5821321", "0.58203447", "0.5818568", "0.58144754", "0.5801861", "0.5798499", "0.5797271", "0.57937616", "0.57937616", "0.5793058", "0.5791776", "0.57865375", "0.5783717", "0.57824063", "0.57758623", "0.5775061", "0.57715625", "0.5767768" ]
0.6903008
16
Resets a bit value
protected void clearBitAt(final int bitIndex) { _bitMap = _clearBit(_bitMap, (Numbers.INTEGER_WIDTH*8-1)-bitIndex-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "public void resetZero() {\n\t\tset((byte) (get() & ~(1 << 7)));\n\t}", "public void reset(){\r\n \tdefaultFlag = false;\r\n }", "void setBit(int index, int value);", "public void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getValue() - 1 ));\n\t\t\n\t}", "public void clear()\n\t{\n\t\tbitHolder.setValue(0);\n\t}", "public void resetCarry() {\n\t\tset((byte) (get() & ~(1 << 4)));\n\t}", "public void setZero() {\n\t\tset((byte) (get() | (1 << 7)));\n\t}", "void setBit(int index, boolean value);", "public void clearBits()\r\n {\r\n clear();\r\n }", "public int updateBit(int i,int j, boolean set){\n int value=(set)?1:0;\n int mask=~(1<<j);\n int clear=mask&i;\n return clear|(1<<value);\n\n}", "public void setBitToZero(int k) {\n if (this.inBitRange(k)) {\n int i = k / 8;\n int j = k % 8;\n int b = this.data.get(i);\n int c = ~(1 << (7 - j));\n b = b & c;\n byte d = (byte) b;\n this.data.set(i, d);\n }\n }", "public void clearFlag( int flag )\n {\n value &= ~( 1 << ( MAX_SIZE - 1 - flag ) );\n }", "public void reset(){\n value = 0;\n }", "private void resetMask() {\n maskArray = new int [][]{\n {0,0,0,0},\n {0,0,0,0},\n {0,0,0,0},\n {0,0,0,0}\n };\n }", "public UnmodifiableBitSet setBit(int i){\n\t\tUnmodifiableBitSet nbs = (UnmodifiableBitSet)this.clone();\n\t\tnbs.setBitInn(i);\n\t\treturn nbs;\n\t}", "public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}", "public void reset() {\n this.inhibited = false;\n this.forced = false;\n }", "public void clearFlag( int flag )\n {\n value &= ~( 1 << flag );\n clearBit( flag );\n }", "static int clearBit(int num, int pos) {\n\t\t\tint mask = ~(1<<pos);\n\t\t\treturn num & mask;\n\t\t}", "public void resetBinary()\n\t{\n\t\tint k=0;\n\t\t\n\t\tfor (int i=0;i<binaryCode.length;i++)\n\t\t{\n\t\t\tfor (int j=0; j<PARITY.length; j++)\n\t\t\t{\n\t\t\t\t//if the bit is a parity bit, it is skipped\n\t\t\t\tif (i==PARITY[j])\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\t//if it is not a parity bit, the value is sent to the binary number\n\t\t\t\t\tbinaryNumber.setBinary(k, binaryCode[i]);\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void unsetReset() {\n\t\twasReset=false;\n\t}", "public void reset() {\n\t\tmCycleFlip = false;\n\t\tmRepeated = 0;\n\t\tmMore = true;\n //mOneMoreTime = true;\n \n\t\t// 추가\n\t\tmStarted = mEnded = false;\n\t\tmCanceled = false;\n }", "public void resetState();", "public void setBit(int pos, int bit) {\r\n\t\tflagBits[pos] = bit;\r\n\t}", "public void setBitSetMask(BitSet mask) {\r\n newMask = mask;\r\n }", "public static int clearBit(int num, int i) {\n int mask = ~(1 << i);\n return num & mask;\n }", "public void reset() {\r\n this.x = resetX;\r\n this.y = resetY;\r\n state = 0;\r\n }", "public void reset()\n {\n a = 0x0123456789ABCDEFL;\n b = 0xFEDCBA9876543210L;\n c = 0xF096A5B4C3B2E187L;\n\n xOff = 0;\n for (int i = 0; i != x.length; i++)\n {\n x[i] = 0;\n }\n\n bOff = 0;\n for (int i = 0; i != buf.length; i++)\n {\n buf[i] = 0;\n }\n\n byteCount = 0;\n }", "protected void setAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.setBitAt(i);\n } \t\n }", "protected long setBit(long word, boolean flag, long position) {\n\t\tif (!flag) {\n\t\t\treturn word & (~(1L << position));\n\t\t}\n\t\treturn word | (1L << position);\n\t}", "protected abstract boolean reset();", "public void resetHalfCarry() {\n\t\tset((byte) (get() & ~(1 << 5)));\n\t}", "public final void Reset()\n\t{\n\t}", "protected void setBit(long bitIndex) {\r\n\t long intIndex = (bitIndex >>> ADDRESS_BITS_PER_UNIT);\r\n\t bits[(int)(intIndex / ONE_MB_INTS)][(int)(intIndex % ONE_MB_INTS)] \r\n\t |= 1 << (bitIndex & BIT_INDEX_MASK);\r\n\t }", "public void clearFlag( KerberosFlag flag )\n {\n value &= ~( 1 << ( MAX_SIZE - 1 - flag.getOrdinal() ) );\n }", "public void setBitField(BitField bitField){\n \tthis.bitField=bitField;\n }", "public void resetCValue();", "public void flipper(int bit)\n\t{\n\t\tif (binaryCode[bit])\n\t\t{\n\t\t\t//if value is true, it becomes false\n\t\t\tbinaryCode[bit]=false;\n\n\t\t} else {\n\t\t\t\n\t\t\t//if value is false, it becomes true\n\t\t\tbinaryCode[bit]=true;\n\t\t}\n\t}", "public void setResetDisabled(boolean flag) {\n\t\tthis.resetDisabled = flag;\n\t}", "public static byte set(byte value, int bit){\n return (byte)(value|(1<<bit));\n }", "public void reset() {\n this.state = null;\n }", "public int clearBit(int i,int j){\n int mask=~(1<<j);\n return i&mask;\n }", "public void resetSubtraction() {\n\t\tset((byte) (get() & ~(1 << 6)));\n\t}", "public void set(int value)\n\t{\n\t\tbitHolder.setValue(value);\n\t}", "protected void setBitAt(final int bitIndex) {\n _bitMap = _setBit(_bitMap,\n \t\t\t\t (Numbers.INTEGER_WIDTH*8-1)-bitIndex-1);\n }", "public void setZero(final boolean value) {\n\t\tif (value) { \n\t\t\tsetZero();\n\t\t}\n\t\telse {\n\t\t\tresetZero();\n\t\t}\n\t}", "public void setOff(){\n state = false;\n //System.out.println(\"El requerimiento esta siendo atendido!\");\n }", "public void reset()\n {\n mine = false;\n revealed = false;\n flagged = false;\n repaint();\n }", "void reset() ;", "void setCollideBits (long bits);", "static int toggleBit(int n){\n return n & (n-1);\n }", "static int setBit(int n, int pos){\n return n | (1<<pos);\n }", "public boolean reset();", "public static byte setBit(byte input, int position, boolean val){\n return val? (byte) (input | (1 << position)):(byte) (input & ~(1 << position));\n }", "public void setBit(int index, boolean bit)\n\t{\n\t\tif (index + 1 > bits.size()) bits.ensureCapacity(index + 1);\n\t\tbits.add(index, bit);\n\t}", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public static int _clearBit(final int originalInt,final int bitIndex) {\n return originalInt & ~_getMask(bitIndex);\n }", "boolean reset();", "public void reset(){\r\n barn.setVisited(Boolean.FALSE);\r\n turkeyTalk.setVisited(Boolean.FALSE);\r\n pigginOut.setVisited(Boolean.FALSE);\r\n seeTheLight.setVisited(Boolean.FALSE);\r\n theGobbling.setVisited(Boolean.FALSE);\r\n youDied1.setVisited(Boolean.FALSE);\r\n threeLittlePigs.setVisited(Boolean.FALSE);\r\n forTheGreaterGood.setVisited(Boolean.FALSE);\r\n farmHouseTurkey.setVisited(Boolean.FALSE);\r\n youWin.setVisited(Boolean.FALSE);\r\n }", "private EfficientTerminalSet setBit(int index, boolean value) {\n int[] newData = data.clone();\n int blockIndex = index / 32;\n int bitIndex = index % 32;\n if (value)\n newData[blockIndex] |= 1 << bitIndex;\n else\n newData[blockIndex] &= ~(1 << bitIndex);\n return new EfficientTerminalSet(terminals, indices, newData);\n }", "private static void isSetOrUnset(long num, int pos) {\n\t\tlong temp = 1l << pos;\n\t\tlong result = num & temp;\n\t\tif (temp == result) {\n\t\t\tSystem.out.println(\"Bit is set\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Bit is unset\");\n\t\t}\n\t}", "private void switchOffFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS] = ~(~sim40.memory[Simulator.STATUS_ADDRESS] | (1<<flag));\r\n\t}", "public void reset() {\r\n\r\n b1.setText(\"\");\r\n b1.setEnabled(true);\r\n\r\n b2.setText(\"\");\r\n b2.setEnabled(true);\r\n\r\n b3.setText(\"\");\r\n b3.setEnabled(true);\r\n\r\n b4.setText(\"\");\r\n b4.setEnabled(true);\r\n\r\n b5.setText(\"\");\r\n b5.setEnabled(true);\r\n\r\n b6.setText(\"\");\r\n b6.setEnabled(true);\r\n\r\n b7.setText(\"\");\r\n b7.setEnabled(true);\r\n\r\n b8.setText(\"\");\r\n b8.setEnabled(true);\r\n\r\n b9.setText(\"\");\r\n b9.setEnabled(true);\r\n\r\n win = false;\r\n count = 0;\r\n }", "public void reset(){\n\t\topen[0]=false;\n\t\topen[1]=false;\n\t\topen[2]=false;\n\t\tcount = 0;\n\t\t//System.out.println(\"The lock has been reset.\");\n\t}", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "public void reset () {}", "public void resetState() {\n \ts = State.STRAIGHT;\n }", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();" ]
[ "0.7196003", "0.7092189", "0.6903397", "0.6783588", "0.6768458", "0.66250587", "0.6598657", "0.6569415", "0.653997", "0.64374", "0.64333826", "0.64333117", "0.6405229", "0.6372277", "0.63512933", "0.63132346", "0.63037777", "0.62768614", "0.62309617", "0.62298095", "0.62275404", "0.61947995", "0.61911356", "0.617473", "0.61396366", "0.6121647", "0.61207986", "0.6077112", "0.60660106", "0.6061536", "0.60389566", "0.6036932", "0.6036793", "0.59977764", "0.59897906", "0.5981935", "0.5978864", "0.59786034", "0.59681237", "0.595407", "0.5953373", "0.5950024", "0.5946826", "0.5945817", "0.5936294", "0.5926355", "0.5923202", "0.5918672", "0.59135973", "0.5912825", "0.59081477", "0.5906547", "0.5904466", "0.59015286", "0.5895302", "0.5894212", "0.5889911", "0.5889911", "0.5889911", "0.5889911", "0.5889911", "0.5889911", "0.5889911", "0.5889911", "0.5889911", "0.5889911", "0.5889911", "0.5889911", "0.5889911", "0.5889911", "0.5889911", "0.5884664", "0.58837724", "0.5880008", "0.5879568", "0.5878914", "0.5870902", "0.58664775", "0.58584243", "0.5854418", "0.5843714", "0.58279425", "0.5807937", "0.5807937", "0.5807937", "0.5807937", "0.5807937", "0.5807937", "0.5807937", "0.5807937", "0.5807937", "0.5807937", "0.5807937", "0.57995385", "0.57995385", "0.57995385", "0.57995385", "0.57995385", "0.57995385", "0.57995385" ]
0.61029404
27
/////////////////////////////////////////////////////////////////////////////////////// GLOBAL SET/CLEAR /////////////////////////////////////////////////////////////////////////////////////// Sets all bit values
protected void setAll() { for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) { this.setBitAt(i); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkResetAllRegsAndFlags() {\r\n\t\t//for(int i = 1026; i <= 1028; i++ ) {\r\n\t\tSystem.out.println(\"Checking x val\"+sim40.memory[Simulator.XREG_ADDRESS]);\r\n\t\t\r\n\t\tcheckResetRegisterFlag(Simulator.ACCUMULATOR_ADDRESS);\r\n\t\t\tcheckResetRegisterFlag(Simulator.XREG_ADDRESS);\r\n\t\t\tcheckResetRegisterFlag(Simulator.YREG_ADDRESS);\r\n\t\t\t\r\n\t\t\t\r\n\t\t//}\r\n\t}", "protected void clearAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.clearBitAt(i);\n } \t\n }", "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "public void setAllUpdateFlags() {\n\t}", "public void clearBits()\r\n {\r\n clear();\r\n }", "public void setZero() {\n\t\tset((byte) (get() | (1 << 7)));\n\t}", "public void clear()\n\t{\n\t\tbitHolder.setValue(0);\n\t}", "public void opbClearState() {\r\n final String methodName = \"opbClearState()\";\r\n\r\n logger.entering(CLASS_NAME, methodName);\r\n\r\n // set all fields to their initial values\r\n a = null;\r\n aDataSourceValue = null;\r\n\r\n aVarchar = null;\r\n aVarcharDataSourceValue = null;\r\n\r\n aNumber = null;\r\n aNumberDataSourceValue = null;\r\n\r\n aInteger = 8L;\r\n aIntegerDataSourceValue = 8L;\r\n\r\n aDate = null;\r\n aDateDataSourceValue = null;\r\n\r\n aRo = null;\r\n\r\n\r\n }", "public static final void setBoolAllVar(final Bool varNum, final boolean val) {\n if (varNum == null)\n return;\n for (final CMProps p : CMProps.props) {\n if (p != null)\n p.sysBools[varNum.ordinal()] = Boolean.valueOf(val);\n }\n }", "public void resetZero() {\n\t\tset((byte) (get() & ~(1 << 7)));\n\t}", "void setBit(int index, int value);", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "void setBits(int... values);", "public static void setGlobalsToDefaults(){\r\n\t\tGlobals.globalvars.put(\"gamestage\", \"none\");\r\n\t\tGlobals.globalvars.put(\"cleft\", 0);\r\n\t\t\r\n\t\tInteger[] prematch = {64, 20};\r\n \tGlobals.cdpresets.put(\"pregame\", prematch);\r\n \tInteger[] getready = {5, 1200};\r\n \tGlobals.cdpresets.put(\"prepare\", getready);\r\n \tInteger[] battle = {10, 1200};\r\n \tGlobals.cdpresets.put(\"fight\", battle);\r\n \t\r\n \tGlobals.countdowns.clear();\r\n \tGlobals.lobby.clear();\r\n\t}", "public void resetCVars(int flags) {\n for (CVar cv : cvarList.values()) {\n if ((cv.getFlags() & flags) != 0) {\n cv.reset(true);\n }\n }\n }", "public int updateBit(int i,int j, boolean set){\n int value=(set)?1:0;\n int mask=~(1<<j);\n int clear=mask&i;\n return clear|(1<<value);\n\n}", "public void reset(){\r\n \tdefaultFlag = false;\r\n }", "void setCollideBits (long bits);", "public void cleanDirtyFlags() {\n RetractedChanged=false;\n AddressIDChanged=false;\n EntityIDChanged=false;\n AddressTypeIDChanged=false;\n}", "private void resetAll() // resetAll method start\n\t{\n\t\theader.reset();\n\t\tdebit.reset();\n\t\tcredit.reset();\n\t}", "void setCategoryBits (long bits);", "public void resetAll() {\n this.mEntryAlias = null;\n this.mEntryUid = -1;\n this.mKeymasterAlgorithm = -1;\n this.mKeymasterPurposes = null;\n this.mKeymasterBlockModes = null;\n this.mKeymasterEncryptionPaddings = null;\n this.mKeymasterSignaturePaddings = null;\n this.mKeymasterDigests = null;\n this.mKeySizeBits = 0;\n this.mSpec = null;\n this.mRSAPublicExponent = null;\n this.mEncryptionAtRestRequired = false;\n this.mRng = null;\n this.mKeyStore = null;\n }", "public void setAll(boolean all) {\n uppercase = all;\n lowercase = all;\n numbers = all;\n symbols = all;\n }", "public void reset()\n {\n a = 0x0123456789ABCDEFL;\n b = 0xFEDCBA9876543210L;\n c = 0xF096A5B4C3B2E187L;\n\n xOff = 0;\n for (int i = 0; i != x.length; i++)\n {\n x[i] = 0;\n }\n\n bOff = 0;\n for (int i = 0; i != buf.length; i++)\n {\n buf[i] = 0;\n }\n\n byteCount = 0;\n }", "public void resetCarry() {\n\t\tset((byte) (get() & ~(1 << 4)));\n\t}", "private void unsetOneAllChecks() {\r\n\r\n checkIman.setEnabled(false);\r\n checkBonferroni.setEnabled(false);\r\n checkHolm.setEnabled(false);\r\n checkHochberg.setEnabled(false);\r\n checkHommel.setEnabled(false);\r\n checkHolland.setEnabled(false);\r\n checkRom.setEnabled(false);\r\n checkFinner.setEnabled(false);\r\n checkLi.setEnabled(false);\r\n\r\n }", "void fullReset();", "private void createFlags() {\n if (flags!=null) return;\n flags = JCSystem.makeTransientBooleanArray(NUMFLAGS, JCSystem.CLEAR_ON_RESET);\n setValidatedFlag(false);\n }", "@Override\n public void resetAllValues() {\n }", "private static void isSetOrUnset(long num, int pos) {\n\t\tlong temp = 1l << pos;\n\t\tlong result = num & temp;\n\t\tif (temp == result) {\n\t\t\tSystem.out.println(\"Bit is set\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Bit is unset\");\n\t\t}\n\t}", "void DevClear (int boardID, short addr);", "public void setAllFixed(boolean fixed);", "public void clear() {\r\n\t\tbitset.clear();\r\n\t\tnumberOfAddedElements = 0;\r\n\t}", "public void\n\t registerRedundantSet(SoState state, int mask)\n\t {\n\t }", "private void setOneAllChecks() {\r\n\r\n checkIman.setEnabled(true);\r\n checkBonferroni.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n checkHochberg.setEnabled(true);\r\n checkHommel.setEnabled(true);\r\n checkHolland.setEnabled(true);\r\n checkRom.setEnabled(true);\r\n checkFinner.setEnabled(true);\r\n checkLi.setEnabled(true);\r\n\r\n }", "public void setBitSetMask(BitSet mask) {\r\n newMask = mask;\r\n }", "void setBit(int index, boolean value);", "public void set(boolean[] abol);", "public void reset() {\n this.inhibited = false;\n this.forced = false;\n }", "public static void bitMaxSize(){\n BitSet bitSet = new BitSet(Integer.MAX_VALUE);\n bitSet.set(0);\n }", "public void setMutexBits(int p_75248_1_) {\n/* 55 */ this.mutexBits = p_75248_1_;\n/* */ }", "void reset() ;", "public void clearFlag( int flag )\n {\n value &= ~( 1 << ( MAX_SIZE - 1 - flag ) );\n }", "static void getIndexSetBits(int[] setBits, long board) {\n\t\tint onBits = 0;\n\t\twhile (board != 0) {\n\t\t\tsetBits[onBits] = Long.numberOfTrailingZeros(board);\n\t\t\tboard ^= (1L << setBits[onBits++]);\n\t\t}\n\t\tsetBits[onBits] = -1;\n\t}", "void clearAll();", "void clearAll();", "private void resetMask() {\n maskArray = new int [][]{\n {0,0,0,0},\n {0,0,0,0},\n {0,0,0,0},\n {0,0,0,0}\n };\n }", "private void set(){\n resetBuffer();\n }", "void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}", "@org.junit.Before\n public void turnOffAllAccessDetection() {\n Settings.INSTANCE.set(Settings.SETT_MTD_ACCS, \"false\"); /* Not tested here. */\n Settings.INSTANCE.set(Settings.SETT_FLD_ACCS, \"false\"); /* Not tested here. */\n }", "public synchronized void external_reset()\n {\n // Set EXTRF bit in MCUSR\n try { set_ioreg(MCUSR,get_ioreg(MCUSR) | 0x02); }\n catch (RuntimeException e) { }\n\n // TO DO: Handle an external reset\n // This happens when the RESET pin of the atmel is set low for 50 ns or more\n mClockCycles = 0;\n mMBR = mMBR2 = 0;\n mPC = 0;\n mSleeping = false;\n System.out.println(\"Atmel.external_reset\");\n }", "public void reset(){\r\n barn.setVisited(Boolean.FALSE);\r\n turkeyTalk.setVisited(Boolean.FALSE);\r\n pigginOut.setVisited(Boolean.FALSE);\r\n seeTheLight.setVisited(Boolean.FALSE);\r\n theGobbling.setVisited(Boolean.FALSE);\r\n youDied1.setVisited(Boolean.FALSE);\r\n threeLittlePigs.setVisited(Boolean.FALSE);\r\n forTheGreaterGood.setVisited(Boolean.FALSE);\r\n farmHouseTurkey.setVisited(Boolean.FALSE);\r\n youWin.setVisited(Boolean.FALSE);\r\n }", "public static void resetAll() {\n uniqueBigDecimal = new BigDecimal(\"100\");\n oneBigDecimal = new BigDecimal(1);\n uniqueBigInteger = new BigInteger(\"100\");\n oneBigInteger = new BigInteger(\"1\");\n uniqueByte = new Byte(\"0\");\n uniqueFloat = new Float(100);\n uniqueDouble = new Double(100);\n uniqueInteger = new Integer(100);\n uniqueLong = new Long(\"100\");\n uniqueShort = new Short(\"10\");\n uniqueCal = null;\n // charPosition = 0;\n // lastString = new int[NUM_CHARS];\n }", "static int clearBit(int num, int pos) {\n\t\t\tint mask = ~(1<<pos);\n\t\t\treturn num & mask;\n\t\t}", "public void updateFlags()\n {\n initialize();\n }", "public void resetAll(){\r\n\t\t/*for(int i=0;i<24;i++)\r\n\t\t\tthis.pannes[i]=false;\r\n\t\tnotifieur.diffuserAutreEvent(new AutreEvent(this, new String(\"resetAll\")));*/\r\n\t}", "static boolean allBitsAreSet(int n)\r\n {\r\n // if true, then all bits are set\r\n if (((n + 1) & n) == 0)\r\n return true;\r\n\r\n // else all bits are not set\r\n return false;\r\n }", "protected void setBit(long bitIndex) {\r\n\t long intIndex = (bitIndex >>> ADDRESS_BITS_PER_UNIT);\r\n\t bits[(int)(intIndex / ONE_MB_INTS)][(int)(intIndex % ONE_MB_INTS)] \r\n\t |= 1 << (bitIndex & BIT_INDEX_MASK);\r\n\t }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public void setFlags( byte[] bytes )\n {\n if ( (bytes== null ) || ( bytes.length != 4 ) )\n {\n value = -1;\n }\n \n value = ( ( bytes[0] & 0x00F ) << 24 ) | ( ( bytes[1] & 0x00FF ) << 16 ) | ( ( bytes[2] & 0x00FF ) << 8 ) | ( 0x00FF & bytes[3] ); \n setData( bytes );\n }", "public void setEight(boolean eight);", "@Test\n public void testClear() {\n System.out.println(\"clear\");\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.factory();\n Setting s3 = Setting.getSetting(\"test1\");\n assertFalse(Setting.isNotUsed(\"test1\"));\n Setting s4 = Setting.getSetting(\"test1\");\n assertEquals(s3, s4);\n Setting.clear();\n assertTrue(Setting.isNotUsed(\"test1\"));\n\n }", "void Reset() {\n lq = 0;\n ls = 0;\n }", "private void init(boolean[] flags) {\n\t\tflags[0] = false; \n\t\tflags[1] = false; \n\t\t\n\t\tfor (int i=2; i<flags.length; i++) {\n\t\t\tflags[i] = true; \n\t\t}\n\t}", "private EfficientTerminalSet setBit(int index, boolean value) {\n int[] newData = data.clone();\n int blockIndex = index / 32;\n int bitIndex = index % 32;\n if (value)\n newData[blockIndex] |= 1 << bitIndex;\n else\n newData[blockIndex] &= ~(1 << bitIndex);\n return new EfficientTerminalSet(terminals, indices, newData);\n }", "public void clear() {\n up = false;\n down = false;\n left = false;\n right = false;\n }", "public void clearAll() {\n mNetworkCapabilities = mTransportTypes = mUnwantedNetworkCapabilities = 0;\n mLinkUpBandwidthKbps = mLinkDownBandwidthKbps = LINK_BANDWIDTH_UNSPECIFIED;\n mNetworkSpecifier = null;\n mTransportInfo = null;\n mSignalStrength = SIGNAL_STRENGTH_UNSPECIFIED;\n mUids = null;\n mEstablishingVpnAppUid = INVALID_UID;\n mSSID = null;\n }", "public void mo23447a() {\n this.f19967a = false;\n this.f19968b = 0;\n this.f19969c = 0;\n }", "public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}", "private static BitSet makeBitSet( int... args ) {\n\tBitSet result = new BitSet( MAX_OPCODE + 1 ) ;\n\tfor (int value : args )\n\t result.set( value ) ;\n\treturn result ;\n }", "private void ResetVarC() {\n anchura = true;\n iterator = 0;\n Yencoding = new ArrayList<Integer>();\n Cbencoding = new ArrayList<Integer>();\n Crencoding = new ArrayList<Integer>();\n FY = new StringBuilder();\n FCB = new StringBuilder();\n FCR = new StringBuilder();\n }", "private void clearAll(byte value) {\n for (int i = 0; i < size; i++) {\n data[i] = (byte) (value & 0xff);\n }\n }", "public void clearFlag( KerberosFlag flag )\n {\n value &= ~( 1 << ( MAX_SIZE - 1 - flag.getOrdinal() ) );\n }", "public static void main(String[] args)\n {\n BitSet bs1 = new BitSet();\n BitSet bs2 = new BitSet();\n\n /* assigning values to set1*/\n bs1.set(0);\n bs1.set(1);\n bs1.set(3);\n bs1.set(4);\n\n // assign values to bs2\n bs2.set(4);\n bs2.set(6);\n bs2.set(5);\n bs2.set(1);\n bs2.set(2);\n bs2.set(3);\n bs2.set(12);\n\n // Printing the 2 Bitsets\n System.out.println(\"bs1 : \" + bs1);\n System.out.println(\"bs2 : \" + bs2);\n\n // Print the first clear bit of bs1\n System.out.println(bs1.nextClearBit(1));\n\n // Print the first clear bit of bs2 after index 3\n System.out.println(bs2.nextClearBit(3));\n }", "public void mo9126b() {\n this.f1298a = null;\n mo9252b(false);\n this.f1299b = 0;\n this.f1300c = null;\n }", "public void setClearMines(boolean b);", "public static void variableReset() {\n\t\tLogic.pieceJumped = 0;\n\t\tLogic.bool = false;\n\t\tLogic.curComp = null;\n\t\tLogic.prevComp = null;\n\t\tLogic.jumpedComp = null;\n\t\tLogic.ydiff = 0;\n\t\tLogic.xdiff = 0;\n\t\tLogic.jumping = false;\n\t\tmultipleJump = false;\n\t\t\n\t}", "public UnmodifiableBitSet setBit(int i){\n\t\tUnmodifiableBitSet nbs = (UnmodifiableBitSet)this.clone();\n\t\tnbs.setBitInn(i);\n\t\treturn nbs;\n\t}", "public void clearAll();", "public void clearAll();", "void reset ();", "public void clear() {\n\t\tn1 = n0 = 0L;\n\t}", "public void resetAll() {\n triggered = false;\n classBlacklist.clear();\n policies.clear();\n protectedFiles.clear();\n System.setSecurityManager(defaultSecurityManager);\n }", "void set(int i, int val) {\n int numPosition = i / MAX_BITS;\n int intPosition = i % MAX_BITS;\n\n if (val == 1)\n values[numPosition] |= (1 << intPosition);\n else\n values[numPosition] = values[numPosition]&~(1 << intPosition);\n }", "public static void reset()\n\t\t{\n\t\t\tfeatureSet = new THashMap();\n\t\t\tfeatureIds = new TObjectIntHashMap();\n\t\t\tnextID = 1;\t\t\t\n\t\t}", "private void reset() {\n //todo test it !\n longitude = 0.0;\n latitude = 0.0;\n IDToday = 0L;\n venVolToday = 0L;\n PM25Today = 0;\n PM25Source = 0;\n DBCanRun = true;\n DBRunTime = 0;\n isPMSearchRunning = false;\n isLocationChanged = false;\n isUploadRunning = false;\n refreshAll();\n locationInitial();\n DBInitial();\n sensorInitial();\n }", "public void clear() {\n\t\tthis.sizeinbits = 0;\n\t\tthis.actualsizeinwords = 1;\n\t\tthis.rlw.position = 0;\n\t\t// buffer is not fully cleared but any new set operations should\n\t\t// overwrite stale data\n\t\tthis.buffer[0] = 0;\n\t}", "public void setFlags(final Flags flags);", "static void OPL_STATUSMASK_SET(FM_OPL OPL, int flag) {\n OPL.statusmask = flag;\n /* IRQ handling check */\n OPL_STATUS_SET(OPL, 0);\n OPL_STATUS_RESET(OPL, 0);\n }", "@Override\r\n protected void clearSettings() {\r\n \r\n mfile = null;\r\n rmode = null;\r\n cmap = null;\r\n cmapMin = 0.0f;\r\n cmapMax = 0.0f;\r\n super.clearSettings();\r\n \r\n }", "public void resetCValue();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();" ]
[ "0.6410575", "0.6334325", "0.633225", "0.5951903", "0.5892656", "0.58790797", "0.5841329", "0.5836113", "0.579789", "0.57798886", "0.5755142", "0.57436824", "0.57350075", "0.57126135", "0.5707548", "0.5696938", "0.56846696", "0.5664543", "0.5627552", "0.5614348", "0.56103075", "0.5604954", "0.5599535", "0.5597667", "0.5576121", "0.5554784", "0.5539375", "0.55366963", "0.55020344", "0.54975", "0.54891723", "0.54757786", "0.5467134", "0.545676", "0.5456083", "0.5451919", "0.54354995", "0.5433406", "0.54295707", "0.54034144", "0.5403163", "0.54015166", "0.540056", "0.53975576", "0.539613", "0.539613", "0.53926295", "0.5390761", "0.5390237", "0.53786516", "0.5359956", "0.535726", "0.53535324", "0.53475654", "0.53444505", "0.53419995", "0.5331798", "0.5305485", "0.53040594", "0.53036255", "0.53018016", "0.5298109", "0.5296048", "0.5292425", "0.5278727", "0.52738965", "0.52711374", "0.5268032", "0.5265608", "0.5262331", "0.52612907", "0.5260373", "0.5246764", "0.5243247", "0.5237381", "0.52355486", "0.523535", "0.5232692", "0.5227122", "0.5227122", "0.5222449", "0.52199256", "0.52144045", "0.52135897", "0.51977986", "0.5194866", "0.51788914", "0.51784354", "0.517517", "0.51672167", "0.515928", "0.5151564", "0.5151564", "0.5151564", "0.5151564", "0.5151564", "0.5151564", "0.5151564", "0.5151564", "0.5151564" ]
0.7255037
0
Resets all bit values
protected void clearAll() { for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) { this.clearBitAt(i); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.setBitAt(i);\n } \t\n }", "public void clearBits()\r\n {\r\n clear();\r\n }", "private void resetMask() {\n maskArray = new int [][]{\n {0,0,0,0},\n {0,0,0,0},\n {0,0,0,0},\n {0,0,0,0}\n };\n }", "@Override\n public void resetAllValues() {\n }", "public void reset()\n {\n a = 0x0123456789ABCDEFL;\n b = 0xFEDCBA9876543210L;\n c = 0xF096A5B4C3B2E187L;\n\n xOff = 0;\n for (int i = 0; i != x.length; i++)\n {\n x[i] = 0;\n }\n\n bOff = 0;\n for (int i = 0; i != buf.length; i++)\n {\n buf[i] = 0;\n }\n\n byteCount = 0;\n }", "public void resetZero() {\n\t\tset((byte) (get() & ~(1 << 7)));\n\t}", "public void clear()\n\t{\n\t\tbitHolder.setValue(0);\n\t}", "public void resetAll(){\r\n\t\t/*for(int i=0;i<24;i++)\r\n\t\t\tthis.pannes[i]=false;\r\n\t\tnotifieur.diffuserAutreEvent(new AutreEvent(this, new String(\"resetAll\")));*/\r\n\t}", "public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}", "public void reset() {\n this.inhibited = false;\n this.forced = false;\n }", "public void reset(){\r\n \tdefaultFlag = false;\r\n }", "public void resetCarry() {\n\t\tset((byte) (get() & ~(1 << 4)));\n\t}", "public void resetAll() {\n reset(getAll());\n }", "public void reset() {\n\t\tmCycleFlip = false;\n\t\tmRepeated = 0;\n\t\tmMore = true;\n //mOneMoreTime = true;\n \n\t\t// 추가\n\t\tmStarted = mEnded = false;\n\t\tmCanceled = false;\n }", "private void resetAll() // resetAll method start\n\t{\n\t\theader.reset();\n\t\tdebit.reset();\n\t\tcredit.reset();\n\t}", "void reset()\n {\n reset(values);\n }", "public void reset(){\r\n barn.setVisited(Boolean.FALSE);\r\n turkeyTalk.setVisited(Boolean.FALSE);\r\n pigginOut.setVisited(Boolean.FALSE);\r\n seeTheLight.setVisited(Boolean.FALSE);\r\n theGobbling.setVisited(Boolean.FALSE);\r\n youDied1.setVisited(Boolean.FALSE);\r\n threeLittlePigs.setVisited(Boolean.FALSE);\r\n forTheGreaterGood.setVisited(Boolean.FALSE);\r\n farmHouseTurkey.setVisited(Boolean.FALSE);\r\n youWin.setVisited(Boolean.FALSE);\r\n }", "void invertAllBits();", "public void resetBinary()\n\t{\n\t\tint k=0;\n\t\t\n\t\tfor (int i=0;i<binaryCode.length;i++)\n\t\t{\n\t\t\tfor (int j=0; j<PARITY.length; j++)\n\t\t\t{\n\t\t\t\t//if the bit is a parity bit, it is skipped\n\t\t\t\tif (i==PARITY[j])\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\t//if it is not a parity bit, the value is sent to the binary number\n\t\t\t\t\tbinaryNumber.setBinary(k, binaryCode[i]);\n\t\t\t\t\tk++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "public void reset() {\r\n\t\tfor(AnalogInput m_analog : mAnalogs)\r\n\t\t{\r\n\t\t\tif (m_analog != null) {\r\n\t\t\t\tm_analog.resetAccumulator();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void resetValues() {\n\t\tJavaValue[] publicJavaValues = this.publicVariables.values().toArray(new JavaValue[this.publicVariables.size()]);\n\t\tJavaValue[] privateJavaValues = this.privateVariables.values().toArray(new JavaValue[this.privateVariables.size()]);\n\n\t\tfor(int i = 0; i < publicJavaValues.length; i++) {\n\t\t\tpublicJavaValues[i].reset();\n\t\t}\n\n\t\tfor(int i = 0; i < privateJavaValues.length; i++) {\n\t\t\tprivateJavaValues[i].reset();\n\t\t}\n\t}", "public final void Reset()\n\t{\n\t}", "public void reset() {\n deadBlackCount = 0;\n deadWhiteCount = 0;\n deadRedCount = 0;\n deadBlueCount = 0;\n\n for (int i = 0; i < DIMENSION; i++) {\n for (int j = 0; j < DIMENSION; j++) {\n fields[i][j].reset();\n }\n }\n }", "public void reset() {\n solving = false;\n length = 0;\n checks = 0;\n }", "public void resetAll() {\n this.mEntryAlias = null;\n this.mEntryUid = -1;\n this.mKeymasterAlgorithm = -1;\n this.mKeymasterPurposes = null;\n this.mKeymasterBlockModes = null;\n this.mKeymasterEncryptionPaddings = null;\n this.mKeymasterSignaturePaddings = null;\n this.mKeymasterDigests = null;\n this.mKeySizeBits = 0;\n this.mSpec = null;\n this.mRSAPublicExponent = null;\n this.mEncryptionAtRestRequired = false;\n this.mRng = null;\n this.mKeyStore = null;\n }", "void fullReset();", "public void reset() {\n\t\t//set everything back to normal\n\t\tHashMap<String, Component> components = gui.getConversionSettingsComponents();\n\t\tfor (String key: components.keySet()) {\n\t\t\tComponent component = components.get(key);\n\t\t\tcomponent.setEnabled(true);\n\t\t}\n\t}", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset();", "public void reset()\n {\n mine = false;\n revealed = false;\n flagged = false;\n repaint();\n }", "public void resetEncoders() {\n\t\tright.reset();\n\t\tleft.reset();\n\t}", "private void checkResetAllRegsAndFlags() {\r\n\t\t//for(int i = 1026; i <= 1028; i++ ) {\r\n\t\tSystem.out.println(\"Checking x val\"+sim40.memory[Simulator.XREG_ADDRESS]);\r\n\t\t\r\n\t\tcheckResetRegisterFlag(Simulator.ACCUMULATOR_ADDRESS);\r\n\t\t\tcheckResetRegisterFlag(Simulator.XREG_ADDRESS);\r\n\t\t\tcheckResetRegisterFlag(Simulator.YREG_ADDRESS);\r\n\t\t\t\r\n\t\t\t\r\n\t\t//}\r\n\t}", "public void clear() {\r\n\t\tbitset.clear();\r\n\t\tnumberOfAddedElements = 0;\r\n\t}", "public final synchronized void reset() {\n\t\tnumTypes = numCoords = 0;\n\t}", "public void reset() {\n // stop motors\n Motor.A.stop();\t\n Motor.A.setPower(0);\t\n Motor.B.stop();\n Motor.B.setPower(0);\t\n Motor.C.stop();\n Motor.C.setPower(0);\t\n // passivate sensors\n Sensor.S1.passivate();\n Sensor.S2.passivate();\n Sensor.S3.passivate();\n for(int i=0;i<fSensorState.length;i++)\n fSensorState[i] = false;\n }", "void reset() ;", "public void resetCVars(int flags) {\n for (CVar cv : cvarList.values()) {\n if ((cv.getFlags() & flags) != 0) {\n cv.reset(true);\n }\n }\n }", "private void reset() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\treactantAmt[i] = 0;\n\t\t\tproductAmt[i] = 0;\n\t\t\treactantMM[i] = 0;\n\t\t\tproductMM[i] = 0;\n\t\t\treactantMoles[i] = 0;\n\t\t\tproductMoles[i] = 0;\n\t\t\tfinalMolReactant[i] = 0;\n\t\t\tfinalMolProduct[i] = 0;\n\t\t\tremove();\n\t\t}\n\t}", "public void reset () {}", "protected abstract void reset();", "public void reset(){\n value = 0;\n }", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "void reset();", "private void unsetOneAllChecks() {\r\n\r\n checkIman.setEnabled(false);\r\n checkBonferroni.setEnabled(false);\r\n checkHolm.setEnabled(false);\r\n checkHochberg.setEnabled(false);\r\n checkHommel.setEnabled(false);\r\n checkHolland.setEnabled(false);\r\n checkRom.setEnabled(false);\r\n checkFinner.setEnabled(false);\r\n checkLi.setEnabled(false);\r\n\r\n }", "public void clear() {\n\t\tn1 = n0 = 0L;\n\t}", "public void reset() {\n\n\t}", "public void reset() {\r\n this.x = resetX;\r\n this.y = resetY;\r\n state = 0;\r\n }", "abstract void reset();", "public void reset() {\n\n\t\trbNone.setSelected(true);\n\t\tquizIDField.clear();\n\t\tfilter();\n\t\t\n\t}", "public void reset() {\r\n\r\n b1.setText(\"\");\r\n b1.setEnabled(true);\r\n\r\n b2.setText(\"\");\r\n b2.setEnabled(true);\r\n\r\n b3.setText(\"\");\r\n b3.setEnabled(true);\r\n\r\n b4.setText(\"\");\r\n b4.setEnabled(true);\r\n\r\n b5.setText(\"\");\r\n b5.setEnabled(true);\r\n\r\n b6.setText(\"\");\r\n b6.setEnabled(true);\r\n\r\n b7.setText(\"\");\r\n b7.setEnabled(true);\r\n\r\n b8.setText(\"\");\r\n b8.setEnabled(true);\r\n\r\n b9.setText(\"\");\r\n b9.setEnabled(true);\r\n\r\n win = false;\r\n count = 0;\r\n }", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public void reset() {\n\t}", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "public abstract void reset();", "private void reset () {\n this.logic = null;\n this.lastPulse = 0;\n this.pulseDelta = 0;\n }", "public void reset() {\n this.state = null;\n }", "public abstract Op resetStates();" ]
[ "0.75395966", "0.7177629", "0.71522295", "0.6952756", "0.69500446", "0.69292533", "0.6885775", "0.6878558", "0.68730664", "0.6835968", "0.68159145", "0.6747461", "0.67203325", "0.67157423", "0.67050683", "0.6634048", "0.6578415", "0.6545353", "0.649935", "0.6469026", "0.64137876", "0.6405569", "0.6404834", "0.6366216", "0.6364633", "0.63606477", "0.6358995", "0.63563675", "0.63471717", "0.63471717", "0.63471717", "0.63471717", "0.63471717", "0.63471717", "0.63471717", "0.63471717", "0.63471717", "0.63471717", "0.63471717", "0.63471717", "0.63471717", "0.63471717", "0.63471717", "0.63451666", "0.63396496", "0.63324654", "0.63318956", "0.63284576", "0.632801", "0.6323966", "0.63183063", "0.6306651", "0.6305877", "0.62813735", "0.6279071", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6277036", "0.6272948", "0.6269927", "0.6263024", "0.6262711", "0.6255512", "0.6251721", "0.6249746", "0.62495637", "0.62495637", "0.62495637", "0.62495637", "0.624904", "0.624904", "0.624904", "0.624904", "0.624904", "0.624904", "0.624904", "0.624904", "0.624904", "0.624904", "0.624904", "0.6240585", "0.62405014", "0.62339914" ]
0.7475022
1
/////////////////////////////////////////////////////////////////////////////////////// BIT MASKING /////////////////////////////////////////////////////////////////////////////////////// Gets a mask to get an int's bit value
private static int _getMask(final int bitIndex) { return (1 << bitIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int mask(int bit) {\n return MSB >>> bit;\n }", "public BitSet getMask() {\r\n return mask;\r\n }", "public static int getBitMask(int x) {\n return (0x01 << x);\n }", "public static int getBitMask(int[] x) {\n int rc = 0;\n for(int xVal : x) {\n rc |= getBitMask(xVal);\n }\n\n return rc;\n }", "private static int getMaskAsInt(int nrBits) {\n return 0xFFFFFFFF >>> (32 - nrBits);\n }", "public long getMask() {\r\n\t\treturn this.mask;\r\n\t}", "int getBitAsInt(int index);", "public static int getWithMask(final int source, final int mask) {\n int target = 0;\n for (int sourcePosition = 0; sourcePosition < BYTE_LENGTH; sourcePosition++) {\n if (bitIsSet(mask, Bits.getBit(sourcePosition))) {\n target = setFlag(target, Bits.getBit(sourcePosition), bitIsSet(source, Bits.getBit(sourcePosition)));\n }\n }\n return target;\n }", "public BitSet getBitSetMask() {\r\n return newMask;\r\n }", "IntExpression explicitMask(Expression p) {\n\t\treturn ones.shl(implicitMask(p));\n\t}", "private long mask(int n) {\n\t\treturn 1L << n;\n\t}", "private static int makeMask(int n) throws IllegalArgumentException {\n\t\tCheck.arg().notNegative(n);\n\t\tif (n > 32) throw new IllegalArgumentException(\"n = \" + n + \" > 32\");\n\t\t\n\t\tif (n == 32) return ~0;\t// ~0 is thirty two 1's in binary\n\t\t\t/*\n\t\t\tThe n = 32 special case must be detected for two reasons, one obvious and one subtle.\n\t\t\t\n\t\t\tThe obvious reason is that any int that is left shifted by 32 or more ought to pushed into a long value which is impossible, so you know something weird must happen.\n\t\t\t\n\t\t\tThe subtle reason is the details of how Java's shift operators (<<, >>, >>>) work:\n\t\t\tthey only use the 5 lower bits of the right side operand (i.e. shift amount).\n\t\t\t(This statement assumes that the left hand operand is an int; if it is a long, then the lower 6 bits are used.)\n\t\t\tTHIS MEANS THAT THEY ONLY DO WHAT YOU THINK THEY WILL WHEN THE SHIFT AMOUNT IS INSIDE THE RANGE [0, 31].\n\t\t\tSo, in the code above, 1 << n when n = 32 evaluates to 1 << 0 (because 32 has 0 in its lower 5 bits)\n\t\t\tso the overall expression is then (1 << 0) - 1 == 1 - 1 == 0 which is a wrong result.\n\t\t\t\n\t\t\tThis \"use only the lower shift bits\" behavior is why this code (also suggested by Sean Anderson)\n\t\t\t\treturn (~0) >>> (32 - n);\n\t\t\tcannot be used: it fails at n = 0 (returning thirty two ones instead of 0).\n\t\t\t\n\t\t\tReferences:\n\t\t\t\thttp://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6201273\n\t\t\t\thttp://www.davidflanagan.com/blog/000021.html\n\t\t\t\thttp://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.19\n\t\t\t*/\n\t\t\n\t\treturn (1 << n) - 1;\t// acknowledgement: this technique sent to me by Sean Anderson, author of http://graphics.stanford.edu/~seander/bithacks.html\n\t}", "IntExpression implicitMask(Expression p) {\n\t\treturn p.join(mask).sum();\n\t}", "public static int shiftmask(int bitwidth) {\n return bitwidth < 1 ? 0 : (1 << (32 - Integer.numberOfLeadingZeros(bitwidth - 1))) - 1;\n }", "static int isolateBit(int n){\n return n & (-n);\n }", "private static synchronized int nextMask() {\n return (int) Math.pow(2, maskCount++);\n }", "public static int setFlag(final int intValue, Bits bit, final boolean condition) {\n if (condition) {\n return intValue | bit.getMask();\n } else {\n return intValue & ~bit.getMask();\n }\n }", "private int getBit(int value, int k) {\r\n\t\treturn (value >> k) & 1;\r\n\t}", "public int bitAt(int i) {\n // PUT YOUR CODE HERE\n }", "public static int mask(int start, int size) {\r\n // Checks that start and size form a valid bit range\r\n checkArgument(start >= 0 && start <= Integer.SIZE && size >= 0\r\n && size <= Integer.SIZE && start + size <= Integer.SIZE);\r\n\r\n // Creating a value whose binary representation has size 1s as its\r\n // LSBs (1L is used instead of 1 to bypass the int\r\n // type's bit shifting limit)\r\n int unshiftedMask = (int) (1L << size) - 1;\r\n\r\n // Shifting those 1s to the correct position\r\n return unshiftedMask << start;\r\n }", "public long getSourceMask()\r\n { return srcmask; }", "public static int getBit(byte input,int position){\n return (input >> position) & 1;\n }", "public static EnumSet<AccessFlag> fromMask(final int mask) {\r\n final EnumSet<AccessFlag> result = \r\n EnumSet.noneOf(AccessFlag.class);\r\n for (final AccessFlag flag : AccessFlag.values()) {\r\n if ((flag.value & mask) != 0) {\r\n result.add(flag);\r\n }\r\n }\r\n return result;\r\n }", "boolean getBit(int index);", "protected boolean[] getMask() {\n\t\treturn this.mask;\n\t}", "public static Integer getBit(byte input, int position){\n return ((input >> position) & 1);\n }", "protected final int getMask(int portalObjectType)\n {\n switch (portalObjectType)\n {\n case TYPE_CONTEXT:\n return CONTEXT_MASK;\n case TYPE_PORTAL:\n return PORTAL_MASK;\n case TYPE_PAGE:\n return PAGE_MASK;\n case TYPE_WINDOW:\n return WINDOW_MASK;\n default:\n throw new IllegalArgumentException(\"Unknown type \" + portalObjectType);\n }\n }", "protected int getMaskValue(int i, int j, int band) {\r\n\t\treturn 1;\r\n\t}", "public static int getMaskFor(final Target target, final ElementType...minus) {\n \tint m = 0;\n \tfor(ElementType et: target.value()) {\n \t\tm = m | ElementTypeMapping.valueOf(et.name()).mask;\n \t}\n \tfor(ElementType et: minus) {\n \t\tm = m & ~ElementTypeMapping.valueOf(et.name()).mask; \n \t}\n \treturn m;\n }", "public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}", "com.google.protobuf.FieldMask getFieldMask();", "public long bits() {\n\t\tlong x = n;\n\t\tif (x > 0) {\n\t\t\tlong msw = get(x - 1) & 0xffffffffL;\n\t\t\tx = (x - 1) * BPU;\n\t\t\tx = x & 0xffffffffL;\n\t\t\tlong w = BPU;\n\t\t\tdo {\n\t\t\t\tw >>= 1;\n\t\t\t\tif (msw >= ((1 << w) & 0xffffffffL)) {\n\t\t\t\t\tx += w;\n\t\t\t\t\tx = x & 0xffffffffL;\n\t\t\t\t\tmsw >>= w;\n\t\t\t\t}\n\t\t\t} while (w > 8);\n\t\t\tx += bittab[(int) msw];\n\t\t\tx = x & 0xffffffffL;\n\t\t}\n\t\treturn x;\n\t}", "private int getLowTenBitNumber(int num) {\n return num & 1023;\n }", "public WavelengthMask getMask() {\r\n\t\treturn this.mask;\r\n\t}", "byte[] networkMask();", "Long getResultMaskBoundary();", "public static int setBit(final int intValue, final Bits bit) {\n return setFlag(intValue, bit, true);\n }", "public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }", "public static int mask(int crc) {\n // Rotate right by 15 bits and add a constant.\n return ((crc >>> 15) | (crc << 17)) + MASK_DELTA;\n }", "public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}", "public static int getBit(boolean value) {\n return value ? Constants.BIT_TRUE : Constants.BIT_FALSE;\n }", "com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder();", "public static int getBit(byte b,int position)\n\t{\n\t return ((b >> position) & 1);\n\t}", "public UnmodifiableBitSet setBit(int i){\n\t\tUnmodifiableBitSet nbs = (UnmodifiableBitSet)this.clone();\n\t\tnbs.setBitInn(i);\n\t\treturn nbs;\n\t}", "public org.sirius.client.win32.core.types.Dword getFMask() {\n return fMask;\n }", "private static long getMaskAsLong(int nrBits) {\n return 0xFFFFFFFFFFFFFFFFL >>> (64 - nrBits);\n }", "public List<Mask> getMasks() {\n return Collections.unmodifiableList(masks);\n }", "public int getBit() {\r\n return _bit;\r\n }", "public static int method_2686(int var0) {\r\n return var0 & 7;\r\n }", "public static int _setBit(final int originalInt,final int bitIndex) {\n return originalInt | _getMask(bitIndex);\n }", "int get(int i) {\n int numPosition = i / MAX_BITS;\n int intPosition = i % MAX_BITS;\n long val = values[numPosition] & (1 << intPosition);\n return (int) (val >> intPosition);\n }", "int bitRange(int num, int s, int n)\n {\n return (num >> s) & ~(-1 << n);\n }", "public static int bit(byte[] h, int i) {\n return (h[i >> 3] >> (i & 7)) & 1;\n }", "BitSet valueLeafFlags();", "BitSet valueLeafFlags();", "public int anySetBit()\n \t{\n \t\tint numbytes = getLengthInBytes();\n \t\tint bitpos;\n \n \t\tfor (int i = 0; i < numbytes-1; i++)\n \t\t{\n \t\t\tif (value[i] != 0)\n \t\t\t{\n \t\t\t\tfor (int j = 0; j < 8; j++)\n \t\t\t\t{\n \t\t\t\t\tbitpos = 7-j;\n \t\t\t\t\tif (((1 << bitpos) & value[i]) != 0)\n \t\t\t\t\t\treturn ((i*8)+j);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \n \t\t// only the top part of the last byte is relevant\n \t\tbyte mask = (byte)(0xFF << (8-bitsInLastByte));\n \t\tif ((value[numbytes-1] & mask) != 0)\n \t\t{\n \t\t\tfor (int j = 0; j < bitsInLastByte; j++)\n \t\t\t{\n \t\t\t\tbitpos = 7-j;\n \t\t\t\tif (((1 << bitpos) & value[numbytes-1]) != 0)\n \t\t\t\t\treturn ((numbytes-1)*8)+j;\n \t\t\t}\n \t\t}\n \n \t\treturn -1;\n \t}", "public static int clearBit(int num, int i) {\n int mask = ~(1 << i);\n return num & mask;\n }", "public static int binaryToGray(int num) { return (num >>> 1) ^ num; }", "static int toggleBit(int n){\n return n & (n-1);\n }", "public int bits() {\n return mat.getType().getBits();\n }", "IntsRef getFlags();", "public int updateBit(int i,int j, boolean set){\n int value=(set)?1:0;\n int mask=~(1<<j);\n int clear=mask&i;\n return clear|(1<<value);\n\n}", "public KeyMask getKeyMask() {\r\n\t\treturn fieldKeyMask;\r\n\t}", "public static int getLeftMostSetBitPosition(int integer){\n\t\t\n\t\tint ret = -1 ;\n\t\tif(integer < 0){\n\t\t\treturn Integer.SIZE -1 ;\n\t\t}\n\t\t\n\t\twhile(integer > 0){\n\t\t\tret++;\n\t\t\tinteger = integer >> 1;\n\t\t}\n\t\t\n\t\treturn ret ;\n\t\t\n\t}", "public static int negative(int b) {\n return (b >> 8) & 1;\n }", "public static boolean _getBit(final int integer,final int bitIndex) {\n return ((integer & _getMask(bitIndex)) != 0);\n }", "public static int method_2711(int var0) {\r\n return var0 & 3;\r\n }", "public int getTurnCode(){\n return mask;\n }", "public static long getVpnIdMaskForReg() {\n return METADATA_MASK_VRFID.toJava().shiftRight(1).longValue();\n }", "int getNibble(int num, int which)\n {\n return 0b1111 & num >> (which << 2);\n }", "public int setBit(int i, int j){\n return (i|(1<<j));\n }", "public short[] getShortMask() {\r\n return newShortMask;\r\n }", "public int getFlags();", "public int getFlags();", "static int setBit(int n, int pos){\n return n | (1<<pos);\n }", "public static int _clearBit(final int originalInt,final int bitIndex) {\n return originalInt & ~_getMask(bitIndex);\n }", "public static int cleanBitsMSBthroughI(int num, int i) {\n int mask = (1 << i) - 1;\n return num & mask;\n }", "public static boolean bitIsSet(final int intValue, final Bits bit) {\n return (intValue & bit.getMask()) == bit.getMask();\n }", "BitSet selectLeafFlags();", "BitSet selectLeafFlags();", "com.google.protobuf.FieldMask getUpdateMask();", "com.google.protobuf.FieldMask getUpdateMask();", "com.google.protobuf.FieldMask getUpdateMask();", "com.google.protobuf.FieldMask getUpdateMask();", "public int getBit(int columnIndex) {\n BitVector vector = (BitVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }", "public static long lowestOneBit(long i) {\r\n // HD, Section 2-1\r\n return i & -i;\r\n }", "private static int getBit(int pack, int pos) {\n\t\treturn (pack & (1 << pos)) != 0 ? 1 : 0;\n\t}", "public static byte[] mask(byte[] ip, int maskbits)\n {\n int nrbytes=(maskbits+7)/8; // Upper(bits/8) \n int len=ip.length; \n \n for (int i=0;i<nrbytes;i++)\n {\n int mask=0; \n // first byte, start with lowest byte (last one)\n if (maskbits>=8)\n mask=0x0000; // erase network bits \n else\n {\n mask=(0x0001<<maskbits)-1; // 0xffff....\n mask=0x00ff-(mask&0x00ff); // reverse mask; \n }\n \n ip[len-i-1]=(byte)(ip[len-i-1]&mask);\n maskbits-=8; // next byte \n }\n \n return ip; \n }", "private byte[] intToBits(int number, int n) {\n\t\tbyte[] bits = new byte[n];\n\t\t\n\t\tString bitString = Integer.toBinaryString(number);\n\t\twhile (bitString.length() < n) {\n\t\t\tbitString = \"0\" + bitString;\n\t\t}\n\t\t\n\t\tfor(int i = 0, maxLen = bits.length; i < maxLen; i++) {\n\t\t\tbits[i] = (byte) (bitString.charAt(i) == 1 ? 1 : 0);\n\t\t}\n\t\t\n\t\treturn bits;\n\t}", "public interface BitField {\n\n /**\n * @return the size of the field\n */\n int size();\n\n /**\n * set all values of the BitField with the rightmost value being index 0 (LSB).\n * example set(0,0,0,1) would set bit0 == 1 and bit3 == 0\n *\n * @param values the values to set the BitField (only 0 and 1 are accepted)\n * @return the BitField\n */\n void setBits(int... values);\n\n /**\n * set a given bit in the field\n *\n * @param index\n * @param value true == 1, false == 0\n * @throws IndexOutOfBoundsException if you try to set a bit greater than the size of the field\n */\n void setBit(int index, boolean value);\n\n /**\n * set a given bit in the field\n *\n * @param index\n * @param value (only 0 and 1 are accepted)\n * @throws IndexOutOfBoundsException if you try to set a bit greater than the size of the field\n */\n void setBit(int index, int value);\n\n /**\n * replace all values of the bitfield with this integer value\n *\n * @param val\n * @return\n */\n void setToValue(int val);\n\n /**\n * invert all the bits\n */\n void invertAllBits();\n\n /**\n * get a given bit as a boolean\n *\n * @param index\n * @return a boolean for the bit (true == 1, false == 0)\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n boolean getBit(int index);\n\n /**\n * get a given bit as a 0 or 1\n *\n * @param index\n * @return a value for the bit (1 == 1, 0 == 0)\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n int getBitAsInt(int index);\n\n /**\n * get the field as an integer\n *\n * @return the int value of the bitfield\n */\n int intValue();\n\n /**\n * return a nice string representation of the field\n *\n * @return\n */\n String asString();\n\n /**\n * get the LSBs of the BitField (if possible)\n *\n * @param digits the number of LSBs to return\n * @return a new BitField of the LSBs\n */\n BitField getLSBs(int digits);\n\n /**\n * get the MSBs of the BitField (if possible)\n *\n * @param digits the number of MSBs to return\n * @return a new BitField of the MSBs\n */\n BitField getMSBs(int digits);\n\n /**\n * return a new BitField. Inclusive\n *\n * @param from index of the from (0==LSB)\n * @param to index of the to (max is the size-1 of the field)\n * @return a new BitField of the chosen bits\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n BitField getSubField(int from, int to);\n\n /**\n * return a new BitField. Inclusive\n *\n * @param from index of the from (0==LSB)\n * @param to index of the to (if > size then we pad with 0's)\n * @return a new BitField of the chosen bits\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n BitField getSubFieldWithPadding(int from, int to);\n\n /**\n * a convenience method to add to the LS Bits of the BitField.\n * this will resize the BitField, shift everything to the left and insert\n * the new BitField\n *\n * @param fieldToAddToTheRight\n */\n void shiftAndAddToRight(BitField fieldToAddToTheRight);\n\n /**\n * shift to the left and pad the new LSBs with 0's\n *\n * @param numberToShift the number of bits to shift\n */\n void shiftLeft(int numberToShift);\n\n /**\n * shift to the right and have the LSBs dissapear\n *\n * @param numberToShift the number of bits to shift\n */\n void shiftRight(int numberToShift);\n\n /**\n * resize, but trimming/adding to the MSB side\n * <p>\n * if newSize > currentSize, we pad with 0's on the MSBs\n * if newSize < currentSize, we simply drop the bits on the left\n *\n * @param newSize the new size of the BitField\n */\n void resize(int newSize);\n\n /**\n * copy the BitField\n *\n * @return a copy of the bitField\n */\n BitField copy();\n\n /**\n * convert the bit field and return as a collection of bytes made up from the BitField from the LSB to the MSB. Padding in the MSB if needed\n * (byte == 8 bits).\n * <p>\n * For example:\n * 00001000 would return a list with a single byte value of 8\n * 1000001000 would return a list with the first value being a byte with a value of 8, then one with a value of 2\n *\n * @return a collection with the LSB in position 0 and the MSB as the last value\n */\n List<Byte> getAsBytes();\n\n}", "boolean bitSet(int p, int b) // check if int p bit b is 1\n {\n return ((p>>b) & 1)>0;\n }", "public int getAnalysisBits();", "protected final void operationBIT(final int data) {\r\n this.signFlag = data >= 0x80;\r\n this.overflowFlag = (data & 0x40) > 0;\r\n this.zeroFlag = (this.ac & data) == 0;\r\n }", "public static int toUnsignedByte(final int intValue) {\n return intValue & BYTE_MASK;\n }", "public byte getBit(int k) {\n if (this.inBitRange(k)) {\n int i = k / 8;\n int j = k % 8;\n int b = this.data.get(i);\n return (byte) ((b >> j) & 1);\n }\n return 0;\n }", "public int getBit(String columnName) {\n BitVector vector = (BitVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }", "public static int computeViewMaskFromConfig(OwXMLUtil configNode_p, String strNodeName_p, int iMaskBit_p)\r\n {\r\n // delegate to same method with default value 'false'\r\n return computeViewMaskFromConfig(configNode_p, strNodeName_p, iMaskBit_p, false);\r\n }", "public int getCoverMask()\r\n/* 192: */ {\r\n/* 193:150 */ return this.CoverSides;\r\n/* 194: */ }", "public static long getElanMaskForReg() {\n return METADATA_MASK_SERVICE.toJava().shiftRight(24).longValue();\n }", "int getIntFromBitFlag(int flag) {\r\n\t\tswitch (flag) {\r\n\t\tcase 1:\r\n\t\t\treturn 1;\r\n\t\tcase 2:\r\n\t\t\treturn 2;\r\n\t\tcase 3:\r\n\t\t\treturn 4;\r\n\t\tcase 4:\r\n\t\t\treturn 8;\r\n\t\tcase 5:\r\n\t\t\treturn 16;\r\n\t\tcase 6:\r\n\t\t\treturn 32;\r\n\t\tcase 7:\r\n\t\t\treturn 64;\r\n\t\tcase 8:\r\n\t\t\treturn 128;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"No flag specified in BaseRobot.getIntFromBitFlag\");\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}" ]
[ "0.70546216", "0.6961861", "0.69495034", "0.6805715", "0.6784887", "0.67085844", "0.66559756", "0.65930176", "0.65156776", "0.6451214", "0.64150894", "0.6190942", "0.61833864", "0.6160964", "0.6018434", "0.6015732", "0.598213", "0.595931", "0.58734393", "0.584403", "0.58353233", "0.5829322", "0.578656", "0.57733804", "0.5754626", "0.5734787", "0.5691995", "0.5656395", "0.5580703", "0.5579899", "0.5574539", "0.55693096", "0.5547851", "0.55190456", "0.5516318", "0.55153555", "0.5513005", "0.5511215", "0.5494928", "0.5484888", "0.54848546", "0.548456", "0.5478541", "0.5466862", "0.5447089", "0.5443114", "0.5440695", "0.54286873", "0.54189885", "0.5411304", "0.5378435", "0.53681535", "0.5361972", "0.53556466", "0.53556466", "0.5309174", "0.53084874", "0.5256583", "0.52549094", "0.5247686", "0.5241482", "0.5235093", "0.52119213", "0.5209846", "0.52052623", "0.5188554", "0.51810914", "0.5174034", "0.5170523", "0.5159686", "0.5152591", "0.51522636", "0.51502746", "0.51502746", "0.5148964", "0.51463926", "0.5128958", "0.5127758", "0.51220006", "0.51220006", "0.51201355", "0.51201355", "0.51201355", "0.51201355", "0.51188254", "0.5112372", "0.5112223", "0.51054215", "0.5104127", "0.5102126", "0.5101294", "0.5093441", "0.5079288", "0.5051811", "0.5047822", "0.5045085", "0.50449413", "0.50444216", "0.50443393", "0.5039656" ]
0.6491946
9
Sets an int's bit and returns the new int
public static int _setBit(final int originalInt,final int bitIndex) { return originalInt | _getMask(bitIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int setBit(final int intValue, final Bits bit) {\n return setFlag(intValue, bit, true);\n }", "void setBit(int index, int value);", "public void set(int value)\n\t{\n\t\tbitHolder.setValue(value);\n\t}", "static int setBit(int num, int pos) {\n\t\t\treturn num | (1<<pos);\n\t\t}", "public static byte set(byte value, int bit){\n return (byte)(value|(1<<bit));\n }", "static int setBit(int n, int pos){\n return n | (1<<pos);\n }", "public static int setFlag(final int intValue, Bits bit, final boolean condition) {\n if (condition) {\n return intValue | bit.getMask();\n } else {\n return intValue & ~bit.getMask();\n }\n }", "int getBitAsInt(int index);", "public int setBit(int i, int j){\n return (i|(1<<j));\n }", "public UnmodifiableBitSet setBit(int i){\n\t\tUnmodifiableBitSet nbs = (UnmodifiableBitSet)this.clone();\n\t\tnbs.setBitInn(i);\n\t\treturn nbs;\n\t}", "public int bitAt(int i) {\n // PUT YOUR CODE HERE\n }", "void setBit(int index, boolean value);", "private void setInt(byte [] buffer, int offset, int value) {\r\n\t\tbuffer[offset++] = (byte)((value & 0xFF000000) >>> 24);\r\n\t\tbuffer[offset++] = (byte)((value & 0x00FF0000) >>> 16);\r\n\t\tbuffer[offset++] = (byte)((value & 0x0000FF00) >>> 8);\r\n\t\tbuffer[offset] = (byte)((value & 0x000000FF));\r\n\t}", "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "public int updateBit(int i,int j, boolean set){\n int value=(set)?1:0;\n int mask=~(1<<j);\n int clear=mask&i;\n return clear|(1<<value);\n\n}", "public static long setBit(long value, int pos) {\n pos--;\n return value | (1L << pos);\n\n }", "public static byte setBit(byte input, int position, boolean val){\n return val? (byte) (input | (1 << position)):(byte) (input & ~(1 << position));\n }", "public int setValue (int val);", "public MutableInt(int newval) {\n value = newval;\n }", "void setInt(boolean reverse, IntsRef ref, int value);", "public int\n setBitRate(int bitRate);", "protected void setBit(long bitIndex) {\r\n\t long intIndex = (bitIndex >>> ADDRESS_BITS_PER_UNIT);\r\n\t bits[(int)(intIndex / ONE_MB_INTS)][(int)(intIndex % ONE_MB_INTS)] \r\n\t |= 1 << (bitIndex & BIT_INDEX_MASK);\r\n\t }", "protected void setBitAt(final int bitIndex) {\n _bitMap = _setBit(_bitMap,\n \t\t\t\t (Numbers.INTEGER_WIDTH*8-1)-bitIndex-1);\n }", "void set(int i, int val) {\n int numPosition = i / MAX_BITS;\n int intPosition = i % MAX_BITS;\n\n if (val == 1)\n values[numPosition] |= (1 << intPosition);\n else\n values[numPosition] = values[numPosition]&~(1 << intPosition);\n }", "public void setBit(int pos, int bit) {\r\n\t\tflagBits[pos] = bit;\r\n\t}", "private static int mask(int bit) {\n return MSB >>> bit;\n }", "private EfficientTerminalSet setBit(int index, boolean value) {\n int[] newData = data.clone();\n int blockIndex = index / 32;\n int bitIndex = index % 32;\n if (value)\n newData[blockIndex] |= 1 << bitIndex;\n else\n newData[blockIndex] &= ~(1 << bitIndex);\n return new EfficientTerminalSet(terminals, indices, newData);\n }", "public void\t\tset(int val) { value = val; }", "private static int setBit(int ci, int bo, int newBit) {\n int clearMask = ~(1 << bo);\n int ciWithBitCleared = ci & clearMask;\n int bitMask = newBit << bo;\n int xiWithNewBitSet = ciWithBitCleared | bitMask;\n return xiWithNewBitSet;\n }", "public void set(int value)\n {\n set(value, true);\n }", "private int bitToInt(char bit) {\n return bit == '0' ? 0 : 1;\n }", "public void setBit(int index, boolean bit)\n\t{\n\t\tif (index + 1 > bits.size()) bits.ensureCapacity(index + 1);\n\t\tbits.add(index, bit);\n\t}", "public void setInteger(int value);", "void writeBit(int bit) throws IOException;", "static int toggleBit(int n){\n return n & (n-1);\n }", "public abstract void setInteger(int value);", "void setBits(int... values);", "private static int setBits(int n) {\r\n int highestBitValue = 1;\r\n int c = 0;\r\n\r\n while (highestBitValue < n) {\r\n highestBitValue = highestBitValue * 2;\r\n }\r\n\r\n \r\n int currentBitValue = highestBitValue;\r\n while (currentBitValue > 0) {\r\n if (currentBitValue <= n) {\r\n\r\n n -= currentBitValue;\r\n c++;\r\n }\r\n currentBitValue = currentBitValue / 2;\r\n }\r\n\r\n return c;\r\n }", "public void setInteger(int value){}", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "public int getBit() {\r\n return _bit;\r\n }", "public void setInt(int addr, int val) throws ProgramException {\n setLittleEndian(addr, Integer.BYTES, val);\n }", "int setShort(int num, int a_short, int which)\n {\n return ((num & (0b1111111111111111 << ((~which) << 4))) | (a_short << (which << 4)));\n }", "public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }", "public Builder setIntValue(int value) {\n bitField0_ |= 0x00000010;\n intValue_ = value;\n onChanged();\n return this;\n }", "public int setValue(int value) {\n\t\tthis.value = value;\n\t\treturn 0;\n\t}", "public ByteBuf setInt(int index, int value)\r\n/* 476: */ {\r\n/* 477:490 */ ensureAccessible();\r\n/* 478:491 */ _setInt(index, value);\r\n/* 479:492 */ return this;\r\n/* 480: */ }", "int nextBits(int bits);", "public void set(int value) {\n this.value = BigInteger.valueOf(value).toByteArray();\n }", "public ByteBuf setIntLE(int index, int value)\r\n/* 488: */ {\r\n/* 489:502 */ ensureAccessible();\r\n/* 490:503 */ _setIntLE(index, value);\r\n/* 491:504 */ return this;\r\n/* 492: */ }", "boolean getBit(int index);", "protected long setBit(long word, boolean flag, long position) {\n\t\tif (!flag) {\n\t\t\treturn word & (~(1L << position));\n\t\t}\n\t\treturn word | (1L << position);\n\t}", "static int toggleBit(int n, int pos){\n return n ^ (1<<pos);\n }", "public static int getBitMask(int x) {\n return (0x01 << x);\n }", "public void setValue(int value);", "public void set(int loc, boolean val)\n\t{\n\t\tif (loc < this.size)\n\t\t{\n\t\t\tif (val)\n\t\t\t{\n\t\t\t\tbits[loc / BITS_IN_LONG] |= (1L << (loc % BITS_IN_LONG));\n\t\t\t} else\n\t\t\t{\n\t\t\t\tbits[loc / BITS_IN_LONG] &= ~(1L << (loc % BITS_IN_LONG)); // DO NOT FORGET THAT SECOND L\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // TOOK ME FOREVER TO FIX WHEN I FORGOT\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Exception: tried to set value of BitArray that was out of bounds: \" + loc + \". Size was \" + this.size);\n\t\t}\n\t}", "public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }", "public ByteBuf setIntLE(int index, int value)\r\n/* 799: */ {\r\n/* 800:808 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 801:809 */ return super.setIntLE(index, value);\r\n/* 802: */ }", "private int getBit(int value, int k) {\r\n\t\treturn (value >> k) & 1;\r\n\t}", "void setToValue(int val);", "public static int bitSetter0(int x, int k) {\n\t\tint bitSetter = 1 << k;\n\t\tbitSetter = ~bitSetter;\n\t\tx = x & bitSetter;\n\t\treturn x; // x's kth bit\n\t}", "int next(int bits);", "public void setFlag( int flag )\n {\n value |= 1 << flag;\n setBit( flag );\n }", "private static void setValueInt(int value)\n {\n Util.valueInt = value;\n }", "public static int bitSetter1(int x, int k) {\n\t\tint bitSetter = 1 << k;\n\t\tx = x | bitSetter;\n\t\treturn x; // x's kth bit\n\t}", "public static int getBit(byte input,int position){\n return (input >> position) & 1;\n }", "private static int setKthBit(int num,int k){\n int p=0;\n int m =1;\n while(p<k){\n p++;\n m =m<<1;\n }\n return num|m;\n }", "public void setIntValue(int value) {\n setValueIndex(getPool().findIntEntry(value, true));\n }", "@Override\r\n\tpublic Buffer setUnsignedInt(int pos, long i) {\n\t\treturn null;\r\n\t}", "public static int flipBit(int value, int bitIndex) {\n\n// value = value ^ (1<<(bitIndex-1));\n\n return value ^ (1<<(bitIndex-1)); // put your implementation here\n }", "public void set(final int i) {\n\t\tint wordPos;\n\t\tint bitPos = 0;\n\t\tint offset;\n\n\t\tassert (i >= 0);\n\n\t\t// try simple set (append style)\n\t\tif (fastSet(i))\n\t\t\treturn;\n\n\t\t// simple set failed. Find compressed word where to set the bit\n\t\tRunningLengthWord rlw = null, prev = null, next = null;\n\n\t\tEWAHIterator iter = new EWAHIterator(this.buffer, actualsizeinwords);\n\t\twhile (iter.hasNext() && (bitPos < i || bitPos == 0)) {\n\t\t\tif (rlw != null)\n\t\t\t\tprev = new RunningLengthWord(rlw);\n\t\t\trlw = iter.next();\n\t\t\tbitPos += rlw.size() * wordinbits;\n\t\t}\n\t\tif (iter.hasNext())\n\t\t\tnext = rlw.getNext();\n\n\t\tbitPos -= rlw.size() * 64;\n\t\toffset = i - bitPos;\n\t\twordPos = rlw.position;\n\n\t\t// the bit to set is in a literal word. Try to set bit directly\n\t\tif (offset >= rlw.getRunningLength() * 64) {\n\t\t\toffset -= rlw.getRunningLength() * 64;\n\t\t\tint literalPos = (offset / 64);\n\t\t\twordPos += literalPos + 1;\n\t\t\tfinal long newdata = 1l << (offset % 64);\n\t\t\tthis.buffer[wordPos] = this.buffer[wordPos] | newdata;\n\t\t\t// if all bits of literal set, then either merge with run length\n\t\t\t// or create new RLW.\n\t\t\tif (this.buffer[wordPos] == oneMask) {\n\t\t\t\t// first literal of current RLW and running bit is set\n\t\t\t\t// increase count by one (unless maximal count reached)\n\t\t\t\tif (literalPos == 0\n\t\t\t\t\t\t&& (rlw.getRunningBit() || rlw.getRunningLength() == 0)\n\t\t\t\t\t\t&& rlw.getRunningLength() < RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\trlw.setRunningBit(true);\n\t\t\t\t\trlw.setRunningLength(rlw.getRunningLength() + 1);\n\t\t\t\t\trlw.setNumberOfLiteralWords(rlw.getNumberOfLiteralWords() - 1);\n\t\t\t\t\t// current RLW has no literals left, try to merge with\n\t\t\t\t\t// following RLW\n\t\t\t\t\tif (rlw.getNumberOfLiteralWords() == 0\n\t\t\t\t\t\t\t&& next != null\n\t\t\t\t\t\t\t&& next.getRunningBit()\n\t\t\t\t\t\t\t&& next.getRunningLength() + rlw.getRunningLength() < RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\t\tif (rlw.equals(this.rlw))\n\t\t\t\t\t\t\tthis.rlw.position = next.position;\n\t\t\t\t\t\tnext.setRunningLength(next.getRunningLength()\n\t\t\t\t\t\t\t\t+ rlw.getRunningLength());\n\t\t\t\t\t\tshiftCompressedWordsLeft(rlw.position + 2, 2);\n\t\t\t\t\t}\n\t\t\t\t\t// merging doesn't work because of size\n\t\t\t\t\t// else just reduce length of rlw by 1\n\t\t\t\t\telse\n\t\t\t\t\t\tshiftCompressedWordsLeft(rlw.position + 2, 1);\n\t\t\t\t}\n\t\t\t\t// if last word increase following running length count if\n\t\t\t\t// possible\n\t\t\t\telse if (next != null\n\t\t\t\t\t\t&& next.getRunningLength() \n\t\t\t\t\t\t\t\t< RunningLengthWord.largestrunninglengthcount\n\t\t\t\t\t\t&& (next.getRunningLength() == 0 || next\n\t\t\t\t\t\t\t\t.getRunningBit())\n\t\t\t\t\t\t&& literalPos == rlw.getNumberOfLiteralWords() - 1) {\n\t\t\t\t\tnext.setRunningBit(true);\n\t\t\t\t\tnext.setRunningLength(next.getRunningLength() + 1);\n\t\t\t\t\trlw.setNumberOfLiteralWords(rlw.getNumberOfLiteralWords() - 1);\n\t\t\t\t\t// current RLW has no literals left, try to merge with\n\t\t\t\t\t// following\n\t\t\t\t\tif (rlw.getNumberOfLiteralWords() == 0\n\t\t\t\t\t\t\t&& next != null\n\t\t\t\t\t\t\t&& next.getRunningBit()) {\n\t\t\t\t\t\tlong totalRunLen = next.getRunningLength() + rlw.getRunningLength(); \n\t\t\t\t\t\t\n\t\t\t\t\t\t// merging into next possible?\n\t\t\t\t\t\tif (totalRunLen < RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\t\t\tnext.setRunningLength(next.getRunningLength()\n\t\t\t\t\t\t\t\t\t+ rlw.getRunningLength());\n\t\t\t\t\t\t\tshiftCompressedWordsLeft(rlw.position + 2, 2);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// run length to large, move run length from next to current\n\t\t\t\t\t\t// and shift next one to the left\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\trlw.setRunningLength(RunningLengthWord.\n\t\t\t\t\t\t\t\t\tlargestrunninglengthcount);\n\t\t\t\t\t\t\tnext.setRunningLength(totalRunLen - RunningLengthWord\n\t\t\t\t\t\t\t\t\t.largestrunninglengthcount);\n\t\t\t\t\t\t\tshiftCompressedWordsLeft(rlw.position + 2, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// remove RLW\n\t\t\t\t\telse\n\t\t\t\t\t\tshiftCompressedWordsLeft(\n\t\t\t\t\t\t\t\trlw.position + rlw.getNumberOfLiteralWords()\n\t\t\t\t\t\t\t\t\t\t+ 2, 1);\n\t\t\t\t}\n\t\t\t\t// cannot merge, have to create new RLW and adapt literal count\n\t\t\t\t// of current RLW\n\t\t\t\telse {\n\t\t\t\t\tint beforeLit = literalPos;\n\t\t\t\t\tint afterLit =\n\t\t\t\t\t\t\trlw.getNumberOfLiteralWords() - literalPos - 1;\n\n\t\t\t\t\tif (log.isDebugEnabled()) {log.debug(\"split into \" + beforeLit + \" and \" + afterLit);};\n\n\t\t\t\t\tRunningLengthWord newRlw = new RunningLengthWord(rlw);\n\t\t\t\t\tnewRlw.position += literalPos + 1;\n\t\t\t\t\tnewRlw.setRunningBit(true);\n\t\t\t\t\tnewRlw.setRunningLength(1L);\n\t\t\t\t\tnewRlw.setNumberOfLiteralWords(afterLit);\n\n\t\t\t\t\trlw.setNumberOfLiteralWords(beforeLit);\n\n\t\t\t\t\t// if next one is full running length 1's we have to switch\n\t\t\t\t\t// running lengths\n\t\t\t\t\tif (next != null\n\t\t\t\t\t\t\t&& next.getRunningBit()\n\t\t\t\t\t\t\t&& next.getRunningLength() == RunningLengthWord.largestrunninglengthcount) {\n\t\t\t\t\t\tnext.setRunningLength(1L);\n\t\t\t\t\t\tnewRlw.setRunningLength(RunningLengthWord.largestrunninglengthcount);\n\t\t\t\t\t}\n\n\t\t\t\t\t// we split the last word, adapt it\n\t\t\t\t\tif (rlw.position == this.rlw.position)\n\t\t\t\t\t\tthis.rlw.position = newRlw.position;\n\t\t\t\t\tif (log.isDebugEnabled()) {log.debug(\"split because new 1's run\");};\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// bit is in a clean word, if it is a '1' sequence we are fine\n\t\telse if (rlw.getRunningBit()) {\n\t\t\treturn;\n\t\t}\n\t\t// bit to set is in '0' clean word. We have to split this clean word and\n\t\t// shift following words in the buffer.\n\t\t// We do this by adding a new RLW y after the RLW x which has to be\n\t\t// split. This new RWL y takes over all the\n\t\t// literal words of x and encodes the part of the 0 sequence that\n\t\t// follows the bit we want to set. RWL x's\n\t\t// run length is reduced and we add the new bit as the new single\n\t\t// literal word for x.\n\t\telse {\n\t\t\tlong zeroRunLen = rlw.getRunningLength();\n\t\t\tlong newRunLen = offset / 64;\n\t\t\tlong afterRunLen = ((zeroRunLen * 64 - 63) / 64) - newRunLen;\n\t\t\tlong newNumLiterals = rlw.getNumberOfLiteralWords() + 1;\n\t\t\tfinal long newdata = 1l << (offset % 64);\n\n\t\t\t// no preceeding and following run length.\n\t\t\t// CASE 1) Try to merge with preceeding or following RLW.\n\t\t\tif (newRunLen == 0 && afterRunLen == 0) {\n\t\t\t\t// merge with previous if exists and possible\n\t\t\t\tif (prev != null\n\t\t\t\t\t\t&& prev.getNumberOfLiteralWords() + newNumLiterals <= RunningLengthWord.largestliteralcount) {\n\t\t\t\t\tprev.setNumberOfLiteralWords(prev.getNumberOfLiteralWords()\n\t\t\t\t\t\t\t+ newNumLiterals);\n\t\t\t\t\tthis.buffer[rlw.position] = newdata;\n\n\t\t\t\t\tif (this.rlw.equals(rlw))\n\t\t\t\t\t\tthis.rlw = prev;\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// No merging possible!\n\t\t\t// CASE 2) if previous run length = 0 then add new literal into\n\t\t\t// previous if previous still has space\n\t\t\tif (newRunLen == 0\n\t\t\t\t\t&& prev != null\n\t\t\t\t\t&& prev.getNumberOfLiteralWords() < RunningLengthWord.largestliteralcount) {\n\t\t\t\tprev.setNumberOfLiteralWords(prev.getNumberOfLiteralWords() + 1);\n\t\t\t\trlw.setRunningLength(afterRunLen);\n\t\t\t\tshiftCompressedWordsRight(rlw.position, 1);\n\t\t\t\tthis.buffer[prev.position + prev.getNumberOfLiteralWords()] =\n\t\t\t\t\t\tnewdata;\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// CASE 3) No merging possible, if following run length = 0, then\n\t\t\t// try to extend R with the new literal.\n\t\t\tif (afterRunLen == 0\n\t\t\t\t\t&& rlw.getNumberOfLiteralWords() < RunningLengthWord.largestliteralcount) {\n\t\t\t\trlw.setNumberOfLiteralWords(rlw.getNumberOfLiteralWords() + 1);\n\t\t\t\trlw.setRunningLength(newRunLen);\n\t\t\t\tshiftCompressedWordsRight(rlw.position + 1, 1);\n\t\t\t\tthis.buffer[rlw.position + 1] = newdata;\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// TODO rlw is full (literals) and next one has no running length\n\t\t\t// and is not full\n\t\t\tif (afterRunLen == 0\n\t\t\t\t\t& next != null\n\t\t\t\t\t&& rlw.getNumberOfLiteralWords() == RunningLengthWord.largestliteralcount\n\t\t\t\t\t&& next.getNumberOfLiteralWords() < RunningLengthWord.largestliteralcount) {\n\t\t\t\trlw.setRunningLength(rlw.getRunningLength() - 1);\n\t\t\t\tshiftCompressedWordsRight(rlw.position + 1, 1);\n\t\t\t\trlw.array = this.buffer;\n\t\t\t\tnext.array = this.buffer;\n\n\t\t\t\tthis.buffer[rlw.position + 1] = newdata;\n\n\t\t\t\t// switch next header with last literal\n\t\t\t\tlong temp = this.buffer[next.position + 1];\n\t\t\t\tthis.buffer[next.position + 1] = this.buffer[next.position];\n\t\t\t\tthis.buffer[next.position] = temp;\n\t\t\t\tnext.setNumberOfLiteralWords(next.getNumberOfLiteralWords() + 1);\n\n\t\t\t\tif (next.position + 1 == this.rlw.position)\n\t\t\t\t\tthis.rlw.position = next.position;\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// CASE 4) no extension possible. Have to SPLIT the zero sequence\n\t\t\t// and create new RLW\n\t\t\t// new RLW only gets a single literal\n\t\t\tif (afterRunLen == 0) {\n\t\t\t\tassert (rlw.getNumberOfLiteralWords() == RunningLengthWord.largestliteralcount);\n\n\t\t\t\tshiftCompressedWordsRight(rlw.position + 1, 1);\n\t\t\t\tshiftCompressedWordsRight(\n\t\t\t\t\t\trlw.position + rlw.getNumberOfLiteralWords() + 1, 1);\n\t\t\t\tRunningLengthWord newRlw =\n\t\t\t\t\t\tnew RunningLengthWord(this.buffer, rlw.position\n\t\t\t\t\t\t\t\t+ rlw.getNumberOfLiteralWords() + 1);\n\t\t\t\trlw.array = this.buffer;\n\n\t\t\t\tnewRlw.setNumberOfLiteralWords(1L);\n\t\t\t\tnewRlw.setRunningLength(0);\n\t\t\t\tnewRlw.setRunningBit(false);\n\n\t\t\t\trlw.setRunningLength(newRunLen);\n\n\t\t\t\tthis.buffer[rlw.position + 1] = newdata;\n\n\t\t\t\tif (newRlw.position > this.rlw.position)\n\t\t\t\t\tthis.rlw.position = newRlw.position;\n\t\t\t}\n\t\t\t// new RLW also gets run length\n\t\t\telse {\n\t\t\t\tshiftCompressedWordsRight(wordPos + 1, 2);\n\t\t\t\tRunningLengthWord newRlw =\n\t\t\t\t\t\tnew RunningLengthWord(this.buffer, wordPos + 2);\n\t\t\t\trlw.array = this.buffer;\n\n\t\t\t\tnewRlw.setNumberOfLiteralWords(rlw.getNumberOfLiteralWords());\n\t\t\t\tnewRlw.setRunningLength(afterRunLen);\n\t\t\t\tnewRlw.setRunningBit(false);\n\n\t\t\t\trlw.setRunningLength(newRunLen);\n\t\t\t\trlw.setNumberOfLiteralWords(1);\n\n\t\t\t\tthis.buffer[wordPos + 1] = newdata;\n\n\t\t\t\tif (newRlw.position > this.rlw.position)\n\t\t\t\t\tthis.rlw.position = newRlw.position;\n\t\t\t}\n\t\t}\n\t}", "public void setValue(int value) {\n BitSet b = new BitSet();\n addIntToBitset(b, value, 0, 32);\n setMessagePayload(b, getByteSize());\n }", "void setValue(int value);", "void set_int(ThreadContext tc, RakudoObject classHandle, int Value);", "public static int setFlag(int field, int pos, boolean value) {\n if(pos < 1 || pos > 32) {\n throw new IllegalArgumentException(\"Pos value is not defined between 1 and 32\");\n }\n\n long flag = (long) Math.pow(2, (pos-1));\n\n if(value) {\n field |= flag;\n } else {\n field &= ~flag;\n }\n return field;\n }", "public void setBitToOne(int k) {\n if (this.inBitRange(k)) {\n int i = k / 8;\n int j = k % 8;\n int b = this.data.get(i);\n int c = 1 << (7 - j);\n b = b | c;\n byte d = (byte) b;\n this.data.set(i, d);\n }\n }", "public ByteBuf setInt(int index, int value)\r\n/* 289: */ {\r\n/* 290:304 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 291:305 */ return super.setInt(index, value);\r\n/* 292: */ }", "boolean bitSet(int p, int b) // check if int p bit b is 1\n {\n return ((p>>b) & 1)>0;\n }", "public Builder setValue(int value) {\n bitField0_ |= 0x00000001;\n value_ = value;\n onChanged();\n return this;\n }", "public interface BitField {\n\n /**\n * @return the size of the field\n */\n int size();\n\n /**\n * set all values of the BitField with the rightmost value being index 0 (LSB).\n * example set(0,0,0,1) would set bit0 == 1 and bit3 == 0\n *\n * @param values the values to set the BitField (only 0 and 1 are accepted)\n * @return the BitField\n */\n void setBits(int... values);\n\n /**\n * set a given bit in the field\n *\n * @param index\n * @param value true == 1, false == 0\n * @throws IndexOutOfBoundsException if you try to set a bit greater than the size of the field\n */\n void setBit(int index, boolean value);\n\n /**\n * set a given bit in the field\n *\n * @param index\n * @param value (only 0 and 1 are accepted)\n * @throws IndexOutOfBoundsException if you try to set a bit greater than the size of the field\n */\n void setBit(int index, int value);\n\n /**\n * replace all values of the bitfield with this integer value\n *\n * @param val\n * @return\n */\n void setToValue(int val);\n\n /**\n * invert all the bits\n */\n void invertAllBits();\n\n /**\n * get a given bit as a boolean\n *\n * @param index\n * @return a boolean for the bit (true == 1, false == 0)\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n boolean getBit(int index);\n\n /**\n * get a given bit as a 0 or 1\n *\n * @param index\n * @return a value for the bit (1 == 1, 0 == 0)\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n int getBitAsInt(int index);\n\n /**\n * get the field as an integer\n *\n * @return the int value of the bitfield\n */\n int intValue();\n\n /**\n * return a nice string representation of the field\n *\n * @return\n */\n String asString();\n\n /**\n * get the LSBs of the BitField (if possible)\n *\n * @param digits the number of LSBs to return\n * @return a new BitField of the LSBs\n */\n BitField getLSBs(int digits);\n\n /**\n * get the MSBs of the BitField (if possible)\n *\n * @param digits the number of MSBs to return\n * @return a new BitField of the MSBs\n */\n BitField getMSBs(int digits);\n\n /**\n * return a new BitField. Inclusive\n *\n * @param from index of the from (0==LSB)\n * @param to index of the to (max is the size-1 of the field)\n * @return a new BitField of the chosen bits\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n BitField getSubField(int from, int to);\n\n /**\n * return a new BitField. Inclusive\n *\n * @param from index of the from (0==LSB)\n * @param to index of the to (if > size then we pad with 0's)\n * @return a new BitField of the chosen bits\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n BitField getSubFieldWithPadding(int from, int to);\n\n /**\n * a convenience method to add to the LS Bits of the BitField.\n * this will resize the BitField, shift everything to the left and insert\n * the new BitField\n *\n * @param fieldToAddToTheRight\n */\n void shiftAndAddToRight(BitField fieldToAddToTheRight);\n\n /**\n * shift to the left and pad the new LSBs with 0's\n *\n * @param numberToShift the number of bits to shift\n */\n void shiftLeft(int numberToShift);\n\n /**\n * shift to the right and have the LSBs dissapear\n *\n * @param numberToShift the number of bits to shift\n */\n void shiftRight(int numberToShift);\n\n /**\n * resize, but trimming/adding to the MSB side\n * <p>\n * if newSize > currentSize, we pad with 0's on the MSBs\n * if newSize < currentSize, we simply drop the bits on the left\n *\n * @param newSize the new size of the BitField\n */\n void resize(int newSize);\n\n /**\n * copy the BitField\n *\n * @return a copy of the bitField\n */\n BitField copy();\n\n /**\n * convert the bit field and return as a collection of bytes made up from the BitField from the LSB to the MSB. Padding in the MSB if needed\n * (byte == 8 bits).\n * <p>\n * For example:\n * 00001000 would return a list with a single byte value of 8\n * 1000001000 would return a list with the first value being a byte with a value of 8, then one with a value of 2\n *\n * @return a collection with the LSB in position 0 and the MSB as the last value\n */\n List<Byte> getAsBytes();\n\n}", "public void setZero() {\n\t\tset((byte) (get() | (1 << 7)));\n\t}", "private int getLowTenBitNumber(int num) {\n return num & 1023;\n }", "public TribitByte setBit(int bitPosition, Tribit bit){\n MathUtils.assertInRange(bitPosition, 0, LENGTH - 1);\n Objects.requireNonNull(bit);\n Tribit[] newValues = Arrays.copyOf(this.value, this.value.length);\n newValues[bitPosition] = bit;\n return new TribitByte(newValues);\n }", "public static int getBit(boolean value) {\n return value ? Constants.BIT_TRUE : Constants.BIT_FALSE;\n }", "Int(int v){\n val = v;\n }", "public static int set(int input, int k) {\n int tmp = 1 << k-1;\n\n // get 1111 ... 0 1*k\n // 0 on kth bit, all other bits are 1\n tmp = ~tmp;\n\n return input & tmp;\n }", "public void setFlagBin(int n) {\n flagBin=Translate.decTobinN(n, 4);\n }", "private static int toInt(boolean b) {\n return b ? 1 : 0;\n }", "int get(int i) {\n int numPosition = i / MAX_BITS;\n int intPosition = i % MAX_BITS;\n long val = values[numPosition] & (1 << intPosition);\n return (int) (val >> intPosition);\n }", "public void set(int value){\n val = value;\n }", "public void setInt(int val) {\n\t\tcp.setInt(val);\n\t}", "private int setNibble(int num, int data, int which, int bitsToReplace) {\n return (num & ~(bitsToReplace << (which * 4)) | (data << (which * 4)));\n }", "public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}", "public static Integer getBit(byte input, int position){\n return ((input >> position) & 1);\n }", "public void setFlags(int param1) {\n }", "public void setBitField(BitField bitField){\n \tthis.bitField=bitField;\n }", "public void set_int(int param) {\n this.local_int = param;\n }", "public void setMyInt(int myIntIn) {\n myInt = myIntIn;\n }", "void setInt(String key, int val);", "void setCollideBits (long bits);" ]
[ "0.7556647", "0.75020397", "0.70133364", "0.70085955", "0.688728", "0.68754154", "0.68648213", "0.6787716", "0.6769204", "0.6703809", "0.6671215", "0.65581864", "0.6522445", "0.64760745", "0.64220357", "0.6382782", "0.6274559", "0.62397027", "0.62317", "0.6227509", "0.62153155", "0.62096685", "0.6197441", "0.6189782", "0.6128508", "0.6116027", "0.6082411", "0.60413975", "0.6037501", "0.6006164", "0.6000763", "0.5986814", "0.59390193", "0.5933043", "0.5916827", "0.5910387", "0.5909608", "0.59028924", "0.5897243", "0.5894444", "0.58864003", "0.5882681", "0.58801275", "0.58423924", "0.5837557", "0.58210355", "0.58149433", "0.57979983", "0.5797423", "0.5784927", "0.5777903", "0.576901", "0.5758673", "0.57570755", "0.5749535", "0.5740205", "0.57314336", "0.5701009", "0.5698659", "0.5694462", "0.5676968", "0.56713134", "0.5671096", "0.5669202", "0.5662689", "0.56618124", "0.5654701", "0.56395215", "0.56270176", "0.56254524", "0.56203324", "0.5601835", "0.5592901", "0.55925775", "0.5584762", "0.55834365", "0.5576265", "0.5570218", "0.5569591", "0.55683047", "0.5567526", "0.5563349", "0.5548632", "0.55334896", "0.55204034", "0.55028987", "0.5501188", "0.5482276", "0.54686314", "0.5467803", "0.5462876", "0.5454594", "0.54545015", "0.5440481", "0.54388463", "0.54137444", "0.5410363", "0.5407131", "0.540372", "0.53997356" ]
0.7221551
2
Resets an int's bit and returns the new int
public static int _clearBit(final int originalInt,final int bitIndex) { return originalInt & ~_getMask(bitIndex); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetZero() {\n\t\tset((byte) (get() & ~(1 << 7)));\n\t}", "public static int _setBit(final int originalInt,final int bitIndex) {\n return originalInt | _getMask(bitIndex);\n }", "public static int clearBit(int num, int i) {\n int mask = ~(1 << i);\n return num & mask;\n }", "public void set(int value)\n\t{\n\t\tbitHolder.setValue(value);\n\t}", "static int toggleBit(int n){\n return n & (n-1);\n }", "public static int setBit(final int intValue, final Bits bit) {\n return setFlag(intValue, bit, true);\n }", "int getBitAsInt(int index);", "public void setZero() {\n\t\tset((byte) (get() | (1 << 7)));\n\t}", "static int clearBit(int num, int pos) {\n\t\t\tint mask = ~(1<<pos);\n\t\t\treturn num & mask;\n\t\t}", "void setBit(int index, int value);", "public UnmodifiableBitSet setBit(int i){\n\t\tUnmodifiableBitSet nbs = (UnmodifiableBitSet)this.clone();\n\t\tnbs.setBitInn(i);\n\t\treturn nbs;\n\t}", "public static int clearBitsUpToLS(int n, int i) {\n return n & ~(-1>>(31-i));\n }", "public Builder clearIntValue() {\n bitField0_ = (bitField0_ & ~0x00000010);\n intValue_ = 0;\n onChanged();\n return this;\n }", "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "static int setBit(int n, int pos){\n return n | (1<<pos);\n }", "static int clearMSBtoI(int num, int pos) {\n\t\t\tint mask = (1<<pos) - 1;\n\t\t\treturn num & mask;\n\t\t}", "public static int clearBitsUpToMS(int n, int i) {\n return n & (1<<i)-1;\n }", "public int updateBit(int i,int j, boolean set){\n int value=(set)?1:0;\n int mask=~(1<<j);\n int clear=mask&i;\n return clear|(1<<value);\n\n}", "public static int flipBit(int value, int bitIndex) {\n\n// value = value ^ (1<<(bitIndex-1));\n\n return value ^ (1<<(bitIndex-1)); // put your implementation here\n }", "static int setBit(int num, int pos) {\n\t\t\treturn num | (1<<pos);\n\t\t}", "private static int mask(int bit) {\n return MSB >>> bit;\n }", "static int toggleBit(int n, int pos){\n return n ^ (1<<pos);\n }", "public void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getValue() - 1 ));\n\t\t\n\t}", "public int bitAt(int i) {\n // PUT YOUR CODE HERE\n }", "public MutableInt() {}", "int nextBits(int bits);", "public MutableInt(int newval) {\n value = newval;\n }", "void setInt(boolean reverse, IntsRef ref, int value);", "public static int setFlag(final int intValue, Bits bit, final boolean condition) {\n if (condition) {\n return intValue | bit.getMask();\n } else {\n return intValue & ~bit.getMask();\n }\n }", "public void resetCarry() {\n\t\tset((byte) (get() & ~(1 << 4)));\n\t}", "public int setBit(int i, int j){\n return (i|(1<<j));\n }", "public static int superFastRandomInt(){\n\t\tint x = (randByte << 1);\n\t\tint y = (randByte >>> 1);\n\t\treturn (randByte = x ^ ~y) & 0xFF;\n\t}", "private static int setBits(int n) {\r\n int highestBitValue = 1;\r\n int c = 0;\r\n\r\n while (highestBitValue < n) {\r\n highestBitValue = highestBitValue * 2;\r\n }\r\n\r\n \r\n int currentBitValue = highestBitValue;\r\n while (currentBitValue > 0) {\r\n if (currentBitValue <= n) {\r\n\r\n n -= currentBitValue;\r\n c++;\r\n }\r\n currentBitValue = currentBitValue / 2;\r\n }\r\n\r\n return c;\r\n }", "int next(int bits);", "static int isolateBit(int n){\n return n & (-n);\n }", "public static int cleanBitsIthrough0(int num, int i) {\n int mask = (-1 << (i + 1));\n return num & mask;\n }", "void reset(int id);", "private final int initializeInt() {\n\t\treturn 0;\r\n\t}", "public void flip(int bitIndex);", "private native int reset0(byte[] atr);", "public int reverseBits(int n) {\n\n return 1;\n }", "public int reverseBits(int n) {\n return Integer.reverse(n);\n }", "private static int getMaskAsInt(int nrBits) {\n return 0xFFFFFFFF >>> (32 - nrBits);\n }", "private int setNibble(int num, int data, int which, int bitsToReplace) {\n return (num & ~(bitsToReplace << (which * 4)) | (data << (which * 4)));\n }", "public static int flipBits(int a) {\n if(~a == 0)\n return Integer.SIZE;\n int maxlen=0, currlen=0, prevlen=0;\n\n while(a != 0) {\n if((a&1) == 1) {\n currlen++;\n } else if((a&1) == 0) {\n prevlen = (a&2) == 0 ? 0 : currlen;\n currlen=0;\n }\n maxlen = Math.max(currlen + prevlen + 1, maxlen);\n a >>>= 1;\n }\n return maxlen;\n }", "public void setBitToZero(int k) {\n if (this.inBitRange(k)) {\n int i = k / 8;\n int j = k % 8;\n int b = this.data.get(i);\n int c = ~(1 << (7 - j));\n b = b & c;\n byte d = (byte) b;\n this.data.set(i, d);\n }\n }", "public static byte set(byte value, int bit){\n return (byte)(value|(1<<bit));\n }", "public int clearBit(int i,int j){\n int mask=~(1<<j);\n return i&mask;\n }", "public void reset() {\n bytes.reset();\n bytes.readVariableLengthInt();\n }", "private void setInt(byte [] buffer, int offset, int value) {\r\n\t\tbuffer[offset++] = (byte)((value & 0xFF000000) >>> 24);\r\n\t\tbuffer[offset++] = (byte)((value & 0x00FF0000) >>> 16);\r\n\t\tbuffer[offset++] = (byte)((value & 0x0000FF00) >>> 8);\r\n\t\tbuffer[offset] = (byte)((value & 0x000000FF));\r\n\t}", "public void reset(){\n value = 0;\n }", "private static int runStateOf(int c) { return c & ~CAPACITY; }", "private long mask(int n) {\n\t\treturn 1L << n;\n\t}", "public void clear()\n\t{\n\t\tbitHolder.setValue(0);\n\t}", "public void resetSubtraction() {\n\t\tset((byte) (get() & ~(1 << 6)));\n\t}", "protected void setAll() {\n for (int i=0; i <= (Numbers.INTEGER_WIDTH*8-2); i++) {\n \tthis.setBitAt(i);\n } \t\n }", "void set(int i, int val) {\n int numPosition = i / MAX_BITS;\n int intPosition = i % MAX_BITS;\n\n if (val == 1)\n values[numPosition] |= (1 << intPosition);\n else\n values[numPosition] = values[numPosition]&~(1 << intPosition);\n }", "private static synchronized int nextMask() {\n return (int) Math.pow(2, maskCount++);\n }", "public static long setBit(long value, int pos) {\n pos--;\n return value | (1L << pos);\n\n }", "public Builder clearIntSize() {\n bitField0_ = (bitField0_ & ~0x00000004);\n intSize_ = fi.kapsi.koti.jpa.nanopb.Nanopb.IntSize.IS_DEFAULT;\n onChanged();\n return this;\n }", "private static int xorShift(int r) {\n r ^= r << 1;\n r ^= r >>> 3;\n r ^= r << 10;\n return r;\n }", "private static int toggle(int bitVector, int index) {\n\t\tif(index < 0)\n\t\t\treturn bitVector;\n\t\t\n\t\tint mask = 1 << index;\n\t\tif((bitVector & mask) == 0) {\n\t\t\tbitVector |= mask;\n\t\t}else {\n\t\t\tbitVector &= ~mask;\n\t\t}\n\t\t\n\t\treturn bitVector;\n\t}", "private static int setBit(int ci, int bo, int newBit) {\n int clearMask = ~(1 << bo);\n int ciWithBitCleared = ci & clearMask;\n int bitMask = newBit << bo;\n int xiWithNewBitSet = ciWithBitCleared | bitMask;\n return xiWithNewBitSet;\n }", "public static int unmask(int maskedCrc) {\n int rot = maskedCrc - MASK_DELTA;\n return ((rot >>> 17) | (rot << 15));\n }", "public void reset() {\n\t\tinit(0, 0, 1, false);\n\t}", "protected void clearBitAt(final int bitIndex) {\n _bitMap = _clearBit(_bitMap,\n \t\t\t\t\t(Numbers.INTEGER_WIDTH*8-1)-bitIndex-1);\n }", "public void reset(){\r\n \tdefaultFlag = false;\r\n }", "protected void setBitAt(final int bitIndex) {\n _bitMap = _setBit(_bitMap,\n \t\t\t\t (Numbers.INTEGER_WIDTH*8-1)-bitIndex-1);\n }", "public static int bitSetter0(int x, int k) {\n\t\tint bitSetter = 1 << k;\n\t\tbitSetter = ~bitSetter;\n\t\tx = x & bitSetter;\n\t\treturn x; // x's kth bit\n\t}", "public void alt_SET(int src)\n { set_bytes((int)(src) & -1L, 4, data, 14); }", "@Override\r\n\tpublic Buffer setUnsignedInt(int pos, long i) {\n\t\treturn null;\r\n\t}", "public void alt_SET(int src)\n { set_bytes((int)(src) & -1L, 4, data, 24); }", "private int getLowTenBitNumber(int num) {\n return num & 1023;\n }", "protected void setBit(long bitIndex) {\r\n\t long intIndex = (bitIndex >>> ADDRESS_BITS_PER_UNIT);\r\n\t bits[(int)(intIndex / ONE_MB_INTS)][(int)(intIndex % ONE_MB_INTS)] \r\n\t |= 1 << (bitIndex & BIT_INDEX_MASK);\r\n\t }", "private void resetMask() {\n maskArray = new int [][]{\n {0,0,0,0},\n {0,0,0,0},\n {0,0,0,0},\n {0,0,0,0}\n };\n }", "void setBit(int index, boolean value);", "public void ResetCounter()\r\n {\r\n counter.setCurrentValue(this.startValue);\r\n }", "public int reverseBits6(int n) {\n return Integer.reverse(n); \n }", "public void clearBits()\r\n {\r\n clear();\r\n }", "private void _setUnshifted ()\r\n {\r\n m_bBase64mode = false;\r\n m_nBitsRead = 0;\r\n m_nTempChar = 0;\r\n }", "public ByteBuf setInt(int index, int value)\r\n/* 289: */ {\r\n/* 290:304 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 291:305 */ return super.setInt(index, value);\r\n/* 292: */ }", "public void\t\tset(int val) { value = val; }", "public void reset () {\n input = 0;\n }", "public int setValue (int val);", "@Override\r\n\tpublic Buffer setInt(int pos, int i) {\n\t\treturn null;\r\n\t}", "public ByteBuf setInt(int index, int value)\r\n/* 476: */ {\r\n/* 477:490 */ ensureAccessible();\r\n/* 478:491 */ _setInt(index, value);\r\n/* 479:492 */ return this;\r\n/* 480: */ }", "void invertAllBits();", "public static byte setBit(byte input, int position, boolean val){\n return val? (byte) (input | (1 << position)):(byte) (input & ~(1 << position));\n }", "public void reset(int initValue) {\n\t\tfor (int col = 0; col < this.width; col++) {\n\t\t\tfor (int row = 0; row < this.height; row++) {\n\t\t\t\tthis.bitmap[col][row] = initValue;\n\t\t\t}\n\t\t}\n\t}", "public void set(int value)\n {\n set(value, true);\n }", "public static int getLeftMostSetBitPosition(int integer){\n\t\t\n\t\tint ret = -1 ;\n\t\tif(integer < 0){\n\t\t\treturn Integer.SIZE -1 ;\n\t\t}\n\t\t\n\t\twhile(integer > 0){\n\t\t\tret++;\n\t\t\tinteger = integer >> 1;\n\t\t}\n\t\t\n\t\treturn ret ;\n\t\t\n\t}", "public int setValue(int value) {\n\t\tthis.value = value;\n\t\treturn 0;\n\t}", "IntExpression explicitMask(Expression p) {\n\t\treturn ones.shl(implicitMask(p));\n\t}", "void reset() {\r\n\t\tresult = 0;\r\n\t}", "public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}", "public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}", "void setCollideBits (long bits);", "public void reset()\n {\n current = 0;\n highWaterMark = 0;\n lowWaterMark = 0;\n super.reset();\n }", "public int[] reset() \n {\n return reset;\n }", "public void unAssign(){\n\t\tthis.value = 0;\n\t}" ]
[ "0.65232813", "0.64333403", "0.61567646", "0.61094004", "0.6106405", "0.6029041", "0.59902966", "0.594358", "0.5937", "0.59243244", "0.59106344", "0.5891002", "0.5853839", "0.5850886", "0.58491296", "0.5809278", "0.5788916", "0.57883465", "0.5786367", "0.57710886", "0.5751155", "0.56986076", "0.5660059", "0.565102", "0.5632684", "0.5630011", "0.5596745", "0.5587695", "0.558733", "0.55641973", "0.55415416", "0.5531825", "0.55084676", "0.55008805", "0.548948", "0.5480547", "0.5479715", "0.5478905", "0.5475316", "0.546821", "0.5462183", "0.5455732", "0.5436052", "0.53968126", "0.53933233", "0.5360902", "0.53467065", "0.5334669", "0.5317194", "0.5313289", "0.5311936", "0.53062785", "0.52893144", "0.5288866", "0.52681756", "0.52681756", "0.52594197", "0.52538663", "0.5253335", "0.5248786", "0.5248516", "0.52462155", "0.5238965", "0.5237539", "0.5234584", "0.5232817", "0.5223964", "0.52125996", "0.51962686", "0.5182635", "0.5160609", "0.5149059", "0.51429826", "0.512837", "0.51265824", "0.512568", "0.51226646", "0.511808", "0.5100701", "0.50853944", "0.50850534", "0.5082539", "0.50714254", "0.50706625", "0.5070222", "0.50588864", "0.50577766", "0.5046172", "0.50454897", "0.504207", "0.5034284", "0.5032151", "0.50288695", "0.5028461", "0.5014364", "0.5014364", "0.5013875", "0.5003435", "0.50027007", "0.50019765" ]
0.6391264
2
Returns an int's bit value
public static boolean _getBit(final int integer,final int bitIndex) { return ((integer & _getMask(bitIndex)) != 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getBitAsInt(int index);", "public static int getBit(boolean value) {\n return value ? Constants.BIT_TRUE : Constants.BIT_FALSE;\n }", "public int getBit() {\r\n return _bit;\r\n }", "boolean getBit(int index);", "public int bitAt(int i) {\n // PUT YOUR CODE HERE\n }", "private int bitToInt(char bit) {\n return bit == '0' ? 0 : 1;\n }", "private int getBit(int value, int k) {\r\n\t\treturn (value >> k) & 1;\r\n\t}", "public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}", "public static int getBit(byte input,int position){\n return (input >> position) & 1;\n }", "int getIntBitLength() {\r\n\t\treturn intBitLength;\r\n\t}", "public static Integer getBit(byte input, int position){\n return ((input >> position) & 1);\n }", "public int getBit(int columnIndex) {\n BitVector vector = (BitVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }", "public static byte getMybit(byte val, int pos){\n return (byte) ((val >> pos) & 1);\n }", "public static int getBit(byte b,int position)\n\t{\n\t return ((b >> position) & 1);\n\t}", "public int getValue()\n\t{\n\t\treturn bitHolder.getValue();\n\t}", "int get(int i) {\n int numPosition = i / MAX_BITS;\n int intPosition = i % MAX_BITS;\n long val = values[numPosition] & (1 << intPosition);\n return (int) (val >> intPosition);\n }", "public int getBit(String columnName) {\n BitVector vector = (BitVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }", "int getIntFromBitFlag(int flag) {\r\n\t\tswitch (flag) {\r\n\t\tcase 1:\r\n\t\t\treturn 1;\r\n\t\tcase 2:\r\n\t\t\treturn 2;\r\n\t\tcase 3:\r\n\t\t\treturn 4;\r\n\t\tcase 4:\r\n\t\t\treturn 8;\r\n\t\tcase 5:\r\n\t\t\treturn 16;\r\n\t\tcase 6:\r\n\t\t\treturn 32;\r\n\t\tcase 7:\r\n\t\t\treturn 64;\r\n\t\tcase 8:\r\n\t\t\treturn 128;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"No flag specified in BaseRobot.getIntFromBitFlag\");\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}", "private static int toInt(boolean b) {\n return b ? 1 : 0;\n }", "public static int getBitMask(int x) {\n return (0x01 << x);\n }", "boolean getBit(int bitIndex) {\r\n return bits.get(bitIndex);\r\n }", "public long bits() {\n\t\tlong x = n;\n\t\tif (x > 0) {\n\t\t\tlong msw = get(x - 1) & 0xffffffffL;\n\t\t\tx = (x - 1) * BPU;\n\t\t\tx = x & 0xffffffffL;\n\t\t\tlong w = BPU;\n\t\t\tdo {\n\t\t\t\tw >>= 1;\n\t\t\t\tif (msw >= ((1 << w) & 0xffffffffL)) {\n\t\t\t\t\tx += w;\n\t\t\t\t\tx = x & 0xffffffffL;\n\t\t\t\t\tmsw >>= w;\n\t\t\t\t}\n\t\t\t} while (w > 8);\n\t\t\tx += bittab[(int) msw];\n\t\t\tx = x & 0xffffffffL;\n\t\t}\n\t\treturn x;\n\t}", "static int isolateBit(int n){\n return n & (-n);\n }", "int nextBits(int bits);", "public int bitAt(int i) {\n return Integer.parseInt(String.valueOf(lfsr1.charAt(i)));\n }", "private static int mask(int bit) {\n return MSB >>> bit;\n }", "private int getLowTenBitNumber(int num) {\n return num & 1023;\n }", "public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}", "private static int getBit(int pack, int pos) {\n\t\treturn (pack & (1 << pos)) != 0 ? 1 : 0;\n\t}", "public int intValue();", "public static int bit(byte[] h, int i) {\n return (h[i >> 3] >> (i & 7)) & 1;\n }", "abstract boolean testBit(int index);", "public int getInt(){\n return new BigInteger(this.value).intValue();\n }", "boolean hasIntValue();", "int intValue();", "public long getUInt() { return bb.getInt() & 0xffff_ffffL; }", "int next(int bits);", "static boolean getBit(int num, int pos) {\n\t\t\treturn ((num & (1<<pos)) != 0) ;\n\t\t}", "private static int getMaskAsInt(int nrBits) {\n return 0xFFFFFFFF >>> (32 - nrBits);\n }", "public static int setBit(final int intValue, final Bits bit) {\n return setFlag(intValue, bit, true);\n }", "private int intLength() {\n return (bitLength() >>> 5) + 1;\n }", "long getFlags();", "boolean hasInt();", "public static long getUnsignedInt(int x) {\n return x & 0x00000000ffffffffL;\n }", "public Tribit getBit(int bit){\n MathUtils.assertInRange(bit, 0, LENGTH - 1);\n return value[bit];\n }", "public int bits() {\n return mat.getType().getBits();\n }", "public int getFlags();", "public int getFlags();", "private int signBit() {\n return signum < 0 ? 1 : 0;\n }", "public int getInteger(int index)\r\n\t{\r\n\t\tint i = 0;\r\n\r\n\t\t// Calculate the needed size and offset of the int within the binary string.\r\n\t\tint size = intSize - (signedInt ? 1 : 0);\r\n\t\tint offset = intSize * index;\r\n\r\n\t\t// This loop uses simple bit operations to turn the boolean array into an int.\r\n\t\tfor (int a = 0; a < size; a++)\r\n\t\t\ti |= (binary[a + offset] ? 1 : 0) << a;\r\n\r\n\t\t// If the int is signed, flip the value based on the state of the last binary\r\n\t\t// bit.\r\n\t\tif (signedInt)\r\n\t\t\tif (binary[intSize - 1 + offset])\r\n\t\t\t\ti = -i;\r\n\r\n\t\treturn i;\r\n\t}", "int intOf();", "static int bitLengthForInt(int n) {\n return 32 - Integer.numberOfLeadingZeros(n);\n }", "protected boolean getBit(long bitIndex) {\r\n\t long intIndex = (bitIndex >>> ADDRESS_BITS_PER_UNIT);\r\n\t return ((bits[(int)(intIndex / ONE_MB_INTS)][(int)(intIndex % ONE_MB_INTS)] \r\n\t & (1 << (bitIndex & BIT_INDEX_MASK))) != 0);\r\n\t }", "int getBitPosition() {\r\n\t\treturn bitPosition;\r\n\t}", "public int getOneof1111() {\n if (hugeOneofCase_ == 1111) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "public Boolean int_to_boolean(int arg){\r\n\t\tif (arg == 1)\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}", "protected boolean bitAt(final int bitIndex) {\n return _getBit(_bitMap,\n \t\t\t (Numbers.INTEGER_WIDTH*8-1)-bitIndex-1);\n }", "public final int getInt()\n {\n return intValue;\n }", "private int getIntegerValueByBitMap(LinkedHashMap<String, Integer> bitMap) {\r\n\t\r\n\tint identityInfoValue = 0;\r\n if(bitMap != null && bitMap.size() > 0) {\r\n \tStringBuilder sb = new StringBuilder();\r\n \t\r\n \tsb.append(bitMap.get(ProjectConstants.Asia)).append(bitMap.get(ProjectConstants.Korea)).append(bitMap.get(ProjectConstants.Europe))\r\n \t.append(bitMap.get(ProjectConstants.Japan)).append(bitMap.get(ProjectConstants.America));\r\n \r\n \tif(sb != null) {\r\n \t\t int num = Integer.parseInt(sb.toString().replaceFirst(\"^0+(?!$)\", \"\"));\r\n \t\t identityInfoValue = convertBinaryToDecimal(num);\r\n \t}\r\n }\r\n return identityInfoValue;\r\n}", "public BitField getBitField(){\n \treturn bitField;\n }", "public int get_int_value()\n\t{\n\t\treturn this.int_value;\n\t}", "public byte getBit(int k) {\n if (this.inBitRange(k)) {\n int i = k / 8;\n int j = k % 8;\n int b = this.data.get(i);\n return (byte) ((b >> j) & 1);\n }\n return 0;\n }", "public int getOneof1111() {\n if (hugeOneofCase_ == 1111) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "String intToBinaryNumber(int n){\n return Integer.toBinaryString(n);\n }", "private static int _getMask(final int bitIndex) {\n return (1 << bitIndex);\n }", "private static byte int2(int x) { return (byte)(x >> 16); }", "private boolean getBit(int index) {\n int blockIndex = index / 32;\n int bitIndex = index % 32;\n return (data[blockIndex] & (1 << bitIndex)) != 0;\n }", "public int getFlags() {\n Object value = library.getObject(entries, FLAGS);\n if (value instanceof Number) {\n return ((Number) value).intValue();\n }\n return 0;\n }", "public interface BitField {\n\n /**\n * @return the size of the field\n */\n int size();\n\n /**\n * set all values of the BitField with the rightmost value being index 0 (LSB).\n * example set(0,0,0,1) would set bit0 == 1 and bit3 == 0\n *\n * @param values the values to set the BitField (only 0 and 1 are accepted)\n * @return the BitField\n */\n void setBits(int... values);\n\n /**\n * set a given bit in the field\n *\n * @param index\n * @param value true == 1, false == 0\n * @throws IndexOutOfBoundsException if you try to set a bit greater than the size of the field\n */\n void setBit(int index, boolean value);\n\n /**\n * set a given bit in the field\n *\n * @param index\n * @param value (only 0 and 1 are accepted)\n * @throws IndexOutOfBoundsException if you try to set a bit greater than the size of the field\n */\n void setBit(int index, int value);\n\n /**\n * replace all values of the bitfield with this integer value\n *\n * @param val\n * @return\n */\n void setToValue(int val);\n\n /**\n * invert all the bits\n */\n void invertAllBits();\n\n /**\n * get a given bit as a boolean\n *\n * @param index\n * @return a boolean for the bit (true == 1, false == 0)\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n boolean getBit(int index);\n\n /**\n * get a given bit as a 0 or 1\n *\n * @param index\n * @return a value for the bit (1 == 1, 0 == 0)\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n int getBitAsInt(int index);\n\n /**\n * get the field as an integer\n *\n * @return the int value of the bitfield\n */\n int intValue();\n\n /**\n * return a nice string representation of the field\n *\n * @return\n */\n String asString();\n\n /**\n * get the LSBs of the BitField (if possible)\n *\n * @param digits the number of LSBs to return\n * @return a new BitField of the LSBs\n */\n BitField getLSBs(int digits);\n\n /**\n * get the MSBs of the BitField (if possible)\n *\n * @param digits the number of MSBs to return\n * @return a new BitField of the MSBs\n */\n BitField getMSBs(int digits);\n\n /**\n * return a new BitField. Inclusive\n *\n * @param from index of the from (0==LSB)\n * @param to index of the to (max is the size-1 of the field)\n * @return a new BitField of the chosen bits\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n BitField getSubField(int from, int to);\n\n /**\n * return a new BitField. Inclusive\n *\n * @param from index of the from (0==LSB)\n * @param to index of the to (if > size then we pad with 0's)\n * @return a new BitField of the chosen bits\n * @throws IndexOutOfBoundsException if you ask for a bit our of range\n */\n BitField getSubFieldWithPadding(int from, int to);\n\n /**\n * a convenience method to add to the LS Bits of the BitField.\n * this will resize the BitField, shift everything to the left and insert\n * the new BitField\n *\n * @param fieldToAddToTheRight\n */\n void shiftAndAddToRight(BitField fieldToAddToTheRight);\n\n /**\n * shift to the left and pad the new LSBs with 0's\n *\n * @param numberToShift the number of bits to shift\n */\n void shiftLeft(int numberToShift);\n\n /**\n * shift to the right and have the LSBs dissapear\n *\n * @param numberToShift the number of bits to shift\n */\n void shiftRight(int numberToShift);\n\n /**\n * resize, but trimming/adding to the MSB side\n * <p>\n * if newSize > currentSize, we pad with 0's on the MSBs\n * if newSize < currentSize, we simply drop the bits on the left\n *\n * @param newSize the new size of the BitField\n */\n void resize(int newSize);\n\n /**\n * copy the BitField\n *\n * @return a copy of the bitField\n */\n BitField copy();\n\n /**\n * convert the bit field and return as a collection of bytes made up from the BitField from the LSB to the MSB. Padding in the MSB if needed\n * (byte == 8 bits).\n * <p>\n * For example:\n * 00001000 would return a list with a single byte value of 8\n * 1000001000 would return a list with the first value being a byte with a value of 8, then one with a value of 2\n *\n * @return a collection with the LSB in position 0 and the MSB as the last value\n */\n List<Byte> getAsBytes();\n\n}", "boolean bitSet(int p, int b) // check if int p bit b is 1\n {\n return ((p>>b) & 1)>0;\n }", "public static int method_2686(int var0) {\r\n return var0 & 7;\r\n }", "public int getOneof1110() {\n if (hugeOneofCase_ == 1110) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "IntsRef getFlags();", "int getIntValue();", "public int getOneof1110() {\n if (hugeOneofCase_ == 1110) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "private int readbit(ByteBuffer buffer) {\n if (numberLeftInBuffer == 0) {\n loadBuffer(buffer);\n numberLeftInBuffer = 8;\n }\n int top = ((byteBuffer >> 7) & 1);\n byteBuffer <<= 1;\n numberLeftInBuffer--;\n return top;\n }", "public int getFlags() {\n return ByteUtils.toUnsignedShort(flags);\n }", "int getFlag();", "public static int binaryToGray(int num) { return (num >>> 1) ^ num; }", "public static byte set(byte value, int bit){\n return (byte)(value|(1<<bit));\n }", "public int getOneof1101() {\n if (hugeOneofCase_ == 1101) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "private int byteToInt(byte b) { int i = b & 0xFF; return i; }", "Integer getValue();", "Integer getValue();", "public static int negative(int b) {\n return (b >> 8) & 1;\n }", "public boolean hasIntValue() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "private byte[] intToBits(int number, int n) {\n\t\tbyte[] bits = new byte[n];\n\t\t\n\t\tString bitString = Integer.toBinaryString(number);\n\t\twhile (bitString.length() < n) {\n\t\t\tbitString = \"0\" + bitString;\n\t\t}\n\t\t\n\t\tfor(int i = 0, maxLen = bits.length; i < maxLen; i++) {\n\t\t\tbits[i] = (byte) (bitString.charAt(i) == 1 ? 1 : 0);\n\t\t}\n\t\t\n\t\treturn bits;\n\t}", "void setBit(int index, int value);", "public int getOneof1010() {\n if (hugeOneofCase_ == 1010) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "public int getOneof1011() {\n if (hugeOneofCase_ == 1011) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "public static int toUnsignedByte(final int intValue) {\n return intValue & BYTE_MASK;\n }", "public int getInt(int index) {\n if (index < 0 || index >= size) {\n throw new IndexOutOfBoundsException(\"Invalid index: \" + index);\n }\n\n int startIndex = index * bitNum;\n int blockIndex = startIndex / BLOCK_SIZE;\n int bitIndex = startIndex % BLOCK_SIZE;\n int x = vector[blockIndex];\n\n x >>>= bitIndex;\n int b = Math.min(bitNum, BLOCK_SIZE - bitIndex);\n x &= (1 << b) - 1;\n\n if (b < bitNum) {\n x |= vector[blockIndex + 1] << b;\n x &= (1 << bitNum) - 1;\n }\n\n return x;\n }", "public int getOneof1101() {\n if (hugeOneofCase_ == 1101) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "private boolean intToBoolean(int arg) {\n\t\tif (arg == 0) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "int boolToInt(boolean a) {\n return Boolean.compare(a, false);\n }", "public boolean hasIntValue() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public static int getBitMask(int[] x) {\n int rc = 0;\n for(int xVal : x) {\n rc |= getBitMask(xVal);\n }\n\n return rc;\n }", "public abstract int getBitSize();", "public int getOneof1010() {\n if (hugeOneofCase_ == 1010) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "int bv(byte b) {\n\t\tint out = b;\n\t\tif (b < 0)\n\t\t\tout = out + 256;\n\t\treturn out;\n\t}" ]
[ "0.80813444", "0.7328916", "0.7324428", "0.7241061", "0.71657276", "0.699315", "0.6892306", "0.6796142", "0.67024684", "0.6664218", "0.66375494", "0.6588582", "0.6567528", "0.65455246", "0.6523341", "0.65045834", "0.64842844", "0.6422738", "0.6316979", "0.6267726", "0.6257089", "0.62544394", "0.6237724", "0.621238", "0.6157911", "0.61283773", "0.6118997", "0.6106413", "0.6077256", "0.60339296", "0.6029455", "0.600336", "0.5991431", "0.5988628", "0.59721184", "0.5971459", "0.59659475", "0.59648", "0.5963621", "0.59500605", "0.59471804", "0.5944836", "0.5944634", "0.59201974", "0.5904939", "0.5899791", "0.5897171", "0.5897171", "0.5891581", "0.5879582", "0.5876413", "0.5870237", "0.5868144", "0.58637726", "0.5839106", "0.5839062", "0.5811986", "0.5809928", "0.5805786", "0.5803966", "0.5802363", "0.57955766", "0.5789449", "0.57774854", "0.57768214", "0.57674533", "0.5743243", "0.57427716", "0.57324755", "0.5731794", "0.5730194", "0.5729521", "0.5706705", "0.57043827", "0.56792486", "0.5678234", "0.56724614", "0.56688434", "0.5665722", "0.5651989", "0.5647766", "0.5647025", "0.5644741", "0.5644741", "0.5631062", "0.5631016", "0.56279814", "0.56183773", "0.5615323", "0.5614513", "0.5605532", "0.56051314", "0.560062", "0.5595291", "0.5593529", "0.5584641", "0.5567899", "0.5562744", "0.55618656", "0.55584335" ]
0.6130962
25
Created by E003690 on 3/15/2018.
public interface InventoryPageOR { String inventoryPage = "xpath= //div[@class='NavMenuTitle']//span[text()='Inventory']"; String aD_type = "xpath= //select[contains(@id,'AdType_DropDownList1')]"; String mediaGroupField = "xpath= //select[contains(@id,'MediumGroup_DropDownList1')]"; String Mediabox = "xpath= //select[contains(@id,'Media_ListBox1')]"; String selection = "xpath= //select[contains(@id, 'Section_ListBox1')]"; String inventory_placement = "xpath= //select[contains(@id, 'Inventory_ListBox1')]"; String period = "xpath= //select[contains(@id,'BkingPeriod_ddlPeriod')]"; String pages = "xpath= //input[contains(@id,'blInventoryView_1')]"; String matrix = "xpath= //input[@id='ctl00_cphMain_srch03_rblInventoryView_0']"; String list = "css= #ctl00_cphMain_srch02_rblInventoryView_2"; String Adsize = "xpath= //select[contains(@id,'AdSize_DropDownList1')]"; String get_inventory = "xpath= //input[contains(@id,'btnGetInventory')]"; String mediatype = "xpath= //select[@id='ctl00_cphMain_srch01_lbMedia_ListBox1']//option[@value='GAZE']"; String newSearch = "css= input[value='New Search']"; String screenlock = "css= .inv_wait"; String selectplusiconforbydate = "xpath= //td[@class='%s']/../..//input[@class='InvResultCol Select linkButton new']"; String housingGarden = "css= tr [title = 'www.houseandgarden.com']"; String startAndEnddate = "xpath= //tr[@title = 'www.houseandgarden.com']/..//tr[@title='www.houseandgarden.com - Run of Site']/td[%d]"; String startAndEnddateofbridge = "xpath= //tr[@title = 'www.bridesmagazine.com']/..//tr[@title='www.bridesmagazine.com - Run of Site']/td[%d]"; String verifyIteminCart = "css= #tabs-li-cart a#acart"; String addtoCart = "xpath= //li//a[contains(text(), 'Add to cart')]"; String torange = "css= #ctl00_cphMain_srch02_ucBkingPeriod_dteRangeTo_iwdcDate_input"; String customer = "css= #ctl00_cphMain_ucCart_btnCustomer"; String companyName = "css= #ctl00_cphMain_ucCustomer_ctlModalBuyerCompany_btnModal"; String contactName = "css= #ctl00_cphMain_ucCustomer_ctlModalBuyerContact_btnModal"; String companyNameField = "css= #Search_FieldSelect0_txtValue1"; String searchButton = "css= #Search_GoButton"; String selectCompany = "css= .ig_5aac757b_rcb1112.SelectionSearch.btnOpenSite"; String selectContact = "css= .ig_5aac757b_rcb1112.SelectionSearch.btnOpenContact"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo38117a() {\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo4359a() {\n }", "@Override\n protected void getExras() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public void init() {\n\n }", "private TMCourse() {\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public final void mo91715d() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n void init() {\n }", "public Pitonyak_09_02() {\r\n }", "@Override\n public void init() {}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void anular() {\n\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}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo12628c() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\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}", "public void mo1531a() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "public void mo12930a() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "Petunia() {\r\n\t\t}", "private void init() {\n\n\t}", "@Override\n public String toString() {\n return \"\";\n }", "protected void mo6255a() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n\tprotected void initdata() {\n\n\t}" ]
[ "0.5865982", "0.5828907", "0.5669976", "0.5563989", "0.55215126", "0.5511393", "0.5498422", "0.54899657", "0.54899657", "0.5472931", "0.54459053", "0.5442565", "0.54342717", "0.54167277", "0.5398931", "0.53987837", "0.5395283", "0.5391924", "0.5380419", "0.5351675", "0.5350224", "0.5348042", "0.53372365", "0.53353375", "0.5335067", "0.5332266", "0.5328039", "0.5328039", "0.5328039", "0.5328039", "0.5328039", "0.5328039", "0.5327219", "0.53172964", "0.5306295", "0.53059864", "0.5301824", "0.52963257", "0.5289646", "0.5289646", "0.5289646", "0.5289646", "0.5289646", "0.5278227", "0.5267837", "0.5266804", "0.52647656", "0.5252427", "0.5252427", "0.5242662", "0.5242662", "0.5242662", "0.5242662", "0.5242662", "0.5242662", "0.5242662", "0.523493", "0.5232998", "0.52329457", "0.52307945", "0.52287227", "0.52268445", "0.5220327", "0.5220327", "0.52172875", "0.5207761", "0.5207761", "0.5207761", "0.51994866", "0.51896983", "0.5189631", "0.5189631", "0.5189631", "0.51853305", "0.516748", "0.51667166", "0.5160013", "0.5160013", "0.51575625", "0.51531166", "0.51511246", "0.51422966", "0.5130811", "0.5129693", "0.5129489", "0.51282996", "0.51281637", "0.51281023", "0.5119285", "0.51165736", "0.5114267", "0.5111381", "0.51032645", "0.509902", "0.5097032", "0.50940615", "0.50901926", "0.50901926", "0.50901926", "0.50898683", "0.50855476" ]
0.0
-1
write your code here
public static void main(String[] args) { Individuos individuo1 = new Individuos("Mike Courts",1511111111,33786890,"Doblas 528"); Empresa empresa1 = new Empresa("Tiarg", 1522222222, 3333333, 20, "Belgrano"); Diario MonroeStreetJournal = new Diario(); MonroeStreetJournal.agregarReceptor(individuo1); MonroeStreetJournal.agregarReceptor(empresa1); MonroeStreetJournal.notificarReceptores(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void ganar() {\n // TODO implement here\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "CD withCode();", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void genCode(CodeFile code) {\n\t\t\n\t}", "public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void baocun() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public void furyo ()\t{\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void themesa()\n {\n \n \n \n \n }", "Programming(){\n\t}", "@Override\n\tvoid output() {\n\t\t\n\t}", "private void yy() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }", "private void kk12() {\n\n\t}", "public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}", "public static void main(String[] args) {\n\t// write your code here\n }", "private static void ThridUmpireReview() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}", "@Override\r\n\t\tpublic void doDomething() {\r\n\t\t\tSystem.out.println(\"I am here\");\r\n\t\t\t\r\n\t\t}", "protected void mo6255a() {\n }", "public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void working()\n {\n \n \n }", "@Override\n\tprotected void postRun() {\n\n\t}", "public void perder() {\n // TODO implement here\n }", "public void smell() {\n\t\t\n\t}", "protected void execute() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void orgasm() {\n\t\t\n\t}", "public void cocinar(){\n\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "protected void execute() {\n\n\n \n }", "@Override\n public void execute() {\n \n \n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "protected void display() {\n\r\n\t}", "private void sout() {\n\t\t\n\t}", "private static void oneUserExample()\t{\n\t}", "public void nhapdltextlh(){\n\n }", "public void miseAJour();", "protected void additionalProcessing() {\n\t}", "private void sub() {\n\n\t}", "@Override\n\tpublic void view() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}", "@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}", "void mo67924c();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n public void run() {\n basicEditor.createEdge(); // replaced Bibianas method with Moritz Roidl, Orthodoxos Kipouridis\r\n }", "public void mo5382o() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public static void main(String[] args)\r\n {\n System.out.println(\"Mehedi Hasan Nirob\");\r\n //multiple line comment\r\n /*\r\n At first printing my phone number\r\n then print my address \r\n then print my university name\r\n */\r\n System.out.println(\"01736121659\\nJamalpur\\nDhaka International University\");\r\n \r\n }", "void kiemTraThangHopLi() {\n }", "public void skystonePos5() {\n }", "public final void cpp() {\n }", "public final void mo51373a() {\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"This is the main class of this project\");\r\n\t\tSystem.out.println(\"how about this\");\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"new push\");\r\n\r\n\t\t//how to update this line\r\n\t\t\r\n\t\tSystem.out.println(\"hello there\");\r\n\r\n\t\tSystem.out.println(\"zen me shuoXXXXXXXXXXXKKKKkKKKKKKXXXXXXXX\");\r\n\r\n\t\tSystem.out.println(\"eventually we succeeded!\");\r\n\t\t//wa!!!\r\n\t\t\r\n\r\n\r\n\t\t//hen shu fu !\r\n\t\t\r\n\t\t//it is a good day\r\n\t\t\r\n\t\t//testing\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"hope it works\");\r\n\t\t\r\n\r\n\t\t\r\n\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}" ]
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.55133164", "0.55123806", "0.55114794", "0.5500045", "0.5489272", "0.5482718", "0.5482718", "0.5477585", "0.5477585", "0.54645246", "0.5461012", "0.54548836", "0.5442613", "0.5430592", "0.5423748", "0.5419415", "0.5407118", "0.54048806", "0.5399331", "0.539896", "0.5389593", "0.5386248", "0.5378453", "0.53751254", "0.5360644", "0.5357343", "0.5345515", "0.53441405", "0.5322276", "0.5318302", "0.53118485", "0.53118485", "0.53085434", "0.530508", "0.53038436", "0.5301922", "0.5296964", "0.52920514", "0.52903354", "0.5289583", "0.5287506", "0.52869135", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.52859664", "0.52849185", "0.52817136", "0.52791214", "0.5278664", "0.5278048", "0.5276269", "0.52728665", "0.5265451", "0.526483", "0.526005", "0.5259683", "0.52577406", "0.5257731", "0.5257731", "0.52560073", "0.5255759", "0.5255707", "0.5250705", "0.5246863", "0.5243053", "0.52429926", "0.5242727", "0.52396125", "0.5239378", "0.5232576", "0.5224529", "0.52240705", "0.52210563", "0.52203166", "0.521787", "0.52172214" ]
0.0
-1
add item to Card with Card.addtoCard method.
@Override public void onClick(View v) { Card.addtoCard(new CardItem(content.get(position).getName(), content.get(position).getDescription(), content.get(position).getPrice(),(long) 1,"None", content.get(position).getPrice())); Toast.makeText(RecycleViewAdapter.this.mContext,"Added to Cart",Toast.LENGTH_LONG).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public void add(Card card) {\n this.cards.add(card);\n }", "public void addCard(Card c){\n cards.add(c);\n }", "public void addCard(Card c)\n {\n cards.add(c);\n }", "public void addCard(Card card) {\r\n\t\tcards.add(card);\r\n\t}", "public void addCard(PlayingCard aCard);", "public void addCard(Card card){\n\t\tthis.pile.add(0, card);\n\t}", "public void addCard(Card card) {\r\n\t\tthis.cards.add(card);\r\n\t}", "public void addPartnerCard(Card card);", "public abstract void addCard();", "public void addCard(Card card) {\n this.deck.push(card);\n }", "public void addCard(Card card) {\n\t\tthis.content.add(card);\n\t}", "public CardView addCard(Card card) {\n return addCard(card, false);\n\n }", "void addCard(Card card) {\n\t\t_hand.addCard(card);\n\t}", "public void addCard(Card card) {\n myCards.add(card);\n cardNumber = myCards.size();// reset the number of cards\n }", "public void addCard(Card e) {\n\t\tthis.deck.add((T) e);\n\t}", "public void addToUse(int card) {\r\n\t\tthis.toUse.add(card);\r\n\t}", "public void addCard(Card cardToAdd) {\n storageCards.add(cardToAdd);\n }", "void add(Item item);", "public void addCard(Card c)\n {\n hand.add(c);\n }", "public void addCard(Card card) {\n personHand.add(card);\n }", "public void AddCard(Card card) {\n mCard[mCardCount++] = card;\n SetCardPosition(mCardCount - 1);\n }", "@Override\n\tpublic boolean addCard(UnoCard card){\n\t\treturn this.cardList.add(card);\n\t}", "public void addCard(Card c) {\r\n\t\thand.add(c);\r\n\t}", "public void push(Card newCard)\n\t{\n\t\tcard.add(newCard);\n\t}", "public void addCard(Card card)\n\t{\n\t\t\n\t\t// Add the new Card to the list\n\t\tcards.add(card);\n\t\t\n\t\t// Remove and re-add all cards\n\t\tsyncCardsWithViews();\n\t\t\n\t}", "public void addToDeck(Card card) {\n\t\tcards.add(card);\n\t}", "void addCpItem(ICpItem item);", "public void add (Card newCard)\n {\n firstLink = new Link(newCard, firstLink);\n }", "private void addCardToDeck(Card card) {\n\t\tdeck.add(card);\n\t}", "private void addCard() {\n Intent intent = new Intent(this, NewCard.class);\n intent.putExtra(\"cardSetId\", cardSetId);\n startActivity(intent);\n }", "public void addCard(Card card) {\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n \r\n ContentValues values = new ContentValues();\r\n values.put(COL_ACCOUNT, card.getAccount()); \r\n values.put(COL_USERNAME, card.getUsername()); \r\n values.put(COL_PASSWORD, card.getPassword()); \r\n values.put(COL_URL, card.getUrl()); \r\n values.put(COL_DELETED, card.getDeleted()); \r\n values.put(COL_HIDE_PWD, card.getHidePwd()); \r\n values.put(COL_REMIND_ME, card.getRemindMe()); \r\n values.put(COL_UPDATED_ON, card.getUpdatedOn()); \r\n values.put(COL_COLOR, String.valueOf(card.getColor()));\r\n values.put(COL_REMIND_ME_DAYS, card.getRemindMeDays());\r\n \r\n db.insert(TABLE_CARDS, null, values);\r\n db.close(); \r\n }", "public void addToDeck(Card c)\r\n\t{\r\n\t\tdeck.add(c);\r\n\t}", "public void addCard(Cards card, boolean canUse) {\n \t\tif (canUse) {\n \t\t\tcards[card.ordinal()] += 1;\n \t\t\tusedCard = false;\n \t\t} else {\n \t\t\tnewCards.add(card);\n \t\t}\n \t}", "public void add(Item item) {\r\n\t\tcatalog.add(item);\r\n\t}", "private void addCard(){\n WebDriverHelper.clickElement(addCard);\n }", "public void addCard(Card c) {\n\t\tthis.hand.addCard(c);\n\t}", "public void addCardToDeck(int index, SpoonsCard card){\r\n\t deck.add(index, card);\r\n }", "void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}", "public abstract void addItem(AbstractItemAPI item);", "public void takeACard(Card card){\n hand.add(card);\n }", "public void addCostItem(CostItem item) throws CostManagerException;", "CatalogItem addCatalogItem(CatalogItem catalogItem);", "private CardView addCard(Card card, boolean silent) {\n CardView cardView = new CardView(card);\n getChildren().add(cardView);\n\n cardViews.add(cardView);\n\n cardView.setParentSet(this);\n\n cardSet.addCard(card);\n\n if (!silent) {\n fireEvent(cardView, CardEvent.CARD_ADDED);\n }\n\n if (interactive) {\n assignEvents(cardView);\n if (!silent) {\n markValidity();\n cardView.setNewcomer(true);\n sort();\n }\n }\n return cardView;\n }", "public void addToHand(PlayingCard card){\n\t\thand.add(card);\n\t}", "private void add(GroceryItem itemObj, String itemName) {\n\t\tbag.add(itemObj);\n\t\tSystem.out.println(itemName + \" added to the bag.\");\n\t}", "public Card push(Card card)\n {\n if (card != null)\n {\n cards.add(card);\n card.setBounds(0, 0, CARD_WIDTH, CARD_HEIGHT);\n add(card, 0);\n }\n \n return card;\n }", "public void add(Card card){\n if (numCards < deckSize - 1) {\n this.deck[numCards] = card;\n numCards++;\n }else {\n System.out.println(\"Deck is full!\");\n }\n }", "public void addCard(int index, Card card)\n\t{\n\t\tcards.add(index, card);\n\t\t\n\t\t// Remove and re-add all cards\n\t\tsyncCardsWithViews();\n\t\t\n\t}", "public void giveCard(Card c){\n\t\thand.add(c);\n\t}", "public void addCard(String cardName) {\n if(isInDeck(cardName)==false){\n cards.add(new Card(cardName));\n System.out.println(\"Added\");\n }else{\n System.out.println(\"Its already in deck\");\n }\n }", "@Override\n\tpublic void addCard(PlayingCard card) {\n\t\t\n\t\t\n\t\tif(card == null)return;\n\t\tif(!(card instanceof SkatCard))return;\n\t\tif(!(card.getSuit().equals(SkatCard.suitHerz)\n\t\t\t\t|| card.getSuit().equals(SkatCard.suitKaro) \n\t\t\t\t|| card.getSuit().equals(SkatCard.suitPik)\n\t\t\t\t|| card.getSuit().equals(SkatCard.suitKreuz)))return;\n\t\tif(!(card.getRank() == SkatCard.rank7\n\t\t\t\t|| card.getRank() == SkatCard.rank8\n\t\t\t\t|| card.getRank() == SkatCard.rank9\n\t\t\t\t|| card.getRank() == SkatCard.rank10\n\t\t\t\t|| card.getRank() == SkatCard.rankBube\n\t\t\t\t|| card.getRank() == SkatCard.rankDame\n\t\t\t\t|| card.getRank() == SkatCard.rankKoenig\n\t\t\t\t|| card.getRank() == SkatCard.rankAss))return;\n\t\tif(getCount() >= kartenAnzahl)return;\n\t\tfor(int i = 0; i < getCount(); i++) {\n\t\t\tif(card.compareTo(aktuellesDeck[i]) == 0)return;\n\t\t}\n\t\t\n\t\t/*\n\t\t * eigentliches addCard\n\t\t */\n\t\taktuellesDeck[getCount()] = card;\n\t\tcount++;\n\t}", "public void addCard(Card card)\n {\n if (card1 == null)\n {\n card1 = card;\n }\n else if (card2 == null)\n {\n card2 = card;\n }\n }", "void pushCard(ICard card);", "public void addToCollected(PlayingCard card){\n\t\tcollected.add(card);\t\t\n\t}", "public void addItem(Item item){\r\n items.add(item);\r\n total = items.getTotal();\r\n }", "public void addToBottom(Card card){\r\n cards.add(card);\r\n deckSize++;\r\n }", "public void addCard(Card card){\r\n\t\tplayerHand.add(card);\r\n\t\tSystem.out.print(\"You draw \");\r\n\t\tSystem.out.println(getCardIndex(playerHand.size()-1));\r\n\t}", "public void insert(Card card) {\n\t\tthis.insert(card);\n\t}", "public int addItem(Item i);", "void addCustomerCard(CardDto cardDto, String name) throws EOTException;", "public void addCard(Deck deck, Card card) {\n deck.cards.add(card);\n }", "public void addProduct(Product item){\n inventory.add(item);\n }", "public void drawCard(Card card) {\n hand.addCard(card);\n }", "public void add(Cards cs) {\r\n\t\tfor (int i = 0; i < cs.getSize(); i++) {\r\n\t\t\tcards.addCard(cs.getCard(i));\r\n\t\t}\r\n\t\tseedCards.add(cs);\r\n\t}", "@Override\r\n\tpublic void addItem(AbstractItemAPI item) {\n\t\titems.add(item);\r\n\t\t\r\n\t}", "private void addCard() { \n\t\tint sic_idHolder; // declares sic_idHolder\n\t\tString titleHolder; // declares titleHolder\n\t\tString authorHolder; // declares authorHolder\n\t\tdouble priceHolder; // declares priceHolder\n\t\tint quantityHolder; // declares quantityHolder\n\t\t\n\t\t\n\t\tSystem.out.println(\"Making a new card:\\nPlease enter the new SIC-ID: \");\n\t\tsic_idHolder = scan.nextInt(); // prompts user to input the ID\n\t\tscan.nextLine();\n\t\t\n\t\tif(inventoryObject.cardExists(sic_idHolder) != true) {\n\t\t\tSystem.out.println(\"Please enter the title of the book: \");\n\t\t\ttitleHolder = scan.next(); // prompts user to input the title\n\t\t\tscan.nextLine();\n\t\t\tSystem.out.println(\"Please enter the author of the book\");\n\t\t\tauthorHolder = scan.next(); // prompts user to input the author\n\t\t\tscan.nextLine();\n\t\t\tSystem.out.println(\"Please enter the price of the book\");\n\t\t\tpriceHolder = scan.nextDouble(); // prompts user to input the price\n\t\t\tscan.nextLine();\n\t\t\n\t\t\tif(priceHolder < 0) { // checks to make sure priceHolder is positive\n\t\t\t\tSystem.out.println(\"ERROR! Price must be greater than or equal to 0:\");\n\t\t\t\tgetUserInfo();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Please enter the number of books in invetory\");\n\t\tquantityHolder = scan.nextInt(); // prompts user to input the quantity\n\t\tscan.nextLine();\n\t\t\n\t\tif(quantityHolder <= 0) { // checks to make sure quantity isn't less than 1\n\t\t\tSystem.out.println(\"Error! Quantity must be greater than 0\\n\"); \n\t\t\tgetUserInfo();\n\t\t}\n\t\tinventoryObject.addStockIndexCard(sic_idHolder, titleHolder, authorHolder, priceHolder, quantityHolder); // calls addStockIndexCard from InventoryManagement\n\t\tgetUserInfo();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"ERROR: The ID you entered is already in the system\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t}", "public boolean addCard(Card card)\n {\n if (numOccurrences(card) >= numPacks)\n return false;\n\n cards[topCard++] = card;\n return true;\n }", "public void addItem(Item item) {\n items.add(item);\n }", "public void addItem(Item item) {\n items.add(item);\n }", "public void addCard(Card newcard)\n\t{\n\t\thand[numCards++] = newcard;\n\t\tscore += newcard.getValue();\n\t}", "public boolean addPlayerItem(PlayerItem playerItem);", "@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"addItem\")\n\tpublic ZuelResult addItem(TbItem item) {\n\t\treturn service.addItem(item);\n\t}", "public void addToDeck(ArrayList<Card> cards)\r\n\t{\r\n\t\tfor (int i = 0; i < cards.size(); i++)\r\n\t\t{\r\n\t\t\tdeck.add(cards.get(i));\r\n\t\t}\r\n\t}", "public void addItem(Carryable g) {\r\n if (numItems < MAX_CART_ITEMS)\r\n cart[numItems++] = g;\r\n }", "public void putCard(Cards cards) {\n playedCards.add(cards);\n }", "public void add(Card c) {\n cards.add(c);\n orginalOrder.add(c);\n cardsPerSuit[c.getSuit().ordinal()]++;\n calculateValue();\n\n }", "private void push( Card card ) {\r\n undoStack.add( card );\r\n }", "void setcard(int i)\n{\n\thc.add(i);}", "public boolean addItem( GameItem gameItem , boolean stack )\n {\n int slot = -1;\n for( int i = 0 ; i < size ; i++ ) {\n GameItem item = items[ i ];\n if( stack ) {\n if( item != null ) {\n if( item.getId() == gameItem.getId() ) {\n item.add( gameItem.getAmount() );\n return true;\n }\n } else {\n if( slot == -1 ) {\n slot = i;\n }\n }\n } else {\n if( item == null ) {\n items[ i ] = gameItem;\n return true;\n }\n }\n }\n \n if( slot != -1 ) {\n items[ slot ] = gameItem;\n return true;\n }\n \n return false;\n }", "public void add(int index, Object item)\n {\n items[index] = item;\n numItems++;\n }", "public boolean add(Type item);", "public void addToHand(int index, Card cardToAdd)\n\t{\n\t\tcurrentHand.add(index, cardToAdd);\n\t}", "public void addItem(Object obj) {\n items.add(obj);\n }", "public void addItem(Item item) {\n _items.add(item);\n }", "public void addCard(Card card, GamePlayer GP){\n for(int i=0; i<4; i++){\n if(cardsPlayed[i] == null){\n cardsPlayed[i]=card;\n if(i == 0){\n suit = card.getSuit();\n }\n break;\n }\n }\n }", "public void addCardToPile(Card c)\r\n {\r\n pile.push(c);\r\n }", "public boolean addCard(Card card) {\n int cardCount = 0;\n //Check to see if the deck already has the maximum number of cards\n //of this type.\n for (Card cardInDeck : this.cards)\n if (cardInDeck.equals(card))\n cardCount++;\n //Return false is the card will not fit, or if it is invalid.\n if (cardCount >= this.numPacks || this.topCard >= this.MAX_CARDS || card.errorFlag)\n return false;\n this.topCard++;\n //Add the card object to the deck.\n this.cards[topCard - 1] = new Card(card);\n return true;\n }", "public Item add(Item item) {\n Item existing = getItem(item.getItemId());\n if (existing != null) {\n return existing.incrementQuantity(item.getQuantity());\n }\n else {\n items.add(item.setCart(this));\n return item;\n }\n }", "public void addItem(SoldItem item) {\n\n items.add(item);\n log.debug(\"Added \" + item.getName() + \" quantity of \" + item.getQuantity());\n\n }", "public void addCardToHand(final Card card) {\n\t\tcahActivity.runOnUiThread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tcahActivity.addCardToHand(card);\n\t\t\t}\n\t\t});\n\t}", "public void addToSale(ItemDTO item, int quantity){\n this.saleInfo.addItem(item, quantity);\n }", "public void addItem(Item item, int x, int y) {\n\t\tInventory items = getItemsAt(x, y);\n\t\titems.add(item);\n\t}", "public void addItem(Item item) {\r\n\t\titems.add(item);\r\n\t}", "public void add (Car car){\n\t\t}", "void addFruit(Fruit item){\n\t\tfruitList.add(item);\n\t}", "public void clickadd_card() \n\t{\n\t\n\t\tdriver.findElement(add_card).click();\n\n }", "public void addItem(Item toAdd) {\n\t\tthis.items.add(toAdd);\n\t}", "void AddCardToBuild(Card_Model passedCard) {\n buildOfCards.add(passedCard);\n }", "void addItem(DataRecord record);" ]
[ "0.770966", "0.76953167", "0.76347184", "0.7455386", "0.74519825", "0.736542", "0.73645097", "0.73603123", "0.7352093", "0.73485047", "0.7298502", "0.725168", "0.72446144", "0.7222056", "0.71865594", "0.715961", "0.7146977", "0.71120346", "0.7095201", "0.70466775", "0.70396334", "0.6995805", "0.6989273", "0.6984997", "0.69400966", "0.69352275", "0.69345444", "0.69205284", "0.6911266", "0.69092095", "0.6906147", "0.6855175", "0.6788276", "0.6776289", "0.677091", "0.67687696", "0.67271286", "0.67107654", "0.6664043", "0.6657432", "0.6643225", "0.6635733", "0.6634527", "0.66171825", "0.66125154", "0.65958846", "0.6586267", "0.65735894", "0.65447104", "0.6533517", "0.65264714", "0.65256256", "0.6514548", "0.6504784", "0.6502267", "0.6500337", "0.64947844", "0.6494484", "0.64865875", "0.6482616", "0.6473408", "0.6468402", "0.6451803", "0.63948166", "0.6382433", "0.6379843", "0.6378782", "0.6375341", "0.63655615", "0.63655615", "0.63630635", "0.6358001", "0.632904", "0.6322877", "0.6316075", "0.63156587", "0.63155186", "0.63046813", "0.6303942", "0.63029116", "0.629138", "0.627494", "0.627254", "0.6271748", "0.62702614", "0.62594134", "0.6248912", "0.6231828", "0.62317544", "0.6227235", "0.6222562", "0.6214714", "0.619995", "0.6194876", "0.6186335", "0.6184107", "0.61813086", "0.6181294", "0.61713153", "0.61487603" ]
0.7311048
10
/ NOTE: Unfortunately, in MyBatis it's not possible to execute batch and nonbatch operations in single SqlSession. To support this scenario, we have to create completely new SqlSessionFactoryBean and completely new SqlSession. Surprisingly, this does not necessarily mean that the batch and nonbatch operations will be executed in different transactions (as we would expect) we tested this configuration using scenario 8. and it turned out that the bot nonbatch and batch operations were run using same connection and in same transaction. I guess this has something to do with how connection is obtained by MyBatis from dataSource...
@Bean @Qualifier("batch-operations") @SuppressWarnings("SpringJavaAutowiringInspection") public SqlSession myBatisBatchOperationsSession(DataSource dataSource) throws Exception { SqlSessionFactoryBean sqlSessionFactoryBean = new SqlSessionFactoryBean(); sqlSessionFactoryBean.setDataSource(dataSource); sqlSessionFactoryBean.setConfigLocation(new ClassPathResource("mybatis/mybatis-config.xml")); return new SqlSessionTemplate(sqlSessionFactoryBean.getObject(), ExecutorType.BATCH); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testBatchUpdate() {\n template.getJdbcOperations().batchUpdate(new String[]{websource.method2()});\n\n //Test SimpleJdbcOperations execute\n template.getJdbcOperations().execute(websource.method2());\n }", "@Test\n public void testBatchMerge() throws Exception {\n final int BATCH_SIZE = 7;\n try (Connection con = GridCacheDynamicLoadOnClientTest.connect(GridCacheDynamicLoadOnClientTest.clientNode);Statement stmt = con.createStatement()) {\n for (int idx = 0, i = 0; i < BATCH_SIZE; ++i , idx += i) {\n stmt.addBatch((((((((((((\"merge into \" + (GridCacheDynamicLoadOnClientTest.FULL_TABLE_NAME)) + \" (_key, name, orgId) values (\") + (100 + idx)) + \",\") + \"'\") + \"batch-\") + idx) + \"'\") + \",\") + idx) + \")\"));\n }\n int[] updCnts = stmt.executeBatch();\n assertEquals(\"Invalid update counts size\", BATCH_SIZE, updCnts.length);\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tString resource = \"mybatis-config.xml\";\r\n //ʹ��MyBatis�ṩ��Resources�����mybatis�������ļ�����Ҳ���ع�����ӳ���ļ���\r\n Reader reader = Resources.getResourceAsReader(resource); \r\n //����sqlSession�Ĺ���\r\n SqlSessionFactory sessionFactory = new SqlSessionFactoryBuilder().build(reader);\r\n //������ִ��ӳ���ļ���sql��sqlSession\r\n// SqlSession session = sessionFactory.openSession();\r\n// String statement=\"com.demo.mybatis.DBMapping.UserMapper.addUser\";\r\n// User user=new User(\"usermode\",22,222.22,UserState.AVAILABLE);\r\n// session.insert(statement,user);\r\n// session.commit();\r\n// System.out.println(user.getId());select id,name,age,money,status from t_user\r\n// statement=\"com.demo.mybatis.DBMapping.UserMapper.getUser\";\r\n// user=session.selectOne(statement, user.getId());\r\n// System.out.println(user.toString()); \r\n \r\n\r\n// SqlSession session = sessionFactory.openSession();\r\n// String statement=\"com.demo.mybatis.DBMapping.UserMapper.getuser\";\r\n// User user=session.selectOne(statement, 1);\r\n// user=session.selectOne(statement, 1);\r\n// System.out.println(user.toString()); \r\n// session.commit();\r\n// SqlSession session1 = sessionFactory.openSession();\r\n// user=session1.selectOne(statement, 1);\r\n// System.out.println(user.toString()); \r\n// session1.commit();\r\n \r\n \r\n// String statement=\"com.demo.mybatis.DBMapping.UserMapper.finduserbylikename1\";\r\n// List<User> users=session.selectList(statement, \"%J%\");\r\n// System.out.println(users.size());\r\n// for(int i=0;i<users.size();i++)\r\n// {\r\n// System.out.println(users.get(i).toString());\r\n// }\r\n// statement=\"com.demo.mybatis.DBMapping.UserMapper.finduserbylikename2\";\r\n// Map<String,Object> map=new HashMap<String,Object>(); \r\n// map.put(\"name\", \"J\"); \r\n// users=session.selectList(statement, map);\r\n// System.out.println(users.size());\r\n// for(int i=0;i<users.size();i++)\r\n// {\r\n// System.out.println(users.get(i).toString());\r\n// }\r\n\r\n// String statement=\"com.demo.mybatis.DBMapping.UserMapper.findcardbyuserids\";\r\n// List ids = new ArrayList();\r\n// ids.add(\"1\");\r\n// ids.add(\"2\");\r\n// ids.add(\"3\");\r\n// Map<String,Object> map=new HashMap<String,Object>(); \r\n// map.put(\"ids\", ids); \r\n// List<User> users=session.selectList(statement,map);\r\n// for(int i=0;i<users.size();i++)\r\n// {\r\n// System.out.println(users.get(i).toString());\r\n// }\r\n\t\t SqlSession session = sessionFactory.openSession();\r\n\t\t String statement=\"com.demo.mybatis.DBMapping.UserMapper.getUserList\"; \r\n\t\t PageHelper.startPage(1, 5, true); \r\n\t\t List<User> users=session.selectList(statement);\r\n\t\t PageInfo<User> pageInfo = new PageInfo<User>(users); \r\n\t\t System.out.println(\"数据总数:\" + pageInfo.getTotal()); \r\n\t\t System.out.println(\"数据总页数:\" + pageInfo.getPages()); \r\n\t\t System.out.println(\"最后一页:\" + pageInfo.getLastPage()); \r\n\t\t for (User u: users)\r\n\t\t {\r\n\t\t\t System.out.println(u.toString());\r\n\t\t } \r\n\t \r\n\r\n\t}", "@Mapper\npublic interface QuestionMapper {\n\n @Transactional\n @Select(\"select * from questions where categoryid in (select categoryid from category_language where language = #{language})\")\n @Results({\n @Result(property = \"questionId\",column = \"questionid\"),\n @Result(property = \"questionLove\",column = \"questionLove\"),\n @Result(property = \"questionContent\",column = \"questioncontent\"),\n @Result(property = \"categoryLanguage\",column = \"categoryid\",\n one=@One(select=\"com.caixueyuan.mapper.CategoryMapper.getCategoryByIdTrue\",fetchType= FetchType.EAGER)),\n @Result(property = \"userEntity\",column = \"userid\",\n one=@One(select=\"com.caixueyuan.mapper.UserMapper.getOneByIdWithOutPassword\",fetchType = FetchType.EAGER)),\n @Result(property = \"answerEntityList\",column=\"questionid\",javaType = List.class,\n many = @Many(select = \"com.caixueyuan.mapper.AnswerMapper.getAnswersByQuestionIdWithOneAnswer\"))\n\n })\n List<QuestionEntity> getQuestionsByLanguage(String language);\n\n @Transactional\n @Select(\"select * from questions where questionid = #{questionId}\")\n @Results({\n @Result(property = \"questionId\",column = \"questionid\"),\n @Result(property = \"questionLove\",column = \"questionLove\"),\n @Result(property = \"questionContent\",column = \"questioncontent\"),\n @Result(property = \"categoryLanguage\",column = \"categoryid\",\n one=@One(select=\"com.caixueyuan.mapper.CategoryMapper.getCategoryByIdTrue\",fetchType= FetchType.EAGER)),\n @Result(property = \"userEntity\",column = \"userid\",\n one=@One(select=\"com.caixueyuan.mapper.UserMapper.getOneByIdWithOutPassword\",fetchType = FetchType.EAGER)),\n @Result(property = \"answerEntityList\",column=\"questionid\",javaType = List.class,\n many = @Many(select = \"com.caixueyuan.mapper.AnswerMapper.getAnswersByQuestionIdWithQuestions\"))\n })\n QuestionEntity getQuestionsById(Integer questionId);\n\n @Transactional\n @Insert(\"insert into questions(categoryid,questiontitle,userid)\" +\n \"values\" +\n \"(#{categoryLanguage.categoryid},#{questionTitle},#{userEntity.id})\")\n void insertQuestion(QuestionEntity questionEntity);\n\n}", "@Test\n public void ItemMapperTest(){\n// item.setItemCode(UUID.randomUUID().toString().substring(0,5));\n// itemMapper.updateByPrimaryKeySelective(item);\n// System.out.println(item.toString());\n\n ItemMapper itemMapper1 = sqlSession.getMapper(ItemMapper.class);\n//\n for(int i=22;i<25;i++){\n Item item1 = new Item(UUID.randomUUID().toString().substring(0,5),\"米\",\"无\",new Date(),new Date());\n// item1.setItemId((long)i);\n// Item item1 = new Item();\n item1.setItemId((long)i);\n item1.setItemCode(\"ITEM00\"+i);\n itemMapper1.insertBatch(item1);\n// System.out.println(itemMapper1.selectByPrimaryKey((long)i).toString());\n }\n }", "public TransactionBuilder enableBatchLoading();", "@Override\n public int[] executeBatch() throws SQLException {\n throw new SQLException(\"tinySQL does not support executeBatch.\");\n }", "public void addBatch(String sql) throws SQLException {\n\r\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public static void main(String[] args) throws IOException {\n\t\tString resource = \"mybatis-config.xml\";\r\n\t\tInputStream inputStream = Resources.getResourceAsStream(resource);\r\n\t\t//获得sqlSessionFactory核心对象\r\n\t\t SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);\r\n\t\t //获得session对象\r\n\t\t SqlSession session=sqlSessionFactory.openSession();\r\n\t\t List<Goods> goods=null;\r\n\t\t {\r\n\t\t\t //查询所有\r\n\t\t\tgoods= session.selectList(\"com.accp.mybatis.mapper.GoodsMapper.selectAll\");\r\n\t\t\t \r\n\t\t }\r\n\t\t System.out.println(goods);\r\n\t\t {\r\n\t\t\t //按id查询\r\n\t\t\t Goods good=session.selectOne(\"com.accp.mybatis.mapper.GoodsMapper.selectByid\",53);\r\n\t\t\t System.out.println(good);\r\n\t\t }\r\n\t\t \r\n\t\t {\r\n\t\t\t //新增\r\n\t\t\t Goods good=new Goods();\r\n\t\t\t good.setGoodsName(\"lhsb\");\r\n\t\t\t good.setGoodsType(\"sbsb\");\r\n\t\t\t good.setGoodsClassId(3);\r\n\t\t\t good.setGoodsPrice(1234);\r\n\t\t\t \r\n\t\t\t int i=session.insert(\"com.accp.mybatis.mapper.GoodsMapper.insert\", good);\r\n\t\t\t System.out.println(\"受影响行数\"+i);\r\n\t\t\t System.out.println(\"主键\"+good.getGoodsId());\r\n\t\t }\r\n\t\t \r\n\t\t {\r\n\t\t\t //删除\r\n\t\t\t int a=session.delete(\"com.accp.mybatis.mapper.GoodsMapper.delete\", 59);\r\n\t\t }\r\n\t\t {\r\n\t\t\t //模糊查询\r\n\t\t\t goods =session.selectList(\"com.accp.mybatis.mapper.GoodsMapper.selectlike\",\"%电视级%\");\r\n\t\t\t System.out.println(goods);\r\n\t\t }\r\n\t\t \r\n\t\t {\r\n\t\t\t //多条件查询\r\n\t\t\t Map<String,Object> params=new HashMap<String, Object>();\r\n\t\t\t params.put(\"goodsName\", \"%洗衣液%\");\r\n\t\t\t params.put(\"goodsPrice\", 8);\r\n\t\t\t goods=session.selectList(\"com.accp.mybatis.mapper.GoodsMapper.selectlikeandPrice\", params);\r\n\t\t\t System.out.println(goods);\r\n\t\t }\r\n\t\t \r\n\t\t {\r\n\t\t\t Goods good=new Goods();\r\n\t\t\t good.setGoodsId(60);\r\n\t\t\t good.setGoodsName(\"asd\");\r\n\t\t\t good.setGoodsType(\"123\");\r\n\t\t\t good.setGoodsClassId(1);\r\n\t\t\t good.setGoodsPrice(111);\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t int c=session.update(\"com.accp.mybatis.mapper.GoodsMapper.update\", good);\r\n\t\t }\r\n\t\t//提交事物\r\n\t\t session.commit();\r\n\t\t session.close();//关闭连接\r\n\t}", "void addBatch() throws SQLException;", "private void batchImport() {\r\n m_jdbcTemplate.batchUpdate(createInsertQuery(),\r\n new BatchPreparedStatementSetter() {\r\n public void setValues(\r\n PreparedStatement ps, int i)\r\n throws SQLException {\r\n int j = 1;\r\n for (String property : m_propertyNames) {\r\n Map params = (Map) m_batch.get(\r\n i);\r\n ps.setObject(j++, params.get(\r\n property));\r\n }\r\n }\r\n\r\n public int getBatchSize() {\r\n return m_batch.size();\r\n }\r\n });\r\n }", "@SuppressWarnings(\"resource\")\n @Explain(\"We close the statement later, this is just an intermediate\")\n protected void addBatch() throws SQLException {\n prepareStmt().addBatch();\n batchBacklog++;\n if (batchBacklog > batchBacklogLimit) {\n commit();\n }\n }", "@Override\n public void addBatch( String sql ) throws SQLException {\n throw new SQLException(\"tinySQL does not support addBatch.\");\n }", "public interface BatchMapper {\n\n public List<WriterSO> selectWriterList();\n\n public List<UserTradeHistory> selectUserTradeHistoryBatch();\n\n public List<TradeHistoryBatch> selectTradeHistoryBatch();\n\n public int updateUserTradeHistory(UserTradeHistory userTradeHistory);\n\n public int updateTradeHistory(TradeHistory tradeHistory);\n\n public int deleteUserTradeHistoryBatch(UserTradeHistory userTradeHistory);\n\n public int deleteTradeHistoryBatch(TradeHistory tradeHistory);\n\n public int insertUserTradeHistory(UserTradeHistory userTradeHistory);\n\n public int insertUserTradeHistoryBatch(UserTradeHistory userTradeHistory);\n\n public int insertTradeHistory(TradeHistory tradeHistory);\n\n public int insertTradeHistoryBatch(TradeHistory tradeHistory);\n\n}", "private void batchExecution(List<String[]> rowBatch, int columnCount, int[] mapcols, String chunkId, int noOfChunks,\n int maxRetryCount, int retryTimeout) throws SQLException {\n int k = 0; //retry count\n boolean retry = false;\n int rowBatchSize = rowBatch.size();\n do {\n k++;\n try {\n if (connection == null || connection.isClosed()) {\n getJdbcConnection(maxRetryCount, retryTimeout);\n }\n if (preparedStatement == null || preparedStatement.isClosed()) {\n preparedStatement = connection.prepareStatement(jdbcConfig.getJdbcQuery(),\n ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n }\n for (int i = 0; i < rowBatchSize; i++) {\n psLineEndWithSeparator(mapcols, columnCount, rowBatch.get(i));\n preparedStatement.addBatch();\n }\n // ++batch_no;\n executeBatch(rowBatchSize, maxRetryCount, retryTimeout);\n batch_records = 0;\n k = 0;\n retry = false;\n datarowstransferred = datarowstransferred + update;\n update = 0;\n not_update = 0;\n } catch (AnaplanRetryableException ae) {\n retry = true;\n }\n } while (k < maxRetryCount && retry);\n // not successful\n if (retry) {\n throw new AnaplanAPIException(\"Could not connect to the database after \" + maxRetryCount + \" retries\");\n }\n }", "public interface ProfitprofitActionRuleDao extends EntityMybatisDao<ProfitprofitActionRule> {\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate);\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate},cal_type=#{calType} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionIdUpdateAalRateAndCalType(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate, @Param(\"calType\") String calType);\n \n @Select(\"select * from profit_action_rule where section_id=#{sectionId}\")\n ProfitprofitActionRule selectProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String\n sectionId);\n\n @Delete(\"delete from profit_action_rule where id =#{id}\")\n void deleteProfitActionRuleById(@Param(\"id\")Long id);\n\n @Delete(\"delete from profit_action_rule \")\n void deleteProfitActionRuleByAll();\n \n}", "public void afterPropertiesSet() {\n checkNotNull(sqlSessionTemplate, \"A SqlSessionFactory or a SqlSessionTemplate is required.\");\n checkArgument(ExecutorType.BATCH == sqlSessionTemplate.getExecutorType(),\n \"SqlSessionTemplate's executor type must be BATCH\");\n }", "public void executeTransaction(List<String> sql) throws SQLException {\n try (Connection connection = getConnection()) {\n\n Statement statement = connection.createStatement();\n\n String into = \"\";\n\n //connection.setAutoCommit(false);\n for (String s : sql) {\n if (s.trim().equals((\"\")) || s.trim().startsWith(\"/*\")) {\n continue;\n }\n into += s;\n\n if (s.endsWith(\";\")) {\n statement.addBatch(into);\n into = \"\";\n }\n }\n\n statement.executeBatch();\n\n statement.close();\n\n //connection.commit();\n }\n }", "public interface ConfigInfoAggrMapper extends Mapper {\n \n /**\n * To delete aggregated data in bulk, you need to specify a list of datum.\n * The default sql:\n * DELETE FROM config_info_aggr WHERE data_id=? AND group_id=? AND tenant_id=? AND datum_id IN (...)\n *\n * @param datumList datumList\n * @return The sql of deleting aggregated data in bulk.\n */\n String batchRemoveAggr(List<String> datumList);\n \n /**\n * Get count of aggregation config info.\n * The default sql:\n * SELECT count(*) FROM config_info_aggr WHERE data_id = ? AND group_id = ? AND tenant_id = ?\n *\n * @param size datum id list size\n * @param isIn search condition\n * @return The sql of getting count of aggregation config info.\n */\n String aggrConfigInfoCount(int size, boolean isIn);\n \n /**\n * Find all data before aggregation under a dataId. It is guaranteed not to return NULL.\n * The default sql:\n * SELECT data_id,group_id,tenant_id,datum_id,app_name,content\n * FROM config_info_aggr WHERE data_id=? AND group_id=? AND tenant_id=? ORDER BY datum_id\n *\n * @return The sql of finding all data before aggregation under a dataId.\n */\n String findConfigInfoAggrIsOrdered();\n \n /**\n * Query aggregation config info.\n * The default sql:\n * SELECT data_id,group_id,tenant_id,datum_id,app_name,content FROM config_info_aggr WHERE data_id=? AND\n * group_id=? AND tenant_id=? ORDER BY datum_id LIMIT startRow,pageSize\n *\n * @param startRow The start index.\n * @param pageSize The size of page.\n * @return The sql of querying aggregation config info.\n */\n String findConfigInfoAggrByPageFetchRows(int startRow, int pageSize);\n \n /**\n * Find all aggregated data sets.\n * The default sql:\n * SELECT DISTINCT data_id, group_id, tenant_id FROM config_info_aggr\n *\n * @return The sql of finding all aggregated data sets.\n */\n String findAllAggrGroupByDistinct();\n}", "public interface OneTableDMLMapper{\n int insertVaPlatAccInfo(Map<String, Object> map);\n int insertVaPlatInfo(Map<String,Object> map);\n int insertVaPlatVirtualAcctBal(Map<String, Object> params);\n int updateVaPlatVirtualAcctBalAdd(Map<String, Object> params);\n int updateVaPlatVirtualAcctBalSub(Map<String, Object> params);\n int insertVaPlatVirtualAcct(Map<String,Object> params);\n\n int updateVaMerchVirtualAcctBalAddForRefund(Map<String, Object> map);\n int insertVaMerchAccInfo(Map<String, Object> map);\n int insertVaMerchInfo(Map<String,Object> map);\n int insertVaMerchVirtualAcctBal(Map<String, Object> params);\n int updateVaMerchVirtualAcctBalAdd(Map<String, Object> params);\n int insertVaMerchRechargeSeq(Map<String, Object> params);\n int insertVaMerchWithdrawSeq(Map<String, Object> params);\n int updateVaMerchVirtualAcctBalSub(Map<String, Object> params);\n int insertVaMerchVirtualAcct(Map<String,Object> params);\n int dayEndTransferAmtForMerch(Map<String,Object> params);\n int deleteVaMerchAcctInfo(Map<String,Object> params);\n\n\n int updateVaCustVirtualAcctBalAddForRefund(Map<String, Object> map);\n int insertVaCustAccInfo(Map<String, Object> map);\n int insertVaCustInfo(Map<String,Object> map);\n int insertVaCustVirtualAcctBal(Map<String, Object> params);\n int updateVaCustVirtualAcctBalAdd(Map<String, Object> params);\n int updateVaCustVirtualAcctBalSub(Map<String, Object> params);\n int insertVaCustVirtualAcct(Map<String,Object> params);\n int insertVaCustRechargeSeq(Map<String,Object> params);\n int insertVaCustWithdrawSeq(Map<String,Object> params);\n int dayEndTransferAmtForCust(Map<String,Object> params);\n int deleteVaCustAcctInfo(Map<String,Object> params);\n\n int insertCmAcctTranSeq(Map<String,Object> params);\n int updateCmAcctTranSeq(Map<String,Object> params);\n\n int insertCmTranSeq(Map<String,Object> params);\n int updateCmTranSeq(Map<String,Object> params);\n\n int insertVaOrderInfo(Map<String,Object> params);\n int updateVaOrderInfo(Map<String,Object> params);\n int insertVaOrderSeq(Map<String,Object> params);\n\n int insertVaVirAcctSeq(Map<String,Object> params);\n int updateVaVirAcctSeq(Map<String,Object> params);\n int insertVaBindSeq(Map<String,Object> params);\n\n\n int insertVaTransferSeq(Map<String,Object> params);\n int insertTestUser(Map<String,Object> params);\n int updateProduceDay(Map<String,Object> params);\n\n int insertEodProcPrdLog(Map<String,Object> params);\n int insertEodProcLog(Map<String,Object> params);\n int updateEodProcPrdLog(Map<String,Object> params);\n int updateEodProcLog(Map<String,Object> params);\n\n\n\n}", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "public int getBatchSize();", "@UseStringTemplate3StatementLocator\npublic interface CommandDao {\n @SqlUpdate(\"insert into event (id, created, created_by, content) values (:event.id, :event.created, :event.createdBy, :content)\")\n void storeEvent(@BindBean(\"event\") Event event, @Bind(\"content\") String json);\n\n @SqlQuery(\"select content from (select pk, content from event order by pk desc limit <max>) grr order by pk\")\n @Mapper(EventMapper.class)\n Collection<Event> lastEvents(@Define(\"max\") int count);\n\n @SqlQuery(\"select content from event where pk > (select pk from event where id = :id) order by pk limit <max>\")\n @Mapper(EventMapper.class)\n Collection<Event> since(@Bind(\"id\") String id, @Define(\"max\") int count);\n\n @SqlQuery(\"select count(1) from event where pk > (select pk from event where id = :id)\")\n long countSince(@Bind(\"id\") String id);\n}", "protected void zBatchUpdateForSameSourceAttribute(List<UpdateOperation> updateOperations, BatchUpdateOperation batchUpdateOperation)\r\n {\r\n UpdateOperation firstOperation = updateOperations.get(0);\r\n MithraDataObject firstData = this.getDataForUpdate(firstOperation);\r\n Object source = this.getSourceAttributeValueFromObjectGeneric(firstData);\r\n DatabaseType databaseType = this.getDatabaseTypeGenericSource(source);\r\n\r\n if (databaseType.getUpdateViaInsertAndJoinThreshold() > 0 &&\r\n databaseType.getUpdateViaInsertAndJoinThreshold() < updateOperations.size() &&\r\n this.getFinder().getVersionAttribute() == null &&\r\n !batchUpdateOperation.isIncrement() &&\r\n batchUpdateOperation.isEligibleForUpdateViaJoin())\r\n {\r\n zBatchUpdateViaInsertAndJoin(updateOperations, source, databaseType);\r\n return;\r\n }\r\n if (this.hasOptimisticLocking())\r\n {\r\n if (this.getMithraObjectPortal().getTxParticipationMode().isOptimisticLocking() && !databaseType.canCombineOptimisticWithBatchUpdates())\r\n {\r\n //we'll do single updates\r\n for(int i=0;i<updateOperations.size();i++)\r\n {\r\n UpdateOperation updateOperation = updateOperations.get(i);\r\n zUpdate(updateOperation.getMithraObject(), updateOperation.getUpdates());\r\n }\r\n\r\n return;\r\n }\r\n }\r\n\r\n List firstUpdateWrappers = firstOperation.getUpdates();\r\n StringBuilder builder = new StringBuilder(30 + firstUpdateWrappers.size() * 12);\r\n builder.append(\"update \");\r\n builder.append(this.getFullyQualifiedTableNameGenericSource(source)).append(\" set \");\r\n for (int i = 0; i < firstUpdateWrappers.size(); i++)\r\n {\r\n AttributeUpdateWrapper wrapper = (AttributeUpdateWrapper) firstUpdateWrappers.get(i);\r\n if (i > 0)\r\n {\r\n builder.append(\", \");\r\n }\r\n builder.append(wrapper.getSetAttributeSql());\r\n }\r\n\r\n builder.append(this.getSqlWhereClauseForBatchUpdateForSameSourceAttribute(firstData));\r\n String sql = builder.toString();\r\n Connection con = null;\r\n PreparedStatement stm = null;\r\n\r\n try\r\n {\r\n con = this.getConnectionForWriteGenericSource(source);\r\n TimeZone databaseTimeZone = this.getDatabaseTimeZoneGenericSource(source);\r\n\r\n if (this.getSqlLogger().isDebugEnabled())\r\n {\r\n this.logWithSource(this.getSqlLogger(), source, \"batch update of \" + updateOperations.size() + \" objects with: \" + sql);\r\n }\r\n PrintablePreparedStatement pps = null;\r\n if (this.getBatchSqlLogger().isDebugEnabled())\r\n {\r\n pps = new PrintablePreparedStatement(sql);\r\n }\r\n stm = con.prepareStatement(sql);\r\n int batchSize = databaseType.getMaxPreparedStatementBatchCount(firstOperation.getUpdates().size() +\r\n this.getMithraObjectPortal().getFinder().getPrimaryKeyAttributes().length);\r\n if (batchSize < 0)\r\n {\r\n batchSize = updateOperations.size();\r\n }\r\n\r\n int objectsInBatch = 0;\r\n int batchStart = 0;\r\n for (int u = 0; u < updateOperations.size(); u++)\r\n {\r\n UpdateOperation operation = updateOperations.get(u);\r\n MithraDataObject data = this.getDataForUpdate(operation);\r\n if (this.getBatchSqlLogger().isDebugEnabled())\r\n {\r\n pps.clearParameters();\r\n int pos = operation.setSqlParameters(pps, databaseTimeZone, databaseType);\r\n this.setPrimaryKeyAttributes(pps, pos, data, databaseTimeZone, databaseType);\r\n this.logWithSource(this.getBatchSqlLogger(), source, \"batch updating with: \" + pps.getPrintableStatement());\r\n }\r\n int pos = operation.setSqlParameters(stm, databaseTimeZone, databaseType);\r\n this.setPrimaryKeyAttributes(stm, pos, data, databaseTimeZone, databaseType);\r\n operation.setUpdated();\r\n stm.addBatch();\r\n objectsInBatch++;\r\n\r\n if (objectsInBatch == batchSize)\r\n {\r\n this.executeBatchForUpdateOperations(stm, updateOperations, batchStart);\r\n objectsInBatch = 0;\r\n batchStart = u + 1;\r\n }\r\n }\r\n if (objectsInBatch > 0)\r\n {\r\n this.executeBatchForUpdateOperations(stm, updateOperations, batchStart);\r\n }\r\n stm.close();\r\n stm = null;\r\n\r\n String dbid = this.getDatabaseIdentifierGenericSource(source);\r\n getNotificationEventManager().addMithraNotificationEventForBatchUpdate(dbid, this.getFullyQualifiedFinderClassName(), MithraNotificationEvent.UPDATE, updateOperations, firstUpdateWrappers, source);\r\n }\r\n catch (SQLException e)\r\n {\r\n this.analyzeAndWrapSqlExceptionGenericSource(\"batch update failed \" + e.getMessage(), e, source, con);\r\n }\r\n finally\r\n {\r\n this.closeStatementAndConnection(con, stm);\r\n }\r\n\r\n }", "@Override\n public int[] doInCallableStatement(CallableStatement callableStatement) throws SQLException, DataAccessException {\n callableStatement.addBatch();\n\n while (params.hasNext()) {\n batchFactory.addParameter(callableStatement, params.next());\n callableStatement.addBatch();\n }\n return callableStatement.executeBatch();\n }", "@Test\n public void testBatchSink() throws Exception {\n List<WALEntry> entries = new ArrayList<>(TestReplicationSink.BATCH_SIZE);\n List<Cell> cells = new ArrayList<>();\n for (int i = 0; i < (TestReplicationSink.BATCH_SIZE); i++) {\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, i, Put, cells));\n }\n TestReplicationSink.SINK.replicateEntries(entries, CellUtil.createCellScanner(cells.iterator()), TestReplicationSink.replicationClusterId, TestReplicationSink.baseNamespaceDir, TestReplicationSink.hfileArchiveDir);\n Scan scan = new Scan();\n ResultScanner scanRes = TestReplicationSink.table1.getScanner(scan);\n Assert.assertEquals(TestReplicationSink.BATCH_SIZE, scanRes.next(TestReplicationSink.BATCH_SIZE).length);\n }", "public interface SessionTransactionManager {\n /**\n * Flush the current ORM session.\n */\n void flushSession();\n \n /**\n * Clear the first-level cache of the current ORM session.\n */ \n void clearSession();\n \n /**\n * Start a new transaction.\n */ \n void beginTransaction();\n \n /**\n * Commit the current transaction.\n */ \n void commitTransaction();\n \n /**\n * Roll back the current transaction.\n */ \n void rollbackTransaction();\n}", "void commitBatch() {\n try {\n currBatchSize = batchSize;\n batchPreparedStmt.executeBatch();\n connection.commit();\n batchPreparedStmt.clearParameters();\n } catch (SQLException e) {\n logger.log(Level.WARNING, \"SQLException \", e.getMessage());\n }\n }", "public int[] executeBatch() throws SQLException {\n return null;\r\n }", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "public int getBatchSize()\r\n/* 23: */ {\r\n/* 24:42 */ return BatchUpdateUtils.this.size();\r\n/* 25: */ }", "private static void populateDBSF3(Session session) throws HibernateException, IOException {\n\t\t// batch id, name, start, end, curriculum, location\n\t\tpopulateBatch(0, \"1701 Jan09 Java\", LocalDate.of(2017, 1, 9), LocalDate.of(2017, 3, 17), 2, 1, session);\n\t\tpopulateBatch(1, \"1701 Jan09 Java AP, ASU\", LocalDate.of(2017, 1, 9), LocalDate.of(2017, 3, 17), 2, 4, session);\n\t\tpopulateBatch(2, \"1701 Jan30 NET\", LocalDate.of(2017, 1, 30), LocalDate.of(2017, 4, 7), 3, 1, session);\n\t\tpopulateBatch(3, \"1702 Feb13 Java AP, QC\", LocalDate.of(2017, 2, 13), LocalDate.of(2017, 4, 21), 2, 5, session);\n\t\tpopulateBatch(4, \"1702 Feb27 Java\", LocalDate.of(2017, 2, 27), LocalDate.of(2017, 5, 5), 2, 1, session);\n\t\tpopulateBatch(5, \"1703 Mar20 Java\", LocalDate.of(2017, 3, 20), LocalDate.of(2017, 5, 26), 2, 1, session);\n\t\tpopulateBatch(6, \"1703 Mar27 Java\", LocalDate.of(2017, 3, 27), LocalDate.of(2017, 6, 2), 2, 1, session);\n\t\tpopulateBatch(7, \"1704 Apr03 Java Cancelled\", LocalDate.of(2017, 4, 3), LocalDate.of(2017, 6, 9), 2, 1, session);\n\t\tpopulateBatch(8, \"1704 Apr10 Java\", LocalDate.of(2017, 4, 10), LocalDate.of(2017, 6, 16), 2, 1, session);\n\t\tpopulateBatch(9, \"1704 Apr10 SEED\", LocalDate.of(2017, 4, 10), LocalDate.of(2017, 4, 21), 8, 1, session);\n\t\tpopulateBatch(10, \"1704 Apr24 Java\", LocalDate.of(2017, 4, 24), LocalDate.of(2017, 6, 30), 2, 1, session);\n\t\tpopulateBatch(11, \"1704 Apr24 SEED\", LocalDate.of(2017, 4, 24), LocalDate.of(2017, 5, 5), 8, 1, session);\n\t\tpopulateBatch(12, \"1705 May08 JAVA\", LocalDate.of(2017, 5, 8), LocalDate.of(2017, 7, 14), 2, 1, session);\n\t\tpopulateBatch(13, \"1705 May08 SEED .NET\", LocalDate.of(2017, 5, 8), LocalDate.of(2017, 5, 19), 3, 1, session);\n\t\tpopulateBatch(14, \"1705 May15 Java\", LocalDate.of(2017, 5, 15), LocalDate.of(2017, 7, 21), 2, 1, session);\n\t\tpopulateBatch(15, \"1705 May22 .NET\", LocalDate.of(2017, 5, 22), LocalDate.of(2017, 7, 28), 3, 1, session);\n\t\tpopulateBatch(16, \"1705 May22 Java\", LocalDate.of(2017, 5, 22), LocalDate.of(2017, 7, 28), 2, 1, session);\n\t\tpopulateBatch(17, \"1705 May22 Java AP, UMUC Cancelled\", LocalDate.of(2017, 5, 22), LocalDate.of(2017, 8, 4), 2, 2, session);\n\t\tpopulateBatch(18, \"1705 May30 Java AP, USF\", LocalDate.of(2017, 5, 30), LocalDate.of(2017, 8, 4), 2, 3, session);\n\t\tpopulateBatch(19, \"1706 Jun05 AP, USF SEED\", LocalDate.of(2017, 6, 5), LocalDate.of(2017, 6, 23), 8, 3, session);\n\t\tpopulateBatch(20, \"1706 Jun12 Java AP, SPS\", LocalDate.of(2017, 6, 12), LocalDate.of(2017, 8, 25), 2, 6, session);\n\t\tpopulateBatch(21, \"1706 Jun19 Java AP, USF\", LocalDate.of(2017, 6, 19), LocalDate.of(2017, 9, 1), 2, 3, session);\n\t\tpopulateBatch(22, \"1706 Jun19 Salesforce\", LocalDate.of(2017, 6, 19), LocalDate.of(2017, 8, 25), 6, 1, session);\n\t\tpopulateBatch(23, \"1706 Jun26 Dynamics 365\", LocalDate.of(2017, 6, 26), LocalDate.of(2017, 9, 1), 5, 1, session);\n\t\tpopulateBatch(24, \"1706 Jun26 Java AP, QC\", LocalDate.of(2017, 6, 26), LocalDate.of(2017, 9, 1), 2, 5, session);\n\t\tpopulateBatch(25, \"1706 Jun26 Oracle Fusion\", LocalDate.of(2017, 6, 26), LocalDate.of(2017, 9, 1), 9, 1, session);\n\t\tpopulateBatch(26, \"1707 Jul05 AP, USF\", LocalDate.of(2017, 7, 5), LocalDate.of(2017, 9, 8), null, 3, session);\n\t\tpopulateBatch(27, \"1707 Jul10 PEGA\", LocalDate.of(2017, 7, 10), LocalDate.of(2017, 9, 15), 4, 1, session);\n\t\tpopulateBatch(28, \"1707 Jul24 Java\", LocalDate.of(2017, 7, 24), LocalDate.of(2017, 9, 29), 2, 1, session);\n\t\tpopulateBatch(29, \"1707 Jul24 Java\", LocalDate.of(2017, 7, 24), LocalDate.of(2017, 9, 29), 2, 1, session);\n\t\tpopulateBatch(30, \"1708 Aug07 Java\", LocalDate.of(2017, 8, 7), LocalDate.of(2017, 10, 13), 2, 1, session);\n\t\tpopulateBatch(31, \"1708 Aug14 Java\", LocalDate.of(2017, 8, 14), LocalDate.of(2017, 10, 20), 2, 1, session);\n\t\tpopulateBatch(32, \"1708 Aug21 .Net AP, USF\", LocalDate.of(2017, 8, 21), LocalDate.of(2017, 11, 3), 3, 3, session);\n\t\tpopulateBatch(33, \"1709 Sep11 .NET PR\", LocalDate.of(2017, 9, 11), LocalDate.of(2017, 11, 17), 3, 1, session);\n\t\tpopulateBatch(34, \"1709 Sep11 SEED WITNY\", LocalDate.of(2017, 9, 11), LocalDate.of(2017, 9, 22), 8, 6, session);\n\t\tpopulateBatch(35, \"1709 Sep18 Java AP, USF\", LocalDate.of(2017, 9, 18), LocalDate.of(2017, 11, 24), 2, 3, session);\n\t\tpopulateBatch(36, \"1709 Sep18 Salesforce\", LocalDate.of(2017, 9, 18), LocalDate.of(2017, 12, 8), 6, 1, session);\n\t\tpopulateBatch(37, \"1709 Sep25 Java AP, CUNY\", LocalDate.of(2017, 9, 25), LocalDate.of(2017, 12, 1), 2, 6, session);\n\t\tpopulateBatch(38, \"1709 Sep11 JTA\", LocalDate.of(2017, 9, 11), LocalDate.of(2017, 11, 17), 1, 1, session);\n\t\tpopulateBatch(39, \"1710 Oct09 PEGA\", LocalDate.of(2017, 10, 9), LocalDate.of(2017, 12, 15), 4, 1, session);\n\t\tpopulateBatch(40, \"1710 Oct23 Java AP, CUNY\", LocalDate.of(2017, 10, 23), LocalDate.of(2018, 1, 5), 2, 6, session);\n\t\tpopulateBatch(41, \"1710 Oct30 Java AP, USF\", LocalDate.of(2017, 10, 30), LocalDate.of(2018, 1, 12), 2, 3, session);\n\t\tpopulateBatch(42, \"1711 Nov06 JTA\", LocalDate.of(2017, 11, 6), LocalDate.of(2018, 1, 12), 1, 1, session);\n\t\tpopulateBatch(43, \"1711 Nov13 Java\", LocalDate.of(2017, 11, 13), LocalDate.of(2018, 1, 26), 2, 1, session);\n\t\tpopulateBatch(44, \"1711 Nov13 Java AP, USF\", LocalDate.of(2017, 11, 13), LocalDate.of(2018, 1, 19), 2, 3, session);\n\t\tpopulateBatch(45, \"1711 Nov13 Dynamics Lateral Hire\", LocalDate.of(2017, 11, 13), LocalDate.of(2018, 1, 12), 5, 1, session);\n\t\tpopulateBatch(46, \"1712 Dec04 Java AP, USF\", LocalDate.of(2017, 12, 4), LocalDate.of(2018, 2, 16), 2, 3, session);\n\t\tpopulateBatch(47, \"1712 Dec04 Java\", LocalDate.of(2017, 12, 4), LocalDate.of(2018, 2, 9), 2, 1, session);\n\t\tpopulateBatch(48, \"1712 Dec04 .Net\", LocalDate.of(2017, 12, 4), LocalDate.of(2018, 2, 9), 3, 1, session);\n\t\tpopulateBatch(49, \"1712 Dec11 Java\", LocalDate.of(2017, 12, 11), LocalDate.of(2018, 2, 23), 2, 1, session);\n\t\tpopulateBatch(50, \"1712 Dec11 Java AP, USF\", LocalDate.of(2017, 12, 11), LocalDate.of(2018, 2, 23), 2, 3, session);\n\t\tpopulateBatch(51, \"1712 Dec18\", null, null, null, null, session);\n\t\tpopulateBatch(52, \"1801 Jan08\", null, null, null, null, session);\n\t\tpopulateBatch(53, \"1801 Jan22 AP, QC\", null, null, null, null, session);\n\t\tpopulateBatch(54, \"1801 Jan29\", null, null, null, null, session);\n\t\tpopulateBatch(55, \"1802 Feb05\", null, null, null, null, session);\n\t\tpopulateBatch(56, \"1802 Feb12 AP, USF\", null, null, null, null, session);\n\t\tpopulateBatch(57, \"1802 Feb26\", null, null, null, null, session);\n\t\tpopulateBatch(58, \"1611 Nov28 JTA\", null, null, 1, null, session);\n\n\t\t// 1701 jan09 Java 0\n\t\tpopulateAssociate(0, \"Jerry\", \"Sylveus\", 11, 577, 577, 0, session);\n\t\tpopulateAssociate(1, \"Steven\", \"Simmons\", 5, 577, 577, 0, session);\n\t\tpopulateAssociate(2, \"Adam\", \"Cox\", 5, 577, 577, 0, session);\n\t\tpopulateAssociate(3, \"Chris\", \"Ramos\", 10, null, null, 0, session);\n\t\tpopulateAssociate(4, \"Yvonne\", \"Neuland\", 10, null, null, 0, session);\n\t\tpopulateAssociate(5, \"Jack\", \"Cochran\", 10, null, null, 0, session);\n\t\tpopulateAssociate(6, \"Zeyang\", \"Zhang\", 10, null, null, 0, session);\n\t\tpopulateAssociate(7, \"Alexander\", \"Maynard\", 10, null, null, 0, session);\n\t\tpopulateAssociate(8, \"Luis\", \"Alires, Medina\", 10, null, null, 0, session);\n\t\tpopulateAssociate(9, \"Wesley\", \"Cotterman\", 10, null, null, 0, session);\n\t\tpopulateAssociate(10, \"Hien\", \"Nguyen\", 10, null, null, 0, session);\n\t\tpopulateAssociate(11, \"David\", \"Chang\", 10, null, null, 0, session);\n\t\tpopulateAssociate(12, \"Jadzia\", \"Kephart\", 10, null, null, 0, session);\n\t\tpopulateAssociate(13, \"Michael\", \"Despang\", 10, null, null, 0, session);\n\n\t\t// JAVA ap, asu , 1\n\t\tpopulateAssociate(14, \"Madison\", \"Redd\", 7, null, null, 1, session);\n\t\tpopulateAssociate(15, \"Tembong\", \"Fotabong Fonji\", 10, null, null, 1, session);\n\t\tpopulateAssociate(16, \"Efren\", \"Olivas\", 10, null, null, 1, session);\n\t\tpopulateAssociate(17, \"Christopher\", \"Matheny\", 5, 577, 577, 1, session);\n\n\t\t// 1701 jan30 .net\n\t\tpopulateAssociate(18, \"Devonte\", \"Holmes\", 5, 577, 577, 2, session);\n\t\tpopulateAssociate(19, \"Stephen\", \"Osei, Owusu\", 5, 577, 577, 2, session);\n\t\tpopulateAssociate(20, \"Alain\", \"Bruno\", 10, null, null, 2, session);\n\t\tpopulateAssociate(21, \"Summer\", \"Wilken\", 10, null, null, 2, session);\n\t\tpopulateAssociate(22, \"Stephen\", \"Kirkland\", 10, null, null, 2, session);\n\t\tpopulateAssociate(23, \"Erik\", \"May\", 10, null, null, 2, session);\n\t\tpopulateAssociate(24, \"Michael\", \"Furlow\", 10, null, null, 2, session);\n\t\tpopulateAssociate(25, \"Paul\", \"Stanton\", 10, null, null, 2, session);\n\n\t\t// 1702 feb13 java AP, QC\n\t\tpopulateAssociate(26, \"Jack\", \"Duong\", 10, null, null, 3, session);\n\t\tpopulateAssociate(27, \"Ateeb\", \"Khawaja\", 10, null, null, 3, session);\n\t\tpopulateAssociate(28, \"Kevin\", \"Guan\", 10, null, null, 3, session);\n\t\tpopulateAssociate(29, \"Hossain\", \"Yahya\", 10, null, null, 3, session);\n\t\tpopulateAssociate(30, \"Denise\", \"Montesdeoca\", 10, null, null, 3, session);\n\t\tpopulateAssociate(31, \"Sean\", \"Connelly\", 10, null, null, 3, session);\n\t\tpopulateAssociate(32, \"Sadat\", \"Ahmed\", 10, null, null, 3, session);\n\t\tpopulateAssociate(33, \"Hendy\", \"Valcin\", 10, null, null, 3, session);\n\t\tpopulateAssociate(34, \"Sudish\", \"Itwaru\", 10, null, null, 3, session);\n\t\tpopulateAssociate(35, \"Pier\", \"Yos\", 10, null, null, 3, session);\n\t\tpopulateAssociate(36, \"Daniel\", \"Liu\", 10, null, null, 3, session);\n\t\tpopulateAssociate(37, \"Igor\", \"Gluskin\", 10, null, null, 3, session);\n\t\tpopulateAssociate(38, \"Michael\", \"Cartagena\", 10, null, null, 3, session);\n\t\tpopulateAssociate(39, \"Kam\", \"Lam\", 5, 577, 577, 3, session);\n\n\t\t// 1702 feb27 java\n\t\tpopulateAssociate(40, \"Marco\", \"Tobon\", 5, 577, 577, 4, session);\n\t\tpopulateAssociate(41, \"Michael\", \"Hobbs\", 5, 577, 577, 4, session);\n\t\tpopulateAssociate(42, \"David\", \"Lund\", 5, 577, 577, 4, session);\n\t\tpopulateAssociate(43, \"Aaron\", \"Camm\", 5, 577, 577, 4, session);\n\t\tpopulateAssociate(44, \"Mory\", \"Keita\", 5, 577, 577, 4, session);\n\t\tpopulateAssociate(45, \"Keith\", \"Minner\", 10, null, null, 4, session);\n\t\tpopulateAssociate(46, \"Zachary\", \"Stefan\", 10, null, null, 4, session);\n\t\tpopulateAssociate(47, \"Xavier\", \"Grogan\", 10, null, null, 4, session);\n\t\tpopulateAssociate(48, \"Nicholas\", \"Perez\", 10, null, null, 4, session);\n\t\tpopulateAssociate(49, \"Ben\", \"Webster\", 10, null, null, 4, session);\n\t\tpopulateAssociate(50, \"Jonathan\", \"Lee\", 10, null, null, 4, session);\n\t\tpopulateAssociate(51, \"Jesse\", \"Barnett\", 10, null, null, 4, session);\n\t\tpopulateAssociate(52, \"Danni\", \"Tang\", 10, null, null, 4, session);\n\t\tpopulateAssociate(53, \"Bella\", \"Rose\", 10, null, null, 4, session);\n\t\tpopulateAssociate(54, \"Edward\", \"Young\", 10, null, null, 4, session);\n\n\t\t// 1703 mar20 java\n\t\tpopulateAssociate(55, \"Brandon\", \"Bruesch\", 10, null, null, 5, session);\n\t\tpopulateAssociate(56, \"Ariel\", \"Rowland\", 10, null, null, 5, session);\n\t\tpopulateAssociate(57, \"Steven\", \"Feazell\", 10, null, null, 5, session);\n\t\tpopulateAssociate(58, \"Daniel\", \"Weaver\", 5, 577, 577, 5, session);\n\t\tpopulateAssociate(59, \"John\", \"Setterlund\", 5, 577, 577, 5, session);\n\t\tpopulateAssociate(60, \"Timothy\", \"Stevens\", 5, 577, 577, 5, session);\n\t\tpopulateAssociate(61, \"Salif\", \"Lamarre\", 5, 577, 577, 5, session);\n\t\tpopulateAssociate(62, \"Gonzalo\", \"Iribarne\", 5, 577, 577, 5, session);\n\t\tpopulateAssociate(63, \"Adrian\", \"Rivera\", 5, 577, 577, 5, session);\n\n\t\t// 1703 mar27 java\n\t\tpopulateAssociate(64, \"Robert\", \"Walters\", 5, 577, 577, 6, session);\n\t\tpopulateAssociate(65, \"Eric\", \"Biehl\", 5, 577, 577, 6, session);\n\t\tpopulateAssociate(66, \"Jesse\", \"Bosshardt\", 5, 577, 577, 6, session);\n\t\tpopulateAssociate(67, \"Jade\", \"Garcia\", 5, 577, 577, 6, session);\n\t\tpopulateAssociate(68, \"Gabe\", \"Aron\", 5, 577, 577, 6, session);\n\t\tpopulateAssociate(69, \"Richard\", \"Wingert\", 5, 577, 577, 6, session);\n\t\tpopulateAssociate(70, \"Luis\", \"Perez\", 10, null, null, 6, session);\n\n\t\t// 1704 apr10 java\n\t\tpopulateAssociate(71, \"Calandra\", \"Zellner\", 10, null, null, 8, session);\n\t\tpopulateAssociate(72, \"Kota\", \"Reyes\", 10, null, null, 8, session);\n\t\tpopulateAssociate(73, \"John\", \"Fowler\", 10, null, null, 8, session);\n\t\tpopulateAssociate(74, \"Paul\", \"Maksimovich\", 10, null, null, 8, session);\n\t\tpopulateAssociate(75, \"Kirtanbhai\", \"Shah\", 5, 577, 577, 8, session);\n\t\tpopulateAssociate(76, \"Jozsef\", \"Morrisey\", 5, 577, 577, 8, session);\n\t\tpopulateAssociate(77, \"Cort\", \"Highfield\", 5, 577, 577, 8, session);\n\t\tpopulateAssociate(78, \"Mykola\", \"Nikitin\", 5, 577, 577, 8, session);\n\t\tpopulateAssociate(79, \"Yushiroh\", \"Canastra\", 5, 577, 577, 8, session);\n\n\t\t// 1704 apr24 java\n\t\tpopulateAssociate(80, \"Ryan\", \"Hutchinson\", 5, null, null, 10, session);\n\t\tpopulateAssociate(81, \"Austin \", \"Larkin\", 5, 577, 577, 10, session);\n\t\tpopulateAssociate(82, \"Nicholas\", \"Smith\", 11, 577, 577, 10, session);\n\t\tpopulateAssociate(83, \"Logan\", \"Johnson\", 11, 577, 577, 10, session);\n\t\tpopulateAssociate(84, \"Phong\", \"Nguyen\", 5, 577, 577, 10, session);\n\t\tpopulateAssociate(85, \"Juwan\", \"Armanie\", 5, 577, 577, 10, session);\n\t\tpopulateAssociate(86, \"Devin\", \"King\", 11, 577, 577, 10, session);\n\t\tpopulateAssociate(87, \"Julien\", \"Gaupin\", 5, 577, 577, 10, session);\n\t\tpopulateAssociate(88, \"Pandi\", \"Rrapo\", 5, 577, 577, 10, session);\n\t\tpopulateAssociate(89, \"Jose\", \"Garcia\", 5, 577, 577, 10, session);\n\n\t\t// 1705 may08 java\n\t\tpopulateAssociate(90, \"Santosh\", \"Mylavarapu\", 12, 247, 247, 12, session);\n\t\tpopulateAssociate(91, \"Jessica\", \"Kline\", 11, 247, 247, 12, session);\n\t\tpopulateAssociate(92, \"Roderick\", \"Dye\", 5, 247, 247, 12, session);\n\t\tpopulateAssociate(93, \"Joshua\", \"Tompkins\", 5, 1057, 1057, 12, session);\n\t\tpopulateAssociate(94, \"Alec\", \"Michel\", 5, 1147, 1147, 12, session);\n\t\tpopulateAssociate(95, \"Adam\", \"Baker\", 5, 247, 247, 12, session);\n\t\tpopulateAssociate(96, \"Carlos\", \"Vallejo\", 5, 1147, 1147, 12, session);\n\t\tpopulateAssociate(97, \"Humberto\", \"Corea\", 5, 247, 247, 12, session);\n\t\tpopulateAssociate(98, \"Thomas\", \"Pruim\", 5, 1057, 1057, 12, session);\n\t\tpopulateAssociate(99, \"Franklin\", \"Adams\", 5, 1057, 1057, 12, session);\n\t\tpopulateAssociate(100, \"Merhawi\", \"Temnewo\", 5, 247, 247, 12, session);\n\t\tpopulateAssociate(101, \"Mario\", \"Dongo\", 5, 247, 247, 12, session);\n\t\tpopulateAssociate(102, \"Stanley\", \"Chouloute\", 10, null, null, 12, session);\n\t\tpopulateAssociate(103, \"Daniel\", \"Zorrilla\", 10, null, null, 12, session);\n\t\tpopulateAssociate(104, \"Joseph\", \"Jones\", 10, null, null, 12, session);\n\t\tpopulateAssociate(105, \"Rex\", \"Toothman\", 10, null, null, 12, session);\n\t\tpopulateAssociate(106, \"Robert\", \"Jenkins\", 10, null, null, 12, session);\n\n\t\t// 1705 may22 java\n\t\tpopulateAssociate(107, \"Roger\", \"Newman\", 10, null, null, 16, session);\n\t\tpopulateAssociate(108, \"Gereth\", \"Dittrick\", 10, null, null, 16, session);\n\t\tpopulateAssociate(109, \"Marquis\", \"Simmons\", 10, null, null, 16, session);\n\t\tpopulateAssociate(110, \"Samuel\", \"Levy\", 10, null, null, 16, session);\n\t\tpopulateAssociate(111, \"Mitul\", \"Patel\", 12, 577, 577, 16, session);\n\t\tpopulateAssociate(112, \"Stephanie\", \"Hastings\", 12, 577, 577, 16, session);\n\t\tpopulateAssociate(113, \"David\", \"Griffith\", 12, 577, 577, 16, session);\n\t\tpopulateAssociate(114, \"Akshay\", \"Chawla\", 12, 577, 577, 16, session);\n\t\tpopulateAssociate(115, \"William\", \"Steel\", 12, 577, 577, 16, session);\n\t\tpopulateAssociate(116, \"Jhoan\", \"Osorno\", 12, 577, 577, 16, session);\n\t\tpopulateAssociate(117, \"Craig\", \"Hatch\", 5, 577, 577, 16, session);\n\t\tpopulateAssociate(118, \"Scott\", \"Newcom\", 12, 577, 577, 16, session);\n\t\tpopulateAssociate(119, \"Andy\", \"Tang\", 12, 577, 577, 16, session);\n\t\tpopulateAssociate(120, \"Aaron\", \"Haskett\", 12, 577, 577, 16, session);\n\t\tpopulateAssociate(121, \"Brandon\", \"Lederhouse\", 12, 577, 577, 16, session);\n\t\tpopulateAssociate(122, \"Tyler\", \"Deans\", 12, 577, 577, 16, session);\n\t\tpopulateAssociate(123, \"Lino\", \"Patulot\", 12, 577, 577, 16, session);\n\n\t\t// 1705 may15 java\n\t\tpopulateAssociate(124, \"Gian, Carlo\", \"Barreto\", 12, 577, 577, 14, session);\n\t\tpopulateAssociate(125, \"Richard\", \"Marquez\", 12, 577, 577, 14, session);\n\t\tpopulateAssociate(126, \"Latez\", \"Bradley\", 12, 577, 577, 14, session);\n\t\tpopulateAssociate(127, \"Liqun\", \"Zheng\", 12, 577, 577, 14, session);\n\t\tpopulateAssociate(128, \"Eric\", \"Christie\", 12, 577, 577, 14, session);\n\t\tpopulateAssociate(129, \"Arthur\", \"Faugue\", 12, 577, 577, 14, session);\n\t\tpopulateAssociate(130, \"Chantel\", \"Boor\", 12, 577, 577, 14, session);\n\t\tpopulateAssociate(131, \"Theresa\", \"Dinh\", 12, 577, 577, 14, session);\n\t\tpopulateAssociate(132, \"Cody\", \"Boucher\", 12, 577, 577, 14, session);\n\t\tpopulateAssociate(133, \"James\", \"Champ\", 12, 577, 577, 14, session);\n\t\tpopulateAssociate(134, \"Mark\", \"Worth\", 12, 577, 577, 14, session);\n\t\tpopulateAssociate(135, \"Darrin\", \"McIntegeryre\", 12, 577, 577, 14, session);\n\n\t\t// 1705 may22 .net\n\t\tpopulateAssociate(136, \"mya\", \"pham\", 5, 17, 17, 15, session);\n\t\tpopulateAssociate(137, \"Samuel\", \"Oates\", 12, 577, 577, 15, session);\n\t\tpopulateAssociate(138, \"Andre\", \"Ballard\", 12, 577, 577, 15, session);\n\t\tpopulateAssociate(139, \"Donald\", \"Hokenson\", 12, 577, 577, 15, session);\n\t\tpopulateAssociate(140, \"Jameson\", \"Burchette\", 12, 577, 577, 15, session);\n\t\tpopulateAssociate(141, \"Yasha N\", \"Taylor\", 12, 577, 577, 15, session);\n\t\tpopulateAssociate(142, \"Julian\", \"Rojas\", 12, 577, 577, 15, session);\n\t\tpopulateAssociate(143, \"Jonathan\", \"Vette\", 12, 577, 577, 15, session);\n\t\tpopulateAssociate(144, \"Grant\", \"Taylor\", 12, 577, 577, 15, session);\n\t\tpopulateAssociate(145, \"Kevin\", \"Durand\", 5, 17, 17, 15, session);\n\t\tpopulateAssociate(146, \"Omar\", \"Reid\", 12, 577, 577, 15, session);\n\t\tpopulateAssociate(147, \"Daniel\", \"Larner\", 12, 577, 577, 15, session);\n\t\tpopulateAssociate(148, \"Ryan\", \"Pacovsky\", 5, 17, 17, 15, session);\n\t\tpopulateAssociate(149, \"Joshua\", \"Brewster\", 12, 577, 577, 15, session);\n\t\tpopulateAssociate(150, \"Lucas, Aleczander\", \"Carver\", 12, 577, 577, 15, session);\n\n\t\t// 1705 may30 java\n\t\tpopulateAssociate(151, \"Paul\", \"Wesson\", 11, 577, 577, 18, session);\n\t\tpopulateAssociate(152, \"Lucas\", \"Vance\", 11, 577, 577, 18, session);\n\t\tpopulateAssociate(153, \"Shawn\", \"Kays\", 11, 577, 577, 18, session);\n\t\tpopulateAssociate(154, \"Derek\", \"Sirp\", 11, 577, 577, 18, session);\n\t\tpopulateAssociate(155, \"Nathanial\", \"Fine\", 11, 577, 577, 18, session);\n\t\tpopulateAssociate(156, \"Carlos\", \"Rubiano\", 5, 577, 577, 18, session);\n\t\tpopulateAssociate(157, \"Valentin\", \"Firpo\", 11, 577, 577, 18, session);\n\t\tpopulateAssociate(158, \"Matthew\", \"Young\", 11, 577, 577, 18, session);\n\t\tpopulateAssociate(159, \"John\", \"Collin\", 11, 577, 577, 18, session);\n\t\tpopulateAssociate(160, \"Jonathan\", \"Joseph\", 11, 577, 577, 18, session);\n\t\tpopulateAssociate(161, \"Lucas\", \"Costa\", 11, 577, 577, 18, session);\n\t\tpopulateAssociate(162, \"Demetrus\", \"Atkinson\", 12, 577, 577, 18, session);\n\t\tpopulateAssociate(163, \"Benjamin\", \"Kirksey\", 12, 577, 577, 18, session);\n\t\tpopulateAssociate(164, \"Teresa\", \"Ayala\", 11, 577, 577, 18, session);\n\t\tpopulateAssociate(165, \"David\", \"Foens\", 11, 577, 577, 18, session);\n\n\t\t// 1706 jun05 seed\n\t\tpopulateAssociate(166, \"Sam\", \"La\", 6, null, null, 19, session);\n\n\t\t// 1706 jun12 java\n\t\tpopulateAssociate(167, \"Lizhou\", \"Cao\", 10, null, null, 20, session);\n\t\tpopulateAssociate(168, \"Akeem\", \"Joshua Davis\", 7, null, null, 20, session);\n\t\tpopulateAssociate(169, \"Albert\", \"Vasilyev\", 7, null, null, 20, session);\n\t\tpopulateAssociate(170, \"Bishwo\", \"Gurung\", 10, null, null, 20, session);\n\t\tpopulateAssociate(171, \"Leibniz\", \"Berihuete\", 11, 577, 577, 20, session);\n\t\tpopulateAssociate(172, \"Mridula\", \"Zaman\", 11, 577, 577, 20, session);\n\t\tpopulateAssociate(173, \"Christian\", \"Omana\", 7, 577, 577, 20, session);\n\t\tpopulateAssociate(174, \"John\", \"Villamar\", 9, 1211, 1211, 20, session);\n\t\tpopulateAssociate(175, \"Dingchao\", \"Liao\", 11, 577, 577, 20, session);\n\t\tpopulateAssociate(176, \"Run\", \"Li\", 12, 1211, 1211, 20, session);\n\n\t\t// 1706 june 19 java\n\t\tpopulateAssociate(177, \"Ramses\", \"Sanchez\", 4, 577, 577, 21, session);\n\t\tpopulateAssociate(178, \"Avant\", \"Mathur\", 2, 577, 577, 21, session);\n\t\tpopulateAssociate(179, \"Benjamin\", \"Wingo\", 5, 577, 577, 21, session);\n\t\tpopulateAssociate(180, \"Troy\", \"King\", 4, 577, 577, 21, session);\n\t\tpopulateAssociate(181, \"Thomas\", \"Scheffer\", 11, 1211, 1211, 21, session);\n\t\tpopulateAssociate(182, \"Samuel\", \"Louis, Pierre\", 11, 577, 577, 21, session);\n\t\tpopulateAssociate(183, \"Nam\", \"Mai\", 5, 577, 577, 21, session);\n\t\tpopulateAssociate(184, \"Robert\", \"Tuck\", 11, 577, 577, 21, session);\n\t\tpopulateAssociate(185, \"Gilbert\", \"Birdsong\", 2, 577, 577, 21, session);\n\t\tpopulateAssociate(186, \"Michael\", \"Garza\", 2, 577, 577, 21, session);\n\t\tpopulateAssociate(187, \"Roktim\", \"Barkakati\", 11, 577, 577, 21, session);\n\t\tpopulateAssociate(188, \"Brian\", \"McKalip\", 11, 745, 745, 21, session);\n\t\tpopulateAssociate(189, \"Patrice\", \"Blocker\", 12, 577, 577, 21, session);\n\t\tpopulateAssociate(190, \"Thien\", \"Nguyen\", 12, 577, 577, 21, session);\n\t\tpopulateAssociate(191, \"Duncan\", \"Hayward\", 11, 577, 577, 21, session);\n\t\tpopulateAssociate(192, \"Adedayo\", \"Salam\", 11, 577, 577, 21, session);\n\t\tpopulateAssociate(193, \"Sarah\", \"Kummerfeldt\", 11, 577, 577, 21, session);\n\t\tpopulateAssociate(194, \"Jaydeep\", \"Bhatia\", 11, 577, 577, 21, session);\n\t\tpopulateAssociate(195, \"Kosiba\", \"Oshodi, Glover\", 11, 577, 577, 21, session);\n\t\tpopulateAssociate(196, \"Jonathan\", \"Jonathan\", 11, 577, 577, 21, session);\n\t\tpopulateAssociate(197, \"Gary\", \"LaMountain\", 11, 577, 577, 21, session);\n\n\t\t// 1706 jun26 java\n\t\tpopulateAssociate(198, \"Binquan\", \"Wang\", 10, null, null, 24, session);\n\t\tpopulateAssociate(199, \"Thanushan\", \"Varatharajah\", 10, null, null, 24, session);\n\n\t\t// 1707 jul24 java\n\t\tpopulateAssociate(200, \"Alvin\", \"Chong\", 10, null, null, 28, session);\n\t\tpopulateAssociate(201, \"Russell\", \"Barnes\", 7, null, null, 28, session);\n\t\tpopulateAssociate(202, \"Peck\", \"Boozer\", 10, null, null, 28, session);\n\n\t\t// 1708 aug07 java\n\t\tpopulateAssociate(203, \"Christopher\", \"Hake\", 7, null, null, 30, session);\n\t\tpopulateAssociate(204, \"Colin\", \"Beckford\", 7, null, null, 30, session);\n\t\tpopulateAssociate(205, \"Charles\", \"Helf\", 7, null, null, 30, session);\n\t\tpopulateAssociate(206, \"Vincent\", \"Bolden\", 7, null, null, 30, session);\n\t\tpopulateAssociate(207, \"Pasang\", \"lama\", 7, null, null, 30, session);\n\t\tpopulateAssociate(208, \"Thomas\", \"Mathew\", 7, null, null, 30, session);\n\t\tpopulateAssociate(209, \"Matthew\", \"Rawson\", 7, null, null, 30, session);\n\t\tpopulateAssociate(210, \"Vishal\", \"Bhatt\", 7, null, null, 30, session);\n\t\tpopulateAssociate(211, \"Phillip\", \"Willis\", 7, null, null, 30, session);\n\t\tpopulateAssociate(212, \"Christopher\", \"Oler\", 7, null, null, 30, session);\n\t\tpopulateAssociate(213, \"Emile\", \"Paul\", 7, null, null, 30, session);\n\n\t\t// 1708 aug21 .net\n\t\tpopulateAssociate(214, \"Okwong\", \"Bassey\", 7, null, null, 32, session);\n\t\tpopulateAssociate(215, \"Jaime\", \"Gonzalez\", 7, null, null, 32, session);\n\t\tpopulateAssociate(216, \"Amauris\", \"Ferreira\", 7, null, null, 32, session);\n\t\tpopulateAssociate(217, \"Leon\", \"Moore\", 7, null, null, 32, session);\n\t\tpopulateAssociate(218, \"AchIntegerya\", \"Goel\", 7, null, null, 32, session);\n\t\tpopulateAssociate(219, \"Lenny\", \"Lopez\", 7, null, null, 32, session);\n\t\tpopulateAssociate(220, \"Anthony\", \"Ramoslebron\", 7, null, null, 32, session);\n\t\tpopulateAssociate(221, \"William\", \"Humphries\", 7, null, null, 32, session);\n\t\tpopulateAssociate(222, \"Gregory\", \"Lonsdale\", 7, null, null, 32, session);\n\t\tpopulateAssociate(223, \"Nickalas\", \"Light\", 10, null, null, 32, session);\n\t\tpopulateAssociate(224, \"Jeremiah\", \"Matthews\", 7, null, null, 32, session);\n\t\tpopulateAssociate(225, \"Jacob\", \"Burton\", 7, null, null, 32, session);\n\t\tpopulateAssociate(226, \"Anthony\", \"Oscovitch\", 7, null, null, 32, session);\n\t\tpopulateAssociate(227, \"James\", \"Kim\", 7, null, null, 32, session);\n\t\tpopulateAssociate(228, \"Tyler\", \"Bourque\", 7, null, null, 32, session);\n\t\tpopulateAssociate(229, \"Justin\", \"Terasaka\", 7, null, null, 32, session);\n\t\tpopulateAssociate(230, \"Christopher\", \"Lewis\", 10, null, null, 32, session);\n\n\t\t// 1709 sept18 SF\n\t\tpopulateAssociate(231, \"Hunter\", \"Heard\", 6, null, null, 36, session);\n\t\tpopulateAssociate(232, \"Daniel\", \"Kaczmarczyk\", 6, null, null, 36, session);\n\t\tpopulateAssociate(233, \"Peter\", \"Thompson\", 6, null, null, 36, session);\n\t\tpopulateAssociate(234, \"Joseph\", \"AbiJaoudi\", 6, null, null, 36, session);\n\t\tpopulateAssociate(235, \"Andrew\", \"Day\", 6, null, null, 36, session);\n\t\tpopulateAssociate(236, \"Alex\", \"Gorring\", 6, null, null, 36, session);\n\t\tpopulateAssociate(237, \"Lea\", \"Reambonanza\", 6, null, null, 36, session);\n\t\tpopulateAssociate(238, \"Robert\", \"Kasprzyk\", 6, null, null, 36, session);\n\t\tpopulateAssociate(239, \"Titus\", \"Kim\", 6, null, null, 36, session);\n\t\tpopulateAssociate(240, \"Andrew\", \"Lang\", 6, null, null, 36, session);\n\t\tpopulateAssociate(241, \"Max\", \"Bisesi\", 6, null, null, 36, session);\n\t\tpopulateAssociate(242, \"Richard\", \"Camara\", 6, null, null, 36, session);\n\t\tpopulateAssociate(243, \"Tanner\", \"Robinaugh\", 6, null, null, 36, session);\n\t\tpopulateAssociate(244, \"Jeff\", \"Neufer\", 6, null, null, 36, session);\n\t\tpopulateAssociate(245, \"Leo\", \"Stewart\", 6, null, null, 36, session);\n\t\tpopulateAssociate(246, \"Muhamed\", \"Basic\", 6, null, null, 36, session);\n\t\tpopulateAssociate(247, \"Duc\", \"Nguyen\", 6, null, null, 36, session);\n\t\tpopulateAssociate(248, \"Danielle\", \"Williams\", 6, null, null, 36, session);\n\t\tpopulateAssociate(249, \"Yang\", \"Lu\", 6, null, null, 36, session);\n\t\tpopulateAssociate(250, \"Michelle\", \"Cominotto\", 6, null, null, 36, session);\n\t\tpopulateAssociate(251, \"Wesley\", \"DeLoach\", 6, null, null, 36, session);\n\t\tpopulateAssociate(252, \"Christopher\", \"Kaczenski\", 6, null, null, 36, session);\n\t\tpopulateAssociate(253, \"Grant\", \"Arras\", 6, null, null, 36, session);\n\n\t\t// 1709 sept25 java\n\t\tpopulateAssociate(254, \"Mynhung\", \"Pham\", 6, null, null, 37, session);\n\t\tpopulateAssociate(255, \"Anahi\", \"Garnelo\", 6, null, null, 37, session);\n\t\tpopulateAssociate(256, \"Janine\", \"Lee\", 6, null, null, 37, session);\n\t\tpopulateAssociate(257, \"AnnMarie\", \"Bemberry\", 6, null, null, 37, session);\n\t\tpopulateAssociate(258, \"Rebeca\", \"Otero\", 6, null, null, 37, session);\n\t\tpopulateAssociate(259, \"Sabina\", \"Haque\", 6, null, null, 37, session);\n\t\tpopulateAssociate(260, \"Victoria\", \"Chen\", 6, null, null, 37, session);\n\t\tpopulateAssociate(261, \"Carolyn\", \"Rehm\", 6, null, null, 37, session);\n\n\t\t// 1709 sept11 JTA\n\t\tpopulateAssociate(262, \"Adrian\", \"Chavez\", 6, null, null, 38, session);\n\t\tpopulateAssociate(263, \"Abaynhe\", \"Abitew\", 6, null, null, 38, session);\n\t\tpopulateAssociate(264, \"Kayci\", \"Parcells\", 6, null, null, 38, session);\n\t\tpopulateAssociate(265, \"Ashley\", \"Dyas\", 6, null, null, 38, session);\n\t\tpopulateAssociate(266, \"Matthew\", \"Persil\", 6, null, null, 38, session);\n\t\tpopulateAssociate(267, \"Daniel\", \"Ackley, Jr\", 6, null, null, 38, session);\n\t\tpopulateAssociate(268, \"Ryan\", \"Timms\", 6, null, null, 38, session);\n\t\tpopulateAssociate(269, \"Jacob\", \"Haag\", 6, null, null, 38, session);\n\t\tpopulateAssociate(270, \"RAUL\", \"GUAJARDO\", 6, null, null, 38, session);\n\t\tpopulateAssociate(271, \"Aldrin\", \"Natividad\", 6, null, null, 38, session);\n\t\tpopulateAssociate(272, \"Benjamin\", \"Kidd\", 6, null, null, 38, session);\n\t\tpopulateAssociate(273, \"Adam\", \"Lif\", 6, null, null, 38, session);\n\t\tpopulateAssociate(274, \"Jacob\", \"Hackel\", 6, null, null, 38, session);\n\t\tpopulateAssociate(275, \"Jarrod\", \"Bieber\", 6, null, null, 38, session);\n\n\t\t// 1710 oct23 apCuny\n\t\tpopulateAssociate(276, \"Jeremy\", \"Shapiro\", 6, null, null, 40, session);\n\t\tpopulateAssociate(277, \"Carl\", \"Lee\", 6, null, null, 40, session);\n\t\tpopulateAssociate(278, \"Keshny\", \"Jean, Francois\", 6, null, null, 40, session);\n\t\tpopulateAssociate(279, \"Jun\", \"Li\", 6, null, null, 40, session);\n\t\tpopulateAssociate(280, \"Desmond\", \"George\", 6, null, null, 40, session);\n\t\tpopulateAssociate(281, \"Epis\", \"MARTINEZ\", 6, null, null, 40, session);\n\t\tpopulateAssociate(282, \"Junjie\", \"Wang\", 6, null, null, 40, session);\n\t\tpopulateAssociate(283, \"Kan\", \"Xue\", 6, null, null, 40, session);\n\t\tpopulateAssociate(284, \"Shahak\", \"Ahmad\", 6, null, null, 40, session);\n\t\tpopulateAssociate(285, \"Arron\", \"Creighton\", 6, null, null, 40, session);\n\t\tpopulateAssociate(286, \"Kensen\", \"Alexandre\", 6, null, null, 40, session);\n\t\tpopulateAssociate(287, \"Maximilian\", \"Wang\", 6, null, null, 40, session);\n\t\tpopulateAssociate(288, \"Joseph\", \"Wong\", 6, null, null, 40, session);\n\t\tpopulateAssociate(289, \"Jeffrey\", \"Wu\", 6, null, null, 40, session);\n\n\t\t// 1710 oct23 pega\n\t\tpopulateAssociate(290, \"Terrence\", \"Wilson\", 6, null, null, null, session);\n\t\tpopulateAssociate(291, \"David\", \"O Connor\", 6, null, null, null, session);\n\t\tpopulateAssociate(292, \"Issac\", \"Borba\", 6, null, null, null, session);\n\t\tpopulateAssociate(293, \"Aaron\", \"Clark\", 6, null, null, null, session);\n\t\tpopulateAssociate(294, \"Annas\", \"Subzwari\", 6, null, null, null, session);\n\t\tpopulateAssociate(295, \"Akshprateek\", \"Kaur\", 6, null, null, null, session);\n\t\tpopulateAssociate(296, \"Haiqiang\", \"Xie\", 6, null, null, null, session);\n\n\t\t// 1710 oct30\n\t\tpopulateAssociate(297, \"John\", \"Hudson\", 6, null, null, 41, session);\n\t\tpopulateAssociate(298, \"John\", \"Seymour\", 6, null, null, 41, session);\n\t\tpopulateAssociate(299, \"Brice\", \"Petty\", 6, null, null, 41, session);\n\t\tpopulateAssociate(300, \"jacob\", \"St Hilaire\", 6, null, null, 41, session);\n\t\tpopulateAssociate(301, \"Austin\", \"Hearn\", 6, null, null, 41, session);\n\t\tpopulateAssociate(302, \"Kyle\", \"Settles\", 6, null, null, 41, session);\n\t\tpopulateAssociate(303, \"Stephen\", \"Huelsman\", 6, null, null, 41, session);\n\t\tpopulateAssociate(304, \"Rosario\", \"Vidales\", 6, null, null, 41, session);\n\t\tpopulateAssociate(305, \"Saad\", \"Mall\", 6, null, null, 41, session);\n\t\tpopulateAssociate(306, \"Randy\", \"Cao\", 6, null, null, 41, session);\n\t\tpopulateAssociate(307, \"Conor\", \"Fitzgerald\", 6, null, null, 41, session);\n\t\tpopulateAssociate(308, \"Micah\", \"West\", 6, null, null, 41, session);\n\t\tpopulateAssociate(309, \"Kelton\", \"Keener\", 6, null, null, 41, session);\n\t\tpopulateAssociate(310, \"John\", \"Brown\", 6, null, null, 41, session);\n\t\tpopulateAssociate(311, \"Santosh\", \"Baral\", 6, null, null, 41, session);\n\t\tpopulateAssociate(312, \"Arthur\", \"Chen\", 6, null, null, 41, session);\n\t\tpopulateAssociate(313, \"Robert\", \"Choboy\", 6, null, null, 41, session);\n\t\tpopulateAssociate(314, \"Christopher\", \"Youngblood\", 6, null, null, 41, session);\n\t\tpopulateAssociate(315, \"Pascal\", \"Parsard\", 6, null, null, 41, session);\n\t\tpopulateAssociate(316, \"Edel\", \"Benavides\", 6, null, null, 41, session);\n\t\tpopulateAssociate(317, \"Brandon\", \"Richardson\", 6, null, null, 41, session);\n\t\tpopulateAssociate(318, \"Chris\", \"Worcester\", 6, null, null, 41, session);\n\t\tpopulateAssociate(319, \"Mitchell\", \"Goshorn\", 6, null, null, 41, session);\n\n\t\t// 1711 nov06\n\t\tpopulateAssociate(320, \"Princewill\", \"Ibe\", 6, null, null, 42, session);\n\t\tpopulateAssociate(321, \"Jordan\", \"Gibson, Price\", 6, null, null, 42, session);\n\t\tpopulateAssociate(322, \"Mani\", \"Lawson\", 6, null, null, 42, session);\n\t\tpopulateAssociate(323, \"Han\", \"Jung\", 6, null, null, 42, session);\n\t\tpopulateAssociate(324, \"Sherdil\", \"Khawaja\", 6, null, null, 42, session);\n\t\tpopulateAssociate(325, \"Mahamadou\", \"Traore\", 6, null, null, 42, session);\n\t\tpopulateAssociate(326, \"Sean\", \"Vaeth\", 6, null, null, 42, session);\n\t\tpopulateAssociate(327, \"Michael\", \"Tseng\", 6, null, null, 42, session);\n\t\tpopulateAssociate(328, \"Stuart\", \"Gillette\", 6, null, null, 42, session);\n\t\tpopulateAssociate(329, \"Antony\", \"Lulciuc\", 6, null, null, 42, session);\n\t\tpopulateAssociate(330, \"Michael\", \"Warren\", 6, null, null, 42, session);\n\t\tpopulateAssociate(331, \"Evan\", \"West\", 6, null, null, 42, session);\n\t\tpopulateAssociate(332, \"Grantley\", \"Morrison\", 6, null, null, 42, session);\n\t\tpopulateAssociate(333, \"Joseph\", \"Ramsel\", 6, null, null, 42, session);\n\t\tpopulateAssociate(334, \"Xavier\", \"Garibay\", 6, null, null, 42, session);\n\t\tpopulateAssociate(335, \"Matthew\", \"Snee\", 6, null, null, 42, session);\n\t\tpopulateAssociate(336, \"Leng\", \"Vang\", 6, null, null, 42, session);\n\t\tpopulateAssociate(337, \"Nasir\", \"Alauddin\", 6, null, null, 42, session);\n\t\tpopulateAssociate(338, \"Jeffrey\", \"Myers\", 6, null, null, 42, session);\n\t\tpopulateAssociate(339, \"caleb\", \"schumake\", 6, null, null, 42, session);\n\t\tpopulateAssociate(340, \"Alex\", \"Peterson\", 6, null, null, 42, session);\n\t\tpopulateAssociate(341, \"Steven\", \"Scott, Mohammed\", 6, null, null, 42, session);\n\t\tpopulateAssociate(342, \"James\", \"Marsh\", 6, null, null, 42, session);\n\t\tpopulateAssociate(343, \"Karandeep\", \"Saini\", 6, null, null, 42, session);\n\n\t\t// 1711 nov13\n\t\tpopulateAssociate(344, \"Andreas\", \"Vitsut\", 6, null, null, 43, session);\n\t\tpopulateAssociate(345, \"Shola\", \"Ihekweme\", 6, null, null, 43, session);\n\t\tpopulateAssociate(346, \"Junaid\", \"Syed\", 6, null, null, 43, session);\n\t\tpopulateAssociate(347, \"Isaiah\", \"Forward\", 6, null, null, 43, session);\n\t\tpopulateAssociate(348, \"Jeanine\", \"Tran\", 6, null, null, 43, session);\n\t\tpopulateAssociate(349, \"Ryan\", \"McElhaney\", 6, null, null, 43, session);\n\t\tpopulateAssociate(350, \"Justin\", \"Coles\", 6, null, null, 43, session);\n\t\tpopulateAssociate(351, \"Juan\", \"Morales\", 6, null, null, 43, session);\n\t\tpopulateAssociate(352, \"Tiambe\", \"Hooper\", 6, null, null, 43, session);\n\t\tpopulateAssociate(353, \"Kenneth\", \"Hamilton\", 6, null, null, 43, session);\n\t\tpopulateAssociate(354, \"Christine\", \"Ni\", 6, null, null, 43, session);\n\t\tpopulateAssociate(355, \"John\", \"Fincken\", 6, null, null, 43, session);\n\t\tpopulateAssociate(356, \"Christian\", \"Sue\", 6, null, null, 43, session);\n\t\tpopulateAssociate(357, \"Courtney\", \"Hicks\", 6, null, null, 43, session);\n\t\tpopulateAssociate(358, \"Michaela\", \"Ulman\", 6, null, null, 43, session);\n\t\tpopulateAssociate(359, \"Nathan\", \"Pena\", 6, null, null, 43, session);\n\t\tpopulateAssociate(360, \"Kurtis\", \"Vernier\", 6, null, null, 43, session);\n\t\tpopulateAssociate(361, \"Diego\", \"Orozco\", 6, null, null, 43, session);\n\t\tpopulateAssociate(362, \"Robert\", \"Clark\", 6, null, null, 43, session);\n\n\t\t// 1711 nov13 usf\n\t\tpopulateAssociate(363, \"Tyler\", \"Ehringer\", 6, null, null, 44, session);\n\t\tpopulateAssociate(364, \"Yosuf\", \"ElSaadany\", 6, null, null, 44, session);\n\t\tpopulateAssociate(365, \"Cameron\", \"Jackson\", 6, null, null, 44, session);\n\t\tpopulateAssociate(366, \"Adam\", \"Spalding\", 6, null, null, 44, session);\n\t\tpopulateAssociate(367, \"David\", \"Argetinger\", 6, null, null, 44, session);\n\t\tpopulateAssociate(368, \"abdoul\", \"dolo\", 6, null, null, 44, session);\n\t\tpopulateAssociate(369, \"Isai\", \"Alegria\", 6, null, null, 44, session);\n\t\tpopulateAssociate(370, \"Nicholas\", \"Bell\", 6, null, null, 44, session);\n\t\tpopulateAssociate(371, \"Rony\", \"Alvarez\", 6, null, null, 44, session);\n\t\tpopulateAssociate(372, \"Jose\", \"Belloga\", 6, null, null, 44, session);\n\t\tpopulateAssociate(373, \"Andrew\", \"Nixon\", 6, null, null, 44, session);\n\t\tpopulateAssociate(374, \"Marshall\", \"Cargle\", 6, null, null, 44, session);\n\t\tpopulateAssociate(375, \"Wezley\", \"Singleton\", 6, null, null, 44, session);\n\t\tpopulateAssociate(376, \"William\", \"Rhodes\", 6, null, null, 44, session);\n\t\tpopulateAssociate(377, \"Dean\", \"Terrell\", 6, null, null, 44, session);\n\t\tpopulateAssociate(378, \"Felix\", \"Abreu\", 6, null, null, 44, session);\n\t\tpopulateAssociate(379, \"Matthew\", \"Farr\", 6, null, null, 44, session);\n\t\tpopulateAssociate(380, \"Jose\", \"Rojas\", 6, null, null, 44, session);\n\t\tpopulateAssociate(381, \"Daniel\", \"Kelly\", 6, null, null, 44, session);\n\t\tpopulateAssociate(382, \"Nahom\", \"Tsadu\", 6, null, null, 44, session);\n\t\tpopulateAssociate(383, \"Shujun\", \"Ye\", 6, null, null, 44, session);\n\t\tpopulateAssociate(384, \"Morgan\", \"Worthington\", 6, null, null, 44, session);\n\t\tpopulateAssociate(385, \"Ihsan\", \"Taha\", 6, null, null, 44, session);\n\t\tpopulateAssociate(386, \"Man\", \"Lou\", 6, null, null, 44, session);\n\t\tpopulateAssociate(387, \"Trent\", \"Smith\", 6, null, null, 44, session);\n\t\tpopulateAssociate(388, \"Todd\", \"Merbeth\", 6, null, null, 44, session);\n\t\tpopulateAssociate(389, \"Hudson\", \"Lynam\", 6, null, null, 44, session);\n\n\t\t// 1711 nov13 dynamics literal\n\t\tpopulateAssociate(390, \"LauWanzer\", \"Quince\", 8, null, null, 45, session);\n\t\tpopulateAssociate(391, \"Rinkal\", \"Gandhi\", 6, null, null, 45, session);\n\t\tpopulateAssociate(392, \"Adam\", \"Bailey\", 6, null, null, 45, session);\n\n\t\t// 1712 dec04, 1\n\t\tpopulateAssociate(393, \"Matthew\", \"Dancz\", 6, null, null, null, session);\n\t\tpopulateAssociate(394, \"Shawn\", \"Hayes\", 6, null, null, null, session);\n\t\tpopulateAssociate(395, \"Steven\", \"Sagun\", 6, null, null, null, session);\n\t\tpopulateAssociate(396, \"Yoon\", \"Kim\", 6, null, null, null, session);\n\t\tpopulateAssociate(397, \"Russell\", \"Locke\", 6, null, null, null, session);\n\t\tpopulateAssociate(398, \"Nicholas\", \"Lundin\", 6, null, null, null, session);\n\t\tpopulateAssociate(399, \"Paul\", \"McInnis\", 6, null, null, null, session);\n\t\tpopulateAssociate(400, \"Nicholas\", \"Escalona\", 6, null, null, null, session);\n\t\tpopulateAssociate(401, \"Sofani\", \"Mesfun\", 6, null, null, null, session);\n\t\tpopulateAssociate(402, \"Jacob\", \"Wrightsman\", 6, null, null, null, session);\n\t\tpopulateAssociate(403, \"Tul\", \"Parajuli\", 6, null, null, null, session);\n\t\tpopulateAssociate(404, \"Philip\", \"Hwang\", 6, null, null, null, session);\n\t\tpopulateAssociate(405, \"Emmanuel\", \"George\", 6, null, null, null, session);\n\t\tpopulateAssociate(406, \"Samuel\", \"Yin\", 6, null, null, null, session);\n\t\tpopulateAssociate(407, \"Brandon\", \"Frankenfield\", 6, null, null, null, session);\n\t\tpopulateAssociate(408, \"Zane\", \"Habib\", 6, null, null, null, session);\n\t\tpopulateAssociate(409, \"Oumar\", \"Mboup\", 6, null, null, null, session);\n\t\tpopulateAssociate(410, \"Anthony\", \"Leino\", 6, null, null, null, session);\n\t\tpopulateAssociate(411, \"Seth\", \"Roffe\", 6, null, null, null, session);\n\t\tpopulateAssociate(412, \"Raymond\", \"Zhu\", 6, null, null, null, session);\n\t\tpopulateAssociate(413, \"Khai\", \"Phu\", 6, null, null, null, session);\n\t\tpopulateAssociate(414, \"Alec\", \"Rager\", 6, null, null, null, session);\n\t\tpopulateAssociate(415, \"phillip\", \"steinhart\", 6, null, null, null, session);\n\t\tpopulateAssociate(416, \"Kanishkah\", \"Anwari\", 6, null, null, null, session);\n\n\t\t// 1712 dec04, 2\n\t\tpopulateAssociate(417, \"Kenneth\", \"Franks\", 6, null, null, null, session);\n\t\tpopulateAssociate(418, \"Adriel\", \"Leung\", 6, null, null, null, session);\n\t\tpopulateAssociate(419, \"Timothy\", \"Kuter\", 6, null, null, null, session);\n\t\tpopulateAssociate(420, \"Cooper\", \"Cummings\", 6, null, null, null, session);\n\t\tpopulateAssociate(421, \"Kelsey\", \"Yuen\", 6, null, null, null, session);\n\t\tpopulateAssociate(422, \"Cameron\", \"Shamah\", 6, null, null, null, session);\n\t\tpopulateAssociate(423, \"Daniel\", \"Truax\", 6, null, null, null, session);\n\t\tpopulateAssociate(424, \"Arpit\", \"Patel\", 6, null, null, null, session);\n\t\tpopulateAssociate(425, \"John\", \"Reidy\", 6, null, null, null, session);\n\t\tpopulateAssociate(426, \"Jack\", \"McCabe\", 6, null, null, null, session);\n\t\tpopulateAssociate(427, \"Mohsin\", \"Mohammed\", 6, null, null, null, session);\n\t\tpopulateAssociate(428, \"Michael\", \"Manzanares\", 6, null, null, null, session);\n\t\tpopulateAssociate(429, \"Jonathan\", \"Cheng\", 6, null, null, null, session);\n\t\tpopulateAssociate(430, \"Hoa\", \"Vuong\", 6, null, null, null, session);\n\t\tpopulateAssociate(431, \"Malcolm\", \"Fraser\", 6, null, null, null, session);\n\t\tpopulateAssociate(432, \"Jeffrey\", \"Lau\", 6, null, null, null, session);\n\t\tpopulateAssociate(433, \"William\", \"Shephard\", 6, null, null, null, session);\n\t\tpopulateAssociate(434, \"Rodney\", \"Kennedy\", 6, null, null, null, session);\n\t\tpopulateAssociate(435, \"David\", \"Cosiem\", 6, null, null, null, session);\n\t\tpopulateAssociate(436, \"Matthew\", \"Johnson\", 6, null, null, null, session);\n\t\tpopulateAssociate(437, \"Andres\", \"Luna\", 6, null, null, null, session);\n\n\t\t// 1712 dec04 usf\n\t\tpopulateAssociate(438, \"Brian\", \"Ferguson\", 6, null, null, 46, session);\n\t\tpopulateAssociate(439, \"Ethan\", \"Crow\", 6, null, null, 46, session);\n\t\tpopulateAssociate(440, \"Don\", \"Armstrong\", 6, null, null, 46, session);\n\t\tpopulateAssociate(441, \"Nicholas\", \"Lung\", 6, null, null, 46, session);\n\t\tpopulateAssociate(442, \"David\", \"Graves\", 6, null, null, 46, session);\n\t\tpopulateAssociate(443, \"James\", \"Zhen\", 6, null, null, 46, session);\n\t\tpopulateAssociate(444, \"Jeffrey\", \"Camacho\", 6, null, null, 46, session);\n\t\tpopulateAssociate(445, \"Mark\", \"Kim\", 6, null, null, 46, session);\n\t\tpopulateAssociate(446, \"Mohamad\", \"Alhindi\", 6, null, null, 46, session);\n\t\tpopulateAssociate(447, \"Tzu\", \"Chao\", 6, null, null, 46, session);\n\t\tpopulateAssociate(448, \"Seth\", \"Wilson\", 6, null, null, 46, session);\n\t\tpopulateAssociate(449, \"Quinn\", \"Wong\", 6, null, null, 46, session);\n\t\tpopulateAssociate(450, \"Remington\", \"Wells\", 6, null, null, 46, session);\n\t\tpopulateAssociate(451, \"Nicholas\", \"Rante\", 6, null, null, 46, session);\n\t\tpopulateAssociate(452, \"Robert\", \"Ly\", 6, null, null, 46, session);\n\t\tpopulateAssociate(453, \"Sean\", \"Sung\", 6, null, null, 46, session);\n\t\tpopulateAssociate(454, \"Fahmy\", \"Mohammed\", 6, null, null, 46, session);\n\t\tpopulateAssociate(455, \"Andrew\", \"Taylor\", 6, null, null, 46, session);\n\t\tpopulateAssociate(456, \"Allen\", \"Pennington\", 6, null, null, 46, session);\n\t\tpopulateAssociate(457, \"Van\", \"Ha\", 6, null, null, 46, session);\n\t\tpopulateAssociate(458, \"Gabriel\", \"Bautista\", 6, null, null, 46, session);\n\t\tpopulateAssociate(459, \"Anders\", \"Fogelberg\", 6, null, null, 46, session);\n\t\tpopulateAssociate(460, \"Ricardo\", \"Arbelaez\", 6, null, null, 46, session);\n\t\tpopulateAssociate(461, \"Patrick\", \"Kennedy\", 8, null, null, 46, session);\n\t\tpopulateAssociate(462, \"Jonathan\", \"Fenstermacher\", 6, null, null, 46, session);\n\t\tpopulateAssociate(463, \"Javier\", \"QuIntegerero, Martinez\", 6, null, null, 46, session);\n\t\tpopulateAssociate(464, \"Arjun\", \"Mathew\", 6, null, null, 46, session);\n\t\tpopulateAssociate(465, \"Austen\", \"Tong\", 6, null, null, 46, session);\n\n\t\t// 1217 dec11\n\t\tpopulateAssociate(466, \"Rogelio\", \"Garcia\", 6, null, null, 49, session);\n\t\tpopulateAssociate(467, \"Amin\", \"El, refaei\", 6, null, null, 49, session);\n\t\tpopulateAssociate(468, \"Jithin\", \"Valiyil\", 6, null, null, 49, session);\n\t\tpopulateAssociate(469, \"William\", \"Gentry\", 6, null, null, 49, session);\n\t\tpopulateAssociate(470, \"Adam\", \"Sharif\", 6, null, null, 49, session);\n\t\tpopulateAssociate(471, \"Tuan\", \"Pham\", 6, null, null, 49, session);\n\t\tpopulateAssociate(472, \"Nick\", \"Parker\", 6, null, null, 49, session);\n\t\tpopulateAssociate(473, \"Nathan\", \"Poole\", 6, null, null, 49, session);\n\t\tpopulateAssociate(474, \"Robin\", \"Pierre\", 6, null, null, 49, session);\n\t\tpopulateAssociate(475, \"Dustin\", \"Mai\", 6, null, null, 49, session);\n\t\tpopulateAssociate(476, \"Joseph\", \"Fernandez\", 6, null, null, 49, session);\n\t\tpopulateAssociate(477, \"Katherine\", \"Mowris\", 8, null, null, 49, session);\n\t\tpopulateAssociate(478, \"Harry\", \"Epstein\", 6, null, null, 49, session);\n\t\tpopulateAssociate(479, \"Jose\", \"Perez\", 6, null, null, 49, session);\n\t\tpopulateAssociate(480, \"Igor\", \"Artemowicz\", 6, null, null, 49, session);\n\t\tpopulateAssociate(481, \"Getasew\", \"Ashebir\", 6, null, null, 49, session);\n\t\tpopulateAssociate(482, \"Andrew\", \"Chau\", 6, null, null, 49, session);\n\t\tpopulateAssociate(483, \"Declan\", \"Ayres\", 6, null, null, 49, session);\n\t\tpopulateAssociate(484, \"Keerthana\", \"Chandran\", 6, null, null, 49, session);\n\t\tpopulateAssociate(485, \"Andrew\", \"Crenwelge\", 6, null, null, 49, session);\n\t\tpopulateAssociate(486, \"Ofer\", \"Rosen\", 6, null, null, 49, session);\n\t\tpopulateAssociate(487, \"Isaac\", \"Manayath\", 6, null, null, 49, session);\n\n\t\t// 1712 dec11 usf\n\t\tpopulateAssociate(488, \"Shane\", \"Sistoza\", 6, null, null, 50, session);\n\t\tpopulateAssociate(489, \"Kevin\", \"Curley\", 6, null, null, 50, session);\n\t\tpopulateAssociate(490, \"Alexander\", \"Kent\", 6, null, null, 50, session);\n\t\tpopulateAssociate(491, \"Jordan\", \"DeLong\", 6, null, null, 50, session);\n\t\tpopulateAssociate(492, \"Michael\", \"Crawford\", 6, null, null, 50, session);\n\t\tpopulateAssociate(493, \"Robert\", \"Kee\", 6, null, null, 50, session);\n\t\tpopulateAssociate(494, \"Eric\", \"Webb\", 6, null, null, 50, session);\n\t\tpopulateAssociate(495, \"Simon\", \"Tice\", 6, null, null, 50, session);\n\t\tpopulateAssociate(496, \"Charles\", \"Harris\", 6, null, null, 50, session);\n\t\tpopulateAssociate(497, \"Olayinka\", \"Ewumi\", 6, null, null, 50, session);\n\t\tpopulateAssociate(498, \"Daniel\", \"Robinson\", 6, null, null, 50, session);\n\t\tpopulateAssociate(499, \"Richard\", \"Lewis\", 6, null, null, 50, session);\n\t\tpopulateAssociate(500, \"Wendy\", \"Tsai\", 6, null, null, 50, session);\n\t\tpopulateAssociate(501, \"Carter\", \"Taylor\", 6, null, null, 50, session);\n\t\tpopulateAssociate(502, \"James\", \"Holzer\", 6, null, null, 50, session);\n\t\tpopulateAssociate(503, \"Tyler\", \"Dresselhouse\", 6, null, null, 50, session);\n\t\tpopulateAssociate(504, \"Michael\", \"Correia\", 6, null, null, 50, session);\n\t\tpopulateAssociate(505, \"Francisco\", \"Palomino\", 6, null, null, 50, session);\n\t\tpopulateAssociate(506, \"Allan\", \"Poindexter\", 6, null, null, 50, session);\n\t\tpopulateAssociate(507, \"Dylan\", \"Britton\", 6, null, null, 50, session);\n\t\tpopulateAssociate(508, \"David\", \"Rodriguez\", 6, null, null, 50, session);\n\t\tpopulateAssociate(509, \"Miles\", \"Jackson\", 6, null, null, 50, session);\n\n\t\t// 1712 dec18\n\t\tpopulateAssociate(510, \"Ahmad\", \"Naser\", 6, null, null, 51, session);\n\n\t\t// 1801 jan08\n\t\tpopulateAssociate(511, \"John\", \"Murray\", 8, null, null, 52, session);\n\t\tpopulateAssociate(512, \"Jason\", \"Thompson\", 6, null, null, 52, session);\n\t\tpopulateAssociate(513, \"Wesley\", \"Turner\", 8, null, null, 52, session);\n\t\tpopulateAssociate(514, \"Rafael\", \"Sanchez\", 6, null, null, 52, session);\n\t\tpopulateAssociate(515, \"Tuan\", \"Nguyen\", 6, null, null, 52, session);\n\t\tpopulateAssociate(516, \"Randy\", \"Nicholson\", 6, null, null, 52, session);\n\t\tpopulateAssociate(517, \"Nishatkumar\", \"Patel\", 6, null, null, 52, session);\n\t\tpopulateAssociate(518, \"Anthony\", \"Filippo\", 6, null, null, 52, session);\n\t\tpopulateAssociate(519, \"Zak\", \"Kimmell\", 6, null, null, 52, session);\n\t\tpopulateAssociate(520, \"Frank\", \"Pagalos\", 6, null, null, 52, session);\n\t\tpopulateAssociate(521, \"Joshua\", \"Veal, Briscoe\", 8, null, null, 52, session);\n\t\tpopulateAssociate(522, \"Sonika\", \"Vasanth\", 6, null, null, 52, session);\n\t\tpopulateAssociate(523, \"Bret\", \"Hof\", 6, null, null, 52, session);\n\t\tpopulateAssociate(524, \"Victor\", \"Akellian\", 6, null, null, 52, session);\n\t\tpopulateAssociate(525, \"Kyle\", \"Bennett\", 6, null, null, 52, session);\n\t\tpopulateAssociate(526, \"Shawn\", \"Gavin\", 6, null, null, 52, session);\n\t\tpopulateAssociate(527, \"Anh\", \"Nguyen\", 6, null, null, 52, session);\n\t\tpopulateAssociate(528, \"Kevin\", \"Ong\", 6, null, null, 52, session);\n\t\tpopulateAssociate(529, \"Nigel\", \"Cyril\", 6, null, null, 52, session);\n\t\tpopulateAssociate(530, \"Jeury\", \"Lugo\", 6, null, null, 52, session);\n\t\tpopulateAssociate(531, \"Godson\", \"Ezeaka\", 6, null, null, 52, session);\n\t\tpopulateAssociate(532, \"Vikingur\", \"Oskarsson\", 6, null, null, 52, session);\n\t\tpopulateAssociate(533, \"Casey\", \"Lorenzen\", 6, null, null, 52, session);\n\t\tpopulateAssociate(534, \"Jierong\", \"Liu\", 6, null, null, 52, session);\n\t\tpopulateAssociate(535, \"Varun\", \"Bhatia\", 8, null, null, 52, session);\n\t\tpopulateAssociate(536, \"Jada\", \"Brown\", 6, null, null, 52, session);\n\t\tpopulateAssociate(537, \"Daniel\", \"Martinez\", 6, null, null, 52, session);\n\t\tpopulateAssociate(538, \"Austin\", \"Comb\", 6, null, null, 52, session);\n\t\tpopulateAssociate(539, \"John\", \"Gallego\", 6, null, null, 52, session);\n\t\tpopulateAssociate(540, \"Justin\", \"Meinecke\", 6, null, null, 52, session);\n\t\tpopulateAssociate(541, \"Marcus\", \"Anderson\", 6, null, null, 52, session);\n\t\tpopulateAssociate(542, \"Sukrins\", \"Shrestha\", 6, null, null, 52, session);\n\t\tpopulateAssociate(543, \"Nicholas\", \"Birchfield\", 6, null, null, 52, session);\n\t\tpopulateAssociate(544, \"Bryson\", \"Sinquefield\", 6, null, null, 52, session);\n\n\t\t// 1801 jan22 apqc\n\t\tpopulateAssociate(545, \"Mohammad\", \"Rahman\", 6, null, null, 53, session);\n\t\tpopulateAssociate(546, \"Hassan\", \"Kazmi\", 6, null, null, 53, session);\n\t\tpopulateAssociate(547, \"Kamel\", \"Berrani\", 6, null, null, 53, session);\n\t\tpopulateAssociate(548, \"Sufiyan\", \"Camara\", 6, null, null, 53, session);\n\t\tpopulateAssociate(549, \"Christian\", \"Diaz\", 6, null, null, 53, session);\n\t\tpopulateAssociate(550, \"Richard\", \"Rosario\", 6, null, null, 53, session);\n\t\tpopulateAssociate(551, \"Heriberto\", \"Cortes\", 6, null, null, 53, session);\n\t\tpopulateAssociate(552, \"Amr\", \"Hosny\", 6, null, null, 53, session);\n\t\tpopulateAssociate(553, \"Parth\", \"Mehta\", 6, null, null, 53, session);\n\n\t\t// 1801 jan29\n\t\tpopulateAssociate(554, \"Christopher\", \"Browning\", 6, null, null, 54, session);\n\t\tpopulateAssociate(555, \"Matthew\", \"Johnson\", 6, null, null, 54, session);\n\t\tpopulateAssociate(556, \"Calvin\", \"Zheng\", 6, null, null, 54, session);\n\t\tpopulateAssociate(557, \"Hyunjae\", \"Song\", 6, null, null, 54, session);\n\t\tpopulateAssociate(558, \"Matthew\", \"Humphrey\", 6, null, null, 54, session);\n\t\tpopulateAssociate(559, \"Marcus\", \"Gula\", 6, null, null, 54, session);\n\t\tpopulateAssociate(560, \"Sawyer\", \"Novak\", 6, null, null, 54, session);\n\t\tpopulateAssociate(561, \"Mitchell\", \"Reyes\", 6, null, null, 54, session);\n\t\tpopulateAssociate(562, \"Joseph\", \"Tursi\", 6, null, null, 54, session);\n\t\tpopulateAssociate(563, \"Cuong\", \"Ngo\", 6, null, null, 54, session);\n\n\t\t// 1802 feb05\n\t\tpopulateAssociate(564, \"Isaac\", \"Mthenjane\", 6, null, null, 55, session);\n\t\tpopulateAssociate(565, \"Tommy\", \"Hoang\", 6, null, null, 55, session);\n\t\tpopulateAssociate(566, \"Navroop\", \"Hundal\", 6, null, null, 55, session);\n\t\tpopulateAssociate(567, \"Shafkat\", \"Haque\", 6, null, null, 55, session);\n\n\t\t// 1802 feb12 apusf\n\t\tpopulateAssociate(568, \"Martin\", \"Remiasz\", 6, null, null, 57, session);\n\t\tpopulateAssociate(569, \"Madison\", \"Seffrin\", 6, null, null, 57, session);\n\t\tpopulateAssociate(570, \"Peter\", \"John\", 8, null, null, 57, session);\n\t\tpopulateAssociate(571, \"Christine\", \"Jang\", 6, null, null, 57, session);\n\t\tpopulateAssociate(572, \"Angel\", \"Jimenez\", 6, null, null, 57, session);\n\t\tpopulateAssociate(573, \"Nicholas\", \"Durepo\", 6, null, null, 57, session);\n\t\tpopulateAssociate(574, \"Alexander\", \"George\", 6, null, null, 57, session);\n\t\tpopulateAssociate(575, \"Tomer\", \"Braff\", 6, null, null, 57, session);\n\t\tpopulateAssociate(576, \"Milad\", \"Ghoreishi\", 6, null, null, 57, session);\n\t\tpopulateAssociate(577, \"Mohammad\", \"Khan\", 6, null, null, 57, session);\n\t\tpopulateAssociate(578, \"Ahmad\", \"Tokhi\", 6, null, null, 57, session);\n\t\tpopulateAssociate(579, \"Scott\", \"Bennett\", 6, null, null, 57, session);\n\t\tpopulateAssociate(580, \"Dominic\", \"Nguyen\", 6, null, null, 57, session);\n\t\tpopulateAssociate(581, \"Kevin\", \"Aiyewumi\", 6, null, null, 57, session);\n\t\tpopulateAssociate(582, \"Johne\", \"Vang\", 6, null, null, 57, session);\n\t\tpopulateAssociate(583, \"Ahmed\", \"Salem\", 6, null, null, 57, session);\n\t\tpopulateAssociate(584, \"Matthew\", \"Schwab\", 6, null, null, 57, session);\n\t\tpopulateAssociate(585, \"Alan\", \"Butler\", 6, null, null, 57, session);\n\n\t\t// 1802 feb26\n\t\tpopulateAssociate(586, \"Glenn\", \"Pantaleon\", 6, null, null, null, session);\n\t\tpopulateAssociate(587, \"Patrick\", \"Geiger\", 6, null, null, null, session);\n\t\tpopulateAssociate(588, \"German\", \"Fonseca\", 6, null, null, null, session);\n\t\tpopulateAssociate(589, \"Sebastian\", \"Webb\", 6, null, null, null, session);\n\n\t\t// 1706 jun19 salesforce\n\t\tpopulateAssociate(590, \"Tim\", \"Willis\", 11, 577, 577, 22, session);\n\t\tpopulateAssociate(591, \"Amber\", \"Lee\", 11, 577, 577, 22, session);\n\t\tpopulateAssociate(592, \"Matthew\", \"Ya\", 11, 577, 577, 22, session);\n\t\tpopulateAssociate(593, \"Naeem\", \"T, Pearson\", 11, 577, 577, 22, session);\n\t\tpopulateAssociate(594, \"Angeline\", \"Tamayo\", 1, 577, 577, 22, session);\n\t\tpopulateAssociate(595, \"mateusz\", \"rajski\", 11, 577, 577, 22, session);\n\t\tpopulateAssociate(596, \"Conor\", \"Oliver\", 11, 577, 577, 22, session);\n\t\tpopulateAssociate(597, \"Clay\", \"Eckman\", 11, 577, 577, 22, session);\n\t\tpopulateAssociate(598, \"Jude\", \"Amagoh\", 12, 577, 577, 22, session);\n\t\tpopulateAssociate(599, \"Martin\", \"Rivera\", 11, 577, 577, 22, session);\n\t\tpopulateAssociate(600, \"Ryan\", \"Sicurella\", 11, 577, 577, 22, session);\n\t\tpopulateAssociate(601, \"Olamide\", \"Olaniran\", 11, 577, 577, 22, session);\n\t\tpopulateAssociate(602, \"Tenzin\", \"Tsagong\", 11, 577, 577, 22, session);\n\t\tpopulateAssociate(603, \"Jay\", \"McDoniel\", 11, 577, 577, 22, session);\n\t\tpopulateAssociate(604, \"Matthew\", \"Nelson\", 11, 577, 577, 22, session);\n\t\tpopulateAssociate(605, \"Joshua\", \"Ward\", 11, 577, 577, 22, session);\n\t\tpopulateAssociate(606, \"Robert\", \"Jones, Jr\", 11, 577, 577, 22, session);\n\n\t\t// 1706 jun26 dynamics\n\t\tpopulateAssociate(607, \"Zach\", \"Eggleton\", 11, 577, 577, 23, session);\n\t\tpopulateAssociate(608, \"Ryan\", \"Brown\", 11, 577, 577, 23, session);\n\t\tpopulateAssociate(609, \"Josue\", \"Cortes\", 12, 577, 577, 23, session);\n\t\tpopulateAssociate(610, \"Kurtwood\", \"Greene, Jr.\", 11, 577, 577, 23, session);\n\t\tpopulateAssociate(611, \"Tina\", \"Holbert\", 12, 577, 577, 23, session);\n\t\tpopulateAssociate(612, \"David\", \"Hofreiter\", 11, 577, 577, 23, session);\n\t\tpopulateAssociate(613, \"Alexis\", \"Flores\", 11, 577, 577, 23, session);\n\n\t\t// 1706 jun26 java\n\t\tpopulateAssociate(614, \"Carl\", \"Chan\", 5, 19, 19, 24, session);\n\t\tpopulateAssociate(615, \"Edgar\", \"Munoz\", 5, 19, 19, 24, session);\n\t\tpopulateAssociate(616, \"Kamaljeet\", \"Kaur\", 2, 19, 19, 24, session);\n\t\tpopulateAssociate(617, \"Sandip\", \"Kaur\", 5, 19, 19, 24, session);\n\t\tpopulateAssociate(618, \"Alex\", \"Lapeiretta\", 5, 19, 19, 24, session);\n\t\tpopulateAssociate(619, \"SiuHung\", \"Ng\", 5, 19, 19, 24, session);\n\t\tpopulateAssociate(620, \"Hoyin\", \"Ki\", 5, 19, 19, 24, session);\n\t\tpopulateAssociate(621, \"Stephan\", \"Kritikos\", 2, 17, 17, 24, session);\n\t\tpopulateAssociate(622, \"Adebola\", \"Adesina\", 5, 19, 19, 24, session);\n\t\tpopulateAssociate(623, \"Timothy\", \"Gillette\", 5, 19, 19, 24, session);\n\t\tpopulateAssociate(624, \"Orando\", \"Simpson\", 5, 19, 19, 24, session);\n\t\tpopulateAssociate(625, \"Pedro\", \"Garboza\", 5, 19, 19, 24, session);\n\t\tpopulateAssociate(626, \"Saurabh\", \"Kaura\", 5, 19, 19, 24, session);\n\t\tpopulateAssociate(627, \"Patrice\", \"Leckie\", 5, 19, 19, 24, session);\n\n\t\t// 1707 jul05ap\n\t\tpopulateAssociate(628, \"Craig\", \"Shefchek\", 2, 577, 577, 26, session);\n\t\tpopulateAssociate(629, \"Justin\", \"Priester\", 11, 577, 577, 26, session);\n\t\tpopulateAssociate(630, \"Brandon\", \"Carruth\", 5, 577, 577, 26, session);\n\t\tpopulateAssociate(631, \"Siddharth\", \"Desai\", 11, 577, 577, 26, session);\n\t\tpopulateAssociate(632, \"Stephanie\", \"Metts\", 11, 577, 577, 26, session);\n\t\tpopulateAssociate(633, \"Eric\", \"O Brocki\", 2, 577, 577, 26, session);\n\t\tpopulateAssociate(634, \"Jordan\", \"Knight\", 2, 577, 577, 26, session);\n\t\tpopulateAssociate(635, \"Diego\", \"Santamaria\", 2, 577, 577, 26, session);\n\t\tpopulateAssociate(636, \"Kyle\", \"Bennett\", 2, 577, 577, 26, session);\n\t\tpopulateAssociate(637, \"Jeffrey\", \"Samson\", 2, 577, 577, 26, session);\n\t\tpopulateAssociate(638, \"Nicholas\", \"Hansen\", 5, 577, 577, 26, session);\n\t\tpopulateAssociate(639, \"Andrew\", \"Duncan\", 11, 577, 577, 26, session);\n\t\tpopulateAssociate(640, \"Scott\", \"Wolf\", 5, 577, 577, 26, session);\n\t\tpopulateAssociate(641, \"Dirk\", \"Enthoven\", 5, 577, 577, 26, session);\n\n\t\t// 1707 jul10 pega\n\t\tpopulateAssociate(642, \"Alexander\", \"Fok\", 5, 577, 577, 27, session);\n\t\tpopulateAssociate(643, \"Naim, Zhum\", \"Chau\", 11, 577, 577, 27, session);\n\t\tpopulateAssociate(644, \"Shu, jin\", \"Wong\", 11, 577, 577, 27, session);\n\t\tpopulateAssociate(645, \"Elliot\", \"Chen\", 11, 577, 577, 27, session);\n\t\tpopulateAssociate(646, \"Carlos\", \"Gastelum\", 11, 577, 577, 27, session);\n\t\tpopulateAssociate(647, \"Alexander\", \"Quion\", 12, 577, 577, 27, session);\n\t\tpopulateAssociate(648, \"Carson\", \"Stephens\", 11, 577, 577, 27, session);\n\t\tpopulateAssociate(649, \"Devon\", \"Pankratz\", 11, 577, 577, 27, session);\n\t\tpopulateAssociate(650, \"Martin\", \"Delira\", 11, 577, 577, 27, session);\n\t\tpopulateAssociate(651, \"Jacob\", \"Maynard\", 11, 577, 577, 27, session);\n\t\tpopulateAssociate(652, \"Wendell\", \"Phipps\", 11, 577, 577, 27, session);\n\t\tpopulateAssociate(653, \"Bryan\", \"Chen\", 11, 577, 577, 27, session);\n\t\tpopulateAssociate(654, \"Andrew\", \"Clark\", 12, 577, 577, 27, session);\n\t\tpopulateAssociate(655, \"Haihoua\", \"Yang\", 11, 577, 577, 27, session);\n\t\tpopulateAssociate(656, \"Matthew\", \"Seifert\", 11, 577, 577, 27, session);\n\t\tpopulateAssociate(657, \"Tae\", \"Song\", 11, 577, 577, 27, session);\n\t\tpopulateAssociate(658, \"Dillon\", \"Vicente\", 11, 577, 577, 27, session);\n\t\tpopulateAssociate(659, \"Hung\", \"Le\", 5, 577, 577, 27, session);\n\t\tpopulateAssociate(660, \"Raymond\", \"Bejarano\", 5, 577, 577, 27, session);\n\t\tpopulateAssociate(661, \"Jayden\", \"Olsen\", 12, 577, 577, 27, session);\n\n\t\t// 1707 jul24 java\n\t\tpopulateAssociate(662, \"Alex\", \"Cobian\", 5, 458, 458, 28, session);\n\t\tpopulateAssociate(663, \"Hunter\", \"Wichelt\", 4, 577, 577, 28, session);\n\t\tpopulateAssociate(664, \"Christi\", \"Zimmer\", 5, 577, 577, 28, session);\n\t\tpopulateAssociate(665, \"Christopher\", \"Palmour\", 5, 577, 577, 28, session);\n\t\tpopulateAssociate(666, \"Alejandro\", \"Alvarado\", 5, 577, 577, 28, session);\n\t\tpopulateAssociate(667, \"Julia\", \"Arthurs\", 5, 17, 17, 28, session);\n\t\tpopulateAssociate(668, \"William\", \"Lewis\", 5, 458, 458, 28, session);\n\t\tpopulateAssociate(669, \"Daniel\", \"Jordan\", 2, 458, 458, 28, session);\n\t\tpopulateAssociate(670, \"Josh\", \"Post\", 11, 577, 577, 28, session);\n\t\tpopulateAssociate(671, \"Davis\", \"Zabiyaka\", 4, 577, 577, 28, session);\n\t\tpopulateAssociate(672, \"Tin\", \"Van\", 5, 458, 458, 28, session);\n\t\tpopulateAssociate(673, \"Haisam\", \"Elkewidy\", 2, 458, 458, 28, session);\n\t\tpopulateAssociate(674, \"Eric\", \"Cha\", 12, 458, 458, 28, session);\n\t\tpopulateAssociate(675, \"Caleb\", \"Herboth\", 4, 577, 577, 28, session);\n\t\tpopulateAssociate(676, \"Kevin\", \"Liu\", 4, 577, 577, 28, session);\n\t\tpopulateAssociate(677, \"Benjamin\", \"Noonan\", 5, 458, 458, 28, session);\n\t\tpopulateAssociate(678, \"Ciaran\", \"Slattery\", 5, 458, 458, 28, session);\n\t\tpopulateAssociate(679, \"Amitai\", \"Ilan\", 11, 577, 577, 28, session);\n\t\tpopulateAssociate(680, \"Madrone\", \"Goldman\", 11, 577, 577, 28, session);\n\t\tpopulateAssociate(681, \"Vincent\", \"Commero\", 5, 577, 577, 28, session);\n\t\tpopulateAssociate(682, \"Patrick\", \"Jackson\", 5, 577, 577, 28, session);\n\t\tpopulateAssociate(683, \"Brook\", \"Ambaw\", 4, 577, 577, 28, session);\n\t\tpopulateAssociate(684, \"Evan\", \"Molinelli\", 4, 577, 577, 28, session);\n\t\tpopulateAssociate(685, \"Roberto\", \"Alvarez, Jr.\", 4, 577, 577, 28, session);\n\t\tpopulateAssociate(686, \"Patrick\", \"Muldoon\", 4, 577, 577, 28, session);\n\t\tpopulateAssociate(687, \"Brett\", \"Birth\", 2, 458, 458, 28, session);\n\t\tpopulateAssociate(688, \"Huriel\", \"Hernandez\", 5, 577, 577, 8, session);\n\t\tpopulateAssociate(689, \"Omokorede\", \"Allen\", 4, 577, 577, 28, session);\n\t\tpopulateAssociate(690, \"Kelvin\", \"Lane\", 11, 577, 577, 28, session);\n\t\tpopulateAssociate(691, \"Ryan\", \"Homa\", 4, 577, 577, 28, session);\n\t\tpopulateAssociate(692, \"Stephan\", \"Fils, Aime\", 11, 577, 577, 28, session);\n\t\tpopulateAssociate(693, \"Jackson\", \"Demaree\", 5, 577, 577, 28, session);\n\t\tpopulateAssociate(694, \"Christian\", \"Roach\", 2, 577, 577, 28, session);\n\t\tpopulateAssociate(695, \"Eleazar\", \"Rosales\", 5, 17, 17, 28, session);\n\t\tpopulateAssociate(696, \"Patrick\", \"Burns\", 5, 458, 458, 28, session);\n\t\tpopulateAssociate(697, \"William\", \"Clayton\", 5, 458, 458, 28, session);\n\t\tpopulateAssociate(698, \"Javier\", \"Tello\", 4, 577, 577, 28, session);\n\t\tpopulateAssociate(699, \"Nicholas\", \"Ruha\", 5, 458, 458, 28, session);\n\t\tpopulateAssociate(700, \"Eric\", \"Hontz\", 4, 577, 577, 28, session);\n\t\tpopulateAssociate(701, \"Nora\", \"Duckett\", 11, 577, 577, 28, session);\n\n\t\t// 1708 aug07 java\n\t\tpopulateAssociate(702, \"Michael\", \"Bauer\", 12, 1177, 1177, 30, session);\n\t\tpopulateAssociate(703, \"Theara\", \"Ya\", 2, 1177, 1177, 30, session);\n\t\tpopulateAssociate(704, \"Isaac\", \"Shanholtz\", 2, 1177, 1177, 30, session);\n\t\tpopulateAssociate(705, \"Jeremy\", \"Wagner\", 2, 1177, 1177, 30, session);\n\t\tpopulateAssociate(706, \"Kathrine\", \"Hewlett\", 2, 1177, 1177, 30, session);\n\t\tpopulateAssociate(707, \"Matthew\", \"Hill\", 2, 1177, 1177, 30, session);\n\t\tpopulateAssociate(708, \"Thomas\", \"Palmer\", 2, 1177, 1177, 30, session);\n\t\tpopulateAssociate(709, \"Joshua\", \"Cheung\", 2, 1177, 1177, 30, session);\n\n\t\t// 1708 aug14 java\n\t\tpopulateAssociate(710, \"Katherine\", \"Bixby\", 1, 577, 577, 31, session);\n\t\tpopulateAssociate(711, \"Joshua\", \"Locklear\", 1, 577, 577, 31, session);\n\t\tpopulateAssociate(712, \"Nathaniel\", \"Koszuta\", 1, 577, 577, 31, session);\n\t\tpopulateAssociate(713, \"Daniel\", \"Fairbanks\", 1, 577, 577, 31, session);\n\t\tpopulateAssociate(714, \"Andy\", \"Zheng\", 1, 577, 577, 31, session);\n\t\tpopulateAssociate(715, \"Emma\", \"Bownes\", 1, 577, 577, 31, session);\n\t\tpopulateAssociate(716, \"Andrew\", \"Bonds\", 1, 577, 577, 31, session);\n\t\tpopulateAssociate(717, \"Will\", \"Underwood\", 1, 577, 577, 31, session);\n\t\tpopulateAssociate(718, \"Matthew\", \"Prass\", 1, 577, 577, 31, session);\n\t\tpopulateAssociate(719, \"Yang\", \"Cui\", 12, 577, 577, 31, session);\n\t\tpopulateAssociate(720, \"Steven\", \"Leighton\", 1, 577, 577, 31, session);\n\t\tpopulateAssociate(721, \"Connor\", \"Monson\", 1, 577, 577, 31, session);\n\t\tpopulateAssociate(722, \"Vladimir\", \"Yevseenko\", 1, 577, 577, 31, session);\n\t\tpopulateAssociate(723, \"Lauren\", \"Wallace\", 1, 577, 577, 31, session);\n\t\tpopulateAssociate(724, \"Trevor\", \"Lory\", 1, 577, 577, 31, session);\n\t\tpopulateAssociate(725, \"Allan\", \"Jones\", 1, 577, 577, 31, session);\n\n\t\t// 1709 sept11 .net\n\t\tpopulateAssociate(726, \"Daniel\", \"Damudt\", 1, 577, 577, 33, session);\n\t\tpopulateAssociate(727, \"Rafael\", \"Delgado\", 1, 577, 577, 33, session);\n\t\tpopulateAssociate(728, \"Esteban\", \"Diaz\", 1, 577, 577, 33, session);\n\t\tpopulateAssociate(729, \"Andres\", \"Gonzalez\", 1, 577, 577, 33, session);\n\t\tpopulateAssociate(730, \"Josue\", \"Perez\", 1, 577, 577, 33, session);\n\t\tpopulateAssociate(731, \"Nelson\", \"Miranda\", 1, 577, 577, 33, session);\n\t\tpopulateAssociate(732, \"Yosiris\", \"Andujar\", 1, 577, 577, 33, session);\n\t\tpopulateAssociate(733, \"Brian\", \"Matta\", 1, 577, 577, 33, session);\n\t\tpopulateAssociate(734, \"Alexie\", \"Falu\", 1, 577, 577, 33, session);\n\t\tpopulateAssociate(735, \"Miguel\", \"Melendez\", 1, 577, 577, 33, session);\n\t\tpopulateAssociate(736, \"Gabriel\", \"Perez\", 1, 577, 577, 33, session);\n\t\tpopulateAssociate(737, \"Guillermo\", \"Vargas\", 1, 577, 577, 33, session);\n\n\t\t// 1709 sep18 java\n\t\tpopulateAssociate(738, \"Elvis\", \"Yang\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(739, \"William\", \"Deala\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(740, \"Jibril\", \"Burleigh\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(741, \"rene\", \"jacques\", 12, 1057, 1057, 35, session);\n\t\tpopulateAssociate(742, \"Benjamin\", \"Rogers\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(743, \"Regan\", \"Bunning\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(744, \"Manuel\", \"Tenorio\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(745, \"Raphael\", \"Sarmiento\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(746, \"William\", \"Burns\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(747, \"Patrick\", \"Runyan\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(748, \"Tri\", \"Vo\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(749, \"Clement\", \"Lin\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(750, \"Samuel\", \"Wood\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(751, \"Brandon\", \"Fitzpatrick\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(752, \"James\", \"Kim\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(753, \"Allen\", \"Arce\", 1, 1057, 1057, 35, session);\n\t\tpopulateAssociate(754, \"Jay\", \"Wang\", 1, 1057, 1057, 35, session);\n\n\t\t// 1710 oct09 pega\n\t\tpopulateAssociate(755, \"Zoe\", \"Baker\", 12, 577, 577, 40, session);\n\t\tpopulateAssociate(756, \"Zachary\", \"Williams\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(757, \"Alfonso\", \"Logrono\", 12, 577, 577, 40, session);\n\t\tpopulateAssociate(758, \"Wilson\", \"Zhong\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(759, \"Douglas\", \"Rubio\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(760, \"Lobsang\", \"Tashi\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(761, \"Medalis\", \"Trelles\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(762, \"Diego\", \"Suarez\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(763, \"Gabriel\", \"Chartier\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(764, \"Peter\", \"Devlin\", 12, 577, 577, 40, session);\n\t\tpopulateAssociate(765, \"Jason\", \"Knighten\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(766, \"Alaa\", \"Itani\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(767, \"Daniel\", \"Martin\", 12, 577, 577, 40, session);\n\t\tpopulateAssociate(768, \"Sammy\", \"Landingin\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(769, \"John\", \"Snevily\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(770, \"Stephen\", \"Pegram\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(771, \"Michael\", \"Chen\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(772, \"Egan\", \"Dunning\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(773, \"Cyril\", \"Manayath\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(774, \"Michael\", \"Hovell\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(775, \"Alexander\", \"Dingman\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(776, \"Yul\", \"Puma\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(777, \"Ryan\", \"Hirsch\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(778, \"Schaun\", \"Billing\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(779, \"Jermykl\", \"Spencer\", 1, 577, 577, 40, session);\n\t\tpopulateAssociate(780, \"Rachel\", \"Schmidt\", 1, 577, 577, 40, session);\n\n\t\tpopulatePlacement(0, LocalDate.of(2017, 5, 31), LocalDate.of(2017, 5, 31), 577, 1247, 43, session);\n\t\tpopulatePlacement(1, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1244, 120, session);\n\t\tpopulatePlacement(2, LocalDate.of(2017, 10, 3), LocalDate.of(2017, 11, 3), 19, 1241, 622, session);\n\t\tpopulatePlacement(3, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1239, 192, session);\n\t\tpopulatePlacement(4, LocalDate.of(2017, 5, 11), null, 17, 17, 20, session);\n\t\tpopulatePlacement(5, LocalDate.of(2017, 9, 25), null, 385, 385, 94, session);\n\t\tpopulatePlacement(6, LocalDate.of(2017, 11, 6), null, 275, 275, 666, session);\n\t\tpopulatePlacement(7, LocalDate.of(2017, 10, 23), null, 1177, 1177, 642, session);\n\t\tpopulatePlacement(8, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 662, session);\n\t\tpopulatePlacement(9, LocalDate.of(2017, 10, 16), null, 458, 458, 613, session);\n\t\tpopulatePlacement(10, LocalDate.of(2017, 9, 21), LocalDate.of(2017, 9, 21), 577, 1244, 618, session);\n\t\tpopulatePlacement(11, LocalDate.of(2017, 10, 3), null, 19, 1241, 200, session);\n\t\tpopulatePlacement(12, LocalDate.of(2017, 10, 11), null, 833, 1203, 591, session);\n\t\tpopulatePlacement(13, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1244, 679, session);\n\t\tpopulatePlacement(14, LocalDate.of(2017, 10, 5), LocalDate.of(2017, 10, 5), 577, 1244, 138, session);\n\t\tpopulatePlacement(15, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1239, 639, session);\n\t\tpopulatePlacement(16, LocalDate.of(2017, 10, 12), LocalDate.of(2017, 10, 12), 577, 1240, 119, session);\n\t\tpopulatePlacement(17, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1244, 129, session);\n\t\tpopulatePlacement(18, LocalDate.of(2017, 8, 10), LocalDate.of(2017, 8, 10), 577, 1239, 53, session);\n\t\tpopulatePlacement(19, LocalDate.of(2017, 6, 14), null, 19, 14, 677, session);\n\t\tpopulatePlacement(20, LocalDate.of(2017, 11, 6), null, 275, 275, 179, session);\n\t\tpopulatePlacement(21, LocalDate.of(2017, 10, 25), null, 1211, 1213, 198, session);\n\t\tpopulatePlacement(22, LocalDate.of(2017, 10, 16), null, 19, 14, 630, session);\n\t\tpopulatePlacement(23, LocalDate.of(2017, 10, 17), null, 1057, 1061, 121, session);\n\t\tpopulatePlacement(24, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1244, 55, session);\n\t\tpopulatePlacement(25, LocalDate.of(2017, 7, 18), LocalDate.of(2017, 7, 18), 577, 1247, 188, session);\n\t\tpopulatePlacement(26, LocalDate.of(2017, 10, 16), LocalDate.of(2017, 10, 16), 745, 633, 683, session);\n\t\tpopulatePlacement(27, LocalDate.of(2017, 11, 2), LocalDate.of(2017, 11, 2), 577, 1244, 653, session);\n\t\tpopulatePlacement(28, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 675, session);\n\t\tpopulatePlacement(29, LocalDate.of(2017, 11, 2), LocalDate.of(2017, 11, 2), 577, 1244, 614, session);\n\t\tpopulatePlacement(30, LocalDate.of(2017, 10, 3), null, 19, 1241, 156, session);\n\t\tpopulatePlacement(31, LocalDate.of(2017, 9, 26), null, 1057, 1061, 96, session);\n\t\tpopulatePlacement(32, LocalDate.of(2017, 9, 11), null, 1147, 1248, 648, session);\n\t\tpopulatePlacement(33, LocalDate.of(2017, 10, 5), LocalDate.of(2017, 10, 5), 577, 1244, 130, session);\n\t\tpopulatePlacement(34, LocalDate.of(2017, 9, 21), LocalDate.of(2017, 9, 21), 577, 1247, 230, session);\n\t\tpopulatePlacement(35, LocalDate.of(2017, 11, 6), null, 223, 223, 678, session);\n\t\tpopulatePlacement(36, LocalDate.of(2017, 10, 16), null, 458, 458, 597, session);\n\t\tpopulatePlacement(37, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1244, 132, session);\n\t\tpopulatePlacement(38, LocalDate.of(2017, 8, 10), LocalDate.of(2017, 8, 10), 577, 1239, 596, session);\n\t\tpopulatePlacement(39, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1244, 77, session);\n\t\tpopulatePlacement(40, LocalDate.of(2017, 6, 29), LocalDate.of(2017, 6, 29), 577, 1245, 117, session);\n\t\tpopulatePlacement(41, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1244, 628, session);\n\t\tpopulatePlacement(42, LocalDate.of(2017, 11, 15), null, 663, 663, 147, session);\n\t\tpopulatePlacement(43, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1239, 52, session);\n\t\tpopulatePlacement(44, LocalDate.of(2017, 5, 30), null, 225, 225, 135, session);\n\t\tpopulatePlacement(45, LocalDate.of(2017, 8, 10), LocalDate.of(2017, 8, 10), 577, 1239, 165, session);\n\t\tpopulatePlacement(46, LocalDate.of(2017, 8, 14), LocalDate.of(2017, 8, 14), 577, 1244, 113, session);\n\t\tpopulatePlacement(47, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1244, 612, session);\n\t\tpopulatePlacement(48, LocalDate.of(2017, 9, 21), LocalDate.of(2017, 9, 21), 577, 1244, 42, session);\n\t\tpopulatePlacement(49, LocalDate.of(2017, 6, 15), LocalDate.of(2017, 6, 15), 577, 1247, 671, session);\n\t\tpopulatePlacement(50, LocalDate.of(2017, 11, 2), LocalDate.of(2017, 11, 2), 577, 1239, 154, session);\n\t\tpopulatePlacement(51, LocalDate.of(2017, 8, 10), LocalDate.of(2017, 8, 10), 577, 1244, 86, session);\n\t\tpopulatePlacement(52, LocalDate.of(2017, 8, 10), LocalDate.of(2017, 8, 10), 577, 1249, 649, session);\n\t\tpopulatePlacement(53, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 658, session);\n\t\tpopulatePlacement(54, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 175, session);\n\t\tpopulatePlacement(55, LocalDate.of(2017, 10, 12), LocalDate.of(2017, 10, 12), 577, 1250, 139, session);\n\t\tpopulatePlacement(56, LocalDate.of(2017, 8, 14), LocalDate.of(2017, 8, 14), 577, 1244, 191, session);\n\t\tpopulatePlacement(57, LocalDate.of(2017, 9, 7), LocalDate.of(2017, 9, 7), 577, 1239, 615, session);\n\t\tpopulatePlacement(58, LocalDate.of(2017, 10, 3), null, 19, 1241, 54, session);\n\t\tpopulatePlacement(59, LocalDate.of(2017, 5, 30), null, 225, 225, 16, session);\n\t\tpopulatePlacement(60, LocalDate.of(2017, 5, 8), null, 1239, 17, 695, session);\n\t\tpopulatePlacement(61, LocalDate.of(2017, 10, 23), null, 559, 1252, 645, session);\n\t\tpopulatePlacement(62, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 65, session);\n\t\tpopulatePlacement(63, LocalDate.of(2017, 6, 29), LocalDate.of(2017, 6, 29), 577, 1243, 128, session);\n\t\tpopulatePlacement(64, LocalDate.of(2017, 8, 10), LocalDate.of(2017, 8, 10), 577, 1239, 700, session);\n\t\tpopulatePlacement(65, LocalDate.of(2017, 11, 2), LocalDate.of(2017, 11, 2), 577, 1244, 23, session);\n\t\tpopulatePlacement(66, LocalDate.of(2017, 5, 31), LocalDate.of(2017, 5, 31), 577, 1243, 684, session);\n\t\tpopulatePlacement(67, LocalDate.of(2017, 11, 2), LocalDate.of(2017, 11, 2), 577, 1239, 99, session);\n\t\tpopulatePlacement(68, LocalDate.of(2017, 8, 22), null, 1057, 1061, 108, session);\n\t\tpopulatePlacement(69, LocalDate.of(2017, 11, 29), null, 462, 462, 108, session);\n\t\tpopulatePlacement(70, LocalDate.of(2017, 9, 5), null, 462, 462, 124, session);\n\t\tpopulatePlacement(71, LocalDate.of(2017, 8, 10), LocalDate.of(2017, 8, 10), 577, 1239, 62, session);\n\t\tpopulatePlacement(72, LocalDate.of(2017, 6, 29), LocalDate.of(2017, 6, 29), 577, 1243, 144, session);\n\t\tpopulatePlacement(73, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1239, 655, session);\n\t\tpopulatePlacement(74, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 620, session);\n\t\tpopulatePlacement(75, LocalDate.of(2017, 10, 3), null, 19, 1241, 97, session);\n\t\tpopulatePlacement(76, LocalDate.of(2017, 8, 9), null, 247, 247, 659, session);\n\t\tpopulatePlacement(77, LocalDate.of(2017, 10, 23), null, 1177, 1177, 663, session);\n\t\tpopulatePlacement(78, LocalDate.of(2017, 11, 2), LocalDate.of(2017, 11, 2), 577, 1244, 688, session);\n\t\tpopulatePlacement(79, LocalDate.of(2017, 11, 6), null, 458, 458, 37, session);\n\t\tpopulatePlacement(80, LocalDate.of(2017, 8, 31), null, 17, 17, 37, session);\n\t\tpopulatePlacement(81, LocalDate.of(2017, 5, 15), LocalDate.of(2017, 8, 18), 17, 17, 693, session);\n\t\tpopulatePlacement(82, LocalDate.of(2017, 11, 6), null, 275, 275, 651, session);\n\t\tpopulatePlacement(83, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 67, session);\n\t\tpopulatePlacement(84, LocalDate.of(2017, 10, 23), null, 559, 1252, 67, session);\n\t\tpopulatePlacement(85, LocalDate.of(2017, 8, 21), LocalDate.of(2017, 9, 28), 247, 247, 133, session);\n\t\tpopulatePlacement(86, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1247, 140, session);\n\t\tpopulatePlacement(87, LocalDate.of(2017, 8, 14), LocalDate.of(2017, 8, 14), 577, 1244, 598, session);\n\t\tpopulatePlacement(88, LocalDate.of(2017, 11, 2), LocalDate.of(2017, 11, 2), 577, 1244, 194, session);\n\t\tpopulatePlacement(89, LocalDate.of(2017, 9, 7), LocalDate.of(2017, 9, 7), 577, 1239, 603, session);\n\t\tpopulatePlacement(90, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1244, 51, session);\n\t\tpopulatePlacement(91, LocalDate.of(2017, 10, 23), null, 559, 1252, 51, session);\n\t\tpopulatePlacement(92, LocalDate.of(2017, 6, 19), LocalDate.of(2017, 9, 14), 225, 225, 66, session);\n\t\tpopulatePlacement(93, LocalDate.of(2017, 7, 18), LocalDate.of(2017, 7, 18), 577, 1247, 91, session);\n\t\tpopulatePlacement(94, LocalDate.of(2017, 10, 12), LocalDate.of(2017, 10, 12), 577, 1251, 116, session);\n\t\tpopulatePlacement(95, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1244, 159, session);\n\t\tpopulatePlacement(96, LocalDate.of(2017, 9, 7), LocalDate.of(2017, 9, 7), 577, 1239, 73, session);\n\t\tpopulatePlacement(97, LocalDate.of(2017, 8, 21), null, 1211, 1213, 59, session);\n\t\tpopulatePlacement(98, LocalDate.of(2017, 6, 15), LocalDate.of(2017, 6, 15), 577, 1245, 196, session);\n\t\tpopulatePlacement(99, LocalDate.of(2017, 9, 21), LocalDate.of(2017, 9, 21), 577, 1239, 160, session);\n\t\tpopulatePlacement(100, LocalDate.of(2017, 9, 7), LocalDate.of(2017, 9, 7), 577, 1244, 50, session);\n\t\tpopulatePlacement(101, LocalDate.of(2017, 6, 19), null, 225, 225, 143, session);\n\t\tpopulatePlacement(102, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1239, 89, session);\n\t\tpopulatePlacement(103, LocalDate.of(2017, 7, 18), LocalDate.of(2017, 7, 18), 577, 1249, 104, session);\n\t\tpopulatePlacement(104, LocalDate.of(2017, 8, 21), null, 247, 247, 670, session);\n\t\tpopulatePlacement(105, LocalDate.of(2017, 10, 5), LocalDate.of(2017, 10, 5), 577, 1244, 149, session);\n\t\tpopulatePlacement(106, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1239, 605, session);\n\t\tpopulatePlacement(107, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1244, 76, session);\n\t\tpopulatePlacement(108, LocalDate.of(2017, 6, 29), LocalDate.of(2017, 6, 29), 577, 1245, 667, session);\n\t\tpopulatePlacement(109, LocalDate.of(2017, 11, 6), null, 275, 275, 142, session);\n\t\tpopulatePlacement(110, LocalDate.of(2017, 8, 14), LocalDate.of(2017, 8, 14), 577, 1244, 87, session);\n\t\tpopulatePlacement(111, LocalDate.of(2017, 7, 18), LocalDate.of(2017, 7, 18), 577, 1249, 629, session);\n\t\tpopulatePlacement(112, LocalDate.of(2017, 10, 12), LocalDate.of(2017, 10, 12), 577, 1240, 45, session);\n\t\tpopulatePlacement(113, LocalDate.of(2017, 6, 28), null, 389, 389, 690, session);\n\t\tpopulatePlacement(114, LocalDate.of(2017, 10, 5), LocalDate.of(2017, 10, 5), 577, 1244, 28, session);\n\t\tpopulatePlacement(115, LocalDate.of(2017, 5, 31), LocalDate.of(2017, 5, 31), 577, 1243, 676, session);\n\t\tpopulatePlacement(116, LocalDate.of(2017, 11, 2), LocalDate.of(2017, 11, 2), 577, 1244, 75, session);\n\t\tpopulatePlacement(117, LocalDate.of(2017, 6, 29), LocalDate.of(2017, 6, 29), 577, 1245, 195, session);\n\t\tpopulatePlacement(118, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1239, 72, session);\n\t\tpopulatePlacement(119, LocalDate.of(2017, 9, 7), null, 526, 1242, 610, session);\n\t\tpopulatePlacement(120, LocalDate.of(2017, 9, 21), LocalDate.of(2017, 9, 21), 577, 1244, 171, session);\n\t\tpopulatePlacement(121, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1239, 440, session);\n\t\tpopulatePlacement(122, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1244, 167, session);\n\t\tpopulatePlacement(123, LocalDate.of(2017, 10, 25), null, 1211, 1213, 150, session);\n\t\tpopulatePlacement(124, LocalDate.of(2017, 8, 14), LocalDate.of(2017, 8, 14), 577, 1244, 161, session);\n\t\tpopulatePlacement(125, LocalDate.of(2017, 8, 10), LocalDate.of(2017, 8, 10), 577, 1244, 152, session);\n\t\tpopulatePlacement(126, LocalDate.of(2017, 8, 10), LocalDate.of(2017, 8, 10), 577, 1244, 70, session);\n\t\tpopulatePlacement(127, LocalDate.of(2017, 7, 17), null, 225, 225, 680, session);\n\t\tpopulatePlacement(128, LocalDate.of(2017, 10, 5), LocalDate.of(2017, 10, 5), 577, 1244, 40, session);\n\t\tpopulatePlacement(129, LocalDate.of(2017, 6, 15), LocalDate.of(2017, 6, 15), 577, 1247, 134, session);\n\t\tpopulatePlacement(130, LocalDate.of(2017, 8, 14), LocalDate.of(2017, 8, 14), 577, 1239, 109, session);\n\t\tpopulatePlacement(131, LocalDate.of(2017, 10, 2), null, 803, 784, 650, session);\n\t\tpopulatePlacement(132, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 599, session);\n\t\tpopulatePlacement(133, LocalDate.of(2017, 9, 21), LocalDate.of(2017, 9, 21), 577, 1244, 604, session);\n\t\tpopulatePlacement(134, LocalDate.of(2017, 9, 21), LocalDate.of(2017, 9, 21), 577, 1244, 656, session);\n\t\tpopulatePlacement(135, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 592, session);\n\t\tpopulatePlacement(136, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1244, 158, session);\n\t\tpopulatePlacement(137, LocalDate.of(2017, 8, 14), LocalDate.of(2017, 8, 14), 577, 1244, 24, session);\n\t\tpopulatePlacement(138, LocalDate.of(2017, 6, 1), null, 1177, 1177, 41, session);\n\t\tpopulatePlacement(139, LocalDate.of(2017, 6, 12), null, 17, 17, 111, session);\n\t\tpopulatePlacement(140, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1244, 78, session);\n\t\tpopulatePlacement(141, LocalDate.of(2017, 6, 29), LocalDate.of(2017, 6, 29), 577, 1245, 643, session);\n\t\tpopulatePlacement(142, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 155, session);\n\t\tpopulatePlacement(143, LocalDate.of(2017, 8, 10), LocalDate.of(2017, 8, 10), 577, 1244, 638, session);\n\t\tpopulatePlacement(144, LocalDate.of(2017, 11, 6), null, 663, 663, 699, session);\n\t\tpopulatePlacement(145, LocalDate.of(2017, 11, 6), null, 275, 275, 223, session);\n\t\tpopulatePlacement(146, LocalDate.of(2017, 11, 6), null, 223, 223, 701, session);\n\t\tpopulatePlacement(147, LocalDate.of(2017, 10, 12), LocalDate.of(2017, 10, 12), 577, 1244, 601, session);\n\t\tpopulatePlacement(148, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1244, 146, session);\n\t\tpopulatePlacement(149, LocalDate.of(2017, 9, 7), LocalDate.of(2017, 9, 7), 577, 1239, 689, session);\n\t\tpopulatePlacement(150, LocalDate.of(2017, 11, 2), LocalDate.of(2017, 11, 2), 577, 1239, 624, session);\n\t\tpopulatePlacement(151, LocalDate.of(2017, 10, 3), null, 19, 1241, 88, session);\n\t\tpopulatePlacement(152, LocalDate.of(2017, 7, 18), LocalDate.of(2017, 7, 18), 577, 1249, 696, session);\n\t\tpopulatePlacement(153, LocalDate.of(2017, 10, 16), null, 458, 458, 686, session);\n\t\tpopulatePlacement(154, LocalDate.of(2017, 11, 2), LocalDate.of(2017, 11, 2), 577, 1239, 74, session);\n\t\tpopulatePlacement(155, LocalDate.of(2017, 8, 7), LocalDate.of(2017, 10, 31), 745, 745, 25, session);\n\t\tpopulatePlacement(156, LocalDate.of(2017, 5, 11), null, 17, 17, 151, session);\n\t\tpopulatePlacement(157, LocalDate.of(2017, 8, 10), LocalDate.of(2017, 8, 10), 577, 1244, 202, session);\n\t\tpopulatePlacement(158, LocalDate.of(2018, 1, 29), null, 462, 462, 202, session);\n\t\tpopulatePlacement(159, LocalDate.of(2017, 10, 30), null, 462, 462, 625, session);\n\t\tpopulatePlacement(160, LocalDate.of(2017, 10, 3), null, 19, 1241, 177, session);\n\t\tpopulatePlacement(161, LocalDate.of(2017, 11, 2), LocalDate.of(2017, 11, 2), 577, 1247, 660, session);\n\t\tpopulatePlacement(162, LocalDate.of(2017, 10, 23), null, 1177, 1177, 105, session);\n\t\tpopulatePlacement(163, LocalDate.of(2017, 8, 9), null, 247, 247, 184, session);\n\t\tpopulatePlacement(164, LocalDate.of(2017, 9, 7), LocalDate.of(2017, 9, 7), 577, 1239, 606, session);\n\t\tpopulatePlacement(165, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1244, 685, session);\n\t\tpopulatePlacement(166, LocalDate.of(2017, 11, 2), LocalDate.of(2017, 11, 2), 577, 1244, 92, session);\n\t\tpopulatePlacement(167, LocalDate.of(2017, 8, 24), null, 509, 509, 107, session);\n\t\tpopulatePlacement(168, LocalDate.of(2017, 8, 24), null, 509, 509, 187, session);\n\t\tpopulatePlacement(169, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1240, 691, session);\n\t\tpopulatePlacement(170, LocalDate.of(2017, 11, 2), LocalDate.of(2017, 11, 2), 577, 1239, 80, session);\n\t\tpopulatePlacement(171, LocalDate.of(2017, 7, 18), LocalDate.of(2017, 7, 18), 577, 1249, 148, session);\n\t\tpopulatePlacement(172, LocalDate.of(2017, 9, 18), null, 17, 17, 600, session);\n\t\tpopulatePlacement(173, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1244, 608, session);\n\t\tpopulatePlacement(174, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 61, session);\n\t\tpopulatePlacement(175, LocalDate.of(2017, 6, 15), LocalDate.of(2017, 6, 15), 577, 1245, 110, session);\n\t\tpopulatePlacement(176, LocalDate.of(2017, 9, 25), null, 1057, 1061, 182, session);\n\t\tpopulatePlacement(177, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1239, 137, session);\n\t\tpopulatePlacement(178, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1239, 193, session);\n\t\tpopulatePlacement(179, LocalDate.of(2017, 10, 12), LocalDate.of(2017, 10, 12), 577, 1240, 626, session);\n\t\tpopulatePlacement(180, LocalDate.of(2017, 10, 3), null, 19, 1241, 118, session);\n\t\tpopulatePlacement(181, LocalDate.of(2017, 9, 7), null, 526, 1242, 640, session);\n\t\tpopulatePlacement(182, LocalDate.of(2017, 10, 30), null, 1007, 1007, 31, session);\n\t\tpopulatePlacement(183, LocalDate.of(2017, 5, 31), LocalDate.of(2017, 5, 31), 577, 1243, 153, session);\n\t\tpopulatePlacement(184, LocalDate.of(2017, 8, 14), LocalDate.of(2017, 8, 14), 577, 1244, 644, session);\n\t\tpopulatePlacement(185, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 631, session);\n\t\tpopulatePlacement(186, LocalDate.of(2017, 10, 12), LocalDate.of(2017, 10, 12), 577, 1240, 619, session);\n\t\tpopulatePlacement(187, LocalDate.of(2017, 10, 3), null, 19, 1241, 692, session);\n\t\tpopulatePlacement(188, LocalDate.of(2017, 10, 12), LocalDate.of(2017, 10, 12), 577, 1244, 632, session);\n\t\tpopulatePlacement(189, LocalDate.of(2017, 10, 12), LocalDate.of(2017, 10, 12), 577, 1240, 621, session);\n\t\tpopulatePlacement(190, LocalDate.of(2017, 11, 13), null, 19, 14, 22, session);\n\t\tpopulatePlacement(191, LocalDate.of(2017, 4, 24), null, 17, 17, 57, session);\n\t\tpopulatePlacement(192, LocalDate.of(2017, 6, 15), LocalDate.of(2017, 6, 15), 577, 1245, 21, session);\n\t\tpopulatePlacement(193, LocalDate.of(2017, 5, 11), null, 17, 17, 657, session);\n\t\tpopulatePlacement(194, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 602, session);\n\t\tpopulatePlacement(195, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1244, 164, session);\n\t\tpopulatePlacement(196, LocalDate.of(2017, 8, 14), LocalDate.of(2017, 8, 14), 577, 1244, 199, session);\n\t\tpopulatePlacement(197, LocalDate.of(2017, 10, 3), null, 19, 1241, 131, session);\n\t\tpopulatePlacement(198, LocalDate.of(2017, 8, 10), LocalDate.of(2017, 8, 10), 577, 1246, 98, session);\n\t\tpopulatePlacement(199, LocalDate.of(2017, 8, 22), null, 1057, 1061, 181, session);\n\t\tpopulatePlacement(200, LocalDate.of(2017, 9, 21), LocalDate.of(2017, 9, 21), 577, 1239, 623, session);\n\t\tpopulatePlacement(201, LocalDate.of(2017, 10, 3), null, 19, 1241, 60, session);\n\t\tpopulatePlacement(202, LocalDate.of(2017, 6, 26), null, 225, 225, 590, session);\n\t\tpopulatePlacement(203, LocalDate.of(2017, 9, 14), LocalDate.of(2017, 9, 14), 577, 1244, 672, session);\n\t\tpopulatePlacement(204, LocalDate.of(2017, 10, 16), null, 458, 458, 180, session);\n\t\tpopulatePlacement(205, LocalDate.of(2017, 11, 2), LocalDate.of(2017, 11, 2), 577, 1247, 157, session);\n\t\tpopulatePlacement(206, LocalDate.of(2017, 8, 14), LocalDate.of(2017, 8, 14), 577, 1244, 681, session);\n\t\tpopulatePlacement(207, LocalDate.of(2017, 11, 6), null, 458, 458, 652, session);\n\t\tpopulatePlacement(208, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 9, session);\n\t\tpopulatePlacement(209, LocalDate.of(2017, 4, 19), LocalDate.of(2017, 4, 19), 577, 577, 697, session);\n\t\tpopulatePlacement(210, LocalDate.of(2017, 10, 16), null, 458, 458, 115, session);\n\t\tpopulatePlacement(211, LocalDate.of(2017, 8, 24), LocalDate.of(2017, 8, 24), 577, 1244, 668, session);\n\t\tpopulatePlacement(212, LocalDate.of(2017, 10, 16), null, 458, 458, 47, session);\n\t\tpopulatePlacement(213, LocalDate.of(2017, 7, 5), null, 389, 389, 141, session);\n\t\tpopulatePlacement(214, LocalDate.of(2017, 8, 14), LocalDate.of(2017, 8, 14), 577, 1244, 79, session);\n\t\tpopulatePlacement(215, LocalDate.of(2017, 7, 18), LocalDate.of(2017, 7, 18), 577, 1245, 4, session);\n\t\tpopulatePlacement(216, LocalDate.of(2017, 4, 17), null, 385, 385, 607, session);\n\t\tpopulatePlacement(217, LocalDate.of(2017, 9, 28), LocalDate.of(2017, 9, 28), 577, 1244, 6, session);\n\n\t\tpopulateInterview(0, LocalDateTime.of(2017, 11, 1, 18, 30, 0), \"Rejected\", 577, 1251, 3, 710, session);\n\t\tpopulateInterview(1, LocalDateTime.of(2017, 11, 1, 16, 50, 0), \"Selected for Next Round\", 577, 1251, 3, 717,\n\t\t\t\tsession);\n\t\tpopulateInterview(2, LocalDateTime.of(2017, 11, 6, 18, 0, 0), \"Selected for Next Round\", 577, 1247, 1, 717,\n\t\t\t\tsession);\n\t\tpopulateInterview(3, LocalDateTime.of(2017, 11, 3, 18, 58, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1247, 1, 712, session);\n\t\tpopulateInterview(4, LocalDateTime.of(2017, 11, 3, 18, 59, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1247, 1, 718, session);\n\t\tpopulateInterview(5, LocalDateTime.of(2017, 11, 1, 17, 40, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1251, 3, 722, session);\n\t\tpopulateInterview(6, LocalDateTime.of(2017, 11, 1, 18, 55, 0), \"Selected for Next Round\", 577, 1251, 3, 712,\n\t\t\t\tsession);\n\t\tpopulateInterview(7, LocalDateTime.of(2017, 11, 1, 20, 10, 0), \"Rejected\", 577, 1251, 3, 712, session);\n\t\tpopulateInterview(8, LocalDateTime.of(2017, 11, 1, 20, 35, 0), \"Pending Feedback\", 577, 1251, 3, 725, session);\n\t\tpopulateInterview(9, LocalDateTime.of(2017, 11, 3, 17, 0, 0), \"Selected for Next Round\", 577, 1247, 1, 725,\n\t\t\t\tsession);\n\t\tpopulateInterview(10, LocalDateTime.of(2017, 11, 1, 21, 25, 0), \"Rejected\", 577, 1251, 3, 723, session);\n\t\tpopulateInterview(11, LocalDateTime.of(2017, 11, 6, 19, 0, 0), \"Rejected\", 577, 1247, 1, 723, session);\n\t\tpopulateInterview(12, LocalDateTime.of(2017, 5, 24, 15, 30, 0), \"Rejected\", 577, 1245, 1, 63, session);\n\t\tpopulateInterview(13, LocalDateTime.of(2017, 6, 2, 14, 30, 0), \"No Feedback\", 17, 17, 1, 63, session);\n\t\tpopulateInterview(14, LocalDateTime.of(2017, 6, 9, 20, 30, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1243, 1, 63, session);\n\t\tpopulateInterview(15, LocalDateTime.of(2017, 6, 6, 14, 16, 0),\n\t\t\t\t\"eIntegerern , Selected for Client Project (NO Client training)\", 17, 17, 1, 136, session);\n\t\tpopulateInterview(16, LocalDateTime.of(2017, 6, 9, 12, 39, 0),\n\t\t\t\t\"eIntegerern , Selected for Client Project (NO Client training)\", 17, 17, 1, 145, session);\n\t\tpopulateInterview(17, LocalDateTime.of(2017, 6, 7, 19, 30, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1243, 4, 58, session);\n\t\tpopulateInterview(18, LocalDateTime.of(2017, 5, 15, 16, 45, 0),\n\t\t\t\t\"eIntegerern , Selected for Client Project (NO Client training)\", 225, 225, 3, 56, session);\n\t\tpopulateInterview(19, LocalDateTime.of(2017, 8, 3, 12, 0, 0), \"Rejected\", 577, 1244, 1, 137, session);\n\t\tpopulateInterview(20, LocalDateTime.of(2017, 8, 4, 20, 20, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1239, 1, 137, session);\n\t\tpopulateInterview(21, LocalDateTime.of(2017, 5, 15, 17, 45, 0),\n\t\t\t\t\"eIntegerern , Selected for Client Project (NO Client training)\", 225, 225, 3, 60, session);\n\t\tpopulateInterview(22, LocalDateTime.of(2017, 8, 2, 12, 0, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1244, 1, 139, session);\n\t\tpopulateInterview(23, LocalDateTime.of(2017, 5, 31, 19, 0, 0), \"No Feedback\", 577, 1243, 1, 55, session);\n\t\tpopulateInterview(24, LocalDateTime.of(2017, 6, 16, 22, 0, 0), \"Rejected\", 577, 1243, 4, 55, session);\n\t\tpopulateInterview(25, LocalDateTime.of(2017, 6, 23, 19, 0, 0), \"Rejected\", 577, 1247, 1, 55, session);\n\t\tpopulateInterview(26, LocalDateTime.of(2017, 6, 27, 17, 0, 0), \"No Feedback\", 17, 17, 1, 55, session);\n\t\tpopulateInterview(27, LocalDateTime.of(2017, 6, 29, 20, 0, 0), \"Selected for Next Round\", 20, 17, 1, 55,\n\t\t\t\tsession);\n\t\tpopulateInterview(28, LocalDateTime.of(2017, 7, 7, 18, 0, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1247, 1, 55, session);\n\t\tpopulateInterview(29, LocalDateTime.of(2017, 5, 16, 19, 0, 0), \"Rejected\", 577, 1243, 4, 55, session);\n\t\tpopulateInterview(30, LocalDateTime.of(2017, 5, 22, 19, 0, 0), \"Rejected\", 577, 1253, 1, 55, session);\n\t\tpopulateInterview(31, LocalDateTime.of(2017, 5, 25, 19, 0, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1245, 1, 61, session);\n\t\tpopulateInterview(32, LocalDateTime.of(2017, 6, 1, 21, 0, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1245, 4, 59, session);\n\t\tpopulateInterview(33, LocalDateTime.of(2017, 8, 2, 21, 0, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1244, 1, 141, session);\n\t\tpopulateInterview(34, LocalDateTime.of(2017, 5, 25, 18, 0, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1245, 1, 57, session);\n\t\tpopulateInterview(35, LocalDateTime.of(2017, 5, 30, 15, 30, 0), \"Rejected\", 577, 1243, 4, 62, session);\n\t\tpopulateInterview(36, LocalDateTime.of(2017, 6, 9, 21, 0, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1243, 1, 62, session);\n\t\tpopulateInterview(37, LocalDateTime.of(2017, 5, 22, 19, 30, 0), \"Rejected\", 577, 1243, 1, 62, session);\n\t\tpopulateInterview(38, LocalDateTime.of(2017, 8, 4, 13, 0, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1244, 1, 140, session);\n\t\tpopulateInterview(39, LocalDateTime.of(2017, 11, 3, 16, 30, 0), \"Pending Feedback\", 577, 1251, 1, 720, session);\n\t\tpopulateInterview(40, LocalDateTime.of(2017, 8, 2, 12, 0, 0), \"Rejected\", 577, 1244, 1, 147, session);\n\t\tpopulateInterview(41, LocalDateTime.of(2017, 8, 7, 20, 0, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1239, 1, 147, session);\n\t\tpopulateInterview(42, LocalDateTime.of(2017, 8, 2, 13, 0, 0), \"Rejected\", 577, 1244, 1, 138, session);\n\t\tpopulateInterview(43, LocalDateTime.of(2017, 8, 8, 20, 0, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1239, 1, 138, session);\n\t\tpopulateInterview(44, LocalDateTime.of(2017, 8, 8, 20, 50, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1239, 1, 144, session);\n\t\tpopulateInterview(45, LocalDateTime.of(2017, 8, 8, 21, 10, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1239, 1, 143, session);\n\t\tpopulateInterview(46, LocalDateTime.of(2017, 8, 2, 21, 0, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1244, 1, 142, session);\n\t\tpopulateInterview(47, LocalDateTime.of(2017, 8, 2, 21, 0, 0), \"Rejected\", 577, 1244, 1, 149, session);\n\t\tpopulateInterview(48, LocalDateTime.of(2017, 8, 8, 20, 20, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1239, 1, 149, session);\n\t\tpopulateInterview(49, LocalDateTime.of(2017, 8, 2, 16, 0, 0), \"Rejected\", 577, 1244, 1, 146, session);\n\t\tpopulateInterview(50, LocalDateTime.of(2017, 8, 8, 20, 30, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1239, 1, 146, session);\n\t\tpopulateInterview(51, LocalDateTime.of(2017, 6, 9, 12, 39, 0),\n\t\t\t\t\"eIntegerern , Selected for Client Project (NO Client training)\", 17, 17, 1, 148, session);\n\t\tpopulateInterview(52, LocalDateTime.of(2017, 8, 4, 1, 0, 0),\n\t\t\t\t\"eIntegerern , Selected for Permanent Placement with Client\", 577, 1244, 1, 150, session);\n\t\tpopulateInterview(53, LocalDateTime.of(2017, 11, 1, 16, 0, 0), \"Selected for Next Round\", 577, 1251, 3, 714,\n\t\t\t\tsession);\n\t}", "@Before\n public void testSetup(){\n \tjdbcTemplate.batchUpdate(new String[]{\n \t\t\t\"INSERT INTO taxon (id,uninomial,binomial,author,statusid,rankid,referenceid) VALUES\"\n \t\t\t+ \"(9470,'Verbena','×perriana','Moldenke',1,14,105),\"\n \t\t\t+ \"(9460,'Hybrid','Parent 1','Schkuhr ex Willdenow',1,14,105),\"\n \t\t\t+ \"(9466,'Hybrid','Parent 2','Marshall',1,14,105)\",\n \t\t\t\"INSERT INTO taxonomy (parentid,childid) VALUES (73,9470)\",\n \t\t\t\"INSERT INTO taxonomy (parentid,childid) VALUES (9466,1)\",\n \t\t\t\"INSERT INTO taxonhybridparent (id,childid,parentid) VALUES (729,9470,9460),(730,9470,9466)\",\n \t\t\t\"INSERT INTO taxonhabit (id,taxonid,habitid) VALUES (730,9470,1)\"});\n }", "@Test\n public void testTransactional() throws Exception {\n try (CloseableCoreSession session = coreFeature.openCoreSessionSystem()) {\n IterableQueryResult results = session.queryAndFetch(\"SELECT * from Document\", \"NXQL\");\n TransactionHelper.commitOrRollbackTransaction();\n TransactionHelper.startTransaction();\n assertFalse(results.mustBeClosed());\n assertWarnInLogs();\n }\n }", "@Bean\n\tpublic JdbcBatchItemWriter<Account> jdbcAccountWriter(@Qualifier(\"appDataSource\") DataSource dataSource) {\n\t\treturn new JdbcBatchItemWriterBuilder<Account>()\n\t\t\t\t.dataSource(dataSource)\n\t\t\t\t.sql(\"INSERT INTO account(tipo,limite,client_id)VALUES(?,?,?)\")\n\t\t\t\t.itemPreparedStatementSetter(itemPreparedStatementSetter())\n\t\t\t\t.build();\n\t}", "@Test\n public void shouldGetBooks() {\n AutomappingTest.sqlSessionFactory.getConfiguration().setAutoMappingBehavior(PARTIAL);\n SqlSession sqlSession = AutomappingTest.sqlSessionFactory.openSession();\n try {\n Mapper mapper = sqlSession.getMapper(Mapper.class);\n // no errors throw\n List<Book> books = mapper.getBooks();\n Assert.assertTrue(\"should return results,no errors throw\", (!(books.isEmpty())));\n } finally {\n sqlSession.close();\n }\n }", "public void testKeepStatementWithConnectionPool() throws Exception {\n CountingDataSource ds1 = new CountingDataSource(getConnection());\n\n Configuration c1 =\n create().configuration().derive(new DataSourceConnectionProvider(ds1));\n\n for (int i = 0; i < 5; i++) {\n ResultQuery<Record1<Integer>> query =\n DSL.using(c1)\n .select(TBook_ID())\n .from(TBook())\n .where(TBook_ID().eq(param(\"p\", 0)));\n\n query.bind(\"p\", 1);\n assertEquals(1, (int) query.fetchOne().getValue(TBook_ID()));\n query.bind(\"p\", 2);\n assertEquals(2, (int) query.fetchOne().getValue(TBook_ID()));\n\n assertEquals((i + 1) * 2, ds1.open);\n assertEquals((i + 1) * 2, ds1.close);\n }\n\n assertEquals(10, ds1.open);\n assertEquals(10, ds1.close);\n\n // Keeping an open statement [#3191]\n CountingDataSource ds2 = new CountingDataSource(getConnection());\n\n Configuration c2 =\n create().configuration().derive(new DataSourceConnectionProvider(ds2));\n\n for (int i = 0; i < 5; i++) {\n ResultQuery<Record1<Integer>> query =\n DSL.using(c2)\n .select(TBook_ID())\n .from(TBook())\n .where(TBook_ID().eq(param(\"p\", 0)))\n .keepStatement(true);\n\n query.bind(\"p\", 1);\n assertEquals(1, (int) query.fetchOne().getValue(TBook_ID()));\n query.bind(\"p\", 2);\n assertEquals(2, (int) query.fetchOne().getValue(TBook_ID()));\n\n assertEquals(i + 1, ds2.open);\n assertEquals(i , ds2.close);\n\n query.close();\n\n assertEquals(i + 1, ds2.open);\n assertEquals(i + 1, ds2.close);\n }\n\n assertEquals(5, ds1.open);\n assertEquals(5, ds1.close);\n }", "public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}", "public void testSaveTableByTimeAllTransactional() throws Exception {\n\t\tfailed = false;\n\t\tlogger.info(\"loop test 1\");\n\n\t\tExecutorService executor = Executors.newFixedThreadPool(nThreads * 2);\n\t\tList<Callable<Object>> tasks1 = insertTasks();\n\n\t\tList<Callable<Object>> tasks2 = updateTasksPassing();\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\n\t\tlogger.info(\"I have {} Tables saved\", getCountTablePassing());\n\t}", "public void addBatch() throws SQLException {\n statement.addBatch();\n }", "@Mapper\npublic interface WeChatInfoDao {\n\n\n /**\n * 插入微信信息\n * @param wechatInfo\n * @return\n */\n @Insert(\"INSERT INTO wechat_info(parentid,unionid,openid,nickname,sex,province,city,country,headImgUrl,\" +\n \"status,ticket_url,ticket,is_guide,reward) VALUES(#{parentid},#{unionid},#{openid},#{nickname},#{sex},#{province}\" +\n \",#{city},#{country},#{headImgUrl},#{status},#{ticketUrl},#{ticket},#{isGuide},#{reward})\")\n @Options(useGeneratedKeys=true, keyProperty=\"id\")\n int insert(WeChatInfoEntity wechatInfo);\n\n /**\n * 根据openID 查找用户信息\n * @param openid\n * @return\n */\n @Select(\"SELECT * FROM wechat_info WHERE openid = #{openid}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"nickname\", property = \"nickname\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity findByOpenID(@Param(\"openid\") String openid);\n\n /**\n * 根据openID 修改二维码信息\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET ticket_url=#{ticketUrl},ticket=#{ticket} WHERE openid=#{openid}\")\n void updateTicketUrlByOpenID(WeChatInfoEntity wechatInfo);\n\n /**\n * 取消关注\n * @param wechatInfo\n */\n @Update(\"UPDATE wechat_info SET status=1 WHERE openid=#{openid}\")\n void updateStatusByOpenID(WeChatInfoEntity wechatInfo);\n\n\n /**\n * 更改status 状态\n * @param wechatInfo\n */\n @SelectProvider(type=WeChatInfoSqlProvider.class, method=\"updateByOpenIdSql\")\n void updateStatus(@Param(\"wechatInfo\") WeChatInfoEntity wechatInfo);\n\n @Select(\"SELECT * FROM wechat_info WHERE id = #{ID}\")\n @Results(\n {\n @Result(id = true, column = \"id\", property = \"ID\"),\n @Result(column = \"unionid\", property = \"unionid\"),\n @Result(column = \"parentid\", property = \"parentid\"),\n @Result(column = \"openid\", property = \"openid\"),\n @Result(column = \"ticket_url\", property = \"ticketUrl\"),\n @Result(column = \"ticket\", property = \"ticket\"),\n @Result(column = \"is_guide\", property = \"isGuide\"),\n @Result(column = \"reward\", property = \"reward\")\n })\n WeChatInfoEntity selectWecahtUserByID(@Param(\"ID\")String ID);\n}", "@PostConstruct\r\n\t@Transactional\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\r\n\t\tFile two = new File( context.getRealPath(\"/variants\") );\r\n\t\t//System.out.println(two.getAbsolutePath());\r\n\t\tVariantManager.init(new File[]{two}, false);\r\n\t\t\r\n\t\tJdbcTemplate template = new JdbcTemplate(dataSource);\r\n\t\ttemplate.execute(\"create table if not exists UserConnection (userId varchar(255) not null,\tproviderId varchar(255) not null,\tproviderUserId varchar(255),\trank int not null,\tdisplayName varchar(255),\tprofileUrl varchar(512),\timageUrl varchar(512),\taccessToken varchar(255) not null,\t\t\t\t\tsecret varchar(255),\trefreshToken varchar(255),\texpireTime bigint,\tprimary key (userId(100), providerId(50), providerUserId(150)))\");\r\n\t\ttry{\r\n\t\t\ttemplate.execute(\"create unique index UserConnectionRank on UserConnection(userId, providerId, rank)\");\r\n\t\t}catch(BadSqlGrammarException e){\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//sf.openSession();\r\n\t\t\r\n//\t\tRowMapper<Object> rm = new RowMapper<Object>() {\r\n//\r\n// public Object mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n// DefaultLobHandler lobHandler = new DefaultLobHandler();\r\n// InputStream stream = lobHandler.getBlobAsBinaryStream(rs, \"turnStates\");\r\n// ObjectInputStream ois;\r\n//\t\t\t\ttry {\r\n//\t\t\t\t\tois = new ObjectInputStream(stream);\r\n//\t\t\t\t\tTurnState ts = (TurnState) ois.readObject();\r\n//\t\t\t\t\tint id = rs.getInt(\"World_id\");\r\n//\t\t\t\t\tgr.addTurnstate(id, ts);\r\n//\t\t\t\t} catch (IOException e) {\r\n//\t\t\t\t\t// TODO Auto-generated catch block\r\n//\t\t\t\t\te.printStackTrace();\r\n//\t\t\t\t} catch (ClassNotFoundException e) {\r\n//\t\t\t\t\t// TODO Auto-generated catch block\r\n//\t\t\t\t\te.printStackTrace();\r\n//\t\t\t\t}\r\n//\r\n// return null;\r\n// }\r\n// };\r\n\t\t\r\n\t\t\r\n//\t\ttemplate.query(\"SELECT * FROM World_turnStates\",rm);\r\n\t\t\r\n\t\t\r\n\t\tUserEntity.NULL_USER = us.getUserEntity(126);\r\n\t\t\r\n\t\tif (UserEntity.NULL_USER == null){\r\n\t\t\tUserEntity.NULL_USER = new UserEntity();\r\n\t\t\tUserEntity.NULL_USER.setId(126);\r\n\t\t\tUserEntity.NULL_USER.setUsername(\"EMPTY\");\r\n\t\t\tus.saveUser(UserEntity.NULL_USER);\r\n\t\t}\r\n\t\t\r\n\t\tTimeZone.setDefault(TimeZone.getTimeZone(\"UTC\"));\r\n\t}", "@Bean(name = SPRINGBATCH_DATASOURCE)\n @BatchDataSource\n @ConfigurationProperties(prefix = \"manon.batch.datasource\")\n public DataSource jobDataSource() {\n return DataSourceBuilder.create().build();\n }", "@Override\n public void beginDatabaseBatchWrite() throws BlockStoreException {\n if (!autoCommit) {\n return;\n }\n if (instrument)\n beginMethod(\"beginDatabaseBatchWrite\");\n\n batch = db.createWriteBatch();\n uncommited = new HashMap<ByteBuffer, byte[]>();\n uncommitedDeletes = new HashSet<ByteBuffer>();\n utxoUncommittedCache = new HashMap<ByteBuffer, UTXO>();\n utxoUncommittedDeletedCache = new HashSet<ByteBuffer>();\n autoCommit = false;\n if (instrument)\n endMethod(\"beginDatabaseBatchWrite\");\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Second Level Query Cache Without configuration With Address 05\")\n public void testSecondLevelQueryCacheWithoutConfigurationWithAddress05()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress05> address2List = null;\n\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n try{\n System.out.println(\"Session Start\");\n\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<SBAddress05> criteriaQuery = criteriaBuilder.createQuery(SBAddress05.class);\n Root<SBAddress05> root = criteriaQuery.from(SBAddress05.class);\n\n criteriaQuery.select(root);\n\n Query query = session.createQuery(criteriaQuery);\n\n address2List = query.list();\n\n System.out.println(\"Address 1 : \" + address2List.size());\n\n transaction.commit();\n System.out.println(\"Session Closed\");\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n try{\n System.out.println(\"Session Start\");\n\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<SBAddress05> criteriaQuery = criteriaBuilder.createQuery(SBAddress05.class);\n Root<SBAddress05> root = criteriaQuery.from(SBAddress05.class);\n\n criteriaQuery.select(root);\n\n Query query = session.createQuery(criteriaQuery);\n\n address2List = query.list();\n\n System.out.println(\"Address 2 : \" + address2List.size());\n\n transaction.commit();\n System.out.println(\"Session Closed\");\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n }", "@Repository\npublic interface MeisoShopStoreBlockLogMapper extends Mapper<MeisoShopStoreBlockLog>{\n\n int insertSsbs(MeisoShopStoreBlockLog meisoShopStoreBlockLog);\n \n //解封商家\n int updateAgencyStatus();\n \n //解封门店\n int updateStoreStatus();\n \n //更新exception表异常状态\n int updateAgencyException();\n \n //更新exception表异常状态\n int updateStoreException();\n \n}", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Insert SB Customer 10 and SB Order 06\")\n public void testHibernateSaveCustomer10AndOrder06()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n SBAddressVal01 addressVal01 = SBAddressVal01.of(\n \"Kusumarama Road\",\n \"Seenigama\",\n \"Hikkaduwa\",\n \"Sri Lanka\",\n \"292000\"\n );\n\n SBCustomerOrder06 order01 = new SBCustomerOrder06();\n order01.setCustomerOrder06InvoiceNumber(\"IN0000001\");\n order01.setCustomerOrder06DateTime(new Timestamp(new java.util.Date().getTime()));\n order01.setCustomerOrder06Total(2024.50);\n order01.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order01.setRawLastUpdateLogId(1);\n order01.setUpdateUserAccountId(1);\n order01.setRawActiveStatus(1);\n order01.setRawDeleteStatus(1);\n order01.setRawShowStatus(1);\n order01.setRawUpdateStatus(1);\n\n SBCustomerOrder06 order02 = new SBCustomerOrder06();\n order02.setCustomerOrder06InvoiceNumber(\"IN0000002\");\n order02.setCustomerOrder06DateTime(new Timestamp(new java.util.Date().getTime()));\n order02.setCustomerOrder06Total(1024.50);\n order02.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order02.setRawLastUpdateLogId(1);\n order02.setUpdateUserAccountId(1);\n order02.setRawActiveStatus(1);\n order02.setRawDeleteStatus(1);\n order02.setRawShowStatus(1);\n order02.setRawUpdateStatus(1);\n\n SBCustomerOrder06 order03 = new SBCustomerOrder06();\n order03.setCustomerOrder06InvoiceNumber(\"IN0000003\");\n order03.setCustomerOrder06DateTime(new Timestamp(new java.util.Date().getTime()));\n order03.setCustomerOrder06Total(3024.50);\n order03.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order03.setRawLastUpdateLogId(1);\n order03.setUpdateUserAccountId(1);\n order03.setRawActiveStatus(1);\n order03.setRawDeleteStatus(1);\n order03.setRawShowStatus(1);\n order03.setRawUpdateStatus(1);\n\n SBCustomerOrder06 order04 = new SBCustomerOrder06();\n order04.setCustomerOrder06InvoiceNumber(\"IN0000004\");\n order04.setCustomerOrder06DateTime(new Timestamp(new java.util.Date().getTime()));\n order04.setCustomerOrder06Total(5024.50);\n order04.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order04.setRawLastUpdateLogId(1);\n order04.setUpdateUserAccountId(1);\n order04.setRawActiveStatus(1);\n order04.setRawDeleteStatus(1);\n order04.setRawShowStatus(1);\n order04.setRawUpdateStatus(1);\n\n SBCustomer10 sbCustomer10 = new SBCustomer10();\n\n sbCustomer10.getCustomer10Orders().add(order01);\n sbCustomer10.getCustomer10Orders().add(order02);\n sbCustomer10.getCustomer10Orders().add(order03);\n sbCustomer10.getCustomer10Orders().add(order04);\n\n sbCustomer10.setCustomer10Email(\"[email protected]\");\n sbCustomer10.setCustomer10Sex(\"Male\");\n sbCustomer10.setCustomer10FirstName(\"Umesh\");\n sbCustomer10.setCustomer10LastName(\"Gunasekara\");\n sbCustomer10.setCustomer10Nic(\"901521344V\");\n sbCustomer10.setCustomer10Mobile(\"0711233000\");\n try {\n sbCustomer10.setCustomer10Birthday(new SimpleDateFormat(\"dd/MM/yyyy\").parse(\"31/05/1990\"));\n } catch (ParseException e) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n sbCustomer10.setCustomer10Address(addressVal01);\n sbCustomer10.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbCustomer10.setRawLastUpdateLogId(1);\n sbCustomer10.setUpdateUserAccountId(1);\n sbCustomer10.setRawActiveStatus(1);\n sbCustomer10.setRawDeleteStatus(1);\n sbCustomer10.setRawShowStatus(1);\n sbCustomer10.setRawUpdateStatus(1);\n\n order01.setSbCustomer10(sbCustomer10);\n order02.setSbCustomer10(sbCustomer10);\n order03.setSbCustomer10(sbCustomer10);\n order04.setSbCustomer10(sbCustomer10);\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n session.save(sbCustomer10);\n session.save(order01);\n session.save(order02);\n session.save(order03);\n session.save(order04);\n transaction.commit();\n System.out.println(\"Added Customer 03: \" + sbCustomer10.getCustomer10FirstName());\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "CmsCouponBatch selectByPrimaryKey(String batchNo);", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "public static void main(String[] args) throws Exception {\n //加载bean\n String[] configLocations = new String[]{\"beans.xml\"};\n ClassPathXmlApplicationContext appContext\n = new ClassPathXmlApplicationContext(configLocations);\n SessionFactory sessionFactory = (SessionFactory)appContext.getBean(\"sessionFactory\");\n ComboPooledDataSource dataSource= (ComboPooledDataSource)appContext.getBean(\"dataSource\");\n// Properties properties = new Properties();\n// // 使用InPutStream流读取properties文件\n// BufferedReader bufferedReader = new BufferedReader(new FileReader(\"config/datasource.properties\"));\n// properties.load(bufferedReader);\n// // 获取key对应的value值\n// String driverClass = properties.getProperty(\"mysql.driverClassName\");\n// String jdbcUrl = properties.getProperty(\"mysql.url\");\n// String user = properties.getProperty(\"mysql.username\");\n// String password = properties.getProperty(\"mysql.password\");\n\n// dataSource.setDriverClass(driverClass);\n// dataSource.setJdbcUrl(driverClass);\n// dataSource.setUser(driverClass);\n// dataSource.setPassword(driverClass);\n Session session = sessionFactory.openSession();\n\n\n // session\n// Session session = sessionFactory;\n// User user = new User();\n// user.setName(\"lgd\");\n// user.setAge(22);\n// session.save(user);\n System.out.println(\"userInsert is done.\");\n ClearTable clearTable = JsonIO.getClearTable();\n Boolean single;\n String dept;\n if(clearTable.isAll()){\n single = false;\n dept = \"all\";\n } else if(clearTable.isSmt()){\n single = false;\n dept = \"smt\";\n } else if(clearTable.isDip()){\n single = false;\n dept = \"dip\";\n } else {\n single = true;\n dept = \"single\";\n }\n List<String> tableNameList = JsonIO.getTableNames(dept, single);\n StringBuilder allSingle = new StringBuilder();\n for(String tableName: tableNameList){\n String singleSQL = \"\";\n singleSQL = \"truncate table \" + tableName + \";\";\n Transaction ts = session.beginTransaction();\n Query query = session.createSQLQuery(singleSQL.toString());\n query.executeUpdate();\n ts.commit();\n }\n }", "@Test\n public void testBatchedInQuery() {\n TestDataCreator creator = new TestDataCreator(getSessionFactory());\n Town town = creator.createTestTown();\n\n int n = 10;\n List<Long> ids = new ArrayList<>(n);\n for (long i=0; i < n; i++) {\n Person savedPerson = creator.createTestPerson(town, \"P\" + i);\n ids.add(savedPerson.getId());\n }\n for (long i=0; i < n; i++) {\n creator.createTestPerson(town, \"P\" + i);\n }\n\n Person person = query.from(Person.class);\n query.where(person.getId()).in(ids, 2);\n\n validate(\"from Person hobj1 where hobj1.id in (:np1)\", ids);\n assertEquals(n, doQueryResult.size());\n }", "@Override\n public void clearBatch() throws SQLException {\n throw new SQLException(\"tinySQL does not support clearBatch.\");\n }", "@Mapper\npublic interface QuestionDAO {\n String TABLE_NAME = \" question \";\n String INSERT_FIELDS = \" title, content, created_date, user_id, comment_count \";\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS,\n \") values (#{title},#{content},#{createdDate},#{userId},#{commentCount})\"})\n int addQuestion(Question question);\n\n // 使用 xml 配置文件进行 数据库查询语句与程序接口的映射。\n // 对应的 QuestionDAO.xml 文件位于 resources 文件夹 -》com.mattLearn.dao 文件夹中。\n List<Question> selectLatestQuestions(@Param(\"userId\") int userId, @Param(\"offset\") int offset,\n @Param(\"limit\") int limit);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n Question SelectById(int id);\n\n @Update(\" update question set comment_count=#{commentCount} where id = #{id}\")\n int updateCommentCount(@Param(\"commentCount\") int commentCount,\n @Param(\"id\") int id);\n\n}", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Hibernate Lazy Loading in Default with Session Close\")\n public void testHibernateDefaultLazyLoadingWithSessionClose()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n SBAddressVal01 addressVal01 = SBAddressVal01.of(\n \"Kusumarama Road\",\n \"Seenigama\",\n \"Hikkaduwa\",\n \"Sri Lanka\",\n \"292000\"\n );\n\n SBCustomerOrder order01 = SBCustomerOrder.of(\n \"IN0000001\",\n new Timestamp(new java.util.Date().getTime()),\n 2024.50\n );\n\n SBCustomerOrder order02 = SBCustomerOrder.of(\n \"IN0000002\",\n new Timestamp(new java.util.Date().getTime()),\n 1024.50\n );\n\n SBCustomerOrder order03 = SBCustomerOrder.of(\n \"IN0000003\",\n new Timestamp(new java.util.Date().getTime()),\n 3024.50\n );\n\n SBCustomerOrder order04 = SBCustomerOrder.of(\n \"IN0000004\",\n new Timestamp(new java.util.Date().getTime()),\n 5024.50\n );\n\n SBCustomer05 sbCustomer05 = new SBCustomer05();\n\n sbCustomer05.getCustomer05Orders().add(order01);\n sbCustomer05.getCustomer05Orders().add(order02);\n sbCustomer05.getCustomer05Orders().add(order03);\n sbCustomer05.getCustomer05Orders().add(order04);\n\n sbCustomer05.setCustomer05Email(\"[email protected]\");\n sbCustomer05.setCustomer05Sex(\"Male\");\n sbCustomer05.setCustomer05FirstName(\"Umesh\");\n sbCustomer05.setCustomer05LastName(\"Gunasekara\");\n sbCustomer05.setCustomer05Nic(\"901521344V\");\n sbCustomer05.setCustomer05Mobile(\"0711233000\");\n try {\n sbCustomer05.setCustomer05Birthday(new SimpleDateFormat(\"dd/MM/yyyy\").parse(\"31/05/1990\"));\n } catch (ParseException e) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n sbCustomer05.setCustomer05Address(addressVal01);\n sbCustomer05.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbCustomer05.setRawLastUpdateLogId(1);\n sbCustomer05.setUpdateUserAccountId(1);\n sbCustomer05.setRawActiveStatus(1);\n sbCustomer05.setRawDeleteStatus(1);\n sbCustomer05.setRawShowStatus(1);\n sbCustomer05.setRawUpdateStatus(1);\n\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n session.save(sbCustomer05);\n transaction.commit();\n System.out.println(\"Added Customer 03: \" + sbCustomer05.getCustomer05FirstName());\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n //********************************************\n //The first session has benn closed with end of try catch\n //*******************************************\n\n SBCustomer05 customer = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n customer = session.get(SBCustomer05.class, sbCustomer05.getCustomer05Id());\n transaction.commit();\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Get Customer 05: \" + customer.getCustomer05FirstName());\n System.out.println(\"Get Customer 05 Orders \");\n customer.getCustomer05Orders().forEach(\n order ->\n {\n System.out.println(\"Order Invoice Number :\" + order.getCustomerOrderInvoiceNumber());\n System.out.println(\"\\tDate & Time :\" + order.getCustomerOrderDateTime());\n System.out.println(\"\\tTotal Amount:\" + order.getCustomerOrderTotal());\n });\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test HQL Query for Multiple Select and Pagination with Address 02\")\n public void testHQLQueryForMultipleSelectAndPaginationWithAddress02()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n try (Session session = HibernateUtil.getSessionFactory().openSession()) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n\n Query query = session.createQuery(\n \"select address02Street, address02Zip from SBAddress02 order by address02Street asc\");\n query.setFirstResult(5);\n query.setMaxResults(10);\n\n List<Object[]> addressDetails = query.list();\n\n transaction.commit();\n\n addressDetails.forEach(address -> System.out.println(\"Added Address : \" + address[0]));\n\n System.out.println(addressDetails.size());\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Override\n @Transactional\n public void addBulkInsertsAfterExtraction() {\n List<ScrapBook> scrapBooks = new ArrayList<ScrapBook>();\n boolean jobDone = false;\n boolean pause = false;\n while (!jobDone) {\n pause = false;\n int lineCount = 0;\n while (!pause) {\n ++lineCount;\n if (lineCount % 30 == 0) {\n scrapBooks = springJdbcTemplateExtractor.getPaginationList(\"SELECT * FROM ScrapBook\", 1, 30);\n pause = true;\n }\n }\n //convert scrapbook to book and insert into db\n convertedToBookAndInsert(scrapBooks);\n // delete all inserted scrapbooks\n springJdbcTemplateExtractor.deleteCollection(scrapBooks);\n scrapBooks = null;\n if (0 == springJdbcTemplateExtractor.findTotalScrapBook()) {\n jobDone = true;\n }\n }\n }", "@Mapper\npublic interface ApiDataDao {\n\n @Transactional(readOnly = false)\n public void insert(ApiData apiData);\n\n}", "public int[] batch(String[] sqls) throws SQLException {\n Statement st = null;\n try {\n st = conn.createStatement();\n for (String sql : sqls) {\n logger.debug(\"SQL= \\n\" + sql);\n st.addBatch(sql);\n }\n return st.executeBatch();\n } catch (SQLException e) {\n throw e;\n } finally {\n if (st != null) {\n st.close();\n }\n }\n }", "public void clearBatch() throws SQLException {\n\r\n }", "private static BatchManager.BatchModeType flushAndSetTxToNone(SqlgGraph sqlgGraph) {\n BatchManager.BatchModeType batchModeType = sqlgGraph.tx().getBatchModeType();\n if (sqlgGraph.tx().isInBatchMode()) {\n batchModeType = sqlgGraph.tx().getBatchModeType();\n sqlgGraph.tx().flush();\n sqlgGraph.tx().batchMode(BatchManager.BatchModeType.NONE);\n }\n return batchModeType;\n }", "public void executeWithSession(AbstractSession session) {\n }", "@Mapper\npublic interface OrderMapper {\n @Insert(\" insert into t_order (order_id, order_type, city_id, \\n\" +\n \" platform_id, user_id, supplier_id, \\n\" +\n \" goods_id, order_status, remark, \\n\" +\n \" create_by, create_time, update_by, \\n\" +\n \" update_time)\\n\" +\n \" values (#{orderId}, #{orderType}, #{cityId}, \\n\" +\n \" #{platformId}, #{userId}, #{supplierId}, \\n\" +\n \" #{goodsId}, #{orderStatus}, #{remark}, \\n\" +\n \" #{createBy}, #{createTime}, #{updateBy}, \\n\" +\n \" #{updateTime})\")\n /**\n * statement=\"\":表示定义的子查询语句\n * before=true:表示在之前执行,booler类型的,所以为true\n * keyColumn=\"myNo\":表示查询所返回的类名\n * resultType=int.class:表示返回值得类型\n * keyProperty=\"empNo\" :表示将该查询的属性设置到某个列中,此处设置到empNo中\n * //进行添加、修改等操作的时候只能返回数字,而不能返回java类或其他!\n * // SELECT LAST_INSERT_ID() 适合那种主键是自增的类型\n * // 1 insert语句需要写id字段了,并且 values里面也不能省略\n * // 2 selectKey 的order属性需要写成BEFORE 因为这样才能将生成的uuid主键放入到model中,\n * // 这样后面的insert的values里面的id才不会获取为空\n * // 跟自增主键相比就这点区别,当然了这里的获取主键id的方式为 select uuid()\n */\n @SelectKey(keyColumn = \"id\", keyProperty = \"id\", resultType = long.class, before = false, statement = \"select last_insert_id()\")\n long insertSelective(Order record);\n\n @Update(\"update t_order set order_status=#{status},update_by=#{updateBy},update_time=#{updateTime} where order_id=#{orderId}\")\n int updateOrderStatus(@Param(\"orderId\") String orderId, @Param(\"status\") String status, @Param(\"updateBy\") String updateBy, @Param(\"updateTime\") Date updateTime);\n\n @Select(\"select *from t_order\\n\" +\n \" where order_id = #{orderId}\")\n Order selectByPrimaryKey(String orderId);\n}", "@Override\n public int[] executeBatch() {\n if (this.batchPos == 0) {\n return new int[0];\n }\n try {\n int[] arrn = this.db.executeBatch(this.pointer, this.batchPos / this.paramCount, this.batch);\n return arrn;\n }\n finally {\n this.clearBatch();\n }\n }", "HibernateTransactionTemplate() {\n _transactionTemplate = getTransactionTemplate();\n _hibernateTemplate = getHibernateTemplate();\n }", "protected boolean transaction(Connection connection, String[] commandsBatch, int expectedModificationCount)\n\t\t\tthrows DAOException {\n\t\tStatement statement;\n\t\tint affectedRows;\n\t\tint batchResults[];\n\n\t\t// Creating statement and adding batch of commantds to it.\n\t\ttry {\n\t\t\tstatement = connection.createStatement();\n\n\t\t\tfor (String batch : commandsBatch)\n\t\t\t\tstatement.addBatch(batch);\n\n\t\t} catch (SQLException cause) {\n\t\t\tthrow new DAOException(cause);\n\t\t}\n\n\t\t// main transaction logic\n\t\ttry {\n\t\t\t// executing operation.\n\t\t\tbatchResults = statement.executeBatch();\n\n\t\t\t// zero out rows value\n\t\t\taffectedRows = 0;\n\n\t\t\t// counting affected rows;\n\t\t\tfor (int operationResult : batchResults) {\n\t\t\t\tif (operationResult > 0)\n\t\t\t\t\taffectedRows += operationResult;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * if affected rows is necessary value, and its value doesn't match\n\t\t\t * to expected - throw exception.\n\t\t\t */\n\t\t\tif (expectedModificationCount != -1 && affectedRows != expectedModificationCount) {\n\t\t\t\tthrow new SQLException();\n\t\t\t}\n\n\t\t\t// in case of successful operation - commit.\n\t\t\tconnection.commit();\n\n\t\t\t// at last - close statement and exit loop.\n\t\t\tstatement.close();\n\t\t\treturn true;\n\t\t} catch (SQLException ignore) {\n\n\t\t\t// if operation failed - try to rollback.\n\t\t\ttry {\n\t\t\t\tconnection.rollback();\n\t\t\t} catch (SQLException cause) {\n\t\t\t\tthrow new DAOException(cause);\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@org.apache.ibatis.annotations.Mapper\npublic interface GoodsDao extends Mapper<Goods> {\n @Select(\"select * from tbl_goods\")\n @Results({\n @Result(property = \"cid\",column = \"cid\"),\n @Result(property = \"category\",column = \"cid\",one = @One(select = \"com.czxy.CategoryDao.selectByPrimaryKey\"))\n })\n List<Goods> findAll();\n\n}", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Second Level Query Cache With configuration With Address 05\")\n public void testSecondLevelQueryCacheWithConfigurationWithAddress05()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress05> address2List = null;\n\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n try{\n System.out.println(\"Session Start\");\n\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<SBAddress05> criteriaQuery = criteriaBuilder.createQuery(SBAddress05.class);\n Root<SBAddress05> root = criteriaQuery.from(SBAddress05.class);\n\n criteriaQuery.select(root);\n\n Query query = session.createQuery(criteriaQuery);\n query.setCacheable(true);\n\n address2List = query.list();\n\n System.out.println(\"Address 1 : \" + address2List.size());\n\n// transaction.commit(); // second level cash enabled for CacheConcurrencyStrategy.READ_WRITE\n System.out.println(\"Session Closed\");\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n try{\n System.out.println(\"Session Start\");\n\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<SBAddress05> criteriaQuery = criteriaBuilder.createQuery(SBAddress05.class);\n Root<SBAddress05> root = criteriaQuery.from(SBAddress05.class);\n\n criteriaQuery.select(root);\n\n Query query = session.createQuery(criteriaQuery);\n query.setCacheable(true);\n\n address2List = query.list();\n\n System.out.println(\"Address 2 : \" + address2List.size());\n\n// transaction.commit(); // second level cash enabled for CacheConcurrencyStrategy.READ_WRITE\n System.out.println(\"Session Closed\");\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test HQL Query for Multiple Select for Map and Pagination with Address 02\")\n public void testHQLQueryForMultipleSelectForMapAndPaginationWithAddress02()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n try (Session session = HibernateUtil.getSessionFactory().openSession()) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n\n Query query = session.createQuery(\n \"select new Map(address02Zip, address02Street) from SBAddress02 order by address02Street asc\");\n query.setFirstResult(5);\n query.setMaxResults(10);\n\n List<Map<String, String>> addressDetails = query.list();\n\n transaction.commit();\n\n System.out.println(addressDetails.size());\n\n String street = addressDetails\n .stream()\n .filter(address -> address.containsKey(\"1\"))\n .findFirst()\n .get()\n .get(\"1\");\n\n System.out.println(\"First Street : \" + street);\n\n List<String> streets = addressDetails\n .stream()\n .map(address -> address.get(\"1\"))\n .collect(Collectors.toList());\n\n streets.forEach(System.out::println);\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Hibernate Eager Loading in Default with Session Close\")\n public void testHibernateEagerLoadingWithSessionClose()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n SBAddressVal01 addressVal01 = SBAddressVal01.of(\n \"Kusumarama Road\",\n \"Seenigama\",\n \"Hikkaduwa\",\n \"Sri Lanka\",\n \"292000\"\n );\n\n SBCustomerOrder order01 = SBCustomerOrder.of(\n \"IN0000001\",\n new Timestamp(new java.util.Date().getTime()),\n 2024.50\n );\n\n SBCustomerOrder order02 = SBCustomerOrder.of(\n \"IN0000002\",\n new Timestamp(new java.util.Date().getTime()),\n 1024.50\n );\n\n SBCustomerOrder order03 = SBCustomerOrder.of(\n \"IN0000003\",\n new Timestamp(new java.util.Date().getTime()),\n 3024.50\n );\n\n SBCustomerOrder order04 = SBCustomerOrder.of(\n \"IN0000004\",\n new Timestamp(new java.util.Date().getTime()),\n 5024.50\n );\n\n SBCustomer06 sbCustomer06 = new SBCustomer06();\n\n sbCustomer06.getCustomer06Orders().add(order01);\n sbCustomer06.getCustomer06Orders().add(order02);\n sbCustomer06.getCustomer06Orders().add(order03);\n sbCustomer06.getCustomer06Orders().add(order04);\n\n sbCustomer06.setCustomer06Email(\"[email protected]\");\n sbCustomer06.setCustomer06Sex(\"Male\");\n sbCustomer06.setCustomer06FirstName(\"Umesh\");\n sbCustomer06.setCustomer06LastName(\"Gunasekara\");\n sbCustomer06.setCustomer06Nic(\"901521344V\");\n sbCustomer06.setCustomer06Mobile(\"0711233000\");\n try {\n sbCustomer06.setCustomer06Birthday(new SimpleDateFormat(\"dd/MM/yyyy\").parse(\"31/05/1990\"));\n } catch (ParseException e) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n sbCustomer06.setCustomer06Address(addressVal01);\n sbCustomer06.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbCustomer06.setRawLastUpdateLogId(1);\n sbCustomer06.setUpdateUserAccountId(1);\n sbCustomer06.setRawActiveStatus(1);\n sbCustomer06.setRawDeleteStatus(1);\n sbCustomer06.setRawShowStatus(1);\n sbCustomer06.setRawUpdateStatus(1);\n\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n session.save(sbCustomer06);\n transaction.commit();\n System.out.println(\"Added Customer 03: \" + sbCustomer06.getCustomer06FirstName());\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n //********************************************\n //The first session has benn closed with end of try catch\n //*******************************************\n\n SBCustomer06 customer = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n customer = session.get(SBCustomer06.class, sbCustomer06.getCustomer06Id());\n transaction.commit();\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Get Customer 05: \" + customer.getCustomer06FirstName());\n System.out.println(\"Get Customer 05 Orders \");\n customer.getCustomer06Orders().forEach(\n order ->\n {\n System.out.println(\"Order Invoice Number :\" + order.getCustomerOrderInvoiceNumber());\n System.out.println(\"\\tDate & Time :\" + order.getCustomerOrderDateTime());\n System.out.println(\"\\tTotal Amount:\" + order.getCustomerOrderTotal());\n });\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Test\n public void testMergeJoinUpperLimit() throws Exception {\n MergeJoinPOP mergeJoin = new MergeJoinPOP(null, null,\n Lists.newArrayList(joinCond(\"c1\", \"EQUALS\", \"c2\")), JoinRelType.LEFT);\n mockOpContext(mergeJoin, initReservation, maxAllocation);\n\n numRows = 100000;\n\n // create left input rows like this.\n // \"a1\" : 5, \"c1\" : <id>\n List<String> leftJsonBatches = Lists.newArrayList();\n StringBuilder leftBatchString = new StringBuilder();\n leftBatchString.append(\"[\");\n for (int i = 0; i < numRows; i++) {\n leftBatchString.append(\"{\\\"a1\\\": 5, \" + \"\\\"c1\\\" : \" + i + \"},\");\n }\n leftBatchString.append(\"{\\\"a1\\\": 5, \" + \"\\\"c1\\\" : \" + numRows + \"}\");\n leftBatchString.append(\"]\");\n\n leftJsonBatches.add(leftBatchString.toString());\n\n // create right input rows like this.\n // \"a2\" : 6, \"c2\" : <id>\n List<String> rightJsonBatches = Lists.newArrayList();\n StringBuilder rightBatchString = new StringBuilder();\n rightBatchString.append(\"[\");\n for (int i = 0; i < numRows; i++) {\n rightBatchString.append(\"{\\\"a2\\\": 6, \" + \"\\\"c2\\\" : \" + i + \"},\");\n }\n rightBatchString.append(\"{\\\"a2\\\": 6, \" + \"\\\"c2\\\" : \" + numRows + \"}\");\n rightBatchString.append(\"]\");\n rightJsonBatches.add(rightBatchString.toString());\n\n // output rows will be like this.\n // \"a1\" : 5, \"c1\" : 1, \"a2\":6, \"c2\": 1\n // \"a1\" : 5, \"c1\" : 2, \"a2\":6, \"c2\": 2\n // \"a1\" : 5, \"c1\" : 3, \"a2\":6, \"c2\": 3\n\n // expect two batches, batch limited by 65535 records\n LegacyOperatorTestBuilder opTestBuilder = legacyOpTestBuilder()\n .physicalOperator(mergeJoin)\n .baselineColumns(\"a1\", \"c1\", \"a2\", \"c2\")\n .expectedNumBatches(2) // verify number of batches\n .inputDataStreamsJson(Lists.newArrayList(leftJsonBatches, rightJsonBatches));\n\n for (long i = 0; i < numRows + 1; i++) {\n opTestBuilder.baselineValues(5l, i, 6l, i);\n }\n\n opTestBuilder.go();\n }", "@Repository\npublic interface LoanCorporateForeignInvestment_DAO{\n @Insert(\"insert into LoanCorporateForeignInvestment(custCode,CreditCardNumber,InvesteeCompanyName,InvestmentAmount,InvestmentCurrency,OrganizationCode) \" +\n \"values (\" +\n \"#{custCode,jdbcType=VARCHAR},\" +\n \"#{CreditCardNumber,jdbcType=VARCHAR},\" +\n \"#{InvesteeCompanyName,jdbcType=VARCHAR},\" +\n \"#{InvestmentAmount,jdbcType=VARCHAR},\" +\n \"#{InvestmentCurrency,jdbcType=VARCHAR},\" +\n \"#{OrganizationCode,jdbcType=VARCHAR}\" +\n \")\")\n @ResultType(Boolean.class)\n public boolean save(LoanCorporateForeignInvestment_Entity entity);\n\n @Select(\"SELECT COUNT(*) FROM LoanCorporateForeignInvestment Where CustCode=\"+\"#{custCode,jdbcType=VARCHAR}\")\n @ResultType(Integer.class)\n Integer countAll(String custCode);\n\n @Select(\"SELECT * FROM LoanCorporateForeignInvestment Where CustCode=\"+\"#{custCode,jdbcType=VARCHAR}\"+\" Order By Id Asc\")\n @ResultType(LoanCorporateForeignInvestment_Entity.class)\n List<LoanCorporateForeignInvestment_Entity> findAll(String custCode);\n\n @Update(\"Update LoanCorporateForeignInvestment \" +\n \"SET \" +\n \"custCode=\" + \"#{custCode,jdbcType=VARCHAR},\"+\n \"CreditCardNumber=\" + \"#{CreditCardNumber,jdbcType=VARCHAR},\" +\n \"InvesteeCompanyName=\" + \"#{InvesteeCompanyName,jdbcType=VARCHAR},\" +\n \"InvestmentAmount=\" + \"#{InvestmentAmount,jdbcType=VARCHAR},\" +\n \"InvestmentCurrency= \" + \"#{InvestmentCurrency,jdbcType=VARCHAR},\" +\n \"OrganizationCode= \" + \"#{OrganizationCode,jdbcType=VARCHAR}\" +\n \"Where Id=\" + \"#{Id,jdbcType=VARCHAR}\"\n )\n @ResultType(Boolean.class)\n boolean update(LoanCorporateForeignInvestment_Entity entity);\n\n @Delete(\"DELETE FROM LoanCorporateForeignInvestment Where Id=\"+\"#{Id,jdbcType=VARCHAR}\")\n boolean delete(String Id);\n}", "private int[] batch(Connection conn, boolean closeConn, String sql, Object[][] params) throws SQLException {\n\t\tif (conn == null) {\n\t\t\tthrow new SQLException(\"Null connection\");\n\t\t}\n\n\t\tif (sql == null) {\n\t\t\tif (closeConn) {\n\t\t\t\tclose(conn);\n\t\t\t}\n\t\t\tthrow new SQLException(\"Null SQL statement\");\n\t\t}\n\n\t\tif (params == null) {\n\t\t\tif (closeConn) {\n\t\t\t\tclose(conn);\n\t\t\t}\n\t\t\tthrow new SQLException(\"Null parameters. If parameters aren't need, pass an empty array.\");\n\t\t}\n\n\t\tPreparedStatement stmt = null;\n\t\tint[] rows = null;\n\t\tList<Integer> rowList = Lists.newArrayList();\n\t\ttry {\n\t\t\tstmt = this.prepareStatement(conn, sql);\n\t\t\tint batchSize = DBManager.getBatchSize();\n\t\t\tint count = 0;\n\t\t\tfor (int i = 0; i < params.length; i++) {\n\t\t\t\tthis.fillStatement(stmt, params[i]);\n\t\t\t\tstmt.addBatch();\n\t\t\t\tif (++count % batchSize == 0) {\n\t\t\t\t\trows = stmt.executeBatch();\n\t\t\t\t\tfor (int ri = 0; ri < rows.length; ri++) {\n\t\t\t\t\t\trowList.add(rows[ri]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\trows = stmt.executeBatch();\n\t\t\tfor (int ri = 0; ri < rows.length; ri++) {\n\t\t\t\trowList.add(rows[ri]);\n\t\t\t}\n\t\t\tif (rowList.size() > 0) {\n\t\t\t\trows = new int[rowList.size()];\n\t\t\t\tfor (int rli = 0; rli < rowList.size(); rli++) {\n\t\t\t\t\trows[rli] = rowList.get(rowList.get(rli));\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tthis.rethrow(e, sql, (Object[]) params);\n\t\t} finally {\n\t\t\tclose(stmt);\n\t\t\tif (closeConn) {\n\t\t\t\tclose(conn);\n\t\t\t}\n\t\t}\n\n\t\treturn rows;\n\t}", "@SuppressWarnings(\"unchecked\")\n\t@Transactional(isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED)\n\tpublic List<Batch> findAllCurrent();", "@Component\npublic interface BidDao {\n\n /**\n * 通过标id查找该标的信息\n * @return\n */\n @Select(value = \"select id,userId,bidAmount,bidCurrentAmount,bidRepaymentMethod,bidRate,bidDeadline,substr(to_char(bidIssueDate,'yyyy-mm-dd hh24:mi:ss'),0,19) bidIssueDate,bidDeadDay,bidDeadDate,bidApplyDate,bidDesc,bidType from bid_info where id=#{id}\")\n Map getBidInfoById(int id);\n\n /**\n * 根据用户id查找该用户的信息\n * @param userId\n * @return\n */\n @Select(value = \"select realname,sex,address,idnumber,academic,housed,marriage,income from realname_certification where userId=#{userId}\")\n Map getBaseInfoByUserId(int userId);\n\n /**\n * 将投标信息放入到bid_submit投资记录表中\n * @param map\n * @return\n */\n @Insert(value = \"insert into bid_submit values(seq_bidinfo_id.nextval,#{bidid},#{userId},#{bidNum},#{bidRate},sysdate)\")\n int investBid(Map map);\n\n /**\n * 根据标的id来查投该标的总钱数\n * @param map\n * @return\n */\n @Select(value = \"select nvl(sum(bidAmount),0) bidAmount,nvl(sum(bidRate),0) bidRate from bid_submit where bidInfoID=#{bidid}\")\n Map findInvestMoney(Map map);\n\n /**\n * 通过当前用户查找该用户的登录信息\n * @param userId\n * @return\n */\n @Select(value = \"select username,password,telephone from user_login_info where id=#{userId}\")\n Map findUserName(int userId);\n\n /**\n * 根据标id查找该标的投资状况\n * @param id\n * @return\n */\n @Select(value = \"select b.id,b.BIDINFOID,b.BIDAMOUNT,b.BIDRATE,substr(to_char(b.BIDDATE,'yyyy-mm-dd hh24:mi:ss'),0,19) BIDDATE,u.id,u.USERNAME,u.PASSWORD,u.TELEPHONE from bid_submit b left join USER_LOGIN_INFO u on u.ID=b.USERID where b.BIDINFOID=#{id}\")\n List<Map> findInvestInfo(int id);\n\n /**\n * 通过标id找到招标人id\n * @param id\n * @return\n */\n @Select(value = \"select userId from bid_info where id=#{id}\")\n Map findBidUserId(int id);\n\n /**\n * 根据招标人的id查找该人的还款信息\n * @param bidUserId\n * @return\n */\n /*@Select(value = \"select id,bidID,bidRepayAmount,bidRepayDate,bidRepayDeadDate,bidNextRepayDate,bidNextReapyAmount,bidRepayState,bidRepayNumber,bidRepayTotPmts,bidRepayMethod,(select max(bidrepaydeaddate) from bid_repay_info where bidRepayUserID=#{bidUserId}) lastDate from bid_repay_info where bidRepayUserID=#{bidUserId}\")*/\n @Select(value = \"select id,bidID,bidRepayAmount,bidRepayDate,bidRepayDeadDate,substr(to_char(bidNextRepayDate,'yyyy-mm-dd hh24:mi:ss'),0,19) bidNextRepayDate,bidNextReapyAmount,bidRepayState,bidRepayNumber,bidRepayTotPmts,bidRepayMethod,(select substr(to_char(max(bidrepaydeaddate),'yyyy-mm-dd hh24:mi:ss'),0,19) from bid_repay_info where bidRepayUserID=#{bidUserId}) lastDate from bid_repay_info where bidRepayUserID=#{bidUserId}\")\n List<Map> findRepayByBidUserId(int bidUserId);\n\n /**\n * 根据登录人id查找用户的支付密码\n * @param userId\n * @return\n */\n @Select(value = \"select paypwd from user_info where userId=#{userId}\")\n Map getPayPwd(int userId);\n\n /**\n * 根据登录人的id查找该用户的总的待收利息,总的待收本金\n * @param userId\n * @return\n */\n @Select(value = \"select sum(bidrate) bidrate,sum(bidAmount) bidAmount from bid_submit where userId = #{userId}\")\n Map findTotalRateAndMoney(int userId);\n\n /**\n * 根据用户id查找该用户的账户信息表\n * @param userId\n * @return\n */\n @Select(value = \"select id,USERID,AVAILABLEBALANCE,RECEIVEINTEREST,RECEIVEPRINCIPAL,RETURNAMOUNT,FREEZINGAMOUNT,CREDITLINE,SURPLUSCREDITLINE,TRANSACTIONPASSWORD from user_account where userId=#{userId}\")\n Map findUserAccount(int userId);\n\n /**\n * 根据用户的投标相应的更新用户账户表\n * @param userAccountMap\n * @return\n */\n @Update(value = \"update user_account set availableBalance=#{availableBalance},receiveInterest=#{receiveInterest},receivePrincipal=#{receivePrincipal},freezingAmount=#{freezingAmount} where userId = #{userID}\")\n int updateUserAccount(Map userAccountMap);\n\n /**\n * 用户投标之后将该条信息插入到用户账户流水表中去\n * @param map\n * @return\n */\n @Insert(value = \"insert into user_account_flow values(seq_user_account_flow_id.nextval,#{userId},#{accountId},#{amount},#{availableBalance},sysdate,8)\")\n int insertUserAccountFolw(Map map);\n}", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Insert SB Customer 09 and SB Order 05\")\n public void testHibernateSaveCustomer09AndOrder05()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n SBAddressVal01 addressVal01 = SBAddressVal01.of(\n \"Kusumarama Road\",\n \"Seenigama\",\n \"Hikkaduwa\",\n \"Sri Lanka\",\n \"292000\"\n );\n\n SBCustomerOrder05 order01 = new SBCustomerOrder05();\n order01.setCustomerOrder05InvoiceNumber(\"IN0000001\");\n order01.setCustomerOrder05DateTime(new Timestamp(new java.util.Date().getTime()));\n order01.setCustomerOrder05Total(2024.50);\n order01.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order01.setRawLastUpdateLogId(1);\n order01.setUpdateUserAccountId(1);\n order01.setRawActiveStatus(1);\n order01.setRawDeleteStatus(1);\n order01.setRawShowStatus(1);\n order01.setRawUpdateStatus(1);\n\n SBCustomerOrder05 order02 = new SBCustomerOrder05();\n order02.setCustomerOrder05InvoiceNumber(\"IN0000002\");\n order02.setCustomerOrder05DateTime(new Timestamp(new java.util.Date().getTime()));\n order02.setCustomerOrder05Total(1024.50);\n order02.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order02.setRawLastUpdateLogId(1);\n order02.setUpdateUserAccountId(1);\n order02.setRawActiveStatus(1);\n order02.setRawDeleteStatus(1);\n order02.setRawShowStatus(1);\n order02.setRawUpdateStatus(1);\n\n SBCustomerOrder05 order03 = new SBCustomerOrder05();\n order03.setCustomerOrder05InvoiceNumber(\"IN0000003\");\n order03.setCustomerOrder05DateTime(new Timestamp(new java.util.Date().getTime()));\n order03.setCustomerOrder05Total(3024.50);\n order03.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order03.setRawLastUpdateLogId(1);\n order03.setUpdateUserAccountId(1);\n order03.setRawActiveStatus(1);\n order03.setRawDeleteStatus(1);\n order03.setRawShowStatus(1);\n order03.setRawUpdateStatus(1);\n\n SBCustomerOrder05 order04 = new SBCustomerOrder05();\n order04.setCustomerOrder05InvoiceNumber(\"IN0000004\");\n order04.setCustomerOrder05DateTime(new Timestamp(new java.util.Date().getTime()));\n order04.setCustomerOrder05Total(5024.50);\n order04.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order04.setRawLastUpdateLogId(1);\n order04.setUpdateUserAccountId(1);\n order04.setRawActiveStatus(1);\n order04.setRawDeleteStatus(1);\n order04.setRawShowStatus(1);\n order04.setRawUpdateStatus(1);\n\n SBCustomer09 sbCustomer09 = new SBCustomer09();\n\n sbCustomer09.getCustomer09Orders().add(order01);\n sbCustomer09.getCustomer09Orders().add(order02);\n sbCustomer09.getCustomer09Orders().add(order03);\n sbCustomer09.getCustomer09Orders().add(order04);\n\n sbCustomer09.setCustomer09Email(\"[email protected]\");\n sbCustomer09.setCustomer09Sex(\"Male\");\n sbCustomer09.setCustomer09FirstName(\"Umesh\");\n sbCustomer09.setCustomer09LastName(\"Gunasekara\");\n sbCustomer09.setCustomer09Nic(\"901521344V\");\n sbCustomer09.setCustomer09Mobile(\"0711233000\");\n try {\n sbCustomer09.setCustomer09Birthday(new SimpleDateFormat(\"dd/MM/yyyy\").parse(\"31/05/1990\"));\n } catch (ParseException e) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n sbCustomer09.setCustomer09Address(addressVal01);\n sbCustomer09.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbCustomer09.setRawLastUpdateLogId(1);\n sbCustomer09.setUpdateUserAccountId(1);\n sbCustomer09.setRawActiveStatus(1);\n sbCustomer09.setRawDeleteStatus(1);\n sbCustomer09.setRawShowStatus(1);\n sbCustomer09.setRawUpdateStatus(1);\n\n order01.setSbCustomer09(sbCustomer09);\n order02.setSbCustomer09(sbCustomer09);\n order03.setSbCustomer09(sbCustomer09);\n order04.setSbCustomer09(sbCustomer09);\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n session.save(sbCustomer09);\n session.save(order01);\n session.save(order02);\n session.save(order03);\n session.save(order04);\n transaction.commit();\n System.out.println(\"Added Customer 03: \" + sbCustomer09.getCustomer09FirstName());\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Transactional\n@Mapper\npublic interface UserRepository {\n @Select(\"select * from user limit #{pageSize} offset #{offset}\")\n List<User> query(@Param(\"offset\") int offset,\n @Param(\"pageSize\") int pageSize);\n\n @Select(\"select * from user where id = #{id}\")\n User findOne(@Param(\"id\") Long id);\n\n @Insert(\"insert into user (id, name, password) values (null, #{user.name}, #{user.password})\")\n //@SelectKey(statement = \"select max(id) as id from USER USER\",\n // keyProperty = \"user.id\",\n // keyColumn = \"id\",\n // before = false,\n // statementType = StatementType.STATEMENT,\n // resultType = Long.class)\n @Options(useGeneratedKeys = true, keyProperty = \"user.id\", keyColumn = \"id\")\n Long insert(@Param(\"user\") User user);\n}", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Insert SB Customer 08 and SB Order 04\")\n public void testHibernateSaveCustomer08AndOrder04()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n SBAddressVal01 addressVal01 = SBAddressVal01.of(\n \"Kusumarama Road\",\n \"Seenigama\",\n \"Hikkaduwa\",\n \"Sri Lanka\",\n \"292000\"\n );\n\n SBCustomerOrder04 order01 = new SBCustomerOrder04();\n order01.setCustomerOrder04InvoiceNumber(\"IN0000001\");\n order01.setCustomerOrder04DateTime(new Timestamp(new java.util.Date().getTime()));\n order01.setCustomerOrder04Total(2024.50);\n order01.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order01.setRawLastUpdateLogId(1);\n order01.setUpdateUserAccountId(1);\n order01.setRawActiveStatus(1);\n order01.setRawDeleteStatus(1);\n order01.setRawShowStatus(1);\n order01.setRawUpdateStatus(1);\n\n SBCustomerOrder04 order02 = new SBCustomerOrder04();\n order02.setCustomerOrder04InvoiceNumber(\"IN0000002\");\n order02.setCustomerOrder04DateTime(new Timestamp(new java.util.Date().getTime()));\n order02.setCustomerOrder04Total(1024.50);\n order02.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order02.setRawLastUpdateLogId(1);\n order02.setUpdateUserAccountId(1);\n order02.setRawActiveStatus(1);\n order02.setRawDeleteStatus(1);\n order02.setRawShowStatus(1);\n order02.setRawUpdateStatus(1);\n\n SBCustomerOrder04 order03 = new SBCustomerOrder04();\n order03.setCustomerOrder04InvoiceNumber(\"IN0000003\");\n order03.setCustomerOrder04DateTime(new Timestamp(new java.util.Date().getTime()));\n order03.setCustomerOrder04Total(3024.50);\n order03.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order03.setRawLastUpdateLogId(1);\n order03.setUpdateUserAccountId(1);\n order03.setRawActiveStatus(1);\n order03.setRawDeleteStatus(1);\n order03.setRawShowStatus(1);\n order03.setRawUpdateStatus(1);\n\n SBCustomerOrder04 order04 = new SBCustomerOrder04();\n order04.setCustomerOrder04InvoiceNumber(\"IN0000004\");\n order04.setCustomerOrder04DateTime(new Timestamp(new java.util.Date().getTime()));\n order04.setCustomerOrder04Total(5024.50);\n order04.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order04.setRawLastUpdateLogId(1);\n order04.setUpdateUserAccountId(1);\n order04.setRawActiveStatus(1);\n order04.setRawDeleteStatus(1);\n order04.setRawShowStatus(1);\n order04.setRawUpdateStatus(1);\n\n SBCustomer08 sbCustomer08 = new SBCustomer08();\n\n sbCustomer08.getCustomer08Orders().add(order01);\n sbCustomer08.getCustomer08Orders().add(order02);\n sbCustomer08.getCustomer08Orders().add(order03);\n sbCustomer08.getCustomer08Orders().add(order04);\n\n sbCustomer08.setCustomer08Email(\"[email protected]\");\n sbCustomer08.setCustomer08Sex(\"Male\");\n sbCustomer08.setCustomer08FirstName(\"Umesh\");\n sbCustomer08.setCustomer08LastName(\"Gunasekara\");\n sbCustomer08.setCustomer08Nic(\"901521344V\");\n sbCustomer08.setCustomer08Mobile(\"0711233000\");\n try {\n sbCustomer08.setCustomer08Birthday(new SimpleDateFormat(\"dd/MM/yyyy\").parse(\"31/05/1990\"));\n } catch (ParseException e) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n sbCustomer08.setCustomer08Address(addressVal01);\n sbCustomer08.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbCustomer08.setRawLastUpdateLogId(1);\n sbCustomer08.setUpdateUserAccountId(1);\n sbCustomer08.setRawActiveStatus(1);\n sbCustomer08.setRawDeleteStatus(1);\n sbCustomer08.setRawShowStatus(1);\n sbCustomer08.setRawUpdateStatus(1);\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n session.save(sbCustomer08);\n session.save(order01);\n session.save(order02);\n session.save(order03);\n session.save(order04);\n transaction.commit();\n System.out.println(\"Added Customer 03: \" + sbCustomer08.getCustomer08FirstName());\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Insert SB Customer 07 and SB Order 04\")\n public void testHibernateSaveCustomer07AndOrder04()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n SBAddressVal01 addressVal01 = SBAddressVal01.of(\n \"Kusumarama Road\",\n \"Seenigama\",\n \"Hikkaduwa\",\n \"Sri Lanka\",\n \"292000\"\n );\n\n SBCustomerOrder04 order01 = new SBCustomerOrder04();\n order01.setCustomerOrder04InvoiceNumber(\"IN0000001\");\n order01.setCustomerOrder04DateTime(new Timestamp(new java.util.Date().getTime()));\n order01.setCustomerOrder04Total(2024.50);\n order01.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order01.setRawLastUpdateLogId(1);\n order01.setUpdateUserAccountId(1);\n order01.setRawActiveStatus(1);\n order01.setRawDeleteStatus(1);\n order01.setRawShowStatus(1);\n order01.setRawUpdateStatus(1);\n\n SBCustomerOrder04 order02 = new SBCustomerOrder04();\n order02.setCustomerOrder04InvoiceNumber(\"IN0000002\");\n order02.setCustomerOrder04DateTime(new Timestamp(new java.util.Date().getTime()));\n order02.setCustomerOrder04Total(1024.50);\n order02.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order02.setRawLastUpdateLogId(1);\n order02.setUpdateUserAccountId(1);\n order02.setRawActiveStatus(1);\n order02.setRawDeleteStatus(1);\n order02.setRawShowStatus(1);\n order02.setRawUpdateStatus(1);\n\n SBCustomerOrder04 order03 = new SBCustomerOrder04();\n order03.setCustomerOrder04InvoiceNumber(\"IN0000003\");\n order03.setCustomerOrder04DateTime(new Timestamp(new java.util.Date().getTime()));\n order03.setCustomerOrder04Total(3024.50);\n order03.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order03.setRawLastUpdateLogId(1);\n order03.setUpdateUserAccountId(1);\n order03.setRawActiveStatus(1);\n order03.setRawDeleteStatus(1);\n order03.setRawShowStatus(1);\n order03.setRawUpdateStatus(1);\n\n SBCustomerOrder04 order04 = new SBCustomerOrder04();\n order04.setCustomerOrder04InvoiceNumber(\"IN0000004\");\n order04.setCustomerOrder04DateTime(new Timestamp(new java.util.Date().getTime()));\n order04.setCustomerOrder04Total(5024.50);\n order04.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n order04.setRawLastUpdateLogId(1);\n order04.setUpdateUserAccountId(1);\n order04.setRawActiveStatus(1);\n order04.setRawDeleteStatus(1);\n order04.setRawShowStatus(1);\n order04.setRawUpdateStatus(1);\n\n SBCustomer07 sbCustomer07 = new SBCustomer07();\n\n sbCustomer07.getCustomer07Orders().add(order01);\n sbCustomer07.getCustomer07Orders().add(order02);\n sbCustomer07.getCustomer07Orders().add(order03);\n sbCustomer07.getCustomer07Orders().add(order04);\n\n sbCustomer07.setCustomer07Email(\"[email protected]\");\n sbCustomer07.setCustomer07Sex(\"Male\");\n sbCustomer07.setCustomer07FirstName(\"Umesh\");\n sbCustomer07.setCustomer07LastName(\"Gunasekara\");\n sbCustomer07.setCustomer07Nic(\"901521344V\");\n sbCustomer07.setCustomer07Mobile(\"0711233000\");\n try {\n sbCustomer07.setCustomer07Birthday(new SimpleDateFormat(\"dd/MM/yyyy\").parse(\"31/05/1990\"));\n } catch (ParseException e) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n sbCustomer07.setCustomer07Address(addressVal01);\n sbCustomer07.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbCustomer07.setRawLastUpdateLogId(1);\n sbCustomer07.setUpdateUserAccountId(1);\n sbCustomer07.setRawActiveStatus(1);\n sbCustomer07.setRawDeleteStatus(1);\n sbCustomer07.setRawShowStatus(1);\n sbCustomer07.setRawUpdateStatus(1);\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n session.save(sbCustomer07);\n session.save(order01);\n session.save(order02);\n session.save(order03);\n session.save(order04);\n transaction.commit();\n System.out.println(\"Added Customer 03: \" + sbCustomer07.getCustomer07FirstName());\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "public interface UserDao extends SqlObject {\n\n @SqlQuery(\"SELECT account_code FROM users WHERE email = ?\")\n String getAccountCode(String email);\n\n @SqlQuery(\"SELECT id, email, account_code FROM users WHERE id = ?\")\n @RegisterBeanMapper(User.class)\n User getUserById(Integer userId);\n}", "public static void main(String[] args) {\n\n SessionFactory factory = new Configuration().configure().buildSessionFactory();\n Session session = factory.openSession();\n session.beginTransaction();\n\n System.out.println(\"First step\");\n\n Query query = session.createQuery(\"from UserDetails where userId = 2\");\n query.setCacheable(true);\n query.list();\n\n UserDetails user = session.get(UserDetails.class, 2);\n// System.out.println(\"User1: \" + user);\n\n\n session.close();\n\n System.out.println(\"Second step\");\n\n Session session2 = factory.openSession();\n session2.beginTransaction();\n\n\n Query query2 = session2.createQuery(\"from UserDetails where userId = 2\");\n query2.setCacheable(true);\n query2.list();\n\n UserDetails user1 = session2.get(UserDetails.class, 2);\n// System.out.println(\"User2: \" +user1);\n\n session2.close();\n factory.close();\n\n }", "public interface ISessionDetailDAO {\n void insert(SessionDetail sessionDetail);\n void insertBatch(List<SessionDetail> sessionDetails);\n}", "public static void main(String[] args) {\n\n String resource = \"spring/mybatis/mybatis.xml\";\n InputStream inputStream = null;\n try {\n inputStream = Resources.getResourceAsStream(resource);\n }catch (IOException e){\n e.printStackTrace();\n }\n\n SqlSessionFactory sessionFactory = new SqlSessionFactoryBuilder().build(inputStream);\n SqlSession sqlSession = sessionFactory.openSession();\n //sqlSession.getMapper()\n }", "@MyBatisRepository\npublic interface UserMybatisDao {\n int register(User user);\n\n int updateUser(User user);\n\n String checkPhone(String phone);\n\n int perfectUserInfo(Map params);\n\n User findByToken(String uid);\n\n int checkIsRegisteredByPhone(String phone);\n\n User findByUserId(Long userId);\n}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void migrateDataByBatch() {\n\t\tpool = new HTablePool(conf, 1024);\n\t\tSQLExporter sqlExporter = \n\t\t\tnew SQLExporter(url, username, password, catalog);\n\t\twhile(sqlExporter.hasNextDataTable()) {\n\t\t\tEntry entry = sqlExporter.next();\n\t\t\tString tableName = REGION + \".\" + (String) entry.getKey();\n\t\t\tList<Map<String, Object>> list = (List<Map<String, Object>>) entry.getValue();\n\t\t\t/**\n\t\t\t * table to migrate data.\n\t\t\t */\n\t\t\tHTable table = (HTable) pool.getTable(tableName);\n\t\t\t\n\t\t\t/**\n\t\t\t * set write buffer size.\n\t\t\t */\n\t\t\ttry {\n\t\t\t\ttable.setWriteBufferSize(WRITE_BUFFER_SIZE);\n\t\t\t\ttable.setAutoFlush(false);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tint counter = 0;\n\t\t\tList<Put> puts = new ArrayList<Put>();\n\t\t\tint size = list.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\n\t\t\t\tPut put = new Put((new Integer(i)).toString().getBytes());\n\t\t\t\t\n\t\t\t\tMap<String, Object> map = list.get(i);\n\t\t\t\tcounter ++;\n\t\t\t\t/**\n\t\t\t\t * add one row to be put.\n\t\t\t\t */\n\t\t\t\tfor (Map.Entry<String, Object> m : map.entrySet()) {\t\n\t\t\t\t\tput.add(FAMILY.getBytes(), m.getKey().getBytes(), \n\t\t\t\t\t\t\tm.getValue().toString().getBytes());\t\n\t\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * add `put` to list puts. \n\t\t\t\t */\n\t\t\t\tputs.add(put);\n\t\t\t\t\n\t\t\t\tif ((counter % LIST_PUTS_COUNTER == 0) || (i == size - 1)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttable.put(puts);\n\t\t\t\t\t\ttable.flushCommits();\n\t\t\t\t\t\tputs.clear();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else continue;\n\t\t\t}\n\t\t}\n\t}", "public interface UserShareActivityMapper {\n\n\n @Select(\"select count(1) from lh_share_activity_info WHERE random=#{random} AND share_user_tid=#{user_tid} AND extend_type=#{extend_type}\")\n public Integer checkSharelink(CreateShareLinkEvent event);\n\n @Insert(\"insert into lh_share_activity_info(share_user_tid,\" +\n \"random,extend_type,end_time,create_time) values(#{share_user_tid},#{random},#{extend_type},#{end_time},now())\")\n public void insertShareLink(UserShareInfo userShareInfo);\n}", "@Bean(name = \"DirectorySqlSessionFactory\")\n public SqlSessionFactory sqlSessionFactory(@Qualifier(\"DirectoryDbSource\") DataSource dataSource1) throws Exception {\n MysqlDataSource dataSource = new MysqlDataSource();\n dataSource.setUser(\"JMAGX6WiGv\");\n dataSource.setPassword(\"XLFoDCSr02\");\n dataSource.setServerName(\"remotemysql.com\");\n dataSource.setDatabaseName(\"JMAGX6WiGv\");\n // comment out everything above\n SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean();\n factoryBean.setDataSource(dataSource);\n factoryBean.setTypeAliasesPackage(\"com.cameraiq.technology.directory.port\");\n factoryBean.getObject().getConfiguration().setMapUnderscoreToCamelCase(true);\n return factoryBean.getObject();\n }", "@Test\n public void testGetUserById(){\n User user = userMapper.getUserById(2);\n System.out.println(user);\n MybatisUtil.closeSession();\n }", "@SqlMapper\npublic interface PortalAreaAdminirationMapper {\n List<PortalAreaAdministrationListVo> getPage(PortalAreaAdminirationListCondition condition);\n Integer getCount(PortalAreaAdminirationListCondition condition);\n Integer save(PortalAreaAdminirationListCondition condition);\n Integer delete(PortalAreaAdminirationListCondition condition);\n Integer update(PortalAreaAdminirationListCondition condition);\n}", "public void addBatch() throws SQLException {\n currentPreparedStatement.addBatch();\n }", "@Override\n\tpublic boolean batchUpdate(String[] SQLs) throws RemoteException {\n\t\treturn DAManager.batchUpdate(SQLs);\n\t}", "public abstract byte[][] appExecuteBatch(byte[][] commands, MessageContext[] msgCtxs, boolean fromConsensus);", "public interface BatchDao extends BaseDao<Batch> {\n public BatchDto addClientItem(BatchDto clientItemDto);\n public List<BatchDto> getAllBatchesForClient(Long clientId);\n}", "public interface MyMapper<T> extends Mapper<T>, MySqlMapper<T> {\n\n @Options(useGeneratedKeys = true, keyProperty = \"id\")\n @InsertProvider(type = MyBaseInsertProvider.class, method = \"dynamicSQL\")\n int insertReturnId(T record);\n\n @Options(useGeneratedKeys = true, keyProperty = \"id\")\n @InsertProvider(type = MyBaseInsertProvider.class, method = \"dynamicSQL\")\n int insertSelectiveReturnId(T record);\n\n\n @InsertProvider(type = MyBaseInsertProvider.class, method = \"dynamicSQL\")\n int insertListNotKey(List<T> recordList);\n}", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n Class.forName(\"org.postgresql.Driver\");\n\n // Connect to the \"bank\" database.\n Connection conn = DriverManager.getConnection(\"jdbc:postgresql://127.0.0.1:26257/?reWriteBatchedInserts=true&applicationanme=123&sslmode=disable\", \"root\", \"\");\n conn.setAutoCommit(false); // true and false do not make the difference\n // rewrite batch does not make the difference\n\n try {\n // Create the \"accounts\" table.\n conn.createStatement().execute(\"CREATE TABLE IF NOT EXISTS accounts (id serial PRIMARY KEY, balance INT)\");\n\n // Insert two rows into the \"accounts\" table.\n PreparedStatement st = conn.prepareStatement(\"INSERT INTO accounts (balance) VALUES (?), (?) returning id, balance\", \n ResultSet.TYPE_SCROLL_INSENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n st.setInt(1, 100); \n st.setInt(2, 200); \n\n ResultSet rs = st.executeQuery();\n\n st = conn.prepareStatement(\"select id1, id2, link_type, visibility, data, time, version from linkbench.linktable where id1 = 9307741 and link_type = 123456790 and time >= 0 and time <= 9223372036854775807 and visibility = 1 order by time desc limit 0 offset 10000\",\n ResultSet.TYPE_SCROLL_INSENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n rs = st.executeQuery();\n rs.last();\n int count = rs.getRow();\n rs.beforeFirst();\n System.out.printf(\"# of row in return set is %d\\n\", count);\n\n while (rs.next()) {\n System.out.printf(\"\\taccount %s: %s\\n\", rs.getLong(\"id\"), rs.getInt(\"balance\"));\n }\n } finally {\n // Close the database connection.\n conn.close();\n }\n }", "public interface Dialect {\n boolean skip(MappedStatement ms, Object parameterObject, RowBounds rowBounds);\n\n /**\n * 处理查询参数对象\n *\n * @param ms MappedStatement\n * @param parameterObject\n * @param boundSql\n * @param pageKey\n * @return\n */\n Object processParameterObject(MappedStatement ms, Object parameterObject, BoundSql boundSql, CacheKey pageKey);\n\n /**\n * 执行分页前,返回 true 会进行分页查询,false 会返回默认查询结果\n *\n * @param ms MappedStatement\n * @param parameterObject 方法参数\n * @param rowBounds 分页参数\n * @return\n */\n boolean beforePage(MappedStatement ms, Object parameterObject, RowBounds rowBounds);\n\n /**\n * 生成分页查询 sql\n *\n * @param ms MappedStatement\n * @param boundSql 绑定 SQL 对象\n * @param parameterObject 方法参数\n * @param rowBounds 分页参数\n * @param pageKey 分页缓存 key\n * @return\n */\n String getPageSql(MappedStatement ms, BoundSql boundSql, Object parameterObject, RowBounds rowBounds, CacheKey pageKey);\n\n /**\n * 分页查询后,处理分页结果,拦截器中直接 return 该方法的返回值\n *\n * @param pageList 分页查询结果\n * @param parameterObject 方法参数\n * @param rowBounds 分页参数\n * @return\n */\n Object afterPage(List pageList, Object parameterObject, RowBounds rowBounds);\n\n /**\n * 完成所有任务后\n */\n void afterAll();\n\n /**\n * 设置参数\n *\n * @param properties 插件属性\n */\n void setProperties(Properties properties);\n}", "@Override\n public void insert(Iterator<Object[]> batch) {\n while (batch.hasNext()) {\n BoundStatement boundStatement = statement.bind(batch.next());\n ResultSetFuture future = session.executeAsync(boundStatement);\n Futures.addCallback(future, callback, executor);\n }\n }", "int insertBatch(List<SystemRoleUserMapperMo> list);", "@RequestMapping(\"/testMybatis\")\n public String testMybatis(){\n int count = 0;\n System.out.println(count);\n CtUser ct= new CtUser();\n ct.setUserName(\"张三\");\n ct.setAge(12);\n boolean save = ctUserService.save(ct);\n System.out.println(save);\n return \"success\";\n }" ]
[ "0.61462516", "0.5897025", "0.58865416", "0.5821807", "0.58028346", "0.5702769", "0.56041515", "0.5542329", "0.5486748", "0.54666483", "0.53959924", "0.535451", "0.5353445", "0.5352723", "0.5339169", "0.531659", "0.5308282", "0.52662265", "0.52597094", "0.52530783", "0.5247543", "0.5226455", "0.52172154", "0.5182526", "0.51718575", "0.5156528", "0.5141651", "0.51216173", "0.51128334", "0.50986546", "0.5059175", "0.5045764", "0.5045527", "0.50440973", "0.5043755", "0.502979", "0.5013694", "0.5013447", "0.50050384", "0.5001396", "0.49824524", "0.49763706", "0.49679843", "0.49665076", "0.4955779", "0.4953224", "0.49498338", "0.49408433", "0.49402836", "0.4927882", "0.49272898", "0.49201745", "0.49096924", "0.49010506", "0.4899086", "0.48916787", "0.48769572", "0.48733488", "0.4868241", "0.4858281", "0.48580977", "0.4854373", "0.48481777", "0.4845305", "0.48452976", "0.48413372", "0.48400337", "0.48335925", "0.4825979", "0.48255473", "0.48243767", "0.482379", "0.48137733", "0.48111615", "0.48096487", "0.4809196", "0.480906", "0.48017794", "0.47936928", "0.47927836", "0.47902355", "0.47897762", "0.47844753", "0.47833335", "0.4775062", "0.47723562", "0.47661382", "0.47629255", "0.4757194", "0.4754075", "0.47433862", "0.47355348", "0.4733615", "0.4732211", "0.4731551", "0.4727758", "0.4724853", "0.47236505", "0.47205845", "0.47199926" ]
0.778603
0
/ JADX INFO: super call moved to the top of the method (can break code semantics)
KeyguardMediaController$attach$1(KeyguardMediaController keyguardMediaController) { super(1); this.this$0 = keyguardMediaController; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_6349() {\r\n super.method_6349();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void method_6191() {\r\n super.method_6191();\r\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}", "@Override\n protected void prot() {\n }", "@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 einkaufen() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "@Override\n\tpublic void inorder() {\n\n\t}", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void dosomething2() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void c(int paramInt)\r\n/* 101: */ {\r\n/* 102:122 */ this.b = false;\r\n/* 103:123 */ super.c(paramInt);\r\n/* 104: */ }", "public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }", "protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void method() {\n\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "@Override\n protected void init() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void some() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "@Override\n public void b() {\n }", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "@Override\r\n public void salir() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void preorder() {\n\n\t}", "private stendhal() {\n\t}", "public void doSomething() {\n Outer.this.doSomething();\r\n // this stops the pretty printer and gives an\r\n //parser exception (stumbling over the .super)\r\n Outer.super.doSomething();\r\n }", "@Override\n\tpublic void deneme() {\n\t\tsuper.deneme();\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void preRun() {\n super.preRun();\n }", "public abstract void mo70713b();", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void laught() {\n\r\n\t}", "@Override\n\tpublic void imprimir() {\n\t\t\n\t}", "public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }", "protected void h() {}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "public void method_4270() {}", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "@Override\n\tpublic void call() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tprotected void logic() {\n\n\t}", "public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }", "public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }", "@Override\n protected void initialize() \n {\n \n }", "public void callP(){\n super.walks(\"called parent method\");\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "void berechneFlaeche() {\n\t}", "@Override\n protected void initialize() {\n\n \n }" ]
[ "0.7415376", "0.7120564", "0.7120564", "0.7120564", "0.71153504", "0.70223135", "0.7006699", "0.6959695", "0.69354844", "0.68295795", "0.6789057", "0.6759874", "0.6727165", "0.6727165", "0.6680012", "0.6670413", "0.6636899", "0.66286534", "0.6619911", "0.6605483", "0.6603786", "0.65827864", "0.6582374", "0.6549963", "0.65440935", "0.6521893", "0.65033007", "0.64430153", "0.6418491", "0.6415374", "0.6402436", "0.6399175", "0.63874805", "0.6380345", "0.63703823", "0.636628", "0.6361068", "0.63538253", "0.6352187", "0.63364285", "0.6320418", "0.63070816", "0.63070816", "0.6295037", "0.629354", "0.629354", "0.6286359", "0.6273603", "0.6262495", "0.62398976", "0.622353", "0.6220281", "0.62041765", "0.61982226", "0.61772496", "0.6173603", "0.61712366", "0.6169294", "0.6160802", "0.6130551", "0.61259943", "0.61221814", "0.6102809", "0.60933787", "0.6091748", "0.6089609", "0.6085169", "0.60627353", "0.6061544", "0.6055915", "0.60450166", "0.60438436", "0.60397464", "0.60341513", "0.60323876", "0.60323876", "0.60323876", "0.60323876", "0.60323876", "0.60323876", "0.60318136", "0.60297084", "0.6026534", "0.6025891", "0.6024079", "0.6018422", "0.6014384", "0.6010973", "0.60091984", "0.6001627", "0.5998774", "0.599578", "0.5995695", "0.5991061", "0.59895426", "0.59802836", "0.5971288", "0.5970281", "0.5967115", "0.59662133", "0.59614575" ]
0.0
-1
/ Return type fixed from 'java.lang.Object' to match base method / JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object]
@Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Boolean bool) { invoke(bool.booleanValue()); return Unit.INSTANCE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String mo83558a(Object obj);", "public abstract void mo1184a(Object obj);", "public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }", "public static void method(Object obj){\n\t System.out.println(\"method with param type - Object\");\n\t }", "public abstract Object getTypedParams(Object params);", "void mo67921a(Object obj);", "@Test\n public void getTypeArguments() {\n List<String> target=new ArrayList<String>() {{\n add(\"thimble\");\n }};\n\n Type[] arguments= TypeDetective.sniffTypeParameters(target.getClass(), ArrayList.class);\n assertEquals(1, arguments.length);\n assertEquals(String.class,arguments[0]);\n }", "@Override\n\tpublic NativeObject javaMethodBaseWithObjectRet() {\n\t\treturn null;\n\t}", "void m21805a(Object obj);", "protected List<ObjectInformation> getTypeArgumentObjectInformation(ObjectInformation objectInformation)\n throws FillingException {\n\n List<ObjectInformation> typeArgumentObjectInformationList = new ArrayList<>();\n\n List<Type> actualTypeArguments = GenericsUtils.getActualTypeArguments(objectInformation.getField());\n\n for (Type type : actualTypeArguments) {\n typeArgumentObjectInformationList.add(createObjectInformationForType(type, objectInformation));\n }\n\n return typeArgumentObjectInformationList;\n }", "public void mo1774a(Object obj) {\n }", "void m21806b(Object obj);", "@Override\n\tpublic void javaMethodBaseWithTwoParams(long longParam, double doubleParam) {\n\t\t\n\t}", "void m21808d(Object obj);", "protected Type[] getJoinPointArgumentTypes() {\n return new Type[]{Type.getType(m_calleeMemberDesc)};\n }", "@Override\n\tpublic Object call(Object[] invokedArgs) {\n\t\treturn returnType.cast(informer.get(fieldName));\n\t}", "void m21809e(Object obj);", "protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);", "void m21807c(Object obj);", "public abstract T zzs(Object obj);", "private void init() {\n\t\t// pick to pieces method signature description\n\t\tthis.argTypes = Type.getArgumentTypes(this.desc);\n\t\tthis.newArgTypes = new LinkedList<Type>();\n\t\tfor (Type t : this.argTypes) {\n\t\t\tthis.newArgTypes.add(t);\n\t\t\tif(t.getSort() == Type.OBJECT && !TaintTrackerConfig.isString(t))\n\t\t\t\tcontinue;\n//\t\t\tdetermine proper taint for each argument and append it to newArgTypes\n\t\t\tif (t.getSort() == Type.ARRAY) {\n\t\t\t\tif (t.getElementType().getSort() != Type.OBJECT || TaintTrackerConfig.isString(t.getElementType())) {\n\t\t\t\t\tif (t.getDimensions() > 1) {\n\t\t\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC_ARR));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC));\n\t\t\t}\n\t\t}\n\t\tthis.newReturnType = Type.getReturnType(desc);\n\t\tif (this.newReturnType.getSort() != Type.VOID && this.newReturnType.getSort() != Type.OBJECT) {\n\t\t\tTaintWrapper<?,?> returnType = TaintTrackerConfig.wrapReturnType(Type.getReturnType(desc));\n\t\t\tif(returnType != null)\n\t\t\t\tthis.newReturnType = Type.getType(returnType.getClass());\n\t\t}\n\t\telse if( (this.newReturnType.getSort() == Type.OBJECT && TaintTrackerConfig.isString(this.newReturnType))\n\t\t|| (this.newReturnType.getSort() == Type.ARRAY && TaintTrackerConfig.isString(this.newReturnType.getElementType())) ){\n\t\t\tTaintWrapper<?,?> returnType = TaintTrackerConfig.wrapReturnType(Type.getReturnType(desc));\n\t\t\tif(returnType != null)\n\t\t\t\tthis.newReturnType = Type.getType(returnType.getClass());\n\t\t}\n\t\t\n\t\tType[] newArgs = new Type[newArgTypes.size()];\n\t\tnewArgTypes.toArray(newArgs);\n\t\tthis.newDesc = Type.getMethodDescriptor(newReturnType, newArgs);\n\t}", "Object[] getArguments();", "Object[] getArguments();", "void mo3207a(Object obj);", "public abstract Object mo1771a();", "protected abstract boolean canConvert(Class<?> parameterType, Class<?> originalArgumentType);", "private static void a(Object param0, Class<?> param1) {\n }", "public abstract Object getUnderlyingObject();", "List method_111(class_922 var1, int var2, int var3, int var4);", "protected final com.p111d.p112a.p121c.p134k.C7119d m3865a(com.p111d.p112a.p121c.aa r14, com.p111d.p112a.p121c.p128f.C1451n r15, com.p111d.p112a.p121c.C5354j r16, com.p111d.p112a.p121c.C1545o<?> r17, com.p111d.p112a.p121c.p131i.C1478f r18, com.p111d.p112a.p121c.p131i.C1478f r19, com.p111d.p112a.p121c.p128f.C5328e r20, boolean r21) {\n /*\n r13 = this;\n r0 = r13;\n r5 = r16;\n r1 = r19;\n r11 = r20;\n r2 = r0.f4676d;\n r3 = r0.f4673a;\n r2 = r2.refineSerializationType(r3, r11, r5);\n r3 = 1;\n if (r2 == r5) goto L_0x0058;\n L_0x0012:\n r4 = r2.m11531e();\n r6 = r16.m11531e();\n r7 = r4.isAssignableFrom(r6);\n if (r7 != 0) goto L_0x0056;\n L_0x0020:\n r7 = r6.isAssignableFrom(r4);\n if (r7 != 0) goto L_0x0056;\n L_0x0026:\n r1 = new java.lang.IllegalArgumentException;\n r2 = new java.lang.StringBuilder;\n r3 = \"Illegal concrete-type annotation for method '\";\n r2.<init>(r3);\n r3 = r20.mo1360b();\n r2.append(r3);\n r3 = \"': class \";\n r2.append(r3);\n r3 = r4.getName();\n r2.append(r3);\n r3 = \" not a super-type of (declared) class \";\n r2.append(r3);\n r3 = r6.getName();\n r2.append(r3);\n r2 = r2.toString();\n r1.<init>(r2);\n throw r1;\n L_0x0056:\n r4 = r3;\n goto L_0x005b;\n L_0x0058:\n r4 = r21;\n r2 = r5;\n L_0x005b:\n r6 = r0.f4676d;\n r6 = r6.findSerializationTyping(r11);\n r7 = 0;\n if (r6 == 0) goto L_0x006f;\n L_0x0064:\n r8 = com.p111d.p112a.p121c.p122a.C1397f.C1396b.DEFAULT_TYPING;\n if (r6 == r8) goto L_0x006f;\n L_0x0068:\n r4 = com.p111d.p112a.p121c.p122a.C1397f.C1396b.STATIC;\n if (r6 != r4) goto L_0x006e;\n L_0x006c:\n r4 = r3;\n goto L_0x006f;\n L_0x006e:\n r4 = r7;\n L_0x006f:\n r6 = 0;\n if (r4 == 0) goto L_0x0077;\n L_0x0072:\n r2 = r2.mo3385d();\n goto L_0x0078;\n L_0x0077:\n r2 = r6;\n L_0x0078:\n if (r1 == 0) goto L_0x00bc;\n L_0x007a:\n if (r2 != 0) goto L_0x007d;\n L_0x007c:\n r2 = r5;\n L_0x007d:\n r4 = r2.mo3394u();\n if (r4 != 0) goto L_0x00b6;\n L_0x0083:\n r1 = new java.lang.IllegalStateException;\n r3 = new java.lang.StringBuilder;\n r4 = \"Problem trying to create BeanPropertyWriter for property '\";\n r3.<init>(r4);\n r4 = r15.mo1398a();\n r3.append(r4);\n r4 = \"' (of type \";\n r3.append(r4);\n r4 = r0.f4674b;\n r4 = r4.m3615a();\n r3.append(r4);\n r4 = \"); serialization type \";\n r3.append(r4);\n r3.append(r2);\n r2 = \" has no content\";\n r3.append(r2);\n r2 = r3.toString();\n r1.<init>(r2);\n throw r1;\n L_0x00b6:\n r1 = r2.mo3383b(r1);\n r8 = r1;\n goto L_0x00bd;\n L_0x00bc:\n r8 = r2;\n L_0x00bd:\n r1 = r0.f4675c;\n r2 = r15.mo1423y();\n r1 = r1.m3138a(r2);\n r1 = r1.m3139b();\n r2 = com.p111d.p112a.p113a.C1329q.C1327a.USE_DEFAULTS;\n if (r1 != r2) goto L_0x00d1;\n L_0x00cf:\n r1 = com.p111d.p112a.p113a.C1329q.C1327a.ALWAYS;\n L_0x00d1:\n r2 = com.p111d.p112a.p121c.p134k.C1501m.C15001.f4671a;\n r1 = r1.ordinal();\n r1 = r2[r1];\n switch(r1) {\n case 1: goto L_0x00ef;\n case 2: goto L_0x00e5;\n case 3: goto L_0x00df;\n case 4: goto L_0x00dd;\n default: goto L_0x00dc;\n };\n L_0x00dc:\n goto L_0x0127;\n L_0x00dd:\n r7 = r3;\n goto L_0x0127;\n L_0x00df:\n r1 = com.p111d.p112a.p121c.p134k.C7119d.f20265c;\n L_0x00e1:\n r10 = r1;\n r9 = r3;\n goto L_0x013d;\n L_0x00e5:\n r1 = r16.mo3560a();\n if (r1 == 0) goto L_0x00ec;\n L_0x00eb:\n goto L_0x00df;\n L_0x00ec:\n r9 = r3;\n r10 = r6;\n goto L_0x013d;\n L_0x00ef:\n if (r8 != 0) goto L_0x00f3;\n L_0x00f1:\n r1 = r5;\n goto L_0x00f4;\n L_0x00f3:\n r1 = r8;\n L_0x00f4:\n r2 = r0.f4675c;\n r2 = r2.m3139b();\n r4 = com.p111d.p112a.p113a.C1329q.C1327a.NON_DEFAULT;\n if (r2 != r4) goto L_0x0107;\n L_0x00fe:\n r2 = r15.mo1398a();\n r1 = r0.m3864a(r2, r11, r1);\n goto L_0x010b;\n L_0x0107:\n r1 = com.p111d.p112a.p121c.p134k.C1501m.m3863a(r1);\n L_0x010b:\n if (r1 != 0) goto L_0x010e;\n L_0x010d:\n goto L_0x00e1;\n L_0x010e:\n r2 = r1.getClass();\n r2 = r2.isArray();\n if (r2 == 0) goto L_0x0139;\n L_0x0118:\n r2 = java.lang.reflect.Array.getLength(r1);\n r3 = r1.getClass();\n r4 = new com.d.a.c.m.b$1;\n r4.<init>(r3, r2, r1);\n r10 = r4;\n goto L_0x013c;\n L_0x0127:\n r1 = r16.mo3391n();\n if (r1 == 0) goto L_0x013b;\n L_0x012d:\n r1 = r0.f4673a;\n r2 = com.p111d.p112a.p121c.C5387z.WRITE_EMPTY_JSON_ARRAYS;\n r1 = r1.m18737a(r2);\n if (r1 != 0) goto L_0x013b;\n L_0x0137:\n r1 = com.p111d.p112a.p121c.p134k.C7119d.f20265c;\n L_0x0139:\n r10 = r1;\n goto L_0x013c;\n L_0x013b:\n r10 = r6;\n L_0x013c:\n r9 = r7;\n L_0x013d:\n r12 = new com.d.a.c.k.d;\n r1 = r0.f4674b;\n r4 = r1.mo1376f();\n r1 = r12;\n r2 = r15;\n r3 = r11;\n r6 = r17;\n r7 = r18;\n r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10);\n r1 = r0.f4676d;\n r1 = r1.findNullSerializer(r11);\n if (r1 == 0) goto L_0x015f;\n L_0x0157:\n r2 = r14;\n r1 = r2.mo2929c(r1);\n r12.mo3537b(r1);\n L_0x015f:\n r1 = r0.f4676d;\n r1 = r1.findUnwrappingNameTransformer(r11);\n if (r1 == 0) goto L_0x016d;\n L_0x0167:\n r2 = new com.d.a.c.k.a.r;\n r2.<init>(r12, r1);\n r12 = r2;\n L_0x016d:\n return r12;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.d.a.c.k.m.a(com.d.a.c.aa, com.d.a.c.f.n, com.d.a.c.j, com.d.a.c.o, com.d.a.c.i.f, com.d.a.c.i.f, com.d.a.c.f.e, boolean):com.d.a.c.k.d\");\n }", "public void bar(java.util.List<java.lang.Integer> foo) { return; }", "@Override\r\n public Object getJsObjectInfo(Object[] jsObject, String method, Object[] args) {\r\n {\r\n return null;\r\n }\r\n }", "void mo6504by(Object obj);", "@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }", "public interface StandardTypesLocalService {\n BigInteger getNewBigInteger(BigInteger bi);\n BigInteger[] getNewBigIntegerArray(BigInteger[] bia);\n \n BigDecimal getNewBigDecimal(BigDecimal bd);\n BigDecimal[] getNewBigDecimalArray(BigDecimal[] bda);\n\n Calendar getNewCalendar(Calendar c);\n Calendar[] getNewCalendarArray(Calendar[] ca);\n \n Date getNewDate(Date d);\n Date[] getNewDateArray(Date[] da);\n\n QName getNewQName(QName qname);\n QName[] getNewQNameArray(QName[] qnames);\n \n URI getNewURI(URI uri);\n URI[] getNewURIArray(URI[] uris);\n \n XMLGregorianCalendar getNewXMLGregorianCalendar(XMLGregorianCalendar xgcal);\n XMLGregorianCalendar[] getNewXMLGregorianCalendarArray(XMLGregorianCalendar[] xgcal);\n \n Duration getNewDuration(Duration d);\n Duration[] getNewDurationArray(Duration[] da);\n \n Object getNewObject(Object obj);\n Object[] getNewObjectArray(Object[] objs);\n \n Image getNewImage(Image img);\n Image[] getNewImageArray(Image[] imgs);\n \n DataHandler getNewDataHandler(DataHandler dh);\n DataHandler[] getNewDataHandlerArray(DataHandler[] dha);\n\n Source getNewSource(Source src);\n Source[] getNewSourceArray(Source[] srcs);\n \n UUID getNewUUID(UUID uuid);\n UUID[] getNewUUIDArray(UUID[] uuids);\n}", "StackManipulation special(TypeDescription invocationTarget);", "@Override\n public Object[] getArguments() {\n return null;\n }", "@Override // m.h\n public String a(Object obj) {\n return obj.toString();\n }", "@Override\n public Type tryPerformCall(final Type... args) {\n if (params.length != args.length) {\n return null;\n }\n for (int i = 0; i < args.length; ++i) {\n if (!args[i].canConvertTo(params[i])) {\n return null;\n }\n }\n return ret;\n }", "private void tryCallWithPrimitives() {\n int primitiveType = 10;\n // the method call will take a copy of primitiveType variable value, the original value will not changed\n callMethod(primitiveType);\n // the value is just 100\n System.out.println(primitiveType);\n }", "public void testObjectSuperclassOfInterface() throws NoSuchMethodException {\n assertEquals(Object.class, GenericTypeReflector.getExactSuperType(ArrayList.class, Object.class));\n assertEquals(Object.class, GenericTypeReflector.getExactSuperType(List.class, Object.class));\n assertEquals(Object.class, GenericTypeReflector.getExactSuperType(String[].class, Object.class));\n }", "StackManipulation virtual(TypeDescription invocationTarget);", "public abstract Object mo26777y();", "private void checkForPrimitiveParameters(Method execMethod, Logger logger) {\n final Class<?>[] paramTypes = execMethod.getParameterTypes();\n for (final Class<?> paramType : paramTypes) {\n if (paramType.isPrimitive()) {\n logger.config(\"The method \" + execMethod\n + \" contains a primitive parameter \" + paramType + \".\");\n logger\n .config(\"It is recommended to use it's wrapper class. If no value could be read from the request, now you would got the default value. If you use the wrapper class, you would get null.\");\n break;\n }\n }\n }", "public void testObjectMethodOnInterface() throws NoSuchMethodException {\n Method toString = Object.class.getMethod(\"toString\");\n assertEquals(String.class, GenericTypeReflector.getExactReturnType(toString, ArrayList.class));\n assertEquals(String.class, GenericTypeReflector.getExactReturnType(toString, List.class));\n assertEquals(String.class, GenericTypeReflector.getExactReturnType(toString, String[].class));\n }", "public void a(Object obj) {\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "@Override\n\t\tpublic Object getTypedParams(Object params) {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic Object getTypedParams(Object params) {\n\t\t\treturn null;\n\t\t}", "public Object convertArgs2Java(final PyObject... args) {\n\t\tObject ret = null;\n\n\t\tif (args.length == 1) {\n\t\t\tret = args[0].__tojava__(Object.class);\n\t\t} else {\n\t\t\tfinal Object[] convertedArgs = new Object[args.length];\n\n\t\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\t\tconvertedArgs[i] = args[i].__tojava__(Object.class);\n\t\t\t}\n\n\t\t\tret = convertedArgs;\n\t\t}\n\n\t\treturn ret;\n\t}", "public T caseFunctionArguments(FunctionArguments object)\n {\n return null;\n }", "@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}", "static void checkArgTypes(\r\n\t\tString funcName, Argument[] args, JParameter[] params) {\r\n\t\tif(args.length != params.length){\r\n\t\t\tthrow new IllegalArgumentsException(funcName, \"Wrong number of arguments\");\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<args.length;i++){\r\n\t\t\tJValue val = args[i].getValue();\r\n\t\t\tJParameter jp = params[i];\r\n\t\t\tif(jp.isUntyped()){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tJType typ = jp.getType();\r\n\t\t\tif(RefValue.isGenericNull(val)){\r\n\t\t\t\tJTypeKind kind = typ.getKind();\r\n\t\t\t\tif (kind == JTypeKind.CLASS || kind == JTypeKind.PLATFORM){\r\n\t\t\t\t\t// If it is a generic null, replace it with a typed null to comply with function declaration.\r\n\t\t\t\t\tRefValue rv = RefValue.makeNullRefValue(\r\n\t\t\t\t\t\tval.getMemoryArea(), kind == JTypeKind.CLASS ? (ICompoundType)typ : JObjectType.getInstance());\r\n\t\t\t\t\targs[i].setValue(rv);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcheckConvertibility(val, typ);\r\n\t\t}\r\n\t}", "public abstract Object mo1185b();", "public final java.util.List<p298d.p299a.p300a.p301a.p303y0.p314d.p315a.p322j0.C6439z> mo23417P(java.lang.reflect.Type[] r13, java.lang.annotation.Annotation[][] r14, boolean r15) {\n /*\n r12 = this;\n java.lang.String r0 = \"parameterTypes\"\n p298d.p344x.p346c.C6888i.m12438e(r13, r0)\n java.lang.String r0 = \"parameterAnnotations\"\n p298d.p344x.p346c.C6888i.m12438e(r14, r0)\n java.util.ArrayList r0 = new java.util.ArrayList\n int r1 = r13.length\n r0.<init>(r1)\n java.lang.reflect.Member r1 = r12.mo23408O()\n java.lang.String r2 = \"member\"\n p298d.p344x.p346c.C6888i.m12438e(r1, r2)\n d.a.a.a.y0.b.j1.b.a$a r3 = p298d.p299a.p300a.p301a.p303y0.p304b.p309j1.p311b.C6170a.f12188a\n r4 = 0\n r5 = 0\n if (r3 != 0) goto L_0x004f\n p298d.p344x.p346c.C6888i.m12438e(r1, r2)\n java.lang.Class r2 = r1.getClass()\n java.lang.String r3 = \"getParameters\"\n java.lang.Class[] r6 = new java.lang.Class[r5] // Catch:{ NoSuchMethodException -> 0x0047 }\n java.lang.reflect.Method r3 = r2.getMethod(r3, r6) // Catch:{ NoSuchMethodException -> 0x0047 }\n java.lang.ClassLoader r2 = p298d.p299a.p300a.p301a.p303y0.p304b.p309j1.p311b.C6173b.m11076e(r2)\n java.lang.String r6 = \"java.lang.reflect.Parameter\"\n java.lang.Class r2 = r2.loadClass(r6)\n d.a.a.a.y0.b.j1.b.a$a r6 = new d.a.a.a.y0.b.j1.b.a$a\n java.lang.Class[] r7 = new java.lang.Class[r5]\n java.lang.String r8 = \"getName\"\n java.lang.reflect.Method r2 = r2.getMethod(r8, r7)\n r6.<init>(r3, r2)\n r3 = r6\n goto L_0x004d\n L_0x0047:\n d.a.a.a.y0.b.j1.b.a$a r2 = new d.a.a.a.y0.b.j1.b.a$a\n r2.<init>(r4, r4)\n r3 = r2\n L_0x004d:\n p298d.p299a.p300a.p301a.p303y0.p304b.p309j1.p311b.C6170a.f12188a = r3\n L_0x004f:\n java.lang.reflect.Method r2 = r3.f12189a\n if (r2 != 0) goto L_0x0054\n goto L_0x0058\n L_0x0054:\n java.lang.reflect.Method r3 = r3.f12190b\n if (r3 != 0) goto L_0x005a\n L_0x0058:\n r2 = r4\n goto L_0x0086\n L_0x005a:\n java.lang.Object[] r6 = new java.lang.Object[r5]\n java.lang.Object r1 = r2.invoke(r1, r6)\n java.lang.String r2 = \"null cannot be cast to non-null type kotlin.Array<*>\"\n java.util.Objects.requireNonNull(r1, r2)\n java.lang.Object[] r1 = (java.lang.Object[]) r1\n java.util.ArrayList r2 = new java.util.ArrayList\n int r6 = r1.length\n r2.<init>(r6)\n int r6 = r1.length\n r7 = r5\n L_0x006f:\n if (r7 >= r6) goto L_0x0086\n r8 = r1[r7]\n java.lang.Object[] r9 = new java.lang.Object[r5]\n java.lang.Object r8 = r3.invoke(r8, r9)\n java.lang.String r9 = \"null cannot be cast to non-null type kotlin.String\"\n java.util.Objects.requireNonNull(r8, r9)\n java.lang.String r8 = (java.lang.String) r8\n r2.add(r8)\n int r7 = r7 + 1\n goto L_0x006f\n L_0x0086:\n if (r2 != 0) goto L_0x008a\n r1 = r4\n goto L_0x0092\n L_0x008a:\n int r1 = r2.size()\n java.lang.Integer r1 = java.lang.Integer.valueOf(r1)\n L_0x0092:\n if (r1 != 0) goto L_0x0096\n r1 = r5\n goto L_0x009c\n L_0x0096:\n int r1 = r1.intValue()\n int r3 = r13.length\n int r1 = r1 - r3\n L_0x009c:\n int r3 = r13.length\n int r3 = r3 + -1\n if (r3 < 0) goto L_0x0152\n r6 = r5\n L_0x00a2:\n int r7 = r6 + 1\n r8 = r13[r6]\n java.lang.String r9 = \"type\"\n p298d.p344x.p346c.C6888i.m12438e(r8, r9)\n boolean r9 = r8 instanceof java.lang.Class\n if (r9 == 0) goto L_0x00be\n r10 = r8\n java.lang.Class r10 = (java.lang.Class) r10\n boolean r11 = r10.isPrimitive()\n if (r11 == 0) goto L_0x00be\n d.a.a.a.y0.b.j1.b.c0 r8 = new d.a.a.a.y0.b.j1.b.c0\n r8.<init>(r10)\n goto L_0x00e6\n L_0x00be:\n boolean r10 = r8 instanceof java.lang.reflect.GenericArrayType\n if (r10 != 0) goto L_0x00e0\n if (r9 == 0) goto L_0x00ce\n r9 = r8\n java.lang.Class r9 = (java.lang.Class) r9\n boolean r9 = r9.isArray()\n if (r9 == 0) goto L_0x00ce\n goto L_0x00e0\n L_0x00ce:\n boolean r9 = r8 instanceof java.lang.reflect.WildcardType\n if (r9 == 0) goto L_0x00da\n d.a.a.a.y0.b.j1.b.g0 r9 = new d.a.a.a.y0.b.j1.b.g0\n java.lang.reflect.WildcardType r8 = (java.lang.reflect.WildcardType) r8\n r9.<init>(r8)\n goto L_0x00e5\n L_0x00da:\n d.a.a.a.y0.b.j1.b.s r9 = new d.a.a.a.y0.b.j1.b.s\n r9.<init>(r8)\n goto L_0x00e5\n L_0x00e0:\n d.a.a.a.y0.b.j1.b.h r9 = new d.a.a.a.y0.b.j1.b.h\n r9.<init>(r8)\n L_0x00e5:\n r8 = r9\n L_0x00e6:\n if (r2 != 0) goto L_0x00ea\n r9 = r4\n goto L_0x00f4\n L_0x00ea:\n int r9 = r6 + r1\n java.lang.Object r9 = p298d.p334t.C6790h.m12365s(r2, r9)\n java.lang.String r9 = (java.lang.String) r9\n if (r9 == 0) goto L_0x010e\n L_0x00f4:\n if (r15 == 0) goto L_0x00fe\n int r10 = p005b.p291q.p292a.C5266a.m9790D1(r13)\n if (r6 != r10) goto L_0x00fe\n r10 = 1\n goto L_0x00ff\n L_0x00fe:\n r10 = r5\n L_0x00ff:\n d.a.a.a.y0.b.j1.b.f0 r11 = new d.a.a.a.y0.b.j1.b.f0\n r6 = r14[r6]\n r11.<init>(r8, r6, r9, r10)\n r0.add(r11)\n if (r7 <= r3) goto L_0x010c\n goto L_0x0152\n L_0x010c:\n r6 = r7\n goto L_0x00a2\n L_0x010e:\n java.lang.StringBuilder r13 = new java.lang.StringBuilder\n r13.<init>()\n java.lang.String r14 = \"No parameter with index \"\n r13.append(r14)\n r13.append(r6)\n r14 = 43\n r13.append(r14)\n r13.append(r1)\n java.lang.String r14 = \" (name=\"\n r13.append(r14)\n d.a.a.a.y0.f.d r14 = r12.getName()\n r13.append(r14)\n java.lang.String r14 = \" type=\"\n r13.append(r14)\n r13.append(r8)\n java.lang.String r14 = \") in \"\n r13.append(r14)\n r13.append(r2)\n java.lang.String r14 = \"@ReflectJavaMember\"\n r13.append(r14)\n java.lang.String r13 = r13.toString()\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r13 = r13.toString()\n r14.<init>(r13)\n throw r14\n L_0x0152:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p298d.p299a.p300a.p301a.p303y0.p304b.p309j1.p311b.C6204y.mo23417P(java.lang.reflect.Type[], java.lang.annotation.Annotation[][], boolean):java.util.List\");\n }", "private void doSomething(Object object) {\n\n }", "public abstract boolean method_1028(class_44 var1);", "private static void extractGenericsArguments() throws NoSuchMethodException\r\n {\n Method getInternalListMethod = GenericsClass.class.getMethod( \"getInternalList\" );\r\n\r\n // we get the return type\r\n Type getInternalListMethodGenericReturnType = getInternalListMethod.getGenericReturnType();\r\n\r\n // we can check if the return type is parameterized (using ParameterizedType)\r\n if( getInternalListMethodGenericReturnType instanceof ParameterizedType )\r\n {\r\n ParameterizedType parameterizedType = (ParameterizedType)getInternalListMethodGenericReturnType;\r\n // we get the type of the arguments for the parameterized type\r\n Type[] typeArguments = parameterizedType.getActualTypeArguments();\r\n for( Type typeArgument : typeArguments )\r\n {\r\n // we can work with that now\r\n Class<?> typeClass = (Class<?>)typeArgument;\r\n System.out.println( \"typeArgument = \" + typeArgument );\r\n System.out.println( \"typeClass = \" + typeClass );\r\n }\r\n }\r\n }", "public T caseParameters(Parameters object)\n {\n return null;\n }", "@Override\n\tpublic Class[] getMethodParameterTypes() {\n\t\treturn new Class[]{byte[].class, int.class,byte[].class,\n\t\t byte[].class, int.class, byte[].class,\n\t\t int.class, byte[].class, byte[].class};\n\t}", "@Override\n public int getNumberArguments() {\n return 1;\n }", "abstract Function get(Object arg);", "private static Arguments toArguments(Object item) {\n if (item instanceof Arguments) {\n return (Arguments) item;\n }\n // Pass all multidimensional arrays \"as is\", in contrast to Object[].\n // See https://github.com/junit-team/junit5/issues/1665\n if (ReflectionUtils.isMultidimensionalArray(item)) {\n return arguments(item);\n }\n // Special treatment for one-dimensional reference arrays.\n // See https://github.com/junit-team/junit5/issues/1665\n if (item instanceof Object[]) {\n return arguments((Object[]) item);\n }\n // Pass everything else \"as is\".\n return arguments(item);\n }", "void mo12651e(String str, String str2, Object... objArr);", "public Object[] getArguments() { return args;}", "private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}", "boolean isMoreSpecific (MethodType type) throws OverloadingAmbiguous {\r\n boolean status = false;\r\n\r\n try {\r\n for (int i = 0, size = arguments.size (); i < size; i++) {\r\n\tIdentifier this_arg = (Identifier) arguments.elementAt (i);\r\n\tIdentifier target_arg = (Identifier) type.arguments.elementAt (i);\r\n\r\n\tint type_diff = this_arg.type.compare (target_arg.type);\r\n\tif (type_diff == 0)\r\n\t continue;\r\n\telse if (type_diff > 0) {\r\n\t if (status == true) throw new OverloadingAmbiguous ();\r\n\t} else {\r\n\t if (i != 0) throw new OverloadingAmbiguous ();\r\n\t status = true;\r\n\t}\r\n }\r\n } catch (OverloadingAmbiguous ex) {\r\n throw ex;\r\n } catch (TypeMismatch ex) {\r\n throw new OverloadingAmbiguous ();\r\n }\r\n\r\n return status;\r\n }", "@Override // com.zhihu.android.sugaradapter.SugarHolder\n /* renamed from: a */\n public void mo56529a(Object obj) {\n }", "public abstract JType unboxify();", "@Override\n\tpublic void javaMethodBaseWithNSStringArg(xNSString string) {\n\t\t\n\t}", "private final java.lang.reflect.Method tryGetMethod(java.lang.Class<?> r7, java.lang.String r8, java.lang.Class<?>[] r9, java.lang.Class<?> r10) {\n /*\n r6 = this;\n r0 = 0\n int r1 = r9.length // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.Object[] r1 = java.util.Arrays.copyOf(r9, r1) // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.Class[] r1 = (java.lang.Class[]) r1 // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.reflect.Method r1 = r7.getDeclaredMethod(r8, r1) // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.String r2 = \"result\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r2) // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.Class r2 = r1.getReturnType() // Catch:{ NoSuchMethodException -> 0x005d }\n boolean r2 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r2, (java.lang.Object) r10) // Catch:{ NoSuchMethodException -> 0x005d }\n if (r2 == 0) goto L_0x001d\n r0 = r1\n goto L_0x005d\n L_0x001d:\n java.lang.reflect.Method[] r7 = r7.getDeclaredMethods() // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.String r1 = \"declaredMethods\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r7, r1) // Catch:{ NoSuchMethodException -> 0x005d }\n int r1 = r7.length // Catch:{ NoSuchMethodException -> 0x005d }\n r2 = 0\n r3 = 0\n L_0x0029:\n if (r3 >= r1) goto L_0x005d\n r4 = r7[r3] // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.String r5 = \"method\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r4, r5) // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.String r5 = r4.getName() // Catch:{ NoSuchMethodException -> 0x005d }\n boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r5, (java.lang.Object) r8) // Catch:{ NoSuchMethodException -> 0x005d }\n if (r5 == 0) goto L_0x0055\n java.lang.Class r5 = r4.getReturnType() // Catch:{ NoSuchMethodException -> 0x005d }\n boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r5, (java.lang.Object) r10) // Catch:{ NoSuchMethodException -> 0x005d }\n if (r5 == 0) goto L_0x0055\n java.lang.Class[] r5 = r4.getParameterTypes() // Catch:{ NoSuchMethodException -> 0x005d }\n kotlin.jvm.internal.Intrinsics.checkNotNull(r5) // Catch:{ NoSuchMethodException -> 0x005d }\n boolean r5 = java.util.Arrays.equals(r5, r9) // Catch:{ NoSuchMethodException -> 0x005d }\n if (r5 == 0) goto L_0x0055\n r5 = 1\n goto L_0x0056\n L_0x0055:\n r5 = 0\n L_0x0056:\n if (r5 == 0) goto L_0x005a\n r0 = r4\n goto L_0x005d\n L_0x005a:\n int r3 = r3 + 1\n goto L_0x0029\n L_0x005d:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.KDeclarationContainerImpl.tryGetMethod(java.lang.Class, java.lang.String, java.lang.Class[], java.lang.Class):java.lang.reflect.Method\");\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}", "void mo12652i(String str, String str2, Object... objArr);", "public Object convert(Object from, Class to) {\n \t\tif (from instanceof Function) {\n \t\t\tif (to == Callable.class)\n \t\t\t\treturn new RhinoCallable(engine, (Function) from);\n \t\t} else if (from instanceof Scriptable || from instanceof String) { // Let through string as well, for ArgumentReader\n \t\t\tif (Map.class.isAssignableFrom(to)) {\n \t\t\t\treturn toMap((Scriptable) from);\n \t\t\t} else {\n \t\t\t\t/* try constructing from this prototype first\n \t\t\t\ttry {\n \t\t\t\t\tScriptable scope = engine.getScope();\n \t\t\t\t\tExtendedJavaClass cls = ExtendedJavaClass.getClassWrapper(scope, to);\n \t\t\t\t\treturn cls.construct(Context.getCurrentContext(), scope, new Object[] { from });\n \t\t\t\t} catch(Throwable e) {\n \t\t\t\t\tint i = 0;\n \t\t\t\t}\n \t\t\t\t*/\n \t\t\t\tArgumentReader reader = null;\n \t\t\t\tif (ArgumentReader.canConvert(to) && (reader = getArgumentReader(from)) != null) {\n \t\t\t\t return ArgumentReader.convert(reader, unwrap(from), to);\n \t\t\t\t} else if (from instanceof NativeObject && getZeroArgumentConstructor(to) != null) {\n \t\t\t\t\t// Try constructing an object of class type, through\n \t\t\t\t\t// the JS ExtendedJavaClass constructor that takes \n \t\t\t\t\t// a last optional argument: A NativeObject of which\n \t\t\t\t\t// the fields define the fields to be set in the native type.\n \t\t\t\t\tScriptable scope = ((RhinoEngine) this.engine).getScope();\n \t\t\t\t\tExtendedJavaClass cls =\n \t\t\t\t\t\t\tExtendedJavaClass.getClassWrapper(scope, to);\n \t\t\t\t\tif (cls != null) {\n \t\t\t\t\t\tObject obj = cls.construct(Context.getCurrentContext(),\n \t\t\t\t\t\t\t\tscope, new Object[] { from });\n \t\t\t\t\t\tif (obj instanceof Wrapper)\n \t\t\t\t\t\t\tobj = ((Wrapper) obj).unwrap();\n \t\t\t\t\t\treturn obj;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t} else if (from == Undefined.instance) {\n \t\t\t// Convert undefined ot false if destination is boolean\n \t\t\tif (to == Boolean.TYPE)\n \t\t\t\treturn Boolean.FALSE;\n \t\t} else if (from instanceof Boolean) {\n \t\t\t// Convert false to null / undefined for non primitive destination classes.\n\t\t\tif (!((Boolean) from).booleanValue() && !to.isPrimitive())\n \t\t\t\treturn Undefined.instance;\n \t\t}\n \t\treturn null;\n \t}", "public void method_197(class_1549 var1, long var2) {}", "private static void mapArgumentsToJava(Object[] args) {\n if (null != args) {\n for (int a = 0; a < args.length; a++) {\n args[a] = mapValueToJava(args[a]);\n }\n }\n }", "public T caseArgument(Argument object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void outAMethodCallExpr(AMethodCallExpr node){\n\t\tString methodName = node.getId().getText();\n\t\tType targetType = nodeTypes.get(node.getTarget());\n\t\tboxIt(targetType); \n\t\tClassAttributes targetClass = topLevelSymbolTable.get(targetType.getTypeName());\n\t\tMethodAttributes methodAttributes = targetClass.getMethod(methodName);\n\t\tif (!(node.getTarget() instanceof ASuperExpr)){\n\t\t\til.append(fi.createInvoke(targetType.getTypeName(), methodName, getBecelType(methodAttributes.getReturnType()), getBecelType(methodAttributes.getParameterTypes()) , Constants.INVOKEVIRTUAL));\n\t\t}\n\t\telse {\n\t\t\til.append(fi.createInvoke(targetType.getTypeName(), methodName, getBecelType(methodAttributes.getReturnType()), getBecelType(methodAttributes.getParameterTypes()), Constants.INVOKESPECIAL)); \n\t\t}\n\t\tunboxIt(methodAttributes.getReturnType()); \n\t}", "public ITypeInfo[] getParameters();", "@ReflectionDisable\npublic interface BaseObjectNominal extends BaseObjectNoOwnProperties {\n\n\t@Override\n\t@ReflectionHidden\n\tdefault String baseClass() {\n\n\t\treturn this.getClass().getSimpleName();\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitive<?> name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final CharSequence name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BaseObject name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BasePrimitive<?> name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final BasePrimitiveString name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final CharSequence name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final String name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject basePrototype() {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveNumber baseToNumber() {\n\n\t\treturn BasePrimitiveNumber.NAN;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveString baseToString() {\n\n\t\treturn Base.forString(this.toString());\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault Object baseValue() {\n\n\t\treturn this;\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BaseObject name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitive<?> name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitiveString name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx,\n\t\t\tfinal CharSequence name,\n\t\t\tfinal BaseObject originalIfKnown,\n\t\t\tfinal BaseObject defaultValue,\n\t\t\tfinal ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final int index, final BaseObject originalIfKnown, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final String name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n}", "public void b(Object... objArr) {\n }", "boolean method_107(boolean var1, class_81 var2);", "protected void method_1144(bcb var1) {\r\n if(var1 instanceof class_157) {\r\n this.method_865(var1);\r\n }\r\n\r\n }", "private java.lang.reflect.Method m16124a(java.lang.Class r3, java.lang.String r4, java.lang.Class[] r5) {\n /*\n r2 = this;\n r0 = 0\n if (r3 == 0) goto L_0x0028\n boolean r1 = r2.m16125a((java.lang.Object) r4)\n if (r1 == 0) goto L_0x000a\n goto L_0x0028\n L_0x000a:\n r3.getMethods() // Catch:{ Exception -> 0x0015 }\n r3.getDeclaredMethods() // Catch:{ Exception -> 0x0015 }\n java.lang.reflect.Method r3 = r3.getDeclaredMethod(r4, r5) // Catch:{ Exception -> 0x0015 }\n return r3\n L_0x0015:\n java.lang.reflect.Method r3 = r3.getMethod(r4, r5) // Catch:{ Exception -> 0x001a }\n return r3\n L_0x001a:\n java.lang.Class r1 = r3.getSuperclass()\n if (r1 == 0) goto L_0x0028\n java.lang.Class r3 = r3.getSuperclass()\n java.lang.reflect.Method r0 = r2.m16124a((java.lang.Class) r3, (java.lang.String) r4, (java.lang.Class[]) r5)\n L_0x0028:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.shortcutbadger.impl.OPPOHomeBader.m16124a(java.lang.Class, java.lang.String, java.lang.Class[]):java.lang.reflect.Method\");\n }", "@Override\n public Object invoke(Object proxy, Method method, Object[] args)\n throws Throwable {\n if (method.getDeclaringClass() == Object.class) {\n return method.invoke(this, args);\n }\n ServiceMethod<Object, Object> serviceMethod =\n (ServiceMethod<Object, Object>) loadServiceMethod(method);\n ServiceCall<Object> serviceCall = new ServiceCall<>(serviceMethod, args);\n return serviceMethod.adapt(serviceCall, args);\n }", "@Override\n\tpublic String visitMethodCall(MethodCallContext ctx) {\n\t\tint childrenNo=ctx.children.size();\n\t\tParseTree lastChild=ctx.children.get(childrenNo-1);\n\t\tString returnType;\n\t\tString methodName;\n\t\tif(lastChild instanceof TerminalNode){\n\t\t\tList<String> argTypes=new ArrayList<>();\n\t\t\tStack<String> ids=new Stack<>();\n\t\t\tParseTree n=ctx.children.get(childrenNo-2);\n\t\t\tif (childrenNo<=4){\n\t\t\t\tif(!(n instanceof TerminalNode)){\n\t\t\t\t\tmethodName=ctx.getChild(childrenNo-4).getText();\n\t\t\t\t\tMethodRecord mRec=(MethodRecord) table.lookup(methodName);\n\t\t\t\t\tif (mRec==null)throw new RuntimeException(\"method \"+methodName+ \" is not declared\");\n\t\t\t\t\tList<VarRecord> paramList=(List<VarRecord>) mRec.getParameters();\n\t\t\t\t\tList<ParseTree> arguments= new ArrayList<>();\n\t\t\t\t\tfor(int i=0;i<=n.getChildCount();i+=2){\n\t\t\t\t\t\targuments.add(n.getChild(i));\n\t\t\t\t\t}\n\t\t\t\t\tif(paramList.size()!=arguments.size())throw new RuntimeException(\"Incorrect number of arguments\");\n\t\t\t\t\telse for(int i=0;i<=paramList.size()-1;i++){\n\t\t\t\t\t\tString actualType=visit(arguments.get(i));\n\t\t\t\t\t\tString declaredType=paramList.get(i).getReturnType();\n\t\t\t\t\t\tif(!actualType.equals(declaredType)) throw new RuntimeException(\"Incorrect argument type\");\n\t\t\t\t\t}//checking arguments complete\n\t\t\t\t\treturn mRec.getReturnType();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tClassRecord cRec;\n\t\t\t\t\t\tmethodName=ctx.getChild(childrenNo-3).getText();\n\t\t\t\t\t\tcRec=(ClassRecord) table.lookup(methodName);\n\t\t\t\t\t\tMethodRecord mRec=cRec.getMethod(methodName);\n\t\t\t\t\t\tif (mRec==null)throw new RuntimeException(\"method \"+methodName+ \" is not declared\");\n\t\t\t\t\t\treturn mRec.getReturnType();\n\t\t\t\t\t}\n\t\t\t}else \n\t\t\tif(!(n instanceof TerminalNode)){\n\t\t\t\tmethodName=ctx.getChild(childrenNo-4).getText();\n\t\t\t\t//checking charAt(i) \n\t\t\t\tif(methodName.equals(\"charAt\")){\n\t\t\t\t\tif(n.getChildCount()!=1) throw new RuntimeException(\"Incorrect number of arguments on charAt()function\");\n\t\t\t\t\telse {\n\t\t\t\t\t\tString charArgType=visit(n);\t\t//check argument type is int\n\t\t\t\t\t\tif (!charArgType.equals(\"int\")) throw new RuntimeException(\"ARgument i on function charAt(i) must be of type int\");\n\t\t\t\t\t}\n\t\t\t\t\tString objectType=table.lookup(ctx.getChild(childrenNo-6).getText()).getReturnType();\n\t\t\t\t\tif (!objectType.equals(\"String\")) throw new RuntimeException(\".charAt(i) is applicable only to Strings\");\n\t\t\t\t}\n\t\t\t\tfor(int i=0;i<=n.getChildCount();i+=2){\n\t\t\t\t\targTypes.add(visit(n.getChild(i)));\n\t\t\t\t}\n\t\t\tfor(int i=childrenNo-4;i>=0;i-=2){\n\t\t\t\tids.push(ctx.getChild(i).getText());\n\t\t\t}\n\t\t\t}else{ \n\t\t\t\t//checking .length()\n\t\t\t\tmethodName=ctx.getChild(childrenNo-3).getText();\n\t\t\t\tif(methodName.equals(\"length\")){\n\t\t\t\t\tString objectType=table.lookup(ctx.getChild(childrenNo-5).getText()).getReturnType();\n\t\t\t\t\tif (!objectType.equals(\"String\")) throw new RuntimeException(\".length() is applicale only to Strings\");\n\t\t\t\t}\n\t\t\t\targTypes=null;\n\t\t\t\tfor(int i=childrenNo-3;i>=0;i-=2){\n\t\t\t\t\tids.push(ctx.getChild(i).getText());\n\t\t\t\t}\n\t\t\t}\n\t\t\tint count=ids.size();\n\t\t\tClassRecord cRec=null;\n\t\t\tRecord r;\n\t\t\tfor(int i=0;i<=count-2;i++){\n\t\t\t\tString key=ids.pop();\n\t\t\t\tr= table.lookup(key);\t\t\t\t\n\t\t\t\tcRec=(ClassRecord)table.lookup(r.Type);\n\t\t\t\tif (cRec==null) throw new RuntimeException(\"Class \"+key+\" is not declared\");\t\t\t\t\n\t\t\t}\n\t\t\t//last item in stack is the method Identifier\n\t\t\tMethodRecord mRec=cRec.getMethod(ids.pop());\n\t\t\tif (mRec==null)throw new RuntimeException(\"Method not declared in class \"+cRec.getName());\n\t\t\treturnType=mRec.getReturnType();\n\t\t\tif(methodName.equals(\"charAt\")) returnType=\"char\";\n\t\t\tif(methodName.equals(\"length\"))returnType=\"int\";\n\t\t\t//checking arguments \n\t\t\tif(argTypes==null) return returnType;\n\t\t\telse {\t\t\t\t\n\t\t\t\tList<VarRecord> parameters=(List<VarRecord>) mRec.getParameters();\n\t\t\t\tif(parameters.size()!=argTypes.size()) throw new RuntimeException(\"Incorect number of arguments on method call\");\n\t\t\t\telse{\n\t\t\t\t\tfor(int i=0;i<argTypes.size();i++){\n\t\t\t\t\t\tif(!argTypes.get(i).equals((parameters.get(i).getReturnType()))) throw new RuntimeException (\"incorrect argument type\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} return returnType;\n\t\t}\telse \t\t\t\t\t\t// last node is a RuleNode\n\t\t\t{\n\t\t\t\tif (childrenNo==3){\t\t\t\t\t\n\t\t\t\tString leftType=visit(ctx.getChild(0)); //also checks the first method for undeclared ids\n\t\t\t\t//ClassRecord cRec=(ClassRecord) table.lookup(ctx.getChild(0).getText());\n\t\t\t\tParseTree node=ctx.getChild(2);\n\t\t\t\t//checking charAt function\n\t\t\t\tif((node.getChildCount()==4)&&(node.getChild(3) instanceof TerminalNode)){\t\t\t\n\t\t\t\t\tif (node.getChild(0).getText().equals(\"charAt\")){\n\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"charAt() only applicable to Strings\");\n\t\t\t\t\t\tString argType=visit(node.getChild(2));\n\t\t\t\t\t\tif (!argType.equals(\"int\")) throw new RuntimeException(\"Incorrect argument in charAt()\");\n\t\t\t\t\t\treturn \"char\";\n\t\t\t\t\t}\n\t\t\t\t}else if(node.getChildCount()==3&&((node.getChild(2) instanceof TerminalNode))){\n\t\t\t\t\tif(node.getChild(0).getText().equals(\"length\")){\n\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"length() only applicable to Strings\");\n\t\t\t\t\t\telse return \"int\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t{String mName=ctx.getChild(2).getChild(0).getText();\n\t\t\t\tClassRecord tempCR=(ClassRecord) table.lookup(ctx.getChild(0).getChild(0).getText());\n\t\t\t\tMethodRecord mRec=tempCR.getMethod(mName);\n\t\t\t\tif(mRec==null)throw new RuntimeException(\"method \"+mName+\" is not declared in class \"+tempCR.getName());\n\t\t\t\treturn mRec.getReturnType(); //visit the last methodCall in the chain \n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (childrenNo==5){\n\t\t\t\t\tString leftType=visit(ctx.getChild(1)); //also checks the first method for undeclared ids\n\t\t\t\t\tParseTree node=ctx.getChild(4);\n\t\t\t\t\t//checking charAt function\n\t\t\t\t\tif((node.getChildCount()==4)&&(node.getChild(3) instanceof TerminalNode)){\t\t\t\n\t\t\t\t\t\tif (node.getChild(0).getText().equals(\"charAt\")){\n\t\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"charAt() only applicable to Strings\");\n\t\t\t\t\t\t\telse return visit(node);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(node.getChildCount()==3&&((node.getChild(2) instanceof TerminalNode))){\n\t\t\t\t\t\tif(node.getChild(0).getText().equals(\"length\")){\n\t\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"length() only applicable to Strings\");\n\t\t\t\t\t\t\telse return visit(node);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tClassRecord cR=(ClassRecord)table.lookup(leftType);\n\t\t\t\t\tMethodRecord mRec=cR.getMethod(node.getChild(0).getText());\n\t\t\t\t\treturn mRec.getReturnType(); //visit the last methodCall in the chain \n\t\t\t\t}\n\t\t\t}\n\t\treturn null; //debuggin purposes. should be unreachable\n\t}", "public abstract CallAdapter<?, ?> mo38628a(Type type, Annotation[] annotationArr, C13430i iVar);", "public abstract B zzt(Object obj);", "@Override\n\t\tpublic Object[] getParameters() {\n\t\t\treturn null;\n\t\t}", "void mo29844a(IObjectWrapper iObjectWrapper, zzxz zzxz, String str, zzatk zzatk, String str2) throws RemoteException;", "@Override\n public Class<?>[] getParameterTypes() {\n return null;\n }", "@Override\n public String visit(TypeParameter n, Object arg) {\n return null;\n }", "protected abstract Object[] getValue(Object ... inputs) throws InvalidNumberOfArgumentsException;", "Type getMethodParameterType() throws IllegalArgumentException;", "@Override\n public int getArgLength() {\n return 4;\n }", "public static d.a r(Object var0) {\n var1_1 = false;\n var2_2 = new d.a();\n if (var0 instanceof d.a) {\n return (d.a)var0;\n }\n if (!(var0 instanceof String)) ** GOTO lbl9\n var2_2.type = 1;\n var2_2.fN = (String)var0;\n ** GOTO lbl40\nlbl9: // 1 sources:\n if (!(var0 instanceof List)) ** GOTO lbl16\n var2_2.type = 2;\n var3_3 = (List)var0;\n var0 = new ArrayList<E>(var3_3.size());\n var3_3 = var3_3.iterator();\n var1_1 = false;\n ** GOTO lbl43\nlbl16: // 1 sources:\n if (!(var0 instanceof Map)) ** GOTO lbl24\n var2_2.type = 3;\n var4_6 = ((Map)var0).entrySet();\n var0 = new ArrayList<E>(var4_6.size());\n var3_4 = new ArrayList<Object>(var4_6.size());\n var4_6 = var4_6.iterator();\n var1_1 = false;\n ** GOTO lbl52\nlbl24: // 1 sources:\n if (dh.s(var0)) {\n var2_2.type = 1;\n var2_2.fN = var0.toString();\n } else if (dh.t(var0)) {\n var2_2.type = 6;\n var2_2.fT = dh.u(var0);\n } else if (var0 instanceof Boolean) {\n var2_2.type = 8;\n var2_2.fU = (Boolean)var0;\n } else {\n var2_2 = new StringBuilder().append(\"Converting to Value from unknown object type: \");\n var0 = var0 == null ? \"null\" : var0.getClass().toString();\n bh.w(var2_2.append((String)var0).toString());\n return dh.aaN;\n }\nlbl40: // 6 sources:\n do {\n var2_2.fX = var1_1;\n return var2_2;\n break;\n } while (true);\nlbl43: // 2 sources:\n while (var3_3.hasNext()) {\n var4_5 = dh.r(var3_3.next());\n if (var4_5 == dh.aaN) {\n return dh.aaN;\n }\n var1_1 = var1_1 != false || var4_5.fX != false;\n var0.add(var4_5);\n }\n var2_2.fO = var0.toArray(new d.a[0]);\n ** GOTO lbl40\nlbl52: // 2 sources:\n while (var4_6.hasNext()) {\n var6_8 = (Map.Entry)var4_6.next();\n var5_7 = dh.r(var6_8.getKey());\n var6_8 = dh.r(var6_8.getValue());\n if (var5_7 == dh.aaN) return dh.aaN;\n if (var6_8 == dh.aaN) {\n return dh.aaN;\n }\n var1_1 = var1_1 != false || var5_7.fX != false || var6_8.fX != false;\n var0.add(var5_7);\n var3_4.add(var6_8);\n }\n var2_2.fP = var0.toArray(new d.a[0]);\n var2_2.fQ = var3_4.toArray(new d.a[0]);\n ** while (true)\n }", "@Override\n\tpublic void VisitMethodCallNode(MethodCallNode Node) {\n\n\t}", "@Override\n public void visitCallExpression(PsiCallExpression expression) {\n super.visitCallExpression(expression);\n //Get the types of all of the arguments, if one matches our checked classes, then we FLAG the CODE!\n\n PsiExpressionList list = expression.getArgumentList();\n PsiExpression[] type = list.getExpressions();\n\n/*\n if (isCheckedType(expression.getType())) //Check the call\n holder.registerProblem(expression,\n METHOD_CALL_EXPRESSION , myQuickFix);\n*/\n\n for (int i = 0; i < type.length; i++) { //Check the call arguments\n if (isCheckedType(type[i].getType()))\n holder.registerProblem(type[i],\n METHOD_CALL_ARGUMENT + \". Argument '\" + type[i].getText() + \"' is of unvalidated type '\" + type[i].getType().getPresentableText() + \"'\", callFix);\n }\n\n }", "@Override\n public void func_104112_b() {\n \n }", "@Test\n\tpublic void testClassHasCopyAndReplaceLessThanMethod() {\n\t\t// EDIT THESE TO MATCH YOUR METHOD\n\t\tmethodName = \"copyAndReplaceLessThan\";\n\t\targTypes = \"\";\n\t\treturnType = \"int[]\";\n\t\t// END EDIT\n\t\t// class exists\n\t\ttry {\n\t\t\tPackage pkg = getClass().getPackage();\n\t\t\tString path = pkg == null ? \"\" : pkg.getName() + \".\";\n\t\t\tcls = Class.forName(path + className);\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tfail(\"File \\\"\" + className + \".class\\\" doesn't have a \\\"\" + className\n\t\t\t\t\t+ \"\\\" class. (is the class name spelled right?)\");\n\t\t}\n\n\t\t// class has method\n\t\ttry {\n\t\t\t// EDIT HERE TO GIVE PARAMETER TYPES\n\t\t\tmethod = cls.getMethod(methodName, int[].class, int.class);\n\t\t\t// END EDIT\n\t\t} catch (NoSuchMethodException | SecurityException e) {\n\t\t\tfail(\"Class \\\"\" + className + \"\\\" doesn't have a \\\"\" + methodName + \"(\" + argTypes\n\t\t\t\t\t+ \")\\\" method. (is the method name spelled right? are its parameters correct?)\");\n\t\t}\n\t\tinvokation = className + \".\" + methodName + \"(\" + argTypes + \")\";\n\t}", "static Object resolveGeneric (FXLocal.Context context, Type typ) {\n if (typ instanceof ParameterizedType) {\n ParameterizedType ptyp = (ParameterizedType) typ;\n Type raw = ptyp.getRawType();\n Type[] targs = ptyp.getActualTypeArguments();\n if (raw instanceof Class) {\n String rawName = ((Class) raw).getName();\n if (FXClassType.SEQUENCE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return new FXSequenceType(context.makeTypeRef(targs[0]));\n }\n if (FXClassType.OBJECT_VARIABLE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return context.makeTypeRef(targs[0]);\n }\n if (FXClassType.SEQUENCE_VARIABLE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return new FXSequenceType(context.makeTypeRef(targs[0]));\n }\n if (rawName.startsWith(FXClassType.FUNCTION_CLASSNAME_PREFIX)) {\n FXType[] prtypes = new FXType[targs.length-1];\n for (int i = prtypes.length; --i >= 0; )\n prtypes[i] = context.makeTypeRef(targs[i+1]);\n FXType rettype;\n if (targs[0] == java.lang.Void.class)\n rettype = FXPrimitiveType.voidType;\n else\n rettype = context.makeTypeRef(targs[0]);\n return new FXFunctionType(prtypes, rettype);\n }\n }\n \n typ = raw;\n }\n if (typ instanceof WildcardType) {\n WildcardType wtyp = (WildcardType) typ;\n Type[] upper = wtyp.getUpperBounds();\n Type[] lower = wtyp.getLowerBounds();\n typ = lower.length > 0 ? lower[0] : wtyp.getUpperBounds()[0];\n if (typ instanceof Class) {\n String rawName = ((Class) typ).getName();\n // Kludge, because generics don't handle primitive types.\n FXType ptype = context.getPrimitiveType(rawName);\n if (ptype != null)\n return ptype;\n }\n return context.makeTypeRef(typ);\n }\n if (typ instanceof GenericArrayType) {\n FXType elType = context.makeTypeRef(((GenericArrayType) typ).getGenericComponentType());\n return new FXJavaArrayType(elType);\n }\n if (typ instanceof TypeVariable) {\n // KLUDGE\n typ = Object.class;\n }\n return typ;\n }" ]
[ "0.61152714", "0.59286815", "0.591603", "0.5910676", "0.5897522", "0.5867401", "0.5866546", "0.58606243", "0.5844676", "0.58324814", "0.5832049", "0.58095205", "0.5776685", "0.57678354", "0.573801", "0.57158506", "0.5713926", "0.5692902", "0.56865025", "0.5650688", "0.56474584", "0.56241703", "0.56241703", "0.5577742", "0.55658764", "0.5563975", "0.55623096", "0.5562009", "0.5554643", "0.55436295", "0.55416954", "0.5536464", "0.55358815", "0.5528648", "0.5505629", "0.5494517", "0.5489366", "0.54846185", "0.5484191", "0.548344", "0.54687583", "0.5453071", "0.54436064", "0.5411267", "0.5403931", "0.5403603", "0.54027724", "0.53926283", "0.53926283", "0.539218", "0.53859746", "0.536153", "0.5346841", "0.533674", "0.53338253", "0.5332465", "0.53260016", "0.5314131", "0.530495", "0.5301885", "0.52830136", "0.5275322", "0.5267002", "0.526282", "0.52587944", "0.5244316", "0.52434236", "0.52393013", "0.5235756", "0.52322793", "0.52298856", "0.52262217", "0.5216362", "0.52082676", "0.5199998", "0.5189686", "0.517649", "0.5172222", "0.51702154", "0.5156145", "0.5151694", "0.51440394", "0.5122559", "0.51208997", "0.51182187", "0.5117348", "0.5116555", "0.51113266", "0.510939", "0.5107273", "0.5106128", "0.5104609", "0.5100499", "0.50985813", "0.50984156", "0.5095157", "0.50893426", "0.5087573", "0.50821465", "0.5082082", "0.5081773" ]
0.0
-1
Validando posibles respuestas del webservice
@Override public void onResponse(Call<Apod> call, Response<Apod> response) { if(response != null && (response.code() != 500 || response.code() != 500 || response.body() != null)) { //Asignamos la información del Apod recibido a los controles y variables de clase if (response.body().getMediaType().equals("image")) { //Si es imagen //Url de la foto urlImageApod = response.body().getUrl(); Picasso.with(getActivity()).load(response.body().getUrl()).into(imageApod); isVideo = false; } else { //Si es video urlVideo = response.body().getUrl(); imageApod.setImageResource(R.drawable.play); isVideo = true; } tvDate.setText(response.body().getDate()); tvTitle.setText(response.body().getTitle()); tvExplanation.setText(response.body().getExplanation()); //No siempre viene con copyright String copyright = TextUtils.isEmpty(response.body().getCopyright()) ? "" : response.body().getCopyright(); tvCopyright.setText(copyright); //Construimos el objeto apod por si el usuario decide agregarlo a favoritos modelApod = new Apod(); modelApod.setCopyright(copyright); modelApod.setDate(response.body().getDate()); modelApod.setExplanation(response.body().getExplanation()); modelApod.setHdurl(response.body().getHdurl()); modelApod.setMediaType(response.body().getMediaType()); modelApod.setServiceVersion(response.body().getServiceVersion()); modelApod.setTitle(response.body().getTitle()); modelApod.setUrl(response.body().getUrl()); } else{ Toast.makeText(getActivity(),getString(R.string.fragApod_msgNoInformation), Toast.LENGTH_LONG).show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ValidationResponse validate();", "protected abstract boolean isResponseValid(SatelMessage response);", "@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}", "Boolean responseHasErrors(MovilizerResponse response);", "protected Response checkResponse(Response plainAnswer) throws WSException{\n if(plainAnswer!=null)\n switch(plainAnswer.getStatus()){\n //good answers\n case 200: {\n return plainAnswer;\n }//OK\n case 202: {\n return plainAnswer;\n }//ACCEPTED \n case 201: {\n return plainAnswer;\n }//CREATED\n //To be evaluate\n case 204: {\n return plainAnswer;\n }//NO_CONTENT\n //bad answers\n case 400: {\n throw new WSException400(\"BAD REQUEST! The action can't be completed\");\n }//BAD_REQUEST \n case 409: {\n throw new WSException409(\"CONFLICT! The action can't be completed\");\n }//CONFLICT \n case 403: {\n throw new WSException403(\"FORBIDDEN!The action can't be completed\");\n }//FORBIDDEN \n case 410: {\n throw new WSException410(\"GONE! The action can't be completed\");\n }//GONE\n case 500: {\n throw new WSException500(\"INTERNAL_SERVER_ERROR! The action can't be completed\");\n }//INTERNAL_SERVER_ERROR \n case 301: {\n throw new WSException301(\"MOVED_PERMANENTLY! The action can't be completed\");\n }//MOVED_PERMANENTLY \n case 406: {\n throw new WSException406(\"NOT_ACCEPTABLE! The action can't be completed\");\n }//NOT_ACCEPTABLE\n case 404: {\n throw new WSException404(\"NOT_FOUND! The action can't be completed\");\n }//NOT_FOUND\n case 304: {\n throw new WSException304(\"NOT_MODIFIED! The action can't be completed\");\n }//NOT_MODIFIED \n case 412: {\n throw new WSException412(\"PRECONDITION_FAILED! The action can't be completed\");\n }//PRECONDITION_FAILED \n case 303: {\n throw new WSException303(\"SEE_OTHER! The action can't be completed\");\n }//SEE_OTHER\n case 503: {\n throw new WSException503(\"SERVICE_UNAVAILABLE! The action can't be completed\");\n }//SERVICE_UNAVAILABLE\n case 307: {\n throw new WSException307(\"TEMPORARY_REDIRECT! The action can't be completed\");\n }//TEMPORARY_REDIRECT \n case 401: {\n throw new WSException401(\"UNAUTHORIZED! The action can't be completed\");\n }//UNAUTHORIZED \n case 415: {\n throw new WSException415(\"UNSUPPORTED_MEDIA_TYPE! The action can't be completed\");\n }//UNSUPPORTED_MEDIA_TYPE \n }\n return plainAnswer;\n }", "default boolean checkJsonResp(JsonElement response) {\n return false;\n }", "public abstract boolean validate(Request request, Response response);", "boolean isValid()\n {\n return isRequest() && isResponse();\n }", "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 String badOrMissingResponseData();", "private void validaciónDeRespuesta()\n\t{\n\t\ttry {\n\n\t\t\tString valorCifrado = in.readLine();\n\t\t\tString hmacCifrado = in.readLine();\n\t\t\tbyte[] valorDecifrado = decriptadoSimetrico(parseBase64Binary(valorCifrado), llaveSecreta, algSimetrica);\n\t\t\tString elString = printBase64Binary(valorDecifrado);\n\t\t\tbyte[] elByte = parseBase64Binary(elString);\n\n\t\t\tSystem.out.println( \"Valor decifrado: \"+elString + \"$\");\n\n\t\t\tbyte[] hmacDescifrado = decriptarAsimetrico(parseBase64Binary(hmacCifrado), llavePublica, algAsimetrica);\n\n\t\t\tString hmacRecibido =printBase64Binary(hmacDescifrado);\n\t\t\tbyte[] hmac = hash(elByte, llaveSecreta, HMACSHA512);\n\t\t\tString hmacGenerado = printBase64Binary(hmac);\n\n\n\n\n\t\t\tboolean x= hmacRecibido.equals(hmacGenerado);\n\t\t\tif(x!=true)\n\t\t\t{\n\t\t\t\tout.println(ERROR);\n\t\t\t\tSystem.out.println(\"Error, no es el mismo HMAC\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Se confirmo que el mensaje recibido proviene del servidor mediante el HMAC\");\n\t\t\t\tout.println(OK);\n\t\t\t}\n\n\n\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error con el hash\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public boolean validateReponse(Response response, int id,int which)\n {\n return response.isSuccessful();\n }", "private boolean validate(Map<String,String> requestMap){\r\n\t\tboolean result = false;\r\n\t\tString zip = requestMap.get(PublicAPIConstant.ZIP);\r\n\t\tString soStatus = requestMap.get(PublicAPIConstant.SO_STATUS);\r\n\t\tList<String> soStatusList = new ArrayList<String>();\r\n\r\n\t\tif (null != soStatus) {\r\n\t\t\tStringTokenizer strTok = new StringTokenizer(\r\n\t\t\t\t\tsoStatus,\r\n\t\t\t\t\tPublicAPIConstant.SEPARATOR, false);\r\n\t\t\tint noOfStatuses = strTok.countTokens();\r\n\t\t\tfor (int i = 1; i <= noOfStatuses; i++) {\r\n\t\t\t\tsoStatusList.add(new String(strTok\r\n\t\t\t\t\t\t.nextToken()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tInteger pageSize = Integer.parseInt(requestMap.get(\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET));\r\n\t\t\r\n\t\tif(null!=zip&&zip.length() != 5){\r\n\t\t\trequestMap.put(PublicAPIConstant.ERROR_FIELD, \r\n\t\t\t\t\tPublicAPIConstant.ZIP);\r\n\t\t\treturn result;\t\r\n\t\t}\r\n\t\tList<Integer> pageSizeSetValues = Arrays.asList(\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_10,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_20,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_50,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_100,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_200,\r\n\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET_500);\t\t\r\n\t\tif(!pageSizeSetValues.contains(pageSize)){\r\n\t\t\trequestMap.put(PublicAPIConstant.ERROR_FIELD, \r\n\t\t\t\t\tPublicAPIConstant.PAGE_SIZE_SET);\r\n\t\t\treturn result;\t\r\n\t\t}\t\r\n\t\t\r\n\t\tList<String> soStatusValues = Arrays.asList(\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_POSTED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_ACCEPTED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_ACTIVE,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_CLOSED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_COMPLETED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_DRAFTED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_PROBLEM,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_EXPIRED,\r\n\t\t\t\tPublicAPIConstant.SOSTATUS_SET_PENDINGCANCEL\r\n\t\t);\t\t\r\n\t\tif(!soStatusValues.containsAll(soStatusList)){\r\n\t\t\trequestMap.put(PublicAPIConstant.ERROR_FIELD, \r\n\t\t\t\t\tPublicAPIConstant.SO_STATUS_SET);\r\n\t\t\treturn result;\t\r\n\t\t}\t\r\n\t\tresult = true;\r\n\t\treturn result;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n private boolean checkResponse (HttpResponse<?> pResponse) {\n boolean result = false;\n if (pResponse != null\n && pResponse.getStatus() == 200\n && pResponse.getBody() != null) {\n HttpResponse<String> response = (HttpResponse<String>)pResponse;\n JSONObject body = new JSONObject(response.getBody());\n if (body.has(\"result\")) {\n result = Boolean.TRUE.equals(body.getBoolean(\"success\"));\n }\n }\n return result;\n }", "int isValid() throws IOException, SoapException;", "@Override\n public void onResponse(Call<ResponseContent> call, Response<ResponseContent> response) {//obtener datos\n\n ResponseContent data = response.body();\n\n ValidateResponse( data );\n\n }", "@GET\n @Path(\"validate\")\n @Produces({MediaType.APPLICATION_JSON + \";charset=utf-8\"})\n public Response validateToken() {\n CONSOLE.log(Level.INFO, \"Token validado con exito. \");\n return Response.ok(new ResponseDTO(0, \"Token validado con éxito\")).build();\n }", "private String validateErrorResponse(Response response) {\n\t\t\n\t\tlogger.debug(response.body().asString());\t\n\t\treturn response.body().asString();\n\t\t\n\t\t\n\t}", "@Override\n\tprotected void check() throws SiDCException, Exception {\n\t\tif (entity == null) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of request.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getStatus())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of status.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getLangcode())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of lang code.\");\n\t\t}\n\t}", "@Override\n\tprotected void check() throws SiDCException, Exception {\n\t\tif (entity == null) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"request illegal.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getToken())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"request illegal(token).\");\n\t\t}\n\t\tif (entity.getStatus() < 0) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"request illegal(status).\");\n\t\t}\n\t\tif (!StringUtils.isBlank(entity.getTex()) && entity.getTex().length() > 30) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"request illegal(tex length).\");\n\t\t}\n\t\tif (!StringUtils.isBlank(entity.getAddress()) && entity.getTex().length() > 150) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"request illegal(address length).\");\n\t\t}\n\t\tif (!StringUtils.isBlank(entity.getEmail())) {\n\t\t\tif (entity.getEmail().length() > 150) {\n\t\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"request illegal(email length).\");\n\t\t\t}\n\t\t\tif (!entity.getEmail().matches(\"[\\\\w\\\\.\\\\-]+@([\\\\w\\\\-]+\\\\.)+[\\\\w\\\\-]+\")) {\n\t\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"request illegal(email format).\");\n\t\t\t}\n\t\t}\n\t\tif (entity.getList() == null || entity.getList().isEmpty()) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"request illegal(list).\");\n\t\t}\n\t\tfor (final ShopLangBean langEntity : entity.getList()) {\n\t\t\tif (StringUtils.isBlank(langEntity.getName())) {\n\t\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"request illegal(name).\");\n\t\t\t}\n\t\t\tif (StringUtils.isBlank(langEntity.getLangcode())) {\n\t\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"request illegal(lang code).\");\n\t\t\t}\n\t\t\tif (langEntity.getName().length() > 50) {\n\t\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"request illegal(name length).\");\n\t\t\t}\n\t\t\tif (langEntity.getLangcode().length() > 5) {\n\t\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"request illegal(lang code length).\");\n\t\t\t}\n\t\t\tif (!StringUtils.isBlank(langEntity.getDescription()) && langEntity.getDescription().length() > 2048) {\n\t\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"request illegal(description length).\");\n\t\t\t}\n\t\t}\n\t}", "public boolean validateResponse(Response response) {\n return response.isSuccessful();\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}", "boolean hasListResponse();", "@Override\n public void onResponse(Call<ResponseContent> call, Response<ResponseContent> response) {//obtener datos\n\n try{\n\n ResponseContent data = response.body();\n\n boolean answer = ValidateResponse( data );\n\n if( answer ){\n\n Toast.makeText(CONTEXTO.getApplicationContext(),\n mss.msmServices.getString(data.getBody().getString(1).toString()),\n Toast.LENGTH_SHORT).show(); // muestro mensaje enviado desde el servidor\n\n }else{\n Log.i( mss.TAG, data.getBody().toString() );\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n new ServicesPeticion().SaveError(e,\n new Exception().getStackTrace()[0].getMethodName().toString(),\n this.getClass().getName());//Envio la informacion de la excepcion al server\n }\n\n\n }", "private void addValidationErrorResponses(Operation operation, HandlerMethod handlerMethod) {\n if (handlerMethod.getMethod().getDeclaringClass().isAnnotationPresent(Validated.class)) {\n List<ConstraintsDescriptor.Description> constraints = ConstraintsDescriptor.describeParameters(handlerMethod.getMethod());\n if (!constraints.isEmpty()) {\n ApiError apiError = ApiError.builder()\n .type(ErrorType.CLIENT)\n .status(400)\n .code(VALIDATION_FAILED)\n .message(\"Validation failed\")\n .build();\n StringBuilder description = new StringBuilder();\n description.append(\"A request parameter validation failed:\");\n constraintsToString(description, \"\", constraints);\n addApiErrorResponse(operation, apiError, description.toString(), null);\n }\n }\n }", "@Test\r\n\tpublic void deveValidarCamposObrigatoriosNaMovimentacao() {\r\n\t\t\r\n\t\tgiven()\r\n\t\t\t.body(\"{}\") // mesma coisa que \"nada\"\r\n\t\t.when()\r\n\t\t\t.post(\"/transacoes\")\r\n\t\t.then()\r\n\t\t\t.statusCode(400)\r\n\t\t\t.body(\"$\", hasSize(8))\r\n\t\t\t.body(\"msg\", hasItems(\r\n\t\t\t\t\t\t\"Data da Movimentação é obrigatório\",\r\n\t\t\t\t\t\t\"Data do pagamento é obrigatório\",\r\n\t\t\t\t\t\t\"Descrição é obrigatório\",\r\n\t\t\t\t\t\t\"Interessado é obrigatório\",\r\n\t\t\t\t\t\t\"Valor é obrigatório\",\r\n\t\t\t\t\t\t\"Valor deve ser um número\",\r\n\t\t\t\t\t\t\"Conta é obrigatório\",\r\n\t\t\t\t\t\t\"Situação é obrigatório\"\r\n\t\t\t\t\t))\r\n\t\t;\r\n\t}", "@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}", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "private void validateData() {\n }", "public ValidaExistePersonaRespuesta() {\n\t\theader = new EncabezadoRespuesta();\n\t\t}", "private String parseSOAPResponse(SoapObject response) {\n\n\t\tString isSuccess =response.getPrimitivePropertySafelyAsString(\"UpdateStundentDetailsResult\");\n\t\t\n\t\treturn isSuccess;\n\t}", "private boolean validateParameterAndIsNormalSAMLResponse(String sAMLResponse) {\n try {\n LOG.trace(\"Validating Parameter SAMLResponse\");\n EIDASUtil.validateParameter(\n ColleagueResponseServlet.class.getCanonicalName(),\n EIDASParameters.SAML_RESPONSE.toString(), sAMLResponse,\n EIDASErrors.COLLEAGUE_RESP_INVALID_SAML);\n return true;\n } catch (InvalidParameterEIDASException e) {\n LOG.info(\"ERROR : SAMLResponse parameter is missing\",e.getMessage());\n LOG.debug(\"ERROR : SAMLResponse parameter is missing\",e);\n throw new InvalidParameterException(\"SAMLResponse parameter is missing\");\n }\n }", "public void validarPago(){\n RequestContext context = RequestContext.getCurrentInstance(); \n pago = new funciones().redondearMas(pago,2);\n intereses = new funciones().redondearMas(intereses,2);\n mora = new funciones().redondearMas(mora,2);\n if(pago < 0){\n pagoValido = false;\n new funciones().setMsj(3,\"Pago no puede ser Negativo\");\n }else if(pago == 0){\n new funciones().setMsj(3,\"Pago debe ser mayor a 0.00\");\n pagoValido = false;\n }else{\n float saldoActual = new funciones().redondearMas(facturaCredito.getSaldoCreditoCompra().floatValue(),2);\n if(pago <= saldoActual){\n if(intereses < 0 || mora < 0){\n //pago invalido\n pagoValido = false;\n new funciones().setMsj(3,\"Monto de INTERESES o MORA negativo\");\n }else{\n //PAGO VALIDO\n pagoValido = true;\n //calcular nuevo Saldo\n nuevoSaldo = new funciones().redondearMas(saldoActual - pago,2);\n }\n }else{\n //pago invalido\n pagoValido = false;\n new funciones().setMsj(2,\"Pago mayor que SALDO ACTUAL\");\n }\n }\n context.addCallbackParam(\"validar\", pagoValido);\n \n }", "private boolean checkCastMemberInputData(HttpServletRequest request, HttpServletResponse response) {\n return request.getParameter(\"castMemberName\") != null && request.getParameter(\"castMemberName\").length() > 0\n && request.getParameter(\"castMemberSurname\") != null && request.getParameter(\"castMemberSurname\").length() > 0\n && request.getParameter(\"castMemberBirthDate\") != null && request.getParameter(\"castMemberBirthDate\").length() > 0\n && request.getParameter(\"gender\") != null && request.getParameter(\"gender\").length() > 0\n && request.getParameter(\"castMemberCountry\") != null && request.getParameter(\"castMemberCountry\").length() > 0\n && request.getParameter(\"castMemberImageURL\") != null && request.getParameter(\"castMemberImageURL\").length() > 0;\n }", "public static boolean validateResponseNoResult ( ResponseWSDTO pResponse ) {\r\n if ( pResponse != null && pResponse.getCode() != null && !pResponse.getCode().isEmpty() && pResponse.getCode() != null && !pResponse.getCode().isEmpty()\r\n && pResponse.getCode().equals( ConstantCommon.WSResponse.CODE_ZERO )\r\n && pResponse.getType().equals( ConstantCommon.WSResponse.TYPE_NORESULT ) ) {\r\n return true;\r\n }\r\n return false;\r\n }", "protected void performGenericAuthorizationEndpointErrorResponseValidation() {\n\t\tcallAndContinueOnFailure(CheckStateInAuthorizationResponse.class, ConditionResult.FAILURE);\n\t\t// as https://tools.ietf.org/html/draft-ietf-oauth-iss-auth-resp is still a draft we only warn if the value is wrong,\n\t\t// and do not require it to be present.\n\t\tcallAndContinueOnFailure(ValidateIssInAuthorizationResponse.class, ConditionResult.WARNING, \"OAuth2-iss-2\");\n\t\tcallAndContinueOnFailure(EnsureErrorFromAuthorizationEndpointResponse.class, ConditionResult.FAILURE, \"OIDCC-3.1.2.6\");\n\t\tcallAndContinueOnFailure(RejectAuthCodeInAuthorizationEndpointResponse.class, ConditionResult.FAILURE, \"OIDCC-3.1.2.6\");\n\t\tcallAndContinueOnFailure(CheckForUnexpectedParametersInErrorResponseFromAuthorizationEndpoint.class, ConditionResult.WARNING, \"OIDCC-3.1.2.6\");\n\t\tcallAndContinueOnFailure(CheckErrorDescriptionFromAuthorizationEndpointResponseErrorContainsCRLFTAB.class, ConditionResult.WARNING, \"RFC6749-4.1.2.1\");\n\t\tcallAndContinueOnFailure(ValidateErrorDescriptionFromAuthorizationEndpointResponseError.class, ConditionResult.FAILURE,\"RFC6749-4.1.2.1\");\n\t\tcallAndContinueOnFailure(ValidateErrorUriFromAuthorizationEndpointResponseError.class, ConditionResult.FAILURE,\"RFC6749-4.1.2.1\");\n\t}", "default boolean checkForError(HttpResponse response) {\n parameters.clear();\n\n\n if (response.getStatusCode() == 500) {\n System.out.println(\"Internal server error\");\n return true;\n } else if (response.getStatusCode() == 400) {\n System.out.println(\"Your input was not as expected. Use \\\"help\\\"-command to get more help.\");\n System.out.println(response.getBody());\n return true;\n } else if (response.getStatusCode() == 404) {\n System.out.println(\"The resource you were looking for could not be found. Use \\\"help\\\"-command to get more help.\");\n }\n\n return false;\n\n }", "@Override\n @SuppressWarnings(\"all\")\n protected ResponseEntity<Object> handleMethodArgumentNotValid(MethodArgumentNotValidException ex,\n HttpHeaders headers, HttpStatus status,\n WebRequest request) {\n Map<String, Object> hashMap = new LinkedHashMap<>();\n Map<String, Set<String>> setMap = ex.getBindingResult()\n .getFieldErrors()\n .stream()\n .collect(Collectors.groupingBy(\n FieldError::getField,\n Collectors.mapping(FieldError::getDefaultMessage, Collectors.toSet())));\n hashMap.put(\"errors\", setMap);\n return new ResponseEntity<>(hashMap, headers, status);\n }", "void validateJson();", "@Test\n public void test_invalid() throws Exception {\n matchInvoke(serviceURL, \"PWDDIC_testSearch_invalid_req.xml\",\n \"PWDDIC_testSearch_invalid_res.xml\");\n }", "@Override\n\tprotected ResponseEntity<Object> handleMethodArgumentNotValid(MethodArgumentNotValidException ex, HttpHeaders headers, HttpStatus status, WebRequest request) {\n\t\tErrorsWrapper errors = new ErrorsWrapper();\n\t\tfor (FieldError fieldError: ex.getBindingResult().getFieldErrors()) {\n\t\t\terrors.add(new ErrorModel(fieldError));\n\t\t}\n\t\treturn new ResponseEntity<Object>(errors, HttpStatus.BAD_REQUEST);\n\t}", "public void testTechError1() throws XRd4JException, SOAPException {\n String soapString = \"<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:xrd=\\\"http://x-road.eu/xsd/xroad.xsd\\\"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>Server.ClientProxy.LoggingFailed.TimestamperFailed</faultcode><faultstring>Cannot time-stamp messages</faultstring><faultactor></faultactor><detail><xrd:faultDetail>TimestamperFailed</xrd:faultDetail></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>\";\n SOAPMessage msg = SOAPHelper.toSOAP(soapString);\n\n ServiceResponseDeserializer deserializer = new ListServicesResponseDeserializer();\n ServiceResponse<String, String> response = deserializer.deserialize(msg);\n\n assertEquals(null, response.getConsumer());\n assertEquals(null, response.getProducer());\n assertEquals(null, response.getId());\n assertEquals(null, response.getUserId());\n assertEquals(null, response.getRequestData());\n assertEquals(null, response.getResponseData());\n assertEquals(null, response.getRequestHashAlgorithm());\n assertEquals(null, response.getRequestHash());\n assertEquals(\"4.0\", response.getProtocolVersion());\n\n assertEquals(true, response.hasError());\n assertEquals(\"Server.ClientProxy.LoggingFailed.TimestamperFailed\", response.getErrorMessage().getFaultCode());\n assertEquals(\"Cannot time-stamp messages\", response.getErrorMessage().getFaultString());\n assertEquals(\"\", response.getErrorMessage().getFaultActor());\n assertEquals(true, response.getErrorMessage().getDetail() != null);\n assertEquals(\"TimestamperFailed\", response.getErrorMessage().getDetail());\n assertEquals(ErrorMessageType.STANDARD_SOAP_ERROR_MESSAGE, response.getErrorMessage().getErrorMessageType());\n assertEquals(true, response.getSoapMessage() != null);\n }", "public static void validateResponse(Response response, Map<Object, Object> dataInputMap) throws JSONException {\n\t\t\n\t\t//Validate response code to 200\n\t\tvalidateResponseStatusCode(response);\n\t\tJSONObject JSONResponseBody = RestAssuredUtil.getJsonResponseBody(response);\n\t\t\n\t\tSet<Object> inputQueryParams = dataInputMap.keySet();\n\t\t\n\t\t//Validate response for each query param passed in call\n\t\tfor (Object inputQueryParam : inputQueryParams) {\n\t\t\tinputParamValue = dataInputMap.get(inputQueryParam).toString();\n\n\t\t\tif (inputQueryParam.toString().equals(Constants.GET_PAGE_QUERY_PARAM)) {\n\t\t\t\texpectedParamValue = (inputParamValue.equals(\"\")) ? 1 : Integer.parseInt(inputParamValue);\n\t\t\t\tValidateResponse.validateCurrentPage(RestAssuredUtil.getCurrentPage(JSONResponseBody),\n\t\t\t\t\t\texpectedParamValue);\n\t\t\t}\n\t\t\tif (inputQueryParam.toString().equals(Constants.GET_PER_QUERY_PARAM)) {\n\t\t\t\texpectedParamValue = (inputParamValue.equals(\"\")) ? 0 : Integer.parseInt(inputParamValue);\n\t\t\t\tValidateResponse.validateCountPerPage(RestAssuredUtil.getCountLimitPage(JSONResponseBody),\n\t\t\t\t\t\texpectedParamValue);\n\t\t\t}\n\t\t\tif (inputQueryParam.toString().equals(Constants.GET_FILTER_QUERY_PARAM)) {\n\t\t\t\tValidateResponse.validateFilteredCount(response,\n\t\t\t\t\t\tinputQueryParam.toString());\n\t\t\t}\n\n\t\t}\n\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // Variables para enviar y recibir información.\n HttpSession sesion = request.getSession(true); // crea o recupera sesión\n PrintWriter out = response.getWriter();\n\n try {\n String nombreServ = request.getParameter(\"service\"); // contiene el nombre de servicio al que se desea acceder\n String respuestaServ; // contiene la respuesta que brinda el servicio\n\n /* Todos los métodos de AJAX están identificados por el atributo NAME,\n esta página se encarga de brindar servicios a través de AJAX, si se\n ingresa directamente a este Servlet dicho atributo es NULL. */\n if (nombreServ != null) {\n int camposAValidar = 0;\n String nombreTabla = \"\";\n String nombreCampo = \"\";\n String nombreCampo01 = \"\";\n String nombreCampo02 = \"\";\n String valorParametro = \"\";\n String valorParametro01 = \"\";\n String valorParametro02 = \"\";\n String mensajeError = \"\";\n Object tipo = new Object();\n Object tipo01 = new Object();\n Object tipo02 = new Object();\n \n /* Servicio..............: Validate Department Name\n Página que lo utiliza.: departamento.html\n Función...............: Valida el nombre del departamento. */\n if (nombreServ.equals(\"VLDDPTNAM\")) {\n camposAValidar = 1;\n tipo = String.class;\n nombreTabla = \"Departamento\";\n nombreCampo = \"Nombre\";\n valorParametro = request.getParameter(\"name\");\n mensajeError = \"Ya existe un departamento con este nombre.\";\n } else\n \n \n /* Servicio..............: Validate Employee Code\n Página que lo utiliza.: empleado.html\n Función...............: Valida el codigo del empleado. */\n if (nombreServ.equals(\"VLDEMPCDE\")) {\n camposAValidar = 1;\n tipo = String.class;\n nombreTabla = \"Empleado\";\n nombreCampo = \"ID_Empleado\";\n valorParametro = request.getParameter(\"code\");\n mensajeError = \"Ya existe un empleado con este código.\";\n } else\n \n \n /* Servicio..............: Validate Employee ID\n Página que lo utiliza.: empleado.html\n Función...............: Valida el número de identidad del empleado. */\n if (nombreServ.equals(\"VLDEMPIDT\")) {\n camposAValidar = 1;\n tipo = String.class;\n nombreTabla = \"Empleado\";\n nombreCampo = \"Identidad\";\n valorParametro = request.getParameter(\"id\");\n mensajeError = \"Ya existe un empleado con este número de identidad.\";\n } else\n \n \n /* Servicio..............: Validate Equipment Code\n Página que lo utiliza.: equipo.html\n Función...............: Valida el número de serie del equipo. */\n if (nombreServ.equals(\"VLDEQUCDE\")) {\n camposAValidar = 1;\n tipo = String.class;\n nombreTabla = \"Inventario_Equipo_Medico\";\n nombreCampo = \"SerieEquipoMedico\";\n valorParametro = request.getParameter(\"code\");\n mensajeError = \"Ya existe un equipo médico con este número de serie.\";\n } else\n \n \n /* Servicio..............: Validate Medicine Code\n Página que lo utiliza.: catalogomedicamento.html\n Función...............: Valida el número de serie de\n catálogo del medicamento. */\n if (nombreServ.equals(\"VLDMDCCDE\")) {\n camposAValidar = 1;\n tipo = String.class;\n nombreTabla = \"Catalogo_Medicamento\";\n nombreCampo = \"Serie\";\n valorParametro = request.getParameter(\"code\");\n mensajeError = \"Ya existe un registro con este número de serie.\";\n } else\n \n \n /* Servicio..............: Validate Medical Equipment Model\n Página que lo utiliza.: catalogoequipo.html\n Función...............: Valida el nombre del registro del\n catálogo de equipo médico. */\n if (nombreServ.equals(\"VLDMEDEQUMOD\")) {\n camposAValidar = 2;\n nombreTabla = \"Catalogo_Equipo_Medico\";\n nombreCampo01 = \"Marca\";\n nombreCampo02 = \"Modelo\";\n tipo01 = String.class;\n tipo02 = String.class;\n valorParametro01 = request.getParameter(\"mark\");\n valorParametro02 = request.getParameter(\"model\");\n mensajeError = \"Ya existe un registro con este modelo.\";\n } else\n \n \n /* Servicio..............: Validate Medical Equipment Name\n Página que lo utiliza.: catalogoequipo.html\n Función...............: Valida el nombre del registro del\n catálogo de equipo médico. */\n if (nombreServ.equals(\"VLDMEDEQUNAM\")) {\n camposAValidar = 1;\n tipo = String.class;\n nombreTabla = \"Catalogo_Equipo_Medico\";\n nombreCampo = \"Nombre\";\n valorParametro = request.getParameter(\"name\");\n mensajeError = \"Ya existe un registro con este nombre.\";\n } else\n \n \n /* Servicio..............: Validate Medical Supply Code\n Página que lo utiliza.: catalogosuministro.html\n Función...............: Valida el número de serie de\n catálogo del suministro médico. */\n if (nombreServ.equals(\"VLDMEDSPPCDE\")) {\n camposAValidar = 1;\n tipo = String.class;\n nombreTabla = \"Catalogo_Suministro_Medico\";\n nombreCampo = \"Serie\";\n valorParametro = request.getParameter(\"code\");\n mensajeError = \"Ya existe un registro con este número de serie.\";\n } else\n \n \n /* Servicio..............: Validate Medical Supply Batch\n Página que lo utiliza.: suministro.html\n Función...............: Valida el número de lote del suministro\n médico. */\n if (nombreServ.equals(\"VLDMEDSPPBTH\")) {\n camposAValidar = 1;\n tipo = String.class;\n nombreTabla = \"Inventario_Suministro_Medico\";\n nombreCampo = \"Lote\";\n valorParametro = request.getParameter(\"batch\");\n mensajeError = \"Ya existe un registro con este número de lote.\";\n } else\n \n \n /* Servicio..............: Validate Modality Name\n Página que lo utiliza.: modalidad.html\n Función...............: Valida que el nombre de la modalidad no\n esté asignado. */\n if (nombreServ.equals(\"VLDMODNAM\")) {\n camposAValidar = 1;\n tipo = String.class;\n nombreTabla = \"Modalidad\";\n nombreCampo = \"Nombre\";\n valorParametro = request.getParameter(\"name\");\n mensajeError = \"Ya existe un una modalidad con el nombre indicado.\";\n } else\n \n \n /* Servicio..............: Validate Patient Code\n Página que lo utiliza.: paciente.html\n Función...............: Valida el código del paciente para\n no permitir códigos duplicados. */\n if (nombreServ.equals(\"VLDPTNCDE\")) {\n camposAValidar = 1;\n tipo = String.class;\n nombreTabla = \"Paciente\";\n nombreCampo = \"ID_Paciente\";\n valorParametro = request.getParameter(\"code\");\n mensajeError = \"Ya existe un paciente con este código.\";\n } else\n \n \n /* Servicio..............: Validate Patient Identity\n Página que lo utiliza.: paciente.html\n Función...............: Valida el número de identidad del paciente\n para no permitir identidades duplicadas. */\n if (nombreServ.equals(\"VLDPTNIDT\")) {\n camposAValidar = 1;\n tipo = String.class;\n nombreTabla = \"Paciente\";\n nombreCampo = \"Identidad\";\n valorParametro = request.getParameter(\"identity\");\n mensajeError = \"Ya existe un paciente con este número de identidad.\";\n } else\n \n \n /* Servicio..............: Validate Patient Cellphone\n Página que lo utiliza.: paciente.html\n Función...............: Valida el número de teléfono del paciente\n para no permitir números duplicados (celular). */\n if (nombreServ.equals(\"VLDPTNCEL\")) {\n camposAValidar = 1;\n tipo = String.class;\n nombreTabla = \"Paciente\";\n nombreCampo = \"Telefono\";\n valorParametro = request.getParameter(\"cellphone\");\n mensajeError = \"Ya existe un paciente con este número de celular.\";\n } else\n \n \n /* Servicio..............: Validate Provider Name\n Página que lo utiliza.: proveedor.html\n Función...............: Valida el nombre del proveedor para\n no permitir nombres duplicados. */\n if (nombreServ.equals(\"VLDPVDNAM\")) {\n camposAValidar = 1;\n tipo = String.class;\n nombreTabla = \"Proveedor\";\n nombreCampo = \"NombreProveedor\";\n valorParametro = request.getParameter(\"name\");\n mensajeError = \"Ya existe un proveedor con este nombre.\";\n }\n \n \n // * * * Funcionalidad de validación * * *\n if(camposAValidar == 1){\n $ instancia = null;\n PreparedStatement ps = null;\n ResultSet resultadoConsulta = null;\n String myQuery =\n \"SELECT CASE COUNT(*) \" +\n \" WHEN 0 THEN 0 \" +\n \" ELSE 1 END Error \" +\n \"FROM \" + nombreTabla + \" \" +\n \"WHERE \" + nombreCampo + \" = ?;\";\n\n // Realiza consulta del campo indicado a la tabla correspondiente.\n instancia = new $();\n ps = instancia.prepStatement(myQuery);\n if(tipo.equals(String.class))\n ps.setString(1, valorParametro);\n \n resultadoConsulta = ps.executeQuery();\n\n if (resultadoConsulta.next())\n respuestaServ =\n \"{ \\\"error\\\": \" + resultadoConsulta.getBoolean(\"Error\") + \", \" +\n \" \\\"mensaje\\\": \" + (resultadoConsulta.getBoolean(\"Error\") ?\n \" \\\"\" + mensajeError + \"\\\"\" : \"\\\"\\\"\") + \n \"}\";\n else\n respuestaServ =\n \"{ \\\"error\\\": true, \" +\n \" \\\"mensaje\\\": \\\"Error de comunicación.\\\" }\";\n \n out.print( ServiciosU.sustituirCaracteres(respuestaServ) );\n } else if(camposAValidar == 2){\n $ instancia = null;\n PreparedStatement ps = null;\n ResultSet resultadoConsulta = null;\n String myQuery =\n \"SELECT CASE COUNT(*) \" +\n \" WHEN 0 THEN 0 \" +\n \" ELSE 1 END Error \" +\n \"FROM \" + nombreTabla + \" \" +\n \"WHERE \" + nombreCampo01 + \" = ? \" +\n \" AND \" + nombreCampo02 + \" = ?;\";\n\n // Realiza consulta del campo indicado a la tabla correspondiente.\n instancia = new $();\n ps = instancia.prepStatement(myQuery);\n if(tipo01.equals(String.class))\n ps.setString(1, valorParametro01);\n \n if(tipo02.equals(String.class))\n ps.setString(2, valorParametro02);\n \n \n resultadoConsulta = ps.executeQuery();\n if (resultadoConsulta.next())\n respuestaServ =\n \"{ \\\"error\\\": \" + resultadoConsulta.getBoolean(\"Error\") + \", \" +\n \" \\\"mensaje\\\": \" + (resultadoConsulta.getBoolean(\"Error\") ?\n \" \\\"\" + mensajeError + \"\\\"\" : \"\\\"\\\"\") + \n \"}\";\n else\n respuestaServ =\n \"{ \\\"error\\\": true, \" +\n \" \\\"mensaje\\\": \\\"Error de comunicación.\\\" }\";\n \n out.print( ServiciosU.sustituirCaracteres(respuestaServ) );\n }\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n out.print( ServiciosU.sustituirCaracteres(\n \"{ \\\"error\\\": true, \" +\n \" \\\"mensaje\\\": \\\"Error de comunicación.\\\" }\") );\n }\n }", "private String validarEntradas()\n { \n return Utilitarios.validarEntradas(campoNomeAC, campoEnderecoAC, campoBairroAC, campoCidadeAC, campoUfAC, campoCepAC, campoTelefoneAC, campoEmailAC);\n }", "void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }", "private void validateSpecificationOrder(HttpServletRequest request,\n HttpServletResponse response,\n PrintWriter out) throws Exception{\n\n NewOrderService objOrderServiceSpec = new NewOrderService();\n HashMap objHashMap = null;\n\n String strCodigoCliente = \"\",\n strSpecification = \"\";\n\n strCodigoCliente = request.getParameter(\"txtCompanyId\");\n strSpecification = request.getParameter(\"cmbSubCategoria\");\n\n long an_customerid = MiUtil.parseLong(strCodigoCliente);\n long an_specification = MiUtil.parseLong(strSpecification);\n\n objHashMap = objOrderServiceSpec.getAllowedSpecification(an_specification, an_customerid);\n\n if( objHashMap.get(\"strMessage\") != null ){\n throw new UserException((String)objHashMap.get(\"strMessage\"));\n }\n\n }", "private boolean isValidBioData(String bioData) {\n\n // call external web service here\n return true;\n }", "public ValidationResult validatePapRest() {\n var result = new BeanValidationResult(\"identifier\", this);\n\n result.validateNotNull(\"name\", getName());\n result.validateNotNull(\"version\", getVersion());\n\n return result;\n }", "@BodyParser.Of(BodyParser.Xml.class)\n\t public static Result validarUsuario() //cambie aqui, y en gestorUsuario, si hay un error, lo setea en nombre y nombres para poder mostrar error personalizado\n\t {\n\t\t UsuarioOD validarusuario= null;\n\t\t System.out.println(\"Validando Usuario\");\n\t\t String nick = XPath.selectText(\"//nick\", request().body().asXml());\n\t\t String clave = XPath.selectText(\"//clave\", request().body().asXml());\n\t\t System.out.println(\"el nick es: \"+nick);\n\t\t System.out.println(\"el pass es: \"+clave);\n\t\t UsuarioOD usuario = new UsuarioOD(nick,clave);\n\t\t GestorUsuario validar = new GestorUsuario();\n\t\t String IP = null;\n\t\t\t \n\t\t try \n\t\t {\n\t\t\t IP = java.net.InetAddress.getLocalHost().getHostAddress();\n\t\t\t validarusuario = validar.Login(usuario,IP);\n\t\t\t if(!validarusuario.getNombre().equals(\"error\"))\t//antes era validarusuario!=null, lo cambie y si no lo encuentra, en el nombre, el gestor guarda el tipo de error\n\t\t\t {\t\t\t\t\t\n\t\t\t\t XStream xstream = new XStream(new DomDriver());\t\t\n\t\t\t\t String xml = xstream.toXML(validarusuario);\n\t\t\t \t xstream.alias(\"usuario\", UsuarioOD.class);\n\t\t\t \t Logger.info(\"ControladorUsuario: El usuario: \"+nick+ \" ha iniciado sesion\");\n\t\t\t \t return ok(xml);\n\t\t\t }\t\t\n\t\t } catch (UnknownHostException e) \n\t\t {\n\t\t\t e.printStackTrace();\t\t\t \n\t\t }\n\t\t String error = validarusuario.getNombres();\n\t\t System.out.println(\"el mega error es: \"+error);\n\t\t Logger.error(\"ControladorUsuario: Error: \"+error+\" del usuario \"+nick);\n\t\t return ok(\"<mensaje>Error: \"+error+\"</mensaje> \");\t \t\n\t }", "public void throwErrorsFromResponse(Response response) throws ValidationException, IOException {\n String jsonData = response.body().string();\n JSONObject serverErrors = new JSONObject(jsonData).getJSONObject(\"errors\");\n\n System.out.println(String.format(\"serverErrors are %s\", serverErrors.toString()));\n\n MapBindingResult validationErrors = new MapBindingResult(\n new HashMap<String, String>(),\n UserModel.class.getName()\n );\n\n if (!serverErrors.isNull(\"username\")) {\n JSONArray usernameErrors = serverErrors.getJSONArray(\"username\");\n\n for (Object errorString : usernameErrors) {\n validationErrors.rejectValue(\"username\", \"server.invalid\", errorString.toString());\n }\n }\n\n if (!serverErrors.isNull(\"password\")) {\n JSONArray passwordErrors = serverErrors.getJSONArray(\"password\");\n\n for (Object errorString : passwordErrors) {\n validationErrors.rejectValue(\"password\", \"server.invalid\", errorString.toString());\n }\n }\n\n throw new ValidationException(validationErrors);\n }", "private static JsonNode validate (Request req, Response res) {\n FeedVersion version = requestFeedVersion(req, \"manage\");\n\n // FIXME: Update for sql-loader validation process?\n return null;\n// return version.retrieveValidationResult(true);\n }", "java.util.List<WorldUps.UErr> \n getErrorList();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "boolean hasResponse();", "@WebService(name = \"AgendarReservasWS\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\")\npublic interface AgendarReservasWS {\n\n\n /**\n * \n * @param reserva\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws ApplicationException_Exception\n * @throws AccesoMultipleException_Exception\n * @throws BusinessException_Exception\n * @throws ValidacionException_Exception\n * @throws ErrorValidacionException_Exception\n * @throws WarningValidacionCommitException_Exception\n * @throws WarningValidacionException_Exception\n * @throws ErrorValidacionCommitException_Exception\n * @throws UserException_Exception\n * @throws ValidacionClaveUnicaException_Exception\n * @throws ValidacionPorCampoException_Exception\n */\n @WebMethod\n @WebResult(name = \"confirmarReservaResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"confirmarReserva\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConfirmarReserva\")\n @ResponseWrapper(localName = \"confirmarReservaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConfirmarReservaResponse\")\n public Reserva confirmarReserva(\n @WebParam(name = \"reserva\", targetNamespace = \"\")\n Reserva reserva)\n throws AccesoMultipleException_Exception, ApplicationException_Exception, BusinessException_Exception, ErrorValidacionCommitException_Exception, ErrorValidacionException_Exception, UserException_Exception, ValidacionClaveUnicaException_Exception, ValidacionException_Exception, ValidacionPorCampoException_Exception\n ;\n\n// /**\n// * \n// * @param nombre\n// * @return\n// * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Agenda\n// * @throws ApplicationException_Exception\n// * @throws BusinessException_Exception\n// */\n// @WebMethod\n// @WebResult(name = \"consultarAgendaPorNombreResult\", targetNamespace = \"\")\n// @RequestWrapper(localName = \"consultarAgendaPorNombre\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorNombre\")\n// @ResponseWrapper(localName = \"consultarAgendaPorNombreResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorNombreResponse\")\n// public Agenda consultarAgendaPorNombre(\n// @WebParam(name = \"nombre\", targetNamespace = \"\")\n// String nombre)\n// throws ApplicationException_Exception, BusinessException_Exception\n// ;\n\n /**\n * \n * @param nombre\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Agenda\n * @throws ApplicationException_Exception\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarAgendaPorIdResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarAgendaPorId\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorId\")\n @ResponseWrapper(localName = \"consultarAgendaPorIdResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarAgendaPorIdResponse\")\n public Agenda consultarAgendaPorId(\n @WebParam(name = \"id\", targetNamespace = \"\")\n Integer id)\n throws ApplicationException_Exception, BusinessException_Exception\n ;\n \n /**\n * \n * @param agenda\n * @return\n * returns java.util.List<uy.gub.imm.sae.common.factories.ws.client.agendar.Recurso>\n * @throws ApplicationException_Exception\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarRecursosResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarRecursos\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarRecursos\")\n @ResponseWrapper(localName = \"consultarRecursosResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarRecursosResponse\")\n public List<Recurso> consultarRecursos(\n @WebParam(name = \"agenda\", targetNamespace = \"\")\n Agenda agenda)\n throws ApplicationException_Exception, BusinessException_Exception\n ;\n\n /**\n * \n * @param datos\n * @param recurso\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws ApplicationException_Exception\n */\n @WebMethod\n @WebResult(name = \"consultarReservaPorDatosClaveResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"consultarReservaPorDatosClave\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarReservaPorDatosClave\")\n @ResponseWrapper(localName = \"consultarReservaPorDatosClaveResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ConsultarReservaPorDatosClaveResponse\")\n public Reserva consultarReservaPorDatosClave(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"datos\", targetNamespace = \"\")\n HashMap<DatoASolicitar, DatoReserva> datos)\n throws ApplicationException_Exception\n ;\n\n /**\n * \n * @param reserva\n * @throws BusinessException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"desmarcarReserva\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.DesmarcarReserva\")\n @ResponseWrapper(localName = \"desmarcarReservaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.DesmarcarReservaResponse\")\n public void desmarcarReserva(\n @WebParam(name = \"reserva\", targetNamespace = \"\")\n Reserva reserva)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param disponibilidad\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.Reserva\n * @throws BusinessException_Exception\n * @throws UserException_Exception\n * @throws UserCommitException_Exception\n */\n @WebMethod\n @WebResult(name = \"marcarReservaDisponibleResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"marcarReservaDisponible\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.MarcarReservaDisponible\")\n @ResponseWrapper(localName = \"marcarReservaDisponibleResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.MarcarReservaDisponibleResponse\")\n public Reserva marcarReservaDisponible(\n @WebParam(name = \"disponibilidad\", targetNamespace = \"\")\n Disponibilidad disponibilidad)\n throws BusinessException_Exception, UserException_Exception\n ;\n\n /**\n * \n * @param ventanaDeTiempo\n * @param recurso\n * @return\n * returns java.util.List<java.lang.Integer>\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerCuposPorDiaResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerCuposPorDia\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerCuposPorDia\")\n @ResponseWrapper(localName = \"obtenerCuposPorDiaResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerCuposPorDiaResponse\")\n public List<Integer> obtenerCuposPorDia(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"ventanaDeTiempo\", targetNamespace = \"\")\n VentanaDeTiempo ventanaDeTiempo,\n @WebParam(name = \"timezone\", targetNamespace = \"\")\n TimeZone timezone\n )\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param ventanaDeTiempo\n * @param recurso\n * @return\n * returns java.util.List<uy.gub.imm.sae.common.factories.ws.client.agendar.Disponibilidad>\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerDisponibilidadesResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerDisponibilidades\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerDisponibilidades\")\n @ResponseWrapper(localName = \"obtenerDisponibilidadesResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerDisponibilidadesResponse\")\n public List<Disponibilidad> obtenerDisponibilidades(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso,\n @WebParam(name = \"ventanaDeTiempo\", targetNamespace = \"\")\n VentanaDeTiempo ventanaDeTiempo)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @param recurso\n * @return\n * returns uy.gub.imm.sae.common.factories.ws.client.agendar.VentanaDeTiempo\n * @throws BusinessException_Exception\n */\n @WebMethod\n @WebResult(name = \"obtenerVentanaCalendarioInternetResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"obtenerVentanaCalendarioInternet\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerVentanaCalendarioInternet\")\n @ResponseWrapper(localName = \"obtenerVentanaCalendarioInternetResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.ObtenerVentanaCalendarioInternetResponse\")\n public VentanaDeTiempo obtenerVentanaCalendarioInternet(\n @WebParam(name = \"recurso\", targetNamespace = \"\")\n Recurso recurso)\n throws BusinessException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"pingResult\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ping\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.Ping\")\n @ResponseWrapper(localName = \"pingResponse\", targetNamespace = \"http://montevideo.gub.uy/schema/sae/1.0/\", className = \"uy.gub.imm.sae.common.factories.ws.client.agendar.PingResponse\")\n public String ping();\n\n}", "boolean checkValidity(String ename)\r\n {\r\n \tString result=\"\";\r\n \tString temp=\"\";\r\n \t\r\n \tArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\r\n nameValuePairs.add(new BasicNameValuePair(\"epfid\",ename));\r\n \r\n try\r\n {\r\n HttpClient httpclient = new DefaultHttpClient();\r\n HttpPost httppost = new HttpPost(\"http://bpsi.us/blueplanetsolutions/elitepictureframe/elite_check_name_validity_server.php\");\r\n httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\r\n HttpResponse response = httpclient.execute(httppost);\r\n HttpEntity entity = response.getEntity();\r\n is = entity.getContent();\r\n }\r\n catch(Exception e)\r\n {\r\n \t \tSystem.out.println(\"Error in connection to Server\");\r\n \t \tflag=1;\r\n \t \tvalid=0;\r\n }\r\n \r\n if(flag!=1)\r\n {\r\n \r\n try\r\n {\r\n \tBufferedReader reader = new BufferedReader(new InputStreamReader(is,\"iso-8859-1\"),8);\r\n \tStringBuilder sb = new StringBuilder();\r\n \tString line = null;\r\n \r\n \twhile ((line = reader.readLine()) != null) \r\n \t{\r\n \t\tsb.append(line + \"\\n\");\r\n \t}\r\n \tis.close();\r\n \tresult=sb.toString();\r\n }\r\n catch(Exception e)\r\n {\r\n \tSystem.out.println(\"Error converting result\");\r\n \tvalid=0;\r\n }\r\n \r\n \ttry{\r\n \r\n \t\t// Handle response..\r\n JSONArray jArray = new JSONArray(result);\r\n \r\n \tfor(int i=0;i<jArray.length();i++)\r\n \t{\r\n \t\t\tJSONObject json_data = jArray.getJSONObject(i);\r\n \t\t\ttemp = temp+\"\\nId: \"+json_data.getString(\"epfid\");\r\n \t\t\tSystem.out.println(\"Given Id is valid...\");\r\n \t\t\t\r\n \t}\r\n \t\r\n \tvalid=1;\r\n \t//name.setText(\"Welcome \"+uname.getText().toString());\r\n \t\r\n \t}\r\n \tcatch(JSONException e)\r\n \t{\r\n \t\tSystem.out.println(\"ID is invalid...\");\r\n\t\t\tvalid=0;\r\n \t}\r\n \tfinally\r\n \t{\r\n \t\tif(valid==0)\r\n \t\t\treturn false;\r\n \t\telse\r\n \t\t\treturn true;\r\n \t}\r\n }\r\n if(valid==0)\r\n \t\t\treturn false;\r\n \t\telse\r\n \t\t\treturn true;\r\n \t\r\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "private static boolean validAddressREST_Postman() throws JSONException, IOException {\n\t\tOkHttpClient client = new OkHttpClient();\n\n\t\tString city = \"Lombard\";\n\t\tcity = \"\\\"\" + city + \"\\\"\";\n\t\t\n\t\tString state = \"IL\";\n\t\tstate = \"\\\"\" + state + \"\\\"\";\n\t\t\n\t\tString zip = \"60148\";\n\t\tzip = \"\\\"\" + zip + \"\\\"\";\n\t\t\n\t\tMediaType mediaType = MediaType.parse(\"application/json\");\n\t\tRequestBody body = RequestBody.create(mediaType,\n\t\t\t\t\"{\\r\\n\\t\\\"AccessRequest\\\": {\\r\\n\\t\\t\\\"UserId\\\": \\\"attarsaaniya\\\",\\r\\n\\t\\t\\\"AccessLicenseNumber\\\": \"\n\t\t\t\t+ \"\\\"DD33B9ADDD7ADDC8\\\",\\r\\n\\t\\t\"\n\t\t\t\t+ \"\\\"Password\\\": \\\"Summer2017\\\"\\r\\n\\t},\\r\\n\\t\\\"AddressValidationRequest\\\": \"\n\t\t\t\t+ \"{\\r\\n\\t\\t\\\"Address\\\": {\\r\\n\\t\\t\\t\\\"StateProvinceCode\\\": \" + state + \",\\r\\n\\t\\t\\t\"\n\t\t\t\t+ \"\\\"PostalCode\\\": \" + zip + \",\\r\\n\\t\\t\\t\\\"City\\\": \" + city + \"\\r\\n\\t\\t},\\r\\n\\t\\t\"\n\t\t\t\t+ \"\\\"Request\\\": {\\r\\n\\t\\t\\t\\\"TransactionReference\\\": {\\r\\n\\t\\t\\t\\t\\\"CustomerContext\\\": \"\n\t\t\t\t+ \"\\\"mycustomer\\\"\\r\\n\\t\\t\\t},\\r\\n\\t\\t\\t\\\"RequestAction\\\": \\\"AV\\\"\\r\\n\\t\\t}\\r\\n\\t}\\r\\n}\");\n\t\t\n\t\tRequest request = new Request.Builder().url(\"https://wwwcie.ups.com/rest/AV\").post(body).build();\n\n\t\tokhttp3.Response response = client.newCall(request).execute();\n\t\tJSONObject jResp = new JSONObject(response.body().string());\n\t\tSystem.out.println(jResp);\n\t\t\n\t\t// there shoudl be a better way to parse through the tree tbh\n\t\t// but this seems intuitive enough to do (though so extra) \n\t\tJSONObject addrValResp = jResp.getJSONObject(\"AddressValidationResponse\");\n\t\tJSONObject addrVal = addrValResp.getJSONObject(\"AddressValidationResult\");\n\t\tJSONObject addr = addrVal.getJSONObject(\"Address\");\n\t\tString cityResponse = addr.getString(\"City\");\n\t\tString stateResponse = addr.getString(\"StateProvinceCode\");\n\t\t\n\t\tString zipResponse = addrVal.getString(\"PostalCodeLowEnd\");\n\t\t\n\t\t\n\t\tSystem.out.println(cityResponse);\n\t\tSystem.out.println(stateResponse);\n\t\tSystem.out.println(zipResponse);\n//\t\tString success = addrVal\n\t\t\n\t\treturn false;\n\t}", "private static boolean checkResultFromDataService(final JsonElement json)\n {\n if (json != null && json.isJsonObject())\n {\n final JsonObject jsonObject = json.getAsJsonObject();\n String type = getStringFromJson(jsonObject, TYPE);\n if (!StringHelper.isNullOrEmpty(type))\n {\n type = type.toLowerCase(Locale.US);\n }\n String resultFromJson = getStringFromJson(jsonObject, \"result\");\n if (!StringHelper.isNullOrEmpty(resultFromJson))\n {\n resultFromJson = resultFromJson.toLowerCase(Locale.US);\n }\n return (type.contains(\"success\") && resultFromJson\n .equals(\"success\"));\n }\n return false;\n }", "@WebService(name = \"QueryValidatorServices\", targetNamespace = \"http://app.service.validator.businesses.gboss.id5.cn\")\npublic interface QueryValidatorServices {\n\n /**\n * @param param\n * @param userName\n * @param type\n * @param password\n * @return returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"querySingleReturn\", targetNamespace = \"http://app.service.validator.businesses.gboss.id5.cn\")\n public String querySingle(String userName, String password, String type, String param);\n\n /**\n * @param param\n * @param userName\n * @param type\n * @param password\n * @return returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"queryBatchReturn\", targetNamespace = \"http://app.service.validator.businesses.gboss.id5.cn\")\n public String queryBatch(String userName, String password, String type, String param);\n\n}", "private void postValidationResponseCodeSuccess() throws APIRestGeneratorException\r\n\t{\r\n\t\tfinal Iterator<String> iterator = this.localResponses.getResponsesMap().keySet().iterator() ;\r\n\t\tboolean found \t\t\t\t = false ;\r\n\t\t\r\n\t\twhile (iterator.hasNext() && !found)\r\n\t\t{\r\n\t\t\tfinal String codeKey = iterator.next() ;\r\n\t\t\tfound \t\t\t\t = ConstantsMiddle.RESP_CODE_SUCCESS.equals(codeKey) ;\r\n\t\t}\r\n\t\t\r\n\t\tif (!found)\r\n\t\t{\r\n\t\t\tfinal String errorString = \"The path '\" + this.pathValue + \"' ('\" + this.pathOp + \"' operation) \" +\r\n\t\t\t\t\t\t\t\t\t \"needs a defined response with code \" + ConstantsMiddle.RESP_CODE_SUCCESS ;\r\n\t\t\t\r\n\t\t\tResponsesPostValidator.LOGGER.error(errorString) ;\r\n\t \tthrow new APIRestGeneratorException(errorString) ;\r\n\t\t}\r\n\t}", "@Test\n public void testNonEmptyResponse(){\n Assert.assertTrue(respArray.length() != 0, \"Empty response\");\n }", "protected Function<HttpResponse, Boolean> isResponseParseable()\n {\n return httpResponse -> false;\n }", "protected void verifyResponseInputModel( String apiName)\n {\n verifyResponseInputModel( apiName, apiName);\n }", "protected void validate_return(java.lang.String[] param){\r\n \r\n }", "@Override\n\tprotected void validateParameters() throws Exception {\n\t\tthis.dataList = json.getJSONArray(JsonInfoField.DATA_LIST);\n\t}", "@Override\r\n\tArrayList<String> checkData() {\n\t\tArrayList<String> cf = new ArrayList<String>();\r\n\t\tboolean errorSuperficie = false;\r\n\t\t\r\n\t\t\r\n\t\tfor (Entry<String, String[]> entry : request.getParameterMap().entrySet()) {\r\n\r\n\t\t\tif(entry.getKey().indexOf(\"PR\") != -1){\r\n\t\t\t\t\r\n\t\t\t\tif(!isPositive0Included(request.getParameter(entry.getKey()))){\r\n\t\t\t\t\terrorSuperficie = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif(errorSuperficie){\r\n\t\t\tcf.add(\"Las superficies tienen que ser positivas.\");\r\n\t\t}\r\n\r\n\t\t\r\n\t\treturn cf;\r\n\t}", "private void productValidate(ProductDTO product) throws ApiException {\n\n if (product.getName() != null) {\n if (!product.getName().equals(\"\")) {\n } else {\n throw new ApiException(HttpStatus.BAD_REQUEST, \"Error: Campo Name invalido.\");\n }\n } else {\n throw new ApiException(HttpStatus.BAD_REQUEST, \"Error: Campo Name invalido.\");\n }\n if (product.getCategory() != null) {\n if (!product.getCategory().equals(\"\")) {\n } else {\n throw new ApiException(HttpStatus.BAD_REQUEST, \"Error: Campo Category invalido.\");\n }\n } else {\n throw new ApiException(HttpStatus.BAD_REQUEST, \"Error: Campo Category invalido.\");\n }\n if (product.getBrand() != null) {\n if (!product.getBrand().equals(\"\")) {\n } else {\n throw new ApiException(HttpStatus.BAD_REQUEST, \"Error: Campo Brand invalido.\");\n }\n } else {\n throw new ApiException(HttpStatus.BAD_REQUEST, \"Error: Campo Brand invalido.\");\n }\n if (product.getPrice() != null) {\n if (product.getPrice() >= 0.0) {\n } else {\n throw new ApiException(HttpStatus.BAD_REQUEST, \"Error: Campo Price invalido.\");\n }\n } else {\n throw new ApiException(HttpStatus.BAD_REQUEST, \"Error: Campo Price invalido.\");\n }\n if (product.getQuantity() != null) {\n if (product.getQuantity() >= 0) {\n } else {\n throw new ApiException(HttpStatus.BAD_REQUEST, \"Error: Campo Quantity invalido.\");\n }\n } else {\n throw new ApiException(HttpStatus.BAD_REQUEST, \"Error: Campo Quantity invalido.\");\n }\n if (product.getPrestige() != null) {\n if (!product.getPrestige().equals(\"\")) {\n\n } else {\n throw new ApiException(HttpStatus.BAD_REQUEST, \"Error: Campo Prestige invalido.\");\n }\n } else {\n throw new ApiException(HttpStatus.BAD_REQUEST, \"Error: Campo Prestige invalido.\");\n }\n }", "private boolean validateParams(int amount) {\n\t\tString paramArray[] = {param1,param2,param3,param4,param5,param6};\r\n\t\tfor(int i = 0; i < amount; i++) {\r\n\t\t\tif(paramArray[i] == null) {\r\n\t\t\t\t//Error\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tprotected ResponseEntity<Object> handleMethodArgumentNotValid(\r\n\t MethodArgumentNotValidException ex, \r\n\t HttpHeaders headers, \r\n\t HttpStatus status, \r\n\t WebRequest request) {\r\n\t List<String> errors = new ArrayList<String>();\r\n\t for (FieldError error : ex.getBindingResult().getFieldErrors()) {\r\n\t errors.add(error.getField() + \": \" + error.getDefaultMessage());\r\n\t }\r\n\t for (ObjectError error : ex.getBindingResult().getGlobalErrors()) {\r\n\t errors.add(error.getObjectName() + \": \" + error.getDefaultMessage());\r\n\t }\r\n\t \r\n\t ApiError apiError = \r\n\t new ApiError(HttpStatus.BAD_REQUEST, ex.getLocalizedMessage(), errors);\r\n\t return handleExceptionInternal(\r\n\t ex, apiError, headers, apiError.getStatus(), request);\r\n\t}", "@Then(\"^Validate that response contains correct information$\")\n public void validateThatResponseContainsCorrectInformation() {\n id = myResponse.then().extract().path(\"id\").toString();\n System.out.println(\"Wishlist ID is: \" + id);\n }", "private WebResponse() {\n initFields();\n }", "void faild_response();", "@Override\n public void onResponse(Call<ResponseContent> call, Response<ResponseContent> response) {//obtener datos\n\n try {\n ResponseContent data = response.body();\n\n boolean answer = ValidateResponse( data );\n\n if( answer ){\n\n if( data.getBody().getString(0).toString().equals(\"msm\") ){//verifico si es un mensaje\n\n Toast.makeText(CONTEXTO.getApplicationContext(),\n mss.msmServices.getString(data.getBody().getString(1).toString()),\n Toast.LENGTH_SHORT).show(); // muestro mensaje enviado desde el servidor\n\n }else{\n\n Log.i( mss.TAG, data.getBody().toString() );\n\n }\n\n }else{\n Log.i( mss.TAG, data.getBody().toString() );\n }\n } catch (JSONException e) {\n e.printStackTrace();\n new ServicesPeticion().SaveError(e,\n new Exception().getStackTrace()[0].getMethodName().toString(),\n this.getClass().getName());//Envio la informacion de la excepcion al server\n }\n\n\n }", "public void parseResponse();", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}", "@Override\n\tpublic void validaDatos() {\n\t\t\n\t}" ]
[ "0.6596733", "0.64637274", "0.6384748", "0.6306151", "0.6257743", "0.6215266", "0.62139595", "0.6163666", "0.61501634", "0.5978409", "0.5963314", "0.5952333", "0.58793736", "0.58580333", "0.5855422", "0.58508986", "0.5843005", "0.5826288", "0.5769802", "0.5769375", "0.57537395", "0.5737975", "0.5722095", "0.5702128", "0.5697399", "0.5678559", "0.56490415", "0.5647603", "0.5639994", "0.56223184", "0.5609225", "0.5597901", "0.5597797", "0.55761355", "0.5574669", "0.55339044", "0.5531231", "0.5518952", "0.549915", "0.5478424", "0.54714817", "0.54668665", "0.54495883", "0.54363215", "0.54307485", "0.5423467", "0.54218805", "0.5416436", "0.5415716", "0.5412588", "0.5401274", "0.54000384", "0.5394192", "0.5390762", "0.5390762", "0.5390762", "0.5390762", "0.5390762", "0.5390762", "0.5390762", "0.5390762", "0.5390762", "0.5363876", "0.5362223", "0.53589964", "0.53589964", "0.5349806", "0.5346414", "0.53424096", "0.5336109", "0.5331618", "0.5331054", "0.5319756", "0.53142065", "0.5312601", "0.5311034", "0.53107893", "0.5295102", "0.52930975", "0.5291604", "0.52913207", "0.5286069", "0.52826995", "0.527779", "0.52714914", "0.52714884", "0.52714884", "0.52714884", "0.52714884", "0.52714884", "0.52714884", "0.52714884", "0.52714884", "0.52714884", "0.52714884", "0.52714884", "0.52714884", "0.52714884", "0.52714884", "0.52714884", "0.52714884" ]
0.0
-1
endregion region Clicks de los controles
@OnClick(R.id.fragApod_btnSelectDate) public void onClickBtnSelectDate(){ DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), android.R.style.Theme_DeviceDefault_Light_Panel, new DatePickerDialog.OnDateSetListener() { @Override public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { //Le damos el formato requerido a la fecha seleccionada date = new StringBuilder(); date.append(year).append("-"); if((monthOfYear+1) < 10) date.append("0"); date.append(monthOfYear+1).append("-"); if(dayOfMonth < 10) date.append("0"); date.append(dayOfMonth); //LLamamos al método que establece su callback apodServiceEnqueue(apodService); } }, iYear, iMonth, iDay); datePickerDialog.show(); //datePickerDialog.setTitle(getString(R.string.fragApod_msgSelectDate)); //Sólo puede seleccionar hasta la fecha actual datePickerDialog.getDatePicker().setMaxDate(calendar.getTimeInMillis()); //Le restamos 16 años a la fecha actual para ponerla como fecha mínima de selección Calendar calendarTemp = Calendar.getInstance(); calendarTemp.add(calendar.YEAR,-16); datePickerDialog.getDatePicker().setMinDate(calendarTemp.getTimeInMillis()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"vai ficar clikando ai a toa? PATETA\");\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n if (e.getClickCount()==1) {\n this.datos();\n }\n if (e.getClickCount()==2) {\n this.eliminar(); \n } \n \n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tjanelaDeRecursos = new ViewDesalocarRecurso();\r\n\t\t\r\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "private void u_c_estadoMouseClicked(java.awt.event.MouseEvent evt) {\n }", "@Override\n public void mouseClicked(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n System.out.println(\" Mouse: Click \" + boton ); \n }", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"MouseClicked\");\n //kwadrat.clicked();\n trojkat.clicked();\n //kolo.clicked();\n //square.clicked();\n }", "@Override\r\n\tpublic void clickSub(int count) {\n\t\t\r\n\t}", "@Override\n public void mousePressed(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n //System.out.println(\"->Mouse: Presionando Click \" + boton );\n }", "public void click(){\n\t\t\n\tfor(MouseListener m: listeners){\n\t\t\t\n\t\t\tm.mouseClicked();\n\t\t}\n\t\t\n\t}", "public void mouseClicked() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\tif((mouseX > 529 && mouseY > 691) && (mouseX < 966 & mouseY < 867)) {\n\t\t\t\t//si hace click adentro del boton de jugar\n\t\t\t\tscreen = 1;\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1:\n\t\t\t//si hace click adentro de la pantalla\n\t\t\tscreen = 2;\n\t\t\tbreak;\n\t\t}\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) \t{\n\t\t\t\t\r\n\t\t\t}", "void clickAmFromMenu();", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"clicko no butão\");\n\t\t\t}", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\n\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n public void mouseClicked(MouseEvent arg0) {\n \n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\r\n\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"Evento click ratón\");\n }", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t}", "@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void clickObject() {\n\r\n\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\n\n\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}" ]
[ "0.7015495", "0.6822412", "0.67862374", "0.67744887", "0.67744887", "0.67744887", "0.67744887", "0.67744887", "0.67744887", "0.67744887", "0.67744887", "0.67744887", "0.67744887", "0.67744887", "0.67336744", "0.67336744", "0.67325383", "0.6712366", "0.6700895", "0.66892767", "0.66892767", "0.66892767", "0.6688928", "0.6685856", "0.6676777", "0.6676388", "0.6671548", "0.6671548", "0.66685605", "0.6664456", "0.6663096", "0.6607806", "0.6593315", "0.6589565", "0.6577252", "0.6571537", "0.6571537", "0.6571537", "0.6558705", "0.6557186", "0.65434796", "0.65434796", "0.65434796", "0.65434796", "0.65434796", "0.65434796", "0.65434796", "0.65392864", "0.65392864", "0.65392864", "0.65369564", "0.6523488", "0.6523488", "0.6523488", "0.6523488", "0.6523488", "0.6523488", "0.6523488", "0.6523488", "0.6521517", "0.65147346", "0.65125316", "0.65073586", "0.65073586", "0.65073586", "0.65073586", "0.65073586", "0.65073586", "0.6506523", "0.6506523", "0.6506523", "0.64996505", "0.649941", "0.6497481", "0.64920443", "0.64920443", "0.64920443", "0.64920443", "0.64920443", "0.64920443", "0.64920443", "0.64920443", "0.64920443", "0.64920443", "0.64920443", "0.64920443", "0.64920443", "0.64920443", "0.6487346", "0.6484407", "0.6480285", "0.647898", "0.6478863", "0.6478863", "0.6478863", "0.6478863", "0.6478863", "0.6478863", "0.6478863", "0.6478863", "0.6478863" ]
0.0
-1
Le damos el formato requerido a la fecha seleccionada
@Override public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { date = new StringBuilder(); date.append(year).append("-"); if((monthOfYear+1) < 10) date.append("0"); date.append(monthOfYear+1).append("-"); if(dayOfMonth < 10) date.append("0"); date.append(dayOfMonth); //LLamamos al método que establece su callback apodServiceEnqueue(apodService); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFechatxt(Date d){\n \n try {\n String formato = selectorfecha.getDateFormatString();\n //Formato\n \n SimpleDateFormat sdf = new SimpleDateFormat(formato);\n String txtfechap = sdf.format(d);\n return txtfechap;\n } catch (NullPointerException ex) {\n JOptionPane.showMessageDialog(this, \"Al menos selecciona una fecha válida!\", \"Error!\", JOptionPane.INFORMATION_MESSAGE);\n return null;\n\n }\n\n\n \n }", "private String leerFecha() {\n\t\ttry {\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"YYYY/MM/dd\");\n\t\t\treturn sdf.format(txtFecha.getDate());\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Seleccione una fecha válida\", \"Aviso\", 2);\n\t\t\treturn null;\n\t\t}\n\t}", "public void selectDate(String format) {\n\t\t//driver.findElement(By.className(\"ui-datepicker-trigger\")).click();\n\t\t// identifying format\n\t\tString date[] = null;\n\t\tif (format.contains(\"-\")) {\n\t\t\tdate = format.split(\"-\");\n\t\t} else if (format.contains(\"/\")) {\n\t\t\tdate = format.split(\"/\");\n\t\t} else if (format.contains(\" \")) {\n\t\t\tdate = format.split(\" \");\n\t\t}\n\t\t// Splitting data\n\t\tString day = date[0];\n\t\tString month = date[1];\n\t\tString year = date[2];\n\t\t// Selecting data based on format\n\t\tif (month.length() == 2) {\n\t\t\t// selecting month if you are giving input format as dd-mm-yyyy\n\t\t\t//new Select(driver.findElement(By.className(\"ui-datepicker-month\"))).selectByIndex(Integer.parseInt(month) - 1);\n\t\t} else if (month.length() != 2) {\n\t\t\t// selecting month if you are giving input format as dd-mmm-yyyy\n\t\t\t//new Select(driver.findElement(By.className(\"ui-datepicker-month\"))).selectByVisibleText(month);\n\t\t}\n\t\t// selecting year\n\t\t//new Select(driver.findElement(By.xpath(\"//select[@class='ui-datepicker-year']\"))).selectByVisibleText(year);\n\n\t\t// click on day\n\t\t//driver.findElement(By.linkText(day)).click();\n\t}", "public void selectDate(){\r\n\t\tcloseDateText.sendKeys(ConvertDate());\r\n\t}", "public void mostrarHora(String formato){\n Date objDate = new Date();\n SimpleDateFormat objSDF = new SimpleDateFormat(formato);\n //este sera el resultado de la fechas\n fecha=objSDF.format(objDate);\n }", "public abstract java.lang.String getFecha_inicio();", "protected String getSelectedDate()\n {\n String startsOnDate = String.valueOf(selectedYear);\n if(selectedMonth<10)startsOnDate+=\"-0\"+String.valueOf(selectedMonth);\n else startsOnDate+=\"-\"+String.valueOf(selectedMonth);\n if(selectedDay<10)startsOnDate+=\"-0\"+String.valueOf(selectedDay);\n else startsOnDate+=\"-\"+String.valueOf(selectedDay);\n\n return startsOnDate;\n }", "DateFormat getDisplayDateFormat();", "public void date_zone() {\n\n JLabel lbl_date = new JLabel(\"Date du Rapport :\");\n lbl_date.setBounds(40, 90, 119, 16);\n add(lbl_date);\n String date = rapport_visite.elementAt(DAO_Rapport.indice)[2];\n Date date_n = null;\n\n\n // *** note that it's \"yyyy-MM-dd hh:mm:ss\" not \"yyyy-mm-dd hh:mm:ss\"\n SimpleDateFormat dt = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\n try {\n date_n = dt.parse(date);\n } catch (ParseException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n // *** same for the format String below\n SimpleDateFormat dt1 = new SimpleDateFormat(\"dd-MM-yyyy\");\n\n JTextField date_rapport = new JTextField();\n date_rapport.setBounds(200, 90, 125, 22);\n date_rapport.setText(dt1.format(date_n));\n date_rapport.setEditable(false);\n add(date_rapport);\n\n\n\n\n }", "public abstract java.lang.String getFecha_termino();", "public void fechahoy(){\n Date fecha = new Date();\n \n Calendar c1 = Calendar.getInstance();\n Calendar c2 = new GregorianCalendar();\n \n String dia = Integer.toString(c1.get(Calendar.DATE));\n String mes = Integer.toString(c2.get(Calendar.MONTH));\n int mm = Integer.parseInt(mes);\n int nmes = mm +1;\n String memes = String.valueOf(nmes);\n if (nmes < 10) {\n memes = \"0\"+memes;\n }\n String anio = Integer.toString(c1.get(Calendar.YEAR));\n \n String fechoy = anio+\"-\"+memes+\"-\"+dia;\n \n txtFecha.setText(fechoy);\n \n }", "DateFormat getSourceDateFormat();", "public static void dateFormat() {\n }", "public Date getDate(String format){\n String date = et_Date.getText().toString();\n //Date date;\n\t\ttry {\n\t\t\treturn frontFormat.parse(date);\n\t\t} catch (ParseException e) {\n\t\t\tLogM.log(getContext(), getClass(), Level.SEVERE, \"getDate(String)\", e);\n\t\t} \n return null;\n }", "public String dar_fecha(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n return dateFormat.format(date).toString();\n\n }", "public String formatDate(Object valor) {\r\n\t\tString aux = valor.toString();\r\n\t\tif (!aux.equalsIgnoreCase(\"&nbsp;\") && !aux.equalsIgnoreCase(\"\")) {\r\n\t\t\tString anio = aux.substring(0, 4);\r\n\t\t\tString mes = aux.substring(4, 6);\r\n\t\t\tString dia = aux.substring(6);\r\n\t\t\treturn dia + \"/\" + mes + \"/\" + anio;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn aux;\r\n\t}", "private void updateDatedeparture() {\n String myFormat = \"MM/dd/yy\";\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.FRANCE);\n\n departureDate.setText(sdf.format(myCalendar.getTime()));\n }", "public static String getDate(String formato, java.util.Date fecha)\n {\n try\n {\n DateFormat formatter = null;\n formatter=new SimpleDateFormat(formato); \n Calendar c1 = Calendar.getInstance();\n c1.setTime(fecha);\n String dato=formatter.format(c1.getTime());\n return dato;\n }\n catch(Exception e)\n {\n System.out.println(\"Error getdate:\" + e);\n return null;\n }\n }", "public void get_fecha(){\n //Obtenemos la fecha\n Calendar c1 = Calendar.getInstance();\n fecha.setCalendar(c1);\n }", "public static String formatFechaMascara(String fecha, String formatoFecha) {\n SimpleDateFormat sdf = new SimpleDateFormat(formatoFecha);\n String response = \"\";\n // format BD\n SimpleDateFormat sdfBD = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date fechaParse = null;\n try {\n\n fechaParse = sdfBD.parse(fecha.substring(0, 10));\n\n } catch (java.text.ParseException e) {\n try {\n fechaParse = sdf.parse(fecha);\n } catch (java.text.ParseException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }\n\n if (fechaParse == null) return \"\";\n\n response = sdf.format(fechaParse);\n return response;\n }", "public Date getSelectDate();", "private void updateLabel() {\n String myFormat = \"dd-MM-YYYY\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n dateInput.setText(sdf.format(myCalendar.getTime()));\n }", "public String convierteFormatoFecha(String fecha) {\n\t\tString resultado = \"\";\n\t\tresultado = fecha.substring(6,8)+\"/\"+fecha.substring(4,6)+\"/\"+fecha.substring(0, 4);\n\t\treturn resultado;\n\t}", "public String formatoCortoDeFecha(Date fecha){\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n return format.format(fecha);\n }", "@Override\n\tpublic String[] getFormats() {\n\t\treturn new String[] {\"yyyy-MM-dd'T'HH:mm:ss\",\"yyyy-MM-dd HH:mm:ss\",\"yyyy-MM-dd HH:mm\",\"yyyy-MM-dd'T'HH:mm\",\"yyyy-MM-dd HH\", \"yyyy-MM-dd\" };\n\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tString fcraDate = (String) btnFcraDate.getText();\n\t\t\t\t\tString dateParts[] = fcraDate.split(\"-\");\n\t\t\t\t\tsetfromday1 = dateParts[0];\n\t\t\t\t\tsetfrommonth1 = dateParts[1];\n\t\t\t\t\tsetfromyear1 = dateParts[2];\n\t \n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfromday1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfrommonth1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfromyear1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+fcraDate);\n\t\t\t\t\tshowDialog(FCRA_DATE_DIALOG_ID);\n\t\t\t\t}", "public String getFechaInicio(){\n\n\t\treturn campoInicio.getText();\n\n\t}", "public String getFormatDate()\n {\n return formatDate;\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n final int mesActual = month + 1;\n //Formateo el día obtenido: antepone el 0 si son menores de 10\n String diaFormateado = (dayOfMonth < 10)? CERO + String.valueOf(dayOfMonth):String.valueOf(dayOfMonth);\n //Formateo el mes obtenido: antepone el 0 si son menores de 10\n String mesFormateado = (mesActual < 10)? CERO + String.valueOf(mesActual):String.valueOf(mesActual);\n //Muestro la fecha con el formato deseado\n if( t == 0){\n selectedFecha = year + \"\" + mesFormateado + \"\" + diaFormateado;\n etFecha.setText(diaFormateado + BARRA + mesFormateado + BARRA + year);\n }\n\n\n }", "private void configDate(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n tvDateLost.setText(dateFormat.format(date));\n }", "public Date getSelectedDate();", "public void setFechaModificacion(String p) { this.fechaModificacion = p; }", "public void setFechaModificacion(String p) { this.fechaModificacion = p; }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\n String myFormat = \"dd.MM.yyyy\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n\n dateInput.setText(sdf.format(myCalendar.getTime()));\n }", "public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\n try{\n Date date = new Date(selectedyear-1900, selectedmonth,selectedday);\n SimpleDateFormat formatter = new SimpleDateFormat(\"MM-dd-yyyy\");\n cDate = formatter.format(date);\n// DateFormat aoriginalFormat = new SimpleDateFormat(\"dd MMM yyyy\", Locale.getDefault());\n DateFormat atargetFormat = new SimpleDateFormat(\"dd MMM,yyyy\");\n Date date2 = formatter.parse(cDate);\n formattedDate = atargetFormat.format(date2);\n }catch (ParseException e1){\n e1.printStackTrace(); }\n catch (java.text.ParseException e) {\n e.printStackTrace();\n }\n\n e1.setText(formattedDate);\n// if(String.valueOf(selectedday).length()== 1 )\n// {\n//\n// if(String.valueOf(selectedmonth).length()== 1)\n// {\n// e1.setText(\"0\"+selectedday + \"-0\" + selectedmonth + \"-\" + selectedyear);\n// }\n//\n// e1.setText(\"0\"+selectedday + selectedmonth + \"-\" + selectedyear);\n//\n// }\n//\n// else{\n// e1.setText(selectedday + \"-\" + selectedmonth + \"-\" + selectedyear);\n// }\n//\n// e1.setText(\"0\"+selectedday + \"-0\" + selectedmonth + \"-\" + selectedyear);\n\n }", "public Date obterHrEnt1Turno(){\n \ttxtHrEnt1Turno.setEditable(true);\n txtHrSai1Turno.setEditable(false);\n txtHrEnt2Turno.setEditable(false);\n txtHrSai2Turno.setEditable(false);\n \ttxtHrEnt1TurnoExt.setEditable(false);\n txtHrSai1TurnoExt.setEditable(false);\n txtHrEnt2TurnoExt.setEditable(false);\n txtHrSai2TurnoExt.setEditable(false);\n\n return new Date();\n }", "public String getFechaSistema() {\n Date date = new Date();\n DateFormat formato = new SimpleDateFormat(\"dd/MM/yyyy\");\n //Aplicamos el formato al objeto Date y el resultado se\n //lo pasamos a la variable String\n fechaSistema = formato.format(date);\n \n return fechaSistema;\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n startYear = year;\n startMonth = monthOfYear + 1;\n startDay = dayOfMonth;\n try {\n dateChoisie = df.parse(String.valueOf(startYear + \"-\" + startMonth + \"-\" + startDay));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Log.e(\"DATE CHOISIE\",df.format(dateChoisie));\n switch (v.getId()){\n case R.id.buttonDateDebut:\n editDateDebut.setText(df.format(dateChoisie));\n break;\n case R.id.buttonDateFin:\n editDateFin.setText(df.format(dateChoisie));\n break;\n }\n }", "public HTMLInputElement getElementFechaModificacion() { return this.$element_FechaModificacion; }", "public HTMLInputElement getElementFechaModificacion() { return this.$element_FechaModificacion; }", "private void setDate() {\n java.util.Date d1 = new java.util.Date();\n SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MM-dd\");\n String formateDate = df.format(d1);\n lblDate.setText(formateDate); \n }", "@Override\n protected SimpleDateFormat getDateFormat() {\n return dateFormat;\n }", "public LocalDate getValidDateFormat(String msg) {\n String sDate = getCommand(msg);\n\n while (!isValidDate(sDate)){\n sDate = getCommand(ANSI_RED+\"Invalid date. Enter ISO format\"+ANSI_RESET);\n }\n return LocalDate.parse(sDate);\n }", "private void updateDateTxtV()\n {\n String dateFormat =\"EEE, d MMM yyyy\";\n SimpleDateFormat sdf = new SimpleDateFormat(dateFormat, Locale.CANADA);\n dateStr = sdf.format(cal.getTime());\n dateTxtV.setText(dateStr);\n\n //unix datetime for saving in db\n dateTimeUnix = cal.getTimeInMillis() / 1000L;\n }", "public String getFecha(){\r\n return fechaInicial.get(Calendar.DAY_OF_MONTH)+\"/\"+(fechaInicial.get(Calendar.MONTH)+1)+\"/\"+fechaInicial.get(Calendar.YEAR);\r\n }", "private String formatarData(Date data)\n {\n String sDate;\n String sDia = \"\";\n String sMes = \"\";\n\n GregorianCalendar calendar = new GregorianCalendar();\n calendar.setTime(data);\n int dia = calendar.get(GregorianCalendar.DAY_OF_MONTH);\n if (dia > 0) {\n if (dia < 10) {\n sDia = \"0\";\n }\n }\n sDia += dia;\n\n int mes = calendar.get(GregorianCalendar.MONTH);\n mes = mes + 1;\n if (mes > 0) {\n if (mes < 10) {\n sMes = \"0\";\n }\n }\n sMes += mes;\n\n int ano = calendar.get(GregorianCalendar.YEAR);\n\n int hora = calendar.get(GregorianCalendar.HOUR);\n // 0 = dia\n // 1 = noite\n int amPm = calendar.get(GregorianCalendar.AM_PM);\n\n if(amPm == 1)\n {\n if(hora>0 && hora < 13)\n {\n if(hora > 11)\n hora = 0;\n else\n hora += 12;\n }\n }\n\n String sHora = \" \";\n if(hora<=9)\n {\n sHora += \"0\";\n }\n String sMin=\":\";\n int min = calendar.get(GregorianCalendar.MINUTE);\n if(min <10)\n sMin += \"0\";\n sMin += String.valueOf(min);\n sHora += String.valueOf(hora) + sMin + \":00\";\n sDate = String.valueOf(ano) + \"-\" + sMes + \"-\" + sDia + sHora;\n return sDate;\n\n }", "java.lang.String getDate();", "private void inicializarFechaHora(){\n Calendar c = Calendar.getInstance();\r\n year1 = c.get(Calendar.YEAR);\r\n month1 = (c.get(Calendar.MONTH)+1);\r\n String mes1 = month1 < 10 ? \"0\"+month1 : \"\" +month1;\r\n String dia1 = \"01\";\r\n\r\n String date1 = \"\"+dia1+\"/\"+mes1+\"/\"+year1;\r\n txt_fecha_desde.setText(date1);\r\n\r\n\r\n day2 = c.getActualMaximum(Calendar.DAY_OF_MONTH) ;\r\n String date2 = \"\"+day2+\"/\"+mes1+\"/\"+ year1;\r\n\r\n Log.e(TAG,\"date2: \" + date2 );\r\n txt_fecha_hasta.setText(date2);\r\n\r\n }", "public static Date introducirFecha(Scanner keyboard, String s) throws ParseException{ \n String f;\n \n Date fecha;\n do{\n System.out.println(\"Introduzca la \"+ s +\" (dd/MM/yyyy): \");\n f = keyboard.next();\n System.out.print(f);\n }while(!comprobarFecha(f));\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n fecha = dateFormat.parse(f);\n \n //fecha = new SimpleDateFormat(\"DD/MM/YYYY\").parse(f); // Creamos un date con la entrada en el formato especificado \n System.out.print(fecha);\n return fecha;\n }", "public String format (Date date , String dateFormat) ;", "public static Date ParseFecha(String fecha)\n {\n //SimpleDateFormat formato = new SimpleDateFormat(\"dd-MM-yyyy\");\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date fechaDate = null;\n try {\n if(!fecha.equals(\"0\")){\n fechaDate = formato.parse(fecha);\n }\n\n }\n catch (ParseException ex)\n {\n System.out.println(ex);\n }\n return fechaDate;\n }", "public void onDateSet(DateSlider view, Calendar selectedDate) {\n \t\t\t \t\t\n \t\tSimpleDateFormat simple = new SimpleDateFormat(\"dd-MM-yyyy\");\n \t\tSimpleDateFormat simple2 = new SimpleDateFormat(\"yyyy-MM-dd\");\n \t\tDate date1;\n \t\tString date2 = null;\n\t\t\t\ttry {\n\t\t\t\t\tdate1 = simple2.parse(String.format(\"%tF\", selectedDate, selectedDate, selectedDate));\n\t\t\t\t\tdate2 = simple.format(date1);\n\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} \t\t\n\t\t\t\t \t\t \n\t\t\t\ttanggal.setText(date2);\n \t}", "private static List<String> listDateFormats(){\r\n List<String> result = new ArrayList<String>();\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\r\n result.add(\"yyyy-MM-ddZZ\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssz\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\r\n result.add(\"EEE MMM d hh:mm:ss z yyyy\");\r\n result.add(\"EEE MMM dd HH:mm:ss yyyy\");\r\n result.add(\"EEEE, dd-MMM-yy HH:mm:ss zzz\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss zzz\");\r\n result.add(\"EEE, dd MMM yy HH:mm:ss z\");\r\n result.add(\"EEE, dd MMM yy HH:mm z\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss z\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss Z\");\r\n result.add(\"dd MMM yy HH:mm:ss z\");\r\n result.add(\"dd MMM yy HH:mm z\");\r\n result.add(\"'T'HH:mm:ss\");\r\n result.add(\"'T'HH:mm:ssZZ\");\r\n result.add(\"HH:mm:ss\");\r\n result.add(\"HH:mm:ssZZ\");\r\n result.add(\"yyyy-MM-dd\");\r\n result.add(\"yyyy-MM-dd hh:mm:ss\");\r\n result.add(\"yyyy-MM-dd HH:mm:ss\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssz\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssZZ\");\r\n result.add(\"dd.MM.yyyy\");\r\n result.add(\"dd.MM.yyyy hh:mm:ss\");\r\n result.add(\"dd.MM.yyyy HH:mm:ss\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ssz\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ss\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ssZZ\");\r\n result.add(\"dd.MM.yyyy hh:mm\");\r\n result.add(\"dd.MM.yyyy HH:mm\");\r\n result.add(\"dd/MM/yyyy\");\r\n result.add(\"dd/MM/yy\");\r\n result.add(\"MM/dd/yyyy\");\r\n result.add(\"MM/dd/yy\");\r\n result.add(\"MM/dd/yyyy hh:mm:ss\");\r\n result.add(\"MM/dd/yy hh:mm:ss\");\r\n return result;\r\n }", "@Override\n public java.util.Date getFecha() {\n return _partido.getFecha();\n }", "private String getFecha() {\n\t\tLocalDateTime myDateObj = LocalDateTime.now();\n\t\tDateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yyyy HH:mm:ss\");\n\t\tString formattedDate = myDateObj.format(myFormatObj);\n \n\t\treturn formattedDate;\n }", "private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n datetxt2.setText(sdf.format(date));\n }", "public static String strToDateFormToDB(String fecha){ \n\t\tString dateValue = fecha;\n\t\tint index = dateValue.indexOf(\"/\");\n\t\tString day = dateValue.substring(0,index);\n\t\tint index2 = dateValue.indexOf(\"/\",index+1);\n\t\tString month = dateValue.substring(index+1,index2);\n\t\tString year = dateValue.substring(index2+1,index2+5);\n\t\tdateValue=year+\"-\"+month+\"-\"+day;\n\t\treturn dateValue;\n\t}", "public final String obtenerFechaFormateada() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MMM/yyyy\");\n return fechaDeLaVisita.get().format(formatter);\n }", "private String getDateTime() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\", Locale.GERMANY);\n Date date = new Date();\n return dateFormat.format(date);\n }", "private String easyDateFormat(final String format) {\n Date today = new Date();\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n String datenewformat = formatter.format(today);\n return datenewformat;\n }", "public GregorianCalendar getSelectedDate(){\n int day = Integer.parseInt(this.date_day.getSelectedItem().toString());\n int month = Integer.parseInt(this.date_month.getSelectedItem().toString());\n int year = Integer.parseInt(this.date_year.getSelectedItem().toString());\n\n GregorianCalendar date = new GregorianCalendar();\n date.setTimeInMillis(0);\n \n date.set(Calendar.DAY_OF_MONTH, day);\n date.set(Calendar.MONTH, month -1);\n date.set(Calendar.YEAR, year);\n\n return date;\n }", "public String getFecha() {\n return Fecha;\n }", "protected abstract DateFormat getDateFormat();", "public void getTanggalKelahiran() {\r\n Date tanggalKelahiran = new Date(getTahunLahir() - 1900, getBulanLahir() - 1, getTanggalLahir());\r\n SimpleDateFormat ft = new SimpleDateFormat(\"dd - MM - yyyy\");\r\n System.out.println(ft.format(tanggalKelahiran));\r\n }", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "public String getFechaModificacion() { return (this.fechaModificacion == null) ? \"\" : this.fechaModificacion; }", "public String getFechaModificacion() { return (this.fechaModificacion == null) ? \"\" : this.fechaModificacion; }", "java.lang.String getToDate();", "public static Date stringToDate(String fecha, String formato){\n if(fecha==null || fecha.equals(\"\")){\n return null;\n } \n GregorianCalendar gc = new GregorianCalendar();\n try {\n fecha = nullToBlank(fecha);\n SimpleDateFormat df = new SimpleDateFormat(formato);\n gc.setTime(df.parse(fecha));\n } catch (Exception e) {\n e.printStackTrace();\n }\n return gc.getTime();\n }", "public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm:ss\");\n\t\treturn this.dateCreation.format(format);\n\t}", "java.lang.String getFromDate();", "public String obtenerFechaSistema() {\n Calendar fecha = new GregorianCalendar();\r\n//Obtenemos el valor del año, mes, día,\r\n//hora, minuto y segundo del sistema\r\n//usando el método get y el parámetro correspondiente\r\n int anio = fecha.get(Calendar.YEAR);\r\n int mes = fecha.get(Calendar.MONTH)+1;\r\n int dia = fecha.get(Calendar.DAY_OF_MONTH);\r\n// int hora = fecha.get(Calendar.HOUR_OF_DAY);\r\n// int minuto = fecha.get(Calendar.MINUTE);\r\n// int segundo = fecha.get(Calendar.SECOND);\r\n// String ff = \"\" + dia + \"/\" + (mes + 1) + \"/\" + anio;\r\n String ff;\r\n// = System.out.println(\"Fecha Actual: \"\r\n// + dia + \"/\" + (mes + 1) + \"/\" + año);\r\n// System.out.printf(\"Hora Actual: %02d:%02d:%02d %n\",\r\n// hora, minuto, segundo);\r\n// ff = hora + \":\" + minuto + \":\" + segundo + \".0\";\r\n ff = anio + \"-\" + mes + \"-\" + dia;\r\n return ff;\r\n }", "public static String formatDateToDatePickerView(Date date) {\r\n if (date != null) {\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n return formatter.format(date);\r\n }\r\n return \"\";\r\n }", "String getDate();", "String getDate();", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\n String myFormat = \"dd/MM/yy\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n date_text.setText(sdf.format(myCalendar.getTime()));\n }", "@Override\t\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tString regDate = (String) btnRegDate.getText();\n\t\t\t\t\tString dateParts[] = regDate.split(\"-\");\n\t\t\t\t\tsetfromday = dateParts[0];\n\t\t\t\t\tsetfrommonth = dateParts[1];\n\t\t\t\t\tsetfromyear = dateParts[2];\n\t\t \n\t\t\t\t\tSystem.out.println(\"regdate is:\"+regDate);\n\t\t\t\t\tshowDialog(REG_DATE_DIALOG_ID);\n\t\t\t\t}", "private static String _dateFormat(final Language lang) {\r\n \treturn lang == Language.SPANISH || lang == null ? Dates.ES_DEFAULT_FORMAT \r\n \t\t\t\t\t\t\t \t\t\t\t \t : Dates.EU_DEFAULT_FORMAT;\r\n }", "public void selectDate(String d){\n\t\tDate current = new Date();\n\t\tSimpleDateFormat sd = new SimpleDateFormat(\"d-MM-yyyy\");\n\t\ttry {\n\t\t\tDate selected = sd.parse(d);\n\t\t\tString day = new SimpleDateFormat(\"d\").format(selected);\n\t\t\tString month = new SimpleDateFormat(\"MMMM\").format(selected);\n\t\t\tString year = new SimpleDateFormat(\"yyyy\").format(selected);\n\t\t\tSystem.out.println(day+\" --- \"+month+\" --- \"+ year);\n\t\t\tString desiredMonthYear=month+\" \"+year;\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tString displayedMonthYear=driver.findElement(By.cssSelector(\".dpTitleText\")).getText();\n\t\t\t\tif(desiredMonthYear.equals(displayedMonthYear)){\n\t\t\t\t\t// select the day\n\t\t\t\t\tdriver.findElement(By.xpath(\"//td[text()='\"+day+\"']\")).click();\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tif(selected.compareTo(current) > 0)\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='datepicker']/table/tbody/tr[1]/td[4]/button\")).click();\n\t\t\t\t\telse if(selected.compareTo(current) < 0)\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='datepicker']/table/tbody/tr[1]/td[2]/button\")).click();\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public GregorianCalendar pedirAnyo(){\n GregorianCalendar anyo = new GregorianCalendar();\n boolean validado = false;\n do {\n System.out.println(\"Introduce el anyo (dd-mm-yyyy): \");\n String fechaAnyoToString = lector.nextLine();\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n try {\n Date date = sdf.parse(fechaAnyoToString);\n anyo = new GregorianCalendar();\n anyo.setTime(date);\n validado = true;\n } catch (ParseException pe) {\n validado = false;\n System.out.println(\"El formato del anyo no es válido. Recuerde (dd-mm-yyyy).\");\n Lib.pausa();\n }\n } while (!validado);\n return anyo;\n\n }", "DateFormatPanel() {\r\n\t\tfDateFormat = DateFormat.getTimeInstance(DateFormat.DEFAULT);\r\n\t}", "private LocalDate parse(String format) {\r\n\t\tString lista[] = format.split(\"/\"); // DD - MM - YYYY\r\n\t\tint dia = Integer.parseInt(lista[0]);\r\n\t\tint mes = Integer.parseInt(lista[1]);\r\n\t\tint ano = Integer.parseInt(lista[2]);\r\n\t\tLocalDate date = LocalDate.of(ano, mes, dia);\r\n\t\treturn date;\r\n\t}", "private java.sql.Date obtenerFechaEnSQL(JXDatePicker fecha) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(fecha.getDate());\n int year = cal.get(Calendar.YEAR) - 1900; //PORQUE PUTAS\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n java.sql.Date sqlDate;\n\n sqlDate = new java.sql.Date(year, month, day);\n return sqlDate;\n }", "public static void main(String[] args) {\n String s = FormatFecha.format(FormatFecha.FMT_ISO, new Date());\n System.out.println(\"Fecha: \" + s);\n //\"10/6/2010\" 2010-06-10\n }", "public void limpiarCampos(){\n\n\t\tcampoInicio.setText(\"yyyy-mm-dd\");\n\t\tcampoInicio.setForeground(new Color(111,111,111));\n\t\tcampoFinal.setText(\"yyyy-mm-dd\");\n\t\tcampoFinal.setForeground(new Color(111,111,111));\n\n\t}", "java.lang.String getFoundingDate();", "private static String adaptarFecha(int fecha) {\n\t\tString fechaFormateada = String.valueOf(fecha);\n\t\twhile(fechaFormateada.length()<2){\n\t\t\tfechaFormateada = \"0\"+fechaFormateada;\n\t\t}\n\n\t\treturn fechaFormateada;\n\t}", "private void choixRepertoire(int format){\n\t\tString path = \"\"; //Chemin a parcourir\n\t\tJFileChooser chooser = null;\n\t\tif(SauvegardeRepertoire.getPaths().isEmpty()){//Si la liste des repertoires est vide\n\t\t\tchooser = new JFileChooser();\n\t\t}\n\t\telse{//si elle n'est pas vide\n\t\t\tIterator<String> it = SauvegardeRepertoire.getPaths().iterator();\n\t\t\twhile (it.hasNext() && path.equals(\"\")) {\n\t\t\t\tString str = (String) it.next();\n\t\t\t\tFile file = new File(str);\n\n\t\t\t\tif (file.exists()) //on recupere le premier repertoire possible\t\n\t\t\t\t\tpath = file.getAbsolutePath();\n\t\t\t}\n\n\t\t\tif(path.equals(\"\"))//si on a pas trouvé de chemin coherent\n\t\t\t\tchooser = new JFileChooser();\n\t\t\telse\n\t\t\t\tchooser = new JFileChooser(path);\n\t\t}\n\t\tFileNameExtensionFilter filter=null;\n\t\tswitch(format)\n\t\t{\n\t\t\tcase PDFFile:\n\t\t\t\tfilter = new FileNameExtensionFilter(\"PDF\",\"pdf\");\n\t\t\t\tbreak;\n\t\t\tcase ARFFFile:\n\t\t\t\tchooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\t\t\tchooser.setAcceptAllFileFilterUsed(false);\n\t\t\t\tbreak;\n\t\t}\n\n\t\tchooser.setFileFilter(filter);\n\t\tchooser.setMultiSelectionEnabled(false);\n\t\tint returnVal = chooser.showOpenDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tSauvegardeRepertoire.ajoutPath(chooser);//permet de sauvegarder les repertoires\n\t\t\tif(filter!=null && filter.getExtensions()[0].equals(\"pdf\")) {\n\t\t\t\tgestionFichier(chooser);\n\t\t\t\tunlockButton();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tgestionFichierDataSet(chooser);\n\t\t\t\tbDataTraining.setEnabled(true);\n\t\t\t}\n\n\t\t}\n\t}", "public void departure_date(String departureDatePicker) throws ParseException\r\n\t{\r\n\t\t\r\n\t\tSimpleDateFormat df1;\r\n\t\t\r\n\r\n\t\tif(departuredate.getAttribute(\"placeholder\").equals(\"mm/dd/yyyy\")){\r\n\t\t\t df1 = new SimpleDateFormat(\"MM/dd/yyyy\");\r\n\r\n\t\t}else{\r\n\t\t\t df1 = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t}\r\n\t\t\r\n\t\t//Formats date based on BE customer date format\r\n\t\tdf1 = new SimpleDateFormat(departuredate.getAttribute(\"placeholder\"));\r\n\t\t\t\t\r\n\t\t//Converts the String text from Data file into a Date object\r\n\t\tDate dateForDeparture = df1.parse(departureDatePicker);\r\n\t\t\t\t\r\n\t\t//Suppose to create the current date\r\n\t\tDate currentDate = new Date();\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"This is current date from departure_date() \" + currentDate);\r\n\t\t\t\r\n\r\n\t\t//will use this attriute to find out the date format\r\n\t\tSystem.out.println(departuredate.getAttribute(\"placeholder\"));\r\n\t\t\r\n\t\t\r\n\t\tif ( dateForDeparture.before(currentDate)){\r\n\t\t\t \r\n\t\t\tdateForDeparture.setDate(currentDate.getDate() + 6);\r\n\t\t }\r\n\t\t\r\n\t\tformattedDate1 = df1.format(dateForDeparture);\r\n\t\t\r\n\t\tSystem.out.println(\"This is the departure date reformat from departure_date() \" + formattedDate1);\r\n\t\t\r\n\t\t\r\n\t\tif (departuredate.isDisplayed()) \r\n\t\t{\r\n\t\t\tdeparturedate.click();\r\n\t\t\tdeparturedate.clear();\r\n\t\t\tTypeInField(departuredate, formattedDate1);\r\n\t\t\t//departuredate.sendKeys(formattedDate1);\r\n\t\t\tSystem.out.println(\"departuredate is entered successfully\");\r\n\t\t\tlogger.info(\"departuredate is entered successfully\");\r\n\t\t\ttest.log(Status.INFO, \"departuredate is entered successfully\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"departuredate TextBox not found\");\r\n\t\t\tlogger.error(\"departuredate TextBox not found\");\r\n\t\t\ttest.log(Status.FAIL, \"departuredate TextBox not found\");\r\n\r\n\t\t}\r\n\t}", "private String ObtenerFechaActual() {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/mm/yyyy\");\n Calendar calendar = GregorianCalendar.getInstance();\n return String.valueOf(simpleDateFormat.format(calendar.getTime()));\n }", "@Override\n public void onDateSet(android.widget.DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n //melakukan set calendar untuk menampung tanggal yang dipilih\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n //textview berubah menyesuaikan ketika sudah memilih tanggal\n txtview_date_result.setText(\"Date : \"+date_format.format(newDate.getTime()));\n }", "public String getFechaEntrada(){\n\t\treturn fecha.substring(0,10);\n\t}", "protected String obterData(String format) {\n\t\tDateFormat formato = new SimpleDateFormat(format);\n\t\tDate data = new Date();\n\t\treturn formato.format(data).toString();\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n Date date = new Date();\n DateFormat timeFormat = new SimpleDateFormat(\"HH:mm:ss\");\n String time = timeFormat.format(date);\n relogio.setText(time);\n \n Date date2 = new Date();\n DateFormat timeFormat2 = new SimpleDateFormat(\"dd/MM/yyyy\");\n String time2 = timeFormat2.format(date2);\n data.setText(time2);\n }", "public DateFormat getDateFormat(){\n\treturn dateFormat;\n }", "@Override\n public void onClick(View v) {\n DatePickerDialog dialogoFecha = new DatePickerDialog(CreacionPerfiles.this, (view, year, month, dayOfMonth) ->\n edtFechaNaciento.setText(fechaHora.formatoFecha(dayOfMonth, month, year)), anio, mes, dia);\n dialogoFecha.show();\n }", "public void dataPadrao() {\n Calendar c = Calendar.getInstance();\n SimpleDateFormat s = new SimpleDateFormat(\"dd/MM/yyyy\");\n String dataAtual = s.format(c.getTime());\n c.add(c.MONTH, 1);\n String dataAtualMaisUm = s.format(c.getTime());\n dataInicial.setText(dataAtual);\n dataFinal.setText(dataAtualMaisUm);\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n cal.set(Calendar.YEAR, year);\n cal.set(Calendar.MONTH, monthOfYear);\n cal.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n String myFormat = \"yyyy/MM/dd\";\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.KOREA);\n dateEt.setText(sdf.format(cal.getTime()));\n }", "private String formatDate(String dateObject) {\n SimpleDateFormat input = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\"); // format kita \"HARUS SAMA TIDAK BOLEH FORMATNYA BEDA BAHKAN 1 CHAR PUN\n SimpleDateFormat output= new SimpleDateFormat(\"dd-MM-yyyy\");\n Date tanggal = null;\n try {\n tanggal = input.parse(dateObject);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return output.format(tanggal);\n\n }", "private void updateLabel(EditText view) {\n String myFormat = \"MM/dd/yyyy\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n\n view.setText(sdf.format(myCalendar.getTime()));\n }", "public static Date changeDateFormat(String date, String format){\n SimpleDateFormat sdf = new SimpleDateFormat(format);\n try {\n return sdf.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }" ]
[ "0.75304955", "0.7104252", "0.7076836", "0.6800321", "0.66098243", "0.6496405", "0.64584225", "0.64417094", "0.6395934", "0.6340041", "0.63043976", "0.6299441", "0.6264587", "0.6215601", "0.6209168", "0.61648333", "0.6104914", "0.6067874", "0.6060734", "0.6037035", "0.603666", "0.6002491", "0.5998523", "0.5996203", "0.59950274", "0.5962416", "0.5959659", "0.59425694", "0.5931125", "0.59254646", "0.59095913", "0.5903315", "0.5903315", "0.5890669", "0.5882456", "0.5881996", "0.58770055", "0.5865179", "0.5862026", "0.5862026", "0.5856503", "0.5850838", "0.583971", "0.58391845", "0.58391166", "0.5831995", "0.58099693", "0.58081496", "0.58015615", "0.5799863", "0.57909435", "0.5790244", "0.5787231", "0.57846874", "0.5776595", "0.57705176", "0.5765395", "0.5763178", "0.57593596", "0.5754755", "0.5754396", "0.574702", "0.5744237", "0.5729785", "0.57269645", "0.57230854", "0.57230854", "0.5722861", "0.5720522", "0.57080644", "0.5707264", "0.5699939", "0.5696729", "0.5696576", "0.5696576", "0.5688447", "0.568792", "0.5684926", "0.5673773", "0.56735253", "0.5666777", "0.566469", "0.56543374", "0.56479686", "0.56474584", "0.5640267", "0.56386274", "0.56378216", "0.5637131", "0.56358516", "0.56265604", "0.5622119", "0.5617617", "0.5612198", "0.5609556", "0.5607259", "0.5601274", "0.56007004", "0.559691", "0.55967605", "0.559447" ]
0.0
-1
/El click en la imagen sirve para agregar el objeto Apod a favoritos
@OnLongClick(R.id.fragApod_image) public boolean onLongClickImage(){ //Si es un video no lo puede poner en favoritos if(isVideo){ return true; } //Si no existe la foto en la lista de favoritos, se puede agregar if(apodDataSource.getApod(modelApod.getTitle(),modelApod.getDate()) == null) { new AlertDialog.Builder(getActivity()) .setTitle(getString(R.string.fragments_msgAddToFavorites)) .setMessage(String.format(getString(R.string.fragments_msgQuestionAdd), modelApod.getTitle())) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { //Guardamos el objeto Apod en la base de datos long result = apodDataSource.saveApod(modelApod); if(result != -1) { Toast.makeText(getActivity(), getString(R.string.fragments_msgSuccessfullyAdded), Toast.LENGTH_SHORT).show(); } } }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { } }).setCancelable(false).create().show(); } else{ Toast.makeText(getActivity(), getString(R.string.fragments_msgAlreadyExist),Toast.LENGTH_SHORT).show(); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n helper = new DbHelper(context);\n //estrella click listener\n if (holder.estrella.getColorFilter() != null) {\n holder.estrella.clearColorFilter();\n //pub_id = h.hpub_id.getText().toString();\n //aquí elimina\n //Drawer dra = new Drawer();\n //dra.deleteFavorites(h.hpub_id.getText().toString(), Singin.user.getUser_email());\n //helper.eliminar();\n Toast.makeText(context, \"Favorito eliminado\"/*+ pub_id*/, Toast.LENGTH_SHORT).show();\n\n\n\n } else {\n holder.estrella.setColorFilter(ContextCompat.getColor(context,\n R.color.favorito_color));\n //pub_id = h.hpub_id.getText().toString();\n //aquí añade\n //Drawer dra = new Drawer();\n //dra.addFavorites(dra.createFavorite());\n // helper.insertardatos();\n Toast.makeText(context, \"Favorito Añadido\"/*+ pub_id*/, Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\tpublic void addFavorit(FavorisImpl newfavorit) {\n\t\t\n\t}", "void updateFavor(HouseFavor houseFavor);", "@Override\n public void addProductToFavorites(View view, Intent intent) {\n try {\n if(iProduct != null && view != null && intent != null){\n Context context = view.getContext();\n String jsonProduct = intent.getStringExtra(CommonPresenter.DETAIL_PRODUCT);\n Product product = CommonPresenter.getProductFromJSON(jsonProduct);\n CRUDFavorite crudFavorite = new CRUDFavorite(context);\n boolean isProductExists = crudFavorite.isProductExists(product.getProductId());\n if(isProductExists){\n crudFavorite.deleteByProductId(product.getProductId());\n CommonPresenter.showSnackBarMessage(view, context.getString(R.string.lb_product_delete_to_favorite));\n iProduct.changeImageRightResource(R.drawable.ic_add_to_favorite_32dp);\n }\n else{\n crudFavorite.add(new Favorite(0, product));\n CommonPresenter.showSnackBarMessage(view, context.getString(R.string.lb_product_add_to_favorite));\n iProduct.changeImageRightResource(R.drawable.ic_favorite_32dp);\n }\n }\n }\n catch (Exception ex){\n Log.e(\"TAG_ERROR\", \"ProductPresenter-->addProductToFavorites() : \"+ex.getMessage());\n }\n }", "public static void findFavourites() {\n DataManager.currentFavouritesList.clear();\n\n for (int i = 0; i < DataManager.fullFavouritesList.size(); i++) {\n Attraction attraction = DataManager.findAttractionByName(DataManager.fullFavouritesList.get(i));\n\n if (attraction != null) {\n DataManager.currentFavouritesList.add(attraction);\n }\n }\n\n FavouritesListFragment.backgroundLayout.setVisibility(DataManager.currentFavouritesList.size() == 0 ? View.VISIBLE : View.INVISIBLE);\n\n AttractionsListFragment.attractionsAdapter.notifyDataSetChanged();\n }", "@Override\n public void onClick(View v) {\n FavouriteDatabase fd = new FavouriteDatabase();\n fd.addToFavouritesList(catID);\n Toast.makeText(getContext(), \"Added to your Favourites\", Toast.LENGTH_SHORT).show();\n }", "public void onFavouritesIconPressed() {\n if (currentAdvertIsFavourite()) {\n dataModel.removeFromFavourites(advertisement);\n view.setIsNotAFavouriteIcon();\n } else {\n dataModel.addToFavourites(advertisement);\n view.setIsAFavouriteIcon();\n }\n }", "public void onFavouritesPress(View view) {\n\n favouritesDBHandler.addGame(game);\n Toast.makeText(getContext(), game.getName() + \" has been added to your favourites!\", Toast.LENGTH_SHORT).show();\n\n }", "void onDiscoverItemClicked(Movie item);", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif (item.isFavorite()) {\n\t\t\t\t\t\tholder.btnFavorite\n\t\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.icon_favorite_off);\n\t\t\t\t\t\titem.setFavorite(false);\n\t\t\t\t\t\tpref.setString(item.getFileName(), false);\n\t\t\t\t\t\tif (!inRingtones) {\n\t\t\t\t\t\t\tIntent broadcast = new Intent();\n\t\t\t\t\t\t\tbroadcast.setAction(\"REMOVE_SONG\");\n\t\t\t\t\t\t\tcontext.sendBroadcast(broadcast);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tholder.btnFavorite\n\t\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.icon_favorite);\n\t\t\t\t\t\titem.setFavorite(true);\n\t\t\t\t\t\tpref.setString(item.getFileName(), true);\n\t\t\t\t\t}\n\t\t\t\t}", "public RepositorioAvioes() {\n avioes = new ArrayList<Aviao>();\n }", "public void setUpFavouriteIcon() {\n if (isUserOwner()) {\n view.hideFavouriteIcon();\n } else if (currentAdvertIsFavourite()) {\n view.setIsAFavouriteIcon();\n } else {\n view.setIsNotAFavouriteIcon();\n }\n }", "@Override\n public void onClick(View v) {\n Pelicula p = MainActivity.peliculas.get(position);\n p.setFavorita(!p.isFavorita());\n }", "public void clickFoto(int varpagina, String nomeFoto) {\n\n\t\t\tsavePreferences();\n\t\t\tIntent i = new Intent(getActivity(), Foto.class);\n\t\t\ti.putExtra(\"varpagina\", varpagina);\n\t\t\ti.putExtra(\"datadelgiorno\", nomeFoto);\n\t\t\tstartActivity(i);\n\n\t\t}", "public void onClick(DialogInterface dialog, int id) {\n for (int i = 0; i < Artist_activity.artistFavorite.size(); i++) {\n if (Artist_activity.artistFavorite.get(i).containsValue(pop_artist.get(position).getName()))\n return;\n }\n Artist_activity.artistFavorite.add(Artist_activity.createPlanet(\"planet\", pop_artist.get(position).getName()));\n }", "private void addToFavorites() {\n\n favoriteBool = true;\n preferencesConfig.writeAddFavoriteTip(shownTipIndex);\n Toast.makeText(getContext(), \"Added to favorites.\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onClick(View view) {\n\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n\n if (favorited) {\n unFavorite(mangaID, user);\n } else {\n favorite(mangaID, mangaDetails.getTitle(), user);\n }\n\n }", "@Override\n public void onFavouriteClick(int position) {\n int id = newLest2.get(position).getId();\n Bundle bundle = new Bundle();\n bundle.putInt(\"id\", id);\n bundle.putString(\"name\", newLest2.get(position).getName_en());\n bundle.putString(\"url\", newLest2.get(position).getImage());\n Navigation.findNavController(view).navigate(R.id.action_homeFragment_to_showItemInCategories, bundle);\n\n }", "public void onClicklistenerForFavorites(View view){\n if(isAlreadyFavorteis() == true){\n Boolean hasDeleted = dBhelper.deleteFavortiesByCategoryId(userAskAbout,inputSpinnerOne.getSelectedItemPosition(),inputSpinnertow.getSelectedItemPosition());\n if(hasDeleted == true) {\n Toast.makeText(getApplicationContext(), \"Your data has deleted in Favorties\", Toast.LENGTH_LONG).show();\n favortiesImageView.setBackgroundResource(R.drawable.ic_favourites);\n isAlreadyFavorties = false;\n }\n\n }else\n {\n favortiesMethed();\n isAlreadyFavorties = true;\n favortiesImageView.setBackgroundResource(R.drawable.ic_favourites_pressed);\n }\n\n }", "@Override\n public void onClick(View v) {\n\n checkAccessibility();\n Intent intent = new Intent(MainActivity.this, FloatBallService.class);\n Bundle data = new Bundle();\n data.putInt(\"type\", FloatBallService.TYPE_ADD);\n intent.putExtras(data);\n startService(intent);\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t\tif(item.reward.getReward_favorite()==0)\n\t\t\t\t\t{\n\t\t\t\t\t\titem.reward.setReward_favorite(1);\n\t\t\t\t\t\timgFavorite.setImageResource(R.drawable.orange_star);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\titem.reward.setReward_favorite(0);\n\t\t\t\t\t\timgFavorite.setImageResource(R.drawable.black_star);\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n public void onClick(View view) {\n isFavorite = !isFavorite;\n\n if (isFavorite) {\n Toast.makeText(ShowTeacherActivity.this,\n getString(R.string.message_teacher_add_to_favorites), Toast.LENGTH_SHORT)\n .show();\n presenter.saveFavorite(ShowTeacherActivity.this, teacher);\n ibFavorite.setImageResource(R.drawable.ic_favorite_full);\n } else {\n Toast.makeText(ShowTeacherActivity.this,\n getString(R.string.message_teacher_delete_from_favorites), Toast.LENGTH_SHORT)\n .show();\n presenter.deleteFavorite(ShowTeacherActivity.this, teacher.getId());\n ibFavorite.setImageResource(R.drawable.ic_favorite_border);\n }\n }", "public void onFavButtonClicked(View view) {\n isFav = !isFav;\n toggleButtonText(isFav);\n \n // Update DB\n new OperateWithDBMovieAsyncTask().execute(isFav ? ADD_MOVIE : REMOVE_MOVIE);\n }", "public void clickedPresentationNew() {\n\t\t\n\t}", "private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}", "@Override\n public void onClick(View v) {\n\n FavActionUtility favActionUtility = new FavActionUtility(getActivity());\n\n try {\n switch (v.getId()) {\n case R.id.text_phone:\n favActionUtility.dial(mPhoneField.getText().toString());\n break;\n case R.id.text_address:\n favActionUtility.mapOf(mAddressField.getText().toString(), mCityField.getText().toString());\n break;\n case R.id.text_yelp:\n favActionUtility.yelpSite(mYelpField.getText().toString());\n break;\n }\n } catch (Exception e) {\n favActionUtility.showErrorMessageInDialog(e.getMessage());\n e.printStackTrace();\n }\n\n }", "@Override\r\n public void onClick(View view) {\n String userName = entries.get(position);\r\n // TODO: ADD THE USER TO THE FOLLOWERS LIST\r\n entries.remove(position);\r\n notifyItemRemoved(position);\r\n notifyItemRangeChanged(position, entries.size());\r\n User user = AppLocale.getInstance().getUser();\r\n new ElasticSearch().acceptFollow(user, userName);\r\n Toast.makeText(mContext, \"Accepted : \" + u, Toast.LENGTH_SHORT).show();\r\n }", "@Then(\"I click on Add to WishList button for the Leica T Mirrorless Digital camara product.\")\n public void i_click_on_add_to_wish_list_button_for_the_leica_t_mirrorless_digital_camara_product() {\n BasePage.driverUtils.waitForWebElementToBeClickable(BasePage.leicaTMirrorlessDigitalCamPage.getLeicaTMirrorlessCamAddToWishListButton());\n BasePage.leicaTMirrorlessDigitalCamPage.getLeicaTMirrorlessCamAddToWishListButton().click();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_fav) {\n FavoritesDataSource dataSource = new FavoritesDataSource(getBaseContext());\n dataSource.open();\n if(isFav){\n //remove from favorites\n dataSource.deleteFromFavorites(placeid);\n item.setIcon(R.drawable.ic_heart_outline_white);\n Toast.makeText(getBaseContext(),placeName+\" was removed from favorites\",Toast.LENGTH_SHORT).show();\n isFav = false;\n }else{\n //add to favorites\n Place place = new Place(placeid,placeName,address,true,picURL);\n dataSource.addToFavorites(place);\n item.setIcon(R.drawable.ic_heart_fill_white);\n Toast.makeText(getBaseContext(),placeName+\" was added to favorites\",Toast.LENGTH_SHORT).show();\n isFav = true;\n }\n dataSource.close();\n return true;\n }else if(id == R.id.action_share){\n //open twitter url\n String tweetParams = \"text=\"+ URLEncoder.encode(\"Check out \"+placeName+\" located at \"+address+\". Website \")+\"&url=\"+URLEncoder.encode(tweetURL)+\"&hashtags=TravelAndEntertainmentSearch\";\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://twitter.com/intent/tweet?\"+tweetParams));\n startActivity(browserIntent);\n return true;\n }else if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@FXML\n private void chooseFavouritePhotoEvent() {\n if (!PhotoManager.getFavouriteList().isEmpty()) {\n User.setGalleryPhotos(PhotoManager.getFavouriteList());\n fadeOutEvent();\n }\n }", "@Override\n\t\tpublic void onFavorite(User arg0, User arg1, Status arg2) {\n\t\t\t\n\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(getApplicationContext(), FavMovieDetail.class);\n\n Bitmap b = favPosters.get(position);\n\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n b.compress(Bitmap.CompressFormat.PNG, 50, bs);\n intent.putExtra(\"favByteArray\", bs.toByteArray());\n intent.putExtra(\"favTitleIntent\",favTitleArray.get(position));\n intent.putExtra(\"favSynopsisIntent\",favSynopsisArray.get(position));\n intent.putExtra(\"favRatingIntent\",favRatingArray.get(position));\n intent.putExtra(\"favReleaseIntent\",favReleaseArray.get(position));\n\n startActivity(intent);\n }", "void favoriteView();", "public void onLoadMenuMyFavoritesSelected();", "void agregarVotoPlayLIst(Voto voto) throws ExceptionDao;", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_favorite:\n ItemFavoriteUrl db = new ItemFavoriteUrl(webView.getTitle(), webView.getUrl());\n db.save();\n adapter.notifyDataSetChanged();\n //adapter.add(ItemFavoriteUrl.findById(ItemFavoriteUrl.class, ItemFavoriteUrl.count(ItemFavoriteUrl.class)));\n Toast.makeText(MainActivity.this, R.string.favorite_saved, Toast.LENGTH_SHORT).show();\n /*for (int i=0; i<ItemFavoriteUrl.count(ItemFavoriteUrl.class); i++) {\n db = ItemFavoriteUrl.find\n Log.d(\"db\", db.url);\n }*/\n Log.d(\"count\", adapter.getCount() + \"\");\n break;\n\n case R.id.action_clear:\n ItemFavoriteUrl.deleteAll(ItemFavoriteUrl.class);\n adapter.notifyDataSetChanged();\n Toast.makeText(MainActivity.this, R.string.clear, Toast.LENGTH_SHORT).show();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override //Con esto se redirige a la DisplayActivity\n public void onClick(View v) {Intent goToDisplay = new Intent(context,DisplayActivity.class);\n\n /*Se añaden además otros dos parámetros: el id (para que sepa a cuál libro buscar)\n y el título (para ponerlo como título\n */\n goToDisplay.putExtra(\"ID\",id);\n goToDisplay.putExtra(\"titulo\", title);\n\n //Se inicia la DisplayActivity\n context.startActivity(goToDisplay);\n String url=null;\n goToDisplay.putExtra(\"http://http://127.0.0.1:5000/archivo/<ID>\", url);\n\n }", "public void refreshFavoriteBtn() {\r\n if (recipe.isFavorite(context)) {\r\n favoriteBtn.setIcon(\"faw_star\");\r\n } else {\r\n favoriteBtn.setIcon(\"faw_star_o\");\r\n }\r\n }", "private void initProdAct(){\n SearchProduce = (Button)findViewById(R.id.SearchProduce);\n getSupportActionBar().setTitle(\"NutraLink\");\n SearchProduce.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v) {\n\n Intent toy = new Intent(Homescreen.this, FoodSearch.class);\n startActivity(toy);\n }\n });\n }", "public static void horoscopeLaucherclick(AndroidDriver<WebElement> driver)\t\t\n\t{\t\n\t\tmy_Zodiac_PO my_Zodiac_PO=new my_Zodiac_PO(driver);\n\t\tWebDriverWait wait = new WebDriverWait(driver,10);\n//\t\twait = new WebDriverWait(driver,5);\n\t\tWebElement horoscope = driver.findElement(By.xpath(\"//android.view.ViewGroup[@index='0']/android.widget.TextView[@text ='Horoscope']\"));\t\n\t\thoroscope.click();\n\n\t\twait.until\n\t\t(ExpectedConditions.visibilityOfElementLocated\n\t\t\t\t(By.xpath(\"//android.view.ViewGroup\")));\n\n\t\ttry {\n\t\t\tif(my_Zodiac_PO.firstTimeUser().isDisplayed())\n\t\t\t{\t\n\t\t\t\tchangeVeryFirstDob(driver, \"11\", \"08\", \"1906\");\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t\t/*wait.until\n\t\t\t(ExpectedConditions.elementToBeClickable\n\t\t\t\t\t(By.xpath(\"//android.view.ViewGroup[@index='0']/android.widget.TextView[@text='ALL ZODIACS']\")));*/\n\t\t} catch (Exception e) {\n\t\t\t//e.printStackTrace();\n\t\t}\n\t}", "public AddFavouriteService() {\n super(\"AddFavouriteService\");\n }", "@Override\n public void onClick(View view) {\n\n Movie movie = new Movie(\"abc\");\n ContentValues contentValues = new ContentValues();\n contentValues.put(MoviesContract.Movies.TITLE,movie.getTitle());\n getContentResolver().insert(MoviesContract.Movies.CONTENT_URI,contentValues);\n //fetchMovies();\n\n }", "EcsFavourableActivity selectByPrimaryKey(Short act_id);", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(NaevusEntryActivity.this,\r\n\t\t\t\t\t\tLensPhotoList.class);\r\n\t\t\t\tint index = LensConstant.INDEX_NAEVUS;\r\n\t\t\t\tintent.putExtra(\"index\", index);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "@Override\n public void opcionEscogida(String app) {\n\n if(app.equals(\"camara\")){\n fotoCamara();\n eleccion=1;\n }else{\n //opcion galeria\n fotoGaleria();\n eleccion=2;\n }\n\n }", "public void onClicked() {\n mypreference = PreferenceManager.getDefaultSharedPreferences(getContext());\n SharedPreferences.Editor editorpref = mypreference.edit();\n Gson gson = new Gson();\n //retrieve the stored ArrayList of fovorite movies as json format\n String storedJsonList = mypreference.getString(\"storedjsonList\", \"\");\n // get the type of this json format\n Type type = new TypeToken<ArrayList<ItemsClass>>() {\n }.getType();\n ArrayList<ItemsClass> movieArrayList = new ArrayList<ItemsClass>();\n //create array list of the retrieved json\n // store it in my Arraylist\n movieArrayList = gson.fromJson(storedJsonList, type);\n\n// favo.setSelected(va[0]);\n ischecked = va[0];\n if (va[0] == true) {\n\n if (movieArrayList == null) {\n\n favoImageButton.setImageResource(R.drawable.liked);\n\n String loadedPosterString = encodeTobase64(theposterImage);\n\n\n serItems.add(new ItemsClass(loadedPosterString, title, releaseDate, overview, rate, id));\n\n Toast.makeText(getContext(), \"you have favo this movie with id of \" + id + \"and you list size is\" + serItems.size(), Toast.LENGTH_SHORT).show();\n //convert all the arraylist with the old and new Items to Json format\n String jsonList = gson.toJson(serItems);\n //save to sharedPreference\n editorpref.putString(\"storedjsonList\", jsonList);\n editorpref.commit();\n va[0] = !va[0];\n\n } else if (movieArrayList != null) {\n serItems = movieArrayList;\n for (int i = 0; i < serItems.size(); i++) {\n int detectId = serItems.get(i).getId();\n if (serItems.size() > 0 && detectId == id) {\n Toast.makeText(getContext(), \"you already have this movie in favorite list \", Toast.LENGTH_SHORT).show();\n favoImageButton.setImageResource(R.drawable.liked);\n break;\n } else if (serItems.size() > 0 && detectId != id && i < serItems.size() - 1) {\n\n continue;\n\n } else if (detectId != id && i == serItems.size() - 1 && i > serItems.size() - 2) {\n Toast.makeText(getContext(), \"you have favo this movie with id of \" + id, Toast.LENGTH_SHORT).show();\n favoImageButton.setImageResource(R.drawable.like);\n serItems.add(new ItemsClass(storedPoster, title, releaseDate, overview, rate, id));\n serItems.size();\n //convert all the arraylist with the old and new Items to Json format\n String jsonList = gson.toJson(serItems);\n //save to sharedPreference\n editorpref.putString(\"storedjsonList\", jsonList);\n editorpref.commit();\n va[0] = !va[0];\n break;\n }\n\n }\n }\n\n } else {\n if (movieArrayList != null) {\n serItems = movieArrayList;\n for (int i = 0; i < serItems.size(); i++) {\n\n int detectId = serItems.get(i).getId();\n if (i < serItems.size() && serItems.size() > 0 && detectId == id) {\n Toast.makeText(getContext(), \"you have deleted this movie this movie with id of \" + id, Toast.LENGTH_SHORT).show();\n favoImageButton.setImageResource(R.drawable.like);\n mypreference = getContext().getSharedPreferences(\"moviepref\", Context.MODE_PRIVATE);\n editorpref.putString(\"storedPoster\", \"\");\n editorpref.putString(\"storedTitle\", \"\");\n editorpref.putString(\"storedOverview\", \"\");\n editorpref.putString(\"storedDate\", \"\");\n editorpref.putFloat(\"storedrating\", (float) 0.0);\n editorpref.commit();\n va[0] = !va[0];\n//\n break;\n } else if (detectId != id && i < serItems.size() - 1) {\n continue;\n } else if (detectId == id && i == serItems.size() - 1) {\n Toast.makeText(getContext(), \" actually you don't have this movie in your favorite list \", Toast.LENGTH_SHORT).show();\n }\n\n }\n }\n }\n }", "@Override\n public void onClick(View v) {\n switch (v.getId()){\n // Hinzufügen\n case R.id.ibFilmAdd:\n //Intent intent = new Intent(this, MActFilmDetails.class);\n Intent intentFilm = new Intent(this, TActFilmDetails.class);\n intentFilm.putExtra(\"position\", -1);\n startActivity(intentFilm);\n break;\n\n case R.id.ibShowActor:\n Intent intentActor = new Intent(this, MActActors.class);\n startActivity(intentActor);\n break;\n\n case R.id.imgMASearch:\n loadFilmList(edMASearch.getText().toString());\n flAdapter.notifyDataSetChanged();\n ibCancelSearch.setVisibility(View.VISIBLE);\n break;\n\n case R.id.ibCancelSearch:\n loadFilmList(\"\");\n flAdapter.notifyDataSetChanged();\n ibCancelSearch.setVisibility(View.INVISIBLE);\n break;\n\n case R.id.ibNoFilmografy:\n ibNoFilmografy.setVisibility(View.INVISIBLE);\n loadFilmList(\"\");\n break;\n\n }\n }", "void onGetEquiposFavoritos(Task<QuerySnapshot> task);", "public void favouriteUser() {\r\n\t\tif(favourited) {\r\n\t\t\tcurrentUser.unfavouriteUser(userToView.getUserID());\r\n\t\t\tfavouriteButton.setText(\"Favourite\");\r\n\t\t\tfavourited = false;\r\n\t\t} else if(currentUser.getUserID() != userToView.getUserID()){\r\n\t\t\tcurrentUser.favouriteUser(userToView.getUserID());\r\n\t\t\tfavouriteButton.setText(\"Unfavourite\");\r\n\t\t\tfavourited = true;\r\n\t\t} else {\r\n\t\t\tCONSTANTS.makeAlertWindow(\"warning\",\"You can not favorite yourself!\");\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (yelpObjs != null) {\n\t\t\t\t\tYelpObject obj = yelpObjs.get(mPager.getCurrentItem());\n\t\t\t\t\tstartActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"yelp4:///biz/\" + obj.getBusinessId())));\n\t\t\t\t}\n\t\t\t}", "private void showFavouriteList() {\n setToolbarText(R.string.title_activity_fave_list);\n showFavouriteIcon(false);\n buildList(getFavourites());\n }", "private void foto1MouseClicked(java.awt.event.MouseEvent evt) {\n boolean r = insertarImagenCrear(foto1, lista1, 0);\n //SI ES TRUE PONEMOS LA VARIABLE F1 EN TRUE, HACIENDO REFERENCIA A QUE EL CUADRO DE LA FOTO SE ENCUENTRA OCUPADO\n if (r) {\n btnEliminar1.setVisible(true);\n btnGuardar.setEnabled(true);\n btnLimpiarLabel.setEnabled(true);\n }\n }", "@Override\n public void onClick(View view) {\n Intent mainlistIntent = new Intent(FavoriteActivity.this, FavoriteActivity.class);\n startActivity(mainlistIntent);\n }", "public void vistaApoyo (View view){\n Intent interfaz = new Intent(this,MainApoyo.class);\n Intent enviar = new Intent( view.getContext(), MainNivelesReto.class );\n //Metodo que me permite crear variable\n enviar.putExtra(\"IdCategoria\", getIntent().getStringExtra(\"IdCategoria\") );\n startActivity(interfaz);\n finish();\n }", "@Override\n public void onClick(View view) {\n Toast.makeText(contexto, contexto.getResources().getString(R.string.addFavoritos), Toast.LENGTH_SHORT).show();\n }", "@Test(suiteName = \"NowPlaying\", testName = \"Disallowed\", description = \"Now Playing - On Demand - Disallowed - Favorite icon\", enabled = true, groups = {\n\t\t\t\"MOBANDEVER-259\" })\n\tpublic void disallowedOnDemandFavoriteIcon() {\n\t\tCommon common = new Common(driver);\n\t\tCommon.log(\"Now Playing - On Demand - Disallowed - Favorite icon-259\");\n\t\ttry {\n\t\t\tgetPageFactory().getEvehome().clickNews();\n\t\t\tcommon.scrollUntilTextExists(\"News/Public Radio\");\n\t\t\tgetPageFactory().getEvehome().clickSubCatNews();\n\t\t\tCommon.impicitWait(3);\n\t\t\tgetPageFactory().getdmca().clickOnDemand();\n\t\t\tCommon.impicitWait(3);\n\t\t\tgetPageFactory().getEvehome().navigateToEpisode();\n\t\t\tString string = getPageFactory().getFavorites().favoritingShow();\n\t\t\t/*\n\t\t\t * getPageFactory().getEvehome().minimizebutton().click();\n\t\t\t * getPageFactory().getFavorites().verifyingFavoriteList(string);\n\t\t\t * getPageFactory().getEvehome().validateHomePage();\n\t\t\t * getPageFactory().getEvehome().clickMucisSubRock()\n\t\t\t */;\n\t\t\tgetPageFactory().getFavorites().unfavoriteShow();\n\t\t} catch (AndriodException ex) {\n\t\t\tCommon.errorlog(\"Exception occured in : \" + this.getClass().getSimpleName() + \" : \" + ex.getMessage());\n\t\t\tAssert.fail(\"Exception occured in : \" + this.getClass().getSimpleName() + \" : \" + ex.getMessage());\n\t\t}\n\t}", "fotos(){}", "void clickItem(int uid);", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tfinal int position = (Integer) v.getTag();\r\n\t\t\t\t\tfinal MainActivity act = (MainActivity) v.getContext();\r\n\t\t\t\t\tHashMap<String, String> data = new HashMap<String, String>() {\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tput(\"token\", Constants.TOKEN);\r\n\t\t\t\t\t\t\tput(\"objectId\", list.get(position).getUid());\r\n\t\t\t\t\t\t\tput(\"isLike\", \"true\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\tRequestData request = HttpUtils.simplePostData(Address.HOST\r\n\t\t\t\t\t\t\t+ Address.LIKE, data);\r\n\t\t\t\t\tact.startHttpTask(new TaskResultListener() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void result(ResposneBundle b) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tLog.e(\"result\", b.getContent());\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tJSONObject job = new JSONObject(b.getContent());\r\n\t\t\t\t\t\t\t\tif (job.getInt(\"code\") == -1) {\r\n\t\t\t\t\t\t\t\t\tact.showToast(job.getString(\"msg\"));\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tf.refreshFriendList();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void failed(final String message) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tact.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tact.showToast(message);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}, request);\r\n\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t((ImageView) v)\n\t\t\t\t.setImageResource(!followState ? R.drawable.heart\n\t\t\t\t\t\t: R.drawable.favourite);\n\t\t\t\tpost.setFavorite(!followState?1:0);\n\t\t\t\tmHandler.obtainMessage(!followState?3:4, post_id)\n\t\t\t\t.sendToTarget();\n\t\t\t}", "@Override\n public void onClick(View view) {\n Post info_post = ControladoraPresentacio.getpost_perName(view.getContentDescription().toString());\n ControladoraPosts.settitle(info_post.getTitle());\n ControladoraPosts.setDescripcion(info_post.getDescription());\n ControladoraPosts.setuser(info_post.getUser());\n ControladoraPosts.setid(info_post.getId());\n ControladoraPosts.setdate(info_post.getTime());\n //Nos vamos a la ventana de VisualizeListOUser\n Intent intent = new Intent(PersonalPosts.this, VisualizePosts.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n //finish();\n }", "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "public void onClickInsertFav_Jogo(View v){\n }", "private void aumentarPilha() {\n this.pilhaMovimentos++;\n }", "@Override\n\tpublic void getFavorit(int idUser) {\n\t\t\n\t}", "@Override\n\tprotected boolean onTap(int index) {\n\t\tIntent intent= new Intent(mContext, Hotspot.class); // no param constructor\n\t Bundle b= new Bundle();\n\t \n\t OverlayItem hs = createItem(index);\n\t \n\t HotSpotModel hsm = new HotSpotModel(hs.getTitle(), hs.getPoint().getLatitudeE6(), hs.getPoint().getLongitudeE6());\n\t \n\t b.putSerializable(\"hotspot\", hsm);\n\t intent.putExtras(b);\n\t mContext.startActivity(intent);\n\t return true;\n\t}", "@Override\r\n \t\t\tpublic void onClick(ClickEvent event) {\n \t\t\t\tmovieProvider.getList().add(new Movie(\"\", 0, Language.English, \"\", \"\"));\r\n \t\t\t\tmovieTable.redraw();\r\n \t\t\t\t//movieProvider.refresh();\r\n \t\t\t\tWindow.alert(\"Added\");\r\n \t\t }", "public void onClickLike() {\r\n\t\ttry {\r\n\t\t\tJSONObject mChannelData = mListChannelsData.getJSONObject(mCurrentPosition);\r\n\t\t\tString channelId = mChannelData.getString(ListChannelsServices.id);\r\n\t\t\tString channelName = mChannelData.getString(ListChannelsServices.name);\r\n\t\t\tif (mDatabaseDAO.checkFavouriteChannelExist(channelId)) {\r\n\t\t\t\tmDatabaseDAO.deleteFavouriteChannel(channelId);\r\n\t\t\t\t((ImageView)mActivity.findViewById(R.id.img_like)).setImageResource(R.drawable.ic_like);\r\n\t\t\t\tUtils.toast(mActivity, getString(R.string.removed_from_favourite_channel));\r\n\t\t\t} else {\r\n\t\t\t\tmDatabaseDAO.insertFavouriteChannel(channelId, \"\", mChannelData.toString());\r\n\t\t\t\t((ImageView)mActivity.findViewById(R.id.img_like)).setImageResource(R.drawable.ic_like_yes);\r\n\t\t\t\tUtils.toast(mActivity, getString(R.string.added_to_favourite_channel));\r\n\t\t\t\t\r\n\t\t\t\t// Google Analytics\r\n\t\t\t\tString action = channelName;\r\n\t\t\t\tEasyTracker.getTracker().trackEvent(NameSpace.GA_CATEGORY_MOST_LIKED_CHANNELS, action, null, 1L);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(context, \"准备添加收藏!\", Toast.LENGTH_SHORT).show();\n\t\t\t}", "private void initListFavorite() {\n favoritesList = mApiService.getFavorites();\n mRecyclerView.setAdapter(new MyNeighbourRecyclerViewAdapter(favoritesList, this));\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.take_photo) {\n goToCamera();\n return true;\n }\n\n if (id == R.id.add_favorite) {\n dbHandler.setFavoritesUpdated(true);\n Model model = new Model(this.getApplicationContext());\n if(_img.getDrawable() != null) {\n BitmapDrawable bitmapDrawable = ((BitmapDrawable) _img.getDrawable());\n loc.setPicture(bitmapDrawable.getBitmap());\n }\n model.addFavorite(loc);\n if(menu != null) {\n checkFavorite();\n }\n return true;\n }\n if(id == R.id.rem_favorite){\n dbHandler.setFavoritesUpdated(true);\n model.deleteFavorite(loc.getId());\n if(menu != null) {\n checkFavorite();\n }\n }\n\n return super.onOptionsItemSelected(item);\n }", "private static Achievement createFavoriteAchievement(){\n\n ArrayList<String> picturesPaths = new ArrayList<>();\n picturesPaths.add(\"favorite_none\");\n picturesPaths.add(\"favorite_bronze\");\n picturesPaths.add(\"favorite_silver\");\n picturesPaths.add(\"favorite_diamond\");\n\n ArrayList<String> picturesLabels = new ArrayList<>();\n picturesLabels.add(\"No favorite\");\n picturesLabels.add(\"Curious Chef\");\n picturesLabels.add(\"Local Chef\");\n picturesLabels.add(\"Library Chef\");\n\n ArrayList<Integer> levelSteps = new ArrayList<>();\n levelSteps.add(1);\n levelSteps.add(10);\n levelSteps.add(50);\n\n Function<User, Integer> getUserNbFavorites = u -> u.getFavourites().size();\n\n return new Achievement(\"favorite\", STANDARD_NB_LEVELS, picturesPaths, picturesLabels, levelSteps, getUserNbFavorites);\n }", "private void cargarDatosLista(){\n listaInteres= new GsonBuilder().create().fromJson(loadJSONFromAsset(\"fakeInteresesDisponibles.json\", this), Interes[].class);\n\n // Pasamos los datos al adaptador para crear la lista\n adapterListadoInteres = new ListadoInteresesRecyclerAdapter(listaInteres, getApplicationContext());\n // Añade un separador entre los elementos de la lista\n recyclerListadoInteres.addItemDecoration(new SimpleDividerItemDecoration(getApplicationContext()));\n recyclerListadoInteres.setAdapter(adapterListadoInteres);\n\n //Marcamos el interes como favorito\n recyclerListadoInteres.addOnItemTouchListener(new RecyclerItemClickListener(ListadoInteresesActivity.this, new RecyclerItemClickListener.OnItemClickListener() {\n @Override\n public void onItemClick(View v, int position) {\n ImageView ib = (ImageView) v.findViewById(R.id.cvimageFavorito);\n\n if (ListadoInteresesActivity.this.listaInteres[position].getImageFavorito().equals(\"@drawable/ic_favorite_black_24dp\"))\n {\n Toast.makeText(ListadoInteresesActivity.this, R.string.existsfavorito , Toast.LENGTH_SHORT).show();\n \n }\n else\n {\n Toast.makeText(ListadoInteresesActivity.this, R.string.addinteresfavorito, Toast.LENGTH_SHORT).show();\n ib.setImageResource(R.drawable.ic_favorite_black_24dp);\n }\n }\n }));\n adapterListadoInteres.notifyDataSetChanged();\n\n // Oculta el circulo de cargar\n swipeRefreshLayout.setRefreshing(false);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n\n progressbar = findViewById(R.id.progressBar);\n listView = findViewById(R.id.listView);\n //instanciar o adapter\n adapter = new AlunoAdapter(this);\n\n //Plugar o adapter na lista\n listView.setAdapter(adapter);\n listView.setOnItemClickListener(this);\n\n //Configurando o presenter\n presenter = new MainPresenter(this, ServiceFactory.create());\n\n\n\n }", "private DoFavorite(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "public void clicarAvancar() {\n\t\tavancar.click();\n\t}", "public void clickFavoritesLink()\n\t{\n \telementUtils.performElementClick(wbFavoritesLink);\n\t}", "public ApagarAction(IAlarmasDAO modelo, IGUIAlarmas vista) {\n\t\tthis.modelo = modelo;\n\t\tputValue(Action.NAME, \"Apagar\");\n\t\tputValue(Action.SHORT_DESCRIPTION, \"Apagamos una alarma cuando esta sonando\");\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tIntent i=new Intent(EventDesc.this,suggestions.class);\n\t\t\t\ti.putExtra(NAME, bun.getString(NAME));\n\t\t\t\ti.putExtra(ID,bun.getString(ID));\n\t\t\t\tstartActivity(i);\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n ArrayList<HashMap<String, String>> result;\n result = food_repo.get_food_by_name(name.getText().toString());\n ArrayList<String> names = new ArrayList<String>();\n ArrayList<String> datas = new ArrayList<String>();\n ArrayList<String> ids = new ArrayList<String>();\n for (int i = 0; i < result.size(); i++) {\n names.add(result.get(i).get(\"name\"));\n datas.add(result.get(i).toString());\n ids.add(result.get(i).get(\"id\"));\n }\n Intent go_to_confirm = new Intent(getItSelf(), NormalExpandDietSearch.class);\n go_to_confirm.putExtra(\"data\", datas);\n go_to_confirm.putExtra(\"name\", names);\n go_to_confirm.putExtra(\"id\", ids);\n go_to_confirm.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(go_to_confirm);\n finish();\n }", "void addToFavorites(int recipeId);", "public void clickAddTopping(int itemIndex, ItemCart item);", "@Override\n public void FavouriteMovieSelected(View view) {\n if(view.getTag().equals(MovieDetailAdapter.FAVOURITE)) {\n StoreFavoriteMovieIntentService.startAction_ADD_FAV_MOVIE(getActivity(),\n mMovieItem,\n movieDeatailAdapter.getmMovieItemDetail());\n } else {\n StoreFavoriteMovieIntentService.removeFavriteMovie(getActivity(),mMovieItem.getId());\n }\n movieDeatailAdapter.notifyDataSetChanged();\n }", "public void makeFavouriteButton() {\r\n JButton favourite = new JButton(\"Favourite a champion\");\r\n new Button(favourite, main);\r\n// favourite.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// favourite.setPreferredSize(new Dimension(2500, 100));\r\n// favourite.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n favourite.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n favouriteChampion();\r\n }\r\n });\r\n// main.add(favourite);\r\n }", "@Override\n\tpublic void acomodaVista() {\n\n\t}", "public void clickonFullyAutomaticFrontLoad() {\n\t\t\n\t}", "@Override\n public void onClickPokemon(PokemonItem pokemon) {\n// Toast.makeText(PokemonBankActivity.this, \"clicked \"+ pokemon.id, Toast.LENGTH_LONG).show();\n //\n gotoPkmDetail(pokemon);\n }", "@Override\n public void onClick(View v) {\n // Setting progress as search loading indicator\n ProgressBar progressBar = (ProgressBar) getView().getRootView().findViewById(R.id.homeProgress);\n progressBar.setVisibility(ProgressBar.VISIBLE);\n Intent intent = new Intent(getActivity(), SearchResults.class);\n intent.putParcelableArrayListExtra(IngredientItem.class.getSimpleName(), ingredients);\n getActivity().startActivity(intent);\n }", "public void clickonFilter() {\n\t\t\n\t}", "public void saveFavorite(){\n //make sure movie is NOT already a favorite\n if(!mMovieStaff.alreadyFavorite(mMovie.getTMDBId())){\n //is a new favorite, favorite movie list status has changed\n mFavoriteChanged = true;\n\n //set movie item favorite status as true\n mMovie.setFavorite(true);\n\n //save movie to favorite database table\n mMovieValet.saveFavorite(mMovie);\n\n //add movie to favorite movie list buffer\n mMovieStaff.addFavorite(mMovie);\n }\n\n //check if movie list type is display a favorite list and if the device is a tablet\n if(mMovieType == PosterHelper.NAME_ID_FAVORITE && mIsTablet){\n //both yes, get favorite movies to update poster fragment\n getMovieList(PosterHelper.NAME_ID_FAVORITE);\n }\n }", "public void addAppear(Object3d o){\r\n appear.addElement(o);\r\n }", "public void adicionarObservador (Observer observador) {\n list.add(observador);\n }", "public void startWriteFavorite (View view) {\n Intent intent= new Intent();\n intent.setAction(\"com.example.myfirstapp_withsplashscreen.WRITE_FAVORITE\");\n intent.putExtra(\"league\", favorite_league);\n intent.putExtra(\"team\", favorite_team);\n sendBroadcast(intent);\n }", "public void addLike() {\n // TODO implement here\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\taddLikeRelationship(jsonArray.getJSONObject(index).getInt(\"postid\"),index);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tswitch (v.getId()){\n\t\t\t\tcase R.id.search_add_btn:\n\t\t\t\t\tfind_add_ll.setVisibility(View.VISIBLE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase R.id.find_distence_ll:\n\t\t\t\t\tchoice = \"place\";\n\t\t\t\t\tFindHttpPost();\n\t\t\t\t\tfind_add_ll.setVisibility(View.GONE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase R.id.find_hot_ll:\n\t\t\t\t\tchoice = \"heat\";\n\t\t\t\t\tFindHttpPost();\n\t\t\t\t\tfind_add_ll.setVisibility(View.GONE);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public void addFavourite(View view){\n // We need to get the input from the fields\n EditText editTextName = (EditText) findViewById(R.id.editTextItemName);\n\n // First we need to make sure that the two required fields have entries and are valid\n if (editTextName.length() == 0) {\n Context context = getApplicationContext();\n CharSequence text = \"Missing Name.\";\n int duration = Toast.LENGTH_SHORT;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n\n return;\n }\n\n Context context = getApplicationContext();\n CharSequence text = \"Entry added as favourite\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n view.setClickable(false); // Turns button off //\n view.setVisibility(View.INVISIBLE);\n\n // Also make text entry invisible\n editTextName.setVisibility(editTextName.INVISIBLE);\n\n Globals.l.add(editTextName.getText().toString(),Globals.f);\n\n\n }", "public interface FavoriteViewListener {\n public void update();\n}", "private void constroiObjetosNotas()\n {\n img_voltarN = (ImageView) vw_notas.findViewById(R.id.img_voltar);\n pager = (ViewPager) vw_notas.findViewById(R.id.pager);\n tabs = (SlidingTabLayout) vw_notas.findViewById(R.id.tabs);\n\n img_voltarN.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n area_geral.removeViewAt(2);\n pagina = PaginaAtual.PORTAL_DISCENTE;\n web.loadUrl(\"https://www.sigaa.ufs.br/sigaa/verPortalDiscente.do\");\n }\n });\n }" ]
[ "0.57131046", "0.55398613", "0.5538047", "0.55287886", "0.5510591", "0.55103", "0.54515666", "0.54336333", "0.54327124", "0.54306424", "0.540607", "0.53782123", "0.53513783", "0.5343504", "0.5329559", "0.5318278", "0.5308448", "0.5283166", "0.528163", "0.52439696", "0.5241092", "0.5232519", "0.52306336", "0.5212985", "0.52014834", "0.5140191", "0.5138964", "0.512926", "0.5123358", "0.51191634", "0.511779", "0.51081944", "0.5101695", "0.5092584", "0.50905323", "0.5088953", "0.5086762", "0.5080353", "0.5058259", "0.50543326", "0.5053996", "0.5041946", "0.5037807", "0.5033547", "0.5032105", "0.50243115", "0.50236744", "0.50226253", "0.5019834", "0.50195855", "0.50185084", "0.5017532", "0.5015221", "0.50053257", "0.49979356", "0.4994496", "0.4985491", "0.49852037", "0.49797496", "0.4975957", "0.49754426", "0.4970487", "0.49704748", "0.49685463", "0.49672082", "0.4966305", "0.49642548", "0.49626502", "0.495698", "0.49533373", "0.494774", "0.49321347", "0.49302828", "0.49294394", "0.4917924", "0.4912708", "0.4910714", "0.4908388", "0.4907811", "0.4904889", "0.490451", "0.48973778", "0.48961204", "0.48960212", "0.4889842", "0.48895872", "0.48864102", "0.4885108", "0.48767176", "0.4869124", "0.48682833", "0.48672172", "0.48641992", "0.48617092", "0.48606724", "0.48593378", "0.48588634", "0.4856494", "0.48561534", "0.48548877" ]
0.51406664
25
Guardamos el objeto Apod en la base de datos
@Override public void onClick(DialogInterface dialog, int which) { long result = apodDataSource.saveApod(modelApod); if(result != -1) { Toast.makeText(getActivity(), getString(R.string.fragments_msgSuccessfullyAdded), Toast.LENGTH_SHORT).show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void guardarEstadoObjetosUsados() {\n }", "public OnibusDAO() {}", "public SolicitudREST() {\n gson = new Gson();\n sdao= new SolicitudDAO();\n }", "public interface ApiService {\n\n// @FormUrlEncoded\n// @POST(\"tambah_data.php\")\n// Call<ResponseBody> tambahData(@Field(\"nama\") String nama, @Field(\"jenis\") String jenis, @Field(\"keterangan\") String keterangan);\n//\n// @FormUrlEncoded\n// @POST(\"edit_data.php\")\n// Call<ResponseBody> editData(@Field(\"id_barang\") String id, @Field(\"nama_barang\") String nama, @Field(\"jenis_barang\") String jenis, @Field(\"keterangan_barang\") String keterangan);\n//\n// @FormUrlEncoded\n// @POST(\"hapus_data.php\")\n// Call<ResponseBody> hapusData(@Field(\"id_barang\") String id_barang);\n\n @GET(\"api_notif.php\")\n Call<List<ModelDataNotif>> getAllSewa();\n\n// @GET(\"single_data.php\")\n// Call<List<ModelData>> getSingleData(@Query(\"id_barang\") String id);\n\n}", "public paciente()\n {\n con = new bdconexion(); //instancia la clase bdconexion\n }", "@Autowired\n private void instansierData() {\n todoRepository.save(new Todo(\"Handle melk på butikken\",false, \"04/09/2017\",\"10/10/2017\"));\n todoRepository.save(new Todo(\"Plukk opp barna i barnehagen\",false, \"05/09/2017\",\"10/10/2017\"));\n todoRepository.save(new Todo(\"Vask klær\",true, \"08/09/2017\",\"12/09/2017\"));\n }", "private void ingresarAplicacion() {\n\t\tXlinkUtils.shortTips(\"validarIngreso 11\");\r\n\t\tEquipoDataSource equipoDataSource = new EquipoDataSource(getApplicationContext());\r\n\t\tequipoDataSource.open();\r\n\t\tequipoDataSource.crearColumnas();\r\n\t\tEquipo equipoBusqueda = new Equipo();\r\n\t\tequipoBusqueda.setEstadoEquipo(EstadoDispositivoEnum.CONFIGURACION.getCodigo());\r\n\t\tArrayList<Equipo> equipos = equipoDataSource.getEquipoEstado(equipoBusqueda);\r\n\t\tequipoDataSource.close();\r\n\t\tif(equipos != null && equipos.size() > 0){\r\n\t\t\t//Cuenta activa y equipo en configuracion\r\n\t\t\tEquipo equipo = (Equipo) equipos.toArray()[0];\r\n\t\t\tdatosAplicacion.setEquipoSeleccionado(equipo);\r\n//\t\t\tIntent i = null;\r\n\t\t\tif(equipo.getTipoEquipo().equals(TipoEquipoEnum.PORTERO.getCodigo())){\r\n\t\t\t\tnumeroSerie = ((Equipo) equipos.toArray()[0]).getNumeroSerie();\r\n\t\t\t\tprimerEquipo = false;\r\n\t\t\t\tObtenerEquipoPorNumeroSerieAsyncTask numeroSerieAsyncTask = new ObtenerEquipoPorNumeroSerieAsyncTask(null, SplashActivity.this);\r\n\t\t\t\tnumeroSerieAsyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\r\n//\t\t\t\ti = new Intent(SplashActivity.this, InstalarEquipoActivity.class);\r\n//\t\t\t\tstartActivity(i);\r\n\t\t\t}\r\n\r\n\t\t}else{\r\n\t\t\t//Cuenta activa y no hay dispositivos configurandose\r\n\t\t\tXlinkUtils.shortTips(\"validarIngreso 12\");\r\n\t\t\tSharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\r\n\t\t\tString numeroSerie = sharedPrefs.getString(\"prefEquipo\", \"\").toString();\r\n\t\t\tequipoDataSource = new EquipoDataSource(getApplicationContext());\r\n\t\t\tequipoDataSource.open();\r\n\t\t\tequipoBusqueda = new Equipo();\r\n\t\t\tequipoBusqueda.setTipoEquipo(TipoEquipoEnum.PORTERO.getCodigo());\r\n\t\t\tequipos = equipoDataSource.getEquipoTipoEquipo(equipoBusqueda);\r\n\r\n\t\t\tif(equipos != null && equipos.size() > 0) {\r\n\t\t\t\tdatosAplicacion.setEquipoSeleccionado(equipos.get(0));\r\n\t\t\t\tdatosAplicacion.setPorteroInstalado(true);\r\n\t\t\t}else{\r\n\t\t\t\tdatosAplicacion.setPorteroInstalado(false);\r\n\t\t\t}\r\n\r\n\t\t\tequipoBusqueda = new Equipo();\r\n\t\t\tequipoBusqueda.setNumeroSerie(numeroSerie);\r\n\t\t\tEquipo equipoPreferencia = equipoDataSource.getEquipoNumSerie(equipoBusqueda);\r\n\t\t\tequipoPreferencia.setModo(YACSmartProperties.MODO_WIFI);\r\n//\t\t\tequipoPreferencia.setNombreWiFi(\"yacareWIFI\");\r\n//\t\t\tequipoDataSource.updateEquipo(equipoPreferencia);\r\n//\t\t\tequipoDataSource.close();\r\n\r\n\t\t\tif(equipoPreferencia != null && equipoPreferencia.getId() != null && equipoPreferencia.getTipoEquipo().equals(TipoEquipoEnum.PORTERO.getCodigo())) {\r\n\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 13\");\r\n\t\t\t\tdatosAplicacion.setEquipoSeleccionado(equipoPreferencia);\r\n\t\t\t\tIntent i = new Intent(SplashActivity.this, Y4HomeActivity.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}else if(equipoPreferencia != null && equipoPreferencia.getId() != null && equipoPreferencia.getTipoEquipo().equals(TipoEquipoEnum.LUCES.getCodigo())) {\r\n\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 14\");\r\n\t\t\t\t\tdatosAplicacion.setEquipoSeleccionado(equipoPreferencia);\r\n\t\t\t\tIntent i = new Intent(SplashActivity.this, LucesFragment.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}else{\r\n\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 15\");\r\n\t\t\t\tif(datosAplicacion.getPorteroInstalado()){\r\n\t\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 16\");\r\n\t\t\t\t\tIntent i = new Intent(SplashActivity.this, Y4HomeActivity.class);\r\n\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tXlinkUtils.shortTips(\"validarIngreso 17\");\r\n\t\t\t\t\tequipoDataSource = new EquipoDataSource(getApplicationContext());\r\n\t\t\t\t\tequipoDataSource.open();\r\n\t\t\t\t\tequipoBusqueda = new Equipo();\r\n\t\t\t\t\tequipoBusqueda.setTipoEquipo(TipoEquipoEnum.LUCES.getCodigo());\r\n\t\t\t\t\tequipos = equipoDataSource.getEquipoTipoEquipo(equipoBusqueda);\r\n\t\t\t\t\tequipoDataSource.close();\r\n\t\t\t\t\tdatosAplicacion.setEquipoSeleccionado(equipos.get(0));\r\n\t\t\t\t\tIntent i = new Intent(SplashActivity.this, LucesFragment.class);\r\n\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n//\t\t\tdatosAplicacion.getEquipoSeleccionado().setNombreWiFi(\"yacareWIFI\");\r\n//\t\t\tequipoDataSource.updateEquipo(datosAplicacion.getEquipoSeleccionado());\r\n\t\t\tequipoDataSource.close();\r\n\t\t}\r\n\t}", "public void ustaw(){\n\t driver.initialize(this);\n\t driver.edit(new DodajSerwisDTO());\n\t }", "Persistencia() {\n\t}", "public interface ICampaniaDAO {\n\t/**\n\t * Crear la campania en el repositorio\n\t * @param campania\n\t */\n\tvoid crearCampania(GestionPrecioDTO campania);\n\t\n\t\n\t/**\n\t * Actualizar la campania en el repositorio\n\t * @param campania\n\t */\n\tvoid actualizarCampania(GestionPrecioDTO campania, UserDto user);\n\t\n\t/** Metodo actualizarCampania, utilizado para actualizar una campania\n\t * @author srodriguez\n\t * 27/2/2015\n\t * @param campania\n\t * @param user\n\t * @return void\n\t */\n\tvoid actualizarCampania(GestionPrecioDTO campania, String user);\n\t\n\t/**\n\t * Buscar la campania por el c&oacute;digo de referencia\n\t * de Loyalty\n\t * @param codigoCampaniaReferencia C&oacute;digo de Loyalty\n\t * @return\n\t */\n\tGestionPrecioDTO findCampania(String codigoCampaniaReferencia);\n /**\n * Verifica si una campania existe dado su clave primaria como\n * par&aacute;metro de b&uacute;squeda\n * @param id\n * @returnS\n */\n Boolean findExistsCampania(GestionPrecioID id) ;\n /**\n * Obtener todas las campanias existentes en el repositorio\n * @return\n */\n Collection<GestionPrecioDTO> findCampaniasPendientes() ;\n /**\n * Buscar un listado de campanias dado una plantilla de b&uacute;squeda y el\n * estado de cobro\n * @param gestionPrecio Plantilla de b&uacute;squeda\n * @param estadoCobro Estado de cobro. Ej: PENDIENTE, CONFIGURADA, COBRADA, EN CURSO, etc.\n * @return\n */\n Collection<GestionPrecioDTO> findCampaniasFiltros (GestionPrecioDTO gestionPrecio,String estadoCobro);\n \n /**\n * @author cbarahona\n * @param campania\n */\n void actualizarCampaniaLoyalty (GestionPrecioDTO campania);\n \n SearchResultDTO<GestionPrecioDTO> findCampaniasPendientesLazy (Integer firstResult, Integer pageSize, Boolean countAgain);\n \n SearchResultDTO<GestionPrecioDTO> findCampaniasFiltrosLazy (GestionPrecioDTO gestionPrecio, String estadoCobro,Integer firstResult, Integer pageSize, Boolean countAgain);\n \n GestionPrecioDTO findCampania(final String codigoReferencia, final Integer codigoCompania) throws SICException;\n \n void actualizarCampania(GestionPrecioDTO campania) throws SICException;\n \n /**\n * Metodo que valida si una campaña tiene participantes\n * @param codigoReferencia\n * @return\n * @throws SICException\n */\n Boolean tieneParticipantesCampania(String codigoReferencia) throws SICException;\n}", "public interface CRUDProduto {\r\n \r\n public boolean save(Produto produto);\r\n\r\n public boolean update(Produto produto);\r\n\r\n public boolean delete(Produto produto);\r\n\r\n public Produto get(long id);\r\n\r\n public List<Produto> getAll();\r\n}", "public interface ApiInterfaceProyekAkhir {\n\n @FormUrlEncoded\n @POST(URL_PROYEK_AKHIR)\n Call<ProyekAkhir> createProyekAkhir(\n @Field(\"judul_id\") int id_judul,\n @Field(\"mhs_nim\") String mhs_nim,\n @Field(\"nama_tim\") String nama_tim\n );\n\n\n @FormUrlEncoded\n @POST(URL_PROYEK_AKHIR + PATH_UPDATE + PARAMETER_PROYEK_AKHIR)\n Call<ProyekAkhir> updateProyekAkhir(\n @Path(VAR_PROYEK_AKHIR) int proyek_akhir_id,\n @Field(\"judul_id\") int id_judul,\n @Field(\"mhs_nim\") String mhs_nim,\n @Field(\"dsn_nip\") String dsn_nip,\n @Field(\"nama_tim\") String nama_tim\n );\n\n @GET(URL_PROYEK_AKHIR)\n Call<List<ProyekAkhir>> getProyekAkhir();\n\n @POST(URL_PROYEK_AKHIR + PATH_DELETE + PARAMETER_PROYEK_AKHIR)\n Call<ProyekAkhir> deleteProyekAkhir(@Path(VAR_PROYEK_AKHIR) int proyek_akhir);\n\n @FormUrlEncoded\n @POST(URL_PROYEK_AKHIR + PATH_UPDATE + PATH_NILAI + PARAMETER_PROYEK_AKHIR)\n Call<ProyekAkhir> updateNilai(\n @Path(VAR_PROYEK_AKHIR) int proyek_akhir_id,\n @Field(\"nilai_total\") double nilai_total\n );\n\n @FormUrlEncoded\n @POST(URL_PROYEK_AKHIR + PATH_UPDATE + PATH_DOSEN + PARAMETER_PROYEK_AKHIR)\n Call<ProyekAkhir> updateDosenReviewer(\n @Path(VAR_PROYEK_AKHIR) int proyek_akhir_id,\n @Field(\"dsn_nip\") String nip_dosen\n );\n\n @GET(URL_PROYEK_AKHIR + PATH_SEARCH + PATH_ALL + BASE_PARAMETER + PARAMETER_QUERY)\n Call<List<ProyekAkhir>> searchAllProyekAkhirBy(\n @Path(VAR_PARAMS) String parameter,\n @Path(VAR_QUERY) String query\n );\n\n @GET(URL_PROYEK_AKHIR + PATH_SEARCH + PATH_ALL + BASE_PARAMETER_1 + PARAMETER_QUERY_1 + BASE_PARAMETER_2 + PARAMETER_QUERY_2)\n Call<List<ProyekAkhir>> searchAllProyekAkhirByTwo(\n @Path(VAR_PARAMS+\"1\") String parameter1,\n @Path(VAR_QUERY+\"1\") String query1,\n @Path(VAR_PARAMS+\"2\") String parameter2,\n @Path(VAR_QUERY+\"2\") String query2\n );\n\n @GET(URL_PROYEK_AKHIR + PATH_SEARCH + PATH_DISTINCT + BASE_PARAMETER + PARAMETER_QUERY)\n Call<List<ProyekAkhir>> searchDistinctProyekAkhirBy(\n @Path(VAR_PARAMS) String parameter,\n @Path(VAR_QUERY) String query\n );\n\n @GET(URL_PROYEK_AKHIR + PATH_SEARCH + PATH_DISTINCT + BASE_PARAMETER_1 + PARAMETER_QUERY_1 + BASE_PARAMETER_2 + PARAMETER_QUERY_2)\n Call<List<ProyekAkhir>> searchDistinctProyekAkhirByTwo(\n @Path(VAR_PARAMS+\"1\") String parameter1,\n @Path(VAR_QUERY+\"1\") String query1,\n @Path(VAR_PARAMS+\"2\") String parameter2,\n @Path(VAR_QUERY+\"2\") String query2\n );\n\n}", "public interface DataService {\n @GET(\"getdata.php\")\n Call<List<Hocsinh>> Getdata();\n\n @FormUrlEncoded\n @POST(\"insertdata.php\")\n Call<String> Insertdata(@Field(\"tenhocsinh\") String ten\n ,@Field(\"namsinh\") String namsinh\n ,@Field(\"diachi\") String diachi);\n\n @FormUrlEncoded\n @POST(\"delete.php\")\n Call<String> Deletedata(@Field(\"id\") String id);\n\n @FormUrlEncoded\n @POST(\"update.php\")\n Call<String> Update(@Field(\"ten\") String ten\n ,@Field(\"diachi\") String diachi\n ,@Field(\"namsinh\") String namsinh\n ,@Field(\"id\") String id);\n}", "public interface IEtapaService {\n Etapa save(Etapa etapa);\n\n List<EtapaARealizar> tareasProximas();\n}", "public boolean saveAplicacion() {\r\n\t\ttry {\r\n\t\t\tObjectOutputStream objectFile = new ObjectOutputStream(new FileOutputStream(ficheroCarga));\r\n\t\t\tobjectFile.writeObject(getInstancia(this.nombreAdmin, this.contraseñaAdmin, this.numMinApoyos));\r\n\t\t}catch(Exception e) {\r\n\t\t\t\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "Hotel saveHotel(Hotel hotel);", "@RequestMapping(value=\"/pokemon\", method =RequestMethod.GET)\n\tpublic boolean initDataBase() {//Inicializacion de la BD. Solo llamado una vez al iniciar la aplicacion\n\t\tboolean done = false;\n\t\thandler = new MongoDBQueries();//Inicializacion del objeto\n\t\thandler.initialize();//Inicializacion de la BD y la coleccion\n\t\thandler.getFile();//Lectura del fichero JSON e introduccion en la coleccion\n\t\tdone = true;\n\t\treturn done;\n\t}", "public PessoaService(){\n\t\n\t\tApplicationContext context =SpringUtil.getContext();\n\t\tdb = context.getBean(PessoaRepository.class);\n\t\t\n\t}", "public CalificacionREST() {\r\n\r\n gson = new Gson();\r\n sdao = new SolicitudDAO();\r\n /**\r\n * Creates a new instance of SolicitudREST\r\n */\r\n }", "public interface MovimientoService {\n public static final String PROPERTY_ID = \"id\";\n public static final String PROPERTY_PARTIDO_ID = \"partidoId\";\n public static final String PROPERTY_TIEMPO_DES = \"tiempoDes\";\n public static final String PROPERTY_MINUTO = \"minuto\";\n public static final String PROPERTY_SEGUNDO = \"segundo\";\n public static final String PROPERTY_TIPO = \"tipo\";\n public static final String PROPERTY_ORIGEN = \"origen\";\n public static final String PROPERTY_ENTRA_ID = \"entraId\";\n public static final String PROPERTY_ENTRA_NOMBRE = \"entraNombre\";\n public static final String PROPERTY_SALE_ID = \"saleId\";\n public static final String PROPERTY_SALE_NOMBRE = \"saleNombre\";\n\n Map<String,Object> createMovimiento(Map<String, String> movimiento);\n\n void deleteMovimiento(Long idMovimiento);\n\n List<Map<String,Object>> movimientosByPartido(Long idPartido);\n}", "public interface API {\n\n //Penyakit\n @GET(\"penyakitall/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @GET(\"penyakit/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseListByLokasi(@Path(\"page\") String page, @Path(\"count_page\") String count_page, @Query(\"id_desa\") String id_desa);\n\n @POST(\"penyakit\")\n Call<DiseasePostResponse>\n postDisease(@Body DiseaseBody diseaseBody);\n @DELETE(\"penyakit\")\n Call<DeletePenyakitResponse> deletePenyakit(@Query(\"Id_penyakit\") String id_penyakit);\n\n @PUT(\"penyakit\")\n Call<PutPenyakitResponse> editPenyakit(@Query(\"Id_penyakit\") String id_penyakit,\n @Body PutPenyakitBody putPenyakitBody);\n\n @GET(\"tipepenyakit/{page}/{count_page}\")\n Call<TipePenyakitResponse>\n getTipePenyakitList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @POST(\"multimedia\")\n Call<MultimediaPostResponse>\n postMultimedia(@Body MultimediaBody multimediaBody);\n}", "public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\", this._productoNombre);\n _valuesPedido.put(\"Precio\",this._productoPrecio);\n _valuesPedido.put(\"Cantidad\",this._etAdquirir.getText().toString());\n _valuesPedido.put(\"Vendedor\",this.username);\n _valuesPedido.put(\"Id_Producto\",this._productoId);\n bdsecunadaria.insert(\"DATOS\",null,this._valuesPedido);\n bdsecunadaria.close();\n }", "public interface SafeDao {\n /**\n * 写入数据库\n */\n int insertData(@Param(\"state\") String state, @Param(\"temperature\") String temperature, @Param(\"heartrate\") String heartrate, @Param(\"longitude\") String longitude, @Param(\"latitude\") String latitude, @Param(\"updateDate\") Date updateDate);\n List<SafeEntity> getList();\n List<SafeEntity> getOne();\n\n}", "public UnidadDAO() {\n this.setCon(cs.getConection());\n \n }", "public interface ApiService {\n @GET(\"AppServices/AppWebService.asmx/Catagory\")\n Call<Example> getAllCategory();\n\n @FormUrlEncoded\n @POST(\"AppServices/AppWebService.asmx/PhotoGallary\")\n Call<Example> getAllPhoto(@Field(\"CatagoryId\") String image_id);\n\n\n @GET(\"AppServices/AppWebService.asmx/Notice\")\n Call<Example> GetNotice();\n\n\n @GET(\"AppServices/AppWebService.asmx/GetStandard\")\n Call<Example> GetStandard();\n\n @GET(\"AppServices/AppWebService.asmx/GetSection\")\n Call<Example> GetSection();\n\n @GET(\"AppServices/AppWebService.asmx/News\")\n Call<Example> GetNews();\n\n @GET(\"AppServices/AppWebService.asmx/Assignment\")\n Call<Example> GetAssignment();\n\n @GET(\"AppServices/AppWebService.asmx/Event\")\n Call<Example> GetEvent();\n\n @GET(\"AppServices/AppWebService.asmx/Slider\")\n Call<Example> GetSlider();\n\n @GET(\"AppServices/AppWebService.asmx/Staff\")\n Call<Example> GetStaff();\n\n\n @GET(\"AppServices/AppWebService.asmx/Calander\")\n Call<Example> GetCalander();\n\n @GET(\"AppServices/AppWebService.asmx/Video\")\n Call<Example> GetVideo();\n\n @GET(\"AppServices/AppWebService.asmx/ToDayEvent\")\n Call<Example> GetTodayEvent();\n\n\n @GET(\"AppServices/AppWebService.asmx/ToDayNews\")\n Call<Example> Getodaynews();\n\n @GET(\"AppServices/AppWebService.asmx/RankerStudent\")\n Call<Example> GetSchoolRanker();\n\n\n @GET(\"AppServices/AppWebService.asmx/Medium\")\n Call<Example> GetMedium();\n\n @FormUrlEncoded\n @POST(\"AppServices/AppWebService.asmx/Standard_Div\")\n Call<Example> GetStandard(@Field(\"MediumId\") String stdid);\n\n @FormUrlEncoded\n @POST(\"AppServices/AppWebService.asmx/HomeWork\")\n Call<Example> GetHWork(@Field(\"StdId\") String Stdname);\n\n\n @GET(\"AppServices/AppWebService.asmx/Calander\")\n Call<Example> getcalnder();\n\n @FormUrlEncoded\n @POST(\"AppServices/AppWebService.asmx/TimeTable\")\n Call<Example> GetTimeTable(@Field(\"StdId\")String stdid);\n}", "public empresaDAO(){\r\n \r\n }", "public User save()\n {\n //TODO implantar salvar\n //Metodo que vai salvar no webservice a model\n JSONObject json = new JSONObject();\n try {\n json.put(\"username\", this.username);\n json.put(\"password\", this.password);\n }catch(JSONException e){\n json = null;\n }\n\n return null;\n }", "public interface WebApiInterface {\n\n @GET(\"alunos\")\n Call<List<Aluno>> getAlunos();\n\n @GET(\"alunos/{id}\")\n Call<Aluno> getAluno(\n @Query(\"id\") String matricula\n );\n\n @FormUrlEncoded\n @POST(\"alunos\")\n Call<String> postCriar(\n @Field(\"aluno\") Aluno aluno\n );\n\n @FormUrlEncoded\n @PUT(\"alunos/{matricula}\")\n Call<String> putAtualizar(\n @Query(\"matricula\") String id,\n @Field(\"aluno\") Aluno aluno\n );\n\n @DELETE(\"alunos/{id}\")\n Call<Aluno> deleteAluno(\n @Query(\"id\") String matricula\n );\n}", "public void GuardarSerologia(RecepcionSero obj)throws Exception{\n Session session = sessionFactory.getCurrentSession();\n session.saveOrUpdate(obj);\n }", "private void setupApiService(){\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(InstagramAppData.BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n instaGramService = retrofit.create(InstaGramService.class);\n }", "public void getAll() {\n\n PokeStubDTOWrapper wrappedPokemonStubs = restTemplate.getForObject(\"https://pokeapi.co/api/v2/pokemon?limit=1118\", PokeStubDTOWrapper.class);\n List<PokeStubDTO> pokemonStubList = wrappedPokemonStubs.getDTOs();\n\n for (PokeStubDTO pokeStub: pokemonStubList) {\n PokeDTO pokeDTO = restTemplate.getForObject(pokeStub.getUrl(), PokeDTO.class);\n\n Optional<Pokemon> pokemonInDB = pokemonRepository.findByName(pokeDTO.getName());\n\n if(pokemonInDB.isEmpty()){\n savePokemon(pokeDTO);\n System.out.println(\"saved: \" + pokeDTO.getName());\n\n } else {\n System.out.println(pokeDTO.getName()+ \" already exists in DB\");\n }\n }\n }", "public interface BDService {\n\n\n public List<BfPredict> getAllBf();\n\n public BfPredict getABf(String countyName);\n\n public Integer insertBf(BfPredict bfPredict);\n\n public Predict getAPredict(String countyName);\n\n public Integer insertPredict(Predict predict);\n\n}", "public interface TbItemServiceAnno {\n //获取所有\n List<TbItem> getAll();\n\n //根据id进行查询\n TbItem getById(Long id);\n\n //插入\n int insertObj(TbItem tbItem);\n\n //更新\n int updateObj(TbItem tbItem);\n}", "public Producto guardar(Producto producto) throws IWDaoException;", "BaseDatosMemoria() {\n baseDatos = new HashMap<>();\n secuencias = new HashMap<>();\n }", "private BaseDatos() {\n }", "public PacienteDAO(){ \n }", "public List<Aplicativo> buscarTodos() {\n return repositorio.findAll();\n }", "private void pushToHibernate(){\n DATA_API.saveUser(USER);\n }", "public Propiedad() {\n bdPropiedad = new DaoPropiedad();\n bdComentario = new DaoComentario();\n }", "public DoctoresResource() {\n servDoctores = new ServicioDoctores();\n }", "public interface PagoDAO \n{\n\tpublic List<Pago> findAll();\n\n public Pago findById(int id);\n\n public void save(Pago pago);\n}", "public interface GenereicDaoAPI extends CrudRepository<Producto, Long> {\n\n}", "public interface AppHealthDataDao {\n public AppHealthData findByType(String type, String idNo) throws Exception;\n\n public AppHealthData findByPatientId(String patientId, String ghh000,String type) throws Exception;\n\n public void addHealthDataImplements(JSONObject jsonall,String idNo,String card,String type,String requestUserId,String requestUserName,String userType) throws Exception;\n}", "public interface BasicModel {\n static final String host = \"http://2flf3l7wp7.hardtobelieve.me/\";\n boolean checkConnection();\n void getByID(String ID);\n\n void add();\n boolean validObject();\n\n static JSONArray getAll(String folder) {\n String endpoint = folder + \"/getall.php\";\n try {\n HashMap<String, Object> result = APIClient.get(host + endpoint, new HashMap<>());\n if ( result.get(\"status_code\").equals(\"Success\") ) {\n return (JSONArray) result.get(\"result\");\n }\n else return new JSONArray();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return new JSONArray();\n }\n\n static JSONArray getUnique(String folder, HashMap<String, String> dict) {\n String endpoint = folder + \"/get.php\";\n try {\n HashMap<String, Object> result = APIClient.get(host + endpoint, dict);\n if ( result.get(\"status_code\").equals(\"Success\") ) {\n return (JSONArray) result.get(\"result\");\n\n }\n else return new JSONArray();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return new JSONArray();\n }\n\n static boolean deleteUnique(String folder, HashMap<String, String> dict) {\n String endpoint = folder + \"/delete.php\";\n try {\n HashMap<String, Object> result = APIClient.get(host + endpoint, dict);\n return result.get(\"status_code\").equals(\"Success\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }\n\n static boolean updateUnique(String folder, HashMap<String, String> dict) {\n String endpoint = folder + \"/update.php\";\n try {\n HashMap<String, Object> result = APIClient.post(host + endpoint, dict);\n return result.get(\"status_code\").equals(\"Success\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }\n}", "public interface ITripulanteService {\r\n\r\n\t/**\r\n\t * Metodo que permite guardar un tripulante en el gestor de Base de datos\r\n\t * \r\n\t * @param tripulante objeto de tipo tripulante que se desea guardar\r\n\t */\r\n\tpublic void guardarTripulante(Tripulante tripulante);\r\n\r\n\t/**\r\n\t * Metodo que permite guardar un Tripulante encontrado, recibe un objeto de tipo\r\n\t * tripulante\r\n\t * \r\n\t * @param tripulante objeto de tipo tripulante, a guardar\r\n\t */\r\n\tpublic void guardarTripulanteEncontrado(Tripulante tripulante);\r\n\r\n\t/**\r\n\t * Metodo que permite listar los Tripulantes almacenados\r\n\t * \r\n\t * @return la lista de Tripulantes encontrados\r\n\t */\r\n\tpublic List<Tripulante> obtenerTripulantes();\r\n\r\n\t/**\r\n\t * Metodo que permite listar todos los Tripulantes almacenados\r\n\t * \r\n\t * @return la lista de Tripulantes encontrados\r\n\t */\r\n\tpublic List<Tripulante> buscarTodosTripulantes();\r\n\r\n\t/**\r\n\t * Metodo para hacer una busqueda de Tripulante por su id ingresado por parametro\r\n\t * \r\n\t * @param id de Tripulante a buscar\r\n\t * @return Tripulante encontrado\r\n\t */\r\n\tpublic Optional<Tripulante> obtenerUnTripulante(Long id);\r\n\r\n\t/**\r\n\t * Metodo para hacer una eliminacion de un Tripulante almacenado en la Base de\r\n\t * datos\r\n\t * \r\n\t * @param id de Tripulante a eliminar\r\n\t */\r\n\tpublic void eliminarTripulante(Long id);\r\n\r\n\t/**\r\n\t * Metodo que implementara la eliminacion de los tripulantes almacenados en la\r\n\t * Base de datos, no recibe parametros\r\n\t */\r\n\tpublic void borrarTodosTripulantes();\r\n\r\n\t/**\r\n\t * Metodo para hacer una busqueda de un tripulante por su atributo de tipo\r\n\t * String y nombre documento\r\n\t * \r\n\t * @param documento atributo por el que se buscara\r\n\t * @return El tripulante encontrado\r\n\t * @throws Exception si hay algun error\r\n\t */\r\n\tpublic Tripulante buscarTripulante(String documento) throws Exception;\r\n\r\n}", "public interface ShopService {\n void insertShop(Shop record, String leverLength);\n void insertNewShop(Shop record);\n List<AdminShopVo> adminListShop(String id);\n List<AdminShopVo> adminListNewShop(String id);\n PageResult<AppShopVo> appListShop(ShopParam shopParam,String uid);\n PageResult<Shop> appListNewShop(ShopParam shopParam);\n PageResult<Shop> appListNewShop1(ShopParam shopParam);\n List<User> listUser();\n AppMerchantsVo selectMerchant(String id);\n AppMerchantsVo selectNewMerchant(String id);\n List<Shop> listMerchant(String userid);\n //\n void modifyShopAttribute(String id,Integer type,Integer sign);\n List<MerchantVo> listmerchantvo();\n void updateShopPrice(String shopid,Integer nodelever,String price);\n void updateByPrimaryKeySelective(Shop shop);\n Shop selectShop(String uid,String shopid);\n Shop selectShop(String shopid);\n //void updateNewShop(Shop record);\n Shop selectShopDetail(String id);\n Shop selectShopDetail(String id,String uid);\n\n}", "public interface InmunizacionesDAO {\n\n public void insertInmunizacion(Context context, InmunizacionesBean inmunizacionesBean) ;\n public ArrayList<InmunizacionesBean> getAllInmunizacion(Context context);\n}", "private RepositorioOrdemServicoHBM() {\n\n\t}", "public interface ApiInterface {\n @GET(\"kontak\")\n Call<KontakModel> getKontak();\n\n @FormUrlEncoded\n @POST(\"kontak\")\n Call<KontakModel> postKontak(@Field(\"nama\") String nama,\n @Field(\"nomor\") String nomor);\n @FormUrlEncoded\n @PUT(\"kontak\")\n Call<KontakModel> putKontak(@Field(\"id\") String id,\n @Field(\"nama\") String nama,\n @Field(\"nomor\") String nomor);\n @FormUrlEncoded\n @HTTP(method = \"DELETE\", path = \"kontak\", hasBody = true)\n Call<KontakModel> deleteKontak(@Field(\"id\") String id);\n\n @FormUrlEncoded\n @POST(\"user\")\n Call<UserModel> postLogin(@Field(\"username\") String username,\n @Field(\"password\") String password);\n}", "public interface Api {\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"anslogsave\")\n Call<ResponseBody> anslogsave(@Body RequestBody anslog);\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"robotlogsave\")\n Call<ResponseBody> robotlogsave(@Body RequestBody robotlogsave);\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"robotstatsave\")\n Call<ResponseBody> robotstatsave(@Body RequestBody robotstatsave);\n\n @FormUrlEncoded\n @POST(\"borr\")\n Call<String> borr(@Field(\"title\")String title,\n @Field(\"inflag\")int inflag);\n @FormUrlEncoded\n @POST(\"guide\")\n Call<String> guide(@Field(\"title\")String title);\n @FormUrlEncoded\n @POST(\"\")\n Call<String> baidu();\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"data\")\n Call<ResponseBody> upCewen(@Body RequestBody upCewen);\n\n @GET(\"doc_list?\")\n Call<String> search(@Query(\"search_txt\")String search);\n}", "public interface RegisterAPI {\n\n @FormUrlEncoded\n @POST(\"android/restfull/insert.php\")\n Call<Value> daftar(@Field(\"kode\") String kode,\n @Field(\"nama\") String nama,\n @Field(\"harga\") String harga);\n\n @GET(\"android/restfull/view.php\")\n Call<Value> view();\n\n @FormUrlEncoded\n @POST(\"android/restfull/update.php\")\n Call<Value> ubah(@Field(\"kode\") String kode,\n @Field(\"nama\") String nama,\n @Field(\"harga\") String harga);\n\n\n @FormUrlEncoded\n @POST(\"android/restfull/delete.php\")\n Call<Value> hapus(@Field(\"kode\") String kode);\n\n @FormUrlEncoded\n @POST(\"android/restfull/search.php\")\n Call<Value> search(@Field(\"search\") String search);\n}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void guardar(CategoriaArticuloServicio categoriaArticuloServicio)\r\n/* 19: */ {\r\n/* 20:43 */ this.categoriaArticuloServicioDao.guardar(categoriaArticuloServicio);\r\n/* 21: */ }", "public static void insertarTiempoAplicacion(Context context, int idusu, String duracion) {\n String url = \"http://161.35.14.188/Persuhabit/tiempoaplicacion\";\n RequestQueue queue = Volley.newRequestQueue(context);\n\n// POST parameters\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"idusu\", idusu);\n params.put(\"duracion\", duracion);\n\n\n JSONObject jsonObj = new JSONObject(params);\n\n// Request a json response from the provided URL\n JsonObjectRequest jsonObjRequest = new JsonObjectRequest\n (Request.Method.POST, url, jsonObj, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n\n// Add the request to the RequestQueue.\n queue.add(jsonObjRequest);\n }", "public interface AppointmentDao {\n\n // Создает новую запись и соответствующий ей приём\n void addAppointment(long id);\n\n // Возвращает приём соответствующий записи с первичным ключом id или null\n Appointment getAppointment(long id);\n\n // Возвращает список приёмов соответствующих всем записям в базе данных\n List<Appointment> getAllAppointments();\n\n // Сохраняет состояние приёма в базе данных\n void setAppointment(long id);\n\n // Удаляет запись о приёме из базы данных\n void deleteAppointment(long id);\n}", "public interface PushObjService {\n //获取所有push_obj\n List<PushObj> getAllPushObj();\n\n PageInfo<PushObj> getAllPushObj(int pageSize, int pageNum);\n\n //删除对象绑定\n void deleteQueObj(String platAppId);\n\n //推送对象绑定\n int bindPushObj(String queueId, String[] ObjIds);\n\n List<QueueObjView> getQueueObj();\n\n //删除push_obj\n int deletePushObj(String id);\n\n //修改,新增push_obj\n int savePushObj(PushObj pushObj);\n\n //根据主键查询push_obj\n PushObj selectPushObjByKey(String id);\n\n List<Map<String, String>> getTableName();\n\n PageInfo<Map<String, String>> getTableName(int pageNum, int pageSize);\n\n List<Map<String, String>> selectFiled(String name);\n\n void objectDelete(String id);\n\n String detailObjSave(DetailObj detailObj);\n\n void detailObjInsert(DetailObjColumn detailObjColumn);\n\n List<DetailObjColumn> getDetailObjColumn(String id);\n\n void deleteDetailObjColumn(String id);\n\n DetailObj selectDetailObjByName(String name);\n\n DetailObj getDetailObjById(String id);\n\n List<Map<String, String>> selectResult();\n\n List<Map<String, String>> selectQueue();\n\n}", "public interface ApiService {\n //用户中心首页头像名称显示\n @GET(\"app/ucenter/profile/\")\n Observable<MeInfoBean> loadHeadInfo(@Query(\"uid\") int uid);\n //个人资料修改\n @FormUrlEncoded\n @POST(\"app/ucenter/profileSave/\")\n Observable<RequestStatusBean> changeUserInfo(@FieldMap Map<String, String> map);\n\n //修改用户头像\n @Multipart\n @POST(\"app/ajax/uploadAvatarPic/\")\n Observable<UserHeadBean> changeUserHead(@Part(\"uid\") RequestBody uid, @Part MultipartBody.Part file);\n\n //收货地址列表\n @GET(\"app/ucenter/address\")\n Observable<GoodsListBean> loadGoodsAddress(@Query(\"uid\") int uid);\n\n //收货地址保存\n @FormUrlEncoded\n @POST(\"app/ucenter/addressSave\")\n Observable<RequestStatusBean> savaGoodsAddress(@FieldMap Map<String,String> map);\n\n //修改默认地址\n @GET(\"app/ucenter/addressDefault\")\n Observable<RequestStatusBean> setDefaulsAddress(@QueryMap Map<String, String> param);\n\n //获得收藏列表\n @FormUrlEncoded\n @POST(\"app/ucenter/favoriteList/\")\n Observable<CollectListBean> getCollectList(@FieldMap Map<String, String> param);\n\n //添加收藏\n\n @GET(\"app/ucenter/favoriteAdd\")\n Observable<RequestStatusBean> addCollect(@QueryMap Map<String, String> param);\n\n //添加收藏\n @GET(\"app/goods/workshopFav/\")\n Observable<RequestStatusBean> workshopFav(@QueryMap Map<String, String> param);\n\n //取消收藏\n @GET(\"app/ucenter/favoriteDelete\")\n Observable<RequestStatusBean> cacheCollect(@QueryMap Map<String, String> param);\n\n //我的足迹\n @FormUrlEncoded\n @POST(\"app/ucenter/historyList\")\n Observable<FootpringBean> loadFootprint(@FieldMap Map<String,String> map);\n\n //删除足迹\n @FormUrlEncoded\n @POST(\"app/ucenter/historyDelete\")\n Observable<RequestStatusBean> clearFootPrint(@FieldMap Map<String,String> map);\n\n //购物车\n @GET(\"app/ucenter/shopcartList/\")\n Observable<ShopcartListBean> getShoppCartList(@Query(\"uid\") int id);\n\n //加载单个购物车\n @FormUrlEncoded\n @POST(\"app/ucenter/shopcartShow\")\n Observable<SingleShoppCartBean> loadSingleShpCart(@FieldMap Map<String, String> param);\n\n //修改购物车\n @FormUrlEncoded\n @POST(\"app/ucenter/shopcartEdit\")\n Observable<RequestStatusBean> changeShopCart(@FieldMap Map<String, String> param);\n\n //删除购物车商品\n @GET(\"app/ucenter/shopcartDelete\")\n Observable<RequestStatusBean> deleteShoppCart(@QueryMap Map<String, String> param);\n\n //购物车下单确认\n @FormUrlEncoded\n @POST(\"app/order/confirm_shopcart/\")\n Observable<ShopCartOrderSureBean> shopCartOrderSure(@FieldMap Map<String, String> param);\n\n //获得订单列表\n @FormUrlEncoded\n @POST(\"app/order/orderList\")\n Observable<MyOrderBean> getOrderList(@FieldMap Map<String, String> param);\n\n //查询订单\n @FormUrlEncoded\n @POST(\"app/order/orderSelect\")\n Observable<MyOrderBean> queryOrderList(@FieldMap Map<String,String> map);\n\n //获得订单详情\n @FormUrlEncoded\n @POST(\"app/order/orderDetail\")\n Observable<MyOrderBean> getOrderDetails(@FieldMap Map<String,String> map);\n\n //取消订单\n @FormUrlEncoded\n @POST(\"app/order/orderDelete\")\n Observable<RequestStatusBean> cancelOrder(@FieldMap Map<String,String> map);\n\n //确认收货\n @FormUrlEncoded\n @POST(\"app/order/order_receive/\")\n Observable<RequestStatusBean> sureGoods(@FieldMap Map<String,String> map);\n\n //退款申请\n\n //登录\n @FormUrlEncoded\n @POST(\"app/user/dologin/\")\n Observable<RequestStatusBean> Login(@FieldMap Map<String,String> map);\n\n //注册\n @FormUrlEncoded\n @POST(\"app/user/doreg/\")\n Observable<RequestStatusBean> Register(@FieldMap Map<String,String> map);\n\n // 找回密码\n @POST(\"ios/user/getpassword/\")\n Observable<RequestStatusBean> FindPwd(@QueryMap Map<String,String> map);\n\n // 获取验证码\n @GET(\"app/ajax/checkpost/\")\n Observable<RequestStatusBean> getCode(@QueryMap Map<String,String> map);\n\n // 手机快捷登录获取验证码\n @GET(\"app/ajax/logincheck/\")\n Observable<RequestStatusBean> getPhoneLoginCode(@QueryMap Map<String,String> map);\n\n //手机快捷登录\n @FormUrlEncoded\n @POST(\"app/user/quicklogin/\")\n Observable<LoginBean> phoneLogin(@FieldMap Map<String,String> map);\n\n //修改密码\n @FormUrlEncoded\n @POST(\"app/user/changepassword/\")\n Observable<RequestStatusBean> changePwd(@FieldMap Map<String,String> map);\n\n //手机号绑定\n @GET(\"app/ucenter/mobile_save/\")\n Observable<RequestStatusBean> bindPhone(@QueryMap Map<String,String> map);\n\n //获得绑定的手机号码\n @GET(\"app/ucenter/mobile_binding/\")\n Observable<RequestStatusBean> loadBindPhone(@Query(\"uid\") int uid);\n\n //获得微信登录的数据\n @GET()\n Observable<WechatBean> getWeChatLoginData(@Url String url);\n\n //微信登录\n @FormUrlEncoded\n @POST(\"app/user/wxlogin/\")\n Observable<RequestStatusBean> weChatLogin(@FieldMap Map<String,String> map);\n\n //绑定微信号\n @GET(\"app/user/wxreg/\")\n Observable<RequestStatusBean> bindWeChat(@QueryMap Map<String, String> param);\n\n //微信解除绑定\n @GET(\"app/user/wxunbind/\")\n Observable<RequestStatusBean> unBindWeChat(@Query(\"uid\") int uid);\n\n //微信绑定显示\n @GET(\"app/user/wxshow/\")\n Observable<RequestStatusBean> showBindWeChart(@Query(\"uid\") int uid);\n\n //加载微信用户信息\n @GET()\n Observable<WechatInfoBean> getWeChatInfo(@Url String url);\n\n //我的评论\n @GET(\"app/ucenter/commentList/\")\n Observable<MyCommentBean> loadMyComment(@Query(\"uid\") int uid);\n //发布评论\n @FormUrlEncoded\n @POST(\"app/ucenter/commentSave/\")\n Observable<RequestStatusBean> addComment(@FieldMap Map<String, String> param);\n\n //发布追评\n @FormUrlEncoded\n @POST(\"app/ucenter/commentAddSave/\")\n Observable<RequestStatusBean> addAddComment(@FieldMap Map<String, String> param);\n\n //上传评论图片\n @Multipart\n @POST(\"app/ajax/uploadCommentPic/\")\n Observable<CommentPicBean> addCommentPic(@Part MultipartBody.Part file);\n\n //退款列表\n @GET(\"app/order/refundList/\")\n Observable<RefundBean> loadRefundList(@Query(\"uid\") int uid);\n\n //退款详情\n @GET(\"app/order/refundOrder/\")\n Observable<RefundDetailBean> loadRefundDetail(@QueryMap Map<String, String> param);\n\n //撤销退款\n @GET(\"app/order/refundDel/\")\n Observable<RequestStatusBean> refundDel(@QueryMap Map<String, String> param);\n\n //退款物流信息\n @GET(\"app/order/expressviewrefund/\")\n Observable<ResponseBody> loadRefundExpress(@Query(\"refundno\") String refundno);\n\n //物流信息\n @GET(\"app/order/expressView/\")\n Observable<ResponseBody> loadExpress(@Query(\"orderno\") String orderno);\n\n\n //退款申请\n @FormUrlEncoded\n @POST(\"app/order/refundApply/\")\n Observable<RequestStatusBean> refundApply(@FieldMap Map<String, String> param);\n\n //退款图片上传\n @Multipart\n @POST(\"app/ajax/uploadRefundPic/\")\n Observable<CommentPicBean> uploadRefundPic(@Part MultipartBody.Part file);\n\n //提交退货\n @FormUrlEncoded\n @POST(\"app/order/refundExpress/\")\n Observable<RequestStatusBean> refundGood(@FieldMap Map<String, String> param);\n\n //首页今日专场轮播图\n @GET(\"app/dailyTopSlider/\")\n Observable<WeekTopListBean> getDailyTopSlider();\n\n //首页今日专场列表\n @GET(\"app/dailyList/\")\n Observable<ListBean<DailyBean>> getDailyList();\n\n //首页7日轮播图\n @GET(\"app/weekTop/\")\n Observable<WeekTopListBean> getWeekTop();\n //首页7日爆款列表\n @GET(\"app/weekList/\")\n Observable<WeekListBean> getWeekList(@QueryMap Map<String, String> param);\n\n //首页往期专场\n @GET(\"app/pastList/\")\n Observable<ListBean<DailyBean>> getPastList();\n\n //产品分类\n @GET(\"app/sorted/\")\n Observable<SortedListBean> getSorted();\n\n //专题详情列表\n @GET(\"app/goods/specialGoodsList/\")\n Observable<SpecialDetailBean> getSpecialGoodsList(@QueryMap Map<String, String> param);\n\n //商品详情\n @GET(\"app/goods/goodsDetail/\")\n Observable<GoodsDetailBean> getGoodsDetail(@QueryMap Map<String, String> param);\n //商品详情的同类推荐\n @GET(\"app/recommend/\")\n Observable<SimilarRecommenListBean> getSimilarRecommen(@Query(\"tid\") int tid);\n\n //工作室\n @GET(\"app/goods/workshopList/\")\n Observable<StudioBean> getStudio();\n\n //工作室\n @GET(\"app/goods/workshopGoods/\")\n Observable<StudioShopBean> getStudioShop(@QueryMap Map<String, String> param);\n\n //收藏工作室\n @GET(\"app/goods/workshopFav/\")\n Observable<RequestStatusBean> focusWork(@QueryMap Map<String, String> param);\n\n @FormUrlEncoded\n @POST(\"app/order/confirm\")\n Observable<OrderSureBean> orderSure(@FieldMap Map<String, String> param);\n\n //创建订单\n @FormUrlEncoded\n @POST(\"app/order/create\")\n Observable<RequestStatusBean> createOrder(@FieldMap Map<String, String> param);\n\n //创建购物车订单\n @FormUrlEncoded\n @POST(\"app/order/create_shopcart\")\n Observable<RequestStatusBean> createShopCartOrder(@FieldMap Map<String, String> param);\n\n //查询商品列表\n @GET(\"app/goods/goodsSorted\")\n Observable<SpecialDetailBean> goodsSorted(@QueryMap Map<String, String> param);\n\n //收入明细\n @FormUrlEncoded\n @POST(\"app/user/getFinance\")\n Observable<TuiguangItem1Bean> tuiguangItem1(@FieldMap Map<String, String> param);\n //人脉资源\n @FormUrlEncoded\n @POST(\"app/user/getUserSub\")\n Observable<TuiguangItem2Bean> tuiguangItem2(@FieldMap Map<String, String> param);\n}", "public PujaDAO() {\n con = null;\n st = null;\n rs = null;\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic void inicializaBD() {\n\t\t\n\t\t/*Registros de Orden*/\n\t\tint n1=1;\n\t\tString p1=\"Taco Azteca\", p2=\"Sopa\";\n\t\tjava.util.Date utilDate = new java.util.Date();\n\t\tjava.util.Date utilDate1 = new java.util.Date();\n\t\tutilDate.setMonth(1);\n\t\tutilDate.setYear(119);\n\t\tutilDate.setMinutes(1);\n\t\tutilDate1.setMonth(1);\n\t\tutilDate1.setYear(119);\n\t\tutilDate1.setMinutes(59);\n\t\tlong lnMilisegundos = utilDate.getTime();\n\t\tlong lnMilisegundos1 = utilDate1.getTime()+10;\n\t\tTimestamp fecha1= new Timestamp(lnMilisegundos);\n\t\tTimestamp fecha2 = new Timestamp(lnMilisegundos+9999999);\n\t\tTimestamp fecha3= new Timestamp(lnMilisegundos1);\n\t\tTimestamp fecha4 = new Timestamp(lnMilisegundos1+999999);\n\t\tOrden orden1 = new Orden(n1,p1, fecha1, fecha2, 60, 3);\n\t\tOrden orden2 = new Orden(n1,p2, fecha3, fecha4, 30, 3);\n\t\torden1.setEstado(3);\n\t\torden2.setEstado(3);\n\t\tordenRepository.save(orden1);\n\t\tordenRepository.save(orden2);\n\t\t\n\t\t/*Registros de producto*/\n\t\tProducto producto1 = new Producto();\n\t\tproducto1.setFecha(\"2020-05-10\");\n\t\tproducto1.setNombreProducto(\"Chiles Verdes\");\n\t\tproducto1.setDescripcion(\"Bolsas de 1 kg de Chiles\");\n\t\tproducto1.setCantidad(15);\n\t\tproducto1.setMinimo(20);\n\t\tproductoRepository.save(producto1);\n\t\t\n\t\tProducto producto2 = new Producto();\n\t\tproducto2.setFecha(\"2020-10-05\");\n\t\tproducto2.setNombreProducto(\"Papas\");\n\t\tproducto2.setDescripcion(\"Costal de 32 Kg de papas\");\n\t\tproducto2.setCantidad(58);\n\t\tproducto2.setMinimo(10);\n\t\tproductoRepository.save(producto2);\n\t\t\n\t\tProducto producto3 = new Producto();\n\t\tproducto3.setFecha(\"2020-10-20\");\n\t\tproducto3.setNombreProducto(\"Frijoles\");\n\t\tproducto3.setDescripcion(\"Costales de 13 kg de Frijoles\");\n\t\tproducto3.setCantidad(2);\n\t\tproducto3.setMinimo(20);\n\t\tproductoRepository.save(producto3);\n\t\t\n\t\tProducto producto4 = new Producto();\n\t\tproducto4.setFecha(\"2020-08-16\");\n\t\tproducto4.setNombreProducto(\"Sopa de fideo\");\n\t\tproducto4.setDescripcion(\"Bolsas de 500g de sopa de fideo\");\n\t\tproducto4.setCantidad(8);\n\t\tproducto4.setMinimo(10);\n\t\tproductoRepository.save(producto4);\n\t\t\n\t\t//Registro de recordatorio\n\t\tRecordatorio recordatorio = new Recordatorio();\n\t\trecordatorio.setId(1);\n\t\trecordatorio.setInfo(\"1. A partir de mañana se empezará a ofrecer los \\n\"\n\t\t\t\t+ \"beneficios para los clientes preferenciales\\n\"\n\t\t\t\t+ \"2. Los empleados que no se han registrado para \\n\"\n\t\t\t\t+ \"algo algotienen hasta el 25 de Julio para \\n\"\n\t\t\t\t+ \"registrarse.\");\n\t\trecordatorioRepository.save(recordatorio);\n\t\t\n\t\t//Registro empleados\n\t\tEmpleado empleado1 = new Empleado();\n\t\templeado1.setNombre(\"Paola\");\n\t\templeado1.setApellidos(\"Aguillón\");\n\t\templeado1.setEdad(24);\n\t\templeado1.setSueldo(2120.50);\n\t\templeado1.setOcupacion(\"Mesera\");\n\t\templeadoRepository.save(empleado1);\n\t\t\n\t\tEmpleado empleado2 = new Empleado();\n\t\templeado2.setNombre(\"Jorge\");\n\t\templeado2.setApellidos(\"Luna\");\n\t\templeado2.setEdad(20);\n\t\templeado2.setSueldo(2599.50);\n\t\templeado2.setOcupacion(\"Cocinero\");\n\t\templeadoRepository.save(empleado2);\n\t\t\n\t\tEmpleado empleado3 = new Empleado();\n\t\templeado3.setNombre(\"Mariana\");\n\t\templeado3.setApellidos(\"Mendoza\");\n\t\templeado3.setEdad(32);\n\t\templeado3.setSueldo(1810.80);\n\t\templeado3.setOcupacion(\"Ayudante general\");\n\t\templeadoRepository.save(empleado3);\n\t\t\n\t\tEmpleado empleado4 = new Empleado();\n\t\templeado4.setNombre(\"Diego\");\n\t\templeado4.setApellidos(\"Ayala\");\n\t\templeado4.setEdad(28);\n\t\templeado4.setSueldo(3560.60);\n\t\templeado4.setOcupacion(\"Chef\");\n\t\templeadoRepository.save(empleado4);\n\t\t\n\t\tCliente cliente1 = new Cliente();\n\t\tcliente1.setNombre(\"Mario\");\n\t\tcliente1.setCorreo(\"[email protected]\");\n\t\tcliente1.setPromocion(\"Sopa 2x1\");\n\t\tclienteRepository.save(cliente1);\n\n\t\t//Registro Ventas de menú\n\t\tVentasMenu dia1 = new VentasMenu();\n\t\tdia1.setFecha(LocalDate.of(2021,02,01));\n\t\tdia1.setMenu(\"Tacos,Sopa de papa, Agua de limón\");\n\t\tdia1.setVentas(20);\n\t\tventasMenuRepository.save(dia1);\n\t\t\n\t\tVentasMenu dia2 = new VentasMenu();\n\t\tdia2.setFecha(LocalDate.of(2021,02,02));\n\t\tdia2.setMenu(\"Tortas de papa,Sopa de verdura, Agua de piña\");\n\t\tdia2.setVentas(22);\n\t\tventasMenuRepository.save(dia2);\n\t\t\n\t\tVentasMenu dia21 = new VentasMenu();\n\t\tdia21.setFecha(LocalDate.of(2021,02,03));\n\t\tdia21.setMenu(\"Tortas de papa,Sopa de tortilla, Agua de mango\");\n\t\tdia21.setVentas(25);\n\t\tventasMenuRepository.save(dia21);\n\t\t\n\t\tVentasMenu dia211 = new VentasMenu();\n\t\tdia211.setFecha(LocalDate.of(2021,02,04));\n\t\tdia211.setMenu(\"Papas a la francesa,sopa de arroz, Agua de jamaica \");\n\t\tdia211.setVentas(30);\n\t\tventasMenuRepository.save(dia211);\n\t\t\n\t\t\n\t\t\n\t\t//Registro de menú\n\t\tMenu menu = new Menu();\n\t\tmenu.setId(1);\n\t\tmenu.setMen(\"Sopa \\n\"\n\t\t\t\t+ \"Consome\\n\"\n\t\t\t\t+ \"Arroz\\n\"\n\t\t\t\t+ \"Pasta\\n\"\n\t\t\t\t+ \"Chile relleno \\n\"\n\t\t\t\t+ \"Taco Azteca \\n\"\n\t\t\t\t+ \"Filete de Pescado empanizado\"\n\t\t + \"Enchiladas\\n\"\n\t\t + \"Gelatina\\n\"\n\t\t + \"Flan\\n\");\n\t\tmenuRepository.save(menu);\n\t\t\n\t\t//Registro de algunos proveedores\n\t\t\n\t\tProveedor proveedor1 = new Proveedor();\n\t\tproveedor1.setNomProveedor(\"Aaron\");\n\t\tproveedor1.setMarca(\"Alpura\");\n\t\tproveedor1.setTipo(\"Embutidos y lacteos\");\n\t\tproveedor1.setCosto(4600);\n\t\tproveedorRepository.save(proveedor1);\n\t\t\n\t\tProveedor proveedor2 = new Proveedor();\n\t\tproveedor2.setNomProveedor(\"Angelica\");\n\t\tproveedor2.setMarca(\"Coca-Cola\");\n\t\tproveedor2.setTipo(\"Bebidas\");\n\t\tproveedor2.setCosto(1810.11);\n\t\tproveedorRepository.save(proveedor2);\n\t\t\n\t\tProveedor proveedor3 = new Proveedor();\n\t\tproveedor3.setNomProveedor(\"Ernesto\");\n\t\tproveedor3.setMarca(\"Patito\");\n\t\tproveedor3.setTipo(\"Productos de limpieza\");\n\t\tproveedor3.setCosto(2455.80);\n\t\tproveedorRepository.save(proveedor3);\n\t\t\n\t\t// Registro Sugerencias \n\t\t\n\t\t \n\t\tSugerencia sugerencia= new Sugerencia();\n\t\tsugerencia.setIdSugeregncia(1);\n\t\tsugerencia.setNombre(\"Pedro\");\n\t\tsugerencia.setSugerencia(\"Pollo Frito\");\n\t\tsugerenciaRepository.save(sugerencia);\n\t\t\n\t\tSugerencia sugerencia1= new Sugerencia();\n\t\tsugerencia1.setIdSugeregncia(2);\n\t\tsugerencia1.setNombre(\"Miriam\");\n\t\tsugerencia1.setSugerencia(\"Sopes\");\n\t\tsugerenciaRepository.save(sugerencia1);\n\t\t\n\t\tSugerencia sugerencia2= new Sugerencia();\n\t\tsugerencia2.setIdSugeregncia(3);\n\t\tsugerencia2.setNombre(\"Rebeca\");\n\t\tsugerencia2.setSugerencia(\"Tamales Oaxaqueños\");\n\t\tsugerenciaRepository.save(sugerencia2);\n\t\t\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 }", "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 }", "private void criarConexao(){\n try{\n testeOpenHelper = new TesteOpenHelper(this);\n conexao = testeOpenHelper.getWritableDatabase();\n Toast.makeText(this,\"Conexao executada com sucesso\", Toast.LENGTH_SHORT).show();\n produtoRepositorio = new ProdutoRepositorio(conexao);\n }catch(SQLException e){\n AlertDialog.Builder dlg = new AlertDialog.Builder(this);\n dlg.setTitle(\"Erro\");\n dlg.setMessage(e.getMessage());\n dlg.setNeutralButton(\"Ok\", null);\n dlg.show();\n Toast.makeText(this,\"ERRO na conexao\", Toast.LENGTH_LONG).show();\n }\n }", "public BOEmpresa() {\r\n\t\tdaoEmpresa = new DAOEmpresaJPA();\r\n\t}", "Lancamento persistir(Lancamento lancamento);", "public void saveORUpdateObra(Obra obra) throws Exception;", "private DatosDeSesion() throws ExcepcionArchivoDePropiedadesNoEncontrado {\r\n this.poolDeConexiones = new PoolDeConexiones();\r\n }", "private ConexionBD() {\n\t\testablecerConexion();\n\t}", "public interface CuentaService {\n Cuenta findById(Integer id);\n\n Cuenta findByUsuario(String usuario);\n\n Cuenta saveCuenta(Cuenta cuenta);\n\n void updateCuenta(Cuenta cuenta);\n\n void deleteCuentaById(Integer idCuenta);\n\n public List<Cuenta> findAllCuenta();\n}", "public interface modeloDAO {\n void insert(Object obj);\n void update(Object obj);\n void delete(Object obj);\n ArrayList<Object> get();\n}", "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 }", "@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 interface APIService {\n\n @POST(\"login.php\")\n Call<ResponseLogin> iniciosesion(@Body Cuenta cuenta);\n\n @POST(\"registrarEmpresa.php\")\n Call<PostResponse> registerEmpresa(@Body Cuenta cuenta);\n\n @GET(\"mostrarProyecto.php\")\n Call<ResponseProyecto> getProyectos(@Query(\"id_empresa\") String id);\n\n @GET(\"InfoEmpresa.php\")\n Call<ResponseEmpresa> getEmpresa(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarProyecto.php\")\n Call<ResponseRegistrarProyecto> registerProyecto(@Body Proyecto proyecto);\n\n @POST(\"registrarDocumento.php\")\n Call<ResponseEntregable> registerEntregable(@Body EntregableP entregableP);\n\n @GET(\"mostrarDoc.php\")\n Call<ResponseMostrarEntregable> getEntregables(@Query(\"id_proyecto\") int id);\n\n @POST(\"registrarPersonal.php\")\n Call<PostResponse> registerPersonal(@Body Personal personal);\n\n @GET(\"mostrarPersonal.php\")\n Call<ResponsePersonal> getPersonal(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarHistorial.php\")\n Call<PostResponse> registerHistorial(@Body Historial historial);\n\n @GET(\"mostrarHistorial.php\")\n Call<ResponseHistorial> getHistorial(@Query(\"id_proyecto\") int id);\n\n @GET(\"mostrarPerLibres.php\")\n Call<ResponsePersonalFree> getPersonalFree(@Query(\"id_empresa\") String id);\n\n @POST(\"registrarEquipoP.php\")\n Call<PostResponse> registerEquipo(@Body RegisterEquipo equipo);\n\n @GET(\"mostrarEquipoP.php\")\n Call<ResponseMostrarEquipo> getEquipo(@Query(\"id_proyecto\") int id);\n\n @GET(\"{entregable}\")\n @Streaming\n Call<ResponseBody> downloadFile(@Path(\"entregable\")String entregable);\n\n @POST(\"asignarJefe.php\")\n Call<PostResponse> asignarJefe(@Body Jefe jefe);\n\n @POST(\"proyectoEndFake.php\")\n Call<PostResponse> finishProyecto(@Body Proyecto proyecto);\n\n @POST(\"ModidTipo.php\")\n Call<PostResponse> updateTipo(@Body Jefe jefe);\n\n @GET(\"reporteJson.php\")\n Call<ResponseReportes> getReportes(@Query(\"idEmpresa\") String id);\n\n @POST(\"LoginEmJefe.php\")\n Call<ResponseUser> signIn(@Body Cuenta cuenta);\n\n @GET(\"ProyectoMostrarID.php\")\n Call<ResponseProyecto> getProject(@Query(\"idProyecto\") String id);\n\n\n}", "private AppRepo(Context context) {\n mDb = AppDB.getInstance(context);\n mFoods = getAllFoods();\n mPortions = getAllPortions();\n mMeals = getAllMeals();\n mConsumed = getAllConsumed();\n }", "private void saveData() {\n // Actualiza la información\n client.setName(nameTextField.getText());\n client.setLastName(lastNameTextField.getText());\n client.setDni(dniTextField.getText());\n client.setAddress(addressTextField.getText());\n client.setTelephone(telephoneTextField.getText());\n\n // Guarda la información\n DBManager.getInstance().saveData(client);\n }", "private void criarConexao(){\n\n try {\n\n clientOpenHelper = new ClientOpenHelper(this);\n\n conexao = clientOpenHelper.getWritableDatabase();\n\n Snackbar.make(layoutMain, R.string.Aviso, Snackbar.LENGTH_SHORT)\n .setAction(R.string.ok,null)\n .show();\n clienteRepositorio = new ClienteRepositorio(conexao);\n }catch (SQLException ex){\n AlertDialog.Builder dlg = new AlertDialog.Builder(this);\n dlg.setTitle(\"Error\");\n dlg.setMessage(ex.getMessage());\n dlg.setNeutralButton(\"OK\",null);\n dlg.show();\n }\n }", "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "public interface PrestamoDAO {\n ArrayList<Prestamo> listarPrestamos(Prestamo prestamo) throws SQLException;\n int insertarPrestamo(Prestamo prestamo);\n}", "public String weatherDataFromApi(WeatherData weatherData) {\n //GETTING DATA FROM API;\n ResponseEntity<WeatherInfoResponse> responseEntity = restTemplate.getForEntity(\"http://api.openweathermap.org/data/2.5/weather?q=\" + weatherData.getCityName() + \"&appid=a8775018b559279894847e4fe88bcd30\" + \"&units=metric\", WeatherInfoResponse.class);\n if (true) {\n //FROM WEATHERINFORESPONSE YOU CAN MODIFY WHAT YOU WANT TO GET FROM JASON WHICH COMES FROM API RESPONSE;\n WeatherInfoResponse body = responseEntity.getBody();\n String temp = body.getMain().getTemp();\n String deg = body.getWind().getDeg();\n String speed = body.getWind().getSpeed();\n //NEW OBJECT\n Weather weather = new Weather();\n weather.setCityName(weatherData.getCityName());\n weather.setTemperature(temp);\n weather.setWindSpeed(speed);\n weather.setWindDeg(deg);\n weather.setDate(LocalDateTime.now());\n weatherRepo.save(weather);\n return \"Hello there! Temperature in \" + weatherData.getCityName() + \" is \" + temp + \"C and wind parameters are = \" + speed + \"m/s and \" + deg + \" degrees\" ;\n } else {\n throw new HttpClientErrorException(HttpStatus.NOT_FOUND);\n }\n }", "public void recupera() {\n Cliente clienteActual;\n clienteActual=clienteDAO.buscaId(c.getId());\n if (clienteActual!=null) {\n c=clienteActual;\n } else {\n c=new Cliente();\n }\n }", "private void init(){\n if(solicitudEnviadaDAO == null){\n solicitudEnviadaDAO = new SolicitudEnviadaDAO(getApplicationContext());\n }\n if(solicitudRecibidaDAO == null){\n solicitudRecibidaDAO = new SolicitudRecibidaDAO(getApplicationContext());\n }\n if(solicitudContestadaDAO == null){\n solicitudContestadaDAO = new SolicitudContestadaDAO(getApplicationContext());\n }\n if(preguntaEnviadaDAO == null){\n preguntaEnviadaDAO = new PreguntaEnviadaDAO(getApplicationContext());\n }\n if(preguntaRecibidaDAO == null){\n preguntaRecibidaDAO = new PreguntaRecibidaDAO(getApplicationContext());\n }\n if(preguntaContestadaDAO == null){\n preguntaContestadaDAO = new PreguntaContestadaDAO(getApplicationContext());\n }\n if(puntuacionRecibidaDAO == null){\n puntuacionRecibidaDAO = new PuntuacionRecibidaDAO(getApplicationContext());\n }\n }", "protected void agregarUbicacion(){\n\n\n\n }", "private void saveObject(Object object) {\n Connection connection = ConnectionPoll.getConnection();\n CRUDService crudService = new CRUDService(connection, object.getClass());\n try {\n Field[] fields = object.getClass().getDeclaredFields();\n Field id = null;\n for (Field f : fields) {\n if (f.isAnnotationPresent(Id.class)) {\n id = f;\n }\n }\n id.setAccessible(true);\n\n if (Integer.parseInt(id.get(object).toString()) != 0 && !id.get(object).equals(null)) {\n crudService.update((SimpleORMInterface) object);\n } else {\n crudService.insert((SimpleORMInterface) object);\n }\n id.setAccessible(false);\n ConnectionPoll.releaseConnection(connection);\n\n } catch (IllegalAccessException | NoSuchFieldException e) {\n e.printStackTrace();\n }\n }", "public interface IFakturyDao {\n public Firma getFirma(long id);\n public void saveFirma(Firma firma);\n public Stawka_vat getStawka_vat(long id);\n public void saveStawka_vat(Stawka_vat stawka_vat);\n public Faktura getFaktura(long id);\n public void saveFaktura(Faktura faktura);\n public Pozycja getPozycja(long id);\n public void savePozycja(Pozycja pozycja);\n public Wplata getWplata(long id);\n public void saveWplata(Wplata wplata);\n}", "@Dao\npublic interface BookDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertData(BookModel bookmodel);\n\n @Query(\"select * from booktable\")\n BookModel[] selectAllData();\n\n //fungsi update book\n @Update\n int updateBook(BookModel bookModel);\n\n //fungsi delete\n @Delete\n int deleteBook(BookModel bookModel);\n\n //fungsi get detailbyID\n @Query(\"select * from booktable WHERE bookId = :id Limit 1\")\n BookModel detailbyId(int id);\n}", "private void doNovo() {\n contato = new ContatoDTO();\n popularTela();\n }", "public void guardarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tsetUpperCase();\r\n\t\t\tif (validarForm()) {\r\n\t\t\t\t// Cargamos los componentes //\r\n\r\n\t\t\t\tMap datos = new HashMap();\r\n\r\n\t\t\t\tHis_atencion_embarazada his_atencion_embarazada = new His_atencion_embarazada();\r\n\t\t\t\this_atencion_embarazada.setCodigo_empresa(empresa\r\n\t\t\t\t\t\t.getCodigo_empresa());\r\n\t\t\t\this_atencion_embarazada.setCodigo_sucursal(sucursal\r\n\t\t\t\t\t\t.getCodigo_sucursal());\r\n\t\t\t\this_atencion_embarazada.setCodigo_historia(tbxCodigo_historia\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setFecha_inicial(new Timestamp(\r\n\t\t\t\t\t\tdtbxFecha_inicial.getValue().getTime()));\r\n\t\t\t\this_atencion_embarazada.setCodigo_eps(tbxCodigo_eps.getValue());\r\n\t\t\t\this_atencion_embarazada.setCodigo_dpto(lbxCodigo_dpto\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCodigo_municipio(lbxCodigo_municipio\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setIdentificacion(tbxIdentificacion\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setDireccion(tbxMotivo.getValue());\r\n\t\t\t\this_atencion_embarazada.setTelefono(tbxTelefono.getValue());\r\n\t\t\t\this_atencion_embarazada.setSeleccion(rdbSeleccion\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setGestaciones(lbxGestaciones\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setPartos(lbxPartos.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCesarias(lbxCesarias\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setAbortos(lbxAbortos.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setEspontaneo(lbxEspontaneo\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setProvocado(lbxProvocado\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setNacido_muerto(lbxNacido_muerto\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setPrematuro(lbxPrematuro\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setHijos_menos(lbxHijos_menos\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setHijos_mayor(lbxHijos_mayor\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setMalformado(lbxMalformado\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setHipertension(lbxHipertension\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setFecha_ultimo_parto(new Timestamp(\r\n\t\t\t\t\t\tdtbxFecha_ultimo_parto.getValue().getTime()));\r\n\t\t\t\this_atencion_embarazada.setCirugia(lbxCirugia.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setOtro_antecedente(tbxOtro_antecedente\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setHemoclasificacion(lbxHemoclasificacion\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setRh(lbxRh.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setPeso(tbxPeso.getValue());\r\n\t\t\t\this_atencion_embarazada.setTalla(tbxTalla.getValue());\r\n\t\t\t\this_atencion_embarazada.setImc(tbxImc.getValue());\r\n\t\t\t\this_atencion_embarazada.setTa(tbxTa.getValue());\r\n\t\t\t\this_atencion_embarazada.setFc(tbxFc.getValue());\r\n\t\t\t\this_atencion_embarazada.setFr(tbxFr.getValue());\r\n\t\t\t\this_atencion_embarazada.setTemperatura(tbxTemperatura\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setCroomb(tbxCroomb.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setFecha_ultima_mestruacion(new Timestamp(\r\n\t\t\t\t\t\t\t\tdtbxFecha_ultima_mestruacion.getValue()\r\n\t\t\t\t\t\t\t\t\t\t.getTime()));\r\n\t\t\t\this_atencion_embarazada.setFecha_probable_parto(new Timestamp(\r\n\t\t\t\t\t\tdtbxFecha_probable_parto.getValue().getTime()));\r\n\t\t\t\this_atencion_embarazada.setEdad_gestacional(tbxEdad_gestacional\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setControl(lbxControl.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setNum_control(tbxNum_control\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setFetales(lbxFetales.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setFiebre(lbxFiebre.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setLiquido(lbxLiquido.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setFlujo(lbxFlujo.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setEnfermedad(lbxEnfermedad\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCual_enfermedad(tbxCual_enfermedad\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setCigarrillo(lbxCigarrillo\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setAlcohol(lbxAlcohol.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCual_alcohol(tbxCual_alcohol\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setDroga(lbxDroga.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCual_droga(tbxCual_droga.getValue());\r\n\t\t\t\this_atencion_embarazada.setViolencia(lbxViolencia\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCual_violencia(tbxCual_violencia\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setToxoide(lbxToxoide.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setDosis(lbxDosis.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setObservaciones_gestion(tbxObservaciones_gestion\r\n\t\t\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setAltura_uterina(tbxAltura_uterina\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setCorelacion(chbCorelacion.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setEmbarazo_multiple(chbEmbarazo_multiple.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setTrasmision_sexual(chbTrasmision_sexual.isChecked());\r\n\t\t\t\this_atencion_embarazada.setAnomalia(rdbAnomalia\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setEdema_gestion(rdbEdema_gestion\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setPalidez(rdbPalidez.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setConvulciones(rdbConvulciones\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setConciencia(rdbConciencia\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCavidad_bucal(rdbCavidad_bucal\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setHto(tbxHto.getValue());\r\n\t\t\t\this_atencion_embarazada.setHb(tbxHb.getValue());\r\n\t\t\t\this_atencion_embarazada.setToxoplasma(tbxToxoplasma.getValue());\r\n\t\t\t\this_atencion_embarazada.setVdrl1(tbxVdrl1.getValue());\r\n\t\t\t\this_atencion_embarazada.setVdrl2(tbxVdrl2.getValue());\r\n\t\t\t\this_atencion_embarazada.setVih1(tbxVih1.getValue());\r\n\t\t\t\this_atencion_embarazada.setVih2(tbxVih2.getValue());\r\n\t\t\t\this_atencion_embarazada.setHepb(tbxHepb.getValue());\r\n\t\t\t\this_atencion_embarazada.setOtro(tbxOtro.getValue());\r\n\t\t\t\this_atencion_embarazada.setEcografia(tbxEcografia.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setClasificacion_gestion(rdbClasificacion_gestion\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setContracciones(lbxContracciones\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setNum_contracciones(lbxNum_contracciones\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setHemorragia(lbxHemorragia\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setLiquido_vaginal(lbxLiquido_vaginal\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setColor_liquido(tbxColor_liquido\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setDolor_cabeza(lbxDolor_cabeza\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setVision(lbxVision.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setConvulcion(lbxConvulcion\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setObservaciones_parto(tbxObservaciones_parto\r\n\t\t\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setContracciones_min(tbxContracciones_min.getValue());\r\n\t\t\t\this_atencion_embarazada.setFc_fera(tbxFc_fera.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setDilatacion_cervical(tbxDilatacion_cervical\r\n\t\t\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setPreentacion(rdbPreentacion\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setOtra_presentacion(tbxOtra_presentacion.getValue());\r\n\t\t\t\this_atencion_embarazada.setEdema(rdbEdema.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setHemorragia_vaginal(lbxHemorragia_vaginal\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setHto_parto(tbxHto_parto.getValue());\r\n\t\t\t\this_atencion_embarazada.setHb_parto(tbxHb_parto.getValue());\r\n\t\t\t\this_atencion_embarazada.setHepb_parto(tbxHepb_parto.getValue());\r\n\t\t\t\this_atencion_embarazada.setVdrl_parto(tbxVdrl_parto.getValue());\r\n\t\t\t\this_atencion_embarazada.setVih_parto(tbxVih_parto.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setClasificacion_parto(rdbClasificacion_parto\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setFecha_nac(new Timestamp(\r\n\t\t\t\t\t\tdtbxFecha_nac.getValue().getTime()));\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setIdentificacion_nac(tbxIdentificacion_nac.getValue());\r\n\t\t\t\this_atencion_embarazada.setSexo(lbxSexo.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setPeso_nac(tbxPeso_nac.getValue());\r\n\t\t\t\this_atencion_embarazada.setTalla_nac(tbxTalla_nac.getValue());\r\n\t\t\t\this_atencion_embarazada.setPc_nac(tbxPc_nac.getValue());\r\n\t\t\t\this_atencion_embarazada.setFc_nac(tbxFc_nac.getValue());\r\n\t\t\t\this_atencion_embarazada.setTemper_nac(tbxTemper_nac.getValue());\r\n\t\t\t\this_atencion_embarazada.setEdad(tbxEdad.getValue());\r\n\t\t\t\this_atencion_embarazada.setAdgar1(tbxAdgar1.getValue());\r\n\t\t\t\this_atencion_embarazada.setAdgar5(tbxAdgar5.getValue());\r\n\t\t\t\this_atencion_embarazada.setAdgar10(tbxAdgar10.getValue());\r\n\t\t\t\this_atencion_embarazada.setAdgar20(tbxAdgar20.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setObservaciones_nac(tbxObservaciones_nac.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setClasificacion_nac(rdbClasificacion_nac\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setReani_prematuro(chbReani_prematuro\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setReani_meconio(chbReani_meconio\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setReani_respiracion(chbReani_respiracion.isChecked());\r\n\t\t\t\this_atencion_embarazada.setReani_hipotonico(chbReani_hipotonico\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setReani_apnea(chbReani_apnea\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setReani_jadeo(chbReani_jadeo\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setReani_deficultosa(chbReani_deficultosa.isChecked());\r\n\t\t\t\this_atencion_embarazada.setReani_gianosis(chbReani_gianosis\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setReani_bradicardia(chbReani_bradicardia.isChecked());\r\n\t\t\t\this_atencion_embarazada.setReani_hipoxemia(chbReani_hipoxemia\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setReani_estimulacion(chbReani_estimulacion\r\n\t\t\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setReani_ventilacion(chbReani_ventilacion.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setReani_comprensiones(chbReani_comprensiones\r\n\t\t\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setReani_intubacion(chbReani_intubacion\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setMedicina(tbxMedicina.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setClasificacion_reani(rdbClasificacion_reani\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setRuptura(lbxRuptura.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setTiempo_ruptura(lbxTiempo_ruptura\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setLiquido_neo(tbxLiquido_neo\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setFiebre_neo(lbxFiebre_neo\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setTiempo_neo(lbxTiempo_neo\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCoricamniotis(tbxCoricamniotis\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setIntrauterina(rdbIntrauterina\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setMadre20(lbxMadre20.getSelectedItem()\r\n\t\t\t\t\t\t.getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setAlcohol_neo(chbAlcohol_neo\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setDrogas_neo(chbDrogas_neo.isChecked());\r\n\t\t\t\this_atencion_embarazada.setCigarrillo_neo(chbCigarrillo_neo\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setRespiracion_neo(rdbRespiracion_neo\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setLlanto_neo(rdbLlanto_neo\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setVetalidad_neo(rdbVetalidad_neo\r\n\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setTaquicardia_neo(chbTaquicardia_neo\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setBradicardia_neo(chbBradicardia_neo\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setPalidez_neo(chbPalidez_neo\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada.setCianosis_neo(chbCianosis_neo\r\n\t\t\t\t\t\t.isChecked());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setAnomalias_congenitas(lbxAnomalias_congenitas\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setCual_anomalias(tbxCual_anomalias\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setLesiones(tbxLesiones.getValue());\r\n\t\t\t\this_atencion_embarazada.setOtras_alter(tbxOtras_alter\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setClasificacion_neo(rdbClasificacion_neo\r\n\t\t\t\t\t\t\t\t.getSelectedItem().getValue().toString());\r\n\t\t\t\this_atencion_embarazada.setAlarma(tbxAlarma.getValue());\r\n\t\t\t\this_atencion_embarazada.setConsulta_control(tbxConsulta_control\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setMedidas_preventiva(tbxMedidas_preventiva.getValue());\r\n\t\t\t\this_atencion_embarazada.setRecomendaciones(tbxRecomendaciones\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada.setDiagnostico(tbxDiagnostico\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setCodigo_diagnostico(tbxCodigo_diagnostico.getValue());\r\n\t\t\t\this_atencion_embarazada.setTratamiento(tbxTratamiento\r\n\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setRecomendacion_alimentacion(tbxRecomendacion_alimentacion\r\n\t\t\t\t\t\t\t\t.getValue());\r\n\t\t\t\this_atencion_embarazada\r\n\t\t\t\t\t\t.setEvolucion_servicio(tbxEvolucion_servicio.getValue());\r\n\r\n\t\t\t\tdatos.put(\"codigo_historia\", his_atencion_embarazada);\r\n\t\t\t\tdatos.put(\"accion\", tbxAccion.getText());\r\n\r\n\t\t\t\this_atencion_embarazada = getServiceLocator()\r\n\t\t\t\t\t\t.getHis_atencion_embarazadaService().guardar(datos);\r\n\r\n\t\t\t\tif (tbxAccion.getText().equalsIgnoreCase(\"registrar\")) {\r\n\t\t\t\t\taccionForm(true, \"modificar\");\r\n\t\t\t\t}\r\n\t\t\t\t/*\r\n\t\t\t\t * else{ int result =\r\n\t\t\t\t * getServiceLocator().getHis_atencion_embarazadaService\r\n\t\t\t\t * ().actualizar(his_atencion_embarazada); if(result==0){ throw\r\n\t\t\t\t * new Exception(\r\n\t\t\t\t * \"Lo sentimos pero los datos a modificar no se encuentran en base de datos\"\r\n\t\t\t\t * ); } }\r\n\t\t\t\t */\r\n\r\n//\t\t\t\tcodigo_historia = his_atencion_embarazada.getCodigo_historia();\r\n\r\n\t\t\t\tMessagebox.show(\"Los datos se guardaron satisfactoriamente\",\r\n\t\t\t\t\t\t\"Informacion ..\", Messagebox.OK,\r\n\t\t\t\t\t\tMessagebox.INFORMATION);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tMessagebox.show(e.getMessage(), \"Mensaje de Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\r\n\t}", "public interface CodDataService {\n\n /**\n * 获取配置\n * @return 全部配置\n */\n Map<String, String> getConfig();\n\n /**\n * 获取数据\n */\n String getDataValue(String key);\n\n /**\n *\n * @param key\n * @return\n */\n CodDataConfigDto getData(String key);\n\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n */\n void setData(String key, String value);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n */\n void setData(String key, String value, String name);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n * @param sort 序号\n */\n void setData(String key, String value, String name, String sort);\n\n /**\n * 设置数据\n * @param key key\n * @param value value\n * @param name 配置名称\n * @param sort 序号\n * @param desc 描述\n */\n void setData(String key, String value, String name, String desc, String sort);\n\n /**\n * 删除\n * @param key key\n */\n void delete(String key);\n\n}", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "public interface ZqhDiaryService {\n int insert(ZqhDiary zqhDiary);\n\n int save(ZqhDiary zqhDiary);\n\n List<ZqhDiary> selectAll();\n\n String getToken(String appId);\n}", "public User save(User usuario);", "public interface BaacService {\n\n /**\n * Save a baac.\n *\n * @param baacDTO the entity to save\n * @return the persisted entity\n */\n BaacDTO save(BaacDTO baacDTO);\n\n\n\n List<BaacDTO> findAll();\n\n /**\n * Get all the baacs.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<BaacDTO> findAll(Pageable pageable);\n\n /**\n * Get the \"id\" baac.\n *\n * @param id the id of the entity\n * @return the entity\n */\n BaacDTO findOne(Long id);\n\n /**\n * Delete the \"id\" baac.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n}", "public interface ApiInterface {\n\n //\n //UDINUS\n @FormUrlEncoded\n @POST(\"loginudinus.php\")\n Call<ResponseApiModel> loginudinus(@Field(\"username\") String username,\n @Field(\"password\") String password);\n\n @POST(\"get_udinus.php\")\n Call<List<Mahasiswa>> getUdinus();\n\n //UNISBANK\n @FormUrlEncoded\n @POST(\"loginunisbank.php\")\n Call<ResponseApiModel> loginunisbank(@Field(\"username\") String username,\n @Field(\"password\") String password);\n\n @POST(\"get_unisbank.php\")\n Call<List<Mahasiswa>> getUnisbank();\n\n //UPGRIS\n @FormUrlEncoded\n @POST(\"loginupgris.php\")\n Call<ResponseApiModel> loginupgris(@Field(\"username\") String username,\n @Field(\"password\") String password);\n\n @POST(\"get_upgris.php\")\n Call<List<Mahasiswa>> getUpgris();\n\n\n //UNIKA\n @FormUrlEncoded\n @POST(\"loginunika.php\")\n Call<ResponseApiModel> loginunika(@Field(\"username\") String username,\n @Field(\"password\") String password);\n\n @POST(\"get_unika.php\")\n Call<List<Mahasiswa>> getUnika();\n\n //Usm\n @FormUrlEncoded\n @POST(\"loginusm.php\")\n Call<ResponseApiModel> loginusm(@Field(\"username\") String username,\n @Field(\"password\") String password);\n\n @POST(\"get_usm.php\")\n Call<List<Mahasiswa>> getUsm();\n\n\n //Unimus\n @FormUrlEncoded\n @POST(\"loginunimus.php\")\n Call<ResponseApiModel> loginunimus(@Field(\"username\") String username,\n @Field(\"password\") String password);\n\n @POST(\"get_admin.php\")\n Call<List<Mahasiswa>> getAdmin();\n\n @POST(\"get_adminipk.php\")\n Call<List<Mahasiswa>> getAdminipk();\n\n @POST(\"get_adminprestasi.php\")\n Call<List<Mahasiswa>> getAdminprestasi();\n\n @POST(\"get_adminmhsmundur.php\")\n Call<List<Mahasiswa>> getAdminmhsmundur();\n\n @POST(\"get_adminmhstidakaktif.php\")\n Call<List<Mahasiswa>> getAdminmhstidakaktif();\n\n @POST(\"get_admindana.php\")\n Call<List<Mahasiswa>> getAdmindana();\n\n //Unimus\n @FormUrlEncoded\n @POST(\"loginadmin.php\")\n Call<ResponseApiModel> loginadmin(@Field(\"username\") String username,\n @Field(\"password\") String password);\n\n @POST(\"get_unimus.php\")\n Call<List<Mahasiswa>> getUnimus();\n\n\n //Unwahas\n @FormUrlEncoded\n @POST(\"loginunwahas.php\")\n Call<ResponseApiModel> loginunwahas(@Field(\"username\") String username,\n @Field(\"password\") String password);\n\n @POST(\"get_unwahas.php\")\n Call<List<Mahasiswa>> getUnwahas();\n\n //Ivet\n @FormUrlEncoded\n @POST(\"loginivet.php\")\n Call<ResponseApiModel> loginivet(@Field(\"username\") String username,\n @Field(\"password\") String password);\n\n @POST(\"get_ivet.php\")\n Call<List<Mahasiswa>> getIvet();\n\n //Unissula\n @FormUrlEncoded\n @POST(\"loginunissula.php\")\n Call<ResponseApiModel> loginunissula(@Field(\"username\") String username,\n @Field(\"password\") String password);\n\n @POST(\"get_unissula.php\")\n Call<List<Mahasiswa>> getUnissula();\n\n //Untag\n @FormUrlEncoded\n @POST(\"loginuntag.php\")\n Call<ResponseApiModel> loginuntag(@Field(\"username\") String username,\n @Field(\"password\") String password);\n\n @POST(\"get_untag.php\")\n Call<List<Mahasiswa>> getUntag();\n\n\n @FormUrlEncoded\n @POST(\"addmhs.php\")\n Call<Mahasiswa> addmhs(\n @Field(\"key\") String key,\n @Field(\"name\") String name,\n @Field(\"nim\") String nim,\n @Field(\"angkatan\") String angkatan,\n @Field(\"jenjang\") String jenjang,\n @Field(\"fakultas\") String fakultas,\n @Field(\"tempatlahir\") String tempatlahir,\n @Field(\"totalipk\") String totalipk,\n @Field(\"semestertempuh\") String semestertempuh,\n @Field(\"gender\") int gender,\n @Field(\"statusbidikmisi\") int statusbidikmisi,\n @Field(\"tahunmundur\") String tahunmundur,\n @Field(\"alasanmundur\") String alasanmundur,\n @Field(\"statusdana\") int statusdana,\n @Field(\"jumlahdana\") String jumlahdana,\n @Field(\"universitas\") int universitas,\n @Field(\"semester1\") String semester1,\n @Field(\"semester2\") String semester2,\n @Field(\"semester3\") String semester3,\n @Field(\"semester4\") String semester4,\n @Field(\"semester5\") String semester5,\n @Field(\"semester6\") String semester6,\n @Field(\"semester7\") String semester7,\n @Field(\"semester8\") String semester8,\n @Field(\"jumlahprestasi\") String jumlahprestasi,\n @Field(\"namaprestasi\") String namaprestasi,\n @Field(\"juaraprestasi\") String juaraprestasi,\n @Field(\"bidangprestasi\") String bidangprestasi,\n @Field(\"tingkatprestasi\") String tingkatprestasi,\n @Field(\"jumlahorganisasi\") String jumlahorganisasi,\n @Field(\"namaorganisasi\") String namaorganisasi,\n @Field(\"jabatanorganisasi\") String jabatanorganisasi,\n @Field(\"statusorganisasi\") String statusorganisasi,\n @Field(\"periodeorganisasi\") String periodeorganisasi,\n @Field(\"birth\") String birth,\n @Field(\"picture\") String picture);\n\n @FormUrlEncoded\n @POST(\"updatemhs.php\")\n Call<Mahasiswa> updatemhs(\n @Field(\"key\") String key,\n @Field(\"id\") int id,\n @Field(\"name\") String name,\n @Field(\"nim\") String nim,\n @Field(\"angkatan\") String angkatan,\n @Field(\"jenjang\") String jenjang,\n @Field(\"fakultas\") String fakultas,\n @Field(\"tempatlahir\") String tempatlahir,\n @Field(\"totalipk\") String totalipk,\n @Field(\"semestertempuh\") String semestertempuh,\n @Field(\"gender\") int gender,\n @Field(\"statusbidikmisi\") int statusbidikmisi,\n @Field(\"tahunmundur\") String tahunmundur,\n @Field(\"alasanmundur\") String alasanmundur,\n @Field(\"statusdana\") int statusdana,\n @Field(\"jumlahdana\") String jumlahdana,\n @Field(\"universitas\") int universitas,\n @Field(\"semester1\") String semester1,\n @Field(\"semester2\") String semester2,\n @Field(\"semester3\") String semester3,\n @Field(\"semester4\") String semester4,\n @Field(\"semester5\") String semester5,\n @Field(\"semester6\") String semester6,\n @Field(\"semester7\") String semester7,\n @Field(\"semester8\") String semester8,\n @Field(\"jumlahprestasi\") String jumlahprestasi,\n @Field(\"namaprestasi\") String namaprestasi,\n @Field(\"juaraprestasi\") String juaraprestasi,\n @Field(\"bidangprestasi\") String bidangprestasi,\n @Field(\"tingkatprestasi\") String tingkatprestasi,\n @Field(\"jumlahorganisasi\") String jumlahorganisasi,\n @Field(\"namaorganisasi\") String namaorganisasi,\n @Field(\"jabatanorganisasi\") String jabatanorganisasi,\n @Field(\"statusorganisasi\") String statusorganisasi,\n @Field(\"periodeorganisasi\") String periodeorganisasi,\n @Field(\"birth\") String birth,\n @Field(\"picture\") String picture);\n\n\n @FormUrlEncoded\n @POST(\"delete.php\")\n Call<Mahasiswa> delete(\n @Field(\"key\") String key,\n @Field(\"id\") int id,\n @Field(\"picture\") String picture);\n\n @FormUrlEncoded\n @POST(\"update_pembinaan.php\")\n Call<Mahasiswa> update_pembinaan(\n @Field(\"key\") String key,\n @Field(\"id\") int id,\n @Field(\"love\") boolean love);\n\n}", "@PostMapping(\n\t\tvalue=\"/add-bioskop\",\n\t\tconsumes=MediaType.APPLICATION_JSON_VALUE,\n\t\tproduces=MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<BioskopDTOAdd> dodaj(@RequestBody BioskopDTOAdd b) throws Exception\t{/*RequestBody je onaj podatak data:newBioskopJSON koji saljemo kontroleru*/\n\t\tBioskop bioskop=new Bioskop(b.getNaziv(), b.getAdresa(), b.getBrojCentrale(), b.geteMail());/*sve sto smo uneli u formu pravimo objekat od tih podataka, podacima iz forme pravimo novi bioskop, ti podaci se nalaze u b*/\n\t\tString m=b.getMenadzer();\n\t\tMenadzer menadzer=this.menadzerService.findKorisnickoIme(m);/*korisnicno ime menadzera polje u formi trazimo i ako ga nema izbacuje gresku*/\n\t\n\t\t//ako je unet nepostojeci menadzer\n\t\tif(menadzer==null) {\n\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t}\n\t\telse {\n\t\t\tbioskop.setMenadzer(menadzer);/*postavljamo ovog unetog menadzera za menadzera za bioskop koji smo dodali */\n\t\t\tthis.bioskopService.save(bioskop);\n\t\t\t\n\t\t\t/*pravimo bioskodtoadd jer smo u resposneEntity stavili bioskopdtoadd*/\n\t\t\tBioskopDTOAdd bioskopDTO=new BioskopDTOAdd(bioskop.getId(),bioskop.getNaziv(),bioskop.getAdresa(),bioskop.getBrojCentrale(),bioskop.getEMail());\n\t\t\treturn new ResponseEntity<>(bioskopDTO,HttpStatus.OK);\n\t\t}\n\t\t\n\t}", "public interface AppPushInfoDao {\n public String saveOrUpdate(AppPushInfo appPushInfo) throws AVException;\n\n public List<AppPushInfo> get(AppPushInfoQuery appPushInfoQuery) throws AVException;\n}", "@Override\n protected Response doInsert(JSONObject data) {\n return null;\n }", "public interface CapituloService {\n\n /**\n * Save a capitulo.\n *\n * @param capituloDTO the entity to save\n * @return the persisted entity\n */\n CapituloDTO save(CapituloDTO capituloDTO);\n\n /**\n * Get all the capitulos.\n * \n * @return the list of entities\n */\n List<CapituloDTO> findAll();\n\n /**\n * Get the \"id\" capitulo.\n *\n * @param id the id of the entity\n * @return the entity\n */\n CapituloDTO findOne(Long id);\n\n /**\n * Delete the \"id\" capitulo.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n}", "private void limpiarDatos() {\n\t\t\n\t}", "@PostMapping(\"/curso\")\r\n\tpublic Curso salvaCurso(@RequestBody Curso curso) {\n\t\tfor (int i = 0; i < curso.getListaAlunos().size(); i++) {\r\n\t\t\tAluno aluno = curso.getListaAlunos().get(i);\r\n\t\t\taluno.setCurso(curso); //Relação bidirecional.\r\n\t\t}\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn cursoRepository.save(curso);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}", "private GestionBD(){\r\n\t\tlineConnection=SingleDBConnection.getConexionBD().conectarBD();\r\n\t}", "public interface APIService {\n\n @FormUrlEncoded\n @POST(\"\")\n Call<Post> savePost(@Field(\"\") String username,\n @Field(\"\") String password,\n @Field(\"\") String mobile,\n @Field(\"\") String device_token);\n\n\n }" ]
[ "0.58850485", "0.5870742", "0.58694583", "0.57919097", "0.5721462", "0.5712907", "0.5689811", "0.56285745", "0.5623539", "0.5622863", "0.55593663", "0.5538484", "0.55115885", "0.55044156", "0.5487428", "0.54857284", "0.5472048", "0.5467789", "0.5462875", "0.5455567", "0.54499686", "0.54442805", "0.5441034", "0.54306984", "0.5422117", "0.54124755", "0.5403588", "0.5376502", "0.53735054", "0.53439844", "0.5338277", "0.533536", "0.53326166", "0.5329956", "0.5329238", "0.5327234", "0.531797", "0.5315879", "0.5315193", "0.53138393", "0.5313448", "0.5311827", "0.5311123", "0.5310747", "0.53063595", "0.52972084", "0.52919686", "0.5289457", "0.5282529", "0.52809536", "0.5276312", "0.5273131", "0.52665097", "0.52609634", "0.5246999", "0.524458", "0.5232767", "0.5227966", "0.5226568", "0.5223947", "0.5216695", "0.5214702", "0.5209982", "0.5208065", "0.52070904", "0.52055544", "0.52030355", "0.51961946", "0.5194255", "0.51921535", "0.5182018", "0.5181413", "0.51796013", "0.51784617", "0.5175786", "0.51757056", "0.51711833", "0.5167042", "0.5166639", "0.516656", "0.5164878", "0.5158289", "0.51561534", "0.51561147", "0.51550454", "0.5153691", "0.51456183", "0.5144949", "0.5143552", "0.51401937", "0.5137964", "0.5135756", "0.5132907", "0.5132442", "0.51317865", "0.51314205", "0.5126596", "0.51231694", "0.51221126", "0.51190925", "0.511467" ]
0.0
-1
===================================================== Getters & Setters ===================================================== ============================================= Methods from/for SuperClass/Interface =============================================
@Override public void onLoadScene(OnLoadSceneCallBack pOnLoadSceneCallBack) { //this.setOnAreaTouchListener(this); super.onLoadScene(pOnLoadSceneCallBack); VertexBufferObjectManager vertexBufferObjectManager = ResourceManager.getInstance().getBaseGameActivity().getVertexBufferObjectManager(); TexturePackTextureRegionLibrary menuTexturePackTextureRegionLibrary = ResourceManager.getInstance().getMenuSpriteSheetTexturePackTextureRegionLibrary(); // Panel this.mPanel = new Rectangle((Constants.CAMERA_WIDTH - Constants.MENU_RESULT_WIDTH) * 0.5f, 0, Constants.MENU_RESULT_WIDTH, Constants.CAMERA_HEIGHT, vertexBufferObjectManager); this.mPanel.setColor(Color.BLACK); // Level Cleared Text this.mLevelClearedText = new Text(this.mPanel.getWidth() * 0.5f, Constants.MENU_RESULT_MARGIN_TOP, ResourceManager.getInstance().getAngrybirdFont48(), "LEVEL CLEARED!", new TextOptions(HorizontalAlign.CENTER), vertexBufferObjectManager); this.mLevelClearedText.setX((this.mPanel.getWidth() - this.mLevelClearedText.getWidth()) * 0.5f); // ScoreText this.mScoreText = new Text(this.mPanel.getWidth() * 0.5f, this.mPanel.getHeight() * 0.6f, ResourceManager.getInstance().getAngrybirdFont48(), "0", 9, vertexBufferObjectManager); this.mScoreText.setX((this.mPanel.getWidth() - this.mScoreText.getWidth()) * 0.5f); // Stars ITiledTextureRegion centerStarTextureRegion = menuTexturePackTextureRegionLibrary.get(MenuConstants.CENTER_STAR_ID, 2, 1); this.mCenterStarMenu = new TiledSprite((this.mPanel.getWidth() - centerStarTextureRegion.getWidth()) * 0.5f, this.mLevelClearedText.getY() + this.mLevelClearedText.getHeight() + Constants.MENU_RESULT_LINE_HEIGHT, centerStarTextureRegion, vertexBufferObjectManager); this.mCenterStarMenu.setCurrentTileIndex(1); ITiledTextureRegion leftStarTextureRegion = menuTexturePackTextureRegionLibrary.get(MenuConstants.LEFT_STAR_ID, 2, 1); this.mLeftStarMenu = new TiledSprite(this.mCenterStarMenu.getX() - Constants.MENU_RESULT_ELEMENT_MARGIN - leftStarTextureRegion.getWidth(), this.mCenterStarMenu.getY(), leftStarTextureRegion, vertexBufferObjectManager); this.mLeftStarMenu.setCurrentTileIndex(1); ITiledTextureRegion rightStarTextureRegion = menuTexturePackTextureRegionLibrary.get(MenuConstants.RIGHT_STAR_ID, 2, 1); this.mRighStarMenu = new TiledSprite(this.mCenterStarMenu.getX() + this.mCenterStarMenu.getWidth() + Constants.MENU_RESULT_ELEMENT_MARGIN, this.mCenterStarMenu.getY(), rightStarTextureRegion, vertexBufferObjectManager); // Buttons TextureRegion replayButtonTextureRegion = ResourceManager.getInstance().getButtonSpriteSheetTexturePackTextureRegionLibrary().get(ButtonConstants.BUTTON_REPLAY_ID); Sprite replayButtonSprite = new Sprite((this.mPanel.getWidth() - replayButtonTextureRegion.getWidth()) * 0.5f, Constants.CAMERA_HEIGHT - Constants.MENU_RESULT_MARGIN_BOTTOM - replayButtonTextureRegion.getHeight(), replayButtonTextureRegion, vertexBufferObjectManager); this.mRePlayButton = new BaseButton<Sprite>(replayButtonSprite.getX(), replayButtonSprite.getY(), 1.0f, replayButtonSprite) { @Override public void onButtonClick() { hideScene(); GameLevelManager.getInstance().replayCurrentGameLevel(); } }; TextureRegion menuButtonTextureRegion = ResourceManager.getInstance().getButtonSpriteSheetTexturePackTextureRegionLibrary().get(ButtonConstants.BUTTON_MENU_ID); Sprite menuButtonSprite = new Sprite(this.mRePlayButton.getEntity().getX() - Constants.MENU_RESULT_ELEMENT_MARGIN - menuButtonTextureRegion.getWidth(), this.mRePlayButton.getEntity().getY(), menuButtonTextureRegion, vertexBufferObjectManager); this.mMenuButton = new BaseButton<Sprite>(menuButtonSprite.getX(), menuButtonSprite.getY(), 1.0f, menuButtonSprite) { @Override public void onButtonClick() { hideScene(); SceneManager.getInstance().showLevelSelectorScene(); } }; TextureRegion nextLevelButtonTextureRegion = ResourceManager.getInstance().getButtonSpriteSheetTexturePackTextureRegionLibrary().get(ButtonConstants.BUTTON_NEXT_LEVEL_ID); Sprite nextLevelButtonSprite = new Sprite(this.mRePlayButton.getEntity().getX() + this.mRePlayButton.getEntity().getWidth() + Constants.MENU_RESULT_ELEMENT_MARGIN, this.mRePlayButton.getEntity().getY(), nextLevelButtonTextureRegion, vertexBufferObjectManager); this.mNextLevelButton = new BaseButton<Sprite>(nextLevelButtonSprite.getX(), nextLevelButtonSprite.getY(), 1.0f, nextLevelButtonSprite) { @Override public void onButtonClick() { hideScene(); GameLevelManager.getInstance().showNextGameLevel(); } }; HUD hud = ResourceManager.getInstance().getHUD(); hud.setOnAreaTouchListener(this); hud.registerTouchArea(this.mMenuButton.getEntity()); hud.registerTouchArea(this.mRePlayButton.getEntity()); hud.registerTouchArea(this.mNextLevelButton.getEntity()); pOnLoadSceneCallBack.onLoadSceneFinish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "@Override\n public String toString () {\n return super.toString();\n }", "@Override\n public String toString() {\n return (super.toString());\n\n }", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n public String toString() {\r\n return super.toString();\r\n }", "@Override\r\n public String toString() {\r\n return super.toString();\r\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public String toString() {\n return super.toString();\n }", "@Override\n public String toString() {\n return super.toString();\n }", "@Override\n public String toString() {\n return super.toString();\n }", "@Override\n public String toString() {\n return super.toString();\n }", "@Override\n void init() {\n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n Derived get();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n }", "@Override\n protected void prot() {\n }", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n\n super.init();\n\n }", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "@Override\n public void init() {}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void init() {}", "@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 getData() {\n\t\t\n\t}", "@Override\n public synchronized String toString() {\n return super.toString();\n }", "@Override\n public String getName(){\n return Name; \n }", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "protected abstract Set method_1559();", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override // opcional\n public void init(){\n\n }", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\n protected void updateProperties() {\n }", "@Override public void init()\n\t\t{\n\t\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "@Override\r\npublic String toString() {\n\treturn super.toString();\r\n}", "@Override\n\tpublic void getShape() {\n\n\t}", "@Override\n public int getValue() {\n return super.getValue();\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public String toString() {\n return super.toString(); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tprotected void initData() {\n\r\n\t}" ]
[ "0.6455538", "0.64109135", "0.6297085", "0.629325", "0.62892604", "0.6279314", "0.62661266", "0.62598616", "0.6231143", "0.6226371", "0.6226371", "0.6218203", "0.62032634", "0.62032634", "0.62032634", "0.62032634", "0.61791146", "0.6176102", "0.6176102", "0.6148694", "0.61427623", "0.613999", "0.61364436", "0.6120971", "0.6118633", "0.6110386", "0.6105956", "0.6085028", "0.60803735", "0.60467905", "0.60186976", "0.59954995", "0.59954995", "0.59954995", "0.59954995", "0.59954995", "0.59954995", "0.5984039", "0.5984032", "0.5984032", "0.59837484", "0.59806836", "0.59782755", "0.5978094", "0.5978094", "0.59709907", "0.595829", "0.59545726", "0.59527695", "0.5943128", "0.5937258", "0.5937258", "0.59308076", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.59249115", "0.5914107", "0.59116364", "0.5905507", "0.58974665", "0.58974665", "0.58974665", "0.58974665", "0.58974665", "0.58974665", "0.5894454", "0.5893816", "0.5886462", "0.5877446", "0.5877446", "0.5877446", "0.58758515", "0.58742416", "0.5872296", "0.5863731", "0.58632094", "0.5851456", "0.5851456", "0.58422786", "0.58418244", "0.5835934", "0.58343", "0.58267117", "0.582442", "0.5802803" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onTimePassed(TimerHandler pUpdateHandler) { Debug.e("Time pass"); tempScore += ScoreConstants.UNIT_SCORE; mScoreText.setText(tempScore + ""); mScoreText.setX((mPanel.getWidth() - mScoreText.getWidth()) * 0.5f); if(tempScore >= GameScoreManager.getInstance().getTotalScore()){ mScoreText.setText(GameScoreManager.getInstance().getTotalScore() + ""); SfxManager.getInstance().stopSlotMachineSound(); SfxManager.getInstance().playLevelClearedSound(); ResourceManager.getInstance().getBaseGameActivity().getEngine().unregisterUpdateHandler(pUpdateHandler); } }
{ "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: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof HrsRoles)) { return false; } HrsRoles other = (HrsRoles) object; if ((this.hrsRolesPK == null && other.hrsRolesPK != null) || (this.hrsRolesPK != null && !this.hrsRolesPK.equals(other.hrsRolesPK))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "protected abstract String getId();", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getID() {return id;}", "public int getID() {return id;}", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public int getId(){\r\n return localId;\r\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "@Override\n public Integer getId() {\n return id;\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "public void setId(Long id){\n this.id = id;\n }", "public abstract Long getId();", "final protected int getId() {\n\t\treturn id;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public Long getId() \n {\n return id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "public int getId()\n {\n return id;\n }", "public int getID(){\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6896072", "0.6839122", "0.6705258", "0.66412854", "0.66412854", "0.65923095", "0.65785074", "0.65785074", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.6561566", "0.6561566", "0.6545169", "0.6525343", "0.65168375", "0.64885366", "0.6477314", "0.64274967", "0.6420125", "0.6417802", "0.640265", "0.6367859", "0.6355473", "0.6352689", "0.6348769", "0.63258827", "0.63203555", "0.6302521", "0.62946665", "0.62946665", "0.62845194", "0.62724674", "0.62673867", "0.62664896", "0.62628543", "0.62604827", "0.6256597", "0.62518793", "0.6248176", "0.6248176", "0.62445766", "0.6240227", "0.6240227", "0.62322026", "0.6223806", "0.62218046", "0.6220317", "0.6212928", "0.62090635", "0.6203066", "0.6201325", "0.61939746", "0.6190498", "0.6190498", "0.6190498", "0.6189811", "0.6189811", "0.6185415", "0.618307", "0.6175355", "0.6174499", "0.6167348", "0.6167341", "0.61617935", "0.61569077", "0.61569077", "0.61567014", "0.61567014", "0.61567014", "0.61567014", "0.61567014", "0.61567014", "0.61567014", "0.61423147", "0.6134403", "0.6129919", "0.61289775", "0.6105535", "0.6105535", "0.61055124", "0.6103899", "0.6103877", "0.61027", "0.61002946", "0.61002403", "0.609533", "0.609243", "0.609243", "0.60917705", "0.6090932", "0.60905474", "0.60762745", "0.6072683", "0.6072517", "0.6071208", "0.60706896", "0.6070472" ]
0.0
-1
Initialize the contents of the frame.
private void initialize() { frmProductManagement = new JFrame(); frmProductManagement.setTitle("product management"); frmProductManagement.setBounds(100, 100, 767, 648); frmProductManagement.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frmProductManagement.getContentPane().setLayout(null); JLabel lb_detail = new JLabel(" detail class"); lb_detail.setVisible(false); lb_detail.setFont(new Font("宋体", Font.PLAIN, 16)); lb_detail.setBounds(10, 357, 211, 35); frmProductManagement.getContentPane().add(lb_detail); JLabel lb_ID = new JLabel(" productID"); lb_ID.setVisible(false); lb_ID.setFont(new Font("宋体", Font.PLAIN, 16)); lb_ID.setBounds(10, 128, 136, 46); frmProductManagement.getContentPane().add(lb_ID); JLabel lb_name = new JLabel(" product's name"); lb_name.setVisible(false); lb_name.setFont(new Font("宋体", Font.PLAIN, 16)); lb_name.setBounds(10, 192, 211, 54); frmProductManagement.getContentPane().add(lb_name); JLabel lb_price = new JLabel(" product's price"); lb_price.setVisible(false); lb_price.setFont(new Font("宋体", Font.PLAIN, 16)); lb_price.setBounds(10, 256, 211, 46); frmProductManagement.getContentPane().add(lb_price); JLabel lb_major = new JLabel(" major classs"); lb_major.setVisible(false); lb_major.setFont(new Font("宋体", Font.PLAIN, 16)); lb_major.setBounds(10, 312, 194, 35); frmProductManagement.getContentPane().add(lb_major); JLabel lb_info = new JLabel(" product's describe"); lb_info.setVisible(false); lb_info.setFont(new Font("宋体", Font.PLAIN, 16)); lb_info.setBounds(10, 409, 202, 35); frmProductManagement.getContentPane().add(lb_info); ID = new JTextField(); ID.setVisible(false); ID.setBounds(228, 128, 315, 37); frmProductManagement.getContentPane().add(ID); ID.setColumns(10); name = new JTextField(); name.setVisible(false); name.setBounds(231, 192, 312, 39); frmProductManagement.getContentPane().add(name); name.setColumns(10); price = new JTextField(); price.setVisible(false); price.setBounds(229, 256, 314, 35); frmProductManagement.getContentPane().add(price); price.setColumns(10); major = new JTextField(); major.setVisible(false); major.setBounds(229, 306, 314, 35); frmProductManagement.getContentPane().add(major); major.setColumns(10); detail = new JTextField(); detail.setVisible(false); detail.setBounds(231, 357, 312, 29); frmProductManagement.getContentPane().add(detail); detail.setColumns(10); describe = new JTextField(); describe.setVisible(false); describe.setBounds(228, 409, 315, 29); frmProductManagement.getContentPane().add(describe); describe.setColumns(10); JLabel cao = new JLabel(""); cao.setFont(new Font("宋体", Font.PLAIN, 16)); cao.setBounds(10, 0, 516, 54); frmProductManagement.getContentPane().add(cao); JLabel result = new JLabel(""); result.setBounds(10, 524, 529, 46); result.setFont(new Font("宋体", Font.PLAIN, 20)); frmProductManagement.getContentPane().add(result); JButton btnNewButton = new JButton("back"); btnNewButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { frmProductManagement.dispose(); Bus a = new Bus(id); a.frmMerchant.setVisible(true); } }); btnNewButton.setFont(new Font("宋体", Font.PLAIN, 20)); btnNewButton.setBounds(627, 567, 116, 34); frmProductManagement.getContentPane().add(btnNewButton); JButton btninsert = new JButton("insert"); btninsert.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { result.setText(null); if(btninsert.getText().equals("insert")) { btninsert.setText("verify"); lb_ID.setVisible(true); lb_detail.setVisible(true); lb_info.setVisible(true); lb_major.setVisible(true); lb_name.setVisible(true); lb_price.setVisible(true); name.setVisible(true); ID.setVisible(true); price.setVisible(true); major.setVisible(true); detail.setVisible(true); describe.setVisible(true); } else{ String str[] = new String[7]; str[0] = ID.getText(); str[1] = name.getText(); str[2] = price.getText(); str[3] = major.getText(); str[4] = detail.getText(); str[5] = describe.getText(); str[6] = ""+id; if(test2.insert(str)==1) { result.setText("Insert successfully!"); } else result.setText("Insert failed!"); btninsert.setText("insert"); name.setText(null); ID.setText(null); price.setText(null); major.setText(null); detail.setText(null); describe.setText(null); lb_ID.setVisible(false); lb_detail.setVisible(false); lb_info.setVisible(false); lb_major.setVisible(false); lb_name.setVisible(false); lb_price.setVisible(false); name.setVisible(false); ID.setVisible(false); price.setVisible(false); major.setVisible(false); detail.setVisible(false); describe.setVisible(false); } } }); btninsert.setBounds(10, 55, 155, 46); frmProductManagement.getContentPane().add(btninsert); JButton btndelete = new JButton("delete"); btndelete.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { result.setText(null); if(btndelete.getText().equals("delete")) { btndelete.setText("verify"); lb_ID.setVisible(true); ID.setVisible(true); } else{ String IID = ID.getText(); if(test2.delete(IID)==1) { result.setText("Delete completely!"); } else result.setText("Delete failed!"); ID.setText(null); btndelete.setText("delete"); lb_ID.setVisible(false); ID.setVisible(false); } } }); btndelete.setBounds(213, 55, 155, 46); frmProductManagement.getContentPane().add(btndelete); JButton btnupdate = new JButton("update"); btnupdate.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { result.setText(null); if(btnupdate.getText().equals("update")) { cao.setText("please input the product ID to update"); cao.setVisible(true); btnupdate.setText("verify"); lb_ID.setVisible(true); lb_detail.setVisible(true); lb_info.setVisible(true); lb_major.setVisible(true); lb_name.setVisible(true); lb_price.setVisible(true); name.setVisible(true); ID.setVisible(true); price.setVisible(true); major.setVisible(true); detail.setVisible(true); describe.setVisible(true); } else{ cao.setVisible(false); String str[] = new String[7]; str[0] = ID.getText(); str[1] = name.getText(); str[2] = price.getText(); str[3] = major.getText(); str[4] = detail.getText(); str[5] = describe.getText(); str[6] = ""+id; if(test2.update(str)==1) { result.setText("Update successfully!"); } else result.setText("Update failed!"); btnupdate.setText("update"); name.setText(null); ID.setText(null); price.setText(null); major.setText(null); detail.setText(null); describe.setText(null); lb_ID.setVisible(false); lb_detail.setVisible(false); lb_info.setVisible(false); lb_major.setVisible(false); lb_name.setVisible(false); lb_price.setVisible(false); name.setVisible(false); ID.setVisible(false); price.setVisible(false); major.setVisible(false); detail.setVisible(false); describe.setVisible(false); } } }); btnupdate.setBounds(419, 55, 136, 46); frmProductManagement.getContentPane().add(btnupdate); JButton btnsearch = new JButton("search"); btnsearch.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { result.setText(null); if(btnsearch.getText().equals("search")) { cao.setText("please input the condition to search"); cao.setVisible(true); btnsearch.setText("verify"); lb_ID.setVisible(true); lb_detail.setVisible(true); lb_info.setVisible(true); lb_major.setVisible(true); lb_name.setVisible(true); lb_price.setVisible(true); name.setVisible(true); ID.setVisible(true); price.setVisible(true); major.setVisible(true); detail.setVisible(true); describe.setVisible(true); } else{ cao.setVisible(false); String str[] = new String[7]; str[0] = ID.getText(); str[1] = name.getText(); str[2] = price.getText(); str[3] = major.getText(); str[4] = detail.getText(); str[5] = describe.getText(); str[6] = ""+id; if(test2.search(str)==1) { result.setText("Search successfully!"); } else result.setText("Search failed!"); btnsearch.setText("search"); name.setText(null); ID.setText(null); price.setText(null); major.setText(null); detail.setText(null); describe.setText(null); lb_ID.setVisible(false); lb_detail.setVisible(false); lb_info.setVisible(false); lb_major.setVisible(false); lb_name.setVisible(false); lb_price.setVisible(false); name.setVisible(false); ID.setVisible(false); price.setVisible(false); major.setVisible(false); detail.setVisible(false); describe.setVisible(false); } } }); btnsearch.setBounds(602, 55, 141, 46); frmProductManagement.getContentPane().add(btnsearch); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public Mainframe() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public mainframe() {\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public launchFrame() {\n \n initComponents();\n \n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public PilaFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public NewFrame() {\n initComponents();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public BaseFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MercadoFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}", "public holdersframe() {\n initComponents();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public addStFrame() {\n initComponents();\n }", "public JFrame() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}" ]
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.7107974", "0.7100368", "0.7092515", "0.708178", "0.70652425", "0.70630395", "0.70621413", "0.7060283", "0.70517516", "0.7043992", "0.6996167", "0.6978269", "0.6971387", "0.6956391", "0.6938475", "0.6929829", "0.6929629", "0.69251114", "0.6921989", "0.6920365", "0.6914633", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.69020075", "0.68911743", "0.6886017", "0.6873457", "0.6870402", "0.68686837", "0.68669385", "0.686311", "0.68616706", "0.68552315", "0.68537515", "0.681551", "0.68141145", "0.68094325", "0.67992085", "0.67930394", "0.6782133", "0.6765297", "0.6748138", "0.6731745", "0.6716807", "0.6711878", "0.6706194", "0.6697453", "0.6692831", "0.66927665", "0.6689213", "0.66724384", "0.66606426", "0.664954", "0.6642464", "0.6640775", "0.6638488", "0.663824", "0.663545", "0.66264987", "0.6625419", "0.6611392", "0.6608291", "0.6600817", "0.66005784", "0.6591052", "0.65869486", "0.65862876", "0.65753394", "0.6575285", "0.6570335", "0.655961" ]
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof ReservacionesPK)) { return false; } ReservacionesPK other = (ReservacionesPK) object; if (this.idreservaciones != other.idreservaciones) { return false; } if (this.clienteIdcliente != other.clienteIdcliente) { return false; } if (this.sucursalIdubicacion != other.sucursalIdubicacion) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getID() {return id;}", "public int getID() {return id;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "private void clearId() {\n \n id_ = 0;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.6477893", "0.6426692", "0.6418966", "0.6416817", "0.6401561", "0.63664836", "0.63549376", "0.63515353", "0.6347672", "0.6324549", "0.6319196", "0.6301484", "0.62935394", "0.62935394", "0.62832105", "0.62710917", "0.62661785", "0.6265274", "0.6261401", "0.6259253", "0.62559646", "0.6251244", "0.6247282", "0.6247282", "0.6245526", "0.6238957", "0.6238957", "0.6232451", "0.62247443", "0.6220427", "0.6219304", "0.6211484", "0.620991", "0.62023336", "0.62010616", "0.6192621", "0.61895776", "0.61895776", "0.61893976", "0.61893976", "0.61893976", "0.6184292", "0.618331", "0.61754644", "0.6173718", "0.6168409", "0.6166131", "0.6161708", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.61556244", "0.61556244", "0.61430943", "0.61340135", "0.6128617", "0.6127841", "0.61065215", "0.61043483", "0.61043483", "0.6103568", "0.61028486", "0.61017346", "0.6101399", "0.6098963", "0.6094214", "0.6094", "0.6093529", "0.6093529", "0.6091623", "0.60896", "0.6076881", "0.60723215", "0.6071593", "0.6070138", "0.6069936", "0.6069529" ]
0.0
-1
This manager looks after any resources, like Data Registries, that may require a secure login. This is an early draft, as secured access to resources is not yet to be implemented.
interface ResourceManager { /** * List all available resources. * @return A list of Resource objects */ public List<Resource> getAvailableResources(); /** * Attempt to use the user credentials to log in to * any and all other resources known to this User Manager. * * TODO Consider moving to OAuth. * @param user the user object * @param password The users password, in clear text. */ public void propagateCredentials( User user, String password ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void credite() {\n\t\t\n\t}", "public AuthorizationManager() throws Exception {\n\t\tNCIASecurityManager mgr = (NCIASecurityManager)SpringApplicationContext.getBean(\"nciaSecurityManager\");\n securityRights = mgr.getSecurityMapForPublicRole();\n }", "private void init() {\r\n\t\t// administration\r\n\t\taddPrivilege(CharsetAction.class, User.ROLE_ADMINISTRATOR);\r\n\t\taddPrivilege(LanguageAction.class, User.ROLE_ADMINISTRATOR);\r\n\t\t\r\n\t\t// dictionary management\r\n\t\taddPrivilege(AddApplicationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(AddDictLanguageAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(AddLabelAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(ChangeApplicationVersionAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(ChangeDictVersionAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateApplicationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateApplicationBaseAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateOrAddApplicationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateProductAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateProductReleaseAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(DeleteLabelAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverAppDictAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverDictAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverUpdateDictAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverUpdateDictLanguageAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverUpdateLabelAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(RemoveApplicationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(RemoveApplicationBaseAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(RemoveDictAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(RemoveDictLanguageAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(RemoveProductAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(RemoveProductBaseAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateDictAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateDictLanguageAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateLabelAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateLabelStatusAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(ImportTranslationDetailsAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\r\n\t\taddPrivilege(UpdateLabelRefAndTranslationsAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(GlossaryAction.class, User.ROLE_ADMINISTRATOR);\r\n\r\n\r\n\t\t// translation management\r\n\t\taddPrivilege(UpdateStatusAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateTranslationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\t\r\n\t\t// task management\r\n\t\taddPrivilege(ApplyTaskAction.class, User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CloseTaskAction.class, User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateTaskAction.class, User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(ReceiveTaskFilesAction.class, User.ROLE_TRANSLATION_MANAGER);\r\n\t}", "protected SecurityObject() {\n\t\t// Used by JPA provider.\n\n\t\tLOGGER.debug(\"SecurityObject#co\");\n\t}", "@Override\n default ManagerPrx ice_secure(boolean b)\n {\n return (ManagerPrx)_ice_secure(b);\n }", "protected void login() {\n\t\t\r\n\t}", "SessionManager get();", "public UserResource()\n {\n backend_ = (Backend) getApplication().getContext().getAttributes()\n .get(\"backend\");\n }", "@PostConstruct\n void initSystemAdmin() {\n final UserAccount admin = initAdminInstance();\n final String passwordPlain = generatePassword();\n admin.setPassword(passwordPlain);\n if (userService.exists(admin.getUri())) {\n LOG.info(\"Admin already exists.\");\n } else {\n LOG.info(\"Creating application admin account.\");\n final TransactionTemplate tx = new TransactionTemplate(txManager);\n tx.execute(status -> {\n userService.persist(admin);\n return null;\n });\n LOG.info(SEPARATOR);\n LOG.info(\"Admin credentials are: {}/{}\", admin.getUsername(), passwordPlain);\n LOG.info(SEPARATOR);\n final File directory = new File(config.getAdminCredentialsLocation());\n try {\n if (!directory.exists()) {\n Files.createDirectories(directory.toPath());\n }\n final File credentialsFile = createHiddenFile();\n if (credentialsFile == null) {\n return;\n }\n LOG.debug(\"Writing admin credentials into file: {}\", credentialsFile);\n Files.write(credentialsFile.toPath(),\n Collections.singletonList(admin.getUsername() + \"/\" + passwordPlain),\n StandardOpenOption.CREATE, StandardOpenOption.WRITE,\n StandardOpenOption.TRUNCATE_EXISTING);\n } catch (IOException e) {\n LOG.error(\"Unable to create admin credentials file.\", e);\n }\n }\n }", "public abstract I_Authenticate getSecurityCtx();", "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 }", "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 }", "@Local\npublic interface AdminService {\n /**\n * Creates a user of the system. The user is created with USER privileges.\n *\n * @param newUser the user to add.\n * @param token identifier of the session.\n * @throws AuthenticationException when the caller has not ADMIN permissions\n * @throws InvalidUserException when the user to add is not valid.\n */\n void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;\n\n /**\n * Deletes a user from the system.\n *\n * @param user the user that want to be deleted.\n * @param token identifier of the session.\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n */\n void deleteUser(User user, String token) throws AuthenticationException;\n\n /**\n * Change the permissions of a user to a training. The permissions are: CREATE, READ.\n *\n * @param training the training.\n * @param user the user for whom the permissions will be changed.\n * @param permission the new permissions.\n * @param token the identifier of the session\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n */\n void changePermissions(Training training, User user, Permission permission, String token) throws AuthenticationException;\n\n /**\n * CHange the privileges of a user to the system. Roles are: ADMINISTRATOR, TRAINER, USER.\n *\n * @param user the user for whom the role will be changed.\n * @param role the new role.\n * @param token the identifier of the session.\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n */\n void changeRole(User user, Role role, String token) throws AuthenticationException;\n\n /**\n * Add a new Device to the system.\n *\n * @param device the device to be added.\n * @param token the identifier of the session.\n * @throws InvalidDeviceException when the device to add is not a valid one.\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n * @throws DeviceAlreadyExistsException thrown when the device is already on the database.\n */\n void addDevice(Device device, String token) throws InvalidDeviceException, AuthenticationException,\n DeviceAlreadyExistsException;\n\n /**\n * Disable a device from the System. This happens when the device is broken.\n *\n * @param device the device to be disabled.\n * @param token the identifier of the session.\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n */\n void disableDevice(Device device, String token) throws AuthenticationException;\n\n /**\n * Gets a User from the database by its username.\n *\n * @param name the username.\n * @return The User with the username specified.\n * @throws InvalidUserException when there is no user with the username specified.\n */\n User getUserByUsername(String name) throws InvalidUserException;\n\n /**\n * Modifies a Device that already exists on the system.\n *\n * @param device the device to be changes.\n * @param token the identifier of the session.\n * @throws InvalidDeviceException when the device to modify isn' on the database.\n * @throws AuthenticationException when the caller has no privileges to perform this action.\n */\n void modifyDevice(Device device, String token) throws InvalidDeviceException, AuthenticationException;\n\n /**\n * @return all the devices of the system. Doesn't need a token because only the admin can call the service.\n */\n List<Device> getAllDevices();\n\n /**\n * @param token the identifier of the session.\n * @return all the users from the system.\n * @throws AuthenticationException\n */\n List<User> getAllUsers(String token) throws AuthenticationException;\n}", "protected void init() {\n\t\tinitApplicationData.init();\n\t\t//\n\t\tsecurityService.setSystemAuthentication();\n\t\t//\n\t\ttry {\n\t\t\tIdmIdentityDto identityAdmin = this.identityService.getByUsername(InitApplicationData.ADMIN_USERNAME);\n\t\t\t//\n\t\t\tIdmTreeTypeDto treeType = treeTypeService.getByCode(InitApplicationData.DEFAULT_TREE_TYPE);\n\t\t\tPage<IdmTreeNodeDto> rootsList = treeNodeService.findRoots(treeType.getId(), PageRequest.of(0, 1));\n\t\t\tIdmTreeNodeDto rootOrganization = null;\n\t\t\tif (!rootsList.getContent().isEmpty()) {\n\t\t\t\trootOrganization = rootsList.getContent().get(0);\n\t\t\t} else {\n\t\t\t\tIdmTreeNodeDto organizationRoot = new IdmTreeNodeDto();\n\t\t\t\torganizationRoot.setCode(\"root\");\n\t\t\t\torganizationRoot.setName(\"Organization\");\n\t\t\t\torganizationRoot.setTreeType(treeTypeService.getByCode(InitApplicationData.DEFAULT_TREE_TYPE).getId());\n\t\t\t\torganizationRoot = this.treeNodeService.save(organizationRoot);\n\t\t\t}\n\t\t\t//\n\t\t\tif (!configurationService.getBooleanValue(PARAMETER_DEMO_DATA_CREATED, false)) {\n\t\t\t\tLOG.info(\"Creating demo data ...\");\t\t\n\t\t\t\t//\n\t\t\t\t// create default password policy for validate\n\t\t\t\tIdmPasswordPolicyDto passValidate = null;\n\t\t\t\ttry {\n\t\t\t\t\tpassValidate = this.passwordPolicyService.getDefaultPasswordPolicy(IdmPasswordPolicyType.VALIDATE);\n\t\t\t\t} catch (ResultCodeException e) {\n\t\t\t\t\t// nothing, password policy for validate not exist\n\t\t\t\t}\n\t\t\t\t// default password policy not exist, try to found by name\n\t\t\t\tif (passValidate == null) {\n\t\t\t\t\tpassValidate = this.passwordPolicyService.findOneByName(\"DEFAULT_VALIDATE_POLICY\");\n\t\t\t\t}\n\t\t\t\t// if password policy still not exist create default password policy\n\t\t\t\tif (passValidate == null) {\n\t\t\t\t\tpassValidate = new IdmPasswordPolicyDto();\n\t\t\t\t\tpassValidate.setName(\"DEFAULT_VALIDATE_POLICY\");\n\t\t\t\t\tpassValidate.setDefaultPolicy(true);\n\t\t\t\t\tpassValidate.setType(IdmPasswordPolicyType.VALIDATE);\n\t\t\t\t\tpasswordPolicyService.save(passValidate);\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\t// create default password policy for generate\n\t\t\t\tIdmPasswordPolicyDto passGenerate = null;\n\t\t\t\ttry {\n\t\t\t\t\tpassGenerate = this.passwordPolicyService.getDefaultPasswordPolicy(IdmPasswordPolicyType.GENERATE);\n\t\t\t\t} catch (ResultCodeException e) {\n\t\t\t\t\t// nothing, password policy for generate password not exist\n\t\t\t\t}\n\t\t\t\t// try to found password policy by name\n\t\t\t\tif (passGenerate == null) {\n\t\t\t\t\tpassGenerate = this.passwordPolicyService.findOneByName(\"DEFAULT_GENERATE_POLICY\");\n\t\t\t\t}\n\t\t\t\t// if still not exist create default generate password policy\n\t\t\t\tif (passGenerate == null) {\n\t\t\t\t\tpassGenerate = new IdmPasswordPolicyDto();\n\t\t\t\t\tpassGenerate.setName(\"DEFAULT_GENERATE_POLICY\");\n\t\t\t\t\tpassGenerate.setDefaultPolicy(true);\n\t\t\t\t\tpassGenerate.setType(IdmPasswordPolicyType.GENERATE);\n\t\t\t\t\tpassGenerate.setMinLowerChar(2);\n\t\t\t\t\tpassGenerate.setMinNumber(2);\n\t\t\t\t\tpassGenerate.setMinSpecialChar(2);\n\t\t\t\t\tpassGenerate.setMinUpperChar(2);\n\t\t\t\t\tpassGenerate.setMinPasswordLength(8);\n\t\t\t\t\tpassGenerate.setMaxPasswordLength(12);\n\t\t\t\t\tpasswordPolicyService.save(passGenerate);\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\t// role may exists from another module initialization\n\t\t\t\tIdmRoleDto role1 = this.roleService.getByCode(DEFAULT_ROLE_NAME);\n\t\t\t\tif (role1 == null) {\n\t\t\t\t\trole1 = new IdmRoleDto();\n\t\t\t\t\trole1.setCode(DEFAULT_ROLE_NAME);\n\t\t\t\t\trole1 = this.roleService.save(role1);\n\t\t\t\t}\n\t\t\t\t// self policy\n\t\t\t\tIdmAuthorizationPolicyDto selfPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tselfPolicy.setPermissions(\n\t\t\t\t\t\tIdmBasePermission.AUTOCOMPLETE, \n\t\t\t\t\t\tIdmBasePermission.READ, \n\t\t\t\t\t\tIdentityBasePermission.PASSWORDCHANGE, \n\t\t\t\t\t\tIdentityBasePermission.CHANGEPERMISSION);\n\t\t\t\tselfPolicy.setRole(role1.getId());\n\t\t\t\tselfPolicy.setGroupPermission(CoreGroupPermission.IDENTITY.getName());\n\t\t\t\tselfPolicy.setAuthorizableType(IdmIdentity.class.getCanonicalName());\n\t\t\t\tselfPolicy.setEvaluator(SelfIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(selfPolicy);\n\t\t\t\t// read identity roles by identity\n\t\t\t\tIdmAuthorizationPolicyDto identityRolePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tidentityRolePolicy.setRole(role1.getId());\n\t\t\t\tidentityRolePolicy.setGroupPermission(CoreGroupPermission.IDENTITYROLE.getName());\n\t\t\t\tidentityRolePolicy.setAuthorizableType(IdmIdentityRole.class.getCanonicalName());\n\t\t\t\tidentityRolePolicy.setEvaluator(IdentityRoleByIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(identityRolePolicy);\t\t\t\t\n\t\t\t\t// read identity contracts by identity\n\t\t\t\tIdmAuthorizationPolicyDto identityContractPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tidentityContractPolicy.setRole(role1.getId());\n\t\t\t\tidentityContractPolicy.setGroupPermission(CoreGroupPermission.IDENTITYCONTRACT.getName());\n\t\t\t\tidentityContractPolicy.setAuthorizableType(IdmIdentityContract.class.getCanonicalName());\n\t\t\t\tidentityContractPolicy.setEvaluator(IdentityContractByIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(identityContractPolicy);\n\t\t\t\t// read contract positions by contract\n\t\t\t\tIdmAuthorizationPolicyDto contractPositionPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tcontractPositionPolicy.setRole(role1.getId());\n\t\t\t\tcontractPositionPolicy.setGroupPermission(CoreGroupPermission.CONTRACTPOSITION.getName());\n\t\t\t\tcontractPositionPolicy.setAuthorizableType(IdmContractPosition.class.getCanonicalName());\n\t\t\t\tcontractPositionPolicy.setEvaluator(ContractPositionByIdentityContractEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(contractPositionPolicy);\n\t\t\t\t// read contract guarantees by identity contract\n\t\t\t\tIdmAuthorizationPolicyDto contractGuaranteePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tcontractGuaranteePolicy.setRole(role1.getId());\n\t\t\t\tcontractGuaranteePolicy.setGroupPermission(CoreGroupPermission.CONTRACTGUARANTEE.getName());\n\t\t\t\tcontractGuaranteePolicy.setAuthorizableType(IdmContractGuarantee.class.getCanonicalName());\n\t\t\t\tcontractGuaranteePolicy.setEvaluator(ContractGuaranteeByIdentityContractEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(contractGuaranteePolicy);\n\t\t\t\t// only autocomplete roles that can be requested\n\t\t\t\tIdmAuthorizationPolicyDto applyForPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tapplyForPolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\tapplyForPolicy.setRole(role1.getId());\n\t\t\t\tapplyForPolicy.setGroupPermission(CoreGroupPermission.ROLE.getName());\n\t\t\t\tapplyForPolicy.setAuthorizableType(IdmRole.class.getCanonicalName());\n\t\t\t\tapplyForPolicy.setEvaluator(RoleCanBeRequestedEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(applyForPolicy);\n\t\t\t\t// role requests by identity\n\t\t\t\tIdmAuthorizationPolicyDto roleRequestByIdentityPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\troleRequestByIdentityPolicy.setRole(role1.getId());\n\t\t\t\troleRequestByIdentityPolicy.setGroupPermission(CoreGroupPermission.ROLEREQUEST.getName());\n\t\t\t\troleRequestByIdentityPolicy.setAuthorizableType(IdmRoleRequest.class.getCanonicalName());\n\t\t\t\troleRequestByIdentityPolicy.setEvaluator(RoleRequestByIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(roleRequestByIdentityPolicy);\n\t\t\t\t// self role requests\n\t\t\t\tIdmAuthorizationPolicyDto selfRoleRequestPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tselfRoleRequestPolicy.setPermissions(IdmBasePermission.READ, IdmBasePermission.UPDATE, IdmBasePermission.CREATE, IdmBasePermission.DELETE);\n\t\t\t\tselfRoleRequestPolicy.setRole(role1.getId());\n\t\t\t\tselfRoleRequestPolicy.setGroupPermission(CoreGroupPermission.ROLEREQUEST.getName());\n\t\t\t\tselfRoleRequestPolicy.setAuthorizableType(IdmRoleRequest.class.getCanonicalName());\n\t\t\t\tselfRoleRequestPolicy.setEvaluator(SelfRoleRequestEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(selfRoleRequestPolicy);\n\t\t\t\t// role rerquests in approval\n\t\t\t\tIdmAuthorizationPolicyDto roleRequestByWfPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\troleRequestByWfPolicy.setPermissions(IdmBasePermission.READ, IdmBasePermission.UPDATE);\n\t\t\t\troleRequestByWfPolicy.setRole(role1.getId());\n\t\t\t\troleRequestByWfPolicy.setGroupPermission(CoreGroupPermission.ROLEREQUEST.getName());\n\t\t\t\troleRequestByWfPolicy.setAuthorizableType(IdmRoleRequest.class.getCanonicalName());\n\t\t\t\troleRequestByWfPolicy.setEvaluator(RoleRequestByWfInvolvedIdentityEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(roleRequestByWfPolicy);\n\t\t\t\t// tree node - autocomplete\n\t\t\t\tIdmAuthorizationPolicyDto treeNodePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\ttreeNodePolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\ttreeNodePolicy.setRole(role1.getId());\n\t\t\t\ttreeNodePolicy.setGroupPermission(CoreGroupPermission.TREENODE.getName());\n\t\t\t\ttreeNodePolicy.setAuthorizableType(IdmTreeNode.class.getCanonicalName());\n\t\t\t\ttreeNodePolicy.setEvaluator(BasePermissionEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(treeNodePolicy);\n\t\t\t\t// tree type - autocomplete all\n\t\t\t\tIdmAuthorizationPolicyDto treeTypePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\ttreeTypePolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\ttreeTypePolicy.setRole(role1.getId());\n\t\t\t\ttreeTypePolicy.setGroupPermission(CoreGroupPermission.TREETYPE.getName());\n\t\t\t\ttreeTypePolicy.setAuthorizableType(IdmTreeType.class.getCanonicalName());\n\t\t\t\ttreeTypePolicy.setEvaluator(BasePermissionEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(treeTypePolicy);\n\t\t\t\t// workflow task read and execute\n\t\t\t\tIdmAuthorizationPolicyDto workflowTaskPolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tworkflowTaskPolicy.setPermissions(IdmBasePermission.READ, IdmBasePermission.EXECUTE);\n\t\t\t\tworkflowTaskPolicy.setRole(role1.getId());\n\t\t\t\tworkflowTaskPolicy.setGroupPermission(CoreGroupPermission.WORKFLOWTASK.getName());\n\t\t\t\tworkflowTaskPolicy.setEvaluator(BasePermissionEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(workflowTaskPolicy);\n\t\t\t\t// role catalogue - autocomplete\n\t\t\t\tIdmAuthorizationPolicyDto cataloguePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tcataloguePolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\tcataloguePolicy.setRole(role1.getId());\n\t\t\t\tcataloguePolicy.setGroupPermission(CoreGroupPermission.ROLECATALOGUE.getName());\n\t\t\t\tcataloguePolicy.setAuthorizableType(IdmRoleCatalogue.class.getCanonicalName());\n\t\t\t\tcataloguePolicy.setEvaluator(BasePermissionEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(cataloguePolicy);\n\t\t\t\t// autocomplete profile pictures\n\t\t\t\tIdmAuthorizationPolicyDto selfProfilePolicy = new IdmAuthorizationPolicyDto();\n\t\t\t\tselfProfilePolicy.setPermissions(IdmBasePermission.AUTOCOMPLETE);\n\t\t\t\tselfProfilePolicy.setRole(role1.getId());\n\t\t\t\tselfProfilePolicy.setGroupPermission(CoreGroupPermission.PROFILE.getName());\n\t\t\t\tselfProfilePolicy.setAuthorizableType(IdmProfile.class.getCanonicalName());\n\t\t\t\tselfProfilePolicy.setEvaluator(SelfProfileEvaluator.class);\n\t\t\t\tauthorizationPolicyService.save(selfProfilePolicy);\n\t\t\t\t//\n\t\t\t\tLOG.info(MessageFormat.format(\"Role created [id: {0}]\", role1.getId()));\n\t\t\t\t//\n\t\t\t\tIdmRoleDto role2 = new IdmRoleDto();\n\t\t\t\trole2.setCode(\"customRole\");\n\t\t\t\trole2.setCanBeRequested(true);\n\t\t\t\t// TODO: subroles are disabled for now\n\t\t\t\t//List<IdmRoleComposition> subRoles = new ArrayList<>();\n\t\t\t\t//subRoles.add(new IdmRoleComposition(role2, superAdminRole));\n\t\t\t\t//role2.setSubRoles(subRoles);\n\t\t\t\trole2 = this.roleService.save(role2);\n\t\t\t\tLOG.info(MessageFormat.format(\"Role created [id: {0}]\", role2.getId()));\n\t\t\t\t//\n\t\t\t\tIdmRoleDto roleManager = new IdmRoleDto();\n\t\t\t\troleManager.setCode(\"manager\");\n\t\t\t\troleManager.setCanBeRequested(true);\n\t\t\t\troleManager = this.roleService.save(roleManager);\n\t\t\t\tLOG.info(MessageFormat.format(\"Role created [id: {0}]\", roleManager.getId()));\n\t\t\t\t//\n\t\t\t\t//\n\t\t\t\tIdmIdentityDto identity = new IdmIdentityDto();\n\t\t\t\tidentity.setUsername(\"john\");\n\t\t\t\tidentity.setPassword(new GuardedString(\"john\"));\n\t\t\t\tidentity.setFirstName(\"John\");\n\t\t\t\tidentity.setLastName(\"Doe\");\n\t\t\t\tidentity.setEmail(\"[email protected]\");\n\t\t\t\tidentity = this.identityService.save(identity);\n\t\t\t\tLOG.info(MessageFormat.format(\"Identity created [id: {0}]\", identity.getId()));\n\t\t\t\t//\n\t\t\t\t// create prime contract\n\t\t\t\tIdmIdentityContractDto identityContract = identityContractService.getPrimeContract(identity.getId());\n\t\t\t\tif (identityContract == null) {\n\t\t\t\t\tidentityContract = identityContractService.prepareMainContract(identity.getId());\n\t\t\t\t\tidentityContract = identityContractService.save(identityContract);\n\t\t\t\t}\n\t\t\t\t//\n\t\t\t\tIdmIdentityRoleDto identityRole1 = new IdmIdentityRoleDto();\n\t\t\t\tidentityRole1.setIdentityContract(identityContract.getId());\n\t\t\t\tidentityRole1.setRole(role1.getId());\n\t\t\t\tidentityRole1 = identityRoleService.save(identityRole1);\n\t\t\t\t//\n\t\t\t\tIdmIdentityRoleDto identityRole2 = new IdmIdentityRoleDto();\n\t\t\t\tidentityRole2.setIdentityContract(identityContract.getId());\n\t\t\t\tidentityRole2.setRole(role2.getId());\n\t\t\t\tidentityRole2 = identityRoleService.save(identityRole2);\n\t\t\t\t//\n\t\t\t\tIdmIdentityDto identity2 = new IdmIdentityDto();\n\t\t\t\tidentity2.setUsername(\"jane\");\n\t\t\t\tidentity2.setFirstName(\"Jane\");\n\t\t\t\tidentity2.setPassword(new GuardedString(\"jane\"));\n\t\t\t\tidentity2.setLastName(\"Doe\");\n\t\t\t\tidentity2.setEmail(\"[email protected]\");\n\t\t\t\tidentity2 = this.identityService.save(identity2);\n\t\t\t\tLOG.info(MessageFormat.format(\"Identity created [id: {0}]\", identity2.getId()));\n\t\t\t\t//\n\t\t\t\tIdmIdentityDto identity3 = new IdmIdentityDto();\n\t\t\t\tidentity3.setUsername(\"novak\");\n\t\t\t\tidentity3.setFirstName(\"Jan\");\n\t\t\t\tidentity3.setPassword(new GuardedString(\"novak\"));\n\t\t\t\tidentity3.setLastName(\"Novák\");\n\t\t\t\tidentity3.setEmail(\"[email protected]\");\n\t\t\t\tidentity3 = this.identityService.save(identity3);\n\t\t\t\tLOG.info(MessageFormat.format(\"Identity created [id: {0}]\", identity3.getId()));\n\t\t\t\t//\n\t\t\t\tIdmTreeNodeDto organization1 = new IdmTreeNodeDto();\n\t\t\t\torganization1.setCode(\"one\");\n\t\t\t\torganization1.setName(\"Organization One\");\n\t\t\t\torganization1.setParent(rootOrganization.getId());\n\t\t\t\torganization1.setTreeType(treeType.getId());\n\t\t\t\torganization1 = this.treeNodeService.save(organization1);\n\t\t\t\t//\n\t\t\t\tIdmTreeNodeDto organization2 = new IdmTreeNodeDto();\n\t\t\t\torganization2.setCode(\"two\");\n\t\t\t\torganization2.setName(\"Organization Two\");\n\t\t\t\torganization2.setParent(rootOrganization.getId());\n\t\t\t\torganization2.setTreeType(treeType.getId());\n\t\t\t\torganization2 = this.treeNodeService.save(organization2);\n\t\t\t\t//\n\t\t\t\tIdmIdentityContractDto identityWorkPosition = new IdmIdentityContractDto();\n\t\t\t\tidentityWorkPosition.setIdentity(identityAdmin.getId());\n\t\t\t\tidentityWorkPosition.setWorkPosition(organization2.getId());\n\t\t\t\tidentityWorkPosition = identityContractService.save(identityWorkPosition);\n\t\t\t\tIdmContractGuaranteeDto contractGuarantee = new IdmContractGuaranteeDto();\n\t\t\t\tcontractGuarantee.setIdentityContract(identityWorkPosition.getId());\n\t\t\t\tcontractGuarantee.setGuarantee(identity2.getId());\n\t\t\t\tcontractGuaranteeService.save(contractGuarantee);\n\t\t\t\t//\n\t\t\t\tLOG.info(\"Demo data was created.\");\n\t\t\t\t//\t\t\t\t\n\t\t\t\tconfigurationService.setBooleanValue(PARAMETER_DEMO_DATA_CREATED, true);\n\t\t\t\t//\n\t\t\t\t// demo eav identity form\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto letter = new IdmFormAttributeDto();\n\t\t\t\tletter.setCode(FORM_ATTRIBUTE_LETTER);\n\t\t\t\tletter.setName(\"Favorite letter\");\n\t\t\t\tletter.setPlaceholder(\"Character\");\n\t\t\t\tletter.setDescription(\"Some favorite character\");\n\t\t\t\tletter.setPersistentType(PersistentType.CHAR);\n\t\t\t\tletter.setRequired(true);\n\t\t\t\tletter = formService.saveAttribute(IdmIdentity.class, letter);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto phone = new IdmFormAttributeDto();\n\t\t\t\tphone.setCode(FORM_ATTRIBUTE_PHONE);\n\t\t\t\tphone.setName(\"Phone\");\n\t\t\t\tphone.setDescription(\"Additional identitiy's phone\");\n\t\t\t\tphone.setPersistentType(PersistentType.TEXT);\n\t\t\t\tphone = formService.saveAttribute(IdmIdentity.class, phone);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto description = new IdmFormAttributeDto();\n\t\t\t\tdescription.setCode(\"description\");\n\t\t\t\tdescription.setName(\"Description\");\n\t\t\t\tdescription.setDescription(\"Some longer optional text (2000 characters)\");\n\t\t\t\tdescription.setPersistentType(PersistentType.TEXT);\n\t\t\t\tdescription.setFaceType(BaseFaceType.TEXTAREA);\n\t\t\t\tdescription = formService.saveAttribute(IdmIdentity.class, description);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto rich = new IdmFormAttributeDto();\n\t\t\t\trich.setCode(\"rich\");\n\t\t\t\trich.setName(\"RichText\");\n\t\t\t\trich.setDescription(\"Some rich text (2000 characters)\");\n\t\t\t\trich.setPersistentType(PersistentType.TEXT);\n\t\t\t\tdescription.setFaceType(BaseFaceType.RICHTEXTAREA);\n\t\t\t\trich = formService.saveAttribute(IdmIdentity.class, rich);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto sure = new IdmFormAttributeDto();\n\t\t\t\tsure.setCode(\"sure\");\n\t\t\t\tsure.setName(\"Registration\");\n\t\t\t\tsure.setPersistentType(PersistentType.BOOLEAN);\n\t\t\t\tsure = formService.saveAttribute(IdmIdentity.class, sure);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto intNumber = new IdmFormAttributeDto();\n\t\t\t\tintNumber.setCode(\"intNumber\");\n\t\t\t\tintNumber.setName(\"Int number\");\n\t\t\t\tintNumber.setPersistentType(PersistentType.INT);\n\t\t\t\tintNumber = formService.saveAttribute(IdmIdentity.class, intNumber);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto longNumber = new IdmFormAttributeDto();\n\t\t\t\tlongNumber.setCode(\"longNumber\");\n\t\t\t\tlongNumber.setName(\"Long number\");\n\t\t\t\tlongNumber.setPersistentType(PersistentType.LONG);\n\t\t\t\tlongNumber = formService.saveAttribute(IdmIdentity.class, longNumber);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto doubleNumber = new IdmFormAttributeDto();\n\t\t\t\tdoubleNumber.setCode(\"doubleNumber\");\n\t\t\t\tdoubleNumber.setName(\"Double number\");\n\t\t\t\tdoubleNumber.setPersistentType(PersistentType.DOUBLE);\n\t\t\t\tdoubleNumber = formService.saveAttribute(IdmIdentity.class, doubleNumber);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto currency = new IdmFormAttributeDto();\n\t\t\t\tcurrency.setCode(\"currency\");\n\t\t\t\tcurrency.setName(\"Price\");\n\t\t\t\tcurrency.setPersistentType(PersistentType.DOUBLE);\n\t\t\t\tcurrency.setFaceType(BaseFaceType.CURRENCY);\t\t\t\n\t\t\t\tcurrency = formService.saveAttribute(IdmIdentity.class, currency);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto date = new IdmFormAttributeDto();\n\t\t\t\tdate.setCode(FORM_ATTRIBUTE_DATE);\n\t\t\t\tdate.setName(\"Date\");\n\t\t\t\tdate.setPersistentType(PersistentType.DATE);\n\t\t\t\tdate.setRequired(true);\n\t\t\t\tdate.setDescription(\"Important date\");\n\t\t\t\tdate = formService.saveAttribute(IdmIdentity.class, date);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto datetime = new IdmFormAttributeDto();\n\t\t\t\tdatetime.setCode(FORM_ATTRIBUTE_DATETIME);\n\t\t\t\tdatetime.setName(\"Date and time\");\n\t\t\t\tdatetime.setPersistentType(PersistentType.DATETIME);\n\t\t\t\tdatetime = formService.saveAttribute(IdmIdentity.class, datetime);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto uuid = new IdmFormAttributeDto();\n\t\t\t\tuuid.setCode(FORM_ATTRIBUTE_UUID);\n\t\t\t\tuuid.setName(\"UUID\");\n\t\t\t\tuuid.setDescription(\"Some uuid value\");\n\t\t\t\tuuid.setPersistentType(PersistentType.UUID);\n\t\t\t\tuuid = formService.saveAttribute(IdmIdentity.class, uuid);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto webPages = new IdmFormAttributeDto();\n\t\t\t\twebPages.setCode(FORM_ATTRIBUTE_WWW);\n\t\t\t\twebPages.setName(\"WWW\");\n\t\t\t\twebPages.setDescription(\"Favorite web pages (every line in new value)\");\n\t\t\t\twebPages.setPersistentType(PersistentType.TEXT);\n\t\t\t\twebPages.setMultiple(true);\n\t\t\t\twebPages = formService.saveAttribute(IdmIdentity.class, webPages);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto password = new IdmFormAttributeDto();\n\t\t\t\tpassword.setCode(FORM_ATTRIBUTE_PASSWORD);\n\t\t\t\tpassword.setName(\"Custom password\");\n\t\t\t\tpassword.setPersistentType(PersistentType.TEXT);\n\t\t\t\tpassword.setConfidential(true);\n\t\t\t\tpassword.setDescription(\"Test password\");\n\t\t\t\tpassword = formService.saveAttribute(IdmIdentity.class, password);\n\t\t\t\t\n\t\t\t\tIdmFormAttributeDto byteArray = new IdmFormAttributeDto();\n\t\t\t\tbyteArray.setCode(\"byteArray\");\n\t\t\t\tbyteArray.setName(\"Byte array\");\n\t\t\t\tbyteArray.setPersistentType(PersistentType.BYTEARRAY);\n\t\t\t\tbyteArray.setConfidential(false);\n\t\t\t\tbyteArray.setDescription(\"Test byte array\");\n\t\t\t\tbyteArray.setPlaceholder(\"or image :-)\");\n\t\t\t\tbyteArray = formService.saveAttribute(IdmIdentity.class, byteArray);\t\t\t\t\n\t\t\t\t\n\t\t\t\tList<IdmFormValueDto> values = new ArrayList<>();\t\t\t\t\n\t\t\t\tIdmFormValueDto phoneValue = new IdmFormValueDto();\n\t\t\t\tphoneValue.setFormAttribute(phone.getId());\n\t\t\t\tphoneValue.setStringValue(\"12345679\");\n\t\t\t\tvalues.add(phoneValue);\n\t\t\t\t\n\t\t\t\tformService.saveValues(identity.getId(), IdmIdentity.class, null, values);\n\t\t\t\t\n\t\t\t\t//\n\t\t\t\t// demo eav role form\n\t\t\t\tIdmFormAttributeDto roleExt = new IdmFormAttributeDto();\n\t\t\t\troleExt.setCode(\"extAttr\");\n\t\t\t\troleExt.setName(\"Ext.attr\");\n\t\t\t\troleExt.setPersistentType(PersistentType.TEXT);\n\t\t\t\troleExt.setConfidential(false);\n\t\t\t\troleExt.setDescription(\"Role's custom extended attribute\");\n\t\t\t\t\n\t\t\t\troleExt = formService.saveAttribute(IdmRole.class, roleExt);\n\t\t\t\t\n\t\t\t\t//\n\t\t\t\t// demo eav tree node form\n\t\t\t\tIdmFormAttributeDto treeNodeExt = new IdmFormAttributeDto();\n\t\t\t\ttreeNodeExt.setCode(\"extAttr\");\n\t\t\t\ttreeNodeExt.setName(\"Ext.attr\");\n\t\t\t\ttreeNodeExt.setPersistentType(PersistentType.TEXT);\n\t\t\t\ttreeNodeExt.setConfidential(false);\n\t\t\t\ttreeNodeExt.setDescription(\"Tree node's custom extended attribute\");\n\t\t\t\t\n\t\t\t\ttreeNodeExt = formService.saveAttribute(IdmTreeNode.class, treeNodeExt);\n\t\t\t\t\n\t\t\t\t//\n\t\t\t\t// demo eav identity contract's form\n\t\t\t\tIdmFormAttributeDto identityContractExt = new IdmFormAttributeDto();\n\t\t\t\tidentityContractExt.setCode(\"extAttr\");\n\t\t\t\tidentityContractExt.setName(\"Ext.attr\");\n\t\t\t\tidentityContractExt.setPersistentType(PersistentType.TEXT);\n\t\t\t\tidentityContractExt.setConfidential(false);\n\t\t\t\tidentityContractExt.setDescription(\"Identity contract's custom extended attribute\");\n\t\t\t\t\n\t\t\t\tidentityContractExt = formService.saveAttribute(IdmIdentityContract.class, identityContractExt);\n\t\t\t}\n\t\t} catch(Exception ex) {\n\t\t\tLOG.warn(\"Demo data was not created\", ex);\n\t\t} finally {\n\t\t\tSecurityContextHolder.clearContext();\n\t\t}\n\t}", "public AuthenticationRequestHandler() throws ServletException {\n super();\n \n try {\n authenticationManager = new AuthenticationManager();\n sessionManager = new SessionManager();\n profileManager = new ProfileManager();\n } catch (final InternalBackEndException e) {\n throw new ServletException(\"AuthenticationManager is not accessible because: \" + e.getMessage());\n }\n }", "@Override\n\t\tpublic void init(AuthenticationManagerBuilder auth) throws Exception {\n\t\t\t// @formatter:off\n\t\t\tauth.jdbcAuthentication().dataSource(dataSource).withUser(\"dave\")\n\t\t\t\t\t.password(\"secret\").roles(\"USER\");\n\t\t\tauth.jdbcAuthentication().dataSource(dataSource).withUser(\"anil\")\n\t\t\t\t\t.password(\"password\").roles(\"ADMIN\");\n\t\t\t// @formatter:on\n\t\t}", "@Override\n\tpublic boolean isSecured() {\n\t\treturn false;\n\t}", "public SessionsResource() {\n\t\tsuper();\n\t\tLOG.trace(\"Start SessionsResource#SessionsResource()\");\n\t\tsetValidator(new SessionResourceValidator(this));\n\t\tLOG.trace(\"Complete SessionsResource#SessionsResource()\");\n\t}", "@Local\npublic interface UsersMgrLocal {\n\n String ROLE_GUEST = \"guest\";\n\n String auth(String login, String password);\n\n List<JsonPerson> getAll();\n\n JsonPerson getByUUID(String token);\n\n Staff getStaffByUUID(String token);\n\n String create(JsonPerson jsonNewPerson);\n\n boolean isLoginUsed(String login);\n\n String updateStaff(Staff newStaff, JsonPerson jsonNewPerson);\n\n void deleteStaff(Staff staff, String token);\n}", "@Override\n\tprotected void checkLoginRequired() {\n\t\treturn;\n\t}", "protected Manager(String name, String password){\r\n super(name);\r\n this.password = password;\r\n }", "public interface IDataSource {\r\n\t\r\n\t/**\r\n\t * Method to check if there are any stored credential in the data store for the user.\r\n\t * @param userId\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public boolean checkAuth(String userId) throws IOException;\r\n\t\r\n\t/**\r\n\t * Method to build the Uri used to redirect the user to the service provider site to give authorization.\r\n\t * @param userId\r\n\t * @param authCallback callback URL used when the app was registered on the service provider site. Some providers require\r\n\t * to specify it with every request.\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String buildAuthRequest(String userId, String authCallback) throws IOException;\r\n\t\r\n\t/**\r\n\t * Once the user has authorized the application, the provider redirect it on the app using the callback URL. This method \r\n\t * saves the credentials sent back with the request in the data store.\r\n\t * @param userId\r\n\t * @param params HashMap containing all the parameters of the request\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public void saveAuthResponse(String userId, HashMap<String, String> params) throws IOException;\r\n\t\r\n\t/**\r\n\t * Updates data of a single resource\r\n\t * @param userId\r\n\t * @param name resource name as in the XML config file\r\n\t * @param lastUpdate\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String updateData(String userId, String resourceName, long lastUpdate) throws IOException;\r\n\t\r\n\t/**\r\n\t * Updates data of all resources\r\n\t * @param userId\r\n\t * @param lastUpdate\r\n\t * @return\r\n\t * @throws IOException\r\n\t */\r\n\tabstract public String[] updateAllData(String userId, long lastUpdate) throws IOException;\r\n\t\r\n}", "RemoteUserManager() { }", "public interface AuthManager\n{\n void checkAuthAnnounce(Id<Node> nodeId, DynamicAnnouncement announcement, HttpServletRequest request);\n\n void checkAuthDelete(Id<Node> nodeId, HttpServletRequest request);\n\n void checkAuthReplicate(HttpServletRequest request);\n}", "public void shiro_signin(){\n Factory<SecurityManager> factory = new IniSecurityManagerFactory(\"classpath:shiro.ini\");\n SecurityManager securityManager = factory.getInstance();\n\n // for this simple example quickstart, make the SecurityManager\n // accessible as a JVM singleton. Most applications wouldn't do this\n // and instead rely on their container configuration or web.xml for\n // webapps. That is outside the scope of this simple quickstart, so\n // we'll just do the bare minimum so you can continue to get a feel\n // for things.\n SecurityUtils.setSecurityManager(securityManager);\n\n // Now that a simple Shiro environment is set up, let's see what you can do:\n\n // get the currently executing user:\n Subject currentUser = SecurityUtils.getSubject();\n\n // Do some stuff with a Session (no need for a web or EJB container!!!)\n Session session = currentUser.getSession();\n session.setAttribute(\"someKey\", \"aValue\");\n String value = (String) session.getAttribute(\"someKey\");\n if (value.equals(\"aValue\")) {\n logger.info(\"Retrieved the correct value! [\" + value + \"]\");\n }\n\n // let's login the current user so we can check against roles and permissions:\n if (!currentUser.isAuthenticated()) {\n UsernamePasswordToken token = new UsernamePasswordToken(\"root\", \"root\");\n token.setRememberMe(true);\n try {\n currentUser.login(token);\n } catch (UnknownAccountException uae) {\n logger.info(\"There is no user with username of \" + token.getPrincipal());\n } catch (IncorrectCredentialsException ice) {\n logger.info(\"Password for account \" + token.getPrincipal() + \" was incorrect!\");\n } catch (LockedAccountException lae) {\n logger.info(\"The account for username \" + token.getPrincipal() + \" is locked. \" +\n \"Please contact your administrator to unlock it.\");\n }\n // ... catch more exceptions here (maybe custom ones specific to your application?\n catch (AuthenticationException ae) {\n //unexpected condition? error?\n }\n }\n\n //say who they are:\n //print their identifying principal (in this case, a username):\n logger.info(\"User [\" + currentUser.getPrincipal() + \"] logged in successfully.\");\n\n //test a role:\n if (currentUser.hasRole(\"admin\")) {\n logger.info(\"has admin role\");\n } else {\n logger.info(\"no admin role\");\n }\n\n //test a typed permission (not instance-level)\n if (currentUser.isPermitted(\"order:read:finished\")) {\n logger.info(\"has order read \");\n } else {\n logger.info(\"no order read \");\n }\n }", "public interface AccessManager {\n\n /**\n * predefined action constants\n */\n public String READ_ACTION = javax.jcr.Session.ACTION_READ;\n public String REMOVE_ACTION = javax.jcr.Session.ACTION_REMOVE;\n public String ADD_NODE_ACTION = javax.jcr.Session.ACTION_ADD_NODE;\n public String SET_PROPERTY_ACTION = javax.jcr.Session.ACTION_SET_PROPERTY;\n\n public String[] READ = new String[] {READ_ACTION};\n public String[] REMOVE = new String[] {REMOVE_ACTION};\n\n /**\n * Determines whether the specified <code>permissions</code> are granted\n * on the item with the specified path.\n *\n * @param parentState The node state of the next existing ancestor.\n * @param relPath The relative path pointing to the non-existing target item.\n * @param actions An array of actions that need to be checked.\n * @return <code>true</code> if the actions are granted; otherwise <code>false</code>\n * @throws ItemNotFoundException if the target item does not exist\n * @throws RepositoryException if another error occurs\n */\n boolean isGranted(NodeState parentState, Path relPath, String[] actions) throws ItemNotFoundException, RepositoryException;\n\n /**\n * Determines whether the specified <code>permissions</code> are granted\n * on the item with the specified path.\n *\n * @param itemState\n * @param actions An array of actions that need to be checked.\n * @return <code>true</code> if the actions are granted; otherwise <code>false</code>\n * @throws ItemNotFoundException if the target item does not exist\n * @throws RepositoryException if another error occurs\n */\n boolean isGranted(ItemState itemState, String[] actions) throws ItemNotFoundException, RepositoryException;\n\n\n /**\n * Returns true if the existing item with the given <code>ItemId</code> can\n * be read.\n *\n * @param itemState\n * @return\n * @throws ItemNotFoundException\n * @throws RepositoryException\n */\n boolean canRead(ItemState itemState) throws ItemNotFoundException, RepositoryException;\n\n /**\n * Returns true if the existing item state can be removed.\n *\n * @param itemState\n * @return\n * @throws ItemNotFoundException\n * @throws RepositoryException\n */\n boolean canRemove(ItemState itemState) throws ItemNotFoundException, RepositoryException;\n\n /**\n * Determines whether the subject of the current context is granted access\n * to the given workspace.\n *\n * @param workspaceName name of workspace\n * @return <code>true</code> if the subject of the current context is\n * granted access to the given workspace; otherwise <code>false</code>.\n * @throws NoSuchWorkspaceException if a workspace with the given name does not exist.\n * @throws RepositoryException if another error occurs\n */\n boolean canAccess(String workspaceName) throws NoSuchWorkspaceException, RepositoryException;\n}", "void enableSecurity();", "private void initLogin() {\n try {\n initValidation();\n initRepository();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "protected IAMRoleManager() throws MalformedURLException {\n\t\tinit(new URL(\"http://localhost:8081/iam/ProjectRoleServlet\"));\n\t}", "public LogOnSystem() throws InvalidUrlException, FileNotFoundException {\n database = DatabaseConnectionURL.getInstance();\n }", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public interface SecurityService {\n\n /**\n * Try to authenticate an user\n *\n * @param credentials to authenticate.\n * @return LoggedUser instance associated with credentials\n * @throws IOException if error generating token\n */\n LoggedUser authenticate(@Valid AccountCredentials credentials) throws IOException;\n\n /**\n * Creates a new LoggedUser instance with the requested role\n *\n * @param roleId requested role id.\n * @return new LoggedUser instance\n * @throws IOException if error generating token\n */\n LoggedUser changeRole(String roleId) throws IOException;\n\n /**\n * Gets info from logged user (LoggedUser instance)\n *\n * @return LoggedUser instance\n */\n LoggedUser getLoggedUser();\n\n /**\n * Hashes a value\n *\n * @param value value to be hashed.\n * @return hashed value\n */\n String hashValue(String value);\n}", "@Override\n public boolean auth(String email, String pseudonyme) {\n Properties props = new Properties();\n props.setProperty(\"org.omg.CORBA.ORBInitialHost\", \"localhost\");\n props.setProperty(\"org.omg.CORBA.ORBInitialPort\", \"3700\");\n props.setProperty(\"java.naming.factory.initial\", \"com.sun.enterprise.naming.SerialInitContextFactory\");\n props.setProperty(\"java.naming.factory.url.pkgs\", \"com.sun.enterprise.naming\");\n props.setProperty(\"java.naming.factory.state\", \"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl\");\n \n StatelessDirectoryManagerBeanRemote sb = null;\n InitialContext ic;\n \n try {\n ic = new InitialContext(props);\n sb = (StatelessDirectoryManagerBeanRemote)ic.lookup(\"com.master2.datascale.directorymanager.bean.StatelessDirectoryManagerBeanRemote\");\n\t\t\t\n } catch (NamingException ex) {\n Logger.getLogger(StatefulAuctionManagerBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n\t\t\t\n return sb.auth(email, pseudonyme);\n }", "public interface SecurityService {\n\n PasswordEncoder getPasswordEncoder();\n\n void createAdminUser(NewUser newUser);\n\n org.springframework.security.core.userdetails.User getCurrentUserFromCtx();\n\n User getCurrentUser();\n\n void createOfficeUser(NewOfficeUser newOfficeUser);\n\n void lockUser(User user);\n\n void unLockUser(User user);\n\n void changePassword(ChangePassword changePassword);\n\n boolean resetPassword(User user);\n\n boolean isLogged();\n\n\n}", "protected SecurityProvider getProvider(ManagementContext mgmt) {\n return new DelegatingSecurityProvider(mgmt);\n }", "protected void onInit() {\n super.onInit();\n securityManager = (com.sustain.security.SustainSecurityManager) getBean(\"securityManager\");\n }", "@Override\n \t\t\t\tpublic JDBCConnectionCredentials getDirtyDatabaseCredentials() {\n \t\t\t\t\treturn new JDBCConnectionCredentials(\"jdbc:virtuoso://localhost:1112/UID=dba/PWD=dba\", \"dba\", \"dba\");\n \t\t\t\t}", "private ResourceManager() {}", "private ServicioLogin() {\n super();\n }", "public interface UserRealm {\n\n /**\n * Get the AuthorizationReader of the system\n *\n * @return The AuthorizationReader the system\n * @throws UserStoreException\n */\n AuthorizationManager getAuthorizationManager() throws UserStoreException;\n\n /**\n * Get the UserStoreManager of the system\n *\n * @return The UserStoreManager of the system\n * @throws UserStoreException\n */\n UserStoreManager getUserStoreManager() throws UserStoreException;\n\n /**\n * Get the ClaimManager of the system\n *\n * @return The ClaimManager of the system\n * @throws UserStoreException\n */\n ClaimManager getClaimManager() throws UserStoreException;\n\n /**\n * Get the ProfileConfigurationManager of the system\n *\n * @return The ProfileConfigurationManager of the system\n * @throws UserStoreException\n */\n ProfileConfigurationManager getProfileConfigurationManager() throws UserStoreException;\n\n /**\n * Get the realm configuration\n *\n * @return\n * @throws UserStoreException\n */\n RealmConfiguration getRealmConfiguration() throws UserStoreException;\n\n}", "public static void init()\n\t{\n\t\tusername2accesses.clear();\n\t\t//--- adds info.json in ./Home/Administrator for the system admin ---//\n\t\tfinal String adminAccessPath = Hierarchies.getSectionDir() + \"/\" + Hierarchies.getInfoFileName() + \".\" + Directories.getFileExt();\n\t\tfinal File adminAccessFile = new File(adminAccessPath);\n\t\tif (!adminAccessFile.exists())\n\t\t{\n\t\t\tfinal Access[] accesses = new Access[1];\n\t\t\taccesses[0] = new Access(\"admin\", Role.ADMINISTRATOR, null);\n\t\t\tfinal HierarchyItem hierarchyItem = new HierarchyItem(null, null, null, accesses);\n\t\t\tfinal String hierarchyItemAsJson = new Gson().toJson(hierarchyItem);\n\t\t\tFileIO.writeToFile(adminAccessPath, hierarchyItemAsJson);\n\t\t}\n\t\t//--- reads all JSON files recursively in ./Home/Administrator ---//\n\t\t//--- contents of JSON files will be processed to be cached in hash map username2accesses ---//\n\t\tfinal File file = new File(Hierarchies.getSectionDir());\n\t\tfinal Collection<File> jsonFiles = FileUtils.listFiles(file, new String[]{Directories.getFileExt()}, true);\n\t\tfor (File infoFile : jsonFiles) manage(infoFile, Op.STORE);\n\t}", "public interface Client {\n\n\t/**\n\t * Provides the ID of the current user. In case the application doesn't have\n\t * authentication, a static ID must be defined.\n\t * \n\t * @return the ID of the current user.\n\t */\n\tString getUserId();\n\n\t/**\n\t * Provides the username of the current user. In case the application\n\t * doesn't have authentication, a static ID must be defined.\n\t * \n\t * @return the username of the current user.\n\t */\n\tString getUserUsername();\n\n\t/**\n\t * Provides the password of the current user. In case the application\n\t * doesn't have authentication, a static password must be defined.\n\t * \n\t * @return the password of the current user.\n\t */\n\tString getUserPassword();\n\t\n\t/**\n\t * Provides the password hash of the current user.\n\t * \n\t * @return the password hash of the current user.\n\t */\n\tString getUserPasswordHash();\n\t\n\t/**\n\t * Sets the password hash of the current user\n\t * \n\t * @param passwordHash the password hash of the current user.\n\t */\n\tvoid setUserPasswordHash(String passwordHash);\n\n\t/**\n\t * Sets the username of the current user\n\t * \n\t * @param username the username of the current user.\n\t */\n\tvoid setUserUsername(String username);\n\n\t/**\n\t * Provides the ability to clear the user ID, username and user password.\n\t */\n\tvoid logout();\n\t\n\t/**\n\t * Provides the ability to track the current menu item.\n\t */\n\tvoid setMenuItem(MenuItem menuItem);\n\t\n\t/**\n\t * Provides the ability to track the current resource item.\n\t */\n\tvoid setResourceItem(BaseContentItem resourceItem);\n\t\n\t/**\n\t * Provides the ability to open a resource.\n\t */\n\tvoid openResource(String resourcePath);\n\t\n\t/**\n\t * Gets a value for a key on the native storage. Native storage is provided by the framework. It consists in a way to store key/value pairs. Like the HTML5 DB, this kind of storage is cleaned up automatically if the user removes the application. This storage should be used specially if you want to share data between the HTML content and native side of the application, otherwise we highly recommend use HTML5 DB. There are two ways of store data on the native storage, globally and content-specific.\n\t *\n\t * <p>\n\t * <strong>Globally</strong>\n\t * It's global on the application. The key can be retrieved from any content in any part of the system, as well as in any part of the native code. You must take care that the key can be used by other content developer. Below you can find the API calls to store and retrieve key/value pairs.\n\t * <ul>\n\t * <li>clientPlugin.getValue(MFStoreType.GLOBAL, key, callback);</li>\n\t * </ul>\n\t * </p>\n\t * <p>\n\t * <strong>Content-specific</strong>\n\t * It's connected to the current resource/menu-item. Below you can find the API calls to store and retrieve key/value pairs.\n\t * <ul>\n\t * <li>clientPlugin.getValue(MFStoreType.SPECIFIC, key, callback);</li>\n\t * </ul>\n\t * </p>\n\t * \n\t * @param type\t\tThe type of the native storage.\n\t * @param key\t\tThe key name.\n\t */\n\tString getValue(String type, String key);\n\t\n\t/**\n\t * Sets a value for a key on the native storage. Native storage is provided by the framework. It consists in a way to store key/value pairs. Like the HTML5 DB, this kind of storage is cleaned up automatically if the user removes the application. This storage should be used specially if you want to share data between the HTML content and native side of the application, otherwise we highly recommend use HTML5 DB. There are two ways of store data on the native storage, globally and content-specific.\n\t * <p>\n\t * <strong>Globally</strong>\n\t * It's global on the application. The key can be retrieved from any content in any part of the system, as well as in any part of the native code. You must take care that the key can be used by other content developer. Below you can find the API calls to store and retrieve key/value pairs.\n\t * <ul>\n\t * <li>clientPlugin.setValue(MFStoreType.GLOBAL, key, value, callback);</li>\n\t * </ul>\n\t * </p>\n\t * <p>\n\t * <strong>Content-specific</strong>\n\t * It's connected to the current resource/menu-item. Below you can find the API calls to store and retrieve key/value pairs.\n\t * <ul>\n\t * <li>clientPlugin.setValue(MFStoreType.SPECIFIC, key, value, callback);</li>\n\t * </ul>\n\t * </p>\n\t * \n\t * @param type\t\tThe type of the native storage.\n\t * @param key\t\tThe key name.\n\t * @param value\t\tThe value.\n\t */\n\tboolean setValue(String type, String key, String value);\n\n\t/**\n\t * Forces a sync. This method should be only used when user has set\n\t * {@link SyncType} to MANUAL.\n\t * \n\t */\n\tvoid sync();\n\n\t/**\n\t * Tracks the access to the current object. The time spent on this object is\n\t * calculated between calls to this method.\n\t * \n\t * @param sender\t\t\tThe sender. This will be 'mf' for internal mobile framework calls. It's a string value.\n\t * @param additionalInfo \tOptional additional information. This information must be used by content developers to track internal pages.\n\t */\n\tvoid track(String sender, String additionalInfo);\n\t\n\t/**\n\t * Tracks some information.\n\t * \n\t * @param sender\t\t\tThe sender. This will be 'mf' for internal mobile framework calls. It's a string value.\n\t * @param objectId\t\t\tObjectId.\n\t * @param additionalInfo \tOptional additional information. This information must be used by content developers to track internal pages.\n\t */\n\tvoid track(String sender, String objectId, String additionalInfo);\n\n\t/**\n\t * Provides the list of all available packages, installed or not.\n\t * \n\t * @param callback\n\t * the list of all available packages.\n\t */\n\tvoid getPackageCatalogue(PackageCatalogueRetrieved callback);\n\t\n\t/**\n\t * Retrieves the local path root for a particular course.\n\t * \n\t * @param courseId\t\t\tThe course id.\n\t * @param phoneGapCallback\tThe PhoneGap callback.\n\t * @param callback\t\t\tThe callback function. \n\t */\n\tvoid getCourseLocalPathRoot(String courseId, String phoneGapCallback, GetCourseLocalPathRootCompleted callback);\n\t\n\t/**\n\t * Retrieves the local path root for the currently opened course.\n\t * \n\t * @param phoneGapCallback\tThe PhoneGap callback.\n\t * @param callback\t\t\tThe callback function. \n\t */\n\tvoid getCurrentCourseLocalPathRoot(String phoneGapCallback, GetCourseLocalPathRootCompleted callback);\n\t\n\t/**\n\t * Initialises a temporary folder for the currently opened course.\n\t * If the folder already exists, the folder will be cleared. If it does not exist, it will be created.\n\t * \n\t * Callback will return a JSON object with the following key and value pairs:\n\t * \ttempFolderPath\tThe full local path to the temporary folder in the course directory. E.g. /mnt/sdcard/.../{uniqueCourseFolderId}/temp\n\t * \n\t * Error callback will return a JSON object with the following key and value pairs:\n\t * error\t\t\tAn error string to determine why the native method call failed.\n\t * \n\t * @param phoneGapCallback\tThe PhoneGap callback.\n\t * @param callback\t\t\tThe callback function. \n\t */\n\tvoid initialiseCurrentCourseLocalTempFolder(String phoneGapCallback, InitialiseCurrentCourseLocalTempFolderCompleted callback);\n\t\n\t/**\n\t * Clears the temporary folder for the currently opened course.\n\t * If the folder exists, the folder will be cleared and removed. If the folder does not exist, an error will occur.\n\t * \n\t * Callback will not return a value and will be invoked when the operation has finished.\n\t * \n\t * Error callback will return a JSON object with the following key and value pairs:\n\t * error\t\t\tAn error string to determine why the native method call failed.\n\t * \n\t * @param phoneGapCallback\tThe PhoneGap callback.\n\t * @param callback\t\t\tThe callback function.\n\t */\n\tvoid clearCurrentCourseLocalTempFolder(String phoneGapCallback, PhoneGapOperationNoResultCompleted callback);\n}", "public UserAuthenticationDAOImpl() {\n\t\tinitUsers();\n\t}", "public static SecureEnvironment getInstance() {\n // if the security manager has been changed, see if the caller is allowed to access it\n checkAccess();\n return instance;\n }", "public interface IJ2EESecurity {\r\n /**\r\n * Change the users password in the J2EE Security Realm\r\n * @param request\r\n * @param response\r\n * @return\r\n */\r\n public boolean changePassword(HttpServletRequest request, HttpServletResponse response);\r\n\r\n /**\r\n * Reset a user's password in the J2EE Security Realm\r\n * @param request\r\n * @param userId userid\r\n * @param password new password\r\n */\r\n void resetPassword(HttpServletRequest request, String userId, String password) ;\r\n\r\n /**\r\n * Log a user out, invalidating all sessions and J2EE Security data\r\n * @param request\r\n */\r\n void logout(HttpServletRequest request);\r\n\r\n /**\r\n * Determines if a user already exists in the J2EE Security Realm\r\n * @param request\r\n * @param userId userid\r\n * @return true/false\r\n */\r\n boolean userExists(HttpServletRequest request, String userId);\r\n\r\n}", "@Override\n\tpublic boolean managerLogin(Context ctx) {\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.managerLogIn(username, password);\n\t\treturn result;\n\t}", "private void getGredentialsFromMemoryAndSetUser()\n\t{\n\t SharedPreferences settings = getSharedPreferences(LOGIN_CREDENTIALS, 0);\n\t String username = settings.getString(\"username\", null);\n\t String password = settings.getString(\"password\", null);\n\t \n\t //Set credentials to CouponsManager.\n\t CouponsManager.getInstance().setUser(new User(username, password));\n\t \n\t}", "private void initServices() {\n PortletServiceFactory factory = SportletServiceFactory.getInstance();\n // Get instance of password manager service\n try {\n this.userManager =\n (UserManagerService)\n factory.createPortletService(UserManagerService.class, null, true);\n } catch (Exception e) {\n _log.error(\"Unable to get instance of password manager service!\", e);\n }\n }", "public void initialize() {\n\n // DO NOT DELETE\n if (userRoleRepository.count() == 0) {\n userRoleRepository.saveAll(List.of(\n userRoleFactory.of(ROLE_USER.name()),\n userRoleFactory.of(ROLE_ADMIN.name())\n ));\n }\n\n // DO NOT DELETE\n if (userRepository.count() == 0) {\n userRepository.saveAll(List.of(\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"[email protected]\",\n new BCryptPasswordEncoder().encode(\"Lens\"),\n \"Lens Huygh\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"[email protected]\",\n new BCryptPasswordEncoder().encode(\"Thomas\"),\n \"Thomas Fontaine\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole(), retrieveUserRole()),\n \"[email protected]\",\n new BCryptPasswordEncoder().encode(\"Paul\"),\n \"Paul Gerarts\"),\n userFactory.ofSecurity(\n List.of(retrieveUserRole()),\n \"[email protected]\",\n new BCryptPasswordEncoder().encode(\"user\"),\n \"User McUserson\"),\n userFactory.ofSecurity(\n List.of(retrieveAdminRole()),\n \"[email protected]\",\n new BCryptPasswordEncoder().encode(\"admin\"),\n \"Admin McAdminson\"\n )\n ));\n }\n }", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }", "public interface Authentication extends Component {\n /**\n * Given an incoming HTTP request, determine who the user is and create a UserPermissions object with that\n * information. If the user cannot be identified and/or authenticated, don't set those attributes and throw an\n * exception. Otherwise return a UserPermissions object.\n */\n UserPermissions authenticate (Request request);\n}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "public SysAdminAccounts()\n {\n this.setBaseURI(RequestProperties.TRACK_BASE_URI());\n this.setPageName(PAGE_SYSADMIN_ACCOUNTS);\n this.setPageNavigation(new String[] { PAGE_LOGIN, PAGE_MENU_TOP });\n this.setLoginRequired(true);\n //this.setCssDirectory(\"extra/css\");\n }", "public void enclencheSecurite() {\r\n\t\tisSecuriteEnclenchee = true;\r\n\t}", "public LoginManager() {\r\n }", "private KeyManager getKeyManager() {\n\t\tDefaultResourceLoader loader = new FileSystemResourceLoader();\n\t\tResource storeFile = loader.getResource(\"file:\" + samlProps.get(\"keyStoreFilePath\"));\n\t\tMap<String, String> keyPasswords = new HashMap<String, String>();\n\t\tkeyPasswords.put(samlProps.get(\"keyAlias\"), samlProps.get(\"keyPasswd\"));\n\n\t\treturn new JKSKeyManager(storeFile, samlProps.get(\"keyStorePasswd\"), keyPasswords, samlProps.get(\"keyAlias\"));\n\t}", "private UserManagerImpl()\r\n\t{\r\n\t\tsuper();\r\n\t\t\r\n\t\t// set the singleton instance of UserManagerImpl class in the UserManager so that\r\n\t\t// UserManager.getInstance() also points to the singleton instance of UserManagerImpl \r\n\t\tsetInstance(this);\r\n\t}", "private UserInterface() {\r\n\t\tif (yesOrNo(\"Look for saved data and use it?\")) {\r\n\t\t\tretrieve();\r\n\t\t} else {\r\n\t\t\tstore = Store.instance();\r\n\t\t}\r\n\t}", "private Session getSession() throws RepositoryException {\n return getRepository().loginAdministrative(null);\n }", "private void loadLogin(){\n }", "public abstract User login(User data);", "void ensureAdminAccess() {\n Account currentAccount = SecurityContextHolder.getContext().getAccount();\n if (!currentAccount.isAdmin()) {\n throw new IllegalStateException(\"Permission denied.\");\n }\n }", "@Override\r\n\tpublic void login() {\n\r\n\t}", "public UserManagementImpl() {\r\n this.login = new LoginImpl();\r\n this.signUp = new SignUpImpl();\r\n }", "SecurityManager getSecurityManager();", "SecurityManager getSecurityManager();", "public AuthorizationManager(String userName) throws Exception {\n\t\tNCIASecurityManager mgr = (NCIASecurityManager)SpringApplicationContext.getBean(\"nciaSecurityManager\");\n String userId = mgr.getUserId(userName);\n securityRights = mgr.getSecurityMap(userId);\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}", "private void initialData() {\n\n// if (MorphiaObject.datastore.createQuery(SecurityRole.class).countAll() == 0) {\n// for (final String roleName : Arrays\n// .asList(controllers.Application.USER_ROLE)) {\n// final SecurityRole role = new SecurityRole();\n// role.roleName = roleName;\n// MorphiaObject.datastore.save(role);\n// }\n// }\n }", "@Override\r\n\tpublic boolean needsCredentials() {\n\t\treturn false;\r\n\t}", "private DataManager() {\n databaseManager = DatabaseManager.getInstance();\n }", "@Override\n default ManagerPrx ice_preferSecure(boolean b)\n {\n return (ManagerPrx)_ice_preferSecure(b);\n }", "public interface IUserManagement {\n\n\t/**\n\t * Search users related to a realm It\n\t *\n\t * @param realm realm name\n\t * @return Returns a List<UserRepresentation>\n\t */\n\tList<UserRepresentation> getUsers(final String realm);\n\n\t/**\n\t * Search of an created user account. It will search with overgiven username in\n\t * the related user management system.\n\t *\n\t * @param username user name\n\t * @return Returns a List<UserRepresentation> with 1 item, if the user is found,\n\t * otherwise 0\n\t */\n\tList<UserRepresentation> searchUserAccount(final String username);\n\n\t/**\n\t * Returns all groups for the given keycloak user\n\t *\n\t * @param userId user id\n\t * @return Returns a List<GroupRepresentation>\n\t */\n\tList<GroupRepresentation> getUserGroups(final String userId);\n\n\t/**\n\t * Returns user representation object from keycloak\n\t *\n\t * @param userId keycloak user id\n\t * @return UserRepresentation instance\n\t */\n\tUserRepresentation getUserRepresentation(final String userId);\n\n\t/**\n\t * Creates an user account with all parameters in the user account management\n\t * system. The user account needs to be activated after creation before login.\n\t *\n\t * @param username user name\n\t * @param firstname first name\n\t * @param lastname last name\n\t * @param email email\n\t * @param password password\n\t * @return HttpStatus CREATED, if creation was successful. In all other cases\n\t * the response of the original response.\n\t */\n\tHttpStatus createUserAccount(final String realm, final String username, final String firstName,\n\t\t\tfinal String lastName, final String email, final String password);\n\n\t/**\n\t * Creates a group account with all parameters in the user account management\n\t * system.\n\t *\n\t * @param groupName group name\n\t * @return HttpStatus CREATED, if creation was successful. In all other cases\n\t * the response of the original response.\n\t */\n\tHttpStatus createGroup(final String groupName);\n\n\t/**\n\t * Get a group representation data by groupName\n\t *\n\t * @param groupName group name\n\t * @return GroupRepresentation instance\n\t */\n\tGroupRepresentation getGroup(final String groupName);\n\n\t/**\n\t * Add a user to a groupId\n\t *\n\t * @param user user\n\t * @param groupId groupId\n\t */\n\tvoid addUserToGroup(final String userId, final String groupId);\n\n\t/**\n\t * Add a realm to a user\n\t *\n\t * @param user username\n\t * @param realm realm\n\t */\n\tvoid addRealmToUser(final String username, final String realm);\n\n\t/**\n\t * Add a realm to a user\n\t *\n\t * @param user username\n\t * @param realm realm\n\t */\n\tvoid addRealmToUserAccount(final String userId, final String realm);\n\n\t/**\n\t * Activation of an created user account. It will search with overgiven username\n\t * in the related user management system. If it finds the user account, it will\n\t * activate that account. After this step the user can login.\n\t *\n\t * @param username user name\n\t * @return HttpStatus OK, if activation was successful, NOT_FOUND if username\n\t * was not found in the system.\n\t */\n\tHttpStatus activateUserAccount(final String username);\n\n\t/**\n\t * Reset the password of an created user account. If it finds the user account,\n\t * it will reset the password. After this step the user can login with the new\n\t * password.\n\t *\n\t * @param userRepresentation UserRepresentation instance\n\t * @param password password\n\t */\n\tHttpStatus resetPassword(final UserRepresentation userRepresentation, final String password);\n\n\tvoid updateEmailUserAccount(final String userId, final String email);\n\n\tvoid updateNameUserAccount(final String userId, final String name);\n\n\tvoid updateSurnameUserAccount(final String userId, final String surname);\n\n\tvoid disableUserAccount(final String userId);\n\n\tpublic RealmResource createRealmIfNotExists(final String realmName, final String displayName, final String... clients);\n\n\tpublic List<RealmInfo> getRealmsForUser(final String username);\n\n\tpublic void addClientToRealm(final String realm, final String client, final String... redirectUrls);\n\n\tvoid addRolesToRealm(final String realm, final String client, final List<RoleInfo> roles);\n\n\tList<String> getUsersForRealm(final String realm);\n\n\tList<String> getRolesForUser(final String user, final String realm, final String client);\n\n\tList<RoleInfo> getRolesForClient(final String realm, final String client);\n\n\tvoid setRolesForUser(final String realm, final String client, final List<UserRoles> userRoles);\n\n\tvoid setApplicationRolesForUser(final String realm, final String user, final List<ApplicationRoles> appRoles);\n}", "public interface ISecurityMonitorService {\n\n\n}", "public Secure() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "@Before(unless = { \"signin\", \"doLogin\" })\n\tprivate static void checkAuthentification() {\n\t\t// get ID from secure social plugin\n\t\tString uid = session.get(PLAYUSER_ID);\n\t\tif (uid == null) {\n\t\t\tsignin(null);\n\t\t}\n\n\t\t// get the user from the store. TODO Can also get it from the cache...\n\t\tUser user = null;\n\t\tif (Cache.get(uid) == null) {\n\t\t\ttry {\n\t\t\t\tuser = UserClient.getUserFromID(uid);\n\t\t\t\tCache.set(uid, user);\n\t\t\t} catch (ApplicationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\t}\n\t\t} else {\n\t\t\tuser = (User) Cache.get(uid);\n\t\t}\n\n\t\tif (user == null) {\n\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\tAuthentifier.logout();\n\t\t}\n\n\t\tif (user.avatarURL == null) {\n\t\t\tuser.avatarURL = Gravatar.get(user.email, 100);\n\t\t}\n\n\t\t// push the user object in the request arguments for later display...\n\t\trenderArgs.put(PLAYUSER, user);\n\t}", "boolean isSecureAccess();", "private void initForWritableEndpoints(UserGroupInformation callerUGI,\n boolean doAdminACLsCheck) throws AuthorizationException {\n // clear content type\n response.setContentType(null);\n\n if (callerUGI == null) {\n String msg = \"Unable to obtain user name, user not authenticated\";\n throw new AuthorizationException(msg);\n }\n\n if (UserGroupInformation.isSecurityEnabled() && isStaticUser(callerUGI)) {\n String msg = \"The default static user cannot carry out this operation.\";\n throw new ForbiddenException(msg);\n }\n\n if (doAdminACLsCheck) {\n ApplicationACLsManager aclsManager = rm.getApplicationACLsManager();\n if (aclsManager.areACLsEnabled()) {\n if (!aclsManager.isAdmin(callerUGI)) {\n String msg = \"Only admins can carry out this operation.\";\n throw new ForbiddenException(msg);\n }\n }\n }\n }", "public interface UserProvider {\n\n /**\n * Loads the specified user by username.\n *\n * @param username the username\n * @return the User.\n * @throws UserNotFoundException if the User could not be loaded.\n */\n User loadUser( String username ) throws UserNotFoundException;\n\n /**\n * Creates a new user. This method should throw an\n * UnsupportedOperationException if this operation is not\n * supporte by the backend user store.\n *\n * @param username the username.\n * @param password the plain-text password.\n * @param name the user's name, which can be {@code null}, unless isNameRequired is set to true.\n * @param email the user's email address, which can be {@code null}, unless isEmailRequired is set to true.\n * @return a new User.\n * @throws UserAlreadyExistsException if the username is already in use.\n */\n User createUser( String username, String password, String name, String email )\n throws UserAlreadyExistsException;\n\n /**\n * Delets a user. This method should throw an\n * UnsupportedOperationException if this operation is not\n * supported by the backend user store.\n *\n * @param username the username to delete.\n */\n void deleteUser( String username );\n\n /**\n * Returns the number of users in the system.\n *\n * @return the total number of users.\n */\n int getUserCount();\n\n /**\n * Returns an unmodifiable Collections of all users in the system. The\n * {@link UserCollection} class can be used to assist in the implementation\n * of this method. It takes a String [] of usernames and presents it as a\n * Collection of User objects (obtained with calls to\n * {@link UserManager#getUser(String)}.\n *\n * @return an unmodifiable Collection of all users.\n */\n Collection<User> getUsers();\n\n /**\n * Returns an unmodifiable Collection of usernames of all users in the system.\n *\n * @return an unmodifiable Collection of all usernames in the system.\n */\n Collection<String> getUsernames();\n\n /**\n * Returns an unmodifiable Collections of users in the system within the\n * specified range. The {@link UserCollection} class can be used to assist\n * in the implementation of this method. It takes a String [] of usernames\n * and presents it as a Collection of User objects (obtained with calls to\n * {@link UserManager#getUser(String)}.<p>\n *\n * It is possible that the number of results returned will be less than that\n * specified by {@code numResults} if {@code numResults} is greater than the\n * number of records left to display.\n *\n * @param startIndex the beginning index to start the results at.\n * @param numResults the total number of results to return.\n * @return an unmodifiable Collection of users within the specified range.\n */\n Collection<User> getUsers( int startIndex, int numResults );\n\n /**\n * Sets the user's name. This method should throw an UnsupportedOperationException\n * if this operation is not supported by the backend user store.\n *\n * @param username the username.\n * @param name the name.\n * @throws UserNotFoundException if the user could not be found.\n */\n void setName( String username, String name ) throws UserNotFoundException;\n\n /**\n * Sets the user's email address. This method should throw an\n * UnsupportedOperationException if this operation is not supported\n * by the backend user store.\n *\n * @param username the username.\n * @param email the email address.\n * @throws UserNotFoundException if the user could not be found.\n */\n void setEmail( String username, String email ) throws UserNotFoundException;\n\n /**\n * Sets the date the user was created. This method should throw an\n * UnsupportedOperationException if this operation is not supported\n * by the backend user store.\n *\n * @param username the username.\n * @param creationDate the date the user was created.\n * @throws UserNotFoundException if the user could not be found.\n */\n void setCreationDate( String username, Date creationDate ) throws UserNotFoundException;\n\n /**\n * Sets the date the user was last modified. This method should throw an\n * UnsupportedOperationException if this operation is not supported\n * by the backend user store.\n *\n * @param username the username.\n * @param modificationDate the date the user was last modified.\n * @throws UserNotFoundException if the user could not be found.\n */\n void setModificationDate( String username, Date modificationDate )\n throws UserNotFoundException;\n\n /**\n * Returns the set of fields that can be used for searching for users. Each field\n * returned must support wild-card and keyword searching. For example, an\n * implementation might send back the set {\"Username\", \"Name\", \"Email\"}. Any of\n * those three fields can then be used in a search with the\n * {@link #findUsers(Set,String)} method.<p>\n *\n * This method should throw an UnsupportedOperationException if this\n * operation is not supported by the backend user store.\n *\n * @return the valid search fields.\n * @throws UnsupportedOperationException if the provider does not\n * support the operation (this is an optional operation).\n */\n Set<String> getSearchFields() throws UnsupportedOperationException;\n\n /**\n * Searches for users based on a set of fields and a query string. The fields must\n * be taken from the values returned by {@link #getSearchFields()}. The query can\n * include wildcards. For example, a search on the field \"Name\" with a query of \"Ma*\"\n * might return user's with the name \"Matt\", \"Martha\" and \"Madeline\".<p>\n *\n * This method should throw an UnsupportedOperationException if this\n * operation is not supported by the backend user store. \n *\n * @param fields the fields to search on.\n * @param query the query string.\n * @return a Collection of users that match the search.\n * @throws UnsupportedOperationException if the provider does not\n * support the operation (this is an optional operation).\n */\n Collection<User> findUsers( Set<String> fields, String query )\n throws UnsupportedOperationException;\n\n /**\n * Searches for users based on a set of fields and a query string. The fields must\n * be taken from the values returned by {@link #getSearchFields()}. The query can\n * include wildcards. For example, a search on the field \"Name\" with a query of \"Ma*\"\n * might return user's with the name \"Matt\", \"Martha\" and \"Madeline\".<p>\n *\n * The startIndex and numResults parameters are used to page through search\n * results. For example, if the startIndex is 0 and numResults is 10, the first\n * 10 search results will be returned. Note that numResults is a request for the\n * number of results to return and that the actual number of results returned\n * may be fewer.<p>\n *\n * This method should throw an UnsupportedOperationException if this\n * operation is not supported by the backend user store.\n *\n * @param fields the fields to search on.\n * @param query the query string.\n * @param startIndex the starting index in the search result to return.\n * @param numResults the number of users to return in the search result.\n * @return a Collection of users that match the search.\n * @throws UnsupportedOperationException if the provider does not\n * support the operation (this is an optional operation).\n */\n Collection<User> findUsers( Set<String> fields, String query, int startIndex,\n int numResults ) throws UnsupportedOperationException;\n\n /**\n * Returns true if this UserProvider is read-only. When read-only,\n * users can not be created, deleted, or modified.\n *\n * @return true if the user provider is read-only.\n */\n boolean isReadOnly();\n\n /**\n * Returns true if this UserProvider requires a name to be set on User objects.\n *\n * @return true if an name is required with this provider.\n */\n boolean isNameRequired();\n\n /**\n * Returns true if this UserProvider requires an email address to be set on User objects.\n *\n * @return true if an email address is required with this provider.\n */\n boolean isEmailRequired();\n\n}", "public StaffSecurityMetadataSource() {\n loadResourceDefine();\n }", "@Override\n public GenericManager<Societe, Long> getManager() {\n return manager;\n }", "@Override\n\t\tpublic SecurityDirector getSecurity() {\n\t\t\treturn null;\n\t\t}", "public LoginController(PrIS infoSys) {\n\t\tinformatieSysteem = infoSys;\n\t}", "List<SecuritySchemeRef> securedBy();", "@Override\n protected boolean isAuthorized(PipelineData pipelineData) throws Exception\n {\n \t// use data.getACL() \n \treturn true;\n }", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public void setAsSecurityManager() {\r\n\t\tRemoteReflector.setSecurityPolicy(_sess, this);\r\n\t}", "@ThreadSafe\npublic interface AuthorizationProvider {\n\n public static String SENTRY_PROVIDER = \"sentry.provider\";\n\n /***\n * Returns validate subject privileges on given Authorizable object\n *\n * @param subject: UserID to validate privileges\n * @param authorizableHierarchy : List of object according to namespace hierarchy.\n * eg. Server->Db->Table or Server->Function\n * The privileges will be validated from the higher to lower scope\n * @param actions : Privileges to validate\n * @param roleSet : Roles which should be used when obtaining privileges\n * @return\n * True if the subject is authorized to perform requested action on the given object\n */\n public boolean hasAccess(Subject subject, List<? extends Authorizable> authorizableHierarchy,\n Set<? extends Action> actions, ActiveRoleSet roleSet);\n\n /***\n * Get the GroupMappingService used by the AuthorizationProvider\n *\n * @return GroupMappingService used by the AuthorizationProvider\n */\n public GroupMappingService getGroupMapping();\n\n /***\n * Validate the policy file format for syntax and semantic errors\n * @param strictValidation\n * @throws SentryConfigurationException\n */\n public void validateResource(boolean strictValidation) throws SentryConfigurationException;\n\n /***\n * Returns the list privileges for the given subject\n * @param subject\n * @return\n * @throws SentryConfigurationException\n */\n public Set<String> listPrivilegesForSubject(Subject subject) throws SentryConfigurationException;\n\n /**\n * Returns the list privileges for the given group\n * @param groupName\n * @return\n * @throws SentryConfigurationException\n */\n public Set<String> listPrivilegesForGroup(String groupName) throws SentryConfigurationException;\n\n /***\n * Returns the list of missing privileges of the last access request\n * @return\n */\n public List<String> getLastFailedPrivileges();\n\n /**\n * Frees any resources held by the the provider\n */\n public void close();\n}", "private SecureController()\n\t{\n\t\tField field;\n\t\ttry\n\t\t{\n\t\t\tfield = Class.forName(\"javax.crypto.JceSecurity\").getDeclaredField(\n\t\t\t\t\t\"isRestricted\");\n\t\t\tfield.setAccessible(true);\n\t\t\tfield.set(null, java.lang.Boolean.FALSE);\n\t\t}\n\t\tcatch (NoSuchFieldException | SecurityException\n\t\t\t\t| ClassNotFoundException | IllegalArgumentException\n\t\t\t\t| IllegalAccessException e)\n\t\t{\n\t\t\tlogger.fatal(\"security load failed: \" + e.getMessage());\n\t\t}\n\t}", "@Override\n \t\t\t\tpublic JDBCConnectionCredentials getCleanDatabaseCredentials() {\n \t\t\t\t\treturn new JDBCConnectionCredentials(\"jdbc:virtuoso://localhost:1111/UID=dba/PWD=dba\", \"dba\", \"dba\");\n \t\t\t\t}", "@BeforeGroups(groups = \"SUPER_ADMIN\")\n protected void loginSuperAdmin() throws Exception {\n login(\"[email protected]\", \"spravce\");\n }", "private LoginRepository(LoginDataSource dataSource) {\n this.dataSource = dataSource;\n //Mobyra instance\n mobyraInstance = MobyraInstance.getInstance();\n }", "private LoginContext kinit(String principal) throws LoginException {\n LoginContext lc = new LoginContext(this.getClass().getSimpleName(), new CallbackHandler() {\n public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {\n for (Callback c : callbacks) {\n //if(c instanceof )\n if (c instanceof NameCallback)\n ((NameCallback) c).setName(principal);\n if (c instanceof PasswordCallback)\n ((PasswordCallback) c).setPassword(\"\".toCharArray()); // empty password -- use keytab ?\n }\n }\n });\n lc.login();\n return lc;\n }", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "public abstract String getUser() throws DataServiceException;", "public ClientManager(ResourceManager rManager) {\n super();\n this.automaticLogin = false;\n\n // 1 - We load the ProfileConfigList\n this.profileConfigList = ProfileConfigList.load();\n\n if (this.profileConfigList == null) {\n Debug.signal(Debug.NOTICE, this, \"no client's profile found : creating a new one...\");\n this.profileConfigList = new ProfileConfigList();\n } else {\n Debug.signal(Debug.NOTICE, null, \"Client Configs loaded with success !\");\n }\n\n if (!ClientManager.rememberPasswords) {\n this.profileConfigList.deletePasswords(); // make sure we don't save any password here\n this.profileConfigList.save();\n }\n\n // 2 - We load the ServerConfigManager\n this.serverConfigManager = new ServerConfigManager(rManager);\n this.serverConfigManager.setRemoteServerConfigHomeURL(ClientDirector.getRemoteServerConfigHomeURL());\n Debug.signal(Debug.NOTICE, null, \"Server config Manager started with success !\");\n\n // 3 - We get the font we are going to use...\n this.f = FontFactory.getDefaultFontFactory().getFont(\"Lucida Blackletter Regular\");\n }", "@Override\n public void close() throws SecurityException {\n }", "@Override\n\t@Bean\n\tprotected AuthenticationManager authenticationManager() throws Exception {\n\t\treturn super.authenticationManager();\n\t}" ]
[ "0.5958166", "0.58148235", "0.57369834", "0.5736327", "0.56203544", "0.5540724", "0.55359936", "0.5512758", "0.5509251", "0.5497501", "0.5496935", "0.5474954", "0.5441859", "0.5433179", "0.54248476", "0.5402724", "0.5383303", "0.53828096", "0.53818107", "0.5366", "0.5331683", "0.5325071", "0.52996475", "0.5294183", "0.528958", "0.5282693", "0.5277947", "0.5277046", "0.52712107", "0.5269148", "0.5256198", "0.52509576", "0.52508235", "0.5250413", "0.52418756", "0.52340454", "0.5223108", "0.52183384", "0.5211784", "0.5206742", "0.5200931", "0.51940966", "0.51744103", "0.5173778", "0.51650304", "0.5162159", "0.51591337", "0.51510155", "0.5149967", "0.51462525", "0.5146147", "0.51444477", "0.5139787", "0.51392883", "0.51341236", "0.5128031", "0.5111075", "0.5101564", "0.5091931", "0.5091725", "0.5089711", "0.5088144", "0.50854695", "0.5078338", "0.5075614", "0.5074741", "0.5074741", "0.50674707", "0.5057243", "0.5053394", "0.5047402", "0.50427735", "0.5041244", "0.50411034", "0.5029314", "0.50278467", "0.5024491", "0.50189257", "0.5018278", "0.50131404", "0.50118107", "0.5009601", "0.49924198", "0.4992397", "0.49918675", "0.4990945", "0.49748823", "0.49719888", "0.49701393", "0.49676538", "0.49627513", "0.49614248", "0.49531627", "0.49514332", "0.49509272", "0.4948468", "0.4946892", "0.49460596", "0.4933702", "0.49308404" ]
0.6667521
0
List all available resources.
public List<Resource> getAvailableResources();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Resources> getAllResources()\r\n\t{\r\n\t\tList<Resources> l = resourceRepository.findByResource();\r\n\t\treturn l;\r\n\t}", "List<Resource> resources();", "public List<Resource> listResources() throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn list(Resource.class);\n\t}", "public ResourceSet getAllResources() {\n return getAllResourcesExcept(null);\n }", "public List<IResource> getResources();", "public org.semanticwb.model.GenericIterator<org.semanticwb.model.Resource> listResources()\r\n {\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.model.Resource>(getSemanticObject().listObjectProperties(swb_hasPTResource));\r\n }", "public Collection<Resource> getResources() {\n return resourceRegistry.getEntries().values();\n }", "Collection<? extends Resource> getResources();", "public List<String> getResources() {\n return resources;\n }", "public List<PrimaryType> getResources() {\n return resources;\n }", "public ArrayList<Resource> getResources(){\n\t\treturn _resources;\n\t}", "public List<SecretMetadata> resources() {\n return resources;\n }", "public com.google.protobuf.ProtocolStringList\n getResourcesList() {\n return resources_;\n }", "@GetMapping(path=\"/all\")\n\tpublic @ResponseBody Iterable<Resource> getAllUsers() {\n\t\treturn resourceRepository.findAll();\n\t}", "@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 }", "@Override\n\tpublic Vector<String[]> getResourceList() throws RemoteException {\n\t\tVector<String[]> resourceList = new Vector<String[]>();\n\t\tfor (Resource singleResource : resourceModel.getResources()) {\n\t\t\tresourceList.add(singleResource.toArrayStrings());\n\t\t}\n\t\treturn resourceList;\n\t}", "public List<DataGridResource> getResources() {\n\t\tif(resources != null) Collections.sort(resources);\n\t\treturn resources;\n\t}", "public com.google.protobuf.ProtocolStringList\n getResourcesList() {\n return resources_.getUnmodifiableView();\n }", "public Iterator getResources() {\n return this.resources.iterator();\n }", "public List<ITranslationResource> getResources(){\n\t\treturn resources;\n\t}", "@ApiModelProperty(required = true, value = \"`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \\\"services\\\", \\\"nodes/status\\\" ]. This list may not be empty. \\\"*\\\" matches all resources and, if present, must be the only entry. Required.\")\n\n public List<String> getResources() {\n return resources;\n }", "public List<ResourceBase> listTypes() throws ResourceException;", "public Resources resources() {\n return this.resources;\n }", "@RequestMapping(value = \"/shopressources\", method = RequestMethod.GET)\n List<ShopRessource> getAllShopRessources();", "public List<ResourceItem> resourceList() {\n return this.resourceList;\n }", "@GetAction(\"/list\")\n public void list(String q) {\n Iterable<Account> accounts = accountDao.findAll();\n render(accounts);\n }", "java.util.concurrent.Future<GetResourcesResult> getResourcesAsync(GetResourcesRequest getResourcesRequest);", "public List<ScheduleResource> neededSpecificResources();", "public Set getResources() {\n/* 92 */ return Collections.unmodifiableSet(this.resources);\n/* */ }", "@GET\n @Produces(\"application/json\")\n public List<OsData> listAllOs() {\n return osBO.getAllOs();\n }", "@GetMapping(\"/listAll\")\n\tpublic ResponseEntity<?> findAll(){\n\t\treturn new ResponseEntity<>(catService.listAll(),HttpStatus.OK);\n\t}", "@GetMapping(\"/course-resources\")\n @Timed\n public ResponseEntity<List<CourseResource>> getAllCourseResources(@ApiParam Pageable pageable) {\n log.debug(\"REST request to get a page of CourseResources\");\n Page<CourseResource> page = courseResourceService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/course-resources\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "@Override\n public Set<Resource> getAvailableResources(DiscreteResourceId parent) {\n return null;\n }", "public List getAll() throws FileNotFoundException, IOException;", "public Iterator<Resource> listChildren() {\n return Collections.<Resource>emptyList().iterator();\n }", "public SimpleResList getResourceList() {\r\n\t\treturn new SimpleResList(resList);\r\n\t}", "List<ResourceType> resourceTypes();", "public List<R> getAll();", "public Object getResources() {\n\t\treturn null;\n\t}", "public List<Resources> getResourcesByLocation(int locationId){\n\t\treturn jtemp.query(\"SELECT * FROM Resources WHERE location_id = ? AND is_available >= 0 order By Resource_name\", new ResourcesMapper(), locationId);\n\t}", "@Override\r\n\tpublic List<Resources> resourcesPage(Map<String, Object> map) {\n\t\treturn resourcesDao.resourcesPage(map);\r\n\t}", "@GetMapping\n public ResponseEntity<Resources<HotelResource>> getAllHotels(){\n return new ResponseEntity<>(\n hotelService.findAllHotels(), HttpStatus.OK\n );\n }", "@Override\r\n\tpublic List<Resource> getAllResources(String category, String type) {\r\n\t\tList<Resource> getAll = resourceDao.findByCategoryAndType(category, type);\r\n\t\tlogger.info(\"Resources fetched by category: \" + category + \" and type: \" + type);\r\n\t\treturn getAll;\r\n\t}", "@RequestMapping(value = \"/all\")\n public List<Account> getAll(){\n return new ArrayList<>(accountHelper.getAllAccounts().values());\n }", "public int getResourcesCount() {\n return resources_.size();\n }", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "@Override\n public String[] listAll() {\n return list();\n }", "@OneToMany(fetch = FetchType.LAZY, mappedBy = Resource.Attributes.SYSTEM, targetEntity = Resource.class, orphanRemoval = true)\n\tpublic Set<Resource> getResources() {\n\t\treturn this.resources;\n\t}", "public void discoverAllResources(final VertexSetListener<DMRResource> listener) throws Exception {\n ResourceManager<DMRResource> resourceManager = this.inventoryManager.getResourceManager();\n\n if (listener != null) {\n resourceManager.getResourcesGraph().addVertexSetListener(listener);\n }\n\n try (ModelControllerClient mcc = clientFactory.createClient()) {\n Set<DMRResourceType> rootTypes;\n rootTypes = this.inventoryManager.getMetadataManager().getResourceTypeManager().getRootResourceTypes();\n\n long start = System.currentTimeMillis();\n for (DMRResourceType rootType : rootTypes) {\n discoverChildrenOfResourceType(null, rootType, mcc);\n }\n long duration = System.currentTimeMillis() - start;\n\n logTreeGraph(\"Discovered resources\", resourceManager, duration);\n } catch (Exception e) {\n throw new Exception(\"Failed to execute discovery for endpoint [\" + this.inventoryManager.getEndpoint()\n + \"]\", e);\n } finally {\n if (listener != null) {\n resourceManager.getResourcesGraph().removeVertexSetListener(listener);\n }\n }\n }", "public int getResourcesCount() {\n return resources_.size();\n }", "@GET\n @Produces(\"application/json\")\n public static List<CRoom> roomAll() {\n return (List<CRoom>) sCrudRoom.findWithNamedQuery(CRoom.FIND_ROOM_BY_ALL);\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}", "public List<Resource> getResources(@Param(\"resourceIds\") Set<String> resourceIds);", "public List<Configuration> getAll();", "@GetMapping(\"/GetAllHRs\")\r\n public List<HR> viewAllHRs() {\r\n return admin.viewAllHRs();\r\n }", "public List<DnsResource> authorityResources() {\n if (authority == null) {\n return Collections.emptyList();\n }\n return Collections.unmodifiableList(authority);\n }", "@RequestMapping(value = \"/rest/accesss\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Access> getAll() {\n log.debug(\"REST request to get all Accesss\");\n return accessRepository.findAll();\n }", "@GET\n @Path(\"/\")\n @Produces(\"application/json\")\n public Response all() {\n // Return some cliched textual content\n return Response.ok(\"clients list goes here\", MediaType.APPLICATION_JSON).build();\n }", "@Override\n/// @XmlElement(name = \"resource\", namespace = Namespaces.SRV)\n public Collection<DataIdentification> getResources() {\n return resources = nonNullCollection(resources, DataIdentification.class);\n }", "public RegTapResource[] getResources() {\n return resMap_.values().toArray( new RegTapResource[ 0 ] );\n }", "@GetMapping({ \"/vets\" })\n\tpublic @ResponseBody Vets showResourcesVetList() {\n\t\tVets vets = new Vets();\n\t\tvets.getVetList().addAll(this.vetRepository.findAll());\n\t\treturn vets;\n\t}", "@ApiModelProperty(value = \"List of the resource name pattern strings to which the policy applies. Must conform to the pattern templates provided by the associated Managing Resource Types resource type\")\n public List<String> getResources() {\n return resources;\n }", "List<ManagedEndpoint> all();", "@GetMapping(\"/all\")\n public List<Admin> getAll(){\n return adminService.getAll();\n }", "public List<Item> getAllItemsAvailable();", "Iterable<Resources> findAllByAccountId(Long accountId);", "List<AcHost> all() throws Throwable;", "public List<Resources> getResourcesByLocationForNonSuperUser(int locationId){\n\t\treturn jtemp.query(\"SELECT * FROM Resources WHERE location_id = ? AND is_super_room = ? order By is_available DESC,Resource_name\", new ResourcesMapper(), locationId,0);\n\t}", "@Override\n public <T> Set<Resource> getAvailableResources(DiscreteResourceId parent, Class<T> cls) {\n return null;\n }", "public void setResources(List<String> resources) {\n this.resources = resources;\n }", "@GetMapping(value=\"/getAll\")\n\tpublic List<Question> getAll(){\n\t\tLOGGER.info(\"Viewing all questions\");\n\t\treturn questionObj.viewAllQuestions();\n\t}", "@GET\n\t@Path(\"/getAll\")\n\t@Produces(MediaType.TEXT_HTML)\n\tpublic String getHtmlAccounts() {\n\t\tString res = \"<html> \" + \"<title>\" + \"Hello Jersey\" + \"</title>\" + \"<body>\";\n\n\t\tVector<Account> vs = MyAccountDAO.getAllAccounts();\n\t\tif ((vs == null) || (vs.size() == 0)) {\n\t\t\tres += \"<h1>No TRANSFERS available</h1>\\n\";\n\t\t} else {\n\t\t\tfor (int i = 0; i < vs.size(); i++) {\n\t\t\t\tres += \"<h1>\" + vs.elementAt(i) + \"</h1>\\n\";\n\t\t\t}\n\t\t}\n\t\tres += \"</body>\";\n\t\tres += \"</html>\";\n\t\treturn res;\n\n\t}", "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 abstract List<Object> getAll();", "@Override\n public List listar() {\n return instalaciones.getAll();\n }", "@Override\r\n\tpublic List<?> getAll() {\n\t\treturn null;\r\n\t}", "@Override\n public Set<Resource> getRegisteredResources(DiscreteResourceId parent) {\n return null;\n }", "public Resources() {\n this(DSL.name(\"Resources\"), null);\n }", "@Override\n public Collection<Accountable> getChildResources() {\n return Collections.emptyList();\n }", "@GET\t\n\t@Produces(\"application/json\")\n\t@Path(\"/\")\n\tpublic List<Site> findAllSites(){\n\t\treturn siteDaoObj.findAllSites();\n\t\t\n\t}", "public List<ResourceLink> links() {\n return links;\n }", "@ApiOperation(value = \"Route Get mapping to fetch all routes\", response = List.class)\n\t@GetMapping(\"/all\")\n\tpublic ResponseEntity<List<RouteDto>> viewAllRoutes() {\n\t \n\t List<Route> routeList = this.routeServices.viewRouteList();\n\t\tList<RouteDto> routeDtoList = new ArrayList<>();\n\t\tfor (Route r : routeList) {\n\t\t\tRouteDto routedto = modelMapper.map(r, RouteDto.class);\n\t\t\trouteDtoList.add(routedto);\n\t\t}\n\t\tif (!(routeDtoList.isEmpty())) {\n\t\t\treturn new ResponseEntity<>(routeDtoList, HttpStatus.OK);\n\t\t} else {\n\t\t\treturn new ResponseEntity<>(routeDtoList, HttpStatus.NOT_FOUND);\n\t\t}\n\t}", "@Override\n\tpublic List<Resource> findAll(Sort sort) {\n\t\treturn null;\n\t}", "public List<MessageResource> listMessageResource();", "public List findAll() {\n\t\treturn null;\r\n\t}", "public Object[] getGlobalResourceList() {\n return this.getList(AbstractGIS.INQUIRY_GLOBAL_RESOURCE_LIST);\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @RolesAllowed({\"admin\", \"simple\"})\n public List<Tag> listAll(@Context UriInfo uriInfo) {\n Long taskId = (uriInfo.getPathSegments().size() != 1?\n Long.valueOf(uriInfo.getPathSegments().get(3).getPath())\n :null);\n\n List<Tag> result ;\n\n if (taskId != null) {\n result = em.createQuery(\"SELECT t FROM Tag t INNER JOIN t.tasks p WHERE p.id = :taskId\", Tag.class)\n .setParameter(\"taskId\",taskId)\n .getResultList();\n } else {\n result = em.createQuery(\"SELECT t FROM Tag t\", Tag.class).getResultList();\n }\n return result;\n }", "@Override\r\n\tpublic List<Resource> getAllResources(int empId) throws InvalidEmployeeException {\r\n\t\tList<Resource> res1 = resourceDao.getByEmpId(empId);\r\n\t\tlogger.info(\"Resources fetched by employee id: \" + empId);\r\n\t\treturn res1;\r\n\t}", "@Override\n\tpublic List<Resident> getAll() {\n\t\tList<Resident> list = null;\n\t\ttry {\n\t\t\tlist = repository.findAll();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn list;\n\t}", "public int[] getResources() {\n \t\tint[] list = new int[resources.length];\n \t\tfor (int i = 0; i < resources.length; i++)\n \t\t\tlist[i] = resources[i];\n \n \t\treturn list;\n \t}", "@Override\n\tpublic void listAllItems() {\n\t\t\n\t}", "List<String> externalResources();", "public ArrayList<VirtualMachineImageResource> getResources() {\n return this.resources;\n }", "public com.google.protobuf.ProtocolStringList\n getResourceNamesList() {\n return resourceNames_;\n }", "@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getAll() {\n\t\tEmployeeFacade employeeFacade = new EmployeeFacade();\n\n\t\tGenericEntity<List<EmployeeVO>> generic = new GenericEntity<List<EmployeeVO>>(employeeFacade.findAll()) {};\n\t\treturn Response.status(200).header(\"Access-Control-Allow-Origin\", CorsFilter.DEFAULT_ALLOWED_ORIGINS).entity(generic).build();\n\t}", "public Iterable<T> iterable() {\n return new ResourceCollectionIterable<>(this);\n }" ]
[ "0.7805408", "0.7540664", "0.75000143", "0.73345613", "0.70577294", "0.69619435", "0.6856702", "0.6722206", "0.671159", "0.6704831", "0.65829694", "0.6527199", "0.65221524", "0.6484376", "0.6477185", "0.64359665", "0.64317167", "0.6423948", "0.6409174", "0.6394542", "0.6375152", "0.63695115", "0.63384134", "0.6301092", "0.6273447", "0.6223226", "0.62081003", "0.6207953", "0.6201489", "0.6196558", "0.61392665", "0.61255", "0.6111193", "0.61060643", "0.6105534", "0.60932046", "0.6089605", "0.6056785", "0.60218817", "0.5996734", "0.59893674", "0.59646565", "0.59587765", "0.5930527", "0.5913611", "0.591119", "0.591119", "0.591119", "0.591119", "0.591119", "0.59093857", "0.59073776", "0.5900456", "0.58948356", "0.5884293", "0.58751476", "0.5873243", "0.5865235", "0.58590895", "0.58566654", "0.58313537", "0.5825513", "0.5802479", "0.5802324", "0.57850784", "0.5784455", "0.5779165", "0.57668275", "0.575658", "0.57514465", "0.5748916", "0.5737696", "0.57085425", "0.57004946", "0.5688873", "0.56868553", "0.5684569", "0.5680161", "0.5679251", "0.5668393", "0.5665508", "0.5658558", "0.5650905", "0.5644305", "0.5642075", "0.56389475", "0.5638672", "0.56268084", "0.5623044", "0.56229055", "0.5617068", "0.5615215", "0.5610573", "0.56019217", "0.56008583", "0.5594851", "0.5594644", "0.55921286", "0.55860525", "0.55809873" ]
0.7866772
0
Attempt to use the user credentials to log in to any and all other resources known to this User Manager. TODO Consider moving to OAuth.
public void propagateCredentials( User user, String password );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n mUsrView.setError(null);\n mPasswordView.setError(null);\n\n String usr = mUsrView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n Tuple<String, String> creds = /*getCredentials()*/ SERVER_CREDENTIALS;\n\n boolean cancel = false;\n View focusView = null;\n\n if (!TextUtils.isEmpty(password)) {\n if (!mPasswordView.getText().toString().equals(creds.y)) {\n if (Util.D) Log.i(\"attemptLogin\", \"pwd was \" + mPasswordView.getText().toString());\n mPasswordView.setError(getString(R.string.error_incorrect_creds));\n cancel = true;\n }\n focusView = mPasswordView;\n }\n\n if (TextUtils.isEmpty(usr)) {\n mUsrView.setError(getString(R.string.error_field_required));\n focusView = mUsrView;\n cancel = true;\n } else if (!usr.equals(creds.x)) {\n mUsrView.setError(getString(R.string.error_incorrect_creds));\n focusView = mUsrView;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n if (prefs != null)\n prefs.edit().putBoolean(getString(R.string.settingAuthorized), true);\n showProgress(true);\n mAuthTask = new UserLoginTask(usr, password);\n mAuthTask.execute((Void) null);\n }\n }", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }", "@Override\n\tpublic void login() {\n\t\tAccountManager accountManager = AccountManager.get(context);\n\t\tAccount[] accounts = accountManager.getAccountsByType(GOOGLE_ACCOUNT_TYPE);\n\t\tif(accounts.length < 1) throw new NotAccountException(\"This device not has account yet\");\n\t\tfinal String userName = accounts[0].name;\n\t\tfinal String accountType = accounts[0].type;\n\t\tBundle options = new Bundle();\n\t\tif(comService.isOffLine()){\n\t\t\tsetCurrentUser(new User(userName, userName, accountType));\n\t\t\treturn;\n\t\t}\n\t\taccountManager.getAuthToken(accounts[0], AUTH_TOKEN_TYPE, options, (Activity)context, \n\t\t\t\tnew AccountManagerCallback<Bundle>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run(AccountManagerFuture<Bundle> future) {\n\t\t\t\t\t\tString token = \"\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tBundle result = future.getResult();\n\t\t\t\t\t\t\ttoken = result.getString(AccountManager.KEY_AUTHTOKEN);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsetCurrentUser(new User(userName, userName, accountType, token));\n\t\t\t\t\t\t} catch (OperationCanceledException e) {\n\t\t\t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(\"Login\", \"Token: \" + token);\n\t\t\t\t\t}\n\t\t\t\t}, new Handler(new Handler.Callback() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean handleMessage(Message msg) {\n\t\t\t\t\t\tLog.d(\"Login\", msg.toString());\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}));\n\t}", "@Override\n\tpublic boolean managerLogin(Context ctx) {\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.managerLogIn(username, password);\n\t\treturn result;\n\t}", "private void attemptLogin() {\n // Reset errors.\n edtID.setError(null);\n edtPassword.setError(null);\n\n // Store values at the time of the login attempt.\n String userId = edtID.getText().toString();\n String password = edtPassword.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n edtPassword.setError(\"Password is empty\");\n focusView = edtPassword;\n cancel = true;\n } else if(!isPasswordValid(password)) {\n edtPassword.setError(getString(R.string.error_invalid_password));\n focusView = edtPassword;\n cancel = true;\n }\n\n // Check for a valid user id.\n if (TextUtils.isEmpty(userId)) {\n edtID.setError(getString(R.string.error_field_required));\n focusView = edtID;\n cancel = true;\n } else if (!isUserIdValid(userId)) {\n edtID.setError(getString(R.string.error_invalid_id));\n focusView = edtID;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n JSONObject json = new JSONObject();\n try {\n json.put(\"user_id\", userId);\n json.put(\"password\", password);\n } catch (Exception e) {\n e.printStackTrace();\n }\n reqUserID = userId;\n reqUserPW = password;\n loginConnector.request(json);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String name = mNameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid user name.\n if (TextUtils.isEmpty(name)) {\n mNameView.setError(getString(R.string.error_field_required));\n focusView = mNameView;\n cancel = true;\n } else if (!isNameValid(name)) {\n mNameView.setError(getString(R.string.error_invalid_name));\n focusView = mNameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(name, password);\n mAuthTask.execute(mUrl);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mUserNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String userName = mUserNameView.getText().toString();\n String password = mPasswordView.getText().toString();\n UserDetail user = new UserDetail(userName, password);\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n user = null;\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(userName)) {\n mUserNameView.setError(getString(R.string.error_field_required));\n focusView = mUserNameView;\n\n\n }\n else if(user!=null && isNetworkConnected()) {\n getPermissiontoAccessInternet();\n mAuthTask = new UserLoginTask(user);\n mAuthTask.execute((Void) null);\n\n }\n// } else if (!isUserNameValid(userName)) {\n// mUserNameView.setError(getString(R.string.error_invalid_email));\n// focusView = mUserNameView;\n// cancel = true;\n// }\n\n// if (cancel) {\n// // There was an error; don't attempt login and focus the first\n// // form field with an error.\n// focusView.requestFocus();\n// } else {\n// // Show a progress spinner, and kick off a background task to\n// // perform the user login attempt.\n//\n// }\n }", "public void attemptLogin() {\r\n\t\tif (mAuthTask != null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Reset errors.\r\n\t\tmUserView.setError(null);\r\n\t\tmPasswordView.setError(null);\r\n\t\t// Store values at the time of the login attempt.\r\n\t\tmUser = mUserView.getText().toString();\r\n\t\tmPassword = mPasswordView.getText().toString();\r\n\t\tboolean cancel = false;\r\n\t\tView focusView = null;\r\n\t\t// Check for a valid password.\r\n\t\tif (TextUtils.isEmpty(mPassword)) {\r\n\t\t\tmPasswordView.setError(getString(R.string.error_field_required));\r\n\t\t\tfocusView = mPasswordView;\r\n\t\t\tcancel = true;\r\n\t\t} else if (mPassword.length() < 3) {\r\n\t\t\tmPasswordView.setError(getString(R.string.error_invalid_password));\r\n\t\t\tfocusView = mPasswordView;\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\t\t// Check for a valid username address.\r\n\t\tif (TextUtils.isEmpty(mUser)) {\r\n\t\t\tmUserView.setError(getString(R.string.error_field_required));\r\n\t\t\tfocusView = mUserView;\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\t\tif (cancel) {\r\n\t\t\t// There was an error; don't attempt login and focus the first\r\n\t\t\t// form field with an error.\r\n\t\t\tfocusView.requestFocus();\r\n\t\t} else {\r\n\t\t\t// Show a progress spinner, and kick off a background task to\r\n\t\t\t// perform the user login attempt.\r\n\t\t\tmLoginStatusMessageView.setText(R.string.login_progress_signing_in);\r\n\t\t\tmAuthTask = new UserLoginTask(this);\r\n\t\t\tmAuthTask.execute((Void) null);\r\n\t\t}\r\n\t}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "private void attemptUsernamePasswordLogin()\n {\n if (mAuthTask != null)\n {\n return;\n }\n\n if(mLogInButton.getText().equals(getResources().getString(R.string.logout)))\n {\n mAuthTask = new RestCallerPostLoginTask(this,mStoredToken,MagazzinoService.getAuthenticationHeader(this),true);\n mAuthTask.execute(MagazzinoService.getLogoutService(this));\n return;\n }\n // Reset errors.\n mUsernameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mUsernameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password))\n {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email))\n {\n mUsernameView.setError(getString(R.string.error_field_required));\n focusView = mUsernameView;\n cancel = true;\n }\n else if (!isUsernameOrEmailValid(email))\n {\n mUsernameView.setError(getString(R.string.error_invalid_email));\n focusView = mUsernameView;\n cancel = true;\n }\n\n if (cancel)\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n return;\n }\n\n mAuthTask = new RestCallerPostLoginTask(this,email, password);\n mAuthTask.execute(MagazzinoService.getLoginService(this));\n\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n boolean newUser = false;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password) || !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n } else {\n user = mDatabaseHelper.getUser(email);\n if (user.getPassword() != null) {\n if (!PasswordHash.checkHashEquality(user.getPassword(), password)) {\n mPasswordView.setError(getString(R.string.error_incorrect_password));\n focusView = mPasswordView;\n cancel = true;\n }\n } else {\n newUser = true;\n }\n }\n\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n user = mDatabaseHelper.getUser(email);\n if (newUser) {\n Toast.makeText(this, \"New Account Created!\", Toast.LENGTH_SHORT).show();\n }\n Intent intent = new Intent(LoginActivity.this, ListActivity.class);\n intent.putExtra(\"User\", user);\n intent.putExtra(\"Target\", \"Locked\");\n startActivityForResult(intent, 0);\n }\n }", "public void authenticate() {\n LOGGER.info(\"Authenticating user: {}\", this.name);\n WebSession result = null;\n try {\n result =\n getContext()\n .getAuthenticationMethod()\n .authenticate(\n getContext().getSessionManagementMethod(),\n this.authenticationCredentials,\n this);\n } catch (UnsupportedAuthenticationCredentialsException e) {\n LOGGER.error(\"User does not have the expected type of credentials:\", e);\n } catch (Exception e) {\n LOGGER.error(\"An error occurred while authenticating:\", e);\n return;\n }\n // no issues appear if a simultaneous call to #queueAuthentication() is made\n synchronized (this) {\n this.getAuthenticationState().setLastSuccessfulAuthTime(System.currentTimeMillis());\n this.authenticatedSession = result;\n }\n }", "public User login(Credentials creds) throws InvalidCredentialsException, MultipleLoginException, UserInactiveException {\r\n//\t\tLogManager.getLogger().info( \"Current sessions: \" + irpSessionRepository.count() );\r\n//\t\tLogManager.getLogger().info( \"Current Locks: \" + irpLockRepository.count() );\r\n\r\n \tString md5password = passwordManager.hashMC( creds.getPassword() );\r\n\t\tString schema = dhh.getSchema();\r\n\r\n//\t\ttry {\r\n//\t\t\tInteger uc = getDataSource().queryForObject(\"select usercode from \" + schema + \".USERACCOUNT where username = ? and password = ?\", Integer.class, creds.getUsername(), md5password);\r\n//\t\t\tAppSession is = irpSessionRepository.find( uc );\r\n//\r\n//\t\t\tif ( is == null ) {\r\n//\t\t\t\tApplicationParameter ap = apr.findParam(ApplicationParameterType.GENERAL, 1, 6); // EVALUATOR param\r\n//\t\t\t\tUser u = userRepository.find( uc );\r\n//\r\n//\t\t\t\tif ( ap.getParameterValueInt() == 0 ) {\r\n//\t\t\t\t\tif ( u.getUserAccount().hasRole( 7 ) ) {\r\n//\t\t\t\t\t\t// Evaluators should not login!\r\n//\t\t\t\t\t\tLogManager.getLogger().warn(\"Evaluator Cannot login. Evaluator flow NOT enabled\");\r\n//\t\t\t\t\t\tthrow new UserInactiveException( creds );\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tif ( u.getPosition() > 0 &&\r\n//\t\t\t\t\t\t\t( u.getUserAccount().hasRole( 3 ) || u.getUserAccount().hasRole( 4 ) || u.getUserAccount().hasRole( 5 ) )) {\r\n//\t\t\t\t\t\tLogManager.getLogger().warn(\"Branch User Cannot login. Evaluator flow NOT enabled\");\r\n//\t\t\t\t\t\tthrow new UserInactiveException( creds );\r\n//\t\t\t\t\t}\r\n//\t\t\t\t} else {\r\n//\t\t\t\t\tif ( ap.getFailCode() != 1 ) {\r\n//\t\t\t\t\t\tif ( u.getPosition() > 0 &&\r\n//\t\t\t\t\t\t\t\t( u.getUserAccount().hasRole( 3 ) || u.getUserAccount().hasRole( 4 ) || u.getUserAccount().hasRole( 5 ) )) {\r\n//\t\t\t\t\t\t\tLogManager.getLogger().warn(\"Branch User Cannot login. Branches in Evaluator flow NOT enabled\");\r\n//\t\t\t\t\t\t\tthrow new UserInactiveException( creds );\r\n//\t\t\t\t\t\t}\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n//\t\t\t\tirpSessionRepository.create(creds.getFromIp(), uc);\r\n//\t\t\t\tu.getUserAccount().setLastlogin( new Date() );\r\n//\t\t\t\tuserAccountRepository.persist( u.getUserAccount() );\r\n//\t\t\t\tdhh.logLogin(creds.getUsername(), \"AUTHENTICATION_SUCCEEDED\", null, null, null, null);\r\n//\t\t\t\treturn u;\r\n//\t\t\t} else {\r\n//\t\t\t\tthrow new MultipleLoginException();\r\n//\t\t\t}\r\n//\t\t} catch (Exception e) {\r\n//\t\t\tif ( e instanceof UserInactiveException) {\r\n//\t\t\t\tdhh.logLogin(creds.getUsername(), \"USER_INACTIVE\", null, null, null, null);\r\n//\t\t\t\tthrow e;\r\n//\t\t\t}\r\n//\t\t\tif ( e instanceof MultipleLoginException) {\r\n//\t\t\t\tdhh.logLogin(creds.getUsername(), \"ALREADY_LOGGED_IN\", null, null, null, null);\r\n//\t\t\t\tthrow e;\r\n//\t\t\t}\r\n//\t\t\tdhh.logLogin(creds.getUsername(), \"AUTHENTICATION_FAILED\", null, null, null, null);\r\n//\t\t\tthrow new InvalidCredentialsException(creds);\r\n//\t\t}\r\n\t\treturn null;\r\n\t}", "private void attemptLogin() {\n\n String username = mEmailView.getText().toString().trim();\n String idNumber = mIdNumber.getText().toString().trim();\n String password = mPasswordView.getText().toString().trim();\n\n if (TextUtils.isEmpty(username)) {\n// usernameView.setError(errorMessageUsernameRequired);\n// errorView = usernameView;\n }\n\n if (TextUtils.isEmpty(password)) {\n// password.setError(errorMessagePasswordRequired);\n// if (errorView == null) {\n// errorView = passwordView;\n// }\n }\n\n final User user = new User();\n ((DealerManager)getApplication()).setUser(user);\n navigateTo(R.id.nav_home);\n }", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}", "private void attemptLogin() {\n if (authTask != null) {\n return;\n }\n\n // Reset errors.\n usernameView.setError(null);\n passwordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = usernameView.getText().toString();\n String password = passwordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n passwordView.setError(getString(R.string.error_invalid_password));\n focusView = passwordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n usernameView.setError(getString(R.string.error_field_required));\n focusView = usernameView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n usernameView.setError(getString(R.string.error_invalid_email));\n focusView = usernameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n //set loginID for session\n session.setID(email);\n\n startDashboard();\n /*authTask = new UserLoginTask(email, password);\n authTask.execute((Void) null);*/\n }\n }", "public void login() {\n try {\n callApi(\"GET\", \"account/session\", null, null, true);\n } catch (RuntimeException re) {\n\n }\n\n Map<String, Object> payload = new HashMap<>();\n payload.put(\"name\", \"admin\");\n payload.put(\"password\", apiAdminPassword);\n payload.put(\"remember\", 1);\n\n callApi(\"POST\", \"account/signin\", null, payload, true);\n }", "public void authenticate(LoginCredentials credentials) throws LoginException;", "public void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_user));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n\n // save data in local shared preferences\n if (savePassword.isChecked()) {\n saveLoginDetails(email, password);\n }\n\n\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n }\n }", "public AuthToken login(UserCreds credentials) throws ResourceNotFoundException, UnauthorizedException {\n User user = getByName(credentials);\n // Check if user is authorized\n if (!user.getUserCreds().equals(credentials)) throw new UnauthorizedException();\n // Generate auth token\n AuthToken token = new AuthToken(user);\n // Return the token\n return token;\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email.replace(\" \", \"%20\"), password.replace(\" \", \"%20\"));\n mAuthTask.execute((Void) null);\n }\n }", "private void initializeCurrentUser() {\n if (enableLoginActivity && mAuth.getCurrentUser() != null) {\n try {\n initializeUser();\n refreshGoogleCalendarToken();\n } catch (PetRepeatException e) {\n Toast toast = Toast.makeText(this, getString(R.string.error_pet_already_existing),\n Toast.LENGTH_LONG);\n toast.show();\n }\n\n if (mAuth.getCurrentUser() != null) {\n mAuth.getCurrentUser().getIdToken(false).addOnCompleteListener(task -> {\n user.setToken(Objects.requireNonNull(task.getResult()).getToken());\n });\n }\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n // Sets up a new login task with the provide login form\n mAuthTask = new UserLoginTask(email, password);\n try {\n // Executes login task\n mAuthTask.execute();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password, false);\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n// showProgress(true);\n mEmail = email;\n mPassword = password;\n mAuthTask = new UserLoginTask(this);\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n }\n\n }", "@Override\n public Authentication attemptAuthentication(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)\n throws AuthenticationException, IOException, ServletException {\n AccountCredentials credentials = new ObjectMapper().readValue(httpServletRequest.getInputStream(), AccountCredentials.class);\n UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(credentials.getUsername(), credentials.getPassword());\n return getAuthenticationManager().authenticate(token);\n }", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mPhoneView.setError(null);\r\n mPasswordView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String phone = mPhoneView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n if (TextUtils.isEmpty(password)) {\r\n mPasswordView.setError(getString(R.string.error_field_required));\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid phone address.\r\n if (TextUtils.isEmpty(phone)) {\r\n mPhoneView.setError(getString(R.string.error_field_required));\r\n focusView = mPhoneView;\r\n cancel = true;\r\n } else if (!isPhoneValid(phone)) {\r\n mPhoneView.setError(getString(R.string.error_invalid_phone));\r\n focusView = mPhoneView;\r\n cancel = true;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // Show a progress spinner, and kick off a background task to\r\n // perform the user login attempt.\r\n showProgress(true);\r\n mAuthTask = new UserLoginTask(phone, password);\r\n mAuthTask.execute((Void) null);\r\n }\r\n }", "LoggedUser authenticate(@Valid AccountCredentials credentials) throws IOException;", "@Override\n public AuthenticatedUser authenticateUser(Credentials credentials)\n throws GuacamoleException {\n SSOAuthenticationProviderService authProviderService =\n injector.getInstance(SSOAuthenticationProviderService.class);\n\n return authProviderService.authenticateUser(credentials);\n\n }", "@Override\r\n\tpublic Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows AuthenticationException {\r\n\tAppUser appUser = null;\r\n\r\n\ttry {\r\n\t\tappUser = new ObjectMapper().readValue(request.getInputStream(), AppUser.class);\r\n\t} catch (IOException e) {\r\n\t\tthrow new RuntimeException(e);\r\n\t}\r\n\r\n\t\tSystem.out.println(\"user one : \"+appUser.getUsername());\r\n\t\treturn authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(appUser.getUsername(), appUser.getPassword()));\r\n\t}", "public void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(this, email, password);\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailField.setError(null);\n mPasswordField.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailField.getText().toString();\n String password = mPasswordField.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordField.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordField;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailField.setError(getString(R.string.error_field_required));\n focusView = mEmailField;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailField.setError(getString(R.string.error_invalid_email));\n focusView = mEmailField;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n signIn(email, password);\n }\n }", "public void attemptLogin() {\n\n\t\t// Reset errors.\n\t\tmUserView.setError(null);\n\t\tmPasswordView.setError(null);\n\n\t\t// Save values.\n\t\tmUser = mUserView.getText().toString();\n\t\tmPassword = mPasswordView.getText().toString();\n\n\t\tboolean cancel = false;\n\t\tView focusView = null;\n\n\t\t// Check for a valid password.\n\t\tif (TextUtils.isEmpty(mPassword)) {\n\t\t\tmPasswordView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t} else if (mPassword.length() < 4) {\n\t\t\tmPasswordView.setError(getString(R.string.error_invalid_password));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t}\n\n\t\t// Check for a valid user.\n\t\tif (TextUtils.isEmpty(mUser)) {\n\t\t\tmUserView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mUserView;\n\t\t\tcancel = true;\n\t\t} else if (mUser.length() < 4) {\n\t\t\tmUserView.setError(getString(R.string.error_invalid_user));\n\t\t\tfocusView = mUserView;\n\t\t\tcancel = true;\n\t\t}\n\t\t\t\t\n\t\tif (cancel) {\n\t\t\t// There is an error, so registration does not success and focus on the error.\n\t\t\tfocusView.requestFocus();\n\t\t} else {\n\t\t\t// Send information to server.\n\t\t\tmLoginStatusMessageView.setText(R.string.login_progress_registering);\n\t\t\tshowProgress(true);\n\t\t\tsendInfoToServer();\n\t\t}\n\t}", "EmployeeMaster authenticateUser(int employeeId, String password);", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.kkkkkkkkl[]/\\]\n\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n\n // Intent signInActivityIntent= new Intent(this,UserProfileActivity.class);\n // startActivity(signInActivityIntent);\n }\n }", "public void attemptLogin() {\n\t\tif (mAuthTask != null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Reset errors.\n\t\tmEmailView.setError(null);\n\t\tmPasswordView.setError(null);\n\n\t\t// Store values at the time of the login attempt.\n\t\tmEmail = mEmailView.getText().toString();\n\t\tmPassword = mPasswordView.getText().toString();\n\n\t\tboolean cancel = false;\n\t\tView focusView = null;\n\n\t\t/*\n\t\t * // Check for a valid password. if (TextUtils.isEmpty(mPassword)) {\n\t\t * mPasswordView.setError(getString(R.string.error_field_required));\n\t\t * focusView = mPasswordView; cancel = true; } else if\n\t\t * (mPassword.length() < 4) {\n\t\t * mPasswordView.setError(getString(R.string.error_invalid_password));\n\t\t * focusView = mPasswordView; cancel = true; }\n\t\t * \n\t\t * // Check for a valid email address. if (TextUtils.isEmpty(mEmail)) {\n\t\t * mEmailView.setError(getString(R.string.error_field_required));\n\t\t * focusView = mEmailView; cancel = true; } else if\n\t\t * (!mEmail.contains(\"@\")) {\n\t\t * mEmailView.setError(getString(R.string.error_invalid_email));\n\t\t * focusView = mEmailView; cancel = true; }\n\t\t */\n\t\tif (cancel) {\n\t\t\t// There was an error; don't attempt login and focus the first\n\t\t\t// form field with an error.\n\t\t\tfocusView.requestFocus();\n\t\t} else {\n\t\t\t// Show a progress spinner, and kick off a background task to\n\t\t\t// perform the user login attempt.\n\t\t\tshowProgress(true);\n\t\t\tmAuthTask = new UserLoginTask();\n\t\t\tmAuthTask.execute((Void) null);\n\t\t}\n\t}", "private UserSession handleBasicAuthentication(String credentials, HttpServletRequest request) {\n\t\tString userPass = Base64Decoder.decode(credentials);\n\n\t\t// The decoded string is in the form\n\t\t// \"userID:password\".\n\t\tint p = userPass.indexOf(\":\");\n\t\tif (p != -1) {\n\t\t\tString userID = userPass.substring(0, p);\n\t\t\tString password = userPass.substring(p + 1);\n\t\t\t\n\t\t\t// Validate user ID and password\n\t\t\t// and set valid true if valid.\n\t\t\t// In this example, we simply check\n\t\t\t// that neither field is blank\n\t\t\tIdentity identity = WebDAVAuthManager.authenticate(userID, password);\n\t\t\tif (identity != null) {\n\t\t\t\tUserSession usess = UserSession.getUserSession(request);\n\t\t\t\tsynchronized(usess) {\n\t\t\t\t\t//double check to prevent severals concurrent login\n\t\t\t\t\tif(usess.isAuthenticated()) {\n\t\t\t\t\t\treturn usess;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tusess.signOffAndClear();\n\t\t\t\t\tusess.setIdentity(identity);\n\t\t\t\t\tUserDeletionManager.getInstance().setIdentityAsActiv(identity);\n\t\t\t\t\t// set the roles (admin, author, guest)\n\t\t\t\t\tRoles roles = BaseSecurityManager.getInstance().getRoles(identity);\n\t\t\t\t\tusess.setRoles(roles);\n\t\t\t\t\t// set authprovider\n\t\t\t\t\t//usess.getIdentityEnvironment().setAuthProvider(OLATAuthenticationController.PROVIDER_OLAT);\n\t\t\t\t\n\t\t\t\t\t// set session info\n\t\t\t\t\tSessionInfo sinfo = new SessionInfo(identity.getName(), request.getSession());\n\t\t\t\t\tUser usr = identity.getUser();\n\t\t\t\t\tsinfo.setFirstname(usr.getProperty(UserConstants.FIRSTNAME, null));\n\t\t\t\t\tsinfo.setLastname(usr.getProperty(UserConstants.LASTNAME, null));\n\t\t\t\t\tsinfo.setFromIP(request.getRemoteAddr());\n\t\t\t\t\tsinfo.setFromFQN(request.getRemoteAddr());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInetAddress[] iaddr = InetAddress.getAllByName(request.getRemoteAddr());\n\t\t\t\t\t\tif (iaddr.length > 0) sinfo.setFromFQN(iaddr[0].getHostName());\n\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\t // ok, already set IP as FQDN\n\t\t\t\t\t}\n\t\t\t\t\tsinfo.setAuthProvider(BaseSecurityModule.getDefaultAuthProviderIdentifier());\n\t\t\t\t\tsinfo.setUserAgent(request.getHeader(\"User-Agent\"));\n\t\t\t\t\tsinfo.setSecure(request.isSecure());\n\t\t\t\t\tsinfo.setWebDAV(true);\n\t\t\t\t\tsinfo.setWebModeFromUreq(null);\n\t\t\t\t\t// set session info for this session\n\t\t\t\t\tusess.setSessionInfo(sinfo);\n\t\t\t\t\t//\n\t\t\t\t\tusess.signOn();\n\t\t\t\t\treturn usess;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Before(unless = { \"signin\", \"doLogin\" })\n\tprivate static void checkAuthentification() {\n\t\t// get ID from secure social plugin\n\t\tString uid = session.get(PLAYUSER_ID);\n\t\tif (uid == null) {\n\t\t\tsignin(null);\n\t\t}\n\n\t\t// get the user from the store. TODO Can also get it from the cache...\n\t\tUser user = null;\n\t\tif (Cache.get(uid) == null) {\n\t\t\ttry {\n\t\t\t\tuser = UserClient.getUserFromID(uid);\n\t\t\t\tCache.set(uid, user);\n\t\t\t} catch (ApplicationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\t}\n\t\t} else {\n\t\t\tuser = (User) Cache.get(uid);\n\t\t}\n\n\t\tif (user == null) {\n\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\tAuthentifier.logout();\n\t\t}\n\n\t\tif (user.avatarURL == null) {\n\t\t\tuser.avatarURL = Gravatar.get(user.email, 100);\n\t\t}\n\n\t\t// push the user object in the request arguments for later display...\n\t\trenderArgs.put(PLAYUSER, user);\n\t}", "void initiateLogin() {\n\t\tString username = this.mAuthUsername.getText().toString();\n\t\tString password = this.mAuthPassword.getText().toString();\n\t\t\n\t\tfetch();\n\t\tthis.mAuthTask = new AuthenticationTask(this, this, username, password);\n\t\tthis.mAuthTask.execute();\n\t}", "private void attemptLogin() {\n if (isLoggingIn) {\n return;\n }\n\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!Utils.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n } else if (!Utils.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n if (!HttpUtils.isNetworkAvailable(this.getApplicationContext())) {\n Toast.makeText(this.getApplicationContext(), \"No internet\", Toast.LENGTH_SHORT).show();\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(mPasswordView.getWindowToken(), 0);\n\n LoginApi.executeLogin(this, email, password);\n }\n }", "public void authenticateUser() {\n\n String username = viewUsername.getText().toString();\n String password = viewPassword.getText().toString();\n\n Timber.v(\"authenticateUser called username: \" + username);\n activity.getOnboardingViewModel().authenticateUser(username, password);\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !Utility_Helper.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!Utility_Helper.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n // if user flow not cancelled execute Simulate_Login_Task asyncronous task\n // to simulate login\n Simulate_Login_Task task = new Simulate_Login_Task(this, dummyList, email, password);\n task.setOnResultListener(asynResult);\n task.execute();\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n login(email, password);\n\n }\n }", "public void login(HttpServletRequest req, HttpServletResponse res) throws IOException {\n\n // Client credentials\n Properties p = GlobalSettings.getNode(\"oauth.password-credentials\");\n String clientId = p.getProperty(\"client\");\n String secret = p.getProperty(\"secret\");\n ClientCredentials clientCredentials = new ClientCredentials(clientId, secret);\n\n // User credentials\n String username = req.getParameter(\"username\");\n String password = req.getParameter(\"password\");\n UsernamePassword userCredentials = new UsernamePassword(username, password);\n\n // Create request\n TokenResponse oauth = TokenRequest.newPassword(userCredentials, clientCredentials).post();\n if (oauth.isSuccessful()) {\n PSToken token = oauth.getAccessToken();\n\n // If open id was defined, we can get the member directly\n PSMember member = oauth.getMember();\n if (member == null) {\n member = OAuthUtils.retrieve(token);\n }\n\n if (member != null) {\n OAuthUser user = new OAuthUser(member, token);\n HttpSession session = req.getSession(false);\n String goToURL = this.defaultTarget;\n if (session != null) {\n ProtectedRequest target = (ProtectedRequest)session.getAttribute(AuthSessions.REQUEST_ATTRIBUTE);\n if (target != null) {\n goToURL = target.url();\n session.invalidate();\n }\n }\n session = req.getSession(true);\n session.setAttribute(AuthSessions.USER_ATTRIBUTE, user);\n res.sendRedirect(goToURL);\n } else {\n LOGGER.error(\"Unable to identify user!\");\n res.sendError(HttpServletResponse.SC_FORBIDDEN);\n }\n\n } else {\n LOGGER.error(\"OAuth failed '{}': {}\", oauth.getError(), oauth.getErrorDescription());\n if (oauth.isAvailable()) {\n res.sendError(HttpServletResponse.SC_FORBIDDEN);\n } else {\n res.sendError(HttpServletResponse.SC_BAD_GATEWAY);\n }\n }\n\n }", "public void attemptLogin() {\n\n\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n mEmail = mEmailView.getText().toString();\n mPassword = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password.\n if (TextUtils.isEmpty(mPassword)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n } else if (mPassword.length() < 4) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(mEmail)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!mEmail.contains(\"@\")) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n mLoginStatusMessageView.setText(R.string.login_progress_signing_in);\n showProgress(true);\n mAuthTask = new UserLoginTask();\n mAuthTask.execute((Void) null);\n }\n }", "public User doAuthentication(String account, String password);", "private void attemptLogin() {\n // Reset errors.\n mEmailView.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = mEmailView.getText().toString();\n \n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to perform the user login attempt.\n showProgress(true);\n\n // Register user to server.\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"userId\", email);\n params.put(\"gcmToken\", UserManager.getUserGcmToken(this));\n new HttpClientAsyncTask(Constants.APP_SERVER_USER_CREATE_URL, HttpClientCallable.POST, params) {\n @Override\n protected void onPostExecute(String response) {\n showProgress(false);\n\n try {\n if (response != null) {\n JSONObject responseObj = new JSONObject(response);\n Log.d(Constants.TAG, \"User login server response: \" + responseObj);\n String errorMsg = responseObj.getString(\"error\");\n if (errorMsg.isEmpty()) {\n UserManager.setUserLoggedIn(LoginActivity.this, true);\n UserManager.setUserId(LoginActivity.this, email);\n Log.d(Constants.TAG, \"Successfully logged in. Directing to MainActivity.\");\n startActivity(new Intent(LoginActivity.this, MainActivity.class));\n finish();\n } else {\n Toast.makeText(LoginActivity.this, \"Email registration was rejected.\", Toast.LENGTH_LONG).show();\n }\n } else {\n Toast.makeText(LoginActivity.this, \"Server response was unexpected.\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(Constants.TAG, e.getMessage());\n Toast.makeText(LoginActivity.this, \"Error while communicating with server.\", Toast.LENGTH_LONG).show();\n }\n }\n }.execute();\n }\n }", "@Override\n\tpublic UserDetailsBean login(UserDetailsBean userDetailsBean) {\n\t\treturn userDao.login(userDetailsBean);\n\t}", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public void attemptLogin() {\r\n\t\tif (mAuthTask != null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Reset errors.\r\n\t\tthis.activity.getmEmailView().setError(null);\r\n\t\tthis.activity.getmPasswordView().setError(null);\r\n\r\n\t\t// Store values at the time of the login attempt.\r\n\t\tmEmail = this.activity.getmEmailView().getText().toString();\r\n\t\tmPassword = this.activity.getmPasswordView().getText().toString();\r\n\r\n\t\tboolean cancel = false;\r\n\t\tView focusView = null;\r\n\r\n\t\t// Check for a valid password.\r\n\t\tif (TextUtils.isEmpty(mPassword)) {\r\n\t\t\tthis.activity.getmPasswordView().setError(this.activity.getString(R.string.error_field_required));\r\n\t\t\tfocusView = this.activity.getmPasswordView();\r\n\t\t\tcancel = true;\r\n\t\t} else if (mPassword.length() < 4) {\r\n\t\t\tthis.activity.getmPasswordView().setError(this.activity.getString(R.string.error_invalid_password));\r\n\t\t\tfocusView = this.activity.getmPasswordView();\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\r\n\t\t// Check for a valid email address.\r\n\t\tif (TextUtils.isEmpty(mEmail)) {\r\n\t\t\tthis.activity.getmEmailView().setError(this.activity.getString(R.string.error_field_required));\r\n\t\t\tfocusView = this.activity.getmEmailView();\r\n\t\t\tcancel = true;\r\n\t\t} else if (!mEmail.contains(\"@\")) {\r\n\t\t\tthis.activity.getmEmailView().setError(this.activity.getString(R.string.error_invalid_email));\r\n\t\t\tfocusView = this.activity.getmEmailView();\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\r\n\t\tif (cancel) {\r\n\t\t\t// There was an error; don't attempt login and focus the first\r\n\t\t\t// form field with an error.\r\n\t\t\tfocusView.requestFocus();\r\n\t\t} else {\r\n\t\t\t// Show a progress spinner, and kick off a background task to\r\n\t\t\t// perform the user login attempt.\r\n\t\t\tthis.activity.getmLoginStatusMessageView().setText(R.string.login_progress_signing_in);\r\n\t\t\tthis.activity.showProgress(true);\r\n\t\t\tmAuthTask = new UserLoginTask();\r\n\t\t\tmAuthTask.execute((Void) null);\r\n\t\t}\r\n\t}", "private void attemptLogin() {\n\n if (!Utils.isNetworkAvailable(mBaseActivity)) {\n Utils.showNetworkAlertDialog(mBaseActivity);\n return;\n }\n if (signInTask != null) {\n return;\n }\n\n // Reset errors.\n binding.email.setError(null);\n binding.password.setError(null);\n\n // Store values at the time of the login attempt.\n String email = binding.email.getText().toString();\n String password = binding.password.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n binding.email.setError(getString(R.string.error_field_required));\n focusView = binding.email;\n cancel = true;\n } else if (TextUtils.isEmpty(password)) {\n binding.password.setError(getString(R.string.error_field_required));\n focusView = binding.password;\n cancel = true;\n } else if (!isEmailValid(email)) {\n binding.email.setError(getString(R.string.error_invalid_email));\n focusView = binding.email;\n cancel = true;\n } else if (!isPasswordValid(password)) {\n binding.password.setError(getString(R.string.error_invalid_password));\n focusView = binding.password;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // perform the user login attempt.\n signInTask = new AsyncTask(mBaseActivity);\n signInTask.execute(email, password);\n }\n }", "public void initLogin() {\n\n Log.d(TAG, \"Setting: Initial Login\");\n txtUsername.setError(null);\n txtPassword.setError(null);\n\n String username = txtUsername.getText().toString();\n String password = txtPassword.getText().toString();\n\n boolean cancelLogin = false;\n View focusView = null;\n\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n txtPassword.setError(getString(R.string.message_invalid_password));\n focusView = txtPassword;\n cancelLogin = true;\n }\n if (TextUtils.isEmpty(username)) {\n txtUsername.setError(getString(R.string.message_field_required));\n focusView = txtUsername;\n cancelLogin = true;\n } else if (!isUsernameValid(username)) {\n txtUsername.setError(getString(R.string.message_invalid_username));\n focusView = txtUsername;\n cancelLogin = true;\n }\n\n if (cancelLogin) {\n Log.d(TAG, \"Error in login\");\n focusView.requestFocus();\n } else {\n Log.d(TAG, \"Show progress spinner, and start background task to login\");\n showProgress(true);\n userLoginTask = new UserLoginTask(username, password);\n userLoginTask.execute((Void) null);\n }\n }", "protected void login() {\n\t\t\r\n\t}", "public void doLogin() throws IOException {\n if (principal != null) {\n LOG.info(\n \"Attempting to login to KDC using principal: {} keytab: {}\", principal, keytab);\n UserGroupInformation.loginUserFromKeytab(principal, keytab);\n LOG.info(\"Successfully logged into KDC\");\n } else if (!isProxyUser(UserGroupInformation.getCurrentUser())) {\n LOG.info(\"Attempting to load user's ticket cache\");\n UserGroupInformation.loginUserFromSubject(null);\n LOG.info(\"Loaded user's ticket cache successfully\");\n } else {\n throwProxyUserNotSupported();\n }\n }", "public static void userLogin(Context context)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\r\n\t\t\tString username = context.formParam(\"myUsername\");\r\n\t\t\tString password = context.formParam(\"myPassword\");\r\n\t\t\t\r\n\t\t\tif(myAccountServ.attemptLoginServiceLayer(username, password)) //if true then get user account from DB\r\n\t\t\t{\r\n\t//\t\t\tSystem.out.println(myAccountServ.getMyAccountFromDatabase(username, password));\r\n\t\t\t\tcontext.sessionAttribute(\"currentUser\", myAccountServ.getMyAccountFromDatabase(username, password)); //set session to user account info\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")));\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1);\r\n\t\t\t\tif(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1)//check user role id if they employeee\r\n\t\t\t\t{\r\n\t\t\t\t\t//take me to the employee page\r\n\t\t\t\t\tcontext.redirect(\"/html/employee-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 0) // or if they manager\r\n\t\t\t\t{\r\n\t\t\t\t\tcontext.redirect(\"/html/manager-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse//if we failed login attempt... send us back to login page aka \"/index.html\"\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"not correct credentials\");\r\n\t\t\t\tcontext.redirect(\"/index.html\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogging.error(e);\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"username: \" + username);\r\n//\t\tSystem.out.println(\"pssword: \" + password);\r\n\t}", "private void login() {\n User user;\n SharedPreferences preferences = context.getSharedPreferences(context.getString(R.string.user_shared_preferences), MODE_PRIVATE);\n preferences.edit().putLong(context.getString(R.string.user_id), -1).apply();\n if(preferences.getLong(context.getString(R.string.user_id), -1) != -1){\n user = User.getUser();\n }\n else{\n Globals.showDialog(\"New User\",\"Choose a user name\", LoginActivity.this);\n\n }\n user = new User();\n\n HttpUserService userService = new HttpUserService();\n Call<User> call = userService.login(user.getId());\n\n call.enqueue(new Callback<User>() {\n @Override\n public void onResponse(Call<User> call, Response<User> response) {\n asyncLogin(response);\n\n\n }\n\n @Override\n public void onFailure(Call<User> call, Throwable t) {\n Globals.showConnectionDialog(LoginActivity);\n\n }\n });\n }", "private void makeLogin() {\n if (enableLoginActivity && mAuth.getCurrentUser() == null) {\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\n finish();\n }\n else if (!enableLoginActivity) {\n user = new User(\"johnDoe\", \"[email protected]\", \"1234\");\n }\n }", "public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}", "private void loginFlow() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\n\t\tif (userController.isLoggedIn()) {\n\t\t\t// continue\n\t\t} else {\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t\t}\n\t}", "private void attemptLogin() {\n final UserManager um = new UserManager();\n final String userName = userText.getText().toString();\n final String userPass = passwordText.getText().toString();\n final User attemptUser = um.login(userName, userPass);\n if (attemptUser != null) {\n SessionState.getInstance().startSession(attemptUser,\n getApplicationContext());\n resetFields();\n switch (attemptUser.getUserStatus()) {\n case USER:\n startBMS();\n break;\n case ADMIN:\n startAdmin();\n break;\n case BANNED:\n Toast.makeText(LoginActivity.this, \"Sorry, this user is \" +\n \"currently banned\", Toast\n .LENGTH_SHORT).show();\n break;\n case LOCKED:\n Toast.makeText(LoginActivity.this, \"Sorry, this user is \" +\n \"currently locked\", Toast\n .LENGTH_SHORT).show();\n break;\n\n }\n } else {\n if (!um.userExists(userName)) {\n userText.setError(\"Invalid Username\");\n } else {\n passwordText.setError(\"Invalid Password\");\n loginAttempts++;\n if (loginAttempts >= LOCK_ATTEMPTS) {\n final User attemptedUser = um.findUserById(userName);\n attemptedUser.setUserStatus(User.UserStatus.LOCKED);\n um.updateUser(attemptedUser);\n Toast.makeText(LoginActivity.this, \"Account locked: \" +\n \"too many attempts\", Toast\n .LENGTH_SHORT).show();\n }\n }\n }\n }", "public void attemptLogin()\n {\n if ( mAuthTask != null )\n {\n return;\n }\n\n // Reset errors.\n mIPView_.setError( null );\n mPortView_.setError( null );\n\n // Store values at the time of the login attempt.\n mIP_ = mIPView_.getText().toString();\n mPort_ = mPortView_.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password.\n if ( TextUtils.isEmpty( mPort_ ) )\n {\n mPortView_\n .setError( getString( R.string.error_field_required ) );\n focusView = mPortView_;\n cancel = true;\n }\n // The port should be four digits long\n else if ( mPort_.length() != 4 )\n {\n mPortView_\n .setError( getString( R.string.error_invalid_server ) );\n focusView = mPortView_;\n cancel = true;\n }\n\n // Check for a valid email address.\n if ( TextUtils.isEmpty( mIP_ ) )\n {\n mIPView_.setError( getString( R.string.error_field_required ) );\n focusView = mIPView_;\n cancel = true;\n }\n\n if ( cancel )\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n }\n else\n {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n mLoginStatusMessageView\n .setText( R.string.login_progress_signing_in );\n showProgress( true );\n\n // Start the asynchronous thread to connect and post to the server\n mAuthTask = new UserLoginTask();\n mAuthTask.execute( (Void) null );\n }\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !validateUtil.isPasswordValid(password)) {\n mPasswordView.setError(getString(net.iquesoft.android.seedprojectchat.R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(net.iquesoft.android.seedprojectchat.R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!validateUtil.isEmailValid(email)) {\n mEmailView.setError(getString(net.iquesoft.android.seedprojectchat.R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n presenter.onLoginButtonClicked(mEmailView.getText().toString(), mPasswordView.getText().toString(), rememberPassword.isChecked(), (LoginActivity) getActivity(), updateCurentUser);\n }\n }", "@Override\n public Authentication attemptAuthentication(HttpServletRequest req,\n HttpServletResponse res) throws AuthenticationException {\n log.info(\"Attempting authentication\");\n try {\n LoginRequest creds = new ObjectMapper()\n .readValue(req.getInputStream(), LoginRequest.class);\n\n return getAuthenticationManager().authenticate(\n new UsernamePasswordAuthenticationToken(\n creds.getUsername(),\n creds.getPassword(),\n new ArrayList<>())\n );\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "protected Response login() {\n return login(\"\");\n }", "public User loginUserExternal(UserAccount ua, Map params) throws MultipleLoginException {\r\n\t\tLogManager.getLogger().info( \"Sessions before login: \" + appSessionRepository.count() );\r\n\t\tLogManager.getLogger().info( \"Locks before login: \" + appLockRepository.count() );\r\n\r\n\t\tAppSession is = appSessionRepository.find( ua.getUserCode() );\r\n\t\tDate currentLastLogin = null;\r\n\t\tif ( is == null ) {\r\n\t\t\tappSessionRepository.create((String)params.getOrDefault(\"address\", null), ua.getUserCode());\r\n\t\t\tcurrentLastLogin = ua.getLastlogin();\r\n\t\t\tua.setLastlogin( new Date() );\r\n\t\t\tua.setRealLastlogin(currentLastLogin); // so UI knows the actual last login\r\n\t\t\tuserAccountRepository.persist( ua );\r\n\t\t} else {\r\n\t\t\tdhh.logLogin(ua.getUsername(), \"ALREADY_LOGGED_IN\", params);\r\n\t\t\tthrow new MultipleLoginException();\r\n\t\t}\r\n\t\tdhh.logLogin(ua.getUsername(), \"AUTHENTICATION_SUCCEEDED\", params);\r\n\t\tUser u = ua.getUser();\r\n\t\treturn u;\r\n\t}", "LoginContext login(String username, String password) throws LoginException;", "public void startAuth(AccountManagerCallback accountManagerCallback) {\n mAccountManagerCallback = accountManagerCallback;\n\n CognitoUser user = mUserPool.getUser(mEmail);\n user.getSessionInBackground(authenticationHandler);\n }", "void AllowUserToLogin(String userName, String password) {\n\t\tParseUser.logInInBackground(userName, password, new LogInCallback() {\r\n\t\t\tpublic void done(ParseUser user, ParseException e) {\r\n\t\t\t\tif (user != null) {\r\n\t\t\t\t\t// If user exist and authenticated, send user to\r\n\t\t\t\t\t// Welcome.class\r\n\t\t\t\t\tIntent intent = new Intent(Register.this, ClientList.class);\r\n\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\r\n\t\t\t\t\t\t\t| Intent.FLAG_ACTIVITY_CLEAR_TASK);\r\n\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\tprogressdialog.dismiss();\r\n\t\t\t\t\tToast.makeText(getApplicationContext(),\r\n\t\t\t\t\t\t\t\"Successfully Logged in\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tprogressdialog.dismiss();\r\n\t\t\t\t\tshowAlert(\"No such user exist, please signup\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\r\n\tpublic User login(User u) throws Exception {\n\t\treturn userRepository.login(u);\r\n\t}", "public void attemptLogin() {\n\t\t// Reset errors.\n\t\temailTextView.setError(null);\n\t\tpasswordTextView.setError(null);\n\n\t\t// Store values at the time of the login attempt.\n\t\temail = emailTextView.getText().toString();\n\t\tpassword = passwordTextView.getText().toString();\n\n\t\tboolean cancel = false;\n\n\t\t// Check for a valid email address.\n\t\tcancel = Validate.PresenceOf(emailTextView);\n\t\tif (!cancel) cancel = Validate.PatternOf(emailTextView, Patterns.EMAIL_ADDRESS);\n\t\t\n\t\t// check valid password\n\t\tif (!cancel) cancel = Validate.PresenceOf(passwordTextView);\t\t\n\n\t\tif (!cancel) {\t\n\t\t\tKeyboard.hide(getActivity());\n\t\t\tlogin();\n\t\t}\n\t}", "private static void attemptToLogin() {\n\t\tString id = null;\n\t\tString password = null;\n\t\tString role = null;\n\t\tint chances = 3;\n\t\t//User will get 3 chances to login into the system.\n\t\twhile(chances-->0){\n\t\t\tlog.info(\"Email Id:\");\n\t\t\tid = sc.next();\n\t\t\tlog.info(\"Password:\");\n\t\t\tpassword = sc.next();\n\t\t\trole = LogInAuthentication.authenticate(id, password);\n\t\t\t//If correct credentials are entered then role of user will be fetch from the database. \n\t\t\tif(role == null) {\n\t\t\t\t//If role is not fetched, error and left chances will be shown.\n\t\t\t\tlog.error(\"Invalid EmailId or password\");\n\t\t\t\tlog.info(\"Chances left: \"+chances);\n\t\t\t}\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\t//After verifying credentials User will be on-board to its portal depending upon the role.\n\t\tonboard(id,role);\n\t}", "@Override\n public Authentication attemptAuthentication(\n HttpServletRequest request,\n HttpServletResponse response) throws AuthenticationException {\n\n try {\n // 1. pobieramy dane uzytkownika ktory chce sie zalogowac\n AuthenticationUser user = new ObjectMapper().readValue(request.getInputStream(), AuthenticationUser.class);\n\n // 2. dokonujemy proby logowania\n return authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(\n user.getUsername(),\n user.getPassword(),\n Collections.emptyList()\n ));\n } catch ( Exception e ) {\n throw new AppException(e.getMessage());\n }\n\n }", "@Override\n\tpublic void loginUser() {\n\t\t\n\t}", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "public void attemptLogin() {\n if (mLoginTask != null) {\n return;\n }\n\n // Reset errors.\n mUserNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String mUserName = mUserNameView.getText().toString();\n String mPassword = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password.\n if (TextUtils.isEmpty(mPassword)) {\n mPasswordView.setError(getString(R.string.error_password_required));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(mUserName)) {\n mUserNameView.setError(getString(R.string.error_username_required));\n focusView = mUserNameView;\n cancel = true;\n }\n\n if (cancel) {\n // 出错时,让相应的控件获取焦点\n focusView.requestFocus();\n } else {\n // 进行登录\n mLoginTask = new LoginTask(LoginActivity.this, mUserName, mPassword, new LoginTask.OnLoginFinished() {\n @Override\n public void onFinished(String result) {\n try {\n JSONObject userJsonObject = new JSONObject(result);\n\n Intent intent = new Intent(LoginActivity.this, MainActivity.class);\n intent.putExtra(\"UserId\", userJsonObject.getString(\"UserId\"));\n intent.putExtra(\"Key\", userJsonObject.getString(\"Key\"));\n intent.putExtra(\"UserName\", userJsonObject.getString(\"UserName\"));\n intent.putExtra(\"Orid\", userJsonObject.getString(\"Orid\"));\n if(userJsonObject.has(\"PlateType\"))\n intent.putExtra(\"PlateType\", userJsonObject.getString(\"PlateType\"));\n mLoginTask = null;\n\n rememberUserName(((CheckBox)findViewById(R.id.rememberUserName)).isChecked());\n\n startActivity(intent);\n finish();\n } catch (JSONException e) {\n Log.d(\"DFCarChecker\", \"Json解析错误:\" + e.getMessage());\n }\n }\n\n @Override\n public void onFailed(String error) {\n mLoginTask = null;\n // 登录失败,获取错误信息并显示\n Log.d(AppCommon.TAG, \"登录时出现错误:\" + error);\n\n mPasswordView.setError(error);\n mPasswordView.requestFocus();\n }\n });\n mLoginTask.execute();\n }\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n if(isOnline()){\n try {\n ApiRequests.POST(\"login/\", new Callback() {\n @Override\n public void onFailure(Call call, final IOException e) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Log.e(\"error:\", \"burda\");\n }\n });\n }\n\n @Override\n public void onResponse(Call call, final Response response) throws IOException {\n\n try {\n processTheResponse(response.body().string());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n }, email, password);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n else {\n InternetConnectionError();\n }\n }\n }", "public User login(String loginName, String password) throws UserBlockedException;", "public abstract User login(User data);", "private void attemptConnect() {\r\n if (mConnectTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mNameView.setError(null);\r\n mKeyView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String name = mNameView.getText().toString();\r\n String key = mKeyView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid name, if the user entered one.\r\n if (TextUtils.isEmpty(name)) {\r\n mNameView.setError(getString(R.string.error_invalid_password));\r\n focusView = mNameView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(key)) {\r\n mKeyView.setError(getString(R.string.error_field_required));\r\n focusView = mKeyView;\r\n cancel = true;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // Show a progress spinner, and kick off a background task to\r\n // perform the user login attempt.\r\n mConnectTask = new ConnectTask(this, name, key);\r\n mConnectTask.execute((Void) null);\r\n }\r\n }", "public void loginUser() {\n \tString username = usernameField.getText().toString();\n \tString password = passwordField.getText().toString();\n \n \t// Validation part.\n \tString empty = \"\";\n \t// Check if username is empty.\n \tif(username.isEmpty()) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Please enter a username.\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n \t// Check if username contains othe characters.\n \tif(! Pattern.matches(\"[a-zA-Z]+\", username)) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Username can only contain alphabets\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n \t\n \t// Check if password is empty.\n \tif(password.isEmpty()) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Please enter a password.\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n\n \t\n \tArrayList<NameValuePair> userData = new ArrayList<NameValuePair>();\n \tuserData.add(new BasicNameValuePair(\"username\", username));\n \tuserData.add(new BasicNameValuePair(\"password\", password));\n \t\n \t// Now send the data to the login user task to\n \t// check if they are correct.\n \tnew AuthenticateUserTask(this, userData).execute();\n \t\n }", "public void login(User user);", "private void attemptLogin() {\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_email_is_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!mPresenter.isEmailValid(email)) {\n //mEmailView.setError(getString(R.string.error_invalid_email));\n customConfirmDialog(getString(R.string.message_incorrect_email), getString(R.string.message_require_format_email));\n focusView = mEmailView;\n cancel = true;\n }else if (!TextUtils.isEmpty(password) && !mPresenter.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n //customConfirmDialog(getString(R.string.message_incorrect_password), getString(R.string.message_please_insert_valid_password));\n focusView = mPasswordView;\n cancel = true;\n }else if(TextUtils.isEmpty(password))\n {\n customConfirmDialog(getString(R.string.message_incorrect_password), getString(R.string.message_please_insert_valid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n if (isNetworkOffline()) {\n return;\n }\n showLoadingDialog(getString(R.string.message_please_wait));\n mPresenter.doLoginByEmail(email, password);\n }\n }", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n mAuthTask = new UserLoginTask(email, password);\r\n try {\r\n Boolean logStatus = mAuthTask.execute(\"http://shubhamgoswami.me/login\").get();\r\n if(logStatus){\r\n SQLiteDatabase db = openOrCreateDatabase(\"adharShila\",MODE_PRIVATE, null);\r\n db.execSQL(\"UPDATE LOGSTATUS SET USERNAME=\\\"\"+mEmailView.getText()+\"\\\", STATUS=1 WHERE ENTRY=1\");\r\n db.close();\r\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\r\n i.putExtra(\"username\", mEmailView.getText());\r\n i.putExtra(\"password\", password);\r\n startActivity(i);\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\n }", "private void attemptLogin() {\n String email = text_email.getText().toString();\n String password = text_password.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n text_password.setError(getString(R.string.error_field_required));\n focusView = text_password;\n cancel = true;\n }\n if (!isPasswordValid(password)) {\n text_password.setError(getString(R.string.error_invalid_password));\n focusView = text_password;\n cancel = true;\n }\n\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n text_email.setError(getString(R.string.error_field_required));\n focusView = text_email;\n cancel = true;\n } else if (!isEmailValid(email)) {\n text_email.setError(getString(R.string.error_invalid_email));\n focusView = text_email;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n //showProgress(true);\n login(USER_NORMAL);\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Realm.init(this);\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n User user = MelteeRealm.getApp().currentUser();\n if(user != null && preferences.contains(\"username\")) {\n String username = preferences.getString(\"username\",\"\");\n Log.d(\"Meltee\", \"Automatically logging in as \" + username);\n goToMainActivity(new AuthUserDetails(user, username));\n }\n\n setContentView(R.layout.activity_login);\n loginViewModel = new ViewModelProvider(this, new LoginViewModelFactory())\n .get(LoginViewModel.class);\n\n final EditText usernameEditText = findViewById(R.id.username);\n final EditText passwordEditText = findViewById(R.id.password);\n final Button loginButton = findViewById(R.id.login);\n final Button registerButton = findViewById(R.id.register);\n final ProgressBar loadingProgressBar = findViewById(R.id.loading);\n\n loginViewModel.getLoginFormState().observe(this, loginFormState -> {\n if (loginFormState == null) {\n return;\n }\n boolean isDataValid = loginFormState.isDataValid();\n loginButton.setEnabled(isDataValid);\n registerButton.setEnabled(isDataValid);\n if (loginFormState.getUsernameError() != null) {\n usernameEditText.setError(getString(loginFormState.getUsernameError()));\n }\n if (loginFormState.getPasswordError() != null) {\n passwordEditText.setError(getString(loginFormState.getPasswordError()));\n }\n });\n\n loginViewModel.getLoginResult().observe(this, loginResult -> {\n if (loginResult == null) {\n return;\n }\n loadingProgressBar.setVisibility(View.GONE);\n if (loginResult.getError() != null) {\n showErrorToast(loginResult.getError());\n }\n if (loginResult.getSuccess() != null) {\n saveCredentials(preferences, loginResult.getSuccess().getDisplayName());\n showLoginToast(loginResult.getSuccess().getDisplayName());\n goToMainActivity(loginResult.getSuccess());\n }\n setResult(Activity.RESULT_OK);\n });\n\n loginViewModel.getRegisterResult().observe(this, registerResult -> {\n if(registerResult == null) {\n return;\n }\n loadingProgressBar.setVisibility(View.GONE);\n if(registerResult.getError() != null) {\n showErrorToast(registerResult.getError());\n }\n });\n\n TextWatcher afterTextChangedListener = new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n // ignore\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n // ignore\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n loginViewModel.loginDataChanged(usernameEditText.getText().toString(),\n passwordEditText.getText().toString());\n }\n };\n usernameEditText.addTextChangedListener(afterTextChangedListener);\n passwordEditText.addTextChangedListener(afterTextChangedListener);\n passwordEditText.setOnEditorActionListener((v, actionId, event) -> {\n if (actionId == EditorInfo.IME_ACTION_DONE) {\n loginViewModel.login(usernameEditText.getText().toString(),\n passwordEditText.getText().toString());\n }\n return false;\n });\n\n loginButton.setOnClickListener(v -> {\n loadingProgressBar.setVisibility(View.VISIBLE);\n loginViewModel.login(usernameEditText.getText().toString(),\n passwordEditText.getText().toString());\n });\n\n registerButton.setOnClickListener(v -> {\n loadingProgressBar.setVisibility(View.VISIBLE);\n loginViewModel.register(usernameEditText.getText().toString(),\n passwordEditText.getText().toString(), this);\n });\n\n if(preferences.contains(\"username\")) {\n usernameEditText.setText(preferences.getString(\"username\",\"\"));\n }\n }", "private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}", "@Override\n public void validateCredentials(ObjLogin objLogin, Context mContext) {\n if (loginView != null) {\n loginView.showProgress();\n loginInteractor.login(objLogin, this, mContext);\n }\n }", "User login(String email, String password) throws AuthenticationException;", "@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}", "@Override\n public JsonResponse duringAuthentication(String... params) {\n try {\n final String username = params[0];\n final String password = params[1];\n return RequestHandler.authenticate(this.getApplicationContext(), username, password);\n } catch (IOException e) {\n return null;\n }\n }", "public User loginUserExternal(Map params) throws MultipleLoginException {\r\n\t\tString username = (String) params.get(\"username\");\r\n\t\tparams.put(\"externalLogin\", true);\r\n\t\tint userCount = userHelper.getUserCount();\r\n\t\tif ( userCount == 0 ) {\r\n\t\t\tparams.put(\"role\", 2); // set as Admin\r\n\t\t}\r\n\t\tUser u = userHelper.createNewUser(null, params);\r\n\r\n\t\tdhh.logLogin(username, \"AUTO_USER_CREATE\", params);\r\n\t\tu.getUserAccount().setUser( u );\r\n\t\treturn loginUserExternal(u.getUserAccount(), params);\r\n\t}", "private void getGredentialsFromMemoryAndSetUser()\n\t{\n\t SharedPreferences settings = getSharedPreferences(LOGIN_CREDENTIALS, 0);\n\t String username = settings.getString(\"username\", null);\n\t String password = settings.getString(\"password\", null);\n\t \n\t //Set credentials to CouponsManager.\n\t CouponsManager.getInstance().setUser(new User(username, password));\n\t \n\t}", "private void loginAccount() {\n\t\taccountManager.loginAccount(etEmail.getText().toString(), etPassword.getText().toString());\n\n\t}", "protected void doLogin(Authentication authentication) throws AuthenticationException {\n \n }", "private void attemptLogin() {\n if (mAuth == null) {\n return;\n }\n showIndicator();\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n mEmailView.requestFocus();\n hideIndicator();\n return;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n mEmailView.requestFocus();\n hideIndicator();\n return;\n }\n\n // Check for nonempty password\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n mPasswordView.requestFocus();\n hideIndicator();\n return;\n }\n\n // TODO is it a good idea to move this to function? will it show in memory?????\n mAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n hideIndicator();\n Intent intent = new Intent(LoginActivity.this, ItemListActivity.class);\n startActivity(intent);\n } else {\n hideIndicator();\n // show error\n Toast.makeText(LoginActivity.this, task.getException().getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public User logInUser(final String login, final String password);", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }" ]
[ "0.66794556", "0.6631715", "0.64740205", "0.64688414", "0.64412355", "0.64260215", "0.6418398", "0.64121866", "0.63817286", "0.63775736", "0.6372575", "0.63723", "0.635001", "0.63327235", "0.63057286", "0.62892246", "0.626494", "0.62503886", "0.6247802", "0.6245721", "0.62102824", "0.6196024", "0.61921656", "0.6179747", "0.6179747", "0.61697423", "0.6168752", "0.6167744", "0.6154263", "0.61450243", "0.6139217", "0.613537", "0.61327195", "0.61252165", "0.6122918", "0.611662", "0.6107834", "0.61018705", "0.609954", "0.6096962", "0.6095767", "0.6088769", "0.60766125", "0.60729355", "0.60728884", "0.607016", "0.603414", "0.60283035", "0.6011378", "0.6008343", "0.5958255", "0.59520835", "0.5949839", "0.5936208", "0.59342474", "0.59261394", "0.5923724", "0.59140587", "0.5910719", "0.59058", "0.59036", "0.58989906", "0.5897954", "0.5890256", "0.5866554", "0.58625394", "0.58424973", "0.5830239", "0.58299166", "0.58282006", "0.5822066", "0.5815395", "0.58134526", "0.58126426", "0.580818", "0.5806417", "0.57975996", "0.5788145", "0.57838553", "0.5783472", "0.57741296", "0.57599425", "0.5756719", "0.5756465", "0.5754586", "0.5749013", "0.57453054", "0.57447606", "0.57203513", "0.5718961", "0.57043314", "0.5703508", "0.570153", "0.56898963", "0.5680357", "0.56764656", "0.56756616", "0.56729645", "0.56698394", "0.56688374", "0.566564" ]
0.0
-1
aca meti en invoker command
public GameGenerator() { this.actionsCommand = new ArrayList<ICommand>(); this.invokerCommands = new ArrayList<InvokerCommand>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void execute(Command command) {\n\r\n }", "public abstract boolean commandExecution(CommandSender sender, String label, String[] args);", "public abstract void exec(CommandSender sender, String[] args);", "public abstract void execute(CommandSender sender, String[] args);", "public void ejecutaMetodo() {\n\t\r\n}", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "void legalCommand();", "public abstract void onInvoked(CommandSender sender, String[] args);", "void excuteCommand(Command commandToExecute, String [] params);", "public interface Command {\n\n\n}", "public String c(ICommandSender paramae)\r\n/* 12: */ {\r\n/* 13:17 */ return \"commands.publish.usage\";\r\n/* 14: */ }", "private interface Command {\n public void execute();\n }", "Result command(@NotNull CommandSender sender, List<String> args);", "public interface Command {\n\t public String execute(String[] request);\n}", "@Override\n\tpublic void command(List<Commande> commandes) {\n\t\t\n\t}", "@Override\n public void Execute() {\n\n }", "@Command\n\tpublic void buscar() {\n\t}", "public abstract String getCommand();", "public interface Command {\n\n void executer(Tondeuse tondeuse);\n\n}", "public void act() \n {\n verificaClique();\n }", "public interface Command {\n \n /**\n * Méthode utilisée pour réaliser l'action voulue.\n */\n public void execute();\n \n /**\n * Méthode utilisée pour annuler la dernière action.\n */\n public void undo();\n}", "@Override\n public void initDefaultCommand() \n {\n }", "@Override\n public void initDefaultCommand() {\n\n }", "String getCommand();", "public interface Command {\n\t/**\n *it is used to be defined and to call engine methods\n */\n public void execute();\n \n}", "interface OneArgCommand {\n void doCommand(String a);\n }", "public void noSuchCommand() {\n }", "OwnDesire.Acting formOwnDesireWithActingCommand(DesireKey desireKey);", "public interface CommandExecutor {\n /**\n * This method parse a commands from string and call it\n *\n * @param sender ource of the commands\n * @param connectionCommand commands\n * @return true if a valid commands, otherwise false\n */\n default boolean onCommand(CommandSender sender, ConnectionCommand connectionCommand) {\n String[] split = connectionCommand.getCommand().split(\" \");\n\n return onCommand(sender, split[0], Arrays.copyOfRange(split, 1, split.length), connectionCommand.getArgs());\n }\n\n /**\n * Executes the given commands, returning its success\n *\n * @param sender ource of the commands\n * @param command Command which was executed\n * @param args Passed commands arguments\n * @param objects Objects\n * @return true if a valid commands, otherwise false\n */\n boolean onCommand(CommandSender sender, String command, String[] args, Object... objects);\n\n}", "protected void executeVmCommand() {\n }", "public void initDefaultCommand() {\n \n }", "private InfoCommand()\n\t{\n\t\t\n\t\t\n\t}", "public void Execute() {\n\n }", "public CommandMAN() {\n super();\n }", "public void executeCommand (String name) throws CommandeException\n\t{\n\t\t//System.out.println(\"entrer dans execute\");\n\t\t CommandInterface usercommand = listedescommande.get(name);\n\t if (usercommand == null) {\n\t \t//System.out.println(\"erreur de commande\");\n\t throw new CommandeException(name);\n\t }\n\t usercommand.apply();\n\t //System.out.println(\"passe apres interpretreur\");\n\t}", "public abstract void onCommand(MessageEvent context) throws Exception;", "public void initDefaultCommand() \n {\n }", "protected abstract DispatchOutcome dispatchCommand(CommandEnvelope cmd);", "@Override\n public void process(Serializable msg) {\n ((Command) msg).execute(arg);\n }", "@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}", "@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}", "public boolean test(CommandSender sender, MCommand command);", "public void execute() {\n\t\ttry {\n\t\t\tMethod method = this.getClass().getMethod(parseMethod(), new Class[0]);\n\t\t\tmethod.invoke(this, new Object[0]);\n\t\t} catch (NoSuchMethodException | SecurityException e) {\n\t\t\tSystem.out.println(\"Unknown option: \" + command);\n\t\t} catch (IllegalAccessException | IllegalArgumentException e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Invalid usage of: \" + command + \", the following error \" + \"was given: \" + e.getMessage());\n\t\t} catch (InvocationTargetException e) {\n\t\t\tSystem.out.println(\"An error occurred while executing '\" + command + \"'. The \"\n\t\t\t\t\t+ \"following error was given: \" + e.getCause());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void commandEntered(String cmd)\n {\n String cleaned = StringUtils.cleanWhiteSpace(cmd.trim());\n String args[] = cleaned.split(\" \");\n \tString c = args[0];\n \n Runnable cb = new Runnable() { public void run() { cbEmptyResponse(); } };\n \n \tif (c.equals(\"name\"))\n cb = new Runnable() { public void run() { cbName(); } };\n else if (c.equals(\"version\")) \n cb = new Runnable() { public void run() { cbVersion(); } };\n else if (c.equals(\"genmove\")) \n cb = new Runnable() { public void run() { cbGenMove(); } };\n else if (c.equals(\"all_legal_moves\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"get_absorb_group\"))\n cb = new Runnable() { public void run() { cbGetAbsorbGroup(); } };\n \n \telse if (c.equals(\"shortest_paths\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \telse if (c.equals(\"shortest_vc_paths\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \n else if (c.equals(\"compute_dead_cells\"))\n cb = new Runnable() { public void run() { cbComputeDeadCells(); } };\n else if (c.equals(\"vc-build\"))\n cb = new Runnable() { public void run() { cbComputeDeadCells(); } };\n else if (c.equals(\"vc-build-incremental\"))\n cb = new Runnable() { public void run() { cbComputeDeadCells(); } };\n \n \n else if (c.equals(\"solver-find-winning\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } }; \n \n else if (c.equals(\"find_sealed\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"strengthen_vcs\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \n \n else if (c.equals(\"book-depths\")) \n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n else if (c.equals(\"book-sizes\")) \n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n else if (c.equals(\"book-scores\"))\n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n \telse if (c.equals(\"book-priorities\"))\n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n \n else if (c.equals(\"db-get\")) \n cb = new Runnable() { public void run() { cbDBGet(); } };\n \n else if (c.equals(\"vc-connected-to\")) \n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"vc-between-cells\"))\n cb = new Runnable() { public void run() { cbBetweenCells(); } };\n else if (c.equals(\"vc-get-mustplay\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"vc-intersection\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n else if (c.equals(\"vc-union\"))\n cb = new Runnable() { public void run() { cbDisplayPointList(); } };\n \n else if (c.equals(\"eval_twod\")) \n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n else if (c.equals(\"eval_resist\")) \n cb = new Runnable() { public void run() { cbEvalResist(); } };\n else if (c.equals(\"eval_resist_delta\")) \n cb = new Runnable() { public void run() { cbEvalResistDelta(); } };\n \telse if (c.equals(\"eval_influence\"))\n cb = new Runnable() { public void run() { cbDisplayPointText(); } };\n \n else if (c.equals(\"mohex-show-rollout\")) \n cb = new Runnable() { public void run() { cbMohexShowRollout(); } };\n else if (c.equals(\"quit\")) \n cb = new Runnable() { public void run() { cbEmptyResponse(); } };\n \n sendCommand(cmd, cb);\n }", "boolean onCommand(CommandSender sender, String command, String[] args, Object... objects);", "java.lang.String getCommand();", "private Command() {\n initFields();\n }", "void commandStarted(Command c);", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "public interface ICommand {\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return long description of the command\r\n\t */\r\n\tString description();\r\n\r\n\t/**\r\n\t * \r\n\t * @return name of the command\r\n\t */\r\n\tString name();\r\n\r\n\t/**\r\n\t * Get called when the comma\r\n\t * @param console callback for output\r\n\t * @param options of the command invocation\r\n\t */\r\n\tvoid exec(ICommandConsole console, List<String> options);\r\n\r\n\t/**\r\n\t * \r\n\t * @return usage of the command\r\n\t */\r\n\tString usage();\r\n}", "private void handleInvocationCommand() throws IOException, ClassNotFoundException {\r\n final Object context = m_in.readObject();\r\n final String handle = (String) m_in.readObject();\r\n final String methodName = (String) m_in.readObject();\r\n final Class[] paramTypes = (Class[]) m_in.readObject();\r\n final Object[] args = (Object[]) m_in.readObject();\r\n Object result = null;\r\n try {\r\n result = m_invoker.invoke(handle, methodName, paramTypes, args, context);\r\n } catch (Exception e) {\r\n result = e;\r\n }\r\n m_out.writeObject(result);\r\n m_out.flush();\r\n }", "@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}", "private CommandBrocker() {}", "Command handleExecute(CommandExecute commandExecute);", "public interface RouterDemoCommand {\n // Ui command begin\n String goDemoHomeActivity = \"goDemoHomeActivity\";\n // Ui command end\n\n // Data command begin\n // Data command end\n\n // Op command begin\n // Op command end\n}", "public abstract void setCommand(String cmd);", "public void initDefaultCommand() {\n \n }", "public interface Command {\n void doSomothing();//具体做什么\n}", "public interface Command{\n public void execute();\n\n}", "boolean commandUse(CommandSender sender, String[] args);", "@Override\n public void onExecute() {\n\n resourceB = this.getContext().getGame().getPlayer(idPlayer).getInventory().getValueRessource(type);\n\n if(this.cmd == CmdRessource.ADD) { // si le type de commande est un ajout\n if(type == TypeRessource.GOLD && this.getContext().getGame().getPlayer(idPlayer).getInventory().haveHammer()){ // un ajout de gold\n this.print(\"Player \"+idPlayer+\" have hammer, ressource : \"+value+\" \"+type+\" to \"+idPlayer);\n this.getManager().triggerCommandEffectHammer(idPlayer,value); // on trigger leffet hammer\n }\n else {\n this.print(\"Add ressource : \"+value+\" \"+type+\" to \"+idPlayer);\n getContext().getGame().addRessourcePlayer(idPlayer,type,value); //sinon on ajout la ressource\n this.calculeStatAdd();\n }\n }\n else if(this.cmd == CmdRessource.REMOVE) {\n this.print(\"Remove ressource : \"+value+\" \"+type+\" to \"+idPlayer);\n getContext().getGame().removeRessourcePlayer(idPlayer,type,value); // remove ressource\n this.calculeStatRemove();\n }\n else if(this.cmd == CmdRessource.ADD_AFTER_HAMMER) {\n this.print(\"Add ressource after hammer : \"+value+\" \"+type+\" to \"+idPlayer);\n getContext().getGame().addRessourcePlayer(idPlayer,type,value); //si c'est un ajout apres hammer alors exec la commande d'ajout de ressource\n this.calculeStatAdd();\n }\n }", "@Override\n public void execute(String[] args) {\n\n }", "public interface iCommand {\n void execute(String peerId, JSONObject payload) throws JSONException;\n}", "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@NotNull\n CommandResult onCommand(@NotNull Player player, @NotNull String[] params);", "@ARouterRemoteAction(Key = ConfigKey.BUNDLE_USER_KEY, RemoteAction = \"/user/service\")\npublic interface RouterUserCommand {\n String goUserHomeActivity = \"goUserHomeActivity\";\n String goUserRechargeActivity = \"goUserRechargeActivity\";\n}", "public void setCommand(String command) {\n this.command = command;\n }", "public static void main(String[] args) {\n Receiver receiver = new Receiver();\n\n // Calling the concrete commands\n UndoCommand undoCommand = new UndoCommand(receiver);\n RedoCommand redoCommand = new RedoCommand(receiver);\n\n // Initiates the invoker class\n Invoker invoker = new Invoker();\n\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n\n invoker.redoComamnd(redoCommand); // Redo\n invoker.redoComamnd(redoCommand); // Redo\n\n invoker.undoComamnd(undoCommand); // undo\n invoker.undoComamnd(undoCommand); // undo\n\n invoker.redoComamnd(redoCommand); // Redo\n invoker.redoComamnd(redoCommand); // Redo\n invoker.redoComamnd(redoCommand); // Redo\n\n //invoker.addCommand(undoCommand); // undo -> can still undo even if the is nothing to undo :(\n //invoker.addCommand(undoCommand); // undo\n //invoker.addCommand(undoCommand); // undo\n\n invoker.executeUndoCommand(); // Execute undo actions\n invoker.executeRedoCommand(); // Execute redo actions\n }", "public void initDefaultCommand()\n {\n }", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "int getCommand();", "@Override\n\t\t\t\t\t\tpublic void onInvateComplet() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "public abstract void doCommand(String command);", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }", "public void initDefaultCommand() {\n }" ]
[ "0.6738369", "0.67193043", "0.66938955", "0.66685754", "0.66255426", "0.6544853", "0.6507422", "0.65072244", "0.6450697", "0.6415218", "0.6406158", "0.63512295", "0.6319248", "0.63153267", "0.6305638", "0.62202644", "0.62152606", "0.6207395", "0.61991996", "0.6172897", "0.616785", "0.61665857", "0.6159793", "0.61588913", "0.61577946", "0.61507833", "0.61482614", "0.61430186", "0.61176616", "0.61114854", "0.609687", "0.60933274", "0.6091423", "0.6091025", "0.60879356", "0.60879076", "0.6086133", "0.6085995", "0.6084403", "0.6084196", "0.6084196", "0.6063697", "0.6061587", "0.6053552", "0.60465366", "0.6043739", "0.6041206", "0.603281", "0.6019253", "0.6019253", "0.6019253", "0.6019253", "0.6019253", "0.6019253", "0.6019253", "0.59925", "0.59805423", "0.5962249", "0.5961186", "0.5957567", "0.59552693", "0.59494424", "0.5944311", "0.5941987", "0.5936581", "0.59315485", "0.5926161", "0.59261036", "0.59128153", "0.5912339", "0.5912311", "0.5912311", "0.59108716", "0.59108716", "0.59108716", "0.59108716", "0.59108716", "0.59108716", "0.59063756", "0.589713", "0.5895135", "0.5893361", "0.5885873", "0.58847797", "0.58847797", "0.58847797", "0.5880294", "0.5872042", "0.58681977", "0.58678913", "0.58678913", "0.58678913", "0.58678913", "0.58678913", "0.58678913", "0.58678913", "0.58678913", "0.58678913", "0.58678913", "0.58678913", "0.58678913" ]
0.0
-1
Combines the two given Bitmaps and adds it to the given ImageView.
public static void updateImageView(Context context, ImageView imageView, Bitmap newBitmap, Bitmap frame) { Bitmap originalBitmap = ((BitmapDrawable) imageView.getDrawable()).getBitmap(); ThumbnailUtils thumbnailUtils = new ThumbnailUtils(); Bitmap thumbnail = thumbnailUtils.extractThumbnail(newBitmap, originalBitmap.getWidth(), originalBitmap.getWidth()); Bitmap combinedBitmap = Bitmap.createBitmap(frame.getWidth(), frame.getHeight(), frame.getConfig()); Canvas canvas = new Canvas(combinedBitmap); canvas.drawBitmap(thumbnail, 0, 0, null); canvas.drawBitmap(frame, new Matrix(), null); imageView.setImageDrawable(new BitmapDrawable(context.getResources(), combinedBitmap)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Image merge(Image a, Image b) {\n if (a.getCached() == null) {\n drawImage(a, 0, 0);\n }\n if (b.getCached() == null) {\n drawImage(b, 0, 0);\n }\n Object nativeImage = graphicsEnvironmentImpl.mergeImages(canvas, a, b, a.getCached(), b.getCached());\n Image merged = Image.create(getImageSource(nativeImage));\n merged.cache(nativeImage);\n return merged;\n }", "public void addImageView(int idUI, ImageView imageView, ProgressBar pb2) {\n\t\t\ticon.append(idUI, imageView);\n\t\t\tpb.append(idUI, pb2);\n\t\t}", "static void swapImages(ImageView src, ImageView dst) {\n\t\tDrawable tempImage = src.getDrawable();\n \tsrc.setImageDrawable(dst.getDrawable());\n \tdst.setImageDrawable(tempImage);\n\t}", "@Override\n\t\t\t\tpublic void onObtainBitmap(Bitmap bitmap, ImageView imageView) {\n\t\t\t\t\timageView.setImageBitmap(bitmap);\n\t\t\t\t}", "public void showbitmap2() {\n \t\tImageView i = (ImageView)findViewById(R.id.frame2);\n \t\ti.setImageBitmap(mBitmap2);\n \t}", "public static Bitmap combineBitmap(Bitmap background, Bitmap foreground) {\n if (background == null) {\n return null;\n }\n int bgWidth = background.getWidth();\n int bgHeight = background.getHeight();\n int fgWidth = foreground.getWidth();\n int fgHeight = foreground.getHeight();\n Bitmap newmap = Bitmap.createBitmap(bgWidth, bgHeight, Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(newmap);\n canvas.drawBitmap(background, 0, 0, null);\n canvas.drawBitmap(foreground, (bgWidth - fgWidth) / 2, (bgHeight - fgHeight) / 2, null);\n canvas.save();\n canvas.restore();\n return newmap;\n }", "public ArrayList<Bitmap> createBitmap(CanvasView src, CanvasView dst, ArrayList<Difference> difference) {\n Bitmap blank;\n Drawable view1Immutable = src.getBackground(); //get both backgrounds\n Bitmap view1Background = ((BitmapDrawable) view1Immutable).getBitmap();\n ArrayList<Bitmap> frames = new ArrayList<>();\n\n view1Background = Bitmap.createScaledBitmap(view1Background, 400, 400, false);\n double newX, newY;\n int width = view1.getWidth();\n int height = view1.getHeight();\n for (int i = 1; i <= frameCount; i++) { //for each frame\n ArrayList<Line> temp = new ArrayList();\n blank = Bitmap.createBitmap(400, 400, Bitmap.Config.ARGB_8888);\n for (int q = 0; q < view1.lines.size(); q++) {\n Line srcLine = dst.lines.get(q);\n Difference d = difference.get(q);\n Line l = new Line(srcLine.startX - Math.round(d.X1 * i), srcLine.startY - Math.round(d.Y1 * i), srcLine.stopX - Math.round(d.X2 * i), srcLine.stopY - Math.round(d.Y2 * i));\n temp.add(l);\n }\n\n for (int x = 0; x < width; x++) { //for each x pixel\n for (int y = 0; y < height; y++) { //for each y pixel\n double totalWeight = 0;\n double xDisplacement = 0;\n double yDisplacement = 0;\n for (int l = 0; l < view1.lines.size(); l++) { //for each line\n Line dest = view2.lines.get(l);\n Line srcLine = temp.get(l);\n double ptx = dest.startX - x;\n double pty = dest.startY - y;\n double nx = dest.yLength * -1;\n double ny = dest.xLength;\n\n double d = ((nx * ptx) + (ny * pty)) / ((Math.sqrt(nx * nx + ny * ny)));\n double fp = ((dest.xLength * (ptx * -1)) + (dest.yLength * (pty * -1)));\n fp = fp / (Math.sqrt(dest.xLength * dest.xLength + dest.yLength * dest.yLength));\n fp = fp / (Math.sqrt(dest.xLength * dest.xLength + dest.yLength * dest.yLength));\n\n nx = srcLine.yLength * -1;\n ny = srcLine.xLength;\n\n newX = ((srcLine.startX) + (fp * srcLine.xLength)) - ((d * nx / (Math.sqrt(nx * nx + ny * ny))));\n newY = ((srcLine.startY) + (fp * srcLine.yLength)) - ((d * ny / (Math.sqrt(nx * nx + ny * ny))));\n\n double weight = (1 / (0.01 + Math.abs(d)));\n totalWeight += weight;\n xDisplacement += (newX - x) * weight;\n yDisplacement += (newY - y) * weight;\n }\n\n newX = x + (xDisplacement / totalWeight);\n newY = y + (yDisplacement / totalWeight);\n\n if (xDisplacement == x - newX)\n newX = x - xDisplacement;\n\n if (yDisplacement == y - newY)\n newY = y - yDisplacement;\n\n if (newX < 0)\n newX = 0;\n if (newY < 0)\n newY = 0;\n if (newY >= 400)\n newY = 399;\n if (newX >= 400)\n newX = 399;\n blank.setPixel(x, y, view1Background.getPixel((int) Math.abs(newX), (int) Math.abs(newY)));\n }\n }\n frames.add(blank);\n }\n return frames;\n }", "public void setImageGenResults(HashMap<String, View> viewMap, HashMap<String, Bitmap> imageMap) {\n if (map != null) {\n// calling addImages is faster as separate addImage calls for each bitmap.\n map.addImages(imageMap);\n }\n// need to store reference to views to be able to use them as hitboxes for click events.\n this.viewMap = viewMap;\n\n }", "private void loadImages() {\n\t\t\n\t\tImageView playerImage1;\n\t\tImageView playerImage2;\n Bitmap selectedPicture;\n \n\t\tplayerImage1 = (ImageView)findViewById(R.id.player_image_1);\n\t\tplayerImage2 = (ImageView)findViewById(R.id.player_image_2);\n\t\t\n\t\tif (playerUri1 != null) {\n\t \n\t try {\n\t selectedPicture = MediaStore.Images.Media.getBitmap(\n\tthis.getContentResolver(),playerUri1);\n\t playerImage1.setImageBitmap(selectedPicture);\n\t } catch (Exception e) {\n\t \tLog.e(DISPLAY_SERVICE, \"Pic not displaying\");\n\t \tfinish();\n\t }\n\t\t} else {\n\t\t\tplayerImage1.setImageResource(R.drawable.red);\n\t\t}\n \n\t\tif (playerUri2 != null) {\t \n\t try {\n\t selectedPicture = MediaStore.Images.Media.getBitmap(\n\tthis.getContentResolver(),playerUri2);\n\t playerImage2.setImageBitmap(selectedPicture);\n\t } catch (Exception e) {\n\t \tLog.e(DISPLAY_SERVICE, \"Pic not displaying\");\n\t \tfinish(); \n\t }\n\t\t} else {\n\t\t\tplayerImage2.setImageResource(R.drawable.green);\n\t\t}\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (resultCode == RESULT_OK) {\n\t\t\tswitch (requestCode) {\n\t\t\tcase REQUEST_IMAGE_CAPTURE1:\n\t\t\t\tBundle extras = data.getExtras();\n\t\t\t\tBitmap imageBitmap = (Bitmap) extras.get(\"data\");\n\n\t\t\t\timView.setImageBitmap(imageBitmap);\n\t\t\t\tBitmapDrawable drawable = (BitmapDrawable) imView.getDrawable();\n\t\t\t\tBitmap bitmap = drawable.getBitmap();\n\t\t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\t\tbitmap.compress(Bitmap.CompressFormat.PNG, 100, baos);\n\t\t\t\tbyte[] datas = baos.toByteArray();\n\t\t\t\tstrBase64 = Base64.encodeToString(datas, Base64.DEFAULT);\n\n\t\t\t\tbreak;\n\t\t\tcase REQUEST_IMAGE_CAPTURE2:\n\n\t\t\t\tBundle extras1 = data.getExtras();\n\t\t\t\tBitmap imageBitmap1 = (Bitmap) extras1.get(\"data\");\n\t\t\t\timView2.setImageBitmap(imageBitmap1);\n\t\t\t\tBitmapDrawable drawable2 = (BitmapDrawable) imView2\n\t\t\t\t\t\t.getDrawable();\n\t\t\t\tBitmap bitmap2 = drawable2.getBitmap();\n\n\t\t\t\tByteArrayOutputStream baos2 = new ByteArrayOutputStream();\n\t\t\t\tbitmap2.compress(Bitmap.CompressFormat.PNG, 100, baos2);\n\t\t\t\tbyte[] datas2 = baos2.toByteArray();\n\n\t\t\t\tstrBase642 = Base64.encodeToString(datas2, Base64.DEFAULT);\n\n\t\t\t}\n\t\t}\n\n\t}", "public void DrawOnImage(Bitmap photo, ImageView imageView, ArrayList<Rect> rects){\n Bitmap tempBitmap = Bitmap.createBitmap(photo.getWidth(), photo.getHeight(), Bitmap.Config.RGB_565);\n Canvas tempCanvas = new Canvas(tempBitmap);\n\n //Draw the image bitmap into the cavas\n tempCanvas.drawBitmap(photo, 0, 0, null);\n\n Paint myPaint = new Paint();\n myPaint.setColor(Color.rgb(0, 255, 0));\n myPaint.setStrokeWidth(3);\n myPaint.setStyle(Paint.Style.STROKE);\n\n for (Rect rect : rects) {\n tempCanvas.drawRect(rect,myPaint);\n }\n\n imageView.setImageDrawable(new BitmapDrawable(getResources(), tempBitmap));\n }", "private BufferedImage combineImages(final BufferedImage image, final BufferedImage overLayerImage,\n final int width, final int height) {\n final var deltaHeight = image.getHeight() - overLayerImage.getHeight();\n final var deltaWidth = image.getWidth() - overLayerImage.getHeight();\n\n // Draw the new image\n final var combined = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n var graphics = (Graphics2D) combined.getGraphics();\n graphics.drawImage(image, 0, 0, null);\n graphics.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1f));\n graphics.drawImage(overLayerImage, (int) Math.round(deltaWidth / 2), (int) Math.round(deltaHeight / 2), null);\n\n return combined;\n }", "public void crossDissolve(ArrayList<Bitmap> frames1, ArrayList<Bitmap> frames2) {\n int width = view1.getWidth();\n int height = view1.getHeight();\n int factor1 = 1;\n int factor2 = frameCount-factor1;\n for(int i=0; i < frames1.size();i++) {\n Bitmap view1Background = frames1.get(i);\n Bitmap view2Background = frames2.get(i);\n Bitmap blank = Bitmap.createBitmap(400, 400, Bitmap.Config.ARGB_8888);\n for(int x=0;x<width;x++) {\n for(int y=0;y<height;y++) {\n int pixel1 = view1Background.getPixel(x, y);\n int pixel2 = view2Background.getPixel(x, y);\n int red = Color.red(pixel1)*factor2/frameCount+Color.red(pixel2)*factor1/frameCount;\n int green = Color.green(pixel1)*factor2/frameCount+Color.green(pixel2)*factor1/frameCount;\n int blue = Color.blue(pixel1)*factor2/frameCount+Color.blue(pixel2)*factor1/frameCount;\n blank.setPixel(x, y, Color.rgb(red, green, blue));\n }\n }\n pictures.add(blank);\n factor1++;\n factor2 = frameCount-factor1;\n }\n }", "public static BufferedImage combineImages(BufferedImage image,\r\n\t\t\tBufferedImage overlay) {\r\n\r\n\t\t// create the new image, canvas size is the max. of both image sizes\r\n\t\tint w = Math.max(image.getWidth(), overlay.getWidth());\r\n\t\tint h = Math.max(image.getHeight(), overlay.getHeight());\r\n\t\tBufferedImage combined = new BufferedImage(w, h,\r\n\t\t\t\tBufferedImage.TYPE_INT_ARGB);\r\n\r\n\t\t// paint both images, preserving the alpha channels\r\n\t\tGraphics g = combined.getGraphics();\r\n\t\tg.drawImage(image, 0, 0, null);\r\n\t\tg.drawImage(overlay, 0, 0, null);\r\n\r\n\t\t// Save as new image\r\n\t\treturn combined;\r\n\t}", "public static BufferedImage combineImages(BufferedImage image,\r\n\t\t\tBufferedImage overlay, int overlayX, int overlayY) {\r\n\r\n\t\tBufferedImage combined = new BufferedImage(image.getWidth(),\r\n\t\t\t\timage.getHeight(), BufferedImage.TYPE_INT_ARGB);\r\n\r\n\t\t// paint both images, preserving the alpha channels\r\n\t\tGraphics g = combined.getGraphics();\r\n\t\tg.drawImage(image, 0, 0, null);\r\n\t\tg.drawImage(overlay, overlayX, overlayY, null);\r\n\r\n\t\tlog.debug(\"Combining images: overlayX\" + overlayX + \" overlayY:\"\r\n\t\t\t\t+ overlayY);\r\n\t\t// Save as new image\r\n\t\treturn combined;\r\n\t}", "public void loadBitmap(Activity mainActivity, long id, String imageKey,\r\n ImageView imageView) {\r\n\r\n\r\n final Bitmap bitmap = getBitmapFromCache(imageKey);\r\n mImageViews.put(imageView, imageKey);\r\n\r\n if (bitmap != null) {\r\n imageView.setImageBitmap(bitmap);\r\n } else {\r\n imageView.setImageResource(R.drawable.img_def);\r\n\r\n// String tag = mImageViews.get(imageView);\r\n// if (tag != null && tag.equals(imageKey)) {\r\n// mExecutorService.\r\n// }\r\n if (!mCurrentTasks.contains(imageKey)) {\r\n if (mExecutorService != null && !mExecutorService.isShutdown()) {\r\n mExecutorService.submit(new LoadingImage(id, imageKey, new WeakReference<>(mainActivity), new WeakReference<>(imageView)));\r\n mCurrentTasks.add(imageKey);\r\n }\r\n } else {\r\n Log.e(\"samuel\", \"任务已经存在>>>imageKey:\" + imageKey);\r\n }\r\n }\r\n }", "private void setPic() {\n int targetW = mainImageView.getWidth();\n int targetH = mainImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n// bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mainImageView.setImageBitmap(bitmap);\n\n// bmOptions.inBitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n// mainImageView.setImageBitmap(bmOptions.inBitmap);\n }", "public void addImage(Image img, int x, int y) {\n\n\t}", "public BufferedImage Add(BufferedImage timg, BufferedImage timg1) {\n int width = timg.getWidth();\n int height = timg.getHeight();\n\n\n int[][][] ImageArray = convertToArray(timg); // converting image to array\n int[][][] ImageArray1 = convertToArray(timg);\n int[][][] ImageArray2 = convertToArray(timg1);\n int[][][] ImageArray3 = convertToArray(timg1);\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n ImageArray[x][y][1] = (int) (ImageArray1[x][y][1] + ImageArray2[x][y][1]);\n ImageArray[x][y][2] = (int) (ImageArray1[x][y][2] + ImageArray2[x][y][2]);\n ImageArray[x][y][3] = (int) (ImageArray1[x][y][3] + ImageArray2[x][y][3]);\n }\n }\n\n ImageArray3 = rescaleShift(ImageArray);\n\n\n return convertToBimage(ImageArray3);\n }", "public void loadBitmap(Picture picture, ImageView imageView) {\n BitmapWorkerTask task = new BitmapWorkerTask(picture, imageView);\n task.execute();\n }", "void mo36480a(int i, int i2, ImageView imageView, Uri uri);", "public void morph(View view) {\n pictures.clear();\n ArrayList<Difference> difference = new ArrayList();\n ArrayList<Difference> difference2 = new ArrayList();\n ArrayList<Bitmap> frames1, frames2;\n pictures.add(((BitmapDrawable) view1.getBackground()).getBitmap());\n TextView text = (TextView)findViewById(R.id.textView);\n generateIntermediateFrames(difference, difference2); //generate linear difference for intermediate frames\n frames1 = createBitmap(view1, view2, difference); //generate frames for picture 1 to 2\n frames2 = createBitmap(view2, view1, difference2); //generate frames for picture 2 to 2\n crossDissolve(frames1, frames2); //cross disolve the frames together\n bar.setMax(frameCount);\n }", "private void initImageBitmaps(){\n imageUrls.add(\"https://i.redd.it/j6myfqglup501.jpg\");\n names.add(\"Rocky Mountains\");\n\n imageUrls.add(\"https://i.redd.it/0u1u2m73uoz11.jpg\");\n names.add(\"Mt. Baker, WA\");\n\n imageUrls.add(\"https://i.redd.it/xgd2lnk56mz11.jpg\");\n names.add(\"Falls Creek Falls, TN\");\n\n imageUrls.add(\"https://i.redd.it/o6jc7peiimz11.jpg\");\n names.add(\"Skogafoss, Iceland\");\n\n imageUrls.add(\"https://i.redd.it/zxd44dfbyiz11.jpg\");\n names.add(\"Black Forest, Germany\");\n\n imageUrls.add(\"https://www.mountainphotography.com/images/xl/20090803-Hermannsdalstinden-Sunset.jpg\");\n names.add(\"Lofoten Islands, Norway\");\n\n imageUrls.add(\"https://i.redd.it/6vdpsld78cz11.jpg\");\n names.add(\"Isle of Skye\");\n\n imageUrls.add(\"https://i.redd.it/i4xb66v5eyy11.jpg\");\n names.add(\"Lago di Carezza, Italy\");\n\n imageUrls.add(\"https://i.redd.it/ttl7f4pwhhy11.jpg\");\n names.add(\"Arches National Park, UT\");\n\n imageUrls.add(\"https://i.redd.it/mcsxhejtkqy11.jpg\");\n names.add(\"Northern Lights\");\n\n imageUrls.add(\"https://i.redd.it/0rhq46ve83z11.jpg\");\n names.add(\"Swiss Alps\");\n\n imageUrls.add(\"https://i.redd.it/0dfwwitwjez11.jpg\");\n names.add(\"Hunan, China\");\n\n //Initialize our recyclerView now that we have our images/names\n initRecyclerView();\n }", "private void processAndSetImage() {\n\n // Resample the saved image to fit the ImageView\n mResultsBitmap = resamplePic(this, mTempPhotoPath);\n\n// tv.setText(base64conversion(photoFile));\n//\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"text/plain\");\n// intent.putExtra(Intent.EXTRA_TEXT, base64conversion(photoFile));\n// startActivity(intent);\n\n /**\n * UPLOAD IMAGE USING RETROFIT\n */\n\n retroFitHelper(base64conversion(photoFile));\n\n // Set the new bitmap to the ImageView\n imageView.setImageBitmap(mResultsBitmap);\n }", "@SuppressLint({\"NewApi\"})\n /* renamed from: a */\n public void m20062a(final ImageView imageView, final ImageView imageView2, int i) {\n imageView.clearAnimation();\n imageView2.clearAnimation();\n Animation loadAnimation = AnimationUtils.loadAnimation(this, R.anim.anime_fadeout);\n AnimationSet animationSet = new AnimationSet(false);\n animationSet.addAnimation(loadAnimation);\n Animation loadAnimation2 = AnimationUtils.loadAnimation(this, i);\n AnimationSet animationSet2 = new AnimationSet(false);\n animationSet2.addAnimation(loadAnimation2);\n imageView.setAlpha(255.0f);\n imageView.setVisibility(0);\n imageView.startAnimation(animationSet);\n imageView2.setVisibility(0);\n imageView2.startAnimation(animationSet2);\n animationSet.setAnimationListener(new C5297a() {\n public void onAnimationEnd(Animation animation) {\n imageView.clearAnimation();\n }\n });\n animationSet2.setAnimationListener(new C5297a() {\n public void onAnimationEnd(Animation animation) {\n imageView2.clearAnimation();\n imageView2.setVisibility(0);\n }\n });\n }", "public synchronized void updateImageView(ImageView imgView, Bitmap img, String url) {\n if(img == null) {\n img = this.noImgBitmap;\n }\n imageCache.put(url, img);\n imgView.setImageBitmap(img);\n }", "public void setImageBitmapInto(Bitmap bitmap, View view) {\n ((ImageView) view).setImageBitmap(bitmap);\n }", "private Image combine(Image piece, Image background) {\n\t\tif (piece == null) {\n\t\t\treturn background;\n\t\t}\n\t\tBufferedImage image = (BufferedImage) background;\n\t\tBufferedImage overlay = (BufferedImage) piece;\n\t\n\t\t// create the new image, canvas size is the max. of both image sizes\n\t\tint w = Math.max(image.getWidth(), overlay.getWidth());\n\t\tint h = Math.max(image.getHeight(), overlay.getHeight());\n\t\tBufferedImage combined = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n\t\n\t\t// paint both images, preserving the alpha channels\n\t\tGraphics g = combined.getGraphics();\n\t\tg.drawImage(image, 0, 0, null);\n\t\tg.drawImage(overlay, 0, 0, null);\n\t\n\t\t// Save as new image\n\t\treturn combined;\n\t}", "public void addImage(View view) {\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(intent, RESULT_LOAD_IMAGE);\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif(requestCode==IMAGE_REQUEST_CODE){\n\t\t\tif(resultCode==RESULT_OK){\n\t\t\t\tBundle bundle = data.getExtras();\n\t\t\t\tbitmap = (Bitmap) bundle.get(\"data\");\n\t\t\t\timgView.setImageBitmap(bitmap);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\r\n Bitmap b=(Bitmap)data.getExtras().get(\"data\");\r\n i1.setImageBitmap(b);\r\n\r\n }", "public void displayImage(final ImageView imageView, final String url, int reqWidth, int reqHeight) {\n if (mImageViews.get(imageView) != null && mImageViews.get(imageView).equals(url))\r\n return;\r\n\r\n mImageViews.put(imageView, url);\r\n\r\n Bitmap bitmap = mMemoryCache.get(url);\r\n\r\n if (bitmap != null) {\r\n imageView.setImageBitmap(bitmap);\r\n } else {\r\n // if the image have already put to the queue\r\n if (mSubscribers.get(url) != null) {\r\n mSubscribers.get(url).addImageView(imageView);\r\n } else {\r\n imageView.setImageResource(DEFAULT_IMAGE_ID);\r\n BitmapUseCase bitmapUseCase = mBitmapUseCaseFactory.create(url, reqWidth, reqHeight);\r\n\r\n BitmapSubscriber subscriber = new BitmapSubscriber(imageView, url, bitmapUseCase);\r\n\r\n bitmapUseCase.execute(subscriber);\r\n mSubscribers.put(url, subscriber);\r\n mUseCases.add(bitmapUseCase);\r\n }\r\n\r\n }\r\n\r\n\r\n }", "@Override\n public void imageLoad(ImageView imageView, Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n //item.picture = bitmap;\n }", "private void loadImg(final ImageView imageView,String url) {\n OkHttpUtils.get(url)\n .tag(this)\n .execute(new BitmapCallback()\n {\n @Override\n public void onSuccess(Bitmap bitmap, okhttp3.Call call, Response response) {\n imageView.setImageBitmap(bitmap);\n }\n });\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 7 && resultCode == RESULT_OK) {\n\n Bitmap bitmap = (Bitmap) data.getExtras().get(\"data\");\n currentBitMap = bitmap;\n imageView.setImageBitmap(bitmap);\n }\n\n try {\n if (requestCode == IMG_RESULT && resultCode == RESULT_OK && data != null) {\n Uri URI = data.getData();\n String[] FILE = {MediaStore.Images.Media.DATA};\n\n Cursor cursor = getContentResolver().query(URI, FILE, null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(FILE[0]);\n String ImageDecode = cursor.getString(columnIndex);\n cursor.close();\n\n currentBitMap = BitmapFactory.decodeFile(ImageDecode);\n imageView.setImageBitmap(currentBitMap);\n }\n } catch (Exception e) {\n Toast.makeText(this, \"Please try again\", Toast.LENGTH_LONG)\n .show();\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n switch (requestCode) {\n case REQUEST_SELECT_IMAGE_1:\n if (resultCode == RESULT_OK) {\n // If image is selected successfully, set the image URI and bitmap.\n mImageUri1 = null;\n mBitmap1 = null;\n mImageUri1 = data.getData();\n mBitmap1 = ImageHelper.loadSizeLimitedBitmapFromUri(\n mImageUri1, getContentResolver());\n if (mBitmap1 != null) {\n // Show the image on screen.\n ImageView imageView = (ImageView) findViewById(R.id.image_0);\n imageView.setImageBitmap(mBitmap1);\n\n }\n // Clear the information panel.\n setInfo(\"\");\n\n // Enable button \"show baby\" as the image to detect is not selected.\n setShowButtonsEnabledStatus(true);\n }\n break;\n case REQUEST_SELECT_IMAGE_2:\n if (resultCode == RESULT_OK) {\n // If image is selected successfully, set the image URI and bitmap.\n mImageUri2 = null;\n mBitmap2 = null;\n mImageUri2 = data.getData();\n mBitmap2 = ImageHelper.loadSizeLimitedBitmapFromUri(\n mImageUri2, getContentResolver());\n if (mBitmap2 != null) {\n // Show the image on screen.\n ImageView imageView = (ImageView) findViewById(R.id.image_1);\n imageView.setImageBitmap(mBitmap2);\n\n }\n // Clear the information panel.\n setInfo(\"\");\n\n // Enable button \"show baby\" as the image to detect is not selected.\n setShowButtonsEnabledStatus(true);\n }\n break;\n default:\n break;\n }\n }", "public BuildResultBean combineMapsCapture(String map1Loc, String map2Loc, String mapDir1, String mapDir2, \n\t\t\tint zoom, LatLng topLeftLatLng, String outputDir) throws IOException{\n\t\tBuildResultBean result;\n\t\t\n\t\t//Create the file and check if it doesn't exist\n\t\tFile imageMap1 = new File(mapDir1 + map1Loc);\n\t\tFile imageMap2 = new File(mapDir2 + map2Loc);\n\t\tif(!imageMap1.exists() || !imageMap2.exists()){\n\t\t\tSystem.out.println(\"Does not exist\");\n\t\t\tresult = new BuildResultBean();\n\t\t\tresult.setFilename(\"blank.png\");\n\t\t\tresult.setUrl(outputDir);\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t//Create an image from teh file\n\t\tBufferedImage kdeImage1 = ImageIO.read(imageMap1);\n\t\tBufferedImage kdeImage2 = ImageIO.read(imageMap2);\n\t\t//If the iamges don't have the same dimensions, return invalid\n\t\tif((kdeImage1.getHeight() != kdeImage2.getHeight()) || (kdeImage1.getWidth() != kdeImage2.getWidth())){\n\t\t\tSystem.out.println(\"Not same size\");\n\t\t\tSystem.out.println(\"Does not exist\");\n\t\t\tresult = new BuildResultBean();\n\t\t\tresult.setFilename(\"blank.png\");\n\t\t\tresult.setUrl(outputDir);\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t//get the dimensions of the image\n\t\tint width = kdeImage1.getWidth();\n\t\tint height = kdeImage2.getHeight();\n\t\t\n\t\t\n\t\t//Create an image of the two images combined, discounting pixels not colored in both images\n\t\t//Coloring in the new image is done by ANDing/ORing the colors of the two inputted images\n\t\t//An AND retains the coloration of the original images, combining the colors where needed\n\t\t//OR changes the colors to another scheme but may show a better heatmap of the overlap\n\t\tBufferedImage combinedImage = combineMapsIntoImage(width, height, kdeImage1, kdeImage2);\n\t\t\n\t\tif(combinedImage == null){\n\t\t\tSystem.out.println(\"Not same size\");\n\t\t\tresult = new BuildResultBean();\n\t\t\tresult.setFilename(\"blank.png\");\n\t\t\tresult.setUrl(outputDir);\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\tFile combinedFile = null;\n\t\tString imagePath = \"\";\n\t\tsynchronized (this) {\n\t\t\tDate date = new Date();\n\t\t\tString baseString = date.getTime() + \"-\";\n\t\t\t// we only allow 1000 concurrency\n\t\t\tfor (int i = 0; i < 1000; i++) {\n\t\t\t\timagePath = baseString + i + \".png\";\n\t\t\t\tcombinedFile = new File(outputDir + imagePath);\n\t\t\t\tif (!combinedFile.exists()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tImageIO.write(combinedImage, \"PNG\", combinedFile);\n\t\t\t\t\n\t\t//Add the combined image to a static image\n\t\tNameMapBuilder builder = new NameMapBuilder();\n\t\tresult = builder.nameMapBuilder(combinedFile, imagePath, width, height, \n\t\t\t\ttopLeftLatLng, zoom, outputDir, \"combined\");\n\t\t\n\t\treturn result;\n\t}", "public void addNewPicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(this.type == \"generic\") {\n //add the new pciture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"picture\") {\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }\n }", "void downloadImage(String imageURL, ImageView imageView);", "@Override\n protected void initView(View view) {\n super.initView(view);\n picture1 = (ImageView) rootview.findViewById(R.id.picture1);\n picture2=(ImageView) rootview.findViewById(R.id.picture2);\n\n }", "public Pic overlay(Pic other) {\n Pic output = image.deepCopy();\n Pixel[][] outputPixels = output.getPixels();\n Pixel[][] overlayPixels = other.getPixels();\n for (int row = 0; row < output.getHeight(); row++) {\n for (int col = 0; col < output.getWidth(); col++) {\n Pixel current = outputPixels[row][col];\n //Sets color to average values only if there is enough\n //area in the original image\n if (row < other.getHeight()\n && col < other.getWidth()) {\n Pixel overlayCurrent = overlayPixels[row][col];\n int redAverage = (current.getRed()\n + overlayCurrent.getRed()) / 2;\n int greenAverage = (current.getGreen()\n + overlayCurrent.getGreen()) / 2;\n int blueAverage = (current.getBlue()\n + overlayCurrent.getBlue()) / 2;\n current.setRed(redAverage);\n current.setGreen(greenAverage);\n current.setBlue(blueAverage);\n }\n }\n }\n return output;\n }", "public void AddImgToRecyclerView()\n {\n imgsource = new Vector();\n Resources res = getResources();\n imgsource.add(res.getIdentifier(\"@drawable/add_overtime_schedule\", null, getPackageName()));\n imgsource.add(res.getIdentifier(\"@drawable/add_overtime\", null, getPackageName()));\n imgsource.add(res.getIdentifier(\"@drawable/clock_in\", null, getPackageName()));\n imgsource.add(res.getIdentifier(\"@drawable/vacation\", null, getPackageName()));\n imgsource.add(res.getIdentifier(\"@drawable/document\", null, getPackageName()));\n imgsource.add(res.getIdentifier(\"@drawable/order\", null, getPackageName()));\n }", "private static void setPicasso(@NonNull Context context, RemoteViews views, int viewId, @NonNull String imageUrl) {\n\n try {\n //java.lang.IllegalArgumentException: Path must not be empty\n if (imageUrl.length() > 0) {\n Bitmap logoBitmap = Picasso.with(context).load(Utils.builtURI(imageUrl)).get();\n views.setImageViewBitmap(viewId, logoBitmap);\n } else {\n views.setImageViewResource(viewId, R.drawable.ic_launcher);\n }\n\n } catch (IOException | IllegalArgumentException e) {\n views.setImageViewResource(viewId, R.drawable.ic_launcher);\n e.printStackTrace();\n }\n\n }", "public static void addImage(BufferedImage buff1, BufferedImage buff2, float opaque, int x, int y) {\n Graphics2D g2d = buff1.createGraphics();\n g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, opaque));\n g2d.drawImage(buff2, x, y, null);\n g2d.dispose();\n }", "public void m20063a(ImageView imageView, ImageView imageView2, int[] iArr, Integer[] numArr, int i) {\n ArrayList arrayList = new ArrayList();\n for (int i2 = 0; i2 < 3; i2++) {\n arrayList.add(Integer.valueOf(i2));\n }\n Collections.shuffle(arrayList);\n for (int i3 = 0; i3 < 3; i3++) {\n if (numArr[i] != arrayList.get(i3)) {\n Options options = new Options();\n options.inPurgeable = true;\n options.inScaled = false;\n imageView2.setImageBitmap(BitmapFactory.decodeResource(getResources(), iArr[((Integer) arrayList.get(i3)).intValue()], options));\n imageView.setImageBitmap(BitmapFactory.decodeResource(getResources(), iArr[numArr[i].intValue()], options));\n numArr[i] = (Integer) arrayList.get(i3);\n return;\n }\n }\n }", "public BufferedImage combineMapsIntoImage(int width, int height, BufferedImage kdeImage1, \n\t\t\tBufferedImage kdeImage2)\n\t\t\tthrows IOException{\n\t\tif(width <= 0 || height <= 0 || kdeImage1 == null || kdeImage2 == null)\n\t\t\treturn null;\n\t\t\n//\t\t//Get the colors in the image\n//\t\tHashMap<Integer, Integer> colors1 = new HashMap<Integer, Integer>();\n//\t\tHashMap<Integer, Integer> colors2 = new HashMap<Integer, Integer>();\n//\t\tfor(int y = 0; y < height; y++){\n//\t\t\tfor(int x = 0; x < width; x++){\n//\t\t\t\tif(!colors1.containsKey(kdeImage1.getRGB(x, y)))\n//\t\t\t\t\tcolors1.put(kdeImage1.getRGB(x, y), 0);\n//\t\t\t\tif(!colors2.containsKey(kdeImage2.getRGB(x, y)))\n//\t\t\t\t\tcolors2.put(kdeImage2.getRGB(x, y), 0);\n//\t\t\t}\n//\t\t}\n//\t\t\n//\t\t//Remove the \"blank\" color spot\n//\t\tcolors1.remove(0);\n//\t\tcolors2.remove(0);\n//\t\t\n//\t\t//Put the colors into an array\n//\t\tSet<Integer> colorsSet = colors1.keySet();\n//\t\tInteger[] orderedColors1 = new Integer [colorsSet.size()];\n//\t\tint iter = 0;\n//\t\tfor(Integer val : colorsSet){\n//\t\t\torderedColors1[iter] = val;\n//\t\t\titer++;\n//\t\t}\n//\t\t\n//\t\tcolorsSet = colors2.keySet();\n//\t\tInteger[] orderedColors2 = new Integer [colorsSet.size()];\n//\t\titer = 0;\n//\t\tfor(Integer val : colorsSet){\n//\t\t\torderedColors2[iter] = val;\n//\t\t\titer++;\n//\t\t}\t\n//\t\t\n//\t\tcolors1 = null;\n//\t\tcolors2 = null;\n//\t\t\n//\t\t//Order the colors\n//\t\tArrays.sort(orderedColors1);\n//\t\tArrays.sort(orderedColors2);\n//\t\t\n//\t\tfor(Integer val : orderedColors1)\n//\t\t\tSystem.out.println(val);\n//\t\tSystem.out.println();\n//\t\tfor(Integer val : orderedColors2)\n//\t\t\tSystem.out.println(val);\n\t\t\n\t\t//Create an image of the two images combined, discounting pixels not colored in both images\n\t\t//Coloring in the new image is done by ANDing/ORing the colors of the two inputted images\n\t\t//An AND retains the coloration of the original images, combining the colors where needed\n\t\t//OR changes the colors to another scheme but may show a better heatmap of the overlap\n\t\tBufferedImage combinedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n\t\tfor(int y = 0; y < height; y++){\n\t\t\tfor(int x = 0; x < width; x++){\n\t\t\t\tif((kdeImage1.getRGB(x, y) != 0) && (kdeImage2.getRGB(x, y) != 0)){\n\t\t\t\t\tcombinedImage.setRGB(x, y, kdeImage1.getRGB(x, y) & kdeImage2.getRGB(x, y));\n//\t\t\t\t\tcombinedImage.setRGB(x, y, kdeImage1.getRGB(x, y) | kdeImage2.getRGB(x, y));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn combinedImage;\n\t}", "public BufferedImage bitwiseOR(BufferedImage image, BufferedImage image1) {\r\n int[][][] arr = convertToArray(image);\r\n int[][][] arr1 = convertToArray(image1);\r\n\r\n int width = arr.length, height = arr[0].length;\r\n int width1 = arr1.length, height1 = arr1[0].length;\r\n\r\n int x = (width < width1) ? width : width1; //get area to add\r\n int y = (height < height1) ? height : height1;\r\n\r\n for (int i = 0; i < y; i++) {\r\n for (int j = 0; j < x; j++) {\r\n arr[j][i][1] = arr[j][i][1] | arr1[j][i][1] & 0xff;\r\n arr[j][i][2] = arr[j][i][2] | arr1[j][i][2] & 0xff;\r\n arr[j][i][3] = arr[j][i][3] | arr1[j][i][3] & 0xff;\r\n }\r\n }\r\n return convertToBimage(arr);\r\n }", "public File combineMapsIntoFile(String map1Loc, String map2Loc, String mapDir1, String mapDir2, \n\t\t\tString outputDir) throws IOException{\n\t\t\n\t\t//Create the file and check if it doesn't exist\n\t\tFile imageMap1 = new File(mapDir1 + map1Loc);\n\t\tFile imageMap2 = new File(mapDir2 + map2Loc);\n\t\tif(!imageMap1.exists() || !imageMap2.exists()){\n\t\t\tSystem.out.println(\"Does not exist\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t//Create an image from teh file\n\t\tBufferedImage kdeImage1 = ImageIO.read(imageMap1);\n\t\tBufferedImage kdeImage2 = ImageIO.read(imageMap2);\n\t\t//If the iamges don't have the same dimensions, return invalid\n\t\tif((kdeImage1.getHeight() != kdeImage2.getHeight()) || (kdeImage1.getWidth() != kdeImage2.getWidth())){\n\t\t\tSystem.out.println(\"Not same size\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t//get the dimensions of the image\n\t\tint width = kdeImage1.getWidth();\n\t\tint height = kdeImage2.getHeight();\n\t\t\n\t\t\n\t\t//Create an image of the two images combined, discounting pixels not colored in both images\n\t\t//Coloring in the new image is done by ANDing/ORing the colors of the two inputted images\n\t\t//An AND retains the coloration of the original images, combining the colors where needed\n\t\t//OR changes the colors to another scheme but may show a better heatmap of the overlap\n\t\tBufferedImage combinedImage = combineMapsIntoImage(width, height, kdeImage1, kdeImage2);\n\t\t\n\t\tif(combinedImage == null){\n\t\t\tSystem.out.println(\"Not same size\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tFile combinedFile = null;\n\t\tString imagePath = \"\";\n\t\tsynchronized (this) {\n\t\t\tDate date = new Date();\n\t\t\tString baseString = date.getTime() + \"-\";\n\t\t\t// we only allow 1000 concurrency\n\t\t\tfor (int i = 0; i < 1000; i++) {\n\t\t\t\timagePath = baseString + i + \".png\";\n\t\t\t\tcombinedFile = new File(outputDir + imagePath);\n\t\t\t\tif (!combinedFile.exists()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tImageIO.write(combinedImage, \"PNG\", combinedFile);\n\t\treturn combinedFile;\n\t}", "public BitmapDownloaderTask(ImageView imageView) {\n\t\timageViewReference = new WeakReference<ImageView>(imageView);\n\n\t\t// create a new static cache if there is none\n\t\tif (cache == null) {\n\t\t\tcache = new HashMap<String, Bitmap>();\n\t\t}\n\t}", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n// Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "private void createImageView() {\n /**\n * We use @{@link AdjustableImageView} so that we can have behaviour like setAdjustViewBounds(true)\n * for Android below API 18\n */\n viewsToBeInflated.add(new AdjustableImageView(getActivityContext()));\n }", "private void drawOnProjectedBitMap(ImageView iv, Bitmap bm,\n float x0, float y0, float x, float y){\n if(x<0 || y<0 || x > iv.getWidth() || y > iv.getHeight()){\n //outside ImageView\n return;\n }else{\n\n float ratioWidth = (float)bm.getWidth()/(float)iv.getWidth();\n float ratioHeight = (float)bm.getHeight()/(float)iv.getHeight();\n\n mCanvas.drawLine(\n x0 * ratioWidth,\n y0 * ratioHeight,\n x * ratioWidth,\n y * ratioHeight,\n mPaint);\n mPhotoView.invalidate();\n }\n }", "public void addImage(Bitmap bm) {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bm.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte[] bytes = stream.toByteArray();\n try {\n File file = new File(this.getCacheDir(), \"image.jpg\");\n file.createNewFile();\n FileOutputStream fos = new FileOutputStream(file);\n fos.write(bytes);\n fos.flush();\n fos.close();\n RequestBody rb = RequestBody.create(MediaType.parse(\"multipart/form-data\"), file);\n MultipartBody.Part body = MultipartBody.Part.createFormData(\"files\", file.getName(), rb);\n Url url = new Url();\n Call<ImageFile> imgCall = url.createInstanceofRetrofit().uploadImage(body);\n imgCall.enqueue(new Callback<ImageFile>() {\n\n @Override\n public void onResponse(Call<ImageFile> call, Response<ImageFile> response) {\n venueimage.setText(response.body().getFilename());\n }\n\n @Override\n public void onFailure(Call<ImageFile> call, Throwable t) {\n Toast.makeText(VenueAdd.this, t.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n\n } catch (Exception e) {\n Toast.makeText(VenueAdd.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }", "void drawX(int startx1,int starty1,int endx1,int endy1,int startx2,int starty2,int endx2,int endy2,ImageView imageView){\n Bitmap bitmap = Bitmap.createBitmap(getWindowManager().getDefaultDisplay().getWidth(),getWindowManager().getDefaultDisplay().getHeight(),Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n imageView.setImageBitmap(bitmap);\n\n Paint paint = new Paint();\n paint.setColor(Color.WHITE);\n paint.setStrokeWidth(10);\n canvas.drawLine(startx1,starty1,endx1,endy1,paint);\n canvas.drawLine(startx2,starty2,endx2,endy2,paint);\n imageView.setVisibility(View.VISIBLE);\n\n //animates the drawing to fadein\n Animation animation = new AlphaAnimation(0.0f,1.0f);\n animation.setDuration(2000);\n imageView.startAnimation(animation);\n }", "public Builder setInto(ImageView imageView) {\n this.imageViewBuilder = imageView;\n return this;\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(resultCode == RESULT_OK && requestCode ==200){\n Uri uri_img=data.getData();\n try{\n assert uri_img != null;\n InputStream input_img = updateView.getContext().getContentResolver().openInputStream(uri_img);\n DecodeImage_stream = BitmapFactory.decodeStream(input_img);\n chooseImage.setImageBitmap(DecodeImage_stream);\n }catch (FileNotFoundException f){\n Log.d(\"add new file not found:\",f.getMessage());\n }\n }\n }", "public static void setBitmap(ImageView view, Bitmap bitmap, float[] radii) {\n DebugUtils.__checkError(view == null || bitmap == null, \"Invalid parameters - view == null || bitmap == null\");\n setBitmap(view, view.getDrawable(), bitmap, radii);\n }", "@Override\n public Bitmap onPreSetBitmap(ImageView imageView, Bitmap loadedBitmap, String url, boolean loadedFromCache) {\n return ImageUtils.getCircleBitmap(loadedBitmap);\n }", "public void loadTo(String url, ImageView imageView) {\n relationsMap.put(imageView, url);\n\n // If image already cached just show it\n Bitmap bitmap = memoryCache.getData(url);\n if (bitmap != null) {\n Log.d(\"HIHO\", \"bitmap from memory\");\n imageView.setImageBitmap(bitmap);\n } else {\n loadAndDisplay(url, imageView);\n }\n }", "public void addImageViewStatic(int idUI, ImageView imageView) {\n\t\t\ticon.append(idUI, imageView);\n\t\t}", "public void addPng(ImageView png){\n vertexImages.add(png);\n }", "public void addViews(List<Photo> ziLiaoPhotos,List<View> ziLiaoPhotosView) {\n\t\tthis.ziLiaoPhotos=ziLiaoPhotos;\n\t\tthis.ziLiaoPhotosView=ziLiaoPhotosView;\n\t}", "private void loadImages() {\n Glide\n .with(Activity_Game.this)\n .load(R.drawable.game_alien_img)\n .into(game_IMAGE_p1);\n\n Glide\n .with(Activity_Game.this)\n .load(R.drawable.game_predator_img)\n .into(game_IMAGE_p2);\n }", "public void resultImgSet(Bitmap bitmap) {\n fpResultImg.setImageBitmap(bitmap);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\n Bundle extras = data.getExtras();\n Bitmap bmp = (Bitmap) extras.get(\"data\");\n iv.setImageBitmap(bmp);\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "private byte[] concateByteArray(byte[] firstarray, byte[] secondarray){\r\n\tbyte[] output = new byte[firstarray.length + secondarray.length];\r\n\tint i=0;\r\n\tfor(i=0;i<firstarray.length;i++){\r\n\t output[i] = firstarray[i];\r\n\t}\r\n\tint index=i;\r\n\tfor(i=0;i<secondarray.length;i++){\r\n\t output[index] = secondarray[i];\r\n\t index++;\r\n\t}\r\n\treturn output;\r\n}", "public static void loadCacheImage(Context context, final ImageView imageView, String imageUrl, String tag) {\n Cache cache = MySingleton.getInstance(context).getRequestQueue().getCache();\n Cache.Entry entry = cache.get(imageUrl);\n if (entry != null) {\n try {\n Bitmap bitmap = BitmapFactory.decodeByteArray(entry.data, 0, entry.data.length);\n imageView.setImageBitmap(bitmap);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"ERROR\", e.getMessage());\n }\n } else {\n cache.invalidate(imageUrl, true);\n cache.clear();\n ImageRequest request = new ImageRequest(imageUrl,\n new Response.Listener<Bitmap>() {\n @Override\n public void onResponse(Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n }\n }, 0, 0, null,\n new Response.ErrorListener() {\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n Log.e(\"ERROR VOLLY 1\", error.getMessage() + \"\");\n imageView.setImageResource(R.drawable.ic_check_black_24dp);\n }\n });\n request.setTag(tag);\n MySingleton.getInstance(context).addToRequestQueue(request);\n }\n }", "private void setPicToView(Intent picdata) {\n Bundle extras = picdata.getExtras();\n if (extras != null) {\n Bitmap photo = extras.getParcelable(\"data\");\n Drawable drawable = new BitmapDrawable(getResources(), photo);\n groupSetAvatar.setImageDrawable(drawable);\n // uploadUserAvatar(Bitmap2Bytes(photo));\n saveBitmapFile(picdata);\n\n }\n\n }", "private void fillImageViewList(){\n ImageView imView1 =(ImageView) findViewById(R.id.imgCel1);\n ImageView imView2 =(ImageView) findViewById(R.id.imgCel2);\n ImageView imView3 =(ImageView) findViewById(R.id.imgCel3);\n ImageView imView4 =(ImageView) findViewById(R.id.imgCel4);\n ImageView imView5 =(ImageView) findViewById(R.id.imgCel5);\n ImageView imView6 =(ImageView) findViewById(R.id.imgCel6);\n ImageView imView7 =(ImageView) findViewById(R.id.imgCel7);\n ImageView imView8 =(ImageView) findViewById(R.id.imgCel8);\n ImageView imView9 =(ImageView) findViewById(R.id.imgCel9);\n\n imageList = new ArrayList<>();\n\n imageList.add(imView1); imageList.add(imView2);\n imageList.add(imView3); imageList.add(imView4);\n imageList.add(imView5); imageList.add(imView6);\n imageList.add(imView7); imageList.add(imView8);\n imageList.add(imView9);\n }", "void setImage(Bitmap bitmap);", "private void setPic() {\n int targetW = imageView.getWidth();\n int targetH = imageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageView.setImageBitmap(bitmap);\n imageView.invalidate();\n }", "protected Bitmap doInBackground(ImageView... images) {\n mImage = images[0];\n String url = (String)mImage.getTag();\n Log.i(\"load\", \"start\");\n return loadImageFromNetwork(url);\n }", "ImagePlus doStackOperation(ImagePlus img1, ImagePlus img2) {\n ImagePlus img3 = null;\n int size1 = img1.getStackSize();\n int size2 = img2.getStackSize();\n if (size1 > 1 && size2 > 1 && size1 != size2) {\n IJ.error(\"Image Calculator\", \"'Image1' and 'image2' must be stacks with the same\\nnumber of slices, or 'image2' must be a single image.\");\n return null;\n }\n if (createWindow) {\n img1 = duplicateStack(img1);\n if (img1 == null) {\n IJ.error(\"Calculator\", \"Out of memory\");\n return null;\n }\n img3 = img1;\n }\n int mode = getBlitterMode();\n ImageWindow win = img1.getWindow();\n if (win != null)\n WindowManager.setCurrentWindow(win);\n else if (Interpreter.isBatchMode() && !createWindow && WindowManager.getImage(img1.getID()) != null)\n IJ.selectWindow(img1.getID());\n Undo.reset();\n ImageStack stack1 = img1.getStack();\n StackProcessor sp = new StackProcessor(stack1, img1.getProcessor());\n try {\n if (size2 == 1)\n sp.copyBits(img2.getProcessor(), 0, 0, mode);\n else\n sp.copyBits(img2.getStack(), 0, 0, mode);\n } catch (IllegalArgumentException e) {\n IJ.error(\"\\\"\" + img1.getTitle() + \"\\\": \" + e.getMessage());\n return null;\n }\n img1.setStack(null, stack1);\n if (img1.getType() != ImagePlus.GRAY8) {\n img1.getProcessor().resetMinAndMax();\n }\n if (img3 == null)\n img1.updateAndDraw();\n return img3;\n }", "@Override\r\n\t\t\tpublic void onLoaded(ImageView imageView, Bitmap loadedDrawable, String url, boolean loadedFromCache) {\n\r\n\t\t\t\tif (loadedDrawable == null) // 아이콘을 로드하지 못한 경우\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\timageView.setImageBitmap(loadedDrawable);\r\n\t\t\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQ_CODE) {\n if (resultCode == RESULT_OK) {\n int img_number = data.getExtras().getInt(VALUE_KEY);\n if (img_number == 1) {\n ImageView img = (ImageView) findViewById(R.id.imageView_MyAvatar);\n img.setImageDrawable(getDrawable(R.drawable.avatar_f_1));\n IMAGE_NUMBER = 1;\n } else if (img_number == 2) {\n ImageView img = (ImageView) findViewById(R.id.imageView_MyAvatar);\n img.setImageDrawable(getDrawable(R.drawable.avatar_f_2));\n IMAGE_NUMBER = 2;\n } else if (img_number == 3) {\n ImageView img = (ImageView) findViewById(R.id.imageView_MyAvatar);\n img.setImageDrawable(getDrawable(R.drawable.avatar_f_3));\n IMAGE_NUMBER = 3;\n } else if (img_number == 4) {\n ImageView img = (ImageView) findViewById(R.id.imageView_MyAvatar);\n img.setImageDrawable(getDrawable(R.drawable.avatar_m_1));\n IMAGE_NUMBER = 4;\n } else if (img_number == 5) {\n ImageView img = (ImageView) findViewById(R.id.imageView_MyAvatar);\n img.setImageDrawable(getDrawable(R.drawable.avatar_m_2));\n IMAGE_NUMBER = 5;\n } else if (img_number == 6) {\n ImageView img = (ImageView) findViewById(R.id.imageView_MyAvatar);\n img.setImageDrawable(getDrawable(R.drawable.avatar_m_3));\n IMAGE_NUMBER = 6;\n }\n }\n }\n }", "@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tsuper.onDraw(canvas);\n\t\tBitmap b = null;\n\t\tfor (int i = 0; i < mViewNum; i++) {\n\t\t\tif (i == mCurrSelectIndex) {\n\t\t\t\tb = BitmapFactory.decodeResource(getResources(), R.mipmap.pic_select_point);\n\t\t\t} else {\n\t\t\t\tb = BitmapFactory.decodeResource(getResources(), R.mipmap.pic_noselect_point);\n\t\t\t}\n\t\t\tfloat vl = (float) getMeasuredWidth() / 2 - (float) (mViewNum * b.getWidth() + (mViewNum - 1) * b.getWidth()) / 2;\n\t\t\tvl = vl + (float) i * 2 * b.getWidth();\n\t\t\tcanvas.drawBitmap(b, vl, getMeasuredHeight() - 2 * b.getHeight(), null);\n\t\t}\n\t}", "private void initImages() {\n mImageView1WA = findViewById(R.id.comment_OWA);\n mImageView6DA = findViewById(R.id.comment_btn_6DA);\n mImageView5DA = findViewById(R.id.comment_btn_5DA);\n mImageView4DA = findViewById(R.id.comment_btn_4DA);\n mImageView3DA = findViewById(R.id.comment_btn_3DA);\n mImageView2DA = findViewById(R.id.comment_btn_2DA);\n mImageViewY = findViewById(R.id.comment_btn_1DA);\n\n imageList.add(mImageViewY);\n imageList.add(mImageView2DA);\n imageList.add(mImageView3DA);\n imageList.add(mImageView4DA);\n imageList.add(mImageView5DA);\n imageList.add(mImageView6DA);\n imageList.add(mImageView1WA);\n\n }", "private void createBitMap() {\n bitMap = bitMap.copy(bitMap.getConfig(), true);\n Canvas canvas = new Canvas(bitMap);\n Paint paint = new Paint();\n paint.setAntiAlias(true);\n paint.setColor(Color.BLACK);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth(4.5f);\n canvas.drawCircle(50, 50, 30, paint);\n winningBitMap = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas2 = new Canvas(winningBitMap);\n paint.setAntiAlias(true);\n paint.setColor(Color.GREEN);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas2.drawCircle(50, 50, 30, paint);\n bitMapWin = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas3 = new Canvas(bitMapWin);\n paint.setAntiAlias(true);\n paint.setColor(Color.MAGENTA);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas3.drawCircle(50, 50, 30, paint);\n bitMapCat = winningBitMap.copy(winningBitMap.getConfig(), true);\n Canvas canvas4 = new Canvas(bitMapCat);\n paint.setAntiAlias(true);\n paint.setColor(Color.DKGRAY);\n paint.setStyle(Paint.Style.FILL);\n paint.setStrokeWidth(4.5f);\n canvas4.drawCircle(50, 50, 30, paint);\n }", "@Override\n\t\t\t\tpublic Bitmap onPreSetBitmap(ImageView imageView, Bitmap loadedBitmap, String url, boolean loadedFromCache) {\n\t\t\t\t\treturn loadedBitmap;\n\t\t\t\t}", "@Override // Override pre-existing code from the parent\r\n\tpublic void draw(Graphics g) {\r\n\t\tg.drawImage(img1, x, y, null);\r\n\t\tg.drawImage(img2, x, y - 300, null);\r\n\t\tg.drawImage(img3, x, y - 100, null);\r\n\t}", "private void setPic() {\n int targetW = imageIV.getWidth();\n int targetH = imageIV.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageIV.setImageBitmap(bitmap);\n }", "public void drawImage() {\n ImageView imageView = (ImageView) findViewById(R.id.photo);\n imageView.setVisibility(View.VISIBLE);\n Glide.with(MainActivity.this).load(iURI).fitCenter().into(imageView);\n }", "public CLImage2D add(CLImage2D in1, CLImage2D in2) {\n\t\treturn process(addImage, in1, in2);\n\t}", "private void showBitmap() {\n Bitmap bitmap = BitmapFactory.decodeByteArray(mImgData, 0, mImgData.length);\n mImgView.setImageBitmap(bitmap);\n }", "private void setPic() {\n int targetW =20;// mImageView.getWidth();\n int targetH =20;// mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;//设置仅加载位图边界信息(相当于位图的信息,但没有加载位图)\n\n //返回为NULL,即不会返回bitmap,但可以返回bitmap的横像素和纵像素还有图片类型\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "private void setAdvertImages()\t{\n\n\t\tviewFlipper = (ViewFlipper) findViewById(R.id.view_flipper_display);\n\n\t\tString[] ids = getImageIDs(shopName);\n\n\t\tif(ids.length == 1)\t{\t\t//Just the logo exists\n\t\t\tLinearLayout ll = new LinearLayout(this);\n\t\t\tll.setOrientation(LinearLayout.VERTICAL);\n\n\t\t\tLinearLayout.LayoutParams lpScan = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT);\n\t\t\tll.setLayoutParams(lpScan);\n\t\t\tll.setGravity(Gravity.CENTER);\n\n\t\t\tImageView iv = new ImageView(this);\n\t\t\tiv.setLayoutParams(lpScan);\n\t\t\tiv.setImageBitmap(imageLoadedFromInternalStorage(ids[0]));\t\t//Sets flipper images = logo (ids[0])\n\n\t\t\tll.addView(iv);\n\t\t\tviewFlipper.addView(ll);\t\n\t\t}\n\n\n\t\tfor(int i = 1; i < ids.length; i++)\t{\n\n\t\t\tLinearLayout ll = new LinearLayout(this);\n\t\t\tll.setOrientation(LinearLayout.VERTICAL);\n\n\t\t\tLinearLayout.LayoutParams lpScan = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT);\n\t\t\tll.setLayoutParams(lpScan);\n\t\t\tll.setGravity(Gravity.CENTER);\n\n\t\t\tImageView iv = new ImageView(this);\n\t\t\tiv.setLayoutParams(lpScan);\n\t\t\tiv.setImageBitmap(imageLoadedFromInternalStorage(ids[i]));\n\n\t\t\tll.addView(iv);\n\t\t\tviewFlipper.addView(ll);\t\n\t\t}\n\t}", "private void setPic() {\n int targetW = img_clip.getWidth();\n int targetH = img_clip.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n img_clip.setImageBitmap(bitmap);\n }", "public Builder mergeImageByTransform(com.yahoo.xpathproto.TransformTestProtos.ContentImage value) {\n if (imageByTransformBuilder_ == null) {\n if (((bitField0_ & 0x00001000) == 0x00001000) &&\n imageByTransform_ != com.yahoo.xpathproto.TransformTestProtos.ContentImage.getDefaultInstance()) {\n imageByTransform_ =\n com.yahoo.xpathproto.TransformTestProtos.ContentImage.newBuilder(imageByTransform_).mergeFrom(value).buildPartial();\n } else {\n imageByTransform_ = value;\n }\n onChanged();\n } else {\n imageByTransformBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00001000;\n return this;\n }", "private static byte[] concatenateByteArrays(byte[] first, byte[] second) {\n int firstLength = first.length;\n int secondLength = second.length;\n\n byte[] ret = new byte[first.length + second.length];\n System.arraycopy(first, 0, ret, 0, first.length);\n System.arraycopy(second, 0, ret, first.length, second.length);\n\n return ret;\n }", "@Override\n public void onAnimationEnd(Animation arg0) {\n image1.post(new SwapViews(this.currentView, image1, image2));\n \n }", "public ByteArray combineWith(final byte[] bytesToAppend)\n\t{\n\t\t// holds the byte array to return\n\t\tbyte[] byteReturn = new byte[bytes.length + bytesToAppend.length];\n\t\t\n\t\t// copy the first array\n\t\tfor (int i = 0; i < bytes.length; i++)\n\t\t{\n\t\t\tbyteReturn[i] = bytes[i];\n\t\t}\n\t\t\n\t\t// append the second array\n\t\tfor (int i = 0; i < bytesToAppend.length; i++)\n\t\t{\n\t\t\tbyteReturn[i + bytes.length] = bytesToAppend[i];\n\t\t}\n\t\t\n\t\t// return the new combined array\n\t\treturn new ByteArray(byteReturn);\n\t}", "private void setImageBitmap(ImageView imageView, Bitmap bitmap,\n boolean isTran) {\n if (isTran) {\n final TransitionDrawable td = new TransitionDrawable(\n new Drawable[] {\n new ColorDrawable(android.R.color.transparent),\n new BitmapDrawable(mContext.getResources(), bitmap) });\n td.setCrossFadeEnabled(true);\n imageView.setImageDrawable(td);\n td.startTransition(300);\n } else {\n imageView.setImageBitmap(bitmap);\n }\n }", "void mo36482a(ImageView imageView, Uri uri);", "Builder addImage(URL value);", "public <I extends Image<?, I>> I add(I in1, I in2) {\n\t\tCLQueue queue = context.createDefaultQueue();\n\t\t\n\t\tCLImage2D clin1 = CLImageConversion.convert(context, in1);\n\t\tCLImage2D clin2 = CLImageConversion.convert(context, in2);\n\t\tCLImage2D clout = context.createImage2D(CLMem.Usage.Output, clin1.getFormat(), clin1.getWidth(), clin1.getHeight());\n\t\t\n\t\tCLEvent evt = process(addImage, queue, clin1, clin2, clout);\n\t\t\n\t\tI out = CLImageConversion.convert(queue, evt, clout, in1.newInstance(in1.getWidth(), in1.getHeight()));\n\t\t\n\t\tclin1.release();\n\t\tclin2.release();\n\t\tclout.release();\n\t\tqueue.release();\n\t\t\n\t\treturn out;\n\t}", "public Optional<Mask> combineWith(Mask other) {\r\n\r\n\t\tif (other == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"'null' value passed as mask.\");\r\n\t\t}\r\n\r\n\t\tif (this.values.length != other.values.length) {\r\n\t\t\tthrow new IllegalArgumentException(\"Masks are not the same length\");\r\n\t\t}\r\n\r\n\t\tbyte[] newValues = new byte[this.values.length];\r\n\t\tint differenceCount = 0;\r\n\t\tfor (int i = 0, len = this.values.length; i < len; i++) {\r\n\r\n\t\t\tif (values[i] == 2 && !(other.values[i] == 2)\r\n\t\t\t\t\t|| !(values[i] == 2) && other.values[i] == 2) {\r\n\t\t\t\treturn Optional.empty();\r\n\t\t\t}\r\n\r\n\t\t\tif (values[i] != other.values[i]) {\r\n\t\t\t\tdifferenceCount++;\r\n\t\t\t\tif (differenceCount > 1)\r\n\t\t\t\t\treturn Optional.empty();\r\n\r\n\t\t\t\tnewValues[i] = (byte) 2;\r\n\t\t\t} else\r\n\t\t\t\tnewValues[i] = values[i];\r\n\t\t}\r\n\r\n\t\tSet<Integer> newMintermSet = new TreeSet<>();\r\n\t\tnewMintermSet.addAll(indexes);\r\n\t\tnewMintermSet.addAll(other.indexes);\r\n\t\tMask newMask = new Mask(newValues, newMintermSet,\r\n\t\t\t\tdontCare && other.dontCare);\r\n\r\n\t\tthis.setCombined(true);\r\n\t\tother.setCombined(true);\r\n\r\n\t\treturn Optional.of(newMask);\r\n\t}", "public static Bitmap cropImageVer2(Bitmap img, Bitmap templateImage, int width, int height) {\n // Merge two images together.\n int x=5,y=5;\n Bitmap bm = Bitmap.createBitmap(img.getWidth(), img.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas combineImg = new Canvas(bm);\n combineImg.drawBitmap(img, 0f, 0f, null);\n combineImg.drawBitmap(templateImage, 0f, 0f, null);\n \n // Create new blank ARGB bitmap.\n Bitmap finalBm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n \n // Get the coordinates for the middle of bm.\n int hMid = bm.getHeight() / 2;\n int wMid = bm.getWidth() / 2;\n int hfMid = finalBm.getHeight() / 2;\n int wfMid = finalBm.getWidth() / 2;\n\n int y2 = hfMid;\n int x2 = wfMid;\n\n for ( y = hMid; y >= 0; y--) {\n // Check Upper-left section of combineImg.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n \n // Check upper-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits top most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2--;\n }\n\n x2 = wfMid;\n y2 = hfMid;\n for (y = hMid; y <= bm.getHeight(); y++) {\n // Check bottom-left section of combineImage.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n\n // Check bottom-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n \n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits bottom most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2++;\n }\n \n // Get rid of images that we finished with to save memory.\n img.recycle();\n templateImage.recycle();\n bm.recycle();\n return finalBm;\n }", "private void previewCapturedImage(Bitmap bitmap, Bitmap bmp,int tipe) {\n try {\n\n if(tipe == CAMERA_KTP){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG,50, baos);\n byte[] b = baos.toByteArray();\n encodedImageKtp = Base64.encodeToString(b,Base64.DEFAULT);\n\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, bitmap_size, bytes);\n decoded = BitmapFactory.decodeStream(new ByteArrayInputStream(bytes.toByteArray()));\n\n //byte[] byteArray = bytes.toByteArray();\n //encodedImageKtp = Base64.encodeToString(byteArray, Base64.DEFAULT);\n fixencodedImageKtp = \"data:image/jpeg;base64,\" + encodedImageKtp.replace(\" \", \"\").replace(\"\\n\", \"\");\n\n viewKtp.setVisibility(View.VISIBLE);\n viewKtp.setImageBitmap(decoded);\n }else if(tipe == CAMERA_SATU){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG,50, baos);\n byte[] b = baos.toByteArray();\n encodedImageF1 = Base64.encodeToString(b,Base64.DEFAULT);\n\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, bitmap_size, bytes);\n decoded = BitmapFactory.decodeStream(new ByteArrayInputStream(bytes.toByteArray()));\n\n //byte[] byteArray = bytes.toByteArray();\n //encodedImageF1 = Base64.encodeToString(byteArray, Base64.DEFAULT);\n fixencodedImageF1 = \"data:image/jpeg;base64,\" + encodedImageF1.replace(\" \", \"\").replace(\"\\n\", \"\");\n\n viewFoto1.setVisibility(View.VISIBLE);\n viewFoto1.setImageBitmap(decoded);\n }else if(tipe == CAMERA_DUA){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG,50, baos);\n byte[] b = baos.toByteArray();\n encodedImageF2 = Base64.encodeToString(b,Base64.DEFAULT);\n\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, bitmap_size, bytes);\n decoded = BitmapFactory.decodeStream(new ByteArrayInputStream(bytes.toByteArray()));\n\n //byte[] byteArray = bytes.toByteArray();\n //encodedImageF2 = Base64.encodeToString(byteArray, Base64.DEFAULT);\n fixencodedImageF2 = \"data:image/jpeg;base64,\" + encodedImageF2.replace(\" \", \"\").replace(\"\\n\", \"\");\n\n viewFoto2.setVisibility(View.VISIBLE);\n viewFoto2.setImageBitmap(decoded);\n }else if(tipe == CAMERA_TIGA){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG,50, baos);\n byte[] b = baos.toByteArray();\n encodedImageF3 = Base64.encodeToString(b,Base64.DEFAULT);\n\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, bitmap_size, bytes);\n decoded = BitmapFactory.decodeStream(new ByteArrayInputStream(bytes.toByteArray()));\n\n //byte[] byteArray = bytes.toByteArray();\n //encodedImageF3 = Base64.encodeToString(byteArray, Base64.DEFAULT);\n fixencodedImageF3 = \"data:image/jpeg;base64,\" + encodedImageF3.replace(\" \", \"\").replace(\"\\n\", \"\");\n\n viewFoto3.setVisibility(View.VISIBLE);\n viewFoto3.setImageBitmap(decoded);\n }else if(tipe == CAMERA_EMPAT){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG,50, baos);\n byte[] b = baos.toByteArray();\n encodedImageF4 = Base64.encodeToString(b,Base64.DEFAULT);\n\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, bitmap_size, bytes);\n decoded = BitmapFactory.decodeStream(new ByteArrayInputStream(bytes.toByteArray()));\n\n //byte[] byteArray = bytes.toByteArray();\n //encodedImageF4 = Base64.encodeToString(byteArray, Base64.DEFAULT);\n fixencodedImageF4 = \"data:image/jpeg;base64,\" + encodedImageF4.replace(\" \", \"\").replace(\"\\n\", \"\");\n\n viewFoto4.setVisibility(View.VISIBLE);\n viewFoto4.setImageBitmap(decoded);\n }else if(tipe == CAMERA_LIMA){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG,50, baos);\n byte[] b = baos.toByteArray();\n encodedImageF5 = Base64.encodeToString(b,Base64.DEFAULT);\n\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n bmp.compress(Bitmap.CompressFormat.JPEG, bitmap_size, bytes);\n decoded = BitmapFactory.decodeStream(new ByteArrayInputStream(bytes.toByteArray()));\n\n //byte[] byteArray = bytes.toByteArray();\n //encodedImageF5 = Base64.encodeToString(byteArray, Base64.DEFAULT);\n fixencodedImageF5 = \"data:image/jpeg;base64,\" + encodedImageF5.replace(\" \", \"\").replace(\"\\n\", \"\");\n\n viewFoto5.setVisibility(View.VISIBLE);\n viewFoto5.setImageBitmap(decoded);\n }\n\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "public static void loadTakenImage(Bitmap takenImage, ImageView imageView, Context context) {\n RequestOptions circleProp = new RequestOptions();\n circleProp = circleProp.transform(new CircleCrop());\n Glide.with(context)\n .load(takenImage)\n .apply(circleProp)\n .into(imageView);\n }", "private void loadImageAsync(final AsyncDrawableContainer<ID, Entity> dataContainer, final ImageView imageView,\n\t\tfinal LinearLayout imageWrapper, final ProgressBar loadingView)\n\t{\n\t\t// holds the facebook id that will be loading\n\t\tfinal ID id = dataContainer.getID();\n\t\t\n\t\t// hold onto a weak reference of the view\n\t\tfinal WeakReference<ImageView> imageViewReference = new WeakReference<ImageView>(imageView);\n\t\t\n\t\t// add this image set id to the set.\n\t\t// true means that the id was successfully added to the set\n\t\t// false means that the id already existed in the set\n\t\tif (loadingIDs.add(id))\n\t\t{\n\t\t\t// synchronize on this map so that no other thread can access it until we\n\t\t\t// are done\n\t\t\tsynchronized (viewImageMap)\n\t\t\t{\n\t\t\t\t// put this view in the map with this id\n\t\t\t\tviewImageMap.put(imageView, id);\n\t\t\t}\n\t\t\t\n\t\t\t// swap out the loading view with the image view\n\t\t\tloadingView.setVisibility(View.VISIBLE);\n\t\t\timageWrapper.setVisibility(View.GONE);\n\t\t\t\n\t\t\t// create a new task\n\t\t\tLoadBitmapImageTask<Entity> loadBitmapImageTask = createNewLoadBitmapImageTask();\n\t\t\tloadBitmapImageTask.addTaskCallBackListener(new TaskCallBackListener<Bitmap>()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void onPostExecute(Bitmap result)\n\t\t\t\t{\n\t\t\t\t\t// make sure the result is not null\n\t\t\t\t\tif (null != result)\n\t\t\t\t\t{\n\t\t\t\t\t\t// create the drawable\n\t\t\t\t\t\tDrawable drawable = new BitmapDrawable(result);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// synchronize on this map so that no other thread can access it until we\n\t\t\t\t\t\t// are done\n\t\t\t\t\t\tsynchronized (viewImageMap)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// retrieve the expected from the table\n\t\t\t\t\t\t\tID expectedID = viewImageMap.get(imageViewReference.get());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// make sure the expected id matches this one\n\t\t\t\t\t\t\tif (null != expectedID && expectedID.equals(id))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// remove this view from the map\n\t\t\t\t\t\t\t\tviewImageMap.remove(imageView);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// check to see if the image view is visible\n\t\t\t\t\t\t\t\tif (imageWrapper.getVisibility() != View.VISIBLE)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t// swap out the loading view with the image view\n\t\t\t\t\t\t\t\t\timageWrapper.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\tloadingView.setVisibility(View.GONE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// update the image view\n\t\t\t\t\t\t\t\timageView.setImageDrawable(drawable);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// save the drawable to the RecentOpponent\n\t\t\t\t\t\tdataContainer.setDrawable(drawable);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// remove this id from the set\n\t\t\t\t\tloadingIDs.remove(id);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onCancelled(Bitmap result)\n\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\t// cast the entity as an array of that type. This is required because at runtime, the\n\t\t\t// parameter is considered to be an object array and therefore not able to be casted as\n\t\t\t// the type required for the argument\n\t\t\tEntity[] params = castEntityAsArray(dataContainer.getEntity());\n\t\t\tloadBitmapImageTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params);\n\t\t}\n\t}" ]
[ "0.57663894", "0.5555079", "0.54804915", "0.5473969", "0.5454364", "0.53964764", "0.5383173", "0.53171575", "0.53147125", "0.5269942", "0.51992863", "0.5168924", "0.51531154", "0.51093876", "0.51066977", "0.508866", "0.5085101", "0.50507176", "0.50403756", "0.50025815", "0.49578384", "0.49420995", "0.49403453", "0.49311963", "0.4924214", "0.49156618", "0.49042678", "0.48971644", "0.48773667", "0.4855092", "0.4849356", "0.48424637", "0.48211014", "0.4800723", "0.4754252", "0.47441816", "0.47393867", "0.4734088", "0.47289714", "0.47188282", "0.47134516", "0.4708108", "0.47016808", "0.4681515", "0.4680002", "0.46716443", "0.46653494", "0.465833", "0.4650095", "0.46460012", "0.4644323", "0.4644068", "0.46395642", "0.46304113", "0.46164262", "0.46076268", "0.46076077", "0.46076053", "0.46066758", "0.46008953", "0.4597217", "0.458946", "0.45851114", "0.45811766", "0.45800287", "0.45725292", "0.45720845", "0.45650733", "0.45611703", "0.4558574", "0.45555604", "0.45487475", "0.45343524", "0.4533201", "0.453193", "0.45314977", "0.45269012", "0.45200253", "0.45104715", "0.44977266", "0.44912365", "0.4487681", "0.4484318", "0.44826764", "0.44826114", "0.44732252", "0.44730672", "0.44715506", "0.44636205", "0.44597316", "0.4456672", "0.4444188", "0.44428673", "0.4434416", "0.4433134", "0.44327268", "0.44309232", "0.44292367", "0.44268987", "0.44265455" ]
0.5897011
0
Returns a Bitmap from a given InputStream with a size under the given max dimensions
public static Bitmap decodeBitmapFromInputStream(InputStream inputStream, int maxDims) throws java.io.IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int len; while ((len = inputStream.read(buffer)) > -1 ) { baos.write(buffer, 0, len); } baos.flush(); InputStream sizeCheckStream = new ByteArrayInputStream(baos.toByteArray()); InputStream bitmapStream = new ByteArrayInputStream(baos.toByteArray()); ImageDimensions currentDimensions = getImageDimensionsFromInputStream(sizeCheckStream); BitmapFactory.Options options = new BitmapFactory.Options(); options.inSampleSize = calculateInSampleSize(currentDimensions, maxDims); return BitmapFactory.decodeStream(bitmapStream, new Rect(0, 0, 512, 386), options); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Bitmap decodeSampledBitmapFromStream(InputStream is, URL url, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(is, null, options);\n try {\n is = new BufferedInputStream((InputStream) url.getContent());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeStream(is, null, options);\n }", "private Bitmap loadConstrainedBitmap(Uri uri, int maxSideLength) throws FileNotFoundException {\n if (maxSideLength <= 0 || uri == null || mContext == null) {\n throw new IllegalArgumentException(\"bad argument to getScaledBitmap\");\n }\n // Get width and height of stored bitmap\n BitmapFactory.Options opt = new BitmapFactory.Options();\n opt.inJustDecodeBounds = true;\n loadBitmap(uri, opt);\n\n int w = opt.outWidth;\n int h = opt.outHeight;\n mOriginalBitmapWidth = opt.outWidth;\n mOriginalBitmapLenght = opt.outHeight;\n // If bitmap cannot be decoded, return null\n if (w <= 0 || h <= 0) {\n return null;\n }\n\n // Find best downsampling size\n int imageSide = Math.max(w, h);\n\n int sampleSize = 1;\n while (imageSide > maxSideLength) {\n imageSide >>>= 1;\n sampleSize <<= 1;\n }\n\n // Make sure sample size is reasonable\n if (sampleSize <= 0 || 0 >= (Math.min(w, h) / sampleSize)) {\n return null;\n }\n BitmapFactory.Options decodeOptions;\n synchronized (mLock) { // prevent race with set null below\n mDecodeOptions = new BitmapFactory.Options();\n mDecodeOptions.inMutable = true;\n mDecodeOptions.inSampleSize = sampleSize;\n decodeOptions = mDecodeOptions;\n }\n try {\n return loadBitmap(uri, decodeOptions);\n } finally {\n synchronized (mLock) {\n mDecodeOptions = null;\n }\n }\n }", "public static byte[] getResizedImageData(int width, int height,\n\t\t\tint widthLimit, int heightLimit, int byteLimit, Uri uri,\n\t\t\tContext context) {\n\t\tint outWidth = width;\n\t\tint outHeight = height;\n\n\t\tfloat scaleFactor = 1.F;\n\t\twhile ((outWidth * scaleFactor > widthLimit)\n\t\t\t\t|| (outHeight * scaleFactor > heightLimit)) {\n\t\t\tscaleFactor *= .75F;\n\t\t}\n\n\t\t// if (Log.isLoggable(LogTag.APP, Log.VERBOSE)) {\n\t\t// Log.v(TAG, \"getResizedBitmap: wlimit=\" + widthLimit +\n\t\t// \", hlimit=\" + heightLimit + \", sizeLimit=\" + byteLimit +\n\t\t// \", width=\" + width + \", height=\" + height +\n\t\t// \", initialScaleFactor=\" + scaleFactor +\n\t\t// \", uri=\" + uri);\n\t\t// }\n\n\t\tInputStream input = null;\n\t\ttry {\n\t\t\tByteArrayOutputStream os = null;\n\t\t\tint attempts = 1;\n\t\t\tint sampleSize = 1;\n\t\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\t\t\tint quality = IMAGE_COMPRESSION_QUALITY;\n\t\t\tBitmap b = null;\n\n\t\t\t// In this loop, attempt to decode the stream with the best possible\n\t\t\t// subsampling (we\n\t\t\t// start with 1, which means no subsampling - get the original\n\t\t\t// content) without running\n\t\t\t// out of memory.\n\t\t\tdo {\n\t\t\t\tinput = context.getContentResolver().openInputStream(uri);\n\t\t\t\toptions.inSampleSize = sampleSize;\n\t\t\t\ttry {\n\t\t\t\t\tb = BitmapFactory.decodeStream(input, null, options);\n\t\t\t\t\tif (b == null) {\n\t\t\t\t\t\treturn null; // Couldn't decode and it wasn't because of\n\t\t\t\t\t\t\t\t\t\t// an exception,\n\t\t\t\t\t\t\t\t\t\t// bail.\n\t\t\t\t\t}\n\t\t\t\t} catch (OutOfMemoryError e) {\n\t\t\t\t\t// Log.w(TAG,\n\t\t\t\t\t// \"getResizedBitmap: img too large to decode (OutOfMemoryError), \"\n\t\t\t\t\t// +\n\t\t\t\t\t// \"may try with larger sampleSize. Curr sampleSize=\" +\n\t\t\t\t\t// sampleSize);\n\t\t\t\t\tsampleSize *= 2; // works best as a power of two\n\t\t\t\t\tattempts++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} finally {\n\t\t\t\t\tif (input != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinput.close();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// Log.e(TAG, e.getMessage(), e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} while (b == null && attempts < NUMBER_OF_RESIZE_ATTEMPTS);\n\n\t\t\tif (b == null) {\n\t\t\t\t// if (Log.isLoggable(LogTag.APP, Log.VERBOSE)\n\t\t\t\t// && attempts >= NUMBER_OF_RESIZE_ATTEMPTS) {\n\t\t\t\t// Log.v(TAG,\n\t\t\t\t// \"getResizedImageData: gave up after too many attempts to resize\");\n\t\t\t\t// }\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tboolean resultTooBig = true;\n\t\t\tattempts = 1; // reset count for second loop\n\t\t\t// In this loop, we attempt to compress/resize the content to fit\n\t\t\t// the given dimension\n\t\t\t// and file-size limits.\n\t\t\tdo {\n\t\t\t\ttry {\n\t\t\t\t\tif (options.outWidth > widthLimit\n\t\t\t\t\t\t\t|| options.outHeight > heightLimit\n\t\t\t\t\t\t\t|| (os != null && os.size() > byteLimit)) {\n\t\t\t\t\t\t// The decoder does not support the inSampleSize option.\n\t\t\t\t\t\t// Scale the bitmap using Bitmap library.\n\t\t\t\t\t\tint scaledWidth = (int) (outWidth * scaleFactor);\n\t\t\t\t\t\tint scaledHeight = (int) (outHeight * scaleFactor);\n\n\t\t\t\t\t\t// if (Log.isLoggable(LogTag.APP, Log.VERBOSE)) {\n\t\t\t\t\t\t// Log.v(TAG,\n\t\t\t\t\t\t// \"getResizedImageData: retry scaling using \" +\n\t\t\t\t\t\t// \"Bitmap.createScaledBitmap: w=\" + scaledWidth +\n\t\t\t\t\t\t// \", h=\" + scaledHeight);\n\t\t\t\t\t\t// }\n\n\t\t\t\t\t\tb = Bitmap.createScaledBitmap(b, scaledWidth,\n\t\t\t\t\t\t\t\tscaledHeight, false);\n\t\t\t\t\t\t// if (b == null) {\n\t\t\t\t\t\t// if (Log.isLoggable(LogTag.APP, Log.VERBOSE)) {\n\t\t\t\t\t\t// Log.v(TAG,\n\t\t\t\t\t\t// \"Bitmap.createScaledBitmap returned NULL!\");\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// return null;\n\t\t\t\t\t\t// }\n\t\t\t\t\t}\n\n\t\t\t\t\t// Compress the image into a JPG. Start with\n\t\t\t\t\t// IMAGE_COMPRESSION_QUALITY.\n\t\t\t\t\t// In case that the image byte size is still too large\n\t\t\t\t\t// reduce the quality in\n\t\t\t\t\t// proportion to the desired byte size.\n\t\t\t\t\tos = new ByteArrayOutputStream();\n\t\t\t\t\tb.compress(CompressFormat.JPEG, quality, os);\n\t\t\t\t\tint jpgFileSize = os.size();\n\t\t\t\t\tif (jpgFileSize > byteLimit) {\n\t\t\t\t\t\tquality = (quality * byteLimit) / jpgFileSize; // watch\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// int\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// division!\n\t\t\t\t\t\tif (quality < MINIMUM_IMAGE_COMPRESSION_QUALITY) {\n\t\t\t\t\t\t\tquality = MINIMUM_IMAGE_COMPRESSION_QUALITY;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// if (Log.isLoggable(LogTag.APP, Log.VERBOSE)) {\n\t\t\t\t\t\t// Log.v(TAG,\n\t\t\t\t\t\t// \"getResizedImageData: compress(2) w/ quality=\" +\n\t\t\t\t\t\t// quality);\n\t\t\t\t\t\t// }\n\n\t\t\t\t\t\tos = new ByteArrayOutputStream();\n\t\t\t\t\t\tb.compress(CompressFormat.JPEG, quality, os);\n\t\t\t\t\t}\n\t\t\t\t} catch (java.lang.OutOfMemoryError e) {\n\t\t\t\t\t// Log.w(TAG,\n\t\t\t\t\t// \"getResizedImageData - image too big (OutOfMemoryError), will try \"\n\t\t\t\t\t// + \" with smaller scale factor, cur scale factor: \" +\n\t\t\t\t\t// scaleFactor);\n\t\t\t\t\t// fall through and keep trying with a smaller scale factor.\n\t\t\t\t}\n\t\t\t\t// if (Log.isLoggable(LogTag.APP, Log.VERBOSE)) {\n\t\t\t\t// Log.v(TAG, \"attempt=\" + attempts\n\t\t\t\t// + \" size=\" + (os == null ? 0 : os.size())\n\t\t\t\t// + \" width=\" + outWidth * scaleFactor\n\t\t\t\t// + \" height=\" + outHeight * scaleFactor\n\t\t\t\t// + \" scaleFactor=\" + scaleFactor\n\t\t\t\t// + \" quality=\" + quality);\n\t\t\t\t// }\n\t\t\t\tscaleFactor *= .75F;\n\t\t\t\tattempts++;\n\t\t\t\tresultTooBig = os == null || os.size() > byteLimit;\n\t\t\t} while (resultTooBig && attempts < NUMBER_OF_RESIZE_ATTEMPTS);\n\t\t\tb.recycle(); // done with the bitmap, release the memory\n\t\t\t// if (Log.isLoggable(LogTag.APP, Log.VERBOSE) && resultTooBig) {\n\t\t\t// Log.v(TAG,\n\t\t\t// \"getResizedImageData returning NULL because the result is too big: \"\n\t\t\t// +\n\t\t\t// \" requested max: \" + byteLimit + \" actual: \" + os.size());\n\t\t\t// }\n\n\t\t\treturn resultTooBig ? null : os.toByteArray();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Log.e(TAG, e.getMessage(), e);\n\t\t\treturn null;\n\t\t} catch (java.lang.OutOfMemoryError e) {\n\t\t\t// Log.e(TAG, e.getMessage(), e);\n\t\t\treturn null;\n\t\t}\n\t}", "public static Bitmap decodeFile(File f, final int IMAGE_MAX_SIZE) throws IOException {\n Bitmap b = null;\n\n // Decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n\n FileInputStream fis = new FileInputStream(f);\n BitmapFactory.decodeStream(fis, null, o);\n fis.close();\n\n int scale = 1;\n if (o.outHeight > IMAGE_MAX_SIZE || o.outWidth > IMAGE_MAX_SIZE) {\n scale = (int) Math.pow(\n 2,\n (int) Math.round(Math.log(IMAGE_MAX_SIZE\n / (double) Math.max(o.outHeight, o.outWidth))\n / Math.log(0.5)));\n }\n\n // Decode with inSampleSize\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inPurgeable = true;\n o2.inSampleSize = scale;\n fis = new FileInputStream(f);\n b = BitmapFactory.decodeStream(fis, null, o2);\n fis.close();\n\n return b;\n }", "public static Bitmap decodedBitmapFromStream(Context context,Uri uri,int reqWidth, int reqHeight) throws FileNotFoundException {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(context.getContentResolver().openInputStream(uri), null, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeStream(context.getContentResolver().openInputStream(uri), null, options);\n }", "private static Bitmap a(InputStream inputStream, Options options, a aVar, e eVar) throws IOException {\n String str = \"Downsampler\";\n if (options.inJustDecodeBounds) {\n inputStream.mark(10485760);\n } else {\n aVar.a();\n }\n int i2 = options.outWidth;\n int i3 = options.outHeight;\n String str2 = options.outMimeType;\n w.a().lock();\n try {\n Bitmap decodeStream = BitmapFactory.decodeStream(inputStream, null, options);\n w.a().unlock();\n if (options.inJustDecodeBounds) {\n inputStream.reset();\n }\n return decodeStream;\n } catch (IllegalArgumentException e2) {\n IOException a2 = a(e2, i2, i3, str2, options);\n if (Log.isLoggable(str, 3)) {\n Log.d(str, \"Failed to decode with inBitmap, trying again without Bitmap re-use\", a2);\n }\n if (options.inBitmap != null) {\n inputStream.reset();\n eVar.a(options.inBitmap);\n options.inBitmap = null;\n Bitmap a3 = a(inputStream, options, aVar, eVar);\n w.a().unlock();\n return a3;\n }\n throw a2;\n } catch (Throwable th) {\n w.a().unlock();\n throw th;\n }\n }", "@CheckForNull\n public static Bitmap createScaledBitmap(@NonNull ContentResolver cr, Uri uri, int maxWidth,\n int maxHeight, boolean respectOrientation) {\n InputStream input = null;\n Bitmap ret = null;\n double width = 0, height = 0;\n try {\n input = cr.openInputStream(uri);\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(input, null, options);\n width = options.outWidth;\n height = options.outHeight;\n\n } catch (Exception e) {\n LogUtils.e(e, \"Failed to createScaledBitmap, get outWidth/Height %s, %d, %d\", uri, maxWidth,\n maxHeight);\n } finally {\n IOUtils.close(input);\n }\n\n if (width != 0 && height != 0) {\n int sample = 1;\n if (respectOrientation) {\n if ((width - height) * (maxWidth - maxHeight) < 0) {\n double tmp = width;\n width = height;\n height = tmp;\n }\n }\n\n if (width > maxWidth) {\n sample = (int) Math.ceil(width / maxWidth);\n height = height / sample;\n }\n\n if (height > (maxHeight * 1.1))\n sample += (int) Math.ceil(height / maxHeight);\n\n // d(\"%dx%d, max %dx%d, sample %d\", (int) width, (int) height,\n // maxWidth, maxHeight, sample);\n try {\n input = cr.openInputStream(uri);\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inSampleSize = sample;\n ret = BitmapFactory.decodeStream(input, null, options);\n } catch (Exception e) {\n LogUtils.e(e, \"Failed to createScaledBitmap, %s, %d, %d\", uri, maxWidth, maxHeight);\n } finally {\n IOUtils.close(input);\n }\n }\n\n if (ret.getWidth() > maxWidth || ret.getHeight() > maxHeight) {\n ret = createScaledBitmap(ret, maxWidth, maxHeight);\n }\n\n return ret;\n }", "private Bitmap decodeUri(Uri selectedImage, int size) throws FileNotFoundException {\n // Decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(getContentResolver().openInputStream(selectedImage), null, o);\n\n // Find the correct scale value. It should be the power of 2.\n int width_tmp = o.outWidth, height_tmp = o.outHeight;\n int scale = 1;\n while (true) {\n if (width_tmp / 2 < size\n || height_tmp / 2 < size) {\n break;\n }\n width_tmp /= 2;\n height_tmp /= 2;\n scale *= 2;\n }\n\n // Decode with inSampleSize\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inSampleSize = scale;\n return BitmapFactory.decodeStream(getContentResolver().openInputStream(selectedImage), null, o2);\n }", "public static Bitmap decodeStream(InputStream is1, InputStream is2, int width, int height) {\n // Decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(is1, null, o);\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inSampleSize = calculateInSampleSize(o, o.outWidth, o.outHeight);\n o2.inJustDecodeBounds = false;\n Bitmap img = BitmapFactory.decodeStream(is2, null, o2);\n return scaleImage(img, width, height);\n\n }", "public static Bitmap decodeSampledBitmapFromFile(String path, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(path, options);\n // Calculate inSampleSize\n // Raw height and width of image\n final int height = options.outHeight;\n final int width = options.outWidth;\n options.inPreferredConfig = Bitmap.Config.RGB_565;\n int inSampleSize = 1;\n if (height > reqHeight) {\n inSampleSize = Math.round((float) height / (float) reqHeight);\n }\n int expectedWidth = width / inSampleSize;\n if (expectedWidth > reqWidth) {\n //if(Math.round((float)width / (float)reqWidth) > inSampleSize) // If bigger SampSize..\n inSampleSize = Math.round((float) width / (float) reqWidth);\n }\n options.inSampleSize = inSampleSize;\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFile(path, options);\n }", "public static Bitmap decodeSampledBitmapFromFile(String path, int reqWidth, int reqHeight)\n {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(path, options);\n\n // Calculate inSampleSize, Raw height and width of image\n final int height = options.outHeight;\n final int width = options.outWidth;\n options.inPreferredConfig = Bitmap.Config.RGB_565;\n int inSampleSize = 1;\n\n if (height > reqHeight) {\n inSampleSize = Math.round((float)height / (float)reqHeight);\n }\n int expectedWidth = width / inSampleSize;\n\n if (expectedWidth > reqWidth) {\n //if(Math.round((float)width / (float)reqWidth) > inSampleSize) // If bigger SampSize..\n inSampleSize = Math.round((float)width / (float)reqWidth);\n }\n\n options.inSampleSize = inSampleSize;\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFile(path, options);\n }", "public static Bitmap decodeSampledBitmapFromFileDescriptor(FileDescriptor fd, int requiredWidth, int requiredHeight){\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFileDescriptor(fd, null, options);\n options.inSampleSize = calculateInSampleSize(options, requiredWidth, requiredHeight);\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFileDescriptor(fd, null, options);\n }", "@Nullable\n private static Bitmap drawableToBitmap(@Nullable Drawable drawable, int maxDims) {\n if (drawable == null) {\n return null;\n }\n final int actualWidth = Math.max(1, drawable.getIntrinsicWidth());\n final int actualHeight = Math.max(1, drawable.getIntrinsicHeight());\n final double scaleWidth = ((double) maxDims) / actualWidth;\n final double scaleHeight = ((double) maxDims) / actualHeight;\n final double scale = Math.min(1.0, Math.min(scaleWidth, scaleHeight));\n final int width = (int) (actualWidth * scale);\n final int height = (int) (actualHeight * scale);\n if (drawable instanceof BitmapDrawable) {\n final BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable;\n if (actualWidth != width || actualHeight != height) {\n return Bitmap.createScaledBitmap(\n bitmapDrawable.getBitmap(), width, height, /*filter=*/false);\n } else {\n return bitmapDrawable.getBitmap();\n }\n } else {\n final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n final Canvas canvas = new Canvas(bitmap);\n drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());\n drawable.draw(canvas);\n return bitmap;\n }\n }", "public Bitmap decodeSimpleBitmapFromFileDescriptor(FileDescriptor fd, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFileDescriptor(fd, null, options);\n //Calculate inSampleSize /*采样率*/\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n //Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n\n return BitmapFactory.decodeFileDescriptor(fd, null, options);\n }", "public static Bitmap decodeSampledBitmapFromResource(String filepath,\n int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(filepath, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFile(filepath, options);\n }", "public Bitmap decodeSampledBitmapFromFile(String filename,\n int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(filename, options);\n \n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n \n// System.out.println(\"inSampleSize : \" + options.inSampleSize);\n \n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFile(filename, options);\n }", "public static synchronized Bitmap decodeSampledBitmapFromFile(String filename,\n int reqWidth, int reqHeight) {\n\n // First decode with inJustDecodeBounds=true to check dimensions\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(filename, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFile(filename, options);\n }", "public static Bitmap decodeSampledBitmapFromFile(String path, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n options.inTempStorage = new byte[16*1024];\n options.inPurgeable = true;\n BitmapFactory.decodeFile(path, options);\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n options.inTempStorage = new byte[16*1024];\n options.inPurgeable = true;\n return BitmapFactory.decodeFile(path, options);\n }", "public static Bitmap decodeSampledBitmapFromResource(String path, int reqWidth, int reqHeight) {\n\t final BitmapFactory.Options options = new BitmapFactory.Options();\n\t options.inJustDecodeBounds = true;\n\t BitmapFactory.decodeFile(path, options);\n\n\t // Calculate inSampleSize\n\t options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n\t // Decode bitmap with inSampleSize set\n\t options.inJustDecodeBounds = false;\n\t return BitmapFactory.decodeFile(path, options);\n\t}", "private Bitmap getBitmap(String url){\n Bitmap result = null;\n try {\n InputStream in = new java.net.URL(url).openStream();\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n // Calculate inSampleSize\n options.inSampleSize = 4;\n options.inJustDecodeBounds = false;\n result = BitmapFactory.decodeStream(in, null, options);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return result;\n }", "public static Bitmap createBitmap (byte[] photo, int width, int height)\r\n {\r\n /* Determine the raw bitmap dimensions. */\r\n int outWidth;\r\n int outHeight;\r\n {\r\n BitmapFactory.Options options = new BitmapFactory.Options();\r\n options.inJustDecodeBounds = true;\r\n BitmapFactory.decodeByteArray(photo, 0, photo.length, options);\r\n\r\n outWidth = options.outWidth;\r\n outHeight = options.outHeight;\r\n }\r\n\r\n /* Evaluate possible sample size. */\r\n int inSampleSize = 1;\r\n if ( outWidth > height\r\n || outHeight > width)\r\n {\r\n final int halfHeight = outWidth / 2;\r\n final int halfWidth = outHeight / 2;\r\n\r\n /*\r\n * Calculate the largest inSampleSize value that is a power of 2 and keeps\r\n * both height and width larger than the requested height and width.\r\n */\r\n while ( (halfHeight / inSampleSize) > height\r\n && (halfWidth / inSampleSize) > width)\r\n {\r\n inSampleSize *= 2;\r\n }\r\n }\r\n\r\n /* Decode actual bitmap. */\r\n\r\n BitmapFactory.Options options = new BitmapFactory.Options();\r\n options.inJustDecodeBounds = false;\r\n options.inSampleSize = inSampleSize;\r\n\r\n return BitmapFactory.decodeByteArray(photo, 0, photo.length, options);\r\n }", "public static Bitmap decodeSampledBitmapFromUri(Uri uri, int reqWidth, int reqHeight) {\n \t\tBitmap bm = null;\n \n \t\t// First decode with inJustDecodeBounds=true to check dimensions\n \t\tfinal BitmapFactory.Options options = new BitmapFactory.Options();\n \t\toptions.inJustDecodeBounds = true;\n \t\tBitmapFactory.decodeFile(uri.getPath(), options);\n \n \t\t// Calculate inSampleSize\n \t\toptions.inSampleSize = Utilities.calculateInSampleSize(options, reqWidth, reqHeight);\n \n \t\t// Decode bitmap with inSampleSize set\n \t\toptions.inJustDecodeBounds = false;\n \t\tbm = BitmapFactory.decodeFile(uri.getPath(), options); \n \n \t\treturn bm; \n \t}", "public static Bitmap decodeSampledBitmapFromResource(String path,\n\t int reqWidth, int reqHeight) {\n\n\t // First decode with inJustDecodeBounds=true to check dimensions\n\t final BitmapFactory.Options options = new BitmapFactory.Options();\n\t options.inJustDecodeBounds = true;\n\t //BitmapFactory.decodeResource(res, resId, options);\n\t BitmapFactory.decodeFile(path, options); \n\n\t // Calculate inSampleSize\n\t options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n\t // Decode bitmap with inSampleSize set\n\t options.inJustDecodeBounds = false;\n\t //return BitmapFactory.decodeResource(res, resId, options);\n\t return BitmapFactory.decodeFile(path, options);\n\t}", "public static Bitmap decodeSampledBitmapFromFile(String filename, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(filename, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFile(filename, options);\n }", "public Bitmap decodeSampledBitmapFromUri(Uri uri, int reqWidth, int reqHeight) throws IOException {\n\n // First decode with inJustDecodeBounds=true to obtain dimensions\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n InputStream inputStream = getBaseContext().getContentResolver().openInputStream(uri);\n BitmapFactory.decodeStream(inputStream, null, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n // \"rewind\" InputStream\n assert inputStream != null;\n inputStream.close();\n inputStream = getBaseContext().getContentResolver().openInputStream(uri);\n\n Bitmap bm = BitmapFactory.decodeStream(inputStream, null, options);\n assert inputStream != null;\n inputStream.close();\n return bm;\n }", "public static Bitmap decodeSampledBitmapFromResource(String path, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(path, options);\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFile(path, options);\n }", "public static Bitmap decodeSampledBitmap(String filePath, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(filePath, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n Bitmap scaled = BitmapFactory.decodeFile(filePath, options);\n return scaled;\n }", "public static Bitmap decodeSampledBitmapFromResource(String path,\n int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(path, options);\n\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFile(path, options);\n }", "private static Bitmap decodeSampledBitmapFromResource(File f,\n int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(f.getAbsolutePath(), options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFile(f.getAbsolutePath(), options);\n }", "private static Bitmap decodeSampledBitmapFromDescriptor(\n\t\t\tFileDescriptor fileDescriptor, int reqWidth, int reqHeight,\n\t\t\tCxBaseDiskCache cache) {\n\t\tfinal BitmapFactory.Options options = new BitmapFactory.Options();\n\t\toptions.inJustDecodeBounds = true;\n\t\tBitmapFactory.decodeFileDescriptor(fileDescriptor, null, options);\n\n\t\t// Calculate inSampleSize\n\t\toptions.inSampleSize = calculateInSampleSize(options, reqWidth,\n\t\t\t\treqHeight);\n\n\t\t// Decode bitmap with inSampleSize set\n\t\toptions.inJustDecodeBounds = false;\n\n\t\t// If we're running on Honeycomb or newer, try to use inBitmap\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n\t\t\taddInBitmapOptions(options, cache);\n\t\t}\n\n\t\ttry {\n\t\t\treturn BitmapFactory\n\t\t\t\t\t.decodeFileDescriptor(fileDescriptor, null, options);\n\t\t} catch (Exception e) {\n\t\t\tCxLog.i(\"decode image\", \"\"+e.toString());\n\t\t\treturn null;\n\t\t}\n\t}", "static Bitmap decodeSampledBitmapFromPath(String path, int reqWidth, int reqHeight) {\n // First decode with inJustDecodeBounds=true to check dimensions\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(path, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeFile(path, options);\n }", "private static Bitmap readImageWithSampling(String imagePath, int targetWidth, int targetHeight,\n Bitmap.Config bmConfig) {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(imagePath, bmOptions);\n\n int photoWidth = bmOptions.outWidth;\n int photoHeight = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoWidth / targetWidth, photoHeight / targetHeight);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inPreferredConfig = bmConfig;\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n bmOptions.inDither = false;\n\n Bitmap orgImage = BitmapFactory.decodeFile(imagePath, bmOptions);\n\n return orgImage;\n\n }", "protected Bitmap decodeUri(Uri selectedImage, int REQUIRED_SIZE) {\n\n try {\n\n // Decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(getContentResolver().openInputStream(selectedImage), null, o);\n\n // The new size we want to scale to\n // final int REQUIRED_SIZE = size;\n\n // Find the correct scale value. It should be the power of 2.\n int width_tmp = o.outWidth, height_tmp = o.outHeight;\n int scale = 1;\n while (true) {\n if (width_tmp / 2 < REQUIRED_SIZE\n || height_tmp / 2 < REQUIRED_SIZE) {\n break;\n }\n width_tmp /= 2;\n height_tmp /= 2;\n scale *= 2;\n }\n\n // Decode with inSampleSize\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inSampleSize = scale;\n return BitmapFactory.decodeStream(getContentResolver().openInputStream(selectedImage), null, o2);\n }\n catch (Exception e){\n e.printStackTrace();\n }\n return null;\n }", "public static Bitmap decodeBitmapSize(Bitmap bm, int IMAGE_BIGGER_SIDE_SIZE) {\n Bitmap b = null;\r\n\r\n\r\n //convert Bitmap to byte[]\r\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\r\n bm.compress(Bitmap.CompressFormat.JPEG, 100, stream);\r\n byte[] byteArray = stream.toByteArray();\r\n\r\n //We need to know image width and height, \r\n //for it we create BitmapFactory.Options object and do BitmapFactory.decodeByteArray\r\n //inJustDecodeBounds = true - means that we do not need load Bitmap to memory\r\n //but we need just know width and height of it\r\n BitmapFactory.Options opt = new BitmapFactory.Options();\r\n opt.inJustDecodeBounds = true;\r\n BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt);\r\n int CurrentWidth = opt.outWidth;\r\n int CurrentHeight = opt.outHeight;\r\n\r\n\r\n //there is function that can quick scale images\r\n //but we need to give in scale parameter, and scale - it is power of 2\r\n //for example 0,1,2,4,8,16...\r\n //what scale we need? for example our image 1000x1000 and we want it will be 100x100\r\n //we need scale image as match as possible but should leave it more then required size\r\n //in our case scale=8, we receive image 1000/8 = 125 so 125x125, \r\n //scale = 16 is incorrect in our case, because we receive 1000/16 = 63 so 63x63 image \r\n //and it is less then 100X100\r\n //this block of code calculate scale(we can do it another way, but this way it more clear to read)\r\n int scale = 1;\r\n int PowerOf2 = 0;\r\n int ResW = CurrentWidth;\r\n int ResH = CurrentHeight;\r\n if (ResW > IMAGE_BIGGER_SIDE_SIZE || ResH > IMAGE_BIGGER_SIDE_SIZE) {\r\n while (1 == 1) {\r\n PowerOf2++;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n if (Math.max(ResW, ResH) < IMAGE_BIGGER_SIDE_SIZE) {\r\n PowerOf2--;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n break;\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n //Decode our image using scale that we calculated\r\n BitmapFactory.Options opt2 = new BitmapFactory.Options();\r\n opt2.inSampleSize = scale;\r\n //opt2.inScaled = false;\r\n b = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt2);\r\n\r\n\r\n //calculating new width and height\r\n int w = b.getWidth();\r\n int h = b.getHeight();\r\n if (w >= h) {\r\n w = IMAGE_BIGGER_SIDE_SIZE;\r\n h = (int) ((double) b.getHeight() * ((double) w / b.getWidth()));\r\n } else {\r\n h = IMAGE_BIGGER_SIDE_SIZE;\r\n w = (int) ((double) b.getWidth() * ((double) h / b.getHeight()));\r\n }\r\n\r\n\r\n //if we lucky and image already has correct sizes after quick scaling - return result\r\n if (opt2.outHeight == h && opt2.outWidth == w) {\r\n return b;\r\n }\r\n\r\n\r\n //we scaled our image as match as possible using quick method\r\n //and now we need to scale image to exactly size\r\n b = Bitmap.createScaledBitmap(b, w, h, true);\r\n\r\n\r\n return b;\r\n }", "public static byte[] getResizedImageData(byte[] image, int width,\n\t\t\tint height, int widthLimit, int heightLimit, int byteLimit) {\n\t\tif (image == null) {\n\t\t\treturn null;\n\t\t}\n\t\t// int width = WIDTH;\n\t\t// int height = HEIGHT;\n\n\t\t// int widthLimit = WIDTH_LIMIT;\n\t\t// int heightLimit = HEIGHT_LIMIT;\n\n\t\t// int byteLimit = byteLimit;\n\n\t\tint outWidth = width;\n\t\tint outHeight = height;\n\n\t\tfloat scaleFactor = 1.F;\n\t\twhile ((outWidth * scaleFactor > widthLimit)\n\t\t\t\t|| (outHeight * scaleFactor > heightLimit)) {\n\t\t\tscaleFactor *= .75F;\n\t\t}\n\n\t\t// if (Log.isLoggable(LogTag.APP, Log.VERBOSE)) {\n\t\t// Log.v(TAG, \"getResizedBitmap: wlimit=\" + widthLimit +\n\t\t// \", hlimit=\" + heightLimit + \", sizeLimit=\" + byteLimit +\n\t\t// \", width=\" + width + \", height=\" + height +\n\t\t// \", initialScaleFactor=\" + scaleFactor +\n\t\t// \", uri=\" + uri);\n\t\t// }\n\n\t\tInputStream input = null;\n\t\ttry {\n\t\t\tByteArrayOutputStream os = null;\n\t\t\tint attempts = 1;\n\t\t\tint sampleSize = 1;\n\t\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\t\t\tint quality = IMAGE_COMPRESSION_QUALITY;\n\t\t\tBitmap b = null;\n\n\t\t\t// In this loop, attempt to decode the stream with the best possible\n\t\t\t// subsampling (we\n\t\t\t// start with 1, which means no subsampling - get the original\n\t\t\t// content) without running\n\t\t\t// out of memory.\n\t\t\tdo {\n\t\t\t\tinput = new ByteArrayInputStream(image);\n\t\t\t\toptions.inSampleSize = sampleSize;\n\t\t\t\ttry {\n\t\t\t\t\tb = BitmapFactory.decodeStream(input, null, options);\n\t\t\t\t\tif (b == null) {\n\t\t\t\t\t\treturn null; // Couldn't decode and it wasn't because of\n\t\t\t\t\t\t\t\t\t\t// an exception,\n\t\t\t\t\t\t\t\t\t\t// bail.\n\t\t\t\t\t}\n\t\t\t\t} catch (OutOfMemoryError e) {\n\t\t\t\t\t// Log.w(TAG,\n\t\t\t\t\t// \"getResizedBitmap: img too large to decode (OutOfMemoryError), \"\n\t\t\t\t\t// +\n\t\t\t\t\t// \"may try with larger sampleSize. Curr sampleSize=\" +\n\t\t\t\t\t// sampleSize);\n\t\t\t\t\tsampleSize *= 2; // works best as a power of two\n\t\t\t\t\tattempts++;\n\t\t\t\t\tcontinue;\n\t\t\t\t} finally {\n\t\t\t\t\tif (input != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinput.close();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// Log.e(TAG, e.getMessage(), e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} while (b == null && attempts < NUMBER_OF_RESIZE_ATTEMPTS);\n\n\t\t\tif (b == null) {\n\t\t\t\t// if (Log.isLoggable(LogTag.APP, Log.VERBOSE)\n\t\t\t\t// && attempts >= NUMBER_OF_RESIZE_ATTEMPTS) {\n\t\t\t\t// Log.v(TAG,\n\t\t\t\t// \"getResizedImageData: gave up after too many attempts to resize\");\n\t\t\t\t// }\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tboolean resultTooBig = true;\n\t\t\tattempts = 1; // reset count for second loop\n\t\t\t// In this loop, we attempt to compress/resize the content to fit\n\t\t\t// the given dimension\n\t\t\t// and file-size limits.\n\t\t\tdo {\n\t\t\t\ttry {\n\t\t\t\t\tif (options.outWidth > widthLimit\n\t\t\t\t\t\t\t|| options.outHeight > heightLimit\n\t\t\t\t\t\t\t|| (os != null && os.size() > byteLimit)) {\n\t\t\t\t\t\t// The decoder does not support the inSampleSize option.\n\t\t\t\t\t\t// Scale the bitmap using Bitmap library.\n\t\t\t\t\t\tint scaledWidth = (int) (outWidth * scaleFactor);\n\t\t\t\t\t\tint scaledHeight = (int) (outHeight * scaleFactor);\n\n\t\t\t\t\t\t// if (Log.isLoggable(LogTag.APP, Log.VERBOSE)) {\n\t\t\t\t\t\t// Log.v(TAG,\n\t\t\t\t\t\t// \"getResizedImageData: retry scaling using \" +\n\t\t\t\t\t\t// \"Bitmap.createScaledBitmap: w=\" + scaledWidth +\n\t\t\t\t\t\t// \", h=\" + scaledHeight);\n\t\t\t\t\t\t// }\n\n\t\t\t\t\t\tb = Bitmap.createScaledBitmap(b, scaledWidth,\n\t\t\t\t\t\t\t\tscaledHeight, false);\n\t\t\t\t\t\tif (b == null) {\n\t\t\t\t\t\t\t// if (Log.isLoggable(LogTag.APP, Log.VERBOSE)) {\n\t\t\t\t\t\t\t// Log.v(TAG,\n\t\t\t\t\t\t\t// \"Bitmap.createScaledBitmap returned NULL!\");\n\t\t\t\t\t\t\t// }\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Compress the image into a JPG. Start with\n\t\t\t\t\t// IMAGE_COMPRESSION_QUALITY.\n\t\t\t\t\t// In case that the image byte size is still too large\n\t\t\t\t\t// reduce the quality in\n\t\t\t\t\t// proportion to the desired byte size.\n\t\t\t\t\tos = new ByteArrayOutputStream();\n\t\t\t\t\tb.compress(CompressFormat.JPEG, quality, os);\n\t\t\t\t\tint jpgFileSize = os.size();\n\t\t\t\t\tif (jpgFileSize > byteLimit) {\n\t\t\t\t\t\tquality = (quality * byteLimit) / jpgFileSize; // watch\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// int\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// division!\n\t\t\t\t\t\tif (quality < MINIMUM_IMAGE_COMPRESSION_QUALITY) {\n\t\t\t\t\t\t\tquality = MINIMUM_IMAGE_COMPRESSION_QUALITY;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// if (Log.isLoggable(LogTag.APP, Log.VERBOSE)) {\n\t\t\t\t\t\t// Log.v(TAG,\n\t\t\t\t\t\t// \"getResizedImageData: compress(2) w/ quality=\" +\n\t\t\t\t\t\t// quality);\n\t\t\t\t\t\t// }\n\n\t\t\t\t\t\tos = new ByteArrayOutputStream();\n\t\t\t\t\t\tb.compress(CompressFormat.JPEG, quality, os);\n\t\t\t\t\t}\n\t\t\t\t} catch (java.lang.OutOfMemoryError e) {\n\t\t\t\t\t// Log.w(TAG,\n\t\t\t\t\t// \"getResizedImageData - image too big (OutOfMemoryError), will try \"\n\t\t\t\t\t// + \" with smaller scale factor, cur scale factor: \" +\n\t\t\t\t\t// scaleFactor);\n\t\t\t\t\t// fall through and keep trying with a smaller scale factor.\n\t\t\t\t}\n\t\t\t\t// if (Log.isLoggable(LogTag.APP, Log.VERBOSE)) {\n\t\t\t\t// Log.v(TAG, \"attempt=\" + attempts\n\t\t\t\t// + \" size=\" + (os == null ? 0 : os.size())\n\t\t\t\t// + \" width=\" + outWidth * scaleFactor\n\t\t\t\t// + \" height=\" + outHeight * scaleFactor\n\t\t\t\t// + \" scaleFactor=\" + scaleFactor\n\t\t\t\t// + \" quality=\" + quality);\n\t\t\t\t// }\n\t\t\t\tscaleFactor *= .75F;\n\t\t\t\tattempts++;\n\t\t\t\tresultTooBig = os == null || os.size() > byteLimit;\n\t\t\t} while (resultTooBig && attempts < NUMBER_OF_RESIZE_ATTEMPTS);\n\t\t\tb.recycle(); // done with the bitmap, release the memory\n\t\t\t// if (Log.isLoggable(LogTag.APP, Log.VERBOSE) && resultTooBig) {\n\t\t\t// Log.v(TAG,\n\t\t\t// \"getResizedImageData returning NULL because the result is too big: \"\n\t\t\t// +\n\t\t\t// \" requested max: \" + byteLimit + \" actual: \" + os.size());\n\t\t\t// }\n\n\t\t\treturn resultTooBig ? null : os.toByteArray();\n\t\t} catch (java.lang.OutOfMemoryError e) {\n\t\t\t// Log.e(TAG, e.getMessage(), e);\n\t\t\treturn null;\n\t\t}\n\t}", "public Bitmap decodeBitmapFromStringpath(String filePath, int reqWidth, int reqHeight){\n\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\t\toptions.inJustDecodeBounds = true;\n\t\t// to get options.outwidth... these are just dimensions of bitmap\n\t\tBitmapFactory.decodeFile(filePath, options);\n\t\t\n\t\t//Calculate inSampleSize\n\t\toptions.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\t\toptions.inJustDecodeBounds = false; // means return BITMAP!!!\t\t\t\n\t\treturn BitmapFactory.decodeFile(filePath, options);\n\t}", "public static Bitmap createBitmap (String filePath, int width, int height) throws IOException\r\n {\r\n /* Determine the raw bitmap dimensions. */\r\n int outWidth;\r\n int outHeight;\r\n {\r\n BitmapFactory.Options options = new BitmapFactory.Options();\r\n options.inJustDecodeBounds = true;\r\n BitmapFactory.decodeFile(filePath, options);\r\n\r\n outWidth = options.outWidth;\r\n outHeight = options.outHeight;\r\n }\r\n\r\n /* Evaluate possible sample size. */\r\n int inSampleSize = 1;\r\n if ( outWidth > height\r\n || outHeight > width)\r\n {\r\n final int halfHeight = outWidth / 2;\r\n final int halfWidth = outHeight / 2;\r\n\r\n /* Calculate the largest inSampleSize value that is a power of 2 and keeps both height and\r\n * width larger than the requested height and width.\r\n */\r\n while ( (halfHeight / inSampleSize) > height\r\n && (halfWidth / inSampleSize) > width)\r\n {\r\n inSampleSize *= 2;\r\n }\r\n }\r\n\r\n /* Decode actual bitmap. */\r\n\r\n BitmapFactory.Options options = new BitmapFactory.Options();\r\n options.inJustDecodeBounds = false;\r\n options.inSampleSize = inSampleSize;\r\n\r\n Bitmap bitmap = BitmapFactory.decodeFile(filePath, options);\r\n\r\n /* Evaluate if we need to rotate the bitmap and replace the old bitmap. */\r\n bitmap = fixImageRotation(bitmap, filePath);\r\n\r\n return bitmap;\r\n }", "private void getBitmapSize(Uri uri) {\n InputStream is = null;\n try {\n\n is = getInputStream(uri);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(is, null, options);\n\n width = options.outWidth;\n height = options.outHeight;\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException ignored) {\n }\n }\n }\n }", "public static Bitmap decodeBitmapFromFile(String filename, int reqWidth, int reqHeight, boolean isCapturedFile) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(filename, options);\n\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n Bitmap resultBitmap = null;\n resultBitmap = BitmapFactory.decodeFile(filename, options);\n\n return resultBitmap;\n }", "@SuppressLint(\"NewApi\")\n public static Bitmap decodeBitmap(final File file, final int reqWidth, \n final int reqHeight) {\n\n // Serialize all decode on a global lock to reduce concurrent heap usage.\n synchronized (DECODE_LOCK) {\n\n // Check if the file doesn't exist or has no content\n if(!file.exists() || file.exists() && file.length()==0 ){\n return null;\n }\n\n // Load a scaled version of the bitmap\n Options opts = null;\n opts = getOptions(file,reqWidth,reqHeight);\n\n // Set a few additional options for the bitmap opts\n opts.inPurgeable = true;\n opts.inInputShareable = true;\n opts.inDither = true;\n\n // Grab the bitmap\n Bitmap bitmap = BitmapFactory.decodeFile(file.getPath(), opts);\n\n // If on JellyBean attempt to draw with mipmaps enabled\n if(bitmap!=null && \n Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1){\n bitmap.setHasMipMap(true);\n }\n\n // return the decoded bitmap\n return bitmap;\n }\n }", "private Bitmap decodeFileFromPath(String path) {\n Uri uri = getImageUri(path);\n InputStream in = null;\n try {\n in = getContentResolver().openInputStream(uri);\n\n //Decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n\n BitmapFactory.decodeStream(in, null, o);\n in.close();\n\n int scale = 1;\n int inSampleSize = 1024;\n if (o.outHeight > inSampleSize || o.outWidth > inSampleSize) {\n scale = (int) Math.pow(2, (int) Math.round(Math.log(inSampleSize / (double) Math.max(o.outHeight, o.outWidth)) / Math.log(0.5)));\n }\n\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inSampleSize = scale;\n in = getContentResolver().openInputStream(uri);\n // Bitmap b = BitmapFactory.decodeStream(in, null, o2);\n int MAXCAP_SIZE = 512;\n Bitmap b = getResizedBitmap(BitmapFactory.decodeStream(in, null, o2), MAXCAP_SIZE);\n in.close();\n\n return b;\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "private Bitmap decodeFile(File f){\n try {\n //decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n FileInputStream stream1=new FileInputStream(f);\n BitmapFactory.decodeStream(stream1,null,o);\n stream1.close();\n \n //Find the correct scale value. It should be the power of 2.\n final int REQUIRED_SIZE=70;\n int width_tmp=o.outWidth, height_tmp=o.outHeight;\n int scale=1;\n while(true){\n if(width_tmp/2<REQUIRED_SIZE || height_tmp/2<REQUIRED_SIZE)\n break;\n width_tmp/=2;\n height_tmp/=2;\n scale*=2;\n }\n \n //decode with inSampleSize\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inSampleSize=scale;\n FileInputStream stream2=new FileInputStream(f);\n Bitmap bitmap=BitmapFactory.decodeStream(stream2, null, o2);\n stream2.close();\n return bitmap;\n } catch (FileNotFoundException e) {\n } \n catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public MyBmpInfo getThumbnail(Uri uri) {\n int w = 1280;\n int h = 960;\n double TARGETTED_WIDTH = 1920.0;\n\n try {\n InputStream input = this.getContentResolver().openInputStream(uri);\n\n BitmapFactory.Options onlyBoundsOptions = new BitmapFactory.Options();\n onlyBoundsOptions.inJustDecodeBounds = true;\n onlyBoundsOptions.inDither = true;//optional\n onlyBoundsOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;//optional\n BitmapFactory.decodeStream(input, null, onlyBoundsOptions);\n input.close();\n\n if ((onlyBoundsOptions.outWidth == -1) || (onlyBoundsOptions.outHeight == -1)) {\n return null;\n }\n\n int originalWidth = onlyBoundsOptions.outWidth;\n\n double ratio = 1.0;\n if (originalWidth > TARGETTED_WIDTH){\n\n /*\n * Ratio Sample Size:\n * if 1 , means bitmap is exactly stay as orginal.\n * if 2 or above, means 1/2 or smaller from the ori image.*/\n ratio = originalWidth / TARGETTED_WIDTH;\n }\n\n BitmapFactory.Options bitmapOptions = new BitmapFactory.Options();\n bitmapOptions.inSampleSize = (int)Math.round(ratio);\n\n Log.d(\"bitmap scaled info\", \"ratio = \"+ratio+\" , poweredRatio = \"+bitmapOptions.inSampleSize+\", originalWidth = \"+originalWidth+\" , TARGETTED_WIDTH = \"+TARGETTED_WIDTH);\n\n bitmapOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;//\n input = this.getContentResolver().openInputStream(uri);\n Bitmap bitmap = BitmapFactory.decodeStream(input, null, bitmapOptions);\n// bitmap.compress(Bitmap.CompressFormat.JPEG, 100, )\n input.close();\n Log.d(\"elliot\", \"bitmap before resize: SIZE = \" + bitmap.getWidth() + \" x \" + bitmap.getHeight());\n if (bitmap.getWidth() < w || bitmap.getHeight() < h) {\n return new MyBmpInfo(bitmap, \"Image is too small\", true);\n } else {\n return new MyBmpInfo(Bitmap.createScaledBitmap(bitmap, w, h, true), \"\", false);\n }\n\n } catch (Exception e) {\n return null;\n }\n }", "public Bitmap decodeSampledBitmapFromResource(int resID, int reqWidth, int reqHeight) {\n\n\t final BitmapFactory.Options options = new BitmapFactory.Options();\n\t options.inJustDecodeBounds = true;\n\t options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\t options.inJustDecodeBounds = false;\n\t options.inPurgeable = true;\n\t\n\t return BitmapFactory.decodeResource(getBaseContext().getResources(), resID, options);\n }", "public static Bitmap getBitmap(String imagePath, int w, int h) {\n\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(imagePath, bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n int scaleFactor = Math.max(photoW/w, photoH/h);\n\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n return BitmapFactory.decodeFile(imagePath, bmOptions);\n }", "public Bitmap getResizedBitmap(Bitmap image, int maxSize) {\n int width = image.getWidth();\n int height = image.getHeight();\n\n float bitmapRatio = (float) width / (float) height;\n if (bitmapRatio > 0) {\n width = maxSize;\n height = (int) (width / bitmapRatio);\n } else {\n height = maxSize;\n width = (int) (height * bitmapRatio);\n }\n return Bitmap.createScaledBitmap(image, width, height, true);\n }", "public Bitmap decodeSampledBitmapFromResource(String path, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = false;\n\n AssetManager assetManager = context.getAssets();\n\n InputStream istr = null;\n try {\n istr = assetManager.open(path);\n } catch (IOException e) {\n e.printStackTrace();\n }\n Bitmap bitmap = BitmapFactory.decodeStream(istr, null, options);\n /*options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n\n bitmap = BitmapFactory.decodeStream(istr, null, options); */\n return bitmap;\n }", "public Bitmap getBitmap(int targetW, int targetH, String filename) {\r\n\r\n\t\tif(!isReady) prepare();\r\n\t\tif(!isReady) {\r\n\t\t\tLog.e(TAG, \"External storage is not usable\");\r\n\t\t}\r\n\t\tFile fCurrentPhotoPath = new File(directory,filename);\r\n\t\tString mCurrentPhotoPath = fCurrentPhotoPath.getAbsolutePath();\r\n\t\t/* There isn't enough memory to open up more than a couple camera photos */\r\n\t\t/* So pre-scale the target bitmap into which the file is decoded */\r\n\r\n\t\t/* Get the size of the image */\r\n\t\tBitmapFactory.Options bmOptions = new BitmapFactory.Options();\r\n\t\tbmOptions.inJustDecodeBounds = true;\r\n\t\tBitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\r\n\t\tint photoW = bmOptions.outWidth;\r\n\t\tint photoH = bmOptions.outHeight;\r\n\t\t\r\n\t\t/* Figure out which way needs to be reduced less */\r\n\t\tint scaleFactor = 1;\r\n\t\tif ((targetW > 0) || (targetH > 0)) {\r\n\t\t\tscaleFactor = Math.min(photoW/targetW, photoH/targetH);\t\r\n\t\t}\r\n\r\n\t\t/* Set bitmap options to scale the image decode target */\r\n\t\tbmOptions.inJustDecodeBounds = false;\r\n\t\tbmOptions.inSampleSize = scaleFactor;\r\n\t\tbmOptions.inPurgeable = true;\r\n\r\n\t\t/* Decode the JPEG file into a Bitmap */\r\n\t\tBitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\r\n\t\treturn bitmap;\r\n\t\t\r\n\t}", "public static Bitmap decodeSampledBitmapFromResource(byte[] data, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n //options.inPurgeable = true;\n BitmapFactory.decodeByteArray(data, 0, data.length, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeByteArray(data, 0, data.length, options);\n }", "public static Bitmap decodeFile(File f, int WIDTH, int HIGHT) {\n try {\n //Decode image size\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(new FileInputStream(f), null, o);\n\n //The new size we want to scale to\n final int REQUIRED_WIDTH = WIDTH;\n final int REQUIRED_HIGHT = HIGHT;\n //Find the correct scale value. It should be the power of 2.\n int scale = 1;\n while (o.outWidth / scale / 2 >= REQUIRED_WIDTH && o.outHeight / scale / 2 >= REQUIRED_HIGHT)\n scale *= 2;\n\n //Decode with inSampleSize\n BitmapFactory.Options o2 = new BitmapFactory.Options();\n o2.inSampleSize = scale;\n return BitmapFactory.decodeStream(new FileInputStream(f), null, o2);\n } catch (FileNotFoundException e) {\n }\n return null;\n }", "public static Bitmap m8221a(InputStream inputStream) {\n try {\n Bitmap a = C2995v.f8235a.m8223a(inputStream);\n return a;\n } finally {\n inputStream.close();\n }\n }", "public interface IBitmapFactory {\n public Bitmap decodeResource(Resources resources, int resId);\n public Bitmap createBitmap(int width, int height, Bitmap.Config config);\n}", "@SuppressWarnings(\"unused\")\n\tprivate Bitmap decodeSampledBitmapFromResource(Resources res, int resId,\n\t int reqWidth, int reqHeight) {\n\t final BitmapFactory.Options options = new BitmapFactory.Options();\n\t options.inJustDecodeBounds = true;\n\t BitmapFactory.decodeResource(res, resId, options);\n\n\t // Calculate inSampleSize\n\t options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n\t // Decode bitmap with inSampleSize set\n\t options.inJustDecodeBounds = false;\n\t return BitmapFactory.decodeResource(res, resId, options);\n\t}", "public static Bitmap getBitmap(Context mContext, int resId, int width,\n\t\t\tint height) throws OutOfMemoryError {\n\t\tif (mContext == null)\n\t\t\treturn null;\n\t\tBitmapFactory.Options options = new BitmapFactory.Options();\n\t\toptions.inJustDecodeBounds = true;\n\n\t\tBitmapFactory.decodeResource(mContext.getResources(), resId, options);\n\t\toptions.inSampleSize = CommonLib.calculateInSampleSize(options, width,\n\t\t\t\theight);\n\t\toptions.inJustDecodeBounds = false;\n\t\toptions.inPreferredConfig = Bitmap.Config.RGB_565;\n\n\t\tif (!CommonLib.isAndroidL())\n\t\t\toptions.inPurgeable = true;\n\n\t\tBitmap bitmap = BitmapFactory.decodeResource(mContext.getResources(),\n\t\t\t\tresId, options);\n\n\t\treturn bitmap;\n\t}", "public static Bitmap decodeSampledBitmapFromFile(String filename,\n\t\t\tint reqWidth, int reqHeight, CxBaseDiskCache cache) {\n\n\t\t// First decode with inJustDecodeBounds=true to check dimensions\n\t\tfinal BitmapFactory.Options options = new BitmapFactory.Options();\n\t\toptions.inJustDecodeBounds = true;\n\t\tBitmapFactory.decodeFile(filename, options);\n\n\t\t// Calculate inSampleSize\n\t\toptions.inSampleSize = calculateInSampleSize(options, reqWidth,\n\t\t\t\treqHeight);\n\n\t\t// If we're running on Honeycomb or newer, try to use inBitmap\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n\t\t\taddInBitmapOptions(options, cache);\n\t\t}\n\n\t\t// Decode bitmap with inSampleSize set\n\t\toptions.inJustDecodeBounds = false;\n\t\treturn BitmapFactory.decodeFile(filename, options);\n\t}", "public Bitmap getBitmapFromURL(String src) {\n try {\n\n java.net.URL url = new java.net.URL(src);\n HttpURLConnection connection = (HttpURLConnection) url\n .openConnection();\n connection.setDoInput(true);\n connection.connect();\n InputStream input = connection.getInputStream();\n Bitmap myBitmap = BitmapFactory.decodeStream(input);\n\n return myBitmap;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "static Bitmap decodeStream(InputStream p1, Request p2) throws IOException {\n }", "public static Bitmap bitmapDecodeBase64(String input) {\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory\n .decodeByteArray(decodedByte, 0, decodedByte.length);\n }", "static Bitmap decodeSampledBitmapFromResource(Resources res, int resId, int reqWidth, int reqHeight) {\n // First decode with inJustDecodeBounds=true to check dimensions\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "public static Bitmap getCompressedBitmap(String filePath, double size) {\n Bitmap bitmap = null;\n boolean outofmemory = true;\n BitmapFactory.Options options = new BitmapFactory.Options();\n int inSampleSize = 0;\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n\n while (outofmemory) {\n try {\n options.inSampleSize = ++inSampleSize;\n output.reset();\n bitmap = BitmapFactory.decodeFile(filePath, options);\n if (size > 0) {\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, output);\n if (output.toByteArray().length > 102400 * size) {\n outofmemory = true;\n bitmap.recycle();\n bitmap = null;\n continue;\n }\n }\n outofmemory = false;\n } catch (Exception e) {\n e.printStackTrace();\n bitmap = null;\n outofmemory = false;\n } catch (OutOfMemoryError err) {\n outofmemory = true;\n try {\n bitmap.recycle();\n } catch (Exception e) {\n }\n System.gc();\n }\n }\n\n return bitmap;\n }", "public Bitmap makeBitmap(Resources res, int resId, int reqWidth) {\n // First decode with inJustDecodeBounds=true to check dimensions\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize.\n options.inSampleSize = calculateInSampleSize(options, reqWidth);\n\n // Decode bitmap with inSampleSize set.\n options.inJustDecodeBounds = false;\n\n // Decode bitmap.\n return BitmapFactory.decodeResource(res, resId, options);\n }", "public static boolean rescale(InputStream input, OutputStream output,int maxX,int maxY) throws IOException\n {\n try(ImageInputStream iis = ImageIO.createImageInputStream(input))\n {\n if(iis == null) return false;\n \n Iterator<ImageReader> it = ImageIO.getImageReaders(iis);\n if(!it.hasNext()) return false;\n ImageReader reader = it.next();\n reader.setInput(iis);\n \n String format = reader.getFormatName();\n BufferedImage img = reader.read(0);\n if(img == null) return false;\n \n int scaleX = img.getWidth();\n int scaleY = img.getHeight();\n if(scaleX>maxX)\n {\n scaleY = (int)(((float)scaleY/scaleX)*maxX);\n scaleX = maxX;\n }\n if(scaleY>maxY)\n {\n scaleX = (int)(((float)scaleX/scaleY)*maxY);\n scaleY = maxY;\n }\n Image newImg = img.getScaledInstance(scaleX, scaleY, Image.SCALE_SMOOTH);\n \n return ImageIO.write(imageToBufferedImage(newImg), format, output);\n }\n finally\n {\n input.close();\n }\n }", "public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId,\r\n\t int reqWidth, int reqHeight) {\n\t final BitmapFactory.Options options = new BitmapFactory.Options();\r\n\t options.inJustDecodeBounds = true;\r\n\t BitmapFactory.decodeResource(res, resId, options);\r\n\r\n\t // Calculate inSampleSize\r\n\t options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\r\n\r\n\t // Decode bitmap with inSampleSize set\r\n\t options.inJustDecodeBounds = false;\r\n\t return BitmapFactory.decodeResource(res, resId, options);\r\n\t}", "public static Bitmap decodeFile(String path, int inSimpleSize) {\n Options options = new Options();\n options.inSampleSize = inSimpleSize;\n options.inJustDecodeBounds = false;\n // if (config != null)\n options.inPreferredConfig = Config.RGB_565;// Bitmap.Config.ARGB_4444;\n options.inPurgeable = true;\n options.inInputShareable = true;\n return BitmapFactory.decodeFile(path, options);\n }", "public static Bitmap createScaledBitmap(Uri imageUri, int width, int height, Context context) {\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(context.getContentResolver(),\n imageUri);\n return bitmap.createScaledBitmap(bitmap, width, height, true);\n } catch (IOException e) {\n Log.e(TAG, e.toString());\n }\n return null;\n }", "public Bitmap getBitmapFromURL(String src){\n try{\n URL url = new URL(src);\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setDoInput(true);\n connection.connect();\n InputStream input = connection.getInputStream();\n Bitmap bitmap = BitmapFactory.decodeStream(input);\n return bitmap;\n }catch(IOException e){\n e.printStackTrace();\n return null;\n }\n }", "public static Bitmap decodeSampledBitmapFromResource(File file, int resId,\n int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n //BitmapFactory.decodeResource(res, resId, options);\n Bitmap bitmap = null;\n try {\n BitmapFactory.decodeStream(new FileInputStream(file), null, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n //return BitmapFactory.decodeResource(res, resId, options);\n bitmap = BitmapFactory.decodeStream(new FileInputStream(file),null,options);\n }catch (FileNotFoundException fileNotFound){\n Log.e(\"Classroom fragment\", fileNotFound.getMessage());\n }\n return bitmap;\n }", "public static Image returnImage (InputStream in){\n InputStream stream = in;\n return new Image(stream);\n }", "private Bitmap scaleBitmapDown(Bitmap bitmap, int maxDimension) {\n\n int originalWidth = bitmap.getWidth();\n int originalHeight = bitmap.getHeight();\n int resizedWidth = maxDimension;\n int resizedHeight = maxDimension;\n\n if (originalHeight > originalWidth) {\n resizedHeight = maxDimension;\n resizedWidth = (int) (resizedHeight * (float) originalWidth / (float) originalHeight);\n } else if (originalWidth > originalHeight) {\n resizedWidth = maxDimension;\n resizedHeight = (int) (resizedWidth * (float) originalHeight / (float) originalWidth);\n } else if (originalHeight == originalWidth) {\n resizedHeight = maxDimension;\n resizedWidth = maxDimension;\n }\n return Bitmap.createScaledBitmap(bitmap, resizedWidth, resizedHeight, false);\n }", "public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId,\n int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n Bitmap temp = BitmapFactory.decodeResource(res, resId, options);\n Bitmap scaled = Bitmap.createScaledBitmap(temp, reqWidth, reqHeight, true);\n temp.recycle();\n return scaled;\n }", "public RereadableInputStream(InputStream inputStream, int maxBytesInMemory) {\n this(inputStream, maxBytesInMemory, true);\n }", "public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId,\n int reqWidth, int reqHeight) {\n\n // First decode with inJustDecodeBounds=true to check dimensions\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId,\n int reqWidth, int reqHeight) {\n\n // First decode with inJustDecodeBounds=true to check dimensions\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId,\n int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n // options.inSampleSize *= 1;\n // options.inSampleSize = 1;\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId,int reqWidth, int reqHeight) {\n\t\t\tfinal BitmapFactory.Options options = new BitmapFactory.Options();\n\t\t\toptions.inJustDecodeBounds = true;\n\t\t\tBitmapFactory.decodeResource(res, resId, options);\n\t\t\t\n\n\t // Calculate inSampleSize\n\t\t\toptions.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n\t // Decode bitmap with inSampleSize set\n\t\t\toptions.inJustDecodeBounds = false;\n\t\t\treturn BitmapFactory.decodeResource(res, resId, options);\n\t\t}", "public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId,\n int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId,\n int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId,\n int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId,\n int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "private Bitmap decodeResource(int id) {\n Bitmap bitmap = null;\n // Try to set inNativeAlloc flag.\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inPurgeable = true;\n try {\n Field field = BitmapFactory.Options.class.getField(\"inNativeAlloc\");\n field.setBoolean(options, true);\n inNative = true;\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n } catch (SecurityException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n // On newer Android I always get this exception. The field has probably been removed.\n e.printStackTrace();\n }\n\n // Try to load the bitmap,\n try {\n bitmap = BitmapFactory.decodeResource(resources, id, options);\n } catch (OutOfMemoryError e) {\n throw new MemoryEaterBiteFailedException(this, e);\n }\n return bitmap;\n }", "public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId, int reqWidth, int reqHeight) {\n\n // First decode with inJustDecodeBounds=true to check dimensions\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "private static Bitmap getThumbnailImage(Bitmap bm) {\n\n int width = bm.getWidth();\n int height = bm.getHeight();\n\n Bitmap resizedBitmap;\n Bitmap decoded;\n\n if (width > 250 || height > 250) {\n\n float aspectRatio;\n\n //image is too big, resize and compress to 80% quality\n if (width > height) {\n\n aspectRatio = (float) width / (float) height;\n width = 150;\n height = (int) (width / aspectRatio);\n\n } else {\n\n aspectRatio = (float) height / (float) width;\n height = 150;\n width = (int) (height / aspectRatio);\n\n }\n\n resizedBitmap = Bitmap.createScaledBitmap(bm, width, height, false);\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n resizedBitmap.compress(Bitmap.CompressFormat.JPEG, 80, bytes);\n decoded = BitmapFactory.decodeStream(new ByteArrayInputStream(bytes.toByteArray()));\n bm.recycle();\n resizedBitmap.recycle();\n\n } else {\n\n //image is small, just compress to 90% quality\n resizedBitmap = bm;\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n resizedBitmap.compress(Bitmap.CompressFormat.JPEG, 80, bytes);\n decoded = BitmapFactory.decodeStream(new ByteArrayInputStream(bytes.toByteArray()));\n bm.recycle();\n resizedBitmap.recycle();\n\n }\n\n return decoded;\n\n }", "public static Bitmap decodeSampledBitmapFromResource(Resources res,\n int resId, int reqWidth, int reqHeight) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeResource(res, resId, options);\n\n // Calculate inSampleSize\n options.inSampleSize = calculateInSampleSize(options, reqWidth,\n reqHeight);\n\n // Decode bitmap with inSampleSize set\n options.inJustDecodeBounds = false;\n return BitmapFactory.decodeResource(res, resId, options);\n }", "public static Bitmap decodeBitmap(final File file){\n return decodeBitmap(file, ImageManager.MAX_WIDTH, ImageManager.MAX_WIDTH);\n }", "private static Bitmap getImageResized(Context context, Uri imageUri) {\r\n if (context == null || imageUri == null) {\r\n return null;\r\n }\r\n\r\n Bitmap bitmap;\r\n int[] sampleSizes = new int[]{5, 3, 2, 1};\r\n int i = 0;\r\n do {\r\n bitmap = decodeBitmap(context, imageUri, sampleSizes[i]);\r\n Log.d(\"Resizer\", \"new bitmap width = \" + bitmap.getWidth());\r\n i++;\r\n } while (bitmap.getWidth() < DEFAULT_MIN_WIDTH_QUALITY && i < sampleSizes.length);\r\n\r\n return bitmap;\r\n }", "public static Bitmap readBitMap(Context context, int resId) {\n BitmapFactory.Options opt = new BitmapFactory.Options();\n opt.inPreferredConfig = Bitmap.Config.RGB_565;\n opt.inPurgeable = true;\n opt.inInputShareable = true;\n\n InputStream is = context.getResources().openRawResource(resId);\n return BitmapFactory.decodeStream(is, null, opt);\n }", "public BufferedImage create(URL source, Dimension maxSize) {\n\t\treturn create(new URLImageSource(source), maxSize);\n\t}", "public Bitmap getBitmapFromResource(int resourceId) {\n return BitmapFactory.decodeResource(getContext().getResources(), resourceId);\n }", "private void resizeBuffer(int size) {\n if (size > m_maxImgBufferSize) {\n if (size > MAX_IMG_SIZE_BYTES) {\n size = MAX_IMG_SIZE_BYTES;\n }\n\n m_maxImgBufferSize = size + 100;\n m_imgBuffer = new byte[m_maxImgBufferSize];\n m_baistream = new ByteArrayInputStream(m_imgBuffer);\n }\n }", "public static Bitmap decodeBase64(String input)\n {\n byte[] decodedBytes = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length);\n }", "public static Bitmap decodeBase64(String input) {\r\n byte[] decodedBytes = Base64.decode(input, 0);\r\n return BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length);\r\n }", "@Test public void inJustDecodeBoundsIfResizing() {\n final Request requiresResize = new Request.Builder(TestUtils.URI_1).resize(20, 15).build();\n final BitmapFactory.Options resizeOptions = createBitmapOptions(requiresResize);\n assertThat(resizeOptions).isNotNull();\n assertThat(resizeOptions.inJustDecodeBounds).isTrue();\n }", "public @NotNull Image newImage(@NotNull @Size(min = 1, max = 255) final String name,\r\n\t\t\t@NotNull final MimeType mimeType, @NotNull final InputStream inputStream) throws BazaarException;", "public Bitmap getBitmap(String imgPath) {\n // Get bitmap through image path\n BitmapFactory.Options newOpts = new BitmapFactory.Options();\n newOpts.inJustDecodeBounds = false;\n newOpts.inPurgeable = true;\n newOpts.inInputShareable = true;\n // Do not compress\n newOpts.inSampleSize = 1;\n newOpts.inPreferredConfig = Config.RGB_565;\n return BitmapFactory.decodeFile(imgPath, newOpts);\n }", "public static Bitmap decodeBase64(String input){\n byte[] decodedByte = Base64.decode(input, 0);\n return BitmapFactory.decodeByteArray(decodedByte,0,decodedByte.length);\n }", "@CheckForNull\n public static Bitmap getCameraBitmap(@NonNull Activity a, @NonNull Intent data, int maxWidth,\n int maxHeight, boolean respectOrientation) {\n Bitmap bm = null;\n try {\n File tmp = TMP_PHOTO; // assign to a local first to avoid a warning\n // of Findbugs\n if (tmp != null && tmp.exists()) {\n // Uri uri = ViewUtils.TMP_PHOTO_URI;\n // startPhotoRotate(a,uri);\n bm =\n createScaledBitmap(a.getContentResolver(), TMP_PHOTO_URI, maxWidth, maxHeight,\n respectOrientation);\n tmp.delete();\n TMP_PHOTO = null;\n TMP_PHOTO_URI = null;\n }\n } catch (Exception e) {\n w(\"Failed to get camera picture from TMP_PHOTO: \" + e);\n }\n try {\n\n if (bm == null) {\n bm = (Bitmap) data.getExtras().get(\"data\");\n if (bm == null) {\n bm = BitmapFactory.decodeStream(a.getContentResolver().openInputStream(data.getData()));\n }\n if (bm != null) {\n Bitmap tmp = createScaledBitmap(bm, maxWidth, maxHeight);\n if (tmp != bm)\n bm.recycle();\n bm = tmp;\n }\n }\n } catch (Exception e) {\n w(\"Failed to get camera picture from extras: \" + e);\n }\n\n return bm;\n }", "protected abstract BufferedImage create(ImageSource source,\n\t\t\tDimension maxSize);", "private Bitmap scaleDown(Bitmap bitmap, float maxSize) {\n // Ratio between the maxSize and the bitmap's width and height\n float ratio = Math.min(\n maxSize / bitmap.getWidth(),\n maxSize / bitmap.getHeight()\n );\n\n // If ratio >=1, the bitmap is smaller than the defined max size\n if (ratio >= 1) {\n return bitmap;\n }\n\n // Width and height reduction\n int width = Math.round(ratio * bitmap.getWidth());\n int height = Math.round(ratio * bitmap.getHeight());\n\n if (width <= 0 && height <= 0) {\n return bitmap;\n }\n\n return Bitmap.createScaledBitmap(bitmap, width, height, true);\n }", "public static Bitmap createDrawableBitmap(Drawable drawable) {\n int width = drawable.getIntrinsicWidth();\n int height = drawable.getIntrinsicHeight();\n if (width <= 0 || height <= 0) {\n return null;\n }\n float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (width * height));\n if (drawable instanceof BitmapDrawable && scale == 1f) {\n // return same bitmap if scale down not needed\n return ((BitmapDrawable) drawable).getBitmap();\n }\n int bitmapWidth = (int) (width * scale);\n int bitmapHeight = (int) (height * scale);\n Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n Rect existingBounds = drawable.getBounds();\n int left = existingBounds.left;\n int top = existingBounds.top;\n int right = existingBounds.right;\n int bottom = existingBounds.bottom;\n drawable.setBounds(0, 0, bitmapWidth, bitmapHeight);\n drawable.draw(canvas);\n drawable.setBounds(left, top, right, bottom);\n return bitmap;\n }", "private Bitmap decodeBitmapImage(int image) {\n int targetW = 300;\n int targetH = 300;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n\n BitmapFactory.decodeResource(getResources(), image,\n bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n return BitmapFactory.decodeResource(getResources(), image,\n bmOptions);\n }" ]
[ "0.66017073", "0.62013865", "0.61841553", "0.6141074", "0.6044134", "0.59712946", "0.5963855", "0.5931697", "0.5766877", "0.57292956", "0.5702208", "0.5702201", "0.5691133", "0.56812084", "0.5671113", "0.56660396", "0.5660004", "0.56333137", "0.5609419", "0.5604748", "0.5601206", "0.5599796", "0.5593266", "0.5585871", "0.55839765", "0.55742294", "0.5549011", "0.5548769", "0.5537297", "0.5517026", "0.5500001", "0.54935354", "0.5473668", "0.5462417", "0.5446082", "0.5440468", "0.5416868", "0.54025006", "0.54005235", "0.5394808", "0.5393997", "0.5374181", "0.536933", "0.5347241", "0.5345412", "0.5336598", "0.5333927", "0.53158414", "0.53071904", "0.53062254", "0.5302899", "0.52905995", "0.52904034", "0.5270468", "0.52361786", "0.5234528", "0.52062845", "0.52049875", "0.5195281", "0.51848686", "0.5183733", "0.5152958", "0.515045", "0.51500434", "0.5143304", "0.51376843", "0.5118326", "0.5097312", "0.50861484", "0.50615734", "0.50450337", "0.50390726", "0.50390726", "0.5033232", "0.50317484", "0.5030657", "0.5030657", "0.5030657", "0.5030657", "0.5027567", "0.50262445", "0.50200194", "0.5013359", "0.5005775", "0.50032747", "0.49952915", "0.49836943", "0.49506178", "0.49475047", "0.4943852", "0.4929136", "0.49242505", "0.49117193", "0.49025995", "0.48979583", "0.48908144", "0.48849186", "0.4876304", "0.48740116", "0.48727334" ]
0.79716706
0
Raw height and width of image
private static int calculateInSampleSize( ImageDimensions imageDims, int maxDims) { final int height = imageDims.getImageHeight(); final int width = imageDims.getImageWidth(); int inSampleSize = 1; if (height > maxDims || width > maxDims) { final int halfHeight = height / 2; final int halfWidth = width / 2; // Calculate the largest inSampleSize value that is a power of 2 and keeps both // height and width larger than the requested height and width. while ((halfHeight / inSampleSize) >= maxDims || (halfWidth / inSampleSize) >= maxDims) { inSampleSize *= 2; } } return inSampleSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getImageHeight() {\n\treturn height;\n }", "public int getImageWidth() {\n\treturn width;\n }", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }", "public int getImageHeight()\n\t{\n\t\treturn imgHeight;\n\t}", "public int getImageHeight() {\n\t\treturn imgHeight;\n\t}", "@Test\n public void testImage() {\n int expected = 4;\n assertEquals(expected, image.getHeight());\n assertEquals(expected, image.getWidth());\n }", "public int getImageWidth()\n\t{\n\t\treturn imgWidth;\n\t}", "public int getImageHeight()\n {\n \n int retVal = getImageHeight_0(nativeObj);\n \n return retVal;\n }", "public int getImageWidth() {\n\t\treturn imgWidth;\n\t}", "public int height() {\n return picture.height();\n }", "public int height() \n {\n return this.picture.height();\n }", "public int getArea(){\n return imageArea;\n }", "public Dimension getImageSize() {\n\t\treturn null;\n\t}", "public int[] getActualSize() {\n int[] actualSize = new int[2];\n\n actualSize[0] = originalImage.getWidth();\n actualSize[1] = originalImage.getHeight();\n\n return actualSize;\n }", "public int getImageWidth()\n {\n \n int retVal = getImageWidth_0(nativeObj);\n \n return retVal;\n }", "public Dimension getSize()\n\t{\n\t\treturn new Dimension(image.getWidth(),image.getHeight());\n\t}", "public int height() {\n return picture().height();\n }", "public int getImage();", "public native int getWidth() throws MagickException;", "public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}", "public int width() {\n return picture.width();\n }", "public static int[] getImageWidthHeight(ImageData[][] imageData){\n ImageData lastImage = imageData[imageData.length-1][imageData.length-1];\n int wid = lastImage.w +lastImage.wIndex;\n int hei = lastImage.h + lastImage.hIndex;\n //Print Details\n System.out.println(\"Last ImageWidthHeight=== Width=\"+wid+\" Height =\"+hei);\n return new int[] {wid,hei};\n }", "public native int getHeight() throws MagickException;", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "BufferedImage getImage();", "BufferedImage getImage();", "BufferedImage getImage();", "public int width() \n {\n return this.picture.width();\n }", "public int getHeight() {\n return fullPhoto.getHeight();\n }", "int getImgDataCount();", "public int imHeight() {\n\t\treturn image.getHeight(this);\n\t}", "public int getSizeY() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeY;\r\n}", "@Override\r\n public byte[] getCustomImageInBytes() {\r\n\r\n return imageInByte;\r\n }", "public float getIMG(){\n return profile.getImg();\n }", "public String getSize() {\n return fullPhoto.getSize();\n }", "public int getPixelSize() {\n\t\treturn pixelSize;\n\t}", "public int width() {\n return picture().width();\n }", "public int imWidth() {\n\t\treturn image.getWidth(this);\n\t}", "public Rectangle getRect() {\n return new Rectangle(x,y,(imageWeight-50),(imageHeight-50));\n }", "public int getWidth() {\n return fullPhoto.getWidth();\n }", "public abstract int getNormalizedHeight();", "int getMaxRawImages();", "public double getPixelSize() {\n\t\treturn 0;\n\t}", "@Schema(example = \"2186\", description = \"Size of the image in bytes.\")\n public Long getSize() {\n return size;\n }", "public int getPicWidth() {\r\n\t\treturn this.image.getIconWidth();\r\n\t}", "public Rectangle getImage() {\n\t\treturn image;\n\t}", "public long getImageBase()\n throws IOException, EndOfStreamException\n {\n if (imageState_ == ImageStateType.PE64)\n {\n return peFile_.readInt64(relpos(Offsets.IMAGE_BASE_64.position));\n }\n\n return peFile_.readInt32(relpos(Offsets.IMAGE_BASE_32.position));\n }", "@Test\n public void testGetImage() {\n int[][][] copyImage = image.getImage();\n assertEquals(copyImage.length, image.getHeight());\n }", "public native int sizeBlob() throws MagickException;", "public native int getImageType() throws MagickException;", "int getBitsPerPixel();", "private float getRoughPixelSize() {\n\n\t\tfloat size = 380; // mm\n\t\tfloat pixels = getHeight();\n\t\treturn pixels > 0 ? size / pixels : 0;\n\n\t}", "@Test\n public void testGetWidth() throws FitsException, IOException{\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n Assert.assertEquals(100, imageData.getWidth());\n }", "private void getBitmapSize(Uri uri) {\n InputStream is = null;\n try {\n\n is = getInputStream(uri);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(is, null, options);\n\n width = options.outWidth;\n height = options.outHeight;\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException ignored) {\n }\n }\n }\n }", "public long getSizeOfImage()\n throws IOException, EndOfStreamException\n {\n return peFile_.readUInt32(relpos(Offsets.SIZE_OF_IMAGE.position));\n }", "@Test\n public void testGetHeight() throws FitsException, IOException{\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n Assert.assertEquals(100, imageData.getHeight());\n }", "public BufferedImage getImage() {\n\t\t return img;\n\t}", "public int getImageCount() {\n return imageCount;\n }", "private static native void setImagesize_0(long nativeObj, int W, int H);", "public ImageInfo getImage() {\n return image;\n }", "public int getH() { return height; }", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "private static native void setImageHeight_0(long nativeObj, int val);", "public int getLargeur() {\n return getWidth();\n }", "@Nonnull\n private BufferedImage createImage() {\n return new BufferedImage(getWidth(), getHeight(), getImageType().getType());\n }", "public PImage getImg() {\n \treturn img;\n }", "PImage getImage() {\n return _img;\n }", "int imageCount();", "@Override\n public Dimension getPreferredSize()\n {\n return new Dimension(this.bufferedImage.getWidth(), \n this.bufferedImage.getHeight());\n }", "java.lang.String getImage();", "public int getImageNumber() {\n return imageNumber;\n }", "public abstract BufferedImage getSnapshot();", "public String getImage() { return image; }", "public interface IImage {\n public int getWidth();\n public int getHeight();\n public IGraphics.ImageFormat getFormat();\n public void dispose();\n}", "public Integer getWidth(){return this.width;}", "@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "public int getHeight() { return height; }", "public int getSizeX() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeX;\r\n}", "public String getSize(int width, int height) {\n try {\n String url;\n\n url = cloudinary.url().format(\"jpg\")\n .transformation(new Transformation().width(width).height(height)).generate(public_id);\n\n return url;\n }catch (NullPointerException e){\n Logger.debug(\"Failed to receive image url.\", e.getMessage());\n return \"null\";\n }\n }", "public int grHeight() { return height; }", "public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}", "public int getHeight() {return height;}", "Image createImage();", "String getImage();", "private byte[] getImageIDESizeParameter() {\n if (ideSize != 1) {\n final byte[] ideSizeData = new byte[] {\n (byte)0x96, // ID\n 0x01, // Length\n ideSize};\n return ideSizeData;\n } else {\n return new byte[0];\n }\n }", "public BufferedImage getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public int getSizeZ() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeZ;\r\n}", "com.google.protobuf.ByteString\n getImageBytes();", "public double getIm() {\r\n return im;\r\n }", "@Override\n public IIOMetadata getImageData() {\n return super.imageData;\n }", "double getArea() {\n return width * height;\n }", "int getHeight() {return height;}", "public String getPixelInfo()\n {\n return pixelInfo.toString();\n }", "public String toString()\n {\n return \"The tesseract's dimensions are \" + getLength() + \" X \" + getWidth() + \" X \" + getHeight() + \" X \" + getwDimension();\n }", "public int Height(){\r\n return height;\r\n }", "private void getWidthandHeight(char[] imagenaux) {\n for (iterator = 3; imagenaux[iterator] != '\\n'; ++iterator) {\n if (imagenaux[iterator] == ' ') anchura = false;\n else {\n if (anchura) {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n width *= 10;\n width += aux;\n } else {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n height *= 10;\n height += aux;\n }\n }\n }\n ++iterator;\n while (imagenaux[iterator] != '\\n') { ++iterator; }\n ++iterator;\n }", "@Test\n\tpublic void testGetHeight() {\n\t\tip = new ImagePlus();\n\t\tip.getHeight();\n\t}" ]
[ "0.7013478", "0.699988", "0.67583126", "0.6750033", "0.6720698", "0.669873", "0.6689511", "0.66860753", "0.66664755", "0.65853953", "0.6539114", "0.6529669", "0.6516078", "0.65081245", "0.64257", "0.63865346", "0.63722134", "0.63092506", "0.6291426", "0.6288455", "0.6252946", "0.62341326", "0.618197", "0.6158717", "0.615819", "0.615819", "0.615819", "0.6144378", "0.61443424", "0.61401063", "0.6103231", "0.6099903", "0.60651374", "0.60592395", "0.6017553", "0.6014474", "0.5984361", "0.5984188", "0.59672165", "0.59642625", "0.5959984", "0.5959759", "0.59582573", "0.5954042", "0.59415966", "0.5931953", "0.59172827", "0.59166247", "0.5890154", "0.5876868", "0.58619386", "0.5858101", "0.5857994", "0.58552325", "0.5850757", "0.5845183", "0.5841783", "0.582109", "0.58189946", "0.5817898", "0.5814005", "0.5794509", "0.57887757", "0.5787256", "0.5754822", "0.575088", "0.57494265", "0.57246256", "0.5720308", "0.5718694", "0.5708866", "0.57061535", "0.5704408", "0.57041174", "0.56999844", "0.5693438", "0.5690735", "0.5688313", "0.5687101", "0.56773496", "0.5668776", "0.56606424", "0.5660228", "0.56601244", "0.5653856", "0.565332", "0.56526333", "0.5651148", "0.5651148", "0.5651148", "0.5641639", "0.5638461", "0.56312215", "0.56304806", "0.56294745", "0.5629049", "0.5615024", "0.5613165", "0.5608674", "0.5605906", "0.5604374" ]
0.0
-1
This is the start method that initializes the mainForm once the program is launched
@Override public void start(Stage primaryStage) throws Exception { try { Parent root = FXMLLoader.load(getClass().getResource("/view/mainForm.fxml")); Scene sceneOne = new Scene(root); primaryStage.setScene(sceneOne); primaryStage.show(); } catch(Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public main() {\n initComponents();\n \n }", "public void start(){\n JmeFormatter formatter = new JmeFormatter();\n\n Handler consoleHandler = new ConsoleHandler();\n consoleHandler.setFormatter(formatter);\n\n Logger.getLogger(\"\").removeHandler(Logger.getLogger(\"\").getHandlers()[0]);\n Logger.getLogger(\"\").addHandler(consoleHandler);\n \n createCanvas(appClass);\n \n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n \n SwingUtilities.invokeLater(new Runnable(){\n public void run(){\n JPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\n createFrame();\n \n //currentPanel.add(canvas, BorderLayout.CENTER);\n mMainFrame.pack();\n startApp();\n mMainFrame.setLocationRelativeTo(null);\n mMainFrame.setVisible(true);\n }\n });\n \n \n }", "public MainGui() {\n initComponents();\n this.setVisible(true);\n configuracoesSalvas();\n }", "private void start() {\r\n\t\t// Clear the log file.\r\n\t\tBPCC_Logger.clearLogFile();\r\n\t\t\r\n\t\t// Initialize BPCC_Util static fields.\r\n\t\tBPCC_Util.initStaticFields();\r\n\t\t\r\n\t\t// Set logging level desired for test.\r\n\t\tBPCC_Util.setLogLevel(LogLevelEnum.DEBUG);\r\n\t\t\r\n\t\t// Initialize class global variables.\r\n\t\tinitVars();\r\n\t\t\r\n\t\tcreateAndShowGUI();\r\n\t}", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public FrmMain()\n {\n //Displays the menu bar on the top of the screen (mac style)\n System.setProperty(\"apple.laf.useScreenMenuBar\", \"true\");\n // Build the GUI\n initComponents();\n // Load the texts\n initTextsI18n();\n }", "public MainForm() {\n initComponents();\n \n }", "public Main() {\n initComponents();\n this.setLocationRelativeTo(null);\n \n \n }", "public StartProgramFrame() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}", "public MainApp() {\n initComponents();\n }", "public JFrameMain() {\n initComponents();\n \n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "@Override\n public void onStart() {\n GuiMain gui = new GuiMain(this);\n gui.setVisible(true);\n log(\"Script is starting!\");\n\n }", "public void start() {\r\n\t\tif (FormsContext.isFormsServicesApp()) {\r\n\t\t\tinitialOpenLWWindows = new LWWindowOperator().getWindowTitles();\r\n\t\t} else {\r\n\r\n\t\t}\r\n\t}", "public JFrameMain() {\n initComponents();\n }", "public mainUI() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n Utility.centerScreen(this);\n myself = this;\n }", "public MainEntry() {\n initComponents();\n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public void start() {\n SetupGUI setup = new SetupGUI();\n }", "public Main(){\n \tsetSize(new Dimension(1024, 768));\n \t\n \t//setUndecorated(true); // borderless (fullscreen) window\n \tsetExtendedState(getExtendedState() | JFrame.MAXIMIZED_BOTH); // maximize window\n \t\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setTitle(\"Game\");\n setLocationRelativeTo(null); // center on screen\n\n \tContentLoader.LoadContent();\n init();\n start();\n }", "public void start() {\n\t\tSystem.out.println(\"Starting new application\");\n\t\texec.init(this);\n\t\tthread = new Thread(this);\n\t\trunning = true;\n\t\tgd.setFullScreenWindow(screen.getFrame());\n\t\tscreen.getFrame().setVisible(true);\n\t\tthread.start();\n\t}", "public MainFrame() {\n initComponents();\n \n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public void start() {\n\t\tthis.setSize(500, 500);\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n\n mAlmondUI.addWindowWatcher(this);\n mAlmondUI.initoptions();\n\n initActions();\n init();\n\n if (IS_MAC) {\n initMac();\n }\n\n initMenus();\n mActionManager.setEnabledDocumentActions(false);\n }", "public Main() {\n initComponents();\n this.setResizable(false);\n this.setLocationRelativeTo(null);\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public void start() {\r\n setupCenter();\r\n setupEast();\r\n\r\n myFrame.setTitle(\"TCSS 305 Tetris\");\r\n myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n myFrame.setLocationByPlatform(true);\r\n myFrame.pack();\r\n myFrame.setMinimumSize(MINIMUM_SIZE);\r\n myFrame.setSize(DEFAULT_SIZE);\r\n myFrame.setVisible(true);\r\n\r\n myTimer.start();\r\n startMusic();\r\n }", "public launchFrame() {\n \n initComponents();\n \n }", "public void launch() {\n m_frame.pack();\n m_frame.setVisible(true);\n }", "public void startProgram() {\n this.displayBanner();\n// prompt the player to enter their name Retrieve the name of the player\n String playersName = this.getPlayersName();\n// create and save the player object\n User user = ProgramControl.createPlayer(playersName);\n// Display a personalized welcome message\n this.displayWelcomeMessage(user);\n// Display the Main menu.\n MainMenuView mainMenu = new MainMenuView();\n mainMenu.display();\n }", "public MainFrame() {\n super(\"Gestione Concessionaria\");\n this.initComponents();\n this.generaFasciaPrezzo();\n this.pack();\n this.setLocationRelativeTo(null);\n this.initPanels();\n this.ToggleMenu.addActionListener(this);\n }", "public Mainwindow(){\n \n try \n {\n //LookAndFeel asd = new SyntheticaAluOxideLookAndFeel();\n //UIManager.setLookAndFeel(asd);\n } \n catch (Exception e) \n {\n e.printStackTrace();\n }\n initComponents();\n \n \n userinitComponents();\n \n \n }", "public mainGUI() {\n initComponents();\n setSize(Toolkit.getDefaultToolkit().getScreenSize());\n }", "public MainForm() {\r\n initComponents();\r\n \r\n Dimension sd = Toolkit.getDefaultToolkit().getScreenSize();\r\n setLocation(sd.width / 2 - this.getWidth()/ 2, sd.height / 2 - this.getHeight()/ 2);\r\n \r\n jButtonConnect.setEnabled(false);\r\n jButtonVerifyConnection.setEnabled(false);\r\n \r\n }", "private void initUI () {\n\t\t\t\n\t\t\tJFrame error = new JFrame();\n\t\t\tJFrame tmp = new JFrame();\n\t\t\ttmp.setSize(50, 50);\n\t\t\tString select = \"cheese\";\n\t\t\tboolean boolTemp = false;\n\t\t\tif(new File(\"prefFile.txt\").exists() == false){ //if this is the first run\n\t\t\t\twhile(select.equals(\"cheese\")){\n\t\t\t\t\tselect = JOptionPane.showInputDialog(tmp, \"It appears this is your first run. \"\n\t\t\t\t\t\t\t+ \"Enter the city name of your current location:\"); //prompts user for their current location\n\t\t\t\t\tif(select != null){\n\t\t\t\t\t\tboolTemp = searchBoxUsedTwo(select); //used the search function\n\t\t\t\t\t}\n\t\t\t\t\tif(boolTemp == false){\n\t\t\t\t\t\tselect = \"cheese\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tapp.setCurrentLocation(app.getVisibleLocation()); //sets the current location\n\t\t\t}\n\t\t\telse{ //if it's been run before\n\t\t\t\tlocation tmpLoc = new location();\n\t\t\t\ttry {\n\t\t\t\t\ttmpLoc = app.loadPref(); //load the location from memory\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\t}\n\t\t\t\tapp.setCurrentLocation(tmpLoc); //and set it as the current location\n\t\t\t\tapp.setVisibleLocation(tmpLoc);\n\t\t\t\t\n\t\t\t}\n\t\t\tthis.setTitle(\"Weather Application\"); //sets title of frame \n\t\t\tthis.setSize(1300, 600); //sets size of frame\n\t\t\tthis.setLocationRelativeTo(null);\n\t\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE); //initiates exit on close command\n\t\t\tthis.setJMenuBar(this.createMenubar()); \n\t\t\t\n\t\t\tcreateFormCalls();\n\t\t\t\n\t\t\ttabbedPane.addTab(\"Current\", null, currentPanel); //fills a tab window with current data\n\t\t\ttabbedPane.addTab(\"Short Term\", null, shortPanel); //fills a tab window with short term data\n\t\t\ttabbedPane.addTab(\"Long Term\", null, longPanel); //fills a tab window with short term data\n\t\t\ttabbedPane.addTab(\"Mars Weather\", null, marsPanel); //fills a tab window with short term data\n\t\t\t\n\t\t\tGroupLayout layout = new GroupLayout(this.getContentPane());\n\t\t\tlayout.setAutoCreateGaps(true);\n\t\t\tlayout.setAutoCreateContainerGaps(true);\n\t\t\tlayout.setHorizontalGroup( layout.createSequentialGroup() //sets the vertical groups\n\t\t\t\t\t\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) \n\t\t\t\t\t\t\t\t.addComponent(tabbedPane)\n\t\t\t\t\t\t\t\t.addComponent(refreshLabel)\n\t\t\t\t\t\t)\n\n\t\t\t);\n\t\t\tlayout.setVerticalGroup( layout.createSequentialGroup() //sets the vertical groups\n\t\t\t\t\t\n\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) \n\t\t\t\t\t\t\t.addComponent(tabbedPane)\n\t\t\t\t\t)\n\t\t\t\t\t.addComponent(refreshLabel)\n\n\t\t\t);\n\t\t\t\n\t\t\tthis.getContentPane().setLayout(layout);\n\t\t}", "public MainFrame() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public void start()\n {\n uploadDataFromFile();\n menu.home();\n home();\n }", "public MainUI() {\r\n initComponents();\r\n this.setLocationRelativeTo(null);\r\n /**/\r\n }", "public void startApplication() {\n\t\tgameView = new GameGUI(this);\n\t\t\n\t\t/*\n\t\t * Create bonus GUI now.\n\t\t * TODO: Use swing worker thread to create bonus GUI\n\t\t * \t\t that way if GUI had more bells and whistles to it\n\t\t * \t\t the bonus GUI creation wouldn't take up processing time\n\t\t * \t\t on the main thread.\n\t\t */\n\t\tcreateBonusGUI();\n\t\t\n\t\t//GUI created and ready to show to the user\n\t\tgameView.allowVisibility();\n\t\tGameSounds.startBackgroundMusic();\n\t}", "public MainSwingApp() {\n \t\tsuper();\n \t\tContext.setState(State.NORMAL);\n \n \t\tthis.map = new JMapViewer();\n \t\tmap.addMouseListener(this);\n \t\tinitiateMainView();\n \t\tinitGUI();\n \t\tif (map.getMapMarkerList().isEmpty()) {\n \t\t\tmap.setDisplayPositionByLatLon(45.430262484682125, 4.3890380859375,\n \t\t\t\t\t11);\n \t\t} else {\n \t\t\tmap.setDisplayToFitMapMarkers();\n \t\t\tmap.setZoom(9);\n \t\t}\n \n \t\t// Sign in\n \t\t// new SignInDialog(this);\n \t}", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew mainclass().setVisible(true);\n\t\t\t}", "public Main() {\n initComponents();\n LogIn.setVisible(true);\n LogIn.setVisible(true);\n LogIn.setLocationRelativeTo(null);\n }", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public static void main( String args[] )\n\t{\n\t\tmainFrame = getInstance();\n\t\tmainFrame.setVisible( true );\n\t\t\n\t}", "public mainframe() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MainFrame() {\n \n new DangNhapDialog(this, true).setVisible(true);\n initComponents();\n init();\n }", "public void main(@Observes ContainerInitialized event) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n\n setTitle(\"Vier Gewinnt © Kevin Sapper\");\n setResizable(false);\n setPreferredSize(new Dimension(GameConstants.WIDTH, GameConstants.HEIGHT));\n setLayout(new CardLayout());\n // Center frame\n setLocationRelativeTo(null);\n\n initMenu();\n\n cards = getContentPane();\n initGameCard();\n initStartCard();\n\n switchToCard(startCard);\n\n setVisible(true);\n }", "public main() {\n initComponents();\n btnSalvar3.setVisible(false);\n lerConfig();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public Mainframe() {\n initComponents();\n }", "public MainFrame() {\n\t\tsuper(\"Contry Detail\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetPreferredSize(new Dimension(450, 300));\n\t\tsetResizable(false);\n\t\t\n\t\tinitComponents();\n\t\t\n\t\tcontroller = new Service(this);\n\t}", "private void startGUI() {\r\n myFrame.setTitle(\"Media Library\");\r\n myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n myFrame.setLocationByPlatform(true);\r\n myFrame.pack();\r\n\r\n myFrame.setVisible(true);\r\n }", "public FuelRepairMain() {\n initComponents();\n }", "public static void main(String[] args){\n // Creates an instance of our program\n Main gui = new Main();\n // Lets the computer know to start it in the event thread\n SwingUtilities.invokeLater(gui);\n }", "public mainpagee() {\n initComponents();\n }", "public Gui() { \n preInitComponents(); \n initComponents();\n postInitComponents(); \n setVisible(true);\n appInitialization();\n }", "public void run()\r\n\t{\r\n\t\tthis.mainFrame.setVisible(true);\r\n\t}", "public MainForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"Sistema Kárdex\");\n\n this.clienteServer = new Cliente(this);\n lstKardex = new BaseDeDatosKardex();\n lstKardex.inicializarKardex();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 640, 480);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJDesktopPane desktopPane = new JDesktopPane();\t\t//Creates desktop pane\n\t\tdesktopPane.setBounds(-7, -30, 640, 480);\t\t\t// Sets location to be outside of window\n\t\tframe.getContentPane().add(desktopPane);\t\t\t// adds desktop pane to frame\n\t\t\n//\t\tMainMenu MainMenu = new MainMenu();\t\t// Creates new MainMenu\n//\t\tMainMenu.setVisible(true);\t\t\t\t// Sets MainMenu Visible\n//\t\tdesktopPane.add(MainMenu);\t\t\t\t// Adds MainMenu to DesktopPane\n\t\t\n\t\t\n\t\t MainMenu nw = MainMenu.getInstance();\n\t\t nw.pack();\n//\t\t if (nw.isVisible()) {\n//\t\t } else {\n\t\t\tnw.setBounds(100, 100, 400, 200);\n\t\t desktopPane.add(nw);\n\t\t nw.setVisible(true);\n\t\t \n//\t\t }\n\t\t try {\n\t\t nw.setMaximum(true);\n\t\t } catch (Exception e1) {\n\t\t \tSystem.out.println(e1);\n\t\t }\n\t}", "public static void main(String[] args){\n // Creates an instance of our program\n Main gui = new Main();\n // Lets the computer know to start it in the event thread\n SwingUtilities.invokeLater(gui);\n }", "public FRMain() {\n initComponents(); //basically starts the program and creates all GUI panels\n \n \n menuScreen.setVisible(false);\n quizTagsSelectScreen.setVisible(false);\n quizScreen.setVisible(false);\n editScreen.setVisible(false);\n statsScreen.setVisible(false);\n loadFileChooser.setVisible(false);\n saveFileChooser.setVisible(false);\n deleteScreen.setVisible(false);\n saveFileChooser.setFileSelectionMode(javax.swing.JFileChooser.FILES_AND_DIRECTORIES); //can pick a directory to save in and then create file\n loadFileChooser.setFileSelectionMode(javax.swing.JFileChooser.FILES_ONLY); //can load from file only\n \n }", "public Main() {\r\n\t\ttry {\r\n\t\t\tcreateFolders();\r\n\t\t\trestaurar();\r\n\t\t\tMaterialLookAndFeel materialTheme = new MaterialLookAndFeel(\r\n\t\t\t\t\t(MaterialTheme) Utils.getInstance().getCurrentTheme());\r\n\r\n\t\t\tUIManager.setLookAndFeel(materialTheme);\r\n\t\t\tUIManager.getLookAndFeelDefaults().put(\"TabbedPane[tab].height\", 5);\r\n\t\t\tUIManager.getLookAndFeelDefaults().put(\"OptionPane.minimumSize\",new Dimension(800,100));\r\n\t\t\tSplash screen = new Splash();\r\n\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tscreen.setVisible(true);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tThread t1 = new Thread(new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tcreateTables();\r\n\t\t\t\t\tTableModelMembro.getInstance().uploadDataBase();\r\n\t\t\t\t\tTableModelFuncionario.getInstance().uploadDataBase();\r\n\t\t\t\t\tTableModelFinancas.getInstance().uploadDataBase();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tt1.start();\r\n\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(500);\r\n\t\t\t\tfor (int i = 0; i <= 100; i++) {\r\n\t\t\t\t\tThread.sleep(35);\r\n\t\t\t\t\tEventQueue.invokeLater(new Incrementar(i, screen));\r\n\t\t\t\t}\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tString message = \"Ocorreu um erro ao abrir o programa. Tenta novamente!\\n\" + e.getMessage();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, message, \"Erro\", JOptionPane.ERROR_MESSAGE,\r\n\t\t\t\t\t\tnew ImageIcon(getClass().getResource(\"/FC_SS.jpg\")));\r\n\t\t\t\tLog.getInstance().printLog(message);\r\n\t\t\t}\r\n\r\n\t\t\tt1.join();\r\n\r\n\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tscreen.setVisible(false);\r\n\t\t\t\t\tLogin.getInstance().open();\r\n\t\t\t\t\tinicialTime = System.currentTimeMillis();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tLog.getInstance().printLog(\"O programa iniciou\");\r\n\r\n\t\t} catch (Exception e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t\tString message = \"Ocorreu um erro ao abrir o programa. Tenta novamente!\\n\" + e1.getMessage();\r\n\t\t\tJOptionPane.showMessageDialog(null, message, \"Erro\", JOptionPane.ERROR_MESSAGE,\r\n\t\t\t\t\tnew ImageIcon(getClass().getResource(\"/FC_SS.jpg\")));\r\n\t\t\tLog.getInstance().printLog(message);\r\n\t\t\tSystem.exit(1);\r\n\r\n\t\t}\r\n\t}", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "public void start() {\r\n\t\tsetupWWD();\r\n\t\tsetupStatusBar();\r\n\t\tsetupViewControllers();\r\n\t\tsetupSky();\r\n\t\t//setupAnnotationToggling();\r\n\r\n\t\t// Center the application on the screen.\r\n\t\tWWUtil.alignComponent(null, this, AVKey.CENTER);\r\n\t\t\r\n\t\tgetLayerEnableCmd().run(); // Enable/disable the desired layers.\r\n\t}", "public void startProgram()\r\n\t{\r\n\t\tview.displayPlayerNames();\r\n\t\tview.loadGameData();\r\n\t\tview.displayGame();\r\n\t}", "public MainScreen()\n {\n initComponents();\n \n //Load the tables of the application with data from database\n loadClientTable();\n loadSupplierTable();\n loadStorageTable();\n loadPurchaseTable();\n loadSellTable();\n loadDeskPane();\n \n // Set window's location to the center of the screen\n setLocationRelativeTo(null);\n }", "public void start() {\n io.println(\"Welcome to 2SAT-solver app!\\n\");\n String command = \"\";\n run = true;\n while (run) {\n while (true) {\n io.println(\"\\nType \\\"new\\\" to insert an CNF, \\\"help\\\" for help or \\\"exit\\\" to exit the application\");\n command = io.nextLine();\n if (command.equals(\"new\") || command.equals(\"help\") || command.equals(\"exit\")) {\n break;\n }\n io.println(\"Invalid command. Please try again.\");\n }\n switch (command) {\n case \"new\":\n insertNew();\n break;\n case \"help\":\n displayHelp();\n break;\n case \"exit\":\n io.println(\"Thank you for using this app.\");\n run = false;\n }\n\n }\n }", "public cinema_main_form() {\n \t\t\n \t\tmain_frame = new JFrame();//main frame\n\t\tmain_panel = new JPanel();//kedriko panel\n\t\t\n\t\t// Add the panel to the frame.\n\t\tmain_frame.getContentPane().add(main_panel, BorderLayout.CENTER);\n \t\n initComponents();\n\t\n\t\t// Exit when the window is closed.\n\t\tmain_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 621, 453);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblBlackjackVersion = new JLabel(\"BlackJack Version .01\");\r\n\t\tlblBlackjackVersion.setFont(new Font(\"Tahoma\", Font.PLAIN, 29));\r\n\t\tlblBlackjackVersion.setBounds(155, 55, 305, 59);\r\n\t\tframe.getContentPane().add(lblBlackjackVersion);\r\n\t\t\r\n\t\tJButton btnStart = new JButton(\"Start\");\r\n\t\tbtnStart.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tkontroll1.start();\r\n\t\t\t\t\r\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnStart.setBackground(Color.WHITE);\r\n\t\tbtnStart.setFont(new Font(\"Tahoma\", Font.PLAIN, 22));\r\n\t\tbtnStart.setToolTipText(\"Start Blackjack\");\r\n\t\tbtnStart.setBounds(201, 185, 163, 47);\r\n\t\tframe.getContentPane().add(btnStart);\r\n\t}", "public void start()\n\t{\n\t\tview.showWindow();\n\t\taddListeners();\n\t}", "public JFrameApp() {\n initComponents();\n }", "public static void start()\n\t{\n teamFrame = new JFrame(\"Team Setup\");\n teamFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n JComponent newContentPane = new BasicTeamConfiguration();\n newContentPane.setOpaque(true); //content panes must be opaque\n teamFrame.setContentPane(newContentPane);\n teamFrame.setLocationRelativeTo(null);\n \n //Display the window.\n teamFrame.pack();\n teamFrame.setVisible(true);\n\t}", "public StartScreen() {\n initComponents();\n }", "public GUI() {\n initComponents();\n this.setVisible(true);\n }", "public MainMIDlet() {\r\n\t\t/**\r\n\t\t * Load PIN BOY ID\r\n\t\t */\r\n\t\tConstants.setPinBoyID(this.getAppProperty(\"pinboy-id\"));\r\n\t\tdisplay = Display.getDisplay(this);\r\n\t\t\r\n\t\t/**\r\n\t\t * Let's display some environment settings.\r\n\t\t */\r\n\t\tstringItemSettings = new StringItem(\r\n\t\t\t\t\"Settings:\",\r\n\t\t\t\t\"\\nMobile client ID:\"\r\n\t\t\t\t+ Constants.getPinBoyID()\r\n\t\t\t\t+ \"\\nMicro Config:\"\r\n\t\t\t\t+ System.getProperty(\"microedition.configuration\")\r\n\t\t\t\t+ \"\\nMicro Profile:\"\r\n\t\t\t\t+ System.getProperty(\"microedition.profiles\"));\r\n\t\tform.append(textFieldServerAddress);\r\n\t\tform.append(textFieldPort);\r\n\t\tform.append(stringItemSettings);\r\n\t\tform.append(textFieldFileRoot);\r\n\t\tform.addCommand(exitCommand);\r\n\t\tform.addCommand(startCommand);\r\n\t\tform.setCommandListener(this);\r\n\t\tdisplay.setCurrent(form);\r\n\t}", "public MainScreen() {\n initComponents();\n \n }" ]
[ "0.76160085", "0.7576194", "0.74176466", "0.7409388", "0.73735154", "0.73735154", "0.73735154", "0.73735154", "0.73735154", "0.7337441", "0.73283625", "0.7325698", "0.7323465", "0.72698325", "0.72698325", "0.72662073", "0.7262162", "0.7261625", "0.7190833", "0.7180277", "0.71691144", "0.7148039", "0.71366537", "0.7123912", "0.71182853", "0.71027565", "0.70947975", "0.70817363", "0.70796824", "0.7077846", "0.70765215", "0.70765215", "0.70765215", "0.7070649", "0.70703655", "0.706659", "0.7065158", "0.7048633", "0.7030024", "0.7021685", "0.70194745", "0.7006204", "0.6991568", "0.6987683", "0.69766665", "0.6968241", "0.69671524", "0.6955222", "0.6953019", "0.69430166", "0.6929187", "0.69266266", "0.69266266", "0.69266266", "0.69266266", "0.69266266", "0.69266266", "0.69266266", "0.69266266", "0.69266266", "0.69266266", "0.69266266", "0.69266266", "0.69002396", "0.6888679", "0.68711376", "0.68707407", "0.68684715", "0.68670696", "0.685737", "0.68566424", "0.68512", "0.68464667", "0.6844869", "0.6835347", "0.683143", "0.6814416", "0.68142164", "0.6798161", "0.6794697", "0.6787437", "0.6782973", "0.67824984", "0.678202", "0.6781083", "0.6778019", "0.6765249", "0.6760954", "0.6752649", "0.67402977", "0.67363095", "0.67355734", "0.6735292", "0.67272675", "0.6725594", "0.6723574", "0.6720553", "0.671352", "0.67050576", "0.66931295", "0.66856885" ]
0.0
-1
This is the main method it is the first method that gets called and it launches the java program
public static void main(String[] args) { launch(args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main()\n\t{\n\t}", "public static void main(String[] args) // every Java program starts with a main method or function\r\n\t{\n\t}", "public static void main(){\n\t}", "public static void main() {\n }", "public static void main() {\n \n }", "public static void main(String[] args) throws IOException, ClassNotFoundException {\n\r\n\t\tlaunch(args);\r\n\r\n\t}", "public static void main(String[] args) {\n //launch it\n launch();\n }", "public static void main(String[] args) {\n\t launch(args);\n\t }", "public static void main(String[] args) {\n\t launch(args);\n\t }", "public static void main(String[] args) {\r\n\t launch(args); \r\n \r\n}", "public static void main(String[] args) {\n launch(args);\r\n \r\n }", "public static void main (String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n\t\tlaunch(args);\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t launch(args);\r\n\t}", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args)\r\n {\r\n launch(args);\r\n }", "public static void main(String args[]){\n System.out.println(\"Author: Saku Tynjala\");\n launch(args);\n }", "public static void main(String[] args)\n {\n new Launcher();\n }", "public static void main (String []args){\n }", "public static void main(String[] args) {\n launch(args);\n\n }", "public static void main(String[] args) {\n launch(args);\r\n }", "public static void main(String[] args) {\n launch(args);\r\n }", "public static void main(String[] args) {\n launch(args);\r\n }", "public static void main(String args[]) {\n\t\tString cmd = \"java ExternalProgram \";//Need space in the end of the sentence , for adding the argument.\n\n/**\n*When you want to run the Windows program like 'notepad', you should del the following sentences.\t\t\n*\n*The argument that is transfered will be added to the string \"cmd\".\n*\n**/\n\t\tif (args.length == 0) {\n\t\t\tcmd += 0;\n\t\t\tSystem.out.println(\"Run \" + cmd);\n\t\t}\n\t\telse {\n\t\t\tcmd += args[0];//add the argument to the string \"cmd\"\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tProcess ps = Runtime.getRuntime().exec(cmd);\n\t\t\tps.waitFor();\n\t\t\tif (ps.exitValue() == 0) {\n\t\t\t\tSystem.out.println(\"The program '\" + cmd + \"' terminate normally!\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"The program '\" + cmd + \"' terminate abnormally! :/\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args)\n {\n launch(args);\n }", "public static void main(String[] args)\n {\n launch(args);\n }", "public static void main(String[] args)\n {\n launch(args);\n }", "public static void main(String[] args)\n {\n launch(args);\n }", "public void main(){\n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n\t\t\r\n\t\tlaunch(args);\r\n\r\n\t}", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tlaunch(args);\r\n\t\t\r\n\t}", "public static void main(String[] args)\r\n {\r\n launch(args);\r\n }", "public static void main(String[] args) {\n \n\n }", "public static void main(String[] args)\r\n {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n new Program();\n }", "public static void main(String[] args) {\r\n \r\n }", "public static void main(String[] args) {\r\n \r\n }", "public static void main(String[] args) {\n\r\n Starter starter = new Starter();\r\n starter.start();\r\n\r\n\r\n }", "public static void main(String[] args)\r\n\t{\n\t\tlaunch(args);\r\n\r\n\t}", "public static void main(String[] args) {\r\n\t\tlaunch(args);\r\n\t}", "public static void main(String[] args) {\r\n\t\tlaunch(args);\r\n\t}", "public static void main(String[] args) {\r\n\t\tlaunch(args);\r\n\t}", "public static void main(String[] args) {\r\n\t\tlaunch(args);\r\n\t}", "public static void main(String[] args) \n {\n\t \n\t \n\t \n}", "public static void main (String args[]) {\n\t\t\n }", "public static void main(String []args){\n\n }", "public static void main(java.\n lang.\n String[] args) {\n \tif (x10.lang.Runtime.runtime == null) {\n \t\tSystem.err.println(\"Please use the 'x10' script to invoke X10 programs, or see the generated\");\n \t\tSystem.err.println(\"Java code for alternate invocation instructions.\");\n \t\tSystem.exit(128);\n \t}\n {\n \n//#line 3\nProgram0.\n runMain();\n }\n }", "public static void main(String args[]){\n\t\tSystem.out.println(\"Hello World! Hello Java!\");\n\t}", "public static void main(String[] args) {\n\t\tlaunch(args);\r\n\t}", "public static void main(String[] args) {\n\t\tlaunch(args);\r\n\t}", "public static void main(String[] args) {\nSystem.out.println(\"hello this is my first program\");\r\n\t}", "public static void main(String[] args)\n\t{\n\t\tlaunch(args);\t\t\n\t}", "public static void main(String[] args) {}", "public static void main(String[] args) {}", "public static void main(String[] args) {\n\n launch(args);\n }", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "public static void main(String[] args) {\n \n \n \n \n }" ]
[ "0.7854218", "0.77269185", "0.7725603", "0.76823974", "0.7675008", "0.7622501", "0.76041096", "0.75954765", "0.75954765", "0.7590678", "0.7578286", "0.7480861", "0.7474409", "0.74523634", "0.7444163", "0.7444163", "0.7444163", "0.7444163", "0.7444163", "0.7440381", "0.7438568", "0.74364555", "0.74099606", "0.7401737", "0.74016523", "0.74016523", "0.74016523", "0.73904705", "0.73829466", "0.73805046", "0.73805046", "0.73805046", "0.737985", "0.7371127", "0.7366971", "0.73632205", "0.73474854", "0.73386997", "0.7334413", "0.7320086", "0.7318756", "0.7318756", "0.7318756", "0.7318756", "0.7318756", "0.7318756", "0.7318756", "0.7318403", "0.7318403", "0.7318403", "0.7318403", "0.7318403", "0.7318403", "0.7310228", "0.7296176", "0.7296176", "0.72919637", "0.72915024", "0.7287463", "0.7287463", "0.7287463", "0.7287463", "0.72866803", "0.7286289", "0.7269209", "0.7267254", "0.7266321", "0.7260848", "0.7260848", "0.7257379", "0.72524244", "0.7243008", "0.7243008", "0.72378457", "0.7232859", "0.72244406" ]
0.73110497
73
Will contain some common methods later on. Yet, we need to see how we can work out with the future Chess lib we'll be using.
void init(@NotNull final AIEngine engine);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void makeBoardChess() {\r\n \r\n white = new AllPiece(\"White\");\r\n black = new AllPiece(\"Black\");\r\n \r\n }", "private ChessPieceGUIFactory() {\r\n\r\n\t}", "public Chess() {\n\t\t// TODO Auto-generated constructor stub\n\t\tchessBoard = new int[BOARD_LENGTH][BOARD_LENGTH];\n\t\tpieces = new AbstractPiece[BOARD_NUM_PIECES];\n\t\toldPosition = new Point();\n\t\tokToMove = false;\n\t\tpieceCounter = 0;\n\t\tpieceChosen = 0;\n\t\tnumClicks = 0; \n\t}", "public interface IPiece {\n\n /**\n * Retrieve the current color that is assigned\n * to this chess piece.\n * @return Color representation of what\n * color the piece is.\n */\n Color getColor();\n\n /**\n * Retrieve a list of all possible moves for\n * this chess piece.\n * @return List of moves.\n */\n List<ValidMove> getValidMoves();\n\n /**\n * Retrieve the current square that this\n * piece resides on.\n * @return this piece's currrent position.\n */\n Square getCurrentPosition();\n\n /**\n * Assign this piece to the current square\n * that it lives on.\n * @param currentPosition of the piece.\n */\n void setCurrentPosition(Square currentPosition);\n\n /**\n * Assign the board that this piece belongs\n * to. Used to determine valid move sets.\n * @param board that this piece is a member of.\n */\n void setBoard(Board board);\n\n /**\n * Get the move set for the implemented piece.\n * Used in determining next valid move sets.\n * @return the move set for this piece.\n */\n List<Moves> getMoveSet();\n}", "@Test\n public void testRookPosition() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(0, chessBoard.getPiece(0, 0).getRow());\n assertEquals(0, chessBoard.getPiece(0, 0).getColumn());\n\n assertEquals(0, chessBoard.getPiece(0, 7).getRow());\n assertEquals(7, chessBoard.getPiece(0, 7).getColumn());\n\n assertEquals(7, chessBoard.getPiece(7, 0).getRow());\n assertEquals(0, chessBoard.getPiece(7, 0).getColumn());\n\n assertEquals(7, chessBoard.getPiece(7, 7).getRow());\n assertEquals(7, chessBoard.getPiece(7, 7).getColumn());\n }", "public interface ChessUpdateCallback {\n void onChessUpdated();\n}", "public void initChessBoardAutomaticly() {\r\n\t\tthis.initPieces();\r\n\t\tthis.clearBoard();\r\n\t\tfor (int i=0; i<board.size(); i++) {\r\n\t\t\tChessBoardBlock b = board.get(order[i]);\r\n\t\t\tb.setBorderPainted(false);\r\n\t\t}\r\n\t\tfor (int i = 0, w = 0, b = 0, s = 0; i < 8 * 8; i++) {\r\n\r\n\t\t\t// Assign1, Disable board clickable\r\n\t\t\tChessBoardBlock block = board.get(order[i]);\r\n\t\t\tblock.setEnabled(false);\r\n\r\n\t\t\t// Assign1, Put black pieces and record the position\r\n\t\t\tif (i % 2 != 1 && i >= 8 && i < 16) {\r\n\t\t\t\tChessPiece blackPiece = blackPieces[b];\r\n\t\t\t\tblackPiece.position = order[i];\r\n\t\t\t\tpiece.put(order[i], blackPiece);\r\n\t\t\t\tbody.add(blackPiece);\r\n\t\t\t\tb++;\r\n\t\t\t} else if (i % 2 != 0 && (i < 8 || (i > 16 && i < 24))) {\r\n\t\t\t\tChessPiece blackPiece = blackPieces[b];\r\n\t\t\t\tblackPiece.position = order[i];\r\n\r\n\t\t\t\tpiece.put(order[i], blackPiece);\r\n\t\t\t\tbody.add(blackPiece);\r\n\t\t\t\tb++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Assign1, Put white pieces and record the position\r\n\t\t\telse if (i % 2 != 0 && i > 48 && i < 56) {\r\n\t\t\t\tChessPiece whitePiece = whitePieces[w];\r\n\t\t\t\twhitePiece.position = order[i];\r\n\t\t\t\tpiece.put(order[i], whitePiece);\r\n\t\t\t\tbody.add(whitePiece);\r\n\t\t\t\tw++;\r\n\t\t\t} else if (i % 2 != 1\r\n\t\t\t\t\t&& ((i >= 40 && i < 48) || (i >= 56 && i < 64))) {\r\n\t\t\t\tChessPiece whitePiece = whitePieces[w];\r\n\t\t\t\twhitePiece.position = order[i];\r\n\t\t\t\t\r\n\t\t\t\tpiece.put(order[i], whitePiece);\r\n\t\t\t\tbody.add(whitePiece);\r\n\t\t\t\tw++;\r\n\t\t\t}\r\n\r\n\t\t\t// Assign1, Put empty pieces on the board\r\n\t\t\t// Actually, empty pieces will not display on the board, they are\r\n\t\t\t// not existing\r\n\t\t\t// to chess players, just for calculation\r\n\t\t\telse {\r\n\t\t\t\tChessPiece spacePiece = spacePieces[s];\r\n\t\t\t\tspacePiece.position = order[i];\r\n\t\t\t\tbody.add(spacePiece);\r\n\t\t\t\tpiece.put(order[i], spacePiece);\r\n\t\t\t\tspacePiece.setVisible(false);\r\n\t\t\t\ts++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tt.setText(\"Chess Board has been initialized automatically\");\r\n\t\tthis.startGame();\r\n\t}", "public void run() {\n Scanner cin = new Scanner(System.in, \"UTF-8\");\n boolean quit = false;\n chess = new Chess();\n Player temp;\n boolean check = false;\n Pawnposition p = null;\n int checknew = 0;\n\n while (!quit) {\n System.out.print(\"Chess> \");\n String str = cin.nextLine();\n if (str.length() <= 0) {\n System.out.println(\"Error! Not support this command1!\\n\");\n }\n else {\n String[] cmd = str.split(\" \");\n if (\"new\".startsWith(cmd[0]) && cmd.length == 2) {\n if(cmd[1].equals(\"SINGLE\")||(cmd[1].equals(\"single\"))){\n chess = new Chess();\n checknew = 1;\n }\n if(cmd[1].equals(\"HOTSEAT\")){\n chess = new Chess();\n }\n }\n else if (\"help\".startsWith(cmd[0]) && cmd.length == 1) {\n this.showHelp();\n }\n else if (\"quit\".startsWith(cmd[0]) && cmd.length == 1) {\n return;\n }\n else if (\"move\".startsWith(cmd[0]) && cmd.length == 3) {\n Cell f = new Cell(this.inputChange(cmd[1].charAt(0)), this.inputChange(cmd[1].charAt(1)));\n Cell t = new Cell(this.inputChange(cmd[2].charAt(0)), this.inputChange(cmd[2].charAt(1)));\n\n check = chess.move(f, t);\n if (check == true) {\n if ((chess.getState().getWinner() == Player.BLACK) || (chess.getState().getWinner() == Player.WHITE)) {\n Player tempforwin = this.chess.getState().getCurrentPlayer();\n System.out.println(tempforwin + \" moved \" + cmd[1] + \" to \" + cmd[2]);\n System.out.println(\"Game over. \" + tempforwin + \" has won\");\n continue;\n }\n if (this.chess.getState().getCurrentPlayer() == Player.WHITE) {\n temp = Player.BLACK;\n System.out.println(temp + \" moved \" + cmd[1] + \" to \" + cmd[2]);\n }\n if (this.chess.getState().getCurrentPlayer() == Player.BLACK) {\n temp = Player.WHITE;\n System.out.println(temp + \" moved \" + cmd[1] + \" to \" + cmd[2]);\n if(checknew == 1) {\n p = this.chess.minmax(0, Player.BLACK);\n if (p == null) {\n System.out.println(\"Fehler bei p\");\n } else if (p.getresult() == 0) {\n System.out.println(\"Fehler bei p.r\");\n } else if (p.getcellt() == null) {\n System.out.println(\"Fehler bei p.getcellt\");\n } else if (p.getcellf() == null) {\n System.out.println(\"Fehler bei p.getcellf\");\n } else {\n this.chess.move(p.getcellf(), p.getcellt());\n }\n }\n }\n }\n if (this.chess.ifmiss() == false && chess.getState().getWinner() == null) {\n System.out.println(this.chess.getState().getCurrentPlayer() + \" must miss a turn\");\n this.chess.getState().setCurrentPlayer(this.chess.getState().getCurrentPlayer());\n }\n\n\n }\n else if (\"print\".startsWith(cmd[0]) && cmd.length == 1) {\n if (chess == null) {\n System.out.println(\"Error! Fehler chess\");\n }\n else {\n chess.print();\n }\n }\n else {\n System.out.println(\"Error! Not support this command!\");\n }\n }\n }\n }", "public ChessRunner(){\n\t\taddMouseListener(this);\n\t\tfor(int i=0;i<8;i++){\n\t\t\tfor (int j=1;j<7;j++)\n\t\t\t\tif(j==1)\n\t\t\t\t\tboard[i][j] = new BlackPawn();\n\t\t\t\telse if(j==6)\n\t\t\t\t\tboard[i][j] = new WhitePawn();\n\t\t\t\telse\n\t\t\t\t\tboard[i][j]= new BlankPiece();\n\t\t}\n\t\tboard[1][0] = new BlackKnight();\n\t\tboard[6][0] = new BlackKnight();\n\t\tboard[0][0] = new BlackRook();\n\t\tboard[7][0] = new BlackRook();\n\t\tboard[2][0] = new BlackBishop();\n\t\tboard[5][0] = new BlackBishop();\n\t\tboard[4][0] = new BlackKing();\n\t\tboard[3][0] = new BlackQueen();\n\t\t\n\t\tboard[1][7] = new WhiteKnight();\n\t\tboard[6][7] = new WhiteKnight();\n\t\tboard[0][7] = new WhiteRook();\n\t\tboard[7][7] = new WhiteRook();\n\t\tboard[2][7] = new WhiteBishop();\n\t\tboard[5][7] = new WhiteBishop();\n\t\tboard[4][7] = new WhiteKing();\n\t\tboard[3][7] = new WhiteQueen();\n\t\t\n\t}", "interface Cnst {\r\n\r\n /////////////////////////////////////////////////////////////\r\n // These constants can be changed to edit the big bang ran //\r\n /////////////////////////////////////////////////////////////\r\n\r\n //full size is eight, scales the size of the board\r\n int scale = 8;\r\n\r\n //numbers of blocks in a row and a column\r\n int blocks = 10;\r\n\r\n //number of colors the game will use, between 2-8 inclusive\r\n int numOfColors = 8;\r\n\r\n //the number of turns you have to win the game\r\n int maxTurns = 25;\r\n\r\n\r\n ////////////////////////////////////////\r\n // Please do not edit these constants //\r\n ////////////////////////////////////////\r\n\r\n //the visible board width, scales with scale\r\n int boardWidth = 70 * scale;\r\n\r\n //the visible board height, scales with scale\r\n int boardHeight = 70 * scale;\r\n\r\n //cell width scales with the board and scale\r\n int cellWidth = boardWidth / blocks;\r\n\r\n //cell height scales with board and scale\r\n int cellHeight = boardHeight / blocks;\r\n\r\n //new constant for text on the board\r\n int textHeight = boardWidth / 12;\r\n\r\n //the 8 colors that can be selected by the user\r\n ArrayList<Color> colorsToChoose =\r\n new ArrayList<Color>(Arrays.asList(\r\n Color.CYAN, Color.PINK, Color.ORANGE,\r\n Color.BLUE, Color.RED, Color.GREEN,\r\n Color.MAGENTA, Color.YELLOW));\r\n}", "public ChessBoard() {\n initComponents();\n createChessBoard();\n\n }", "public void initPieces() {\r\n\t\tfor (int i = 0; i < 64; i++) {\r\n\t\t\tif (i < 12) {\r\n\t\t\t\tblackPieces[i] = new ChessPiece(\"black\", \"\");\r\n\t\t\t\tblackPieces[i].setBackground(Color.BLACK);\r\n\t\t\t\tblackPieces[i].addMouseMotionListener(this);\r\n\t\t\t\tblackPieces[i].addMouseListener(this);\r\n\t\t\t\tblackPieces[i].setText(null);\r\n\t\t\t\twhitePieces[i] = new ChessPiece(\"white\", \"\");\r\n\t\t\t\twhitePieces[i].setBackground(Color.WHITE);\r\n\t\t\t\twhitePieces[i].addMouseMotionListener(this);\r\n\t\t\t\twhitePieces[i].addMouseListener(this);\r\n\t\t\t\twhitePieces[i].setText(null);\r\n\t\t\t}\r\n\t\t\tspacePieces[i] = new ChessPiece(\"empty\", \"\");\r\n\t\t\tspacePieces[i].setEnabled(false);\r\n\t\t\tspacePieces[i].setVisible(false);\r\n\t\t\tspacePieces[i].setText(null);\r\n\t\t}\r\n\t}", "public void paintComponent(Graphics g)\r\n {\r\n super.paintComponent(g);\r\n g2 = (Graphics2D) g;\r\n this.setBackground(Color.black);\r\n\r\n this.addMouseListener(this);\r\n this.addMouseMotionListener(this);\r\n Image chPieces;\r\n chPieces = new ImageIcon(\"C:/Users/eolochr/Desktop/backup/own/code/Ch/ChessPieces.png\").getImage();\r\n for (int x = 0; x < 8; x++)\r\n {\r\n for (int y = 0; y < 8; y++)\r\n {\r\n if ((x % 2 == 0 && y % 2 == 0) || (x % 2 == 1 && y % 2 == 1))\r\n {\r\n g.setColor(Color.white);\r\n }\r\n else if ((x % 2 == 0 && y % 2 == 1) || (x % 2 == 1 && y % 2 == 0))\r\n {\r\n g.setColor(Color.gray);\r\n }\r\n else\r\n {}\r\n g.fillRect(sizeOfSquare * x, sizeOfSquare * y, sizeOfSquare, sizeOfSquare);\r\n\r\n g.drawString(y + \"\", 420, 24 + (sizeOfSquare * y));\r\n g.drawString(x + \"\", 24 + (sizeOfSquare * x), 420);\r\n }\r\n\r\n }\r\n\r\n for (int i = 0; i < 64; i++) //taken, not my logic\r\n {\r\n int j = -1, k = -1;\r\n switch (Movements.chessBoard[i / 8][i % 8])\r\n {\r\n\r\n case \"R\":\r\n j = 2;\r\n k = 0;\r\n break;\r\n case \"P\":\r\n j = 5;\r\n k = 0;\r\n break;\r\n case \"K\":\r\n j = 4;\r\n k = 0;\r\n break;\r\n case \"B\":\r\n j = 3;\r\n k = 0;\r\n break;\r\n case \"Q\":\r\n j = 1;\r\n k = 0;\r\n break;\r\n case \"A\":\r\n j = 0;\r\n k = 0;\r\n break;\r\n\r\n case \"p\":\r\n j = 5;\r\n k = 1;\r\n break;\r\n case \"r\":\r\n j = 2;\r\n k = 1;\r\n break;\r\n case \"k\":\r\n j = 4;\r\n k = 1;\r\n break;\r\n case \"b\":\r\n j = 3;\r\n k = 1;\r\n break;\r\n case \"q\":\r\n j = 1;\r\n k = 1;\r\n break;\r\n case \"a\":\r\n j = 0;\r\n k = 1;\r\n break;\r\n\r\n }\r\n if (j != -1 && k != -1)\r\n {\r\n g.drawImage(chPieces, (i % 8) * sizeOfSquare, (i / 8) * sizeOfSquare, (i % 8 + 1) * sizeOfSquare, (i / 8 + 1) * sizeOfSquare, j * 64, k * 64, (j + 1) * 64,\r\n (k + 1) * 64, this);\r\n }\r\n }\r\n g.setColor(Color.GREEN);\r\n\r\n if (Movements.turnC)\r\n {\r\n g.drawString(\"White turn\", 150, 440);\r\n }\r\n else\r\n {\r\n g.drawString(\"Black turn\", 150, 440);\r\n }\r\n\r\n if(movement.length() > 3)\r\n {\r\n g.drawString(\"Selected square: \" + movement.charAt(0) + movement.charAt(1), 120, 460);\r\n }\r\n\r\n\r\n if (Movements.checkC)\r\n {\r\n g.drawString(\"Check white\", 240, 440);\r\n }\r\n else if (Movements.checkL)\r\n {\r\n g.drawString(\"Check black\", 240, 440);\r\n }\r\n\r\n }", "public void init(){ \n\t\tcreatePieces(); \n\t\taddMouseListener(ChessMousePressListener.getInstance(this));\n\t}", "public Cheats() {\n\t\tinitComponents();\n\t}", "@Test\n public void testRookSide() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(north, chessBoard.getPiece(0, 0).getSide());\n assertEquals(north, chessBoard.getPiece(0, 7).getSide());\n assertEquals(south, chessBoard.getPiece(7, 0).getSide());\n assertEquals(south, chessBoard.getPiece(7, 7).getSide());\n }", "private void initialSetup() {\n\t\tplaceNewPiece('a', 1, new Rook(board, Color.WHITE));\n placeNewPiece('b', 1, new Knight(board, Color.WHITE));\n placeNewPiece('c', 1, new Bishop(board, Color.WHITE));\n placeNewPiece('d', 1, new Queen(board, Color.WHITE));\n placeNewPiece('e', 1, new King(board, Color.WHITE, this)); // 'this' refere-se a esta jogada\n placeNewPiece('f', 1, new Bishop(board, Color.WHITE));\n placeNewPiece('g', 1, new Knight(board, Color.WHITE));\n placeNewPiece('h', 1, new Rook(board, Color.WHITE));\n placeNewPiece('a', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('b', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('c', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('d', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('e', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('f', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('g', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('h', 2, new Pawn(board, Color.WHITE, this));\n\n placeNewPiece('a', 8, new Rook(board, Color.BLACK));\n placeNewPiece('b', 8, new Knight(board, Color.BLACK));\n placeNewPiece('c', 8, new Bishop(board, Color.BLACK));\n placeNewPiece('d', 8, new Queen(board, Color.BLACK));\n placeNewPiece('e', 8, new King(board, Color.BLACK, this));\n placeNewPiece('f', 8, new Bishop(board, Color.BLACK));\n placeNewPiece('g', 8, new Knight(board, Color.BLACK));\n placeNewPiece('h', 8, new Rook(board, Color.BLACK));\n placeNewPiece('a', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('b', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('c', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('d', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('e', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('f', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('g', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('h', 7, new Pawn(board, Color.BLACK, this));\n\t}", "@Test\n public void testBishopPosition() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(0, chessBoard.getPiece(0, 2).getRow());\n assertEquals(2, chessBoard.getPiece(0, 2).getColumn());\n\n assertEquals(0, chessBoard.getPiece(0, 5).getRow());\n assertEquals(5, chessBoard.getPiece(0, 5).getColumn());\n\n assertEquals(7, chessBoard.getPiece(7, 2).getRow());\n assertEquals(2, chessBoard.getPiece(7, 2).getColumn());\n\n assertEquals(7, chessBoard.getPiece(7, 5).getRow());\n assertEquals(5, chessBoard.getPiece(7, 5).getColumn());\n }", "@Test\n public void testKnightPosition() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(0, chessBoard.getPiece(0, 1).getRow());\n assertEquals(1, chessBoard.getPiece(0, 1).getColumn());\n\n assertEquals(0, chessBoard.getPiece(0, 6).getRow());\n assertEquals(6, chessBoard.getPiece(0, 6).getColumn());\n\n assertEquals(7, chessBoard.getPiece(7, 1).getRow());\n assertEquals(1, chessBoard.getPiece(7, 1).getColumn());\n\n assertEquals(7, chessBoard.getPiece(7, 6).getRow());\n assertEquals(6, chessBoard.getPiece(7, 6).getColumn());\n }", "public static void main(String[] args) {\n\n chessGUI g = new chessGUI();\n\n /*\n // test Root-1\n System.out.println(\"Hello World!\");\n Board test = new Board();\n test.printBoard();\n Piece king1 = new King(1, new Position(2,2), test);\n Piece king2 = new King(1, new Position(1,1), test);\n Piece ROOK3 = new Rook(-1, new Position(1,2), test);\n test.putPieceOnBoard(king1.getRow(), king1.getCol(), king1);\n test.putPieceOnBoard(king2.getRow(), king2.getCol(), king2);\n test.putPieceOnBoard(ROOK3.getRow(), ROOK3.getCol(), ROOK3);\n test.printBoard();\n Object r = ROOK3;\n if (r instanceof Rook){\n System.out.println(\"r instanceof Rook\");\n //r = (Rook) r;\n //System.out.println(((King) k).getBoard()==null);\n //.printBoard();\n int result = ((Rook) r).judgeMove(3,2);\n System.out.println(\"result\"+result);\n }\n\n // test Bishop\n Board test = new Board();\n test.printBoard();\n Piece king1 = new King(1, new Position(2,2), test);\n Piece king2 = new King(-1, new Position(1,1), test);\n Piece king3 = new King(1, new Position(2,3), test);\n\n Piece bishop = new Bishop(-1, new Position(1,2), test);\n test.putPieceOnBoard(king1.getRow(), king1.getCol(), king1);\n test.putPieceOnBoard(king2.getRow(), king2.getCol(), king2);\n test.putPieceOnBoard(king3.getRow(), king3.getCol(), king3);\n test.putPieceOnBoard(bishop.getRow(), bishop.getCol(), bishop);\n test.printBoard();\n Object r = bishop;\n if (r instanceof Bishop){\n System.out.println(\"r instanceof Bishop\");\n // 2,1 == 0\n // 2,3 == 1\n // 4,5 == -3\n int result = ((Bishop) r).judgeMove(4,5);\n System.out.println(\"result\"+result);\n }\n\n\n // test Queen\n Board test = new Board();\n test.printBoard();\n Piece king1 = new King(1, new Position(2,2), test);\n Piece king2 = new King(-1, new Position(1,1), test);\n Piece king3 = new King(1, new Position(2,3), test);\n\n Piece queen = new Queen(-1, new Position(3,2), test);\n test.putPieceOnBoard(king1.getRow(), king1.getCol(), king1);\n test.putPieceOnBoard(king2.getRow(), king2.getCol(), king2);\n test.putPieceOnBoard(king3.getRow(), king3.getCol(), king3);\n test.putPieceOnBoard(queen.getRow(), queen.getCol(), queen);\n test.printBoard();\n Object r = queen;\n if (r instanceof Queen){\n System.out.println(\"r instanceof Queen\");\n // 4,3 == 0\n // 2,2 == 1\n // 1,4 == -3\n // 3,2 == -2\n\n // 1,4 == -3\n // 5,2 == 0\n // 5,4 == 0\n // 1,0 == 0\n\n // 0,2 == -3\n // 2,3 == 1\n\n }\n Piece king4 = new King(1, new Position(4,1), test);\n test.putPieceOnBoard(king4.getRow(), king4.getCol(), king4);\n test.printBoard();\n // 4,1 == 1\n // 5, 0 == -3\n // 5, 5 == -4\n int result = ((Queen) r).judgeMove(5,5);\n System.out.println(\"result\"+result);\n\n //test Knight\n Board test = new Board();\n test.printBoard();\n Piece king1 = new King(1, new Position(2,2), test);\n Piece king2 = new King(-1, new Position(1,1), test);\n Piece king3 = new King(1, new Position(2,3), test);\n Piece queen = new Queen(-1, new Position(3,3), test);\n Piece queen1 = new Queen(1, new Position(3,1), test);\n\n Piece knight = new Knight(-1, new Position(1,2), test);\n test.putPieceOnBoard(king1.getRow(), king1.getCol(), king1);\n test.putPieceOnBoard(king2.getRow(), king2.getCol(), king2);\n test.putPieceOnBoard(king3.getRow(), king3.getCol(), king3);\n test.putPieceOnBoard(queen.getRow(), queen.getCol(), queen);\n test.putPieceOnBoard(queen1.getRow(), queen1.getCol(), queen1);\n test.putPieceOnBoard(knight.getRow(), knight.getCol(), knight);\n test.printBoard();\n Object r = knight;\n if (r instanceof Knight){\n System.out.println(\"r instanceof Knight\");\n // 2,0 == 0\n // 3,1 == 1\n // 3,3 == -3\n // 2,3 == -4\n int result = ((Knight) r).judgeMove(3,1);\n System.out.println(\"result\"+result);\n }\n\n //test Pawn\n Board test = new Board();\n Piece king1 = new King(-1, new Position(2,2), test);\n Piece king2 = new King(-1, new Position(1,1), test);\n Piece king3 = new King(-1, new Position(3,3), test);\n Piece king4 = new King(1, new Position(4,0), test);\n\n Piece pawn = new Pawn(1, new Position(1,3), test);\n Piece pawn_1 = new Pawn(-1, new Position(5,1), test);\n test.putPieceOnBoard(king1.getRow(), king1.getCol(), king1);\n test.putPieceOnBoard(king2.getRow(), king2.getCol(), king2);\n test.putPieceOnBoard(king3.getRow(), king3.getCol(), king3);\n test.putPieceOnBoard(king4.getRow(), king4.getCol(), king4);\n test.putPieceOnBoard(pawn.getRow(), pawn.getCol(), pawn);\n test.putPieceOnBoard(pawn_1.getRow(), pawn_1.getCol(), pawn_1);\n\n test.printBoard();\n // pawn 2,2 = 1\n // pawn 2,3 = 0\n // pawn -3, 0 = -1\n // pawn 1,3 = -2\n // pawn 0,3 = -4\n // pawn 3,3 = -3\n\n\n //(Pawn) pawn).isFirstMove = 0;\n\n // pawn[-1] 6,1 = -4\n // pawn[-1] 4,0 = 1\n // pawn[-1] 4,1 = 0\n // pawn[-1] 3,1 = 0\n int result = ((Pawn) pawn_1).judgeMove(3,1);\n\n System.out.println(\"result\"+result);\n\n Board test = new Board();\n Piece king1 = new King(1, new Position(2,2), test);\n Piece king2 = new King(-1, new Position(1,1), test);\n Piece king3 = new King(1, new Position(2,3), test);\n Piece queen = new Queen(-1, new Position(3,3), test);\n Piece queen1 = new Queen(1, new Position(3,1), test);\n\n Piece rook = new Rook(-1, new Position(1,2), test);\n\n test.putPieceOnBoard(king1.getRow(), king1.getCol(), king1);\n test.putPieceOnBoard(king2.getRow(), king2.getCol(), king2);\n test.putPieceOnBoard(king3.getRow(), king3.getCol(), king3);\n test.putPieceOnBoard(queen.getRow(), queen.getCol(), queen);\n test.putPieceOnBoard(queen1.getRow(), queen1.getCol(), queen1);\n test.putPieceOnBoard(rook.getRow(), rook.getCol(), rook);\n test.printBoard();\n\n // 2,2 = 1\n // 1,3 = 0\n // 1,5 = 0\n // -1,0 = -1\n // 1,2 = -2\n // 1,0 = -3\n // 0,0 = -4\n int result = ((Rook) rook).judgeMove(1,3);\n\n System.out.println(\"result\"+result);\n */\n\n /* test startingBoard()\n Board board = new Board();\n board.startingBoard();\n board.printBoard();\n */\n\n //test pawnThread();\n /*\n Board board = new Board();\n Piece kingwhite = new King(1, new Position(2,2), board);\n Piece kingblack = new King(-1, new Position(5,2), board);\n Piece king3 = new King(1, new Position(3,4), board);\n Piece p1 = new Pawn(1, new Position(4,1), board);\n Piece p2 = new Pawn(-1, new Position(4,3), board);\n Piece p3 = new Pawn(1, new Position(3,1), board);\n Piece p4 = new Pawn(-1, new Position(1,1), board);\n\n board.putPieceOnBoard(kingwhite.getRow(),kingwhite.getCol(),kingwhite);\n board.putPieceOnBoard(kingblack.getRow(),kingblack.getCol(),kingblack);\n board.putPieceOnBoard(king3.getRow(), king3.getCol(), king3);\n board.putPieceOnBoard(p1.getRow(), p1.getCol(), p1);\n board.putPieceOnBoard(p2.getRow(), p2.getCol(), p2);\n board.putPieceOnBoard(p3.getRow(), p3.getCol(), p3);\n board.putPieceOnBoard(p4.getRow(), p4.getCol(), p4);\n\n board.printBoard();\n // true\n System.out.println(board.pawnThread(-1*kingblack.getColor(),kingblack.getRow(),kingblack.getCol()));\n // false\n System.out.println(board.pawnThread(-1*kingwhite.getColor(),kingwhite.getRow(),kingwhite.getCol()));\n // true\n System.out.println(board.pawnThread(-1*king3.getColor(),king3.getRow(),king3.getCol()));\n */\n\n //test kingThread();\n /*\n Board board = new Board();\n Piece king1 = new King(1, new Position(2,2), board);\n Piece king2 = new King(-1, new Position(5,2), board);\n\n Piece p1 = new King(1, new Position(3,2), board);\n Piece p2 = new King(-1, new Position(5,1), board);\n Piece p3 = new King(1, new Position(4,1), board);\n Piece p4 = new King(1, new Position(4,3), board);\n\n\n board.putPieceOnBoard(king1.getRow(),king1.getCol(),king1);\n board.putPieceOnBoard(king2.getRow(),king2.getCol(),king2);\n board.putPieceOnBoard(p1.getRow(), p1.getCol(), p1);\n board.putPieceOnBoard(p2.getRow(), p2.getCol(), p2);\n board.putPieceOnBoard(p3.getRow(), p3.getCol(), p3);\n board.putPieceOnBoard(p4.getRow(), p4.getCol(), p4);\n board.printBoard();\n //false\n System.out.println(board.kingThread(-1*king1.getColor(),king1.getRow(),king1.getCol()));\n //true\n System.out.println(board.kingThread(-1*king2.getColor(),king2.getRow(),king2.getCol()));\n //true\n System.out.println(board.kingThread(-1*p4.getColor(),p4.getRow(),p4.getCol()));\n //false\n System.out.println(board.kingThread(-1*p1.getColor(),p1.getRow(),p1.getCol()));\n */\n\n\n //test knightThread();\n /*\n Board board = new Board();\n Piece k1 = new King(1, new Position(2,2), board);\n Piece k2 = new King(-1, new Position(5,2), board);\n Piece k3 = new King(-1, new Position(6,4), board);\n\n Piece p1 = new Knight(-1, new Position(0,3), board);\n Piece p2 = new Knight(-1, new Position(5,1), board);\n Piece p3 = new Knight(1, new Position(4,1), board);\n Piece p4 = new Knight(1, new Position(4,4), board);\n\n\n board.putPieceOnBoard(k1.getRow(),k1.getCol(),k1);\n board.putPieceOnBoard(k2.getRow(),k2.getCol(),k2);\n board.putPieceOnBoard(k3.getRow(),k3.getCol(),k3);\n board.putPieceOnBoard(p1.getRow(), p1.getCol(), p1);\n board.putPieceOnBoard(p2.getRow(), p2.getCol(), p2);\n board.putPieceOnBoard(p3.getRow(), p3.getCol(), p3);\n board.putPieceOnBoard(p4.getRow(), p4.getCol(), p4);\n board.printBoard();\n //true\n System.out.println(board.knightThread(-1*k1.getColor(),k1.getRow(),k1.getCol()));\n //true\n System.out.println(board.knightThread(-1*k2.getColor(),k2.getRow(),k2.getCol()));\n //false\n System.out.println(board.knightThread(-1*k3.getColor(),k3.getRow(),k3.getCol()));\n */\n\n //test bishopQueenThread();\n/*\n Board board = new Board();\n //board.bishopQueenThread(1, 3,4);\n\n Piece k1 = new King(1, new Position(2,2), board);\n Piece k2 = new King(-1, new Position(5,2), board);\n Piece k3 = new King(1, new Position(6,4), board);\n\n Piece p1 = new Bishop(-1, new Position(0,3), board);\n Piece p2 = new Bishop(-1, new Position(5,1), board);\n Piece p3 = new Bishop(1, new Position(3,0), board);\n Piece p4 = new Bishop(1, new Position(4,4), board);\n Piece p5 = new Bishop(-1, new Position(5,5), board);\n\n\n board.putPieceOnBoard(k1.getRow(),k1.getCol(),k1);\n board.putPieceOnBoard(k2.getRow(),k2.getCol(),k2);\n board.putPieceOnBoard(k3.getRow(),k3.getCol(),k3);\n board.putPieceOnBoard(p1.getRow(), p1.getCol(), p1);\n board.putPieceOnBoard(p2.getRow(), p2.getCol(), p2);\n board.putPieceOnBoard(p3.getRow(), p3.getCol(), p3);\n board.putPieceOnBoard(p4.getRow(), p4.getCol(), p4);\n board.putPieceOnBoard(p5.getRow(), p5.getCol(), p5);\n board.printBoard();\n //false\n System.out.println(board.bishopQueenThread(-1*k1.getColor(),k1.getRow(),k1.getCol()));\n //true\n System.out.println(board.bishopQueenThread(-1*k2.getColor(),k2.getRow(),k2.getCol()));\n //true\n System.out.println(board.bishopQueenThread(-1*k3.getColor(),k3.getRow(),k3.getCol()));\n */\n\n //test rookQueenThread\n\n /*\n Piece k1 = new King(1, new Position(2,2), board);\n Piece k2 = new King(1, new Position(5,2), board);\n Piece k3 = new King(-1, new Position(6,4), board);\n\n Piece p1 = new Rook(-1, new Position(0,3), board);\n Piece p2 = new Rook(-1, new Position(5,1), board);\n Piece p3 = new Rook(1, new Position(3,0), board);\n Piece p4 = new Rook(1, new Position(4,4), board);\n Piece p5 = new Rook(-1, new Position(5,5), board);\n\n\n board.putPieceOnBoard(k1.getRow(),k1.getCol(),k1);\n board.putPieceOnBoard(k2.getRow(),k2.getCol(),k2);\n board.putPieceOnBoard(k3.getRow(),k3.getCol(),k3);\n board.putPieceOnBoard(p1.getRow(), p1.getCol(), p1);\n board.putPieceOnBoard(p2.getRow(), p2.getCol(), p2);\n board.putPieceOnBoard(p3.getRow(), p3.getCol(), p3);\n board.putPieceOnBoard(p4.getRow(), p4.getCol(), p4);\n board.putPieceOnBoard(p5.getRow(), p5.getCol(), p5);\n board.printBoard();\n //false\n System.out.println(board.rookQueenThread(-1*k1.getColor(),k1.getRow(),k1.getCol()));\n //true\n System.out.println(board.rookQueenThread(-1*k2.getColor(),k2.getRow(),k2.getCol()));\n //true\n System.out.println(board.rookQueenThread(-1*k3.getColor(),k3.getRow(),k3.getCol()));\n */\n\n\n }", "@Override\n\tpublic void catchPiece() {\n\t\t\n\t}", "public void initializeBoard() {\n\n\t\t/*\n\t\t * How the array coordinates align with the actual chess board\n\t\t * (row,col) \n\t\t * (7,0) ... ... ... \n\t\t * (7,7) ... ... ... \n\t\t * ... ... ... \n\t\t * (2,0) ...\n\t\t * (1,0) ... \n\t\t * (0,0) ... ... ... (0,7)\n\t\t */\n\n\t\tboolean hasMoved = false;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set white piece row\n\t\tboard[0][0] = new Piece('r', white, hasMoved, 0, 0, PieceArray.A_rookId);\n\t\tboard[0][1] = new Piece('n', white, hasMoved, 0, 1, PieceArray.B_knightId);\n\t\tboard[0][2] = new Piece('b', white, hasMoved, 0, 2, PieceArray.C_bishopId);\n\t\tboard[0][3] = new Piece('q', white, hasMoved, 0, 3, PieceArray.D_queenId);\n\t\tboard[0][4] = new Piece('k', white, hasMoved, 0, 4, PieceArray.E_kingId);\n\t\tboard[0][5] = new Piece('b', white, hasMoved, 0, 5, PieceArray.F_bishopId);\n\t\tboard[0][6] = new Piece('n', white, hasMoved, 0, 6, PieceArray.G_knightId);\n\t\tboard[0][7] = new Piece('r', white, hasMoved, 0, 7, PieceArray.H_rookId);\n\n\t\t// Set white pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[1][i] = new Piece('p', white, hasMoved, 1, i, i + 8);\n\t\t}\n\n\t\t// Set empty rows\n\t\tfor (int row = 2; row < 6; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\t// Set black pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[6][i] = new Piece('p', black, hasMoved, 6, i, i+8);\n\t\t}\n\n\t\t// Set black piece row\n\t\tboard[7][0] = new Piece('r', black, hasMoved, 7, 0, PieceArray.A_rookId);\n\t\tboard[7][1] = new Piece('n', black, hasMoved, 7, 1, PieceArray.B_knightId);\n\t\tboard[7][2] = new Piece('b', black, hasMoved, 7, 2, PieceArray.C_bishopId);\n\t\tboard[7][3] = new Piece('q', black, hasMoved, 7, 3, PieceArray.D_queenId);\n\t\tboard[7][4] = new Piece('k', black, hasMoved, 7, 4, PieceArray.E_kingId);\n\t\tboard[7][5] = new Piece('b', black, hasMoved, 7, 5, PieceArray.F_bishopId);\n\t\tboard[7][6] = new Piece('n', black, hasMoved, 7, 6, PieceArray.G_knightId);\n\t\tboard[7][7] = new Piece('r', black, hasMoved, 7, 7, PieceArray.H_rookId);\n\t}", "private void setupChessBoard() {\n add(announcementBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(currentGamesBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(chatRoomBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(friendsListBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(leaderboardBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(settingsBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n }", "public ChessPiece getPiece(){return piece;}", "public interface ChessPieceLabel {\n //black pieces\n String BLACK_KING = \"\\u265A\";\n String BLACK_QUEEN = \"\\u265B\";\n String BLACK_ROOK = \"\\u265C\";\n String BLACK_BISHOP = \"\\u265D\";\n String BLACK_KNIGHT = \"\\u265E\";\n String BLACK_PAWN = \"\\u265F\";\n String BLACK_FERZ = \"\\u2660\";\n String BLACK_THREELEAPER = \"\\u2663\";\n\n //white pieces\n String WHITE_KING = \"\\u2654\";\n String WHITE_QUEEN = \"\\u2655\";\n String WHITE_ROOK = \"\\u2656\";\n String WHITE_BISHOP = \"\\u2657\";\n String WHITE_KNIGHT = \"\\u2658\";\n String WHITE_PAWN = \"\\u2659\";\n String WHITE_FERZ = \"\\u2664\";\n String WHITE_THREELEAPER = \"\\u2667\";\n}", "public abstract void process(final King pKing, final Piece pPiece, final Chess pChess);", "@Test\n public void testKingPosition() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(0, chessBoard.getPiece(0, 4).getRow());\n assertEquals(4, chessBoard.getPiece(0, 4).getColumn());\n\n assertEquals(7, chessBoard.getPiece(7, 4).getRow());\n assertEquals(4, chessBoard.getPiece(7, 4).getColumn());\n }", "@Test\n public void testRookLabel() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(\"R\", chessBoard.getPiece(0, 0).getLabel());\n assertEquals(\"R\", chessBoard.getPiece(0, 7).getLabel());\n assertEquals(\"R\", chessBoard.getPiece(7, 0).getLabel());\n assertEquals(\"R\", chessBoard.getPiece(7, 7).getLabel());\n }", "public void createPieces(){ \n\t\tfor(int x = 0; x<BOARD_LENGTH; x++){\n\t\t\tfor(int y = 0; y<BOARD_LENGTH; y++){ \n\t\t\t\tif(CHESS_MAP[x][y] != (null)){\n\t\t\t\t\tswitch (CHESS_MAP[x][y]){\n\t\t\t\t\tcase KING:\n\t\t\t\t\t\tpieces[pieceCounter] = new King(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase QUEEN:\n\t\t\t\t\t\tpieces[pieceCounter] = new Queen(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase BISHOP:\n\t\t\t\t\t\tpieces[pieceCounter] = new Bishop(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase KNIGHT:\n\t\t\t\t\t\tpieces[pieceCounter] = new Knight(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PAWN:\n\t\t\t\t\t\tpieces[pieceCounter] = new Pawn(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ROOK:\n\t\t\t\t\t\tpieces[pieceCounter] = new Rook(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} \n\t\t\t\t\tsetPieceIconAndName(x, y, CHESS_MAP[x][y]); \t\n\t\t\t\t\tpieceCounter++;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}", "public interface JavaFXChessBoardDisplay {\n\n //region ABSTRACT METHODS\n /**\n * <p>Displays an empty square.</p>\n *\n * @param button the button that is used for the chessboard square\n * @param row the row of this square on the board\n * @param column the column of this square on the board\n * @since 1.0\n */\n void displayEmptySquare(Button button, int row, int column);\n\n /**\n * <p>Displays a nonempty square.</p>\n *\n * @param button the button that is used for the chessboard square\n * @param row the row of this square on the board\n * @param column the column of this square on the board\n * @param piece the piece that is on this square\n * @since 1.0\n */\n void displayFilledSquare(Button button, int row, int column, ChessPiece piece);\n\n /**\n * <p>Adds or removes a highlight from a square on the JavaFX chessboard.</p>\n *\n * @param highlight if the square should be highlighted or not\n * @param button the button that is used for the chessboard square\n * @param row the row of this square on the board\n * @param column the column of this square on the board\n * @param piece the piece (if any) that is on this square\n * @since 1.0\n */\n void highlightSquare(boolean highlight, Button button, int row, int column, ChessPiece piece);\n\n /**\n * <p>Highlights the central piece in red if it's in check.</p>\n *\n * @param highlight if the square should be highlighted or not\n * @param button the button that is used for the chessboard square\n * @param row the row of this square on the board\n * @param column the column of this square on the board\n * @param piece the central piece\n * @since 1.0\n */\n void highlightCheckSquare(boolean highlight, Button button, int row, int column, CenterPiece piece);\n //endregion\n\n //region DEFAULT METHODS\n /**\n * <p>Returns the initial size of a square on the chess board, initially set to 1/20 of the width of the screen.</p>\n *\n * @return the size of a square\n * @since 1.0\n */\n default int getSquareSize() {\n return java.awt.Toolkit.getDefaultToolkit().getScreenSize().width / 20;\n }\n\n /**\n * <p>Returns if all of the possible moves should be displayed for a <code>ChessPiece</code>.</p>\n *\n * @return <code>true</code> if all of the possible moves should be displayed\n * @since 1.0\n */\n default boolean shouldDisplayPossibleMoves() {\n return false;\n }\n //endregion\n}", "@Test\n public void getColorTest() {\n assertTrue(red_piece.getColor() == Piece.Color.RED);\n assertTrue(white_piece.getColor() == Piece.Color.WHITE);\n }", "@Test\n public void testPawnPosition() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n // compare the position of the pawn on the table to the correct position\n for (int i = 0; i < 8; ++i) {\n assertEquals(1, chessBoard.getPiece(1, i).getRow());\n assertEquals(i, chessBoard.getPiece(1, i).getColumn());\n\n assertEquals(6, chessBoard.getPiece(6, i).getRow());\n assertEquals(i, chessBoard.getPiece(6, i).getColumn());\n }\n }", "@Test\n public void isRedTest() {\n assertTrue(red_piece.isRed());\n assertTrue(!white_piece.isRed());\n }", "public SwingChessBoard init(String input) {\n if (input.toUpperCase().equals(\"CHESS\")) {\n return SwingGameMain.initEuropeanChess(south);\n }\n else if (input.toUpperCase().equals(\"XIANQI\")) {\n return SwingGameMain.initXianqi(south);\n }\n return null;\n }", "private Color updateYourBoardHelper(int i, int j) {\n if (i == 0 && j == 0) {\n return Color.BLACK;\n }\n if (i == 0 || j == 0) {\n return Color.GRAY;\n }\n if (arePlayerShipsInitialized()) {\n try{\n TileStatus[][] b = p2.getPlayerStatusBoard();\n Color c = new Color(0);\n switch (b[j][i]) {\n case SHIP:\n case SUBSCANSHIP:\n case AIRCRAFTSCAN:\n switch (p2.getPlayerShipBoard()[j][i][0]) {\n case AIRCRAFTCARRIER:\n c = CARRIER_COLOR;\n break;\n case BATTLESHIP:\n c = BATTLESHIP_COLOR;\n break;\n case DESTROYER:\n c = DESTROYER_COLOR;\n break;\n case SUBMARINE:\n c = SUBMARINE_COLOR;\n break;\n case PATROLBOAT:\n c = PATROLBOAT_COLOR;\n break;\n default:\n break;\n }\n switch (p2.getPlayerShipBoard()[j][i][1]) {\n case AIRCRAFT1:\n if (!(((Aircraft) p2.getShip(5)).launched())) {\n c = AIRCRAFT1_COLOR;\n }\n break;\n case AIRCRAFT2:\n if (!(((Aircraft) p2.getShip(6)).launched())) {\n c = AIRCRAFT2_COLOR;\n }\n break;\n default:\n break;\n }\n break;\n case HIT:\n c = Color.RED;\n break;\n case MISS:\n c = Color.WHITE;\n break;\n case SUBSCANEMPTY:\n c = Color.CYAN;\n break;\n default:\n c = Color.DARK_GRAY;\n break;\n }\n return c;\n }catch(java.lang.NullPointerException n){\n System.err.println(\"Null pointer where p2 should be\");\n for(int ii=0; ii<7; ii++){\n for(int jj=0; jj<3; jj++){\n System.out.print(playerShips[ii][jj]+ \" \");\n }\n System.out.println();\n }\n// System.exit(1);\n return Color.DARK_GRAY;\n }\n } else{\n Color c = Color.DARK_GRAY;\n switch (yourBoard[i][j][0]) {\n case CR:\n if(yourBoard[i][j][1]==Statuses.AC1){\n c = AIRCRAFT1_COLOR;\n }else if(yourBoard[i][j][1]==Statuses.AC2){\n c = AIRCRAFT2_COLOR;\n }else{\n c = CARRIER_COLOR;\n }\n break;\n case BS:\n c = BATTLESHIP_COLOR;\n break;\n case DES:\n c = DESTROYER_COLOR;\n break;\n case SUB:\n c = SUBMARINE_COLOR;\n break;\n case PB:\n c = PATROLBOAT_COLOR;\n break;\n default:\n c = Color.DARK_GRAY;\n break;\n }\n return c;\n }\n }", "public void styleFinder() {\n switch (style) {\n case BLACK_TANK -> styleImage = BLACK_TANK_IMAGE;\n case SAND_TANK -> styleImage = SAND_TANK_IMAGE;\n case RED_TANK -> styleImage = RED_TANK_IMAGE;\n case BLUE_TANK -> styleImage = BLUE_TANK_IMAGE;\n case GREEN_TANK -> styleImage = GREEN_TANK_IMAGE;\n case BLACK_INVINCIBLE_TANK -> styleImage = BLACK_INVINCIBLE_TANK_IMAGE;\n case SAND_INVINCIBLE_TANK -> styleImage = SAND_INVINCIBLE_TANK_IMAGE;\n case RED_INVINCIBLE_TANK -> styleImage = RED_INVINCIBLE_TANK_IMAGE;\n case BLUE_INVINCIBLE_TANK -> styleImage = BLUE_INVINCIBLE_TANK_IMAGE;\n case GREEN_INVINCIBLE_TANK -> styleImage = GREEN_INVINCIBLE_TANK_IMAGE;\n }\n }", "@Override\r\n\tpublic void getLegalMoves() {\r\n\t\tint pawnX = this.getX();\r\n\t\tint pawnY = this.getY();\r\n\t\tchar pawnColor = getColor();\r\n\t\tTile[][] chessBoard = SimpleChess.getChessBoard();\r\n\t\tcheckInFront(chessBoard,pawnX,pawnY,pawnColor);\r\n\t\tcheckDiagonal(chessBoard,pawnX,pawnY,pawnColor);\r\n\t}", "public Piece[][] createStandardChessboard(Player whitePlayer, Player blackPlayer) {\t\t\r\n\t\tPiece[][] start_board = {\r\n\t\t\t\t{new Rook(0,0,blackPlayer), new Knight(1,0,blackPlayer), new Bishop(2,0,blackPlayer), new Queen(3,0,blackPlayer),new King(4,0,blackPlayer), new Bishop(5,0,blackPlayer), new Knight(6,0,blackPlayer), new Rook(7,0,blackPlayer)},\r\n\t\t\t\t{new Pawn(0,1,blackPlayer), new Pawn(1,1,blackPlayer), new Pawn(2,1,blackPlayer), new Pawn(3,1,blackPlayer),new Pawn(4,1,blackPlayer), new Pawn(5,1,blackPlayer), new Pawn(6,1,blackPlayer), new Pawn(7,1,blackPlayer)},\r\n\t\t\t\t{null, null, null, null,null, null, null, null},\r\n\t\t\t\t{null, null, null, null,null, null, null, null},\r\n\t\t\t\t{null, null, null, null,null, null, null, null},\r\n\t\t\t\t{null, null, null, null,null, null, null, null},\r\n\t\t\t\t{new Pawn(0,6,whitePlayer), new Pawn(1,6,whitePlayer), new Pawn(2,6,whitePlayer), new Pawn(3,6,whitePlayer),new Pawn(4,6,whitePlayer), new Pawn(5,6,whitePlayer), new Pawn(6,6,whitePlayer), new Pawn(7,6,whitePlayer)},\r\n\t\t\t\t{new Rook(0,7,whitePlayer), new Knight(1,7,whitePlayer), new Bishop(2,7,whitePlayer), new Queen(3,7,whitePlayer),new King(4,7,whitePlayer), new Bishop(5,7,whitePlayer), new Knight(6,7,whitePlayer), new Rook(7,7,whitePlayer)}\r\n\t\t};\r\n\t\treturn start_board;\r\n\t}", "public void isPawnPromotion(AbstractPiece pawn) { // aixo va en pawn noperque ha de crear una nova instancia abstracta xD aki nose no tinc clar\n\t\tString newPiece;\n\t\tboolean finished = false;\n\n\t\tString fileName;\n\t\tString fileExt = \".gif\";\n\t\tString filePackagePath = \"chess/icon/\"; \n\n\t\tPieceColor pColor = pawn.getColor();\n\n\t\twhile (!finished) {\n\t\t\tnewPiece = JOptionPane\n\t\t\t\t\t.showInputDialog(\"Choose a new piece Q / R / B / K\"); \n\n\t\t\tswitch(newPiece){\n\t\t\tcase \"Q\": \n\t\t\t\tpieces[pieceChosen] = new Queen(pawn.getPieceID(), pawn.getPosition(), pawn.getColumnRow(), true, false, BOARD_PIECE_LENGTH, false);\n\t\t\t\tfinished = true;\n\t\t\t\tbreak;\n\t\t\tcase \"R\": \n\t\t\t\tpieces[pieceChosen] = new Rook(pawn.getPieceID(), pawn.getPosition(), pawn.getColumnRow(), true, false, BOARD_PIECE_LENGTH, false);\n\t\t\t\tfinished = true;\n\t\t\t\tbreak;\n\t\t\tcase \"B\":\n\t\t\t\tpieces[pieceChosen] = new Bishop(pawn.getPieceID(), pawn.getPosition(), pawn.getColumnRow(), true, false, BOARD_PIECE_LENGTH, false);\n\t\t\t\tfinished = true;\n\t\t\t\tbreak;\n\t\t\tcase \"K\": \n\t\t\t\tpieces[pieceChosen] = new Knight(pawn.getPieceID(), pawn.getPosition(), pawn.getColumnRow(), true, false, BOARD_PIECE_LENGTH, false);\n\t\t\t\tfinished = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Error: promote error option!\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(finished){ \n\t\t\t\tString color = pColor.equals(PieceColor.WHITE) ? \"w\" : \"b\"; \n\t\t\t\tfileName = filePackagePath+color+pieces[pieceChosen].getName()+fileExt;\n\t\t\t\tpieces[pieceChosen].setPieceIcon(getImage(getCodeBase(), fileName));\n\t\t\t\tpieces[pieceChosen].setColor(pColor);\n\t\t\t} \n\t\t} \n\t}", "@Test\n public void testKnightSide() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(north, chessBoard.getPiece(0, 1).getSide());\n assertEquals(north, chessBoard.getPiece(0, 6).getSide());\n assertEquals(south, chessBoard.getPiece(7, 1).getSide());\n assertEquals(south, chessBoard.getPiece(7, 6).getSide());\n }", "public abstract void buildMoveData(ChessBoard board);", "public Chessboard(Context context, String sn) {\n super(context);\n setOnTouchListener(this);\n getHolder().addCallback(this);\n board = new ArrayList<>();\n pieces = new ArrayList<>();\n selected = new ArrayList<>();\n points = new int[]{0, 0};\n thread = new chessMainThread(getHolder(), this);\n setFocusable(true);\n whiteTurn = true;\n gameOn = true;\n textPaint = new Paint();\n textPaint.setColor(Color.WHITE);\n textPaint.setTextSize(60);\n\n sessionName = sn;\n\n database = FirebaseDatabase.getInstance();\n DatabaseReference chessRef = database.getReference(\"chess/\" + sessionName + \"/chessMove\");\n chessRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n // format - xOrigin,yOrigin/xDest,yDest\n String value = snapshot.getValue(String.class);\n if(!(value == null)){\n String[] values = value.split(\"/\"); // 5,4/3,2/true -> [5,4][3,2][true]\n String[] originVal = values[0].split(\",\");\n String[] destVal = values[1].split(\",\");\n int[] origin = new int[]{Integer.parseInt(originVal[0]), Integer.parseInt(originVal[1])};\n int[] destination = new int[]{Integer.parseInt(destVal[0]), Integer.parseInt(destVal[1])};\n movePieceFromDB(origin, destination);\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n //something something error\n }\n });\n }", "@Test\n public void testNullIcon() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n // compare the icon of the piece on the table to the correct icon\n for (int i = 0; i < 8; ++i) {\n assertEquals(null, chessBoard.getPiece(0, i).getIcon());\n assertEquals(null, chessBoard.getPiece(1, i).getIcon());\n assertEquals(null, chessBoard.getPiece(6, i).getIcon());\n assertEquals(null, chessBoard.getPiece(7, i).getIcon());\n }\n }", "@Test\n void zigzaggerScenario() throws IllegalAccessException {\n Board board = new Board();\n Pawn whitePawn = (Pawn) board.getPiece(new BoardPosition(\"B2\"));\n\n assertor.drawBoard(board);\n assertor.movePiece(board, \"B2\", \"B4\");\n assertor.movePiece(board, \"C7\", \"C5\");\n assertor.movePiece(board, \"B4\", \"C5\");\n assertThat(board.getPiece(new BoardPosition(\"C5\")).equals(whitePawn),\n true, String.format(\"%s attacked pawn at C5\", whitePawn));\n\n assertor.movePiece(board, \"B7\", \"B5\");\n assertThat((int) ChessAssertor.accessPrivateMethodValuers(\n board.getPiece(new BoardPosition(\"B5\")), \"getMovementCount\") == 1,\n true, \"The black pawn is moved once after white pawn's move\");\n assertThat(whitePawn.isEnPassable(board, new BoardPosition(\"B6\")),\n true, \"White pawn is able to en-pass black pawn\");\n\n assertor.movePiece(board, \"C5\", \"B6\");\n assertThat(!board.isOccupied(new BoardPosition(\"B5\")),\n true, \"Black pawn has been en-passed by white pawn\");\n\n Pawn blackPawnFirstMover = (Pawn) board.getPiece(new BoardPosition(\"A7\"));\n assertor.movePiece(board, \"A7\", \"B6\");\n assertThat(board.getPiece(new BoardPosition(\"B6\")).equals(blackPawnFirstMover),\n true, \"Black pawn attacked white pawn at their first move immediately\");\n }", "@Test\n public void testGetChessBoard() {\n assertEquals(chess.getChessBoard(), board);\n }", "public void iconSetup(){\r\n chessboard.addRedIcon(\"Assets/PlusR.png\");\r\n chessboard.addRedIcon(\"Assets/TriangleR.png\");\r\n chessboard.addRedIcon(\"Assets/ChevronR.png\");\r\n chessboard.addRedIcon(\"Assets/SunR.png\"); \r\n chessboard.addRedIcon(\"Assets/ArrowR.png\");\r\n \r\n chessboard.addBlueIcon(\"Assets/PlusB.png\");\r\n chessboard.addBlueIcon(\"Assets/TriangleB.png\");\r\n chessboard.addBlueIcon(\"Assets/ChevronB.png\");\r\n chessboard.addBlueIcon(\"Assets/SunB.png\");\r\n chessboard.addBlueIcon(\"Assets/ArrowB.png\");\r\n }", "@Test\n\t\tpublic void testGetColour() {\n\t\t\tgreenSix = new Card (Card.Colour.Green, 6);\n\t\t\tblueSix = new Card (Card.Colour.Blue, 6);\n\t\t\twild = new Card (Card.Wild.Wild);\n\t\t\twild_Draw4 = new Card (Card.Wild.WildDraw4);\n\t\t\tblueSkip = new Card(Card.Colour.Blue, Card.Action.Skip);\n\t\t\tredDraw2 = new Card(Card.Colour.Red, Card.Action.Draw2);\n\t\t\tgreenReverse = new Card (Card.Colour.Green, Card.Action.Reverse);\n\t\t\tassertEquals(\"black\", wild.getColour());\n\t\t\tassertEquals(\"black\", wild_Draw4.getColour());\n\t\t\tassertEquals(\"Blue\", blueSkip.getColour());\n\t\t\tassertEquals(\"Red\", redDraw2.getColour());\n\t\t\tassertEquals(\"Green\", greenReverse.getColour());\n\t\t}", "public void skystonePos6() {\n }", "private void initializeBoard() {\n\t\t\n\t}", "@Test\n public void testBishopSide() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(north, chessBoard.getPiece(0, 2).getSide());\n assertEquals(north, chessBoard.getPiece(0, 5).getSide());\n assertEquals(south, chessBoard.getPiece(7, 2).getSide());\n assertEquals(south, chessBoard.getPiece(7, 5).getSide());\n }", "@Test\n public void testKingSide() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(north, chessBoard.getPiece(0, 4).getSide());\n assertEquals(south, chessBoard.getPiece(7, 4).getSide());\n }", "public interface PieceInterface {\n\tpublic Moves getPossibleMoves(Board board);\n\tpublic boolean isPieceThreateningPosition(int pos, Piece[] squares);\n\t//public List<Move> getPossibleMovesWithValue(Board board, int[] valueTable);\n}", "public void newGame() {\n \tturn = PieceColor.White;\n \t\n \t//the middle are empty squares\n \tfor(int i = 2; i < 6; i++) {\n \t\tfor(int j = 0; j < 8; j++) {\n \t\t\tsetPiece(j, i, new NoPiece(j, i));\n \t\t}\n \t}\n \t\n \t//pawns\n \tfor(int i = 0; i < 8; i++) {\n \t\t//make these pawns\n \t\tsetPiece(i, 1, new Pawn(i, 1, PieceColor.White, this));\n \t\tsetPiece(i, 6, new Pawn(i, 6, PieceColor.Black, this));\n \t}\n \t\n \t//white back row\n \tsetPiece(0, 0, new Rook(0, 0, PieceColor.White, this));\n \tsetPiece(1, 0, new Knight(1, 0, PieceColor.White, this));\n \tsetPiece(2, 0, new Bishop(2, 0, PieceColor.White, this));\n \tsetPiece(3, 0, new Queen(3, 0, PieceColor.White, this));\n \tsetPiece(4, 0, new King(4, 0, PieceColor.White, this));\n \tsetPiece(5, 0, new Bishop(5, 0, PieceColor.White, this));\n \tsetPiece(6, 0, new Knight(6, 0, PieceColor.White, this));\n \tsetPiece(7, 0, new Rook(7, 0, PieceColor.White, this));\n \t\n \t//black back row\n \tsetPiece(0, 7, new Rook(0, 7, PieceColor.Black, this));\n \tsetPiece(1, 7, new Knight(1, 7, PieceColor.Black, this));\n \tsetPiece(2, 7, new Bishop(2, 7, PieceColor.Black, this));\n \tsetPiece(3, 7, new Queen(3, 7, PieceColor.Black, this));\n \tsetPiece(4, 7, new King(4, 7, PieceColor.Black, this));\n \tsetPiece(5, 7, new Bishop(5, 7, PieceColor.Black, this));\n \tsetPiece(6, 7, new Knight(6, 7, PieceColor.Black, this));\n \tsetPiece(7, 7, new Rook(7, 7, PieceColor.Black, this));\n \t\n \t//store locations of king so they can be checked\n \twKing = new Square(4, 0);\n \tbKing = new Square(4, 7);\n }", "public static void main(String[] args) {\n Chess x = new Chess();\n //Ad 7\n classC c = new classC();\n //Ad 8\n Cat kot1 = new Cat();\n Cat kot2 = new Cat(\"Kotelel\");\n //Ad 9\n Stem stem1 = new Stem();\n //Ad 10\n StemMod stem1Mod = new StemMod(6);\n\n }", "public abstract void colorChecker(Color c);", "private void initPieceColors(){\n\t\tfor(Piece p : this.pieces)\n\t\t\tpieceColors.put(p, Utils.randomColor());\n\t}", "private void init() {\n\t\tpossibleFlips = new HashSet<Square>();\n\t\t\n\t\tfor (int i = 0; i < dimensions.x; ++i) {\n\t\t\tfor (int j = 0; j < dimensions.y; ++j) {\n\t\t\t\tboard[i][j] = new Square(Square.SquareType.Empty, i, j, this);\n\t\t\t}\n\t\t}\n\t\tswitch (boardType) {\n\t\tcase Tiny:\n\t\t\tplacePiece(new Square(Square.SquareType.Red, 2, 2, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Black, 3, 2, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Red, 3, 3, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Black, 2, 3, this));\n\t\t\tbreak;\n\t\tcase Standard:\n\t\t\tplacePiece(new Square(Square.SquareType.Red, 3, 3, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Black, 4, 3, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Red, 4, 4, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Black, 3, 4, this));\n\t\t\tbreak;\n\t\tcase Giant:\n\t\t\tplacePiece(new Square(Square.SquareType.Red, 5, 5, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Black, 6, 5, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Red, 6, 6, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Black, 5, 6, this));\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tsetHighlightedSquare(0, 0);\n\t\t// Calculate possible moves with black to play\n\t\tCalculatePossibleMoves(true);\n\t}", "@Test\r\n public void testMain() {\r\n System.out.println(\"main\");\r\n String[] args = null;\r\n ChessMain.main(args);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "void init() {\r\n\r\n map = new HashMap<Square, Piece>();\r\n for (Square sq: INITIAL_ATTACKERS) {\r\n map.put(sq, BLACK);\r\n }\r\n for (Square sq: INITIAL_DEFENDERS) {\r\n map.put(sq, WHITE);\r\n }\r\n king = sq(4, 4);\r\n map.put(king, KING);\r\n for (int i = 0; i <= 8; i++) {\r\n for (int j = 0; j <= 8; j++) {\r\n if (!map.containsKey(sq(i, j))) {\r\n map.put(sq(i, j), EMPTY);\r\n }\r\n }\r\n }\r\n\r\n board = new Piece[9][9];\r\n\r\n for (Square keys : map.keySet()) {\r\n board[keys.col()][keys.row()] = map.get(keys);\r\n }\r\n }", "public static void main(String[] args)\n {\n // put your code here\n //display an initial menu on the screen describe what the program is about\n \n System.out.println(\"This is Game Of Chess\");\n //initialize a new chessGame\n chessGame NewGame=new chessGame(\"Player1\",\"Player2\");\n int counter=0;//setup counter=0\n int Srow = 0; //inititalize the Srow that will be asked equal to 0\n int Scol= 0;//inititalize the Scol that will be asked equal to 0\n //retrieve and display the chessBoard from this initialized game\n NewGame.board.PrintChessBoard();\n //keep on asking the user to move the knight to a new location until “quit” is typed in\n //each time the knight is moved, display the board with the new location\n \n while(true)\n { // Scans the next token of the input as an line\n System.out.println(\"Press Enter to Play the game OR Type 'quit' and Press Enter to end the game OR Type 'reset' and Press enter to restart the game\");\n Scanner reader = new Scanner(System.in); // Reading from System.in\n String start = reader.nextLine();\n \n if(start.equals(\"quit\")==true)\n { System.out.println(\"Thank You for the playing the game.\");\n System.exit(0);\n }else if(start.equals(\"reset\")== true){//reset case.if user types reset\n System.out.println(\"The Game has been successfully reset.\");//show the error message\n System.out.println();//gaps\n System.out.println();//gaps\n String[] arg ={};//setup a new argument of string\n playGame.main(arg);//and call the main function again with the new argument{}\n \n }else{\n \n if(counter %2 == 0){//player turns\n System.out.println(\"Player 1's turn\");\n \n do{\n System.out.println(\"Enter any value for source row from 0-7\");\n Srow=reader.nextInt();\n while(Srow < 0 || Srow > 7 ){\n System.out.println(\"Out of bound Values!. Enter any value for source row from 0-7: \");\n Srow = reader.nextInt(); \n }\n System.out.println(\"Enter any value for source column from 0-7\");\n Scol=reader.nextInt();\n while(Scol < 0 || Scol > 7){ \n System.out.println(\"Out of bound Values!. Enter any value for source column from 0-7\");\n Scol = reader.nextInt();\n } \n if(NewGame.getBoard().isPieceAt (Srow, Scol) == true && \"Player1\".equals(NewGame.board.getPieceAt(new ChessLocation(Srow,Scol)).getOwner())== false){\n System.out.println();\n System.out.println(\"Not Your turn\");\n System.out.println(\"Player 1's turn\");\n }\n if(NewGame.board.isPieceAt(Srow,Scol) == false){\n System.out.println(\"Unfortunately,there is no piece at the location\");\n }\n \n \n }while(NewGame.getBoard().isPieceAt (Srow, Scol) == false || \"Player1\".equals(NewGame.board.getPieceAt(new ChessLocation(Srow,Scol)).getOwner())== false);\n System.out.println(\"Enter any value for destination row from 0-7\");\n int Drow=reader.nextInt();\n while(Drow < 0 || Drow > 7){\n System.out.println(\"Out of bound values!. Enter any value for destination row from 0-7\");\n Drow = reader.nextInt();\n }\n System.out.println(\"Enter any value for destination column from 0-7\");\n int Dcol=reader.nextInt();\n while(Dcol < 0 || Dcol > 7){\n System.out.println(\"Out of bound values!. Enter any value for destination column from 0-7\");\n Dcol = reader.nextInt();\n }\n if(NewGame.getBoard().isPieceAt(Srow,Scol)==true){\n if( NewGame.getBoard().getPieceAt(new ChessLocation(Srow,Scol)).checkLineOfSight(new ChessLocation(Srow,Scol),new ChessLocation(Drow,Dcol))==true && NewGame.getBoard().isPieceAt(Drow,Dcol)== false){\n NewGame.board.getPieceAt(new ChessLocation(Srow,Scol)).moveto(new ChessLocation(Drow,Dcol));\n counter++;\n }else if(NewGame.getBoard().isPieceAt(Drow,Dcol)==true){\n NewGame.board.getPieceAt(new ChessLocation(Srow,Scol)).moveto(new ChessLocation(Drow,Dcol));\n counter++;\n }\n }else if(NewGame.getBoard().isPieceAt(Srow,Scol)==false){\n System.out.println(\"Unfortunately,there is no piece at the location\");\n }\n \n }else{\n System.out.println(\"Player 2's turn\");\n \n do{\n System.out.println(\"Enter any value for source row from 0-7\");\n Srow=reader.nextInt();\n while(Srow < 0 || Srow > 7 ){\n System.out.println(\"Out of bound Values!. Enter any value for source row from 0-7: \");\n Srow = reader.nextInt(); \n }\n System.out.println(\"Enter any value for source column from 0-7\");\n Scol=reader.nextInt();\n while(Scol < 0 || Scol > 7){ \n System.out.println(\"Out of bound Values!. Enter any value for source column from 0-7\");\n Scol = reader.nextInt();\n } \n if(NewGame.getBoard().isPieceAt (Srow, Scol) == true && \"Player2\".equals(NewGame.board.getPieceAt(new ChessLocation(Srow,Scol)).getOwner())== false){\n System.out.println();\n System.out.println(\"Not Your turn\");\n System.out.println(\"Player 2's turn\");\n }\n if(NewGame.board.isPieceAt(Srow,Scol) == false){\n System.out.println(\"Unfortunately,there is no piece at the location\");\n }\n }while(NewGame.getBoard().isPieceAt (Srow, Scol) == false || \"Player2\".equals(NewGame.board.getPieceAt(new ChessLocation(Srow,Scol)).getOwner())== false);\n System.out.println(\"Enter any value for destination row from 0-7\");\n int Drow=reader.nextInt();\n while(Drow < 0 || Drow > 7){\n System.out.println(\"Out of bound values!. Enter any value for destination row from 0-7\");\n Drow = reader.nextInt();\n }\n System.out.println(\"Enter any value for destination column from 0-7\");\n int Dcol=reader.nextInt();\n while(Dcol < 0 || Dcol > 7){\n System.out.println(\"Out of bound values!. Enter any value for destination column from 0-7\");\n Dcol = reader.nextInt();\n }\n if(NewGame.getBoard().isPieceAt(Srow,Scol)==true){\n if( NewGame.getBoard().getPieceAt(new ChessLocation(Srow,Scol)).checkLineOfSight(new ChessLocation(Srow,Scol),new ChessLocation(Drow,Dcol))==true && NewGame.getBoard().isPieceAt(Drow,Dcol)== false){\n NewGame.board.getPieceAt(new ChessLocation(Srow,Scol)).moveto(new ChessLocation(Drow,Dcol));\n counter++;\n }else if(NewGame.getBoard().isPieceAt(Drow,Dcol)==true){\n NewGame.board.getPieceAt(new ChessLocation(Srow,Scol)).moveto(new ChessLocation(Drow,Dcol));\n counter++;\n }\n }else if(NewGame.getBoard().isPieceAt(Srow,Scol)==false){\n System.out.println(\"Unfortunately,there is no piece at the location\");\n }\n }\n \n \n \n \n \n NewGame.board.PrintChessBoard();\n }\n \n }\n \n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "private void startNewGame(){\n if (selectedPiece!=null)\n selectedPiece.setBackground(getDefaultColor(selectedPiece));\n selectedPiece = null;\n setAllToDefaultColor();\n setDefulatMessage();\n board = new ChessBoard(1, false);\n for(int row = 0 ; row < ROWS; row++){\n for(int col = 0; col < COLS ; col++){\n setButtonIcon(row,col);\n }\n }\n }", "public Pawn(boolean c, Square p, Chess chess) {\n\t\tsuper(c, p, chess);\n\t}", "public void initiateBoardSecondaryColors(){\n\t\tremoveAllSeconderyColorsFromBoard();\n\t\tColoredTilesFactory coloredTilesFactory = new ColoredTilesFactory();\n\t\t// add 3 yellow tiles\n\t\tfor(int i=0 ; i<YELLOW_TILES_AMOUNT;i++) {\n\t\t\tTile randTile=null;\n\t\t\tdo {\n\t\t\t\trandTile= getRandomFreeTile();\n\t\t\t}while(coloredTilesList.contains(randTile));\n\t\t\tYellowTile yTile= (YellowTile) coloredTilesFactory.getColoredTile(randTile, SeconderyTileColor.YELLOW);\n\t\t\treplaceTileInSameTileLocation(yTile);\n\t\t\tcoloredTilesList.add(yTile);\n\n\t\t}\n\n\n\t\t//add red tiles\n\t\tif(canAddRedTile() && isThereLegalTilesNotColored()){\n\t\t\tArrayList<Tile> possibleRed=getPossibleRedTiles();\n\t\t\tTile randTile=null;\n\t\t\tif(possibleRed.size() > 0) {\n\t\t\t\tRandom rand=new Random();\n\t\t\t\tdo {\n\t\t\t\t\tint tempp = rand.nextInt(possibleRed.size());\n\t\t\t\t\trandTile= possibleRed.get(tempp);\n\t\t\t\t\tpossibleRed.remove(tempp);\n\t\t\t\t}while(coloredTilesList.contains(randTile) && !possibleRed.isEmpty());\n\t\t\t\tTile rTile =coloredTilesFactory.getColoredTile(randTile, SeconderyTileColor.RED);\n\t\t\t\treplaceTileInSameTileLocation(rTile);\n\t\t\t\tcoloredTilesList.add(rTile);\n\t\t\t}\n\t\t}\n\n\n\t\t// add blue tiles\n\t\tif(canAddBlueTile()){\n\n\t\t\tTile randTile=null;\n\t\t\tdo {\n\t\t\t\trandTile = getRandomFreeTile();\n\t\t\t}while(coloredTilesList.contains(randTile));\n\t\t\tBlueTile bTile =(BlueTile)coloredTilesFactory.getColoredTile(randTile, SeconderyTileColor.BLUE);\n\t\t\treplaceTileInSameTileLocation(bTile);\n\t\t\tcoloredTilesList.add(bTile);\n\t\t}\n\n\t}", "@Test\n public void testPawnSide() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n // compare the side of the pawn on the table to the correct side\n for (int i = 0; i < 8; ++i) {\n assertEquals(north, chessBoard.getPiece(1, i).getSide());\n assertEquals(south, chessBoard.getPiece(6, i).getSide());\n }\n }", "public static boolean m32282a(android.content.Context r6) {\n /*\n int r0 = android.os.Build.VERSION.SDK_INT\n r1 = 0\n r2 = 20\n if (r0 <= r2) goto L_0x0047\n if (r6 != 0) goto L_0x000a\n goto L_0x0047\n L_0x000a:\n r0 = 0\n android.content.res.Resources r2 = r6.getResources() // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n r3 = 2131100696(0x7f060418, float:1.781378E38)\n int r2 = r2.getColor(r3) // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n r3 = 2\n int[] r3 = new int[r3] // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n r3 = {16842904, 16842901} // fill-array // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n r4 = 2131886387(0x7f120133, float:1.9407351E38)\n android.content.res.TypedArray r6 = r6.obtainStyledAttributes(r4, r3) // Catch:{ Throwable -> 0x0042, all -> 0x003b }\n int r0 = r6.getColor(r1, r1) // Catch:{ Throwable -> 0x0043, all -> 0x0036 }\n if (r2 != r0) goto L_0x0030\n if (r6 == 0) goto L_0x002e\n r6.recycle() // Catch:{ Throwable -> 0x002e }\n L_0x002e:\n r6 = 1\n return r6\n L_0x0030:\n if (r6 == 0) goto L_0x0046\n L_0x0032:\n r6.recycle() // Catch:{ Throwable -> 0x0046 }\n goto L_0x0046\n L_0x0036:\n r0 = move-exception\n r5 = r0\n r0 = r6\n r6 = r5\n goto L_0x003c\n L_0x003b:\n r6 = move-exception\n L_0x003c:\n if (r0 == 0) goto L_0x0041\n r0.recycle() // Catch:{ Throwable -> 0x0041 }\n L_0x0041:\n throw r6\n L_0x0042:\n r6 = r0\n L_0x0043:\n if (r6 == 0) goto L_0x0046\n goto L_0x0032\n L_0x0046:\n return r1\n L_0x0047:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.ies.uikit.p578c.C11014a.m32282a(android.content.Context):boolean\");\n }", "public static void boardInit() {\n ArrayList<Piece> white_piece_list = new ArrayList<>();\n ArrayList<Piece> black_piece_list = new ArrayList<>();\n ArrayList<Piece> piece_array = PieceFactory.createPieces();\n for(Piece p : piece_array)\n {\n if(p.getColor())\n {\n black_piece_list.add(p);\n }\n else\n {\n white_piece_list.add(p);\n }\n }\n white_player.setpieceList(white_piece_list);\n white_player.setKingXYCoords(PieceFactory.KING_INITIAL_X, PieceFactory.INITAL_Y_COORD_WHITE_PLAYER_OTHER);\n black_player.setpieceList(black_piece_list);\n black_player.setKingXYCoords(PieceFactory.KING_INITIAL_X, PieceFactory.INITAL_Y_COORD_WHITE_PLAYER_OTHER + PieceFactory.DIST_BETWEEN_PIECES);\n }", "public void specialMove() {\n\t\tChessSquare initial = getSquare();\n\t\tChessSquare next;\n\t\t\n\t\tif(initial.getNorth() != null){\n\t\t\tnext = initial.getNorth();\n\t\t\t\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getEast() != null)\n\t\t\t\tif((next.getEast().getOccupant() == null) || (!next.getEast().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getWest() != null && next.getWest().getOccupant() == null)\n\t\t\t\tif((next.getWest().getOccupant() == null) || (!next.getWest().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t}\n\t\t\n\t\tif(initial.getSouth() != null){\n\t\t\tnext = initial.getSouth();\n\t\t\t\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getEast() != null)\n\t\t\t\tif((next.getEast().getOccupant() == null) || (!next.getEast().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t\tif(next.getWest() != null)\n\t\t\t\tif((next.getWest().getOccupant() == null) || (!next.getWest().getOccupant().getColor().equals(this.getColor())))\n\t\t\t\t\tnext.removeOccupant();\n\t\t\t\n\t\t}\n\t\t\n\t\tnext = initial.getEast();\n\t\tif(next != null)\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\tnext = initial.getWest();\n\t\tif(next != null)\n\t\t\tif((next.getOccupant() == null) || (!next.getOccupant().getColor().equals(this.getColor())))\n\t\t\t\tnext.removeOccupant();\n\t\tsetCountdown(9);\n\t}", "public ChessBoard() {\r\n\t\t\tsuper();\r\n\t\t\ttry {\r\n\t\t\t\tbgImage = ImageIO.read(new File(\"人人\\\\棋盘背景.png\"));\r\n\t\t\t\twImage = ImageIO.read(new File(\"人人\\\\白棋子.png\"));\r\n\t\t\t\tbImage = ImageIO.read(new File(\"人人\\\\黑棋子.png\"));\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\r\n\t\t\tthis.repaint();\r\n\t\t}", "@Override\r\n\tpublic boolean movement(BoardCells[][] chessBoard, Piece targetPiece, int fromX,int fromY,int toX,int toY) {\t\t\r\n\t\t//DEBUG -- System.out.println(\"\"+fromX+fromY+\" \"+toX+toY);\r\n\t\t\r\n\t\tif(fromY == toY){\t\t\t\r\n\t\t\tif(fromX > toX) {\r\n\t\t\t\tfor(int i = fromX-1; i>toX; i--) {\r\n\t\t\t\t\tif(chessBoard[8-fromY][i].getPiece() != null) {\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn false;\t\t\t\t\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t} else if (fromX < toX) {\r\n\t\t\t\tfor(int i = fromX+1; i<toX; i++) {\r\n\t\t\t\t\tif(chessBoard[8-fromY][i].getPiece() != null) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn false;\t\t\t\t\t\t\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(getPieceID().equals(\"bR\")) {\r\n\t\t\t\tfor(int i = 0; i<9 ;i++) {\r\n\t\t\t\t\tfor (int j = 0; j<9; j++){\r\n\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece() != null) {\r\n\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece().getPieceID().equals(\"bKc\")) {\r\n\t\t\t\t\t\t\t//Piece king = chessBoard[8-i][j].getPiece();\t\t\t\t\t\r\n\t\t\t\t\t\t\t//DEBUG -- System.out.println(king.getPieceID()+color+\" \"+king );\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tchessBoard[8-i][j].getPiece().setPieceID(\"bK\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif(getPieceID().equals(\"wR\")) {\r\n\t\t\t\tfor(int i = 0; i<9 ;i++) {\r\n\t\t\t\t\tfor (int j = 0; j<9; j++){\r\n\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece() != null) {\r\n\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece().getPieceID().equals(\"wKc\")) {\r\n\t\t\t\t\t\t\t//Piece king = chessBoard[8-i][j].getPiece();\t\t\t\t\t\r\n\t\t\t\t\t\t\t//DEBUG -- System.out.println(king.getPieceID()+color+\" \"+king );\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tchessBoard[8-i][j].getPiece().setPieceID(\"wK\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\tif(fromX == toX) {\t\t\t\t\r\n\t\t\tif(fromY > toY) {\t\r\n\t\t\t\tfor(int i = fromY-1; i>toY; i--) {\r\n\t\t\t\t\tif(chessBoard[8-i][toX].getPiece() != null) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn false;\t\t\t\t\t\t\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} else if (fromY < toY) {\t\t\t\t\r\n\t\t\t\tfor(int i = fromY+1; i<toY; i++) {\t\t\t\t\t\r\n\t\t\t\t\tif(chessBoard[8-i][toX].getPiece() != null) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn false;\t\t\t\t\t\t\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(getPieceID().equals(\"bR\")) {\r\n\t\t\t\t\tfor(int i = 0; i<9 ;i++) {\r\n\t\t\t\t\t\tfor (int j = 0; j<9; j++){\r\n\t\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece() != null) {\r\n\t\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece().getPieceID().equals(\"bKc\")) {\r\n\t\t\t\t\t\t\t\t//Piece king = chessBoard[8-i][j].getPiece();\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//DEBUG -- System.out.println(king.getPieceID()+color+\" \"+king );\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tchessBoard[8-i][j].getPiece().setPieceID(\"bK\");\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}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(getPieceID().equals(\"wR\")) {\r\n\t\t\t\t\tfor(int i = 0; i<9 ;i++) {\r\n\t\t\t\t\t\tfor (int j = 0; j<9; j++){\r\n\t\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece() != null) {\r\n\t\t\t\t\t\t\tif(chessBoard[8-i][j].getPiece().getPieceID().equals(\"wKc\")) {\r\n\t\t\t\t\t\t\t\t//Piece king = chessBoard[8-i][j].getPiece();\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//DEBUG -- System.out.println(king.getPieceID()+color+\" \"+king );\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tchessBoard[8-i][j].getPiece().setPieceID(\"wK\");\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}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\r\n\t\t\treturn true;\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\treturn false;\t\t\r\n\t}", "public void start() {\n clear();\n // Assigning chess pieces to players.\n whitePieces.add(new Piece(Owner.WHITE, Who.KING, Rank.R1, File.E));\n whitePieces.add(new Piece(Owner.WHITE, Who.QUEEN, Rank.R1, File.D));\n whitePieces.add(new Piece(Owner.WHITE, Who.ROOK, Rank.R1, File.A));\n whitePieces.add(new Piece(Owner.WHITE, Who.ROOK, Rank.R1, File.H));\n whitePieces.add(new Piece(Owner.WHITE, Who.BISHOP, Rank.R1, File.C));\n whitePieces.add(new Piece(Owner.WHITE, Who.BISHOP, Rank.R1, File.F));\n whitePieces.add(new Piece(Owner.WHITE, Who.KNIGHT, Rank.R1, File.B));\n whitePieces.add(new Piece(Owner.WHITE, Who.KNIGHT, Rank.R1, File.G));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.A));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.B));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.C));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.D));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.E));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.F));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.G));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.H));\n\n for (Piece p : whitePieces) {\n board[p.row.ordinal()][p.col.ordinal()] = p;\n }\n\n blackPieces.add(new Piece(Owner.BLACK, Who.KING, Rank.R8, File.E));\n blackPieces.add(new Piece(Owner.BLACK, Who.QUEEN, Rank.R8, File.D));\n blackPieces.add(new Piece(Owner.BLACK, Who.ROOK, Rank.R8, File.A));\n blackPieces.add(new Piece(Owner.BLACK, Who.ROOK, Rank.R8, File.H));\n blackPieces.add(new Piece(Owner.BLACK, Who.BISHOP, Rank.R8, File.C));\n blackPieces.add(new Piece(Owner.BLACK, Who.BISHOP, Rank.R8, File.F));\n blackPieces.add(new Piece(Owner.BLACK, Who.KNIGHT, Rank.R8, File.B));\n blackPieces.add(new Piece(Owner.BLACK, Who.KNIGHT, Rank.R8, File.G));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.A));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.B));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.C));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.D));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.E));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.F));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.G));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.H));\n\n for (Piece p : blackPieces) {\n board[p.row.ordinal()][p.col.ordinal()] = p;\n }\n\n whoseTurn = Owner.WHITE;\n canCastle = 15;\n passer = null;\n movesDone = lastEatMove = 0;\n }", "private PrngFixes() {\n }", "@Test\n void RookMoveToFriendlyOccupied() {\n Board board = new Board(8, 8);\n Piece rook1 = new Rook(board, 4, 3, 1);\n Piece rook2 = new Rook(board, 4, 6, 1);\n\n board.getBoard()[4][3] = rook1;\n board.getBoard()[4][6] = rook2;\n\n board.movePiece(rook1, 4, 6);\n\n Assertions.assertEquals(rook1, board.getBoard()[4][3]);\n Assertions.assertEquals(rook2, board.getBoard()[4][6]);\n }", "@Test\n\tpublic void testGetPieces() {\n\t\tPiece[] pieces = Piece.getPieces();\n\n assertTrue(pieces[Piece.S1].equals(s));\n assertTrue(pieces[Piece.L2].equals(l2));\n assertTrue(pieces[Piece.SQUARE].equals(square));\n assertTrue(pieces[Piece.PYRAMID].equals(pyr1));\n \n assertTrue(pieces[Piece.S1].fastRotation().equals(sRotated));\n assertFalse(pieces[Piece.S1].fastRotation().equals(s));\n \n assertTrue(pieces[Piece.L2].fastRotation().equals(l2Rotated));\n assertTrue(pieces[Piece.PYRAMID].fastRotation().equals(pyr2));\n \n\t}", "protected void mo6255a() {\n }", "public void boardSetUp(){\n\t}", "void showpos(pieces chesspiece)\n {if(chesspiece.alive == true)\n {\n int position = chesspiece.position;\n chesspiece.select = true;\n \n int x;int y;\n if((position+1)%8 == 0) {x = 8; y = (position+8)/8;}\n else{ x = (position+1)%8;\n y = (position+9)/8;}\n chesspiece.move(new moves(x,y));\n for( int a : chesspiece.movnum )\n {\n if ( chesspiece.color == 0)\n {\n if (Checkerboard.allWhitePositions.contains(a-1)== true)\n panel[a-1].setBackground(Color.GRAY);\n else if (Checkerboard.allBlackPositions.contains(a-1)== true)\n panel[a-1].setBackground(Color.RED);\n else\n panel[a-1].setBackground(Color.GREEN);\n }\n else\n {\n if (Checkerboard.allWhitePositions.contains(a-1)== true)\n panel[a-1].setBackground(Color.RED);\n else if (Checkerboard.allBlackPositions.contains(a-1)== true)\n panel[a-1].setBackground(Color.GRAY);\n else\n panel[a-1].setBackground(Color.GREEN);\n }\n \n }\n }//if(chesspiece.alive==true) ends\n }", "@Before\n\tpublic void setUpClass() throws Exception {\n\t\tgame = new Game();\n\t\tgame.board.addPiece(new Knight(PieceColor.BLACK, 0, 0));\n\t\tgame.board.addPiece(new Knight(PieceColor.WHITE, 0, 7));\n\t\tgame.board.addPiece(new Knight(PieceColor.BLACK, 7, 0));\n\t\tgame.board.addPiece(new Knight(PieceColor.WHITE, 7, 7));\n\t\tgame.board.addPiece(new Knight(PieceColor.BLACK, 0, 3));\n\t\tgame.board.addPiece(new Knight(PieceColor.WHITE, 3, 0));\n\t\tgame.board.addPiece(new Knight(PieceColor.BLACK, 7, 3));\n\t\tgame.board.addPiece(new Knight(PieceColor.WHITE, 3, 7));\n\t\tgame.board.addPiece(new Knight(PieceColor.WHITE, 4, 4));\n\t\tknightCorner1Black = (Knight) game.board.getPiece(0, 0);\n\t\tknightCorner1White = (Knight) game.board.getPiece(0, 7);\n\t\tknightCorner2Black = (Knight) game.board.getPiece(7, 0);\n\t\tknightCorner2White = (Knight) game.board.getPiece(7, 7);\n\t\tknightSide1Black = (Knight) game.board.getPiece(0, 3);\n\t\tknightSide1White = (Knight) game.board.getPiece(3, 0);\n\t\tknightSide2Black = (Knight) game.board.getPiece(7, 3);\n\t\tknightSide2White = (Knight) game.board.getPiece(3, 7);\n\t\tknightMiddleWhite = (Knight) game.board.getPiece(4, 4);\n\t}", "@Test\n public void testQueenPosition() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(0, chessBoard.getPiece(0, 3).getRow());\n assertEquals(3, chessBoard.getPiece(0, 3).getColumn());\n\n assertEquals(7, chessBoard.getPiece(7, 3).getRow());\n assertEquals(3, chessBoard.getPiece(7, 3).getColumn());\n }", "public interface Board {\n\n void setupBoard(int gridSize); //create the initial board\n\n String displayShotsTaken(); //return the board to print to screen showing shots taken, not boat location\n\n String displayMyBoard(); //return players board with ships;\n\n boolean takeShot(Point shot); //take a shot against this board\n\n boolean isGameOver(); //check if game is over.\n}", "public void initChessBoardManually() {\r\n\t\tstatus.setStatusEdit();\r\n\t\tclearBoard();\r\n\t\tthis.setBoardEnabled(true);\r\n\t\tfor (int i=0; i<8*8; i++) {\r\n\t\t\tChessBoardBlock block = board.get(order[i]);\r\n\t\t\tblock.setBorderPainted(false);\r\n\t\t}\r\n\t\tswitcher.setEnabled(true);\r\n\t\tconfirm.setEnabled(true);\r\n\t\tt.setText(\"<html>Please choose position to put the pieces.<br>Right click to set/cancel King flag</html>\");\r\n\t}", "@Before\r\n public void setup()\r\n {\r\n board = new Board();\r\n piece = new Pawn(WHITE);\r\n board.putPiece(piece, 0, 0);\r\n }", "@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}", "private boolean findChess(int x,int y){\r\n for(Point c:chessList){\r\n if(c!=null&&c.getX()==x&&c.getY()==y)\r\n return true;\r\n }\r\n return false;\r\n }", "public Game() {\n\t\tthis.board = new Board();\n\t\tthis.pieces = new HashMap<Chess.Color, List<Piece>>();\n\t\tthis.pieces.put(Chess.Color.WHITE, new ArrayList<Piece>());\n\t\tthis.pieces.put(Chess.Color.BLACK, new ArrayList<Piece>());\n\t\tthis.moveStack = new Stack<Move>();\n\t}", "public Piece getPiece(Square s) {\n \treturn this.getPiece(s.getX(), s.getY());\n }", "public static void initialize()\n {\n\n for(int i = 0; i < cellViewList.size(); i++)\n cellList.add(new Cell(cellViewList.get(i).getId()));\n for (int i = 76; i < 92; i++)\n {\n if (i < 80)\n {\n cellList.get(i).setChess(PlayerController.getPlayer(0).getChess(i-76));\n }\n else if (i < 84)\n {\n cellList.get(i).setChess(PlayerController.getPlayer(1).getChess(i-80));\n }\n else if (i < 88)\n {\n cellList.get(i).setChess(PlayerController.getPlayer(2).getChess(i-84));\n }\n else\n {\n cellList.get(i).setChess(PlayerController.getPlayer(3).getChess(i-88));\n }\n }\n }", "private static void play(Board chess, Scanner scan) {\r\n boolean whiteCanCastle = true;\r\n boolean blackCanCastle = true;\r\n\r\n // Get's user's choice\r\n // Split into the <old x position>, <old y position>, <new x position>, <new y position>\r\n for (int i = 0; i < 100; i++) {\r\n // Gets the user's requested move, moves the pieces (with move verification), and prints the final board\r\n int[] move = Tasks.getMove(chess, scan);\r\n boolean valid = chess.move(move[1], move[0], move[3], move[2], move[4], move[5]);\r\n if (move[4] == 99 && valid) {whiteCanCastle = false;}\r\n else if (move[4] == -99 && valid) {blackCanCastle = false;}\r\n chess.printBoard();\r\n }\r\n // System.out.println(\"50 Move Rule Exceeded!\\nGame Over!\");\r\n }", "final Piece get(Square s) {\r\n return get(s.col(), s.row());\r\n }", "void onCheck(Chess.Color inCheckColor);", "private void easyMove(Board board) {\n\t\t\r\n\t}", "void mo21072c();", "public static int ratePieceAvailability(){\n\t\tint rating=0, bishopCount=0;\n for (int i=0;i<64;i++) {\n switch (AlphaBeta.chessBoard[i/8][i%8]) {\n case \"P\": rating+=100;\n break;\n case \"R\": rating+=500;\n break;\n case \"K\": rating+=300;\n break;\n case \"B\": bishopCount++;\n break;\n case \"Q\": rating+=900;\n break;\n }\n }\n if (bishopCount>=2) {\n \trating+=300*bishopCount;\n } else {\n if (bishopCount==1) {rating+=250;}\n }\n return rating;\n\t}", "private static void cajas() {\n\t\t\n\t}", "public final void setPiece(String piece){\r\n switch (piece) {\r\n case \"black King\":\r\n {\r\n this.piece = new King(\"black King\");\r\n ImagePattern imagePattern = new ImagePattern(this.piece.getImage());\r\n space.setFill(imagePattern);\r\n break;\r\n }\r\n case \"black Rook\":\r\n {\r\n this.piece = new Rook(\"black Rook\");\r\n ImagePattern imagePattern = new ImagePattern(this.piece.getImage());\r\n space.setFill(imagePattern);\r\n break;\r\n }\r\n case \"black Knight\":\r\n {\r\n this.piece = new Knight(\"black Knight\");\r\n ImagePattern imagePattern = new ImagePattern(this.piece.getImage());\r\n space.setFill(imagePattern);\r\n break;\r\n }\r\n case \"black Bishop\":\r\n {\r\n this.piece = new Bishop(\"black Bishop\");\r\n ImagePattern imagePattern = new ImagePattern(this.piece.getImage());\r\n space.setFill(imagePattern);\r\n break;\r\n }\r\n case \"black Queen\":\r\n {\r\n this.piece = new Queen(\"black Queen\");\r\n ImagePattern imagePattern = new ImagePattern(this.piece.getImage());\r\n space.setFill(imagePattern);\r\n break;\r\n }\r\n case \"black Pawn\":\r\n {\r\n this.piece = new Pawn(\"black Pawn\");\r\n ImagePattern imagePattern = new ImagePattern(this.piece.getImage());\r\n space.setFill(imagePattern);\r\n break;\r\n }\r\n case \"white King\":\r\n {\r\n this.piece = new King(\"white King\");\r\n ImagePattern imagePattern = new ImagePattern(this.piece.getImage());\r\n space.setFill(imagePattern);\r\n break;\r\n }\r\n case \"white Rook\":\r\n {\r\n this.piece = new Rook(\"white Rook\");\r\n ImagePattern imagePattern = new ImagePattern(this.piece.getImage());\r\n space.setFill(imagePattern);\r\n break;\r\n }\r\n case \"white Knight\":\r\n {\r\n this.piece = new Knight(\"white Knight\");\r\n ImagePattern imagePattern = new ImagePattern(this.piece.getImage());\r\n space.setFill(imagePattern);\r\n break;\r\n }\r\n case \"white Bishop\":\r\n {\r\n this.piece = new Bishop(\"white Bishop\");\r\n ImagePattern imagePattern = new ImagePattern(this.piece.getImage());\r\n space.setFill(imagePattern);\r\n break;\r\n }\r\n case \"white Queen\":\r\n {\r\n this.piece = new Queen(\"white Queen\");\r\n ImagePattern imagePattern = new ImagePattern(this.piece.getImage());\r\n space.setFill(imagePattern);\r\n break;\r\n }\r\n case \"white Pawn\":\r\n {\r\n this.piece = new Pawn(\"white Pawn\");\r\n ImagePattern imagePattern = new ImagePattern(this.piece.getImage());\r\n space.setFill(imagePattern);\r\n break;\r\n }\r\n default:\r\n {\r\n this.piece = new Empty(\" \");\r\n ImagePattern imagePattern = new ImagePattern(this.piece.getImage());\r\n space.setFill(imagePattern);\r\n this.piece.color=\"empty\";\r\n this.piece.imageName=\"empty\";\r\n break;\r\n }\r\n }\r\n }", "public interface Piece {\n /**\n * @return the current square the piece is on\n */\n public Square getCurrent();\n \n /**\n * @param s the new position of the piece\n */\n public void setCurrent(Square s);\n\n /**\n * Determines the squares that this piece can reach from its current position\n * according to the rules of the given board\n *\n * @param b the board whose rules to use\n * @return the squares the piece can reach\n */\n public Set<Square> validDestinations(Board b);\n}", "@Test\n public void testQueenSide() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(north, chessBoard.getPiece(0, 3).getSide());\n assertEquals(south, chessBoard.getPiece(7, 3).getSide());\n }", "public void linkGamePieces() {\n for (int i = 0; i < this.width; i++) {\n for (int j = 0; j < this.height; j++) {\n this.board.get(i).get(j).linkGamePieceHelp(i, j, this.board);\n }\n }\n }", "@Test\n public void testBishopLabel() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(\"B\", chessBoard.getPiece(0, 2).getLabel());\n assertEquals(\"B\", chessBoard.getPiece(0, 5).getLabel());\n assertEquals(\"B\", chessBoard.getPiece(7, 2).getLabel());\n assertEquals(\"B\", chessBoard.getPiece(7, 5).getLabel());\n }", "public void cheat() {\r\n announce( \"cheat\" );\r\n }", "private stendhal() {\n\t}" ]
[ "0.6337476", "0.6251204", "0.59128475", "0.58589095", "0.58145463", "0.5682131", "0.5640929", "0.5628828", "0.56014085", "0.55899936", "0.5522541", "0.5503855", "0.54873985", "0.54227215", "0.5418127", "0.5414584", "0.54115075", "0.5406669", "0.5403611", "0.5366004", "0.53584236", "0.5351201", "0.5341462", "0.5339806", "0.5337009", "0.5302598", "0.529387", "0.52628934", "0.5262579", "0.5243516", "0.5230807", "0.5193963", "0.5190976", "0.51873714", "0.51689947", "0.516884", "0.51572216", "0.51521516", "0.5142284", "0.5131616", "0.51311034", "0.5131096", "0.5122851", "0.5117919", "0.5117043", "0.5108916", "0.5093076", "0.5092744", "0.50903624", "0.50895995", "0.5083459", "0.508197", "0.5077105", "0.50584334", "0.5032588", "0.50291955", "0.5015484", "0.50109005", "0.5004324", "0.49999127", "0.49984464", "0.49982435", "0.49968866", "0.49893892", "0.49886304", "0.49885768", "0.49878424", "0.49868286", "0.49863544", "0.49762967", "0.49730134", "0.49691367", "0.4968326", "0.49563617", "0.49562773", "0.49543542", "0.49499604", "0.4948987", "0.49472028", "0.4945111", "0.49433395", "0.49385726", "0.49375147", "0.49341685", "0.49294588", "0.49232143", "0.49222863", "0.49215782", "0.4921146", "0.4916089", "0.49154165", "0.49102163", "0.4909503", "0.49081606", "0.49017715", "0.488546", "0.48770654", "0.48752493", "0.4874158", "0.4871773", "0.4871293" ]
0.0
-1
optional int32 roleID = 1;
boolean hasRoleID();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getRoleid() {\r\n return roleid;\r\n }", "public Integer getRoleId() {\r\n return roleId;\r\n }", "public Long getRoleid() {\n return roleid;\n }", "public String getRoleid() {\n return roleid;\n }", "public String getRoleid() {\n return roleid;\n }", "public String getRoleid() {\n return roleid;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public void setRoleid(Integer roleid) {\r\n this.roleid = roleid;\r\n }", "public Long getRoleId() {\r\n return roleId;\r\n }", "public Integer getIdRole() {\n\t\treturn idRole;\n\t}", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public String getRoleId() {\n return roleId;\n }", "public String getRoleId() {\n return roleId;\n }", "public String getRoleId() {\n return roleId;\n }", "public String getRole() { return this.role; }", "public String getRoleId()\r\n\t{\r\n\t\treturn roleId;\r\n\t}", "public BigDecimal getRoleId() {\r\n return roleId;\r\n }", "int getParticipantRoleValue();", "public Byte getRole() {\n return role;\n }", "public int getRoleId() {\r\n\t\treturn roleId;\r\n\t}", "public Integer getRoleId() {\n\t\treturn roleId;\n\t}", "public Integer getRole() {\n\t\treturn role;\n\t}", "public interface Role {\n int getId();\n int getPerson();\n int getType();\n String getName();\n int getRole();\n String getCode();\n int getPosition();\n String getPosition_name();\n}", "public void setRole(String role)\n {\n _role=role;\n }", "public void setRole(Integer role) {\n\t\tthis.role = role;\n\t}", "public void setRoleId(Integer roleId) {\r\n this.roleId = roleId;\r\n }", "String getRole();", "String getRole();", "void addRoleToUser(int userID,int roleID);", "public Integer getRolePid() {\n return rolePid;\n }", "public Role getRoleById(int id);", "public Long getRoleId() {\n\t\treturn roleId;\n\t}", "public String getRole() {\r\n return role;\r\n }", "public Role getRole()\n {\n return role;\n }", "public SecRole getRoleById(Long role_Id);", "long addUserRole(UserRole userRole);", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRole(String role) {\r\n this.role = role;\r\n }", "@Override\r\n\tpublic int addRole(Role role) {\n\t\treturn 0;\r\n\t}", "com.message.MessageInfo.RoleVO getRole();", "public Role getByRoleId(long roleId);", "public String getRole() {\n return this.role;\n }", "public String getRole()\n\t{\n\t\treturn role;\n\t}", "public void setRole(String role) {\r\n this.role = role;\r\n }", "public Long getRolemenuid() {\n return rolemenuid;\n }", "public void setRole(Byte role) {\n this.role = role;\n }", "@Override\n public String getRoleProperty() {\n return \"visibleAtRole.id\";\n }", "UsercontrollerRole selectByPrimaryKey(Integer roleId);", "public void setRoleid(Long roleid) {\n this.roleid = roleid;\n }", "public GraphNode addRole(String role){\n\t\tInteger intValue = addElement(role, 2);\n\t\t//System.out.println(role + \" Added with : \" + intValue);\n\t\tGraphNode roleVar = new GraphNode(intValue, 2);\n\t\tauthGraph.addVertex(roleVar);\n\t\treturn roleVar;\n\t}", "@Override\r\n\tpublic int updRole(Role role) {\n\t\treturn 0;\r\n\t}", "public void setRole(String role) {\n this.role = role;\n }", "int insert(User_Role record);", "public String getRolecode() {\n return rolecode;\n }", "public AXValue getRole() {\n return role;\n }", "@Override\n\tpublic void addRole(Role role) {\n\t\tSnowflakeIdWorker idWorker = new SnowflakeIdWorker(0, 0);\n\t\tlong id = idWorker.nextId();\n\t\trole.setRoleid(Long.toString(id));\n\t\troleMapper.addRole(role);\n\t}", "public String getRole() {\r\n\t\treturn role;\r\n\t}", "public void setRoleId(Long roleId) {\r\n this.roleId = roleId;\r\n }", "@Override\n\tpublic String getRole() {\n\t\treturn role;\n\t}", "public void setRole(java.lang.String value) {\n this.role = value;\n }", "public String getRoleCode() {\n return roleCode;\n }", "public void setRolePid(Integer rolePid) {\n this.rolePid = rolePid;\n }", "Role findById(int id);", "public int getRolesRolId() throws DataStoreException {\r\n return getInt(ROLES_ROL_ID);\r\n }", "User_Role selectByPrimaryKey(Integer id);", "public java.lang.String getRole() {\n return role;\n }", "public MetaRole getMetaRole(int iRole);", "String computeRole();", "public void setRoleId(Integer roleId) {\n\t\tthis.roleId = roleId;\n\t}", "public DBSequence getRoleId() {\n return (DBSequence)getAttributeInternal(ROLEID);\n }", "public void setRole(String role) {\r\n\t\tthis.role = role;\r\n\t}", "@Override\r\n\tpublic String definedRole() {\n\t\treturn DEF_ROLE;\r\n\t}", "int insert(UsercontrollerRole record);", "public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Long roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(String roleId)\r\n\t{\r\n\t\tthis.roleId = roleId;\r\n\t}", "public void setRoleId(int roleId) {\r\n\t\tthis.roleId = roleId;\r\n\t}", "public Byte getUserRole() {\r\n return userRole;\r\n }", "public void setRoleId(String roleId) {\n this.roleId = roleId;\n }", "String roleName();", "public void setRole(String role) {\n\t\tthis.role = role;\n\t}" ]
[ "0.76416016", "0.736617", "0.7307109", "0.728708", "0.728708", "0.728708", "0.7281736", "0.7281736", "0.7281736", "0.7281736", "0.7281736", "0.7281736", "0.7281736", "0.7281736", "0.71495926", "0.705764", "0.7033932", "0.6986356", "0.6986356", "0.6986356", "0.6986356", "0.69775647", "0.69775647", "0.69775647", "0.69586235", "0.6947488", "0.6926574", "0.6916899", "0.68984824", "0.6847143", "0.6837383", "0.68268746", "0.6825806", "0.67916375", "0.6783848", "0.67602533", "0.67487067", "0.67487067", "0.6717708", "0.66828674", "0.6674188", "0.6633945", "0.66318583", "0.6631351", "0.6626606", "0.66116077", "0.6578743", "0.6578743", "0.6578743", "0.6578743", "0.6578743", "0.6578743", "0.6578743", "0.6578743", "0.65390307", "0.64891887", "0.6482072", "0.6476133", "0.6473425", "0.6463225", "0.64623535", "0.6455432", "0.64539623", "0.6427436", "0.6424861", "0.64228666", "0.6393304", "0.63671076", "0.63665974", "0.6354076", "0.63372684", "0.63353753", "0.6329267", "0.6326427", "0.63213664", "0.63134843", "0.63092756", "0.6302506", "0.62904584", "0.6282301", "0.6269146", "0.62599236", "0.6227687", "0.62227094", "0.62020415", "0.6198229", "0.619308", "0.61885023", "0.6164054", "0.61567825", "0.6144603", "0.6144603", "0.6144603", "0.6144603", "0.61336493", "0.6124246", "0.6123996", "0.6107479", "0.60932153", "0.6080835" ]
0.68040895
33
optional int64 resMineInstanceID = 2;
boolean hasResMineInstanceID();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getInstanceID();", "String getInstanceID();", "int getSimObjID();", "long getSteamID();", "private static int nextInstanceID()\n {\n return baseID.incrementAndGet();\n }", "public int getBigId () { return bigId; }", "public String getMaternalID();", "public int getId(){\r\n return localId;\r\n }", "private long getInitId() {\n if (self.getQuorumVerifier().getVotingMembers().containsKey(self.getMyId())) {\n return self.getMyId();\n } else {\n return Long.MIN_VALUE;\n }\n }", "int getIdInstance();", "public int getR_Request_ID();", "boolean hasResMineID();", "long getCaptureFestivalId();", "public int getExtendedID()\r\n/* 12: */ {\r\n/* 13:17 */ return 10;\r\n/* 14: */ }", "int getSnId();", "int getSnId();", "int getSnId();", "int getSnId();", "public int getiid(){\r\n return Iid;\r\n }", "public String getInstId() {\r\n return instId;\r\n }", "public int getExtendedID()\r\n/* 50: */ {\r\n/* 51: 39 */ return 0;\r\n/* 52: */ }", "public abstract long mo20901UQ();", "private Long createId() {\n return System.currentTimeMillis() % 1000;\n }", "public int getSpid(){\n return localSpid;\n }", "public byte getId() {\n return 2;\n }", "com.google.protobuf.ByteString getRegistIdBytes();", "@Override\n public Long call() {\n long id0 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.hashCode();\n long id1 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.toString();\n long id2 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.equals(ref);\n long id3 = InstanceIdentifier.INSTANCE.getId(ref);\n if (!(id0 == id1 && id1 == id2 && id2 == id3)) {\n\n return (long) -1;\n }\n\n return Long.valueOf(id0);\n }", "public int getInstanceId(){\n\t\treturn this._instanceId;\n\t}", "public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }", "public int getObjectId()\r\n/* 71: */ {\r\n/* 72:152 */ return this.objectId;\r\n/* 73: */ }", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getScheduleID() {return mScheduleID; }", "long getNoId();", "public int getUniqueID() { \n return -1;\n }", "public abstract long getSdiId();", "public int getInstanceID()\n {\n return super.getPersistenceID();\n }", "public String getUniqueID ( ) { return _uniqueID; }", "public long getId(){return this.id;}", "String mo10312id();", "Integer getID();", "Integer getID();", "int getMyId();", "int getInstanceId();", "int getInstanceId();", "int getInstanceId();", "public int getR_id() { return r_id; }", "private static long newId() {\n return REQUEST_ID.getAndIncrement();\n }", "int getPrimarySnId();", "int getPrimarySnId();", "public int getM_Locator_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Locator_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public int getM_MovementConfirm_ID();", "public String getResouceId() {\n return id;\n }", "public long getID();", "long getMsgId();", "int getObjId();", "int getObjId();", "int getObjId();", "int getObjId();", "int getObjId();", "int getObjId();", "public int getExecutionInstance() {\n return executionInstance;\n }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getIdAutorizacionEmpresaSRI()\r\n/* 74: */ {\r\n/* 75:112 */ return this.idAutorizacionEmpresaSRI;\r\n/* 76: */ }", "public int getUser1X_ID();", "public int getR_Resolution_ID();", "public int getId()\r\n/* 69: */ {\r\n/* 70:103 */ return this.idAutorizacionEmpresaSRI;\r\n/* 71: */ }", "public Long getDealingUserID()\n/* */ {\n/* 135 */ return this.dealingUserID;\n/* */ }", "public Integer getId()\r\n/* */ {\r\n/* 114 */ return this.id;\r\n/* */ }", "public abstract long mo9743h();", "public long getVocubalaryId();", "private Integer getId() { return this.id; }", "private static int generateCircleId(){\n return snextCircleId.incrementAndGet();\n\n }", "long getPlayerId();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();" ]
[ "0.6827946", "0.6302356", "0.6298841", "0.6266616", "0.62236965", "0.6209255", "0.6205206", "0.61384207", "0.61292976", "0.61134833", "0.6064987", "0.6020998", "0.60177255", "0.600982", "0.59816873", "0.59816873", "0.59816873", "0.59816873", "0.59681743", "0.5941262", "0.5890778", "0.588695", "0.5882123", "0.58784986", "0.58710605", "0.58707523", "0.58116996", "0.5784135", "0.5766721", "0.57661635", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5765706", "0.5752745", "0.5746742", "0.57442194", "0.5735984", "0.5725425", "0.57246006", "0.572325", "0.5718986", "0.5711477", "0.5711477", "0.56947404", "0.5693356", "0.5693356", "0.5693356", "0.5685022", "0.56798446", "0.56718284", "0.56718284", "0.5669187", "0.5665473", "0.5664975", "0.56525123", "0.56523174", "0.56321377", "0.56321377", "0.56321377", "0.56321377", "0.56321377", "0.56321377", "0.5630731", "0.5623555", "0.56215316", "0.56140196", "0.56125546", "0.5599884", "0.5594458", "0.5592453", "0.559241", "0.5591369", "0.55879843", "0.5582691", "0.55782", "0.55758137", "0.5575765", "0.5575765", "0.5575765", "0.5575765", "0.5575765", "0.5575765", "0.5575765", "0.5575765" ]
0.6550686
1
optional int32 collectResult = 3;
boolean hasCollectResult();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getResult()\n/* */ {\n/* 129 */ Object resultToCheck = this.result;\n/* 130 */ return resultToCheck != RESULT_NONE ? resultToCheck : null;\n/* */ }", "public int getResult(){\n return localResult;\n }", "public void setResult(int param){\n \n // setting primitive attribute tracker to true\n \n if (param==java.lang.Integer.MIN_VALUE) {\n localResultTracker = false;\n \n } else {\n localResultTracker = true;\n }\n \n this.localResult=param;\n \n\n }", "public int getresult(){\n return result;}", "int getResult();", "protocol.Result.ResultCode getResultCode();", "public int getResult(){\r\n\t\t return result;\r\n\t }", "int getResultValue();", "int getResultValue();", "public int numberOfResult() throws Exception;", "public Collect_result(Collect_result other) {\r\n }", "public abstract int getLapResult();", "public void mo5062c(Result result) {\n }", "int getEresult();", "int getResult() {\n return result;\n }", "public void receiveResultadd3(\n loadbalance.LoadBalanceStub.Add3Response result\n ) {\n }", "public int result() {\n return 0;\n }", "@Override\r\n\tpublic int getResult() {\n\t\treturn 0;\r\n\t}", "public void receiveResultmain(\n ) {\n }", "public boolean hasResult()\n/* */ {\n/* 119 */ return this.result != RESULT_NONE;\n/* */ }", "private int scoreCounter(int result) {\n result +=1;\n return result;\n }", "void mo24178a(ResultData resultdata);", "int getResultCode();", "int getResultCode();", "int getResultCode();", "int getResultCode();", "int getResultCode();", "OptionalInt peek();", "public int check(){\r\n\r\n\treturn count ++;\r\n\t\r\n}", "public int getResult() {return resultCode;}", "public abstract boolean mo66251a(Result<T> result);", "public int getResult() {\n return result;\n }", "V result() throws Exception;", "void onResult(int ret);", "void ComputeResult(Object result);", "@Override\n\tprotected Integer compute() {\n\t\treturn 3;\n\t}", "Integer count();", "Integer count();", "public void set_return(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n local_returnTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.local_return=param;\r\n \r\n\r\n }", "int countByExample(CollectExample example);", "public int filterData(int paramInt) {\n/* 14 */ return 7;\n/* */ }", "public void setFirstResult(int val) throws HibException;", "@Override\n\tvoid collect() {\n\t\t\n\t}", "Integer countAll();", "public int Check(){\n return 6;\n }", "public int a_(int paramInt)\r\n/* 594: */ {\r\n/* 595:636 */ return 0;\r\n/* 596: */ }", "private static boolean isDone0(Object result)\r\n/* 74: */ {\r\n/* 75:110 */ return (result != null) && (result != UNCANCELLABLE);\r\n/* 76: */ }", "public static int returnCount()\n {return counter;}", "public int get_return(){\r\n return local_return;\r\n }", "@Override\r\n\tpublic void OnNotifyAssignRet(int ret) {\n\t\tResultAssignRet(ret);\r\n\t}", "void collectV();", "static int test()\n\t{\n\n\t\treturn 20;\n\t}", "public int getResultCode();", "public int getVoiceMaxResults() {\n/* 223 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "void mo13372a(int i, ErrorCode errorCode);", "public abstract PendingResult<Status> mo27382b();", "private static int testOne(){\n var var = 10;\n return var;\n }", "public void receiveResultadd2(\n loadbalance.LoadBalanceStub.Add2Response result\n ) {\n }", "public void receiveResultadd(\n loadbalance.LoadBalanceStub.AddResponse result\n ) {\n }", "public void receiveResultsub3(\n loadbalance.LoadBalanceStub.Sub3Response result\n ) {\n }", "static int type_of_ret(String passed){\n\t\treturn 1;\n\t}", "public int a_(int paramInt)\r\n/* 166: */ {\r\n/* 167:189 */ return 0;\r\n/* 168: */ }", "public int GetNMissing();", "int getNumOfRetrievelRequest();", "int getNumOfRetrievelRequest();", "public Integer countRecordReturns();", "public Integer getIsSuccessInSolving()\n/* */ {\n/* 207 */ return this.isSuccessInSolving;\n/* */ }", "public int getResult() {\n return this.result;\n }", "long getTotalAcceptCount();", "int insertSelective(Collect record);", "void mo9337a(C2177n<?> nVar, UnobservedTaskException unobservedTaskException);", "@java.lang.Override public int getResultValue() {\n return result_;\n }", "int getComparisons();", "long getUnknown2();", "public int getThreshold() {\n/* 340 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "long count() throws Exception;", "public int getResult() {\r\n\t\t\treturn result_;\r\n\t\t}", "public String getLBR_CollectionReturnCode();", "public void setResult() {\n }", "int getUnreachableCount();", "int getCombine();", "public abstract long c(int i2, int i3);", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "@Generated\n @Selector(\"setResultType:\")\n public native void setResultType(@NUInt long value);", "int count();", "int count();", "int count();", "int count();", "int count();", "int count();", "public int failureLevel(){\n return RESULT_WARNING;\n }", "public long result(){\n long result = 0L;\n int one = 1;\n \n result = result(one, one, result);\n \n return result;\n }", "public int method_209() {\r\n return 0;\r\n }", "private CountingResult runStufe3() {\r\n\t\tthis.t1 = new Thread( new CountingResultCollectorMonitor(2000L) );\r\n\t\tt1.start();\r\n\t\treturn this.count(\r\n\t\t\t\tfalse, //use inline version\r\n\t\t\t\t\"Stufe3\",\r\n\t\t\t\ttrue,\t//use caller\r\n\t\t\t\ttrue,\t//useCallee1_CodeTable_of\r\n\t\t\t\ttrue,\t//useCallee2_CodeTable_set\r\n\t\t\t\ttrue,\t//useCallee3_HashTable_clear\r\n\t\t\t\ttrue,\t//useCallee4_HashTable_hsize\r\n\t\t\t\ttrue,\t//useCallee5_HashTable_of_hash\r\n\t\t\t\ttrue,\t//useCallee6_HashTable_set_hash\r\n\t\t\t\ttrue,\t//useCallee7_Compressor_clblock\r\n\t\t\t\ttrue,\t//useCallee8_Compressor_output\r\n\t\t\t\ttrue,\t//useCallee9_InputBuffer_readByte\r\n\t\t\t\ttrue,\t//useCalleeA_Compressor_getMaxCode\r\n\t\t\t\ttrue,\t//useCalleeB_OutputBuffer_writeByte\r\n\t\t\t\ttrue\t//useCalleeC_OutputBuffer_writeBytes\r\n\t\t\t\t);\r\n\t}" ]
[ "0.615018", "0.61069536", "0.6013393", "0.59457976", "0.59439725", "0.5917013", "0.5888739", "0.5840988", "0.5840988", "0.57054293", "0.5599468", "0.5596129", "0.55840105", "0.5573398", "0.55594265", "0.5551563", "0.5541999", "0.5507587", "0.54871947", "0.54051185", "0.53665227", "0.5364117", "0.5328476", "0.5328476", "0.5328476", "0.5328476", "0.5328476", "0.53091764", "0.52998626", "0.5275577", "0.5256188", "0.5252815", "0.52393943", "0.5238291", "0.52079284", "0.52055454", "0.5187361", "0.5187361", "0.5183589", "0.5177836", "0.5176109", "0.51660556", "0.5160998", "0.51536536", "0.51498663", "0.51481724", "0.51446134", "0.511966", "0.5119027", "0.51168627", "0.5111125", "0.51011115", "0.5073581", "0.50569123", "0.5054473", "0.50362647", "0.503482", "0.5028068", "0.5026356", "0.50242144", "0.50204813", "0.5018423", "0.5012845", "0.50099117", "0.50099117", "0.50073296", "0.5004884", "0.49975678", "0.4988567", "0.49734658", "0.4961725", "0.49607292", "0.49565685", "0.4945069", "0.49436453", "0.4936555", "0.4932537", "0.49266547", "0.49227023", "0.4922096", "0.49135262", "0.49130917", "0.49125487", "0.49125487", "0.49125487", "0.49125487", "0.49125487", "0.49125487", "0.49125487", "0.49095097", "0.4908077", "0.4908077", "0.4908077", "0.4908077", "0.4908077", "0.4908077", "0.4906187", "0.49021736", "0.49017593", "0.49008057" ]
0.58194274
9
optional int64 collectEndTime = 4;
boolean hasCollectEndTime();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEndTime() {\n/* 34 */ return this.endTime;\n/* */ }", "long getEndTime() {\n return endTime;\n }", "int getEndTime();", "int getEndTime();", "int getEndTime();", "public String getEndTime(){return endTime;}", "long getNextCollectTimestampMs();", "public void setEndTime(long value) {\r\n this.endTime = value;\r\n }", "public int getPlayStartTime() { return _playStartTime; }", "public void setEndTime(String time){endTime = time;}", "public long getEndTime() {\r\n return endTime;\r\n }", "public Integer getEndTime() {\n return endTime;\n }", "long getVisitEndtime();", "long getVisitEndtime();", "public String getEndTime();", "public String getEndTime();", "long getStartTime() {\n return startTime;\n }", "public long getEnd_time() {\n return end_time;\n }", "public long getEndTime() {\n return endTime;\n }", "public long getEndTime() {\n return endTime;\n }", "public int getTime() { return _time; }", "public String getEndTime()\n {\n return this.endTime;\n }", "public String getEndTime() {\n return endTime;\n }", "public double getEndTime() {\n return endTime;\n }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "@Override\r\n\tpublic Date getEventEndTime() {\n\t\treturn null;\r\n\t}", "long getStartTime();", "public double getFinishTime(){return finishTime;}", "public int getExtraTimeGiven()\r\n {\r\n return extraTimeGiven;\r\n }", "public void setEndTime(java.lang.Long value) {\n this.end_time = value;\n }", "public long getStartTime ()\r\n {\r\n return startTime;\r\n }", "public int getMaxTime() { return _maxTime; }", "public java.lang.Long getEndTime() {\n return end_time;\n }", "public int getArrivalTime(){return arrivalTime;}", "long getRetrievedTime();", "public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }", "default long getLastFetchTimeMs() {\n return 0;\n }", "public long getEndTime() {\n\t\treturn endTime;\n\t}", "public String getEndTime() {\r\n return endTime;\r\n }", "private long getTime(LogModel logModel) throws FieldNotFoundException, ParseException {\n try {\n String timeStr = logModel.getProcedureEndTime();\n long time = Long.parseLong(timeStr);\n if (logModel.getProcedureEndTime().startsWith(\"20\") && timeStr.length() == 14) {\n time = TimeConvertor.convertTime(logModel.getProcedureEndTime(), \"yyyyMMddHHmmss\");\n return time;\n }\n if (time > 4000000000L) {\n // ms\n return time / 1000;\n }\n return time;\n } catch (NumberFormatException e) {\n try {\n long time = TimeConvertor.convertTime(logModel.getProcedureEndTime());\n return time;\n } catch (ParseException ex) {\n throw ex;\n }\n }\n }", "@Override\n\t\tpublic long getEndMillis() {\n\t\t\treturn 0;\n\t\t}", "public long getTime(){\n return this.time;\n }", "public abstract long getEndTimestamp();", "public int getTimeEnd() {\r\n return timeEnd;\r\n }", "int getStartTime();", "int getStartTime();", "int getStartTime();", "@Override\n\tpublic int getStartTime() {\n\t\treturn 0;\n\t}", "public String getEndTime() {\n return endTime;\n }", "public String getEndTime() {\n return endTime;\n }", "public String getEndTime() {\n return endTime;\n }", "public Date getEndTime() {\r\n return this.endTime;\r\n }", "BigInteger getResponse_time();", "public int getEndTime()\n {\n if (isRepeated()) return end;\n else return time;\n }", "@Override\n\tpublic Long updateStartTime() {\n\t\treturn null;\n\t}", "@java.lang.Override\n public long getNextCollectTimestampMs() {\n return nextCollectTimestampMs_;\n }", "long getTimeBoltBBoltC();", "@java.lang.Override\n public long getNextCollectTimestampMs() {\n return nextCollectTimestampMs_;\n }", "public String getBeginTime() {\n/* 28 */ return this.beginTime;\n/* */ }", "public abstract Date getEndTime();", "public long getServerStartTime() {\r\n return 0;\r\n }", "public long getStartTime();", "public long getStartTime();", "public void setEnd_time(long end_time) {\n this.end_time = end_time;\n }", "public long getTimeEnd()\n {\n return this.timeEnd;\n }", "public String getBeginTime(){return beginTime;}", "public int getDeadline(){return deadline;}", "public String getEndTime() {\n return this.EndTime;\n }", "public Date getEndTime() {\n return this.endTime;\n }", "public java.lang.Long getEndTime() {\n return end_time;\n }", "public String getEndtime() {\n return endtime;\n }", "@Override\r\n\tpublic int requiredTime() {\n\t\treturn 0;\r\n\t}", "@Override\n public DateTime getMaxIngestedEventTime()\n {\n return getMaxTime();\n }", "@Override\n\tpublic float getEndTime() \n\t{\n\t\treturn _tend;\n\t}", "@Override\n public long getTimeNeeded() {\n return timeNeeded;\n }", "long getNextDefenderBonusCollectTimestampMs();", "public Date getEndTime() {\n return endTime;\n }", "public Date getEndTime() {\n return endTime;\n }", "public Date getEndTime() {\n return endTime;\n }", "@Override\n public long getTime() {\n return time;\n }", "public void setStartTime(long value) {\r\n this.startTime = value;\r\n }", "@Override\n public Date getEndTime() {\n return endTime;\n }", "public void setTimeEnd(long te)\n {\n this.timeEnd = (te > 0L)? te : -1L;\n }", "abstract Long getStopTimestamp();", "public void setEndTime(long endTime) {\n this.endTime = endTime;\n }", "long getTimeBoltABoltB();", "public long getEventTime();", "public abstract double calculateStartTime();", "@JsonProperty(\"endTime\")\n public String getEndTime() {\n return endTime;\n }", "com.google.protobuf.Timestamp getDepositEndTime();", "public int getArrivalTime()\n {\n return arrivalTime;\n }", "long getTimeSpoutBoltA();", "public double getTime() {return _time;}", "public void setEndTime(Integer endTime) {\n this.endTime = endTime;\n }", "public double getStartTime();", "public long getEndTimestamp();", "long getTimeBoltHBoltE();", "Instant getEnd();", "@XmlElement(name = \"starttime\")\n public Long getStartTime() {\n return startTime;\n }", "public java.sql.Time getREQ_END_TIME()\n {\n \n return __REQ_END_TIME;\n }" ]
[ "0.70567966", "0.699042", "0.6867519", "0.6867519", "0.6867519", "0.6706056", "0.6627444", "0.64718986", "0.641896", "0.6414316", "0.64112127", "0.64104396", "0.6386148", "0.6386148", "0.63777566", "0.63777566", "0.63672906", "0.6343471", "0.6340178", "0.6340178", "0.6320931", "0.6280951", "0.6248548", "0.6226028", "0.62149644", "0.620673", "0.6206221", "0.617183", "0.61676514", "0.61586475", "0.61570954", "0.6136013", "0.6109766", "0.6095717", "0.60951823", "0.6095085", "0.60825014", "0.6072777", "0.6069851", "0.6040404", "0.6027783", "0.60273963", "0.60237354", "0.60172707", "0.60084176", "0.60084176", "0.60084176", "0.59989566", "0.5990477", "0.5990477", "0.5990477", "0.5972977", "0.59723824", "0.59720767", "0.5967739", "0.5966594", "0.5955358", "0.5947593", "0.59473723", "0.5943205", "0.5936072", "0.593462", "0.593462", "0.5928216", "0.59237665", "0.59201145", "0.5914879", "0.59135085", "0.5908539", "0.5897948", "0.58953774", "0.5892211", "0.58904153", "0.58759356", "0.5863989", "0.58585966", "0.58571035", "0.58571035", "0.58571035", "0.5855986", "0.58461994", "0.5837021", "0.5825858", "0.581978", "0.5819462", "0.58124065", "0.58046293", "0.5800354", "0.5782018", "0.5779167", "0.57779354", "0.5765435", "0.5764584", "0.5763719", "0.57636184", "0.5760931", "0.5760274", "0.5755886", "0.57357854", "0.5731383" ]
0.6465444
8
optional int32 produceResType = 5;
boolean hasProduceResType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getResType() {\n\t\treturn ResType;\n\t}", "static int type_of_rc(String passed){\n\t\treturn 1;\n\t}", "int getRType();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "IntegerResource installationType();", "Uint32 getType();", "static int type_of_rrc(String passed){\n\t\treturn 1;\n\t}", "int getValueMaxRessource(TypeRessource type);", "long getUnknown2();", "public int getType() {\n/* 50 */ return this.type;\n/* */ }", "@Generated\n @Selector(\"resultType\")\n @NUInt\n public native long resultType();", "public abstract int mo12578RR(int i);", "public Resource takeResource( Resource.Type type, int amount );", "public abstract long mo20901UQ();", "public interface PRIORITY_MODEL_POLICY_TYPE {\n int value = 40;\n}", "static int type_of_rp(String passed){\n\t\treturn 1;\n\t}", "public abstract long mo24410c();", "int getTemplateTypeValue();", "public abstract long mo24412e();", "public int getInputType() {\n/* 1743 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "static int type_of_xri(String passed){\n\t\treturn 1;\n\t}", "public int getInputType() {\n/* 234 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "IntValue createIntValue();", "IntValue createIntValue();", "public abstract Integer mo36212o();", "static int type_of_rpe(String passed){\n\t\treturn 1;\n\t}", "int getUnknown1();", "int getUnknown1();", "int getUnknown1();", "int getUnknown1();", "static int type_of_rpo(String passed){\n\t\treturn 1;\n\t}", "public Type getType(ConstantPoolGen cp) {\n/* 79 */ return new ReturnaddressType(physicalSuccessor());\n/* */ }", "public abstract int mo12575RO(int i);", "private ExplorationTypes(int type_val) \n { \n this.type_val = type_val; \n }", "int getProblemType();", "public int R(){\r\n return R;\r\n }", "long getUnknown12();", "public abstract Integer mo36210m();", "static int type_of_ral(String passed){\n\t\treturn 1;\n\t}", "public int a_(int paramInt)\r\n/* 166: */ {\r\n/* 167:189 */ return 0;\r\n/* 168: */ }", "@Generated\n @Selector(\"resourceFetchType\")\n @NInt\n public native long resourceFetchType();", "public int a_(int paramInt)\r\n/* 594: */ {\r\n/* 595:636 */ return 0;\r\n/* 596: */ }", "int getType(){\n return type;\n }", "private static int getPayload()\n\t{\n\t\tint max = Integer.MAX_VALUE; // largest int we can get 2147483647\n\t\tint min = Integer.MIN_VALUE; // smallest int we can get -2147483648\n\t\t\n\t\tRandom rn = new Random();\n\t\tint randomInt = rn.nextInt(); // \n\t\treturn randomInt; // hoping this will create the large number that we want to use.\n\t}", "public int generateRoshambo(){\n ;]\n\n }", "public abstract int mo12579RS(int i);", "BigInteger getResolution();", "static int type_of_rar(String passed){\n\t\treturn 1;\n\t}", "public int getType() {\n/* 96 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public int getType() {\n/* 3069 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}", "public long generate(FormatType type) {\n\t\tswitch (type) {\n\t\t\tcase DATE:\n\t\t\tcase TIME:\n\t\t\tcase DATE_TIME:\n\t\t\tdefault:\n\t\t\t\treturn 0;\n\t\t}\n\t}", "int getCombine();", "@Override\n public Integer reduceInit() { return 0; }", "public abstract int mo12572RL(int i);", "static int type_of_cpi(String passed){\n\t\treturn 1;\n\t}", "public interface ID_UNIQUENESS_POLICY_ID\n{\n\n /**\n\t * The value representing ID_UNIQUENESS_POLICY_ID.\n\t */\n public static final int value = (int)(18L);\n}", "public interface ProtoStreamTypeIds {\n\n // 1 byte Ids 0..127 -> Reserved for critical messages used a lot\n int WRAPPED_MESSAGE = WrappedMessage.PROTOBUF_TYPE_ID; // Id 0 is reserved for ProtoStream WrappedMessage class\n int WRAPPED_BYTE_ARRAY = 1;\n int MARSHALLABLE_USER_OBJECT = 2;\n int BYTE_STRING = 3;\n int EMBEDDED_METADATA = 4;\n int EMBEDDED_EXPIRABLE_METADATA = 5;\n int EMBEDDED_LIFESPAN_METADATA = 6;\n int EMBEDDED_MAX_IDLE_METADATA = 7;\n int NUMERIC_VERSION = 8;\n int SIMPLE_CLUSTERED_VERSION = 9;\n int JGROUPS_ADDRESS = 10;\n int PROTOBUF_VALUE_WRAPPER = 11;\n int MEDIA_TYPE = 12;\n int PRIVATE_METADATA = 13;\n int SUBJECT = 14;\n\n // Priority counter values\n int COUNTER_VALUE = 125;\n int STRONG_COUNTER_KEY = 126;\n int WEAK_COUNTER_KEY = 127;\n\n // 2 byte Ids 128..16383\n // Commons range 128 -> 999\n int COMMONS_LOWER_BOUND = 128;\n int NULL_VALUE = COMMONS_LOWER_BOUND;\n\n // Core range 1000 -> 3999\n int CORE_LOWER_BOUND = 1000;\n int EVENT_LOG_CATEGORY = CORE_LOWER_BOUND;\n int EVENT_LOG_LEVEL = CORE_LOWER_BOUND + 1;\n int MARSHALLED_VALUE_IMPL = CORE_LOWER_BOUND + 2;\n int META_PARAMS_INTERNAL_METADATA = CORE_LOWER_BOUND + 3;\n int REMOTE_METADATA = CORE_LOWER_BOUND + 4;\n int UUID = CORE_LOWER_BOUND + 5;\n int IRAC_VERSION = CORE_LOWER_BOUND + 6;\n int IRAC_SITE_VERSION = CORE_LOWER_BOUND + 7;\n int IRAC_VERSION_ENTRY = CORE_LOWER_BOUND + 8;\n int IRAC_METADATA = CORE_LOWER_BOUND + 9;\n int ROLE_SET = CORE_LOWER_BOUND + 10;\n int ROLE = CORE_LOWER_BOUND + 11;\n int AUTHORIZATION_PERMISSION = CORE_LOWER_BOUND + 12;\n\n // Counter range 4000 -> 4199\n int COUNTERS_LOWER_BOUND = 4000;\n int COUNTER_STATE = COUNTERS_LOWER_BOUND;\n int COUNTER_CONFIGURATION = COUNTERS_LOWER_BOUND + 1;\n int COUNTER_TYPE = COUNTERS_LOWER_BOUND + 2;\n int COUNTER_STORAGE = COUNTERS_LOWER_BOUND + 3;\n\n // Query range 4200 -> 4399\n int QUERY_LOWER_BOUND = 4200;\n int QUERY_METRICS = QUERY_LOWER_BOUND + 1;\n int LOCAL_QUERY_STATS = QUERY_LOWER_BOUND + 2;\n int LOCAL_INDEX_STATS = QUERY_LOWER_BOUND + 3;\n int INDEX_INFO = QUERY_LOWER_BOUND + 4;\n int INDEX_INFO_ENTRY = QUERY_LOWER_BOUND + 5;\n int SEARCH_STATISTICS = QUERY_LOWER_BOUND + 6;\n int STATS_TASK = QUERY_LOWER_BOUND + 7;\n //int KNOWN_CLASS_KEY = QUERY_LOWER_BOUND;\n\n // Remote Query range 4400 -> 4599\n int REMOTE_QUERY_LOWER_BOUND = 4400;\n int REMOTE_QUERY_REQUEST = REMOTE_QUERY_LOWER_BOUND;\n int REMOTE_QUERY_RESPONSE = REMOTE_QUERY_LOWER_BOUND + 1;\n int ICKLE_FILTER_RESULT = REMOTE_QUERY_LOWER_BOUND + 2;\n int ICKLE_CONTINUOUS_QUERY_RESULT = REMOTE_QUERY_LOWER_BOUND + 3;\n\n // Lucene Directory 4600 -> 4799\n int LUCENE_LOWER_BOUND = 4600;\n int CHUNK_CACHE_KEY = LUCENE_LOWER_BOUND;\n int FILE_CACHE_KEY = LUCENE_LOWER_BOUND + 1;\n int FILE_LIST_CACHE_KEY = LUCENE_LOWER_BOUND + 2;\n int FILE_METADATA = LUCENE_LOWER_BOUND + 3;\n int FILE_READ_LOCK_KEY = LUCENE_LOWER_BOUND + 4;\n int FILE_LIST_CACHE_VALUE = LUCENE_LOWER_BOUND + 5;\n\n // Tasks + Scripting 4800 -> 4999\n int SCRIPTING_LOWER_BOUND = 4800;\n int EXECUTION_MODE = SCRIPTING_LOWER_BOUND;\n int SCRIPT_METADATA = SCRIPTING_LOWER_BOUND + 1;\n int DISTRIBUTED_SERVER_TASK = SCRIPTING_LOWER_BOUND + 2;\n int DISTRIBUTED_SERVER_TASK_PARAMETER = SCRIPTING_LOWER_BOUND + 3;\n int DISTRIBUTED_SERVER_TASK_CONTEXT = SCRIPTING_LOWER_BOUND + 4;\n\n // Memcached 5000 -> 5099\n int MEMCACHED_LOWER_BOUND = 5000;\n int MEMCACHED_METADATA = MEMCACHED_LOWER_BOUND;\n\n // RocksDB 5100 -> 5199\n int ROCKSDB_LOWER_BOUND = 5100;\n int ROCKSDB_EXPIRY_BUCKET = ROCKSDB_LOWER_BOUND;\n int ROCKSDB_PERSISTED_METADATA = ROCKSDB_LOWER_BOUND + 1;\n\n // Event-logger 5200 -> 5299\n int EVENT_LOGGER_LOWER_BOUND = 5200;\n int SERVER_EVENT_IMPL = EVENT_LOGGER_LOWER_BOUND;\n\n // MultiMap 5300 -> 5399\n int MULTIMAP_LOWER_BOUND = 5300;\n int MULTIMAP_BUCKET = MULTIMAP_LOWER_BOUND;\n int MULTIMAP_LIST_BUCKET = MULTIMAP_LOWER_BOUND + 2;\n int MULTIMAP_HASH_MAP_BUCKET = MULTIMAP_LOWER_BOUND + 3;\n int MULTIMAP_HASH_MAP_BUCKET_ENTRY = MULTIMAP_LOWER_BOUND + 4;\n int MULTIMAP_SET_BUCKET = MULTIMAP_LOWER_BOUND + 5;\n int MULTIMAP_OBJECT_WRAPPER = MULTIMAP_LOWER_BOUND + 6;\n int MULTIMAP_SORTED_SET_BUCKET = MULTIMAP_LOWER_BOUND + 7;\n int MULTIMAP_SORTED_SET_SCORED_ENTRY = MULTIMAP_LOWER_BOUND + 8;\n\n // Server Core 5400 -> 5799\n int SERVER_CORE_LOWER_BOUND = 5400;\n int IGNORED_CACHES = SERVER_CORE_LOWER_BOUND;\n int CACHE_BACKUP_ENTRY = SERVER_CORE_LOWER_BOUND + 1;\n int COUNTER_BACKUP_ENTRY = SERVER_CORE_LOWER_BOUND + 2;\n int IP_FILTER_RULES = SERVER_CORE_LOWER_BOUND + 3;\n int IP_FILTER_RULE = SERVER_CORE_LOWER_BOUND + 4;\n\n // JDBC Store 5800 -> 5899\n int JDBC_LOWER_BOUND = 5800;\n int JDBC_PERSISTED_METADATA = JDBC_LOWER_BOUND;\n\n // Spring integration 5900 -> 5999\n int SPRING_LOWER_BOUND = 5900;\n @Deprecated\n int SPRING_NULL_VALUE = SPRING_LOWER_BOUND;\n int SPRING_SESSION = SPRING_LOWER_BOUND + 1;\n int SPRING_SESSION_ATTRIBUTE = SPRING_LOWER_BOUND + 2;\n int SPRING_SESSION_REMAP = SPRING_LOWER_BOUND + 3;\n\n // Data distribution metrics 6000 -> 6099\n int DATA_DISTRIBUTION_LOWER_BOUND = 6000;\n int CACHE_DISTRIBUTION_INFO = DATA_DISTRIBUTION_LOWER_BOUND;\n int CLUSTER_DISTRIBUTION_INFO = DATA_DISTRIBUTION_LOWER_BOUND + 1;\n int KEY_DISTRIBUTION_INFO = DATA_DISTRIBUTION_LOWER_BOUND + 2;\n}", "public abstract long mo24409b();", "public void mo32111rr(int i) {\n }", "int provideValue();", "int mo27483b();", "default byte getPriority() {\n\t\treturn 0;\n\t}", "public int getR_Resolution_ID();", "private static String m2631a(int i) {\n return i != 1 ? i != 2 ? i != 3 ? i != 4 ? i != 5 ? \"UNKNOWN\" : \"BITMAP_MASKABLE\" : \"URI\" : \"DATA\" : \"RESOURCE\" : \"BITMAP\";\n }", "public abstract int mo12582RV(int i);", "public static int transOCType(int type){\r\n\t\t\tif(type==1) return 8;\r\n\t\t\tif(type==2) return 2;\r\n\t\t\tif(type==3) return 3;\t\r\n\t\t\tif(type==4) return 4;\r\n\t\t\tif(type==5) return 11;\r\n\t\t\tif(type==6) return 6;\r\n\t\t\tif(type==7) return 8;\r\n\t\t\tif(type==8|| type==9 ||type==10) return 8;\r\n\t/* Not supported at the moment\r\n\t\t\tif(type8) return \"108\";\r\n\t\t\tif(type9) return \"109\";\r\n\t\t\tif(type10) return \"110\";\r\n\t*/\r\n\t\t\t//no match found? return custom type!\r\n\t\t\treturn 0;\r\n\t\t}", "public int getExtendedID()\r\n/* 12: */ {\r\n/* 13:17 */ return 10;\r\n/* 14: */ }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "public abstract int mo12580RT(int i);", "public void int2_m() {\n\t\t\n\t}", "static int type_of_rnz(String passed){\n\t\treturn 1;\n\t}", "int getOneof1186();", "public void setRes(){\r\n \r\n }", "ReduceType reduceInit();", "static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}", "int getMagic();", "public int getTypeParameterIndex() {\n/* 364 */ return (this.value & 0xFF0000) >> 16;\n/* */ }", "@DISPID(11)\n\t// = 0xb. The runtime will prefer the VTID if present\n\t@VTID(23)\n\tvoid riskAnalysisType(int pVal);", "public abstract long mo9229aD();" ]
[ "0.5665445", "0.56143403", "0.560541", "0.5551056", "0.5551056", "0.5551056", "0.5551056", "0.5551056", "0.5551056", "0.5551056", "0.5551056", "0.5551056", "0.5551056", "0.5551056", "0.5551056", "0.5551056", "0.55360866", "0.54635155", "0.54607505", "0.5432407", "0.54002905", "0.53766954", "0.5354285", "0.5353899", "0.53276676", "0.5323697", "0.53128713", "0.5307836", "0.5293549", "0.5272809", "0.52643496", "0.52597696", "0.5250841", "0.5245603", "0.5236971", "0.5236971", "0.52365845", "0.52290463", "0.5225796", "0.5225796", "0.5225796", "0.5225796", "0.5203754", "0.5199651", "0.51848876", "0.51664746", "0.5160295", "0.5149436", "0.51479113", "0.514351", "0.51430047", "0.5124555", "0.5124163", "0.51228094", "0.510581", "0.51040757", "0.5090432", "0.5087369", "0.5084365", "0.5079534", "0.5064395", "0.506218", "0.5058492", "0.5058492", "0.5058492", "0.5058492", "0.5058492", "0.5058492", "0.5058492", "0.5058492", "0.50563514", "0.50503314", "0.5039063", "0.5036358", "0.5030687", "0.5020525", "0.501705", "0.50127226", "0.50127167", "0.5006623", "0.5006616", "0.49967843", "0.4985491", "0.4982427", "0.49800423", "0.49770805", "0.49644533", "0.49595422", "0.49512634", "0.49478218", "0.4946496", "0.49391273", "0.49362203", "0.49357104", "0.4934015", "0.493384", "0.49314165", "0.49297887", "0.4924006", "0.49232185" ]
0.6131268
0
optional int32 rewardResource = 6;
boolean hasRewardResource();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getReward(int initialState, int initialAction);", "int getRewardTrackValue();", "pb4server.SetMainHeroRewardAskReq getSetMainHeroRewardAskReq();", "double getTotalReward();", "public double getReward() {\n return reward;\n }", "int getResourceCost();", "public Integer getRewardStar() {\n return rewardStar;\n }", "public void setRewardStar(Integer rewardStar) {\n this.rewardStar = rewardStar;\n }", "public BigDecimal getReward() {\n return reward;\n }", "public interface WireloopReward extends RewardInterface {\n /** steps don't cost anything\n * \n * @return constant zero */\n static WireloopReward freeSteps() {\n return (s, a, n) -> RealScalar.ZERO;\n }\n\n /** steps are more expensive than reward along x\n * \n * @return constant zero */\n static WireloopReward constantCost() {\n return (s, a, n) -> RealScalar.of(-1.4); // -1.2\n }\n\n /***************************************************/\n static Scalar id_x(Tensor state) {\n return state.Get(0);\n }\n}", "public void giveMeResource(Resource resource, float amount) throws CallbackAIException;", "void giveReward(BPlayer bPlayer, int tier, int status);", "public int getWorth() { return 1; }", "public ArrayList<Integer> getRankReward() {\n/* 46 */ return this.rankReward;\n/* */ }", "public int getFishingSkill();", "public Resource takeResource( Resource.Type type, int amount );", "static WireloopReward constantCost() {\n return (s, a, n) -> RealScalar.of(-1.4); // -1.2\n }", "public void setReward(BigDecimal reward)\n {\n this.reward = reward;\n }", "public abstract int getBonus();", "IntegerResource tracking();", "int getBonusExp();", "int getBonusExp();", "public synchronized void attributeReward(int reward) {\n attributeReward = true;\n this.reward = reward;\n }", "public int getBonus(){\n return bonus;\n }", "pb4server.ResurgenceAskReq getResurgenceAskReq();", "com.yandex.ydb.rate_limiter.Resource getResource();", "public int act1Cost()\r\n {\r\n return 1;\r\n }", "public void setReward(BigDecimal reward) {\n this.reward = reward;\n }", "@Override\r\n\tpublic int getRewardPrice(int i) {\n\t\treturn 0;\r\n\t}", "com.yandex.ydb.rate_limiter.ResourceOrBuilder getResourceOrBuilder();", "public int getGoal()\n {\n return goal;\n }", "pb4server.AddInstanceStrengthAskReq getAddInstanceStrengthAskReq();", "public ArrayList<Integer> getLuckyReward() {\n/* 40 */ return this.luckyReward;\n/* */ }", "public void createGoldReward() {\n try {\n int gold = RandomBenefitModel.getGoldReward(encounter, characterVM.getDistance());\n if (gold > 0) characterVM.goldChange(gold);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public int getCost() {\n/* 69 */ return this.cost;\n/* */ }", "int getRequiredAmountFor(AResourceType type);", "public long getAmountRequested();", "int getBonusHP();", "public interface PRIORITY_MODEL_POLICY_TYPE {\n int value = 40;\n}", "@Override\n\tpublic double bonus() {\n\t\treturn 0;\n\t}", "pb4server.EatPoisonNumAskReq getEatPoisonNumAskReq();", "public int get_resource_distance() {\n return 1;\r\n }", "public interface FightReward {\n /**\n * The fighter\n */\n public Fighter fighter();\n\n /**\n * Get the reward line type\n */\n public RewardType type();\n\n /**\n * Apply the reward to the fighter\n */\n public void apply();\n\n /**\n * Render the reward line for {@link fr.quatrevieux.araknemu.network.game.out.fight.FightEnd} packet\n */\n public String render();\n}", "public int getLBR_PenaltyCharge_ID();", "pb4server.ArenaFightAskReq getArenaFightAskReq();", "public int getExperience();", "public void createExpReward() {\n try {\n int exp = RandomBenefitModel.getExpReward(encounter, characterVM.getDistance());\n if (exp > 0) characterVM.addExp(exp);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public int getPoints_action()\r\n/* */ {\r\n/* 72 */ return this.points_action;\r\n/* */ }", "int getAllowedCredit();", "public BigDecimal getRewardMoney() {\r\n return rewardMoney;\r\n }", "POGOProtos.Rpc.VsSeekerRewardTrack getRewardTrack();", "@Override\n public void onRedBagTip(RewardResult arg0) {\n\n }", "public void buyhouse(int cost){\n\t\n}", "public void setAwayScore(int a);", "public int getInstabilityScore();", "public int getQuantityRequired(){\n return quantityRequired1;\n }", "int getBonusMoney();", "UsabilityGoal createUsabilityGoal();", "@Override\n public int strengthBonus() {\n\treturn 4;\n }", "public int learn(double nextReward, int nextState){\n count++;\n int nextAction; \n if (this.state == 3){\n //qvalues[this.state][this.action] = learningRate*nextReward;\n return 4;\n } else {\n //if (this.state != null ){\n nextAction = getAction(nextState);\n //this.N[this.state][this.action] += 1;\n this.qvalues[this.state][this.action] += learningRate*(this.reward + discountFactor*(this.qvalues[nextState][nextAction] - this.qvalues[this.state][this.action]));\n }\n this.state = nextState;\n this.action = nextAction;\n this.reward = nextReward;\n if (count == 100){\n saveQ();\n count = 0;\n }\n return this.action;\n }", "@Override\n\t\t\tpublic double reward(State s1, Action a, State s2) {\n\t\t\t\tif ((Double)s2.get(\"x\") >= 0.5) {\n\t\t\t\t\treturn 100;\n\t\t\t\t}\n\t\t\t\tif ((Double)s2.get(\"x\") == mcGen.physParams.xmin) {\n\t\t\t\t\treturn -100;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}", "@Override\n public int getCost() {\n\treturn 0;\n }", "pb4server.MaxPrisonBuffAskReq getMaxPrisonBuffAskReq();", "public int increaseDefense () {\n return 3;\n }", "int getArmor();", "public double getBonus(){\r\n return bonus;\r\n }", "public static int getPerson_to_play()\n {\n return person_to_play;\n }", "int getCost();", "int getCost();", "int getCost();", "public int getGold();", "protected synchronized int getResistivity() { return resistivity; }", "IIntValueModel getMobilityPenaltyModel();", "@Override\n public int craftBonus() {\n\treturn 1;\n }", "public abstract int getCostToUpgrade();", "public int getExperienceGained() {\r\n return experienceGained;\r\n }", "private static int addRandomScore() {\n Random ran = new Random();\n return ran.nextInt(201) + 400;\n }", "public void SetWealth(int w)\n{\n\twealth=w;\n}", "static int getGoalKey1() {\n return GOAL_KEY1;\n }", "@Override\r\n\tpublic void increaseAmount(ResourceType resource) {\n\t\t\r\n\t}", "public int getScore(){\n \treturn 100;\n }", "public int get_correctAnswer(){return this._correctAnswer;}", "public void awardStat(ResourceLocation debug1) {\n/* 1498 */ awardStat(Stats.CUSTOM.get(debug1));\n/* */ }", "public int getHealthCost();", "@Override\n public int getAmount() {\n return 1;\n }", "public void reward(){\n setLastDrop(System.currentTimeMillis());\n collect(1);\n }", "public int getMetadata(int damage) {\n/* 50 */ return damage;\n/* */ }", "public double getReward() {\n if (inGoalRegion()) {\n return REWARD_AT_GOAL;\n } else {\n return REWARD_PER_STEP;\n }\n }", "@Override\n public double getCost() {\n\t return 13;\n }", "private int RandomResourceValue(int playerNumber) {\n\t\tArrayList<Integer> excludedNumbers = new ArrayList<>();\n\t\tfor (int i = 0; i < CurrentPlayer.resources.length; i++) {\n\t\t\tif (robberPlayers.get(playerNumber).resources[i] == 0)\n\t\t\t\texcludedNumbers.add(i);\n\t\t}\n\t\tRandom r = new Random();\n\t\tint randomVariable = 0;\n\t\trandomVariable = r.nextInt(5 - 0) + 0;\n\n\t\tif (excludedNumbers.size() < 5) {\n\t\t\twhile (excludedNumbers.contains(randomVariable)) {\n\t\t\t\trandomVariable = r.nextInt(5 - 0) + 0;\n\t\t\t}\n\t\t}\n\t\treturn randomVariable;\n\t}", "int getMana();", "public void createInventoryReward() {\n if (inventoryEntityToRetrieve == null) {\n try {\n inventoryEntityToRetrieve = RandomBenefitModel.getInventoryRewards(application, encounter, characterVM.getDistance());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "int getOffensiveMod(ActionType type);", "int getBonusMoneyID();", "@Test\n public void testCreateRewardAccount8() {\n Dining dining = Dining.createDining(\"100.00\", \"4320123412340008\", \"123456008\");\n\n Account account = createAccount8();\n\n AccountContribution contribution = account.makeContribution(new MonetaryAmount(8));\n try {\n RewardConfirmation confirmation = repository.confirmReward(contribution, dining);\n Assert.assertNotNull(\"confirmation should not be null\", confirmation);\n Assert.assertNotNull(\"confirmation number should not be null\", confirmation.getConfirmationNumber());\n Assert.assertEquals(\"wrong contribution object\", contribution, confirmation.getAccountContribution());\n verifyRewardInserted(confirmation, dining);\n } catch (DataIntegrityViolationException dive) {\n logger.error(\"exception on creation of reward from contribution=\" + contribution + \":dining=\" + dining,\n dive);\n throw dive;\n }\n }", "public int getLivesRemaining();", "@Test\n public void ResourceRequirement() {\n MSG_ACTION_ACTIVATE_LEADERCARD message = new MSG_ACTION_ACTIVATE_LEADERCARD(0);\n p.getStrongbox().addResource(Resource.SHIELD, 4);\n p.getWarehouseDepot().add(Resource.COIN);\n p.getWarehouseDepot().add(Resource.SHIELD);\n c.emptyQueue();\n\n assertTrue(am.activateLeaderCard(p, message));\n\n assertTrue(l1.isEnabled());\n\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_UPD_Player).count());\n assertEquals(1, c.messages.stream().filter(x -> x.getMessageType() == MessageType.MSG_NOTIFICATION).count());\n assertEquals(2, c.messages.size());\n }", "public void setRequestNum(int amount){\n requestNum = amount;\n }", "public Refillable(int initialAmount) {\n myAmount = initialAmount;\n }", "static int getGoalKey2() {\n return GOAL_KEY2;\n }" ]
[ "0.64675236", "0.6427205", "0.6249657", "0.6098709", "0.6079922", "0.5999088", "0.59857166", "0.5935117", "0.5920017", "0.59146607", "0.59004724", "0.5830233", "0.57055", "0.56962836", "0.56728965", "0.5667183", "0.56601", "0.56507224", "0.56268996", "0.56086314", "0.5604182", "0.5604182", "0.56007016", "0.55957645", "0.55813265", "0.5564039", "0.55109715", "0.55074173", "0.5503226", "0.5496164", "0.5483467", "0.54646105", "0.54587555", "0.5455329", "0.5455058", "0.5449712", "0.54244584", "0.5415869", "0.5410551", "0.5395592", "0.5391767", "0.53864837", "0.5379672", "0.53772295", "0.5376201", "0.5367127", "0.53561926", "0.53457403", "0.533728", "0.5331153", "0.5318843", "0.53075296", "0.53031504", "0.5297966", "0.52939385", "0.5287694", "0.528444", "0.5267592", "0.52666885", "0.52629787", "0.5254275", "0.52518874", "0.52290756", "0.5228103", "0.5224661", "0.5216946", "0.5216113", "0.5211812", "0.5211812", "0.5211812", "0.5207082", "0.52034837", "0.51905465", "0.5180485", "0.5174016", "0.51722014", "0.5168964", "0.5166996", "0.5159977", "0.5159862", "0.5156622", "0.5155219", "0.51499134", "0.51467925", "0.51453215", "0.5138701", "0.51347363", "0.51275295", "0.51258796", "0.51245904", "0.51093173", "0.51083094", "0.51057833", "0.51049423", "0.5096676", "0.50961316", "0.50941163", "0.50935423", "0.5093392", "0.5087513" ]
0.5983456
7
optional int32 attackerRoleId = 7;
boolean hasAttackerRoleId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getParticipantRoleValue();", "public Integer getRoleId() {\r\n return roleId;\r\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public Integer getRoleId() {\n return roleId;\n }", "public BigDecimal getRoleId() {\r\n return roleId;\r\n }", "public Long getRoleId() {\r\n return roleId;\r\n }", "public int getAccessLevel() {\n return 0;\r\n }", "public Integer getRoleid() {\r\n return roleid;\r\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public Long getRoleId() {\n return roleId;\n }", "public String getRoleId() {\n return roleId;\n }", "public String getRoleId() {\n return roleId;\n }", "public String getRoleId() {\n return roleId;\n }", "public String getRoleId()\r\n\t{\r\n\t\treturn roleId;\r\n\t}", "public int getRoleId() {\r\n\t\treturn roleId;\r\n\t}", "public Integer getRoleId() {\n\t\treturn roleId;\n\t}", "public Byte getRole() {\n return role;\n }", "public interface Roles {\n String DIRECTOR = \"ROLE_DIRECTOR\";\n String TEACHER = \"ROLE_TEACHER\";\n String STUDENT = \"ROLE_STUDENT\";\n String PARENT = \"ROLE_PARENT\";\n}", "String getRole();", "String getRole();", "long addUserRole(UserRole userRole);", "public String getClRoleId() {\r\n\t\treturn clRoleId;\r\n\t}", "public Long getRoleId() {\n\t\treturn roleId;\n\t}", "String getVacmRole();", "public void setRoleId(Integer roleId) {\r\n this.roleId = roleId;\r\n }", "public Byte getUserRole() {\r\n return userRole;\r\n }", "public String getTeacherRoleId() {\n return teacherRoleId;\n }", "public Integer getRole() {\n\t\treturn role;\n\t}", "public abstract boolean modifyRole(int game_id, int numberOfWerewolves, boolean hasWitch, boolean hasFortuneTeller, boolean hasLittleGirl, boolean hasCupid, boolean hasHunter) throws SQLException;", "int getSkillId();", "public String getRole() { return this.role; }", "public interface Role {\n\n String MANAGER = \"manager\";\n String EMPLOYEE = \"employee\";\n String AUDITOR = \"auditor\";\n}", "public interface FamilyRole\n {\n /**\n * 1:Dad\n */\n String DAD = \"1\";\n /**\n * 2:Mom\n */\n String MOM = \"2\";\n /**\n * 3:Son\n */\n String SON = \"3\";\n /**\n * 4:Daughter\n */\n String DAUGHTER = \"4\";\n /**\n * 5:Grandpa\n */\n String GRANDPA = \"5\";\n /**\n * 6:Grandma\n */\n String GRANDMA = \"6\";\n /**\n * 7:Maid\n */\n String MAID = \"7\";\n /**\n * 8:Driver\n */\n String DRIVER = \"8\";\n /**\n * 9:Other\n */\n String OTHER = \"9\";\n\n }", "public Long getRoleid() {\n return roleid;\n }", "int getRaidLevelValue();", "public String getRoleid() {\n return roleid;\n }", "public String getRoleid() {\n return roleid;\n }", "public String getRoleid() {\n return roleid;\n }", "String computeRole();", "public DBSequence getRoleId() {\n return (DBSequence)getAttributeInternal(ROLEID);\n }", "public Role getRole()\n {\n return role;\n }", "public SecUserrole getNewSecUserrole();", "public Integer getIdRole() {\n\t\treturn idRole;\n\t}", "public Long getRolemenuid() {\n return rolemenuid;\n }", "public abstract int levelRequired();", "@Test\n public void testDenyAccessWithNegateRoleCondition() {\n denyAccessWithRoleCondition(true);\n }", "void addRoleToUser(int userID,int roleID);", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "@Test\n public void testDenyAccessWithRoleCondition() {\n denyAccessWithRoleCondition(false);\n }", "public Role getByRoleId(long roleId);", "@Override\r\n\tpublic String definedRole() {\n\t\treturn DEF_ROLE;\r\n\t}", "public interface Role {\n int getId();\n int getPerson();\n int getType();\n String getName();\n int getRole();\n String getCode();\n int getPosition();\n String getPosition_name();\n}", "public void setRoleid(Integer roleid) {\r\n this.roleid = roleid;\r\n }", "public void setEnchantmentLevel(int enchantmentLevel) {\n/* 57 */ Validate.isTrue((enchantmentLevel > 0), \"The enchantment level must be greater than 0!\");\n/* */ \n/* 59 */ this.enchantmentLevel = enchantmentLevel;\n/* */ }", "public interface UserRoleManager {\n\n Long add(@NotNull UserRequest userRequest) throws BusinessException;\n\n void modify(long id,@NotNull UserModifyRequest userRequest) throws BusinessException;\n\n List<String> findRolesByUserId(@NotNull String roleIds) throws BusinessException;\n}", "public Long getUserId()\n/* */ {\n/* 73 */ return this.userId;\n/* */ }", "public long getAccountId()\r\n/* 115: */ {\r\n/* 116:121 */ return this.accountId;\r\n/* 117: */ }", "public Role getRoleById(int id);", "com.message.MessageInfo.RoleVO getRole();", "public Long getGroupRoleId() {\n\t\treturn groupRoleId;\n\t}", "public Long getAdminRoleId() {\n\t\treturn this.adminRoleId;\n\t}", "int insertSelective(UsercontrollerRole record);", "public int getTurnCode(){\n return mask;\n }", "public String getRole() {\r\n return role;\r\n }", "public SecRole getRoleById(Long role_Id);", "public String getRolecode() {\n return rolecode;\n }", "ISModifyRequiredRole createISModifyRequiredRole();", "int getCauseValue();", "@Override\r\n\tpublic int updRole(Role role) {\n\t\treturn 0;\r\n\t}", "boolean hasRoleID();", "public void setRoleId(DBSequence value) {\n setAttributeInternal(ROLEID, value);\n }", "Integer givenGroupId();", "public void testGetIdRole() {\n System.out.println(\"getIdRole\");\n Utilisateur instance = null;\n int expResult = 0;\n int result = instance.getIdRole();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void setUserId(Long userId)\n/* */ {\n/* 80 */ this.userId = userId;\n/* */ }", "public void setRole(String role)\n {\n _role=role;\n }", "public void setRoleId(BigDecimal roleId) {\r\n this.roleId = roleId;\r\n }", "public void setDealingUserID(Long dealingUserID)\n/* */ {\n/* 147 */ this.dealingUserID = dealingUserID;\n/* */ }", "int insertSelective(UUserRole record);", "int getAbilityValue(Unit source);", "private int isContextValid(AuthContext context){\n if(context.isValid())\n return context.getRole();\n\n try {\n List<Map<String,Object>> data = get(\"SELECT Accounts.ROLE_ID \" +\n \"FROM Accounts INNER JOIN Sessions ON Accounts.ID = Sessions.ID \" +\n \"WHERE (((Sessions.ID)= ? ) AND ((Sessions.SESSION_TOKEN)= ? ))\", context.id, context.sessionToken);\n int role = data.size() == 0 ? -1 : (Integer) data.get(0).get(\"ROLE_ID\");\n context.setRole(role);\n return role;\n } catch (SQLException e) {\n return -1;\n }\n }", "public String getRoleCode() {\n return roleCode;\n }", "public int getEnchantmentLevel() {\n/* 48 */ return this.enchantmentLevel;\n/* */ }", "public void setClRoleId(String clRoleId) {\r\n\t\tthis.clRoleId = clRoleId;\r\n\t}", "@Override\n public String getRoleProperty() {\n return \"visibleAtRole.id\";\n }", "int insertSelective(UserRole record);" ]
[ "0.635753", "0.6286158", "0.6188316", "0.6188316", "0.6188316", "0.6188316", "0.6188316", "0.6188316", "0.6188316", "0.6188316", "0.6091484", "0.58866745", "0.58481216", "0.58102983", "0.5804875", "0.5804875", "0.5804875", "0.5804875", "0.5784793", "0.5784793", "0.5784793", "0.5768709", "0.57436514", "0.5738983", "0.5670478", "0.5582983", "0.5573665", "0.5573665", "0.54649305", "0.5464759", "0.5441504", "0.5441419", "0.54101646", "0.5393982", "0.5376404", "0.53715056", "0.53638375", "0.535779", "0.5357161", "0.53406614", "0.5339808", "0.5314842", "0.5314054", "0.5288757", "0.5288757", "0.5288757", "0.52809036", "0.5262111", "0.5252577", "0.5245777", "0.5245383", "0.52448684", "0.523322", "0.52331716", "0.5204537", "0.5191974", "0.5191974", "0.5191974", "0.5191974", "0.5191974", "0.5191974", "0.5191974", "0.5191974", "0.5189774", "0.51876295", "0.51844174", "0.51757497", "0.51739305", "0.516959", "0.51656365", "0.5155442", "0.514377", "0.51349396", "0.513322", "0.51275057", "0.5117181", "0.5110348", "0.5098879", "0.5097852", "0.5094804", "0.5084778", "0.5076213", "0.5074753", "0.50628114", "0.50598294", "0.50591624", "0.50583273", "0.5055088", "0.5053526", "0.50462884", "0.50409025", "0.503188", "0.5024289", "0.50242877", "0.50165576", "0.5010946", "0.4988173", "0.49863043", "0.49783087", "0.49768886" ]
0.63141316
1
optional string attackerRoleName = 8;
boolean hasAttackerRoleName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getRole();", "String getRole();", "String roleName();", "String getRoleName();", "public String getRole() { return this.role; }", "public void setRole(java.lang.String value) {\n this.role = value;\n }", "String computeRole();", "public void setRole(String role)\n {\n _role=role;\n }", "public void setRoleName(String paramRole) {\n\tstrRoleName = paramRole;\n }", "String getVacmRole();", "public String getRole() {\r\n return role;\r\n }", "public void setRole(String role) {\r\n this.role = role;\r\n }", "public String getRole_name() {\n return role_name;\n }", "public Byte getRole() {\n return role;\n }", "@Override\n public String getName() {\n return this.role.getName();\n }", "public void setRole(String role) {\r\n this.role = role;\r\n }", "public String getRoleName() {\n\treturn strRoleName;\n }", "@Override\r\n\tpublic String definedRole() {\n\t\treturn DEF_ROLE;\r\n\t}", "public String getRole() {\n return this.role;\n }", "public interface Roles {\n String DIRECTOR = \"ROLE_DIRECTOR\";\n String TEACHER = \"ROLE_TEACHER\";\n String STUDENT = \"ROLE_STUDENT\";\n String PARENT = \"ROLE_PARENT\";\n}", "void setRole(String roles);", "public void setRole_name(String role_name) {\n this.role_name = role_name;\n }", "public java.lang.String getRole() {\n return role;\n }", "@Override\n\tpublic String getRole() {\n\t\treturn role;\n\t}", "public String getRoleName() {\r\n return roleName;\r\n }", "public String getRoleName() {\r\n return roleName;\r\n }", "public String getRole()\n\t{\n\t\treturn role;\n\t}", "public void setRole(String role) {\n this.role = role;\n }", "public interface Role {\n\n String MANAGER = \"manager\";\n String EMPLOYEE = \"employee\";\n String AUDITOR = \"auditor\";\n}", "@ApiModelProperty(required = true, value = \"The role that the place plays, e.g. \\\"UNI Site\\\", or \\\"ENNI Site\\\".\")\n @NotNull\n\n\n public String getRole() {\n return role;\n }", "public void setRole(Byte role) {\n this.role = role;\n }", "@Override\n public void setRole(String roleName) {\n this.role = roleName;\n }", "@Override\n public String toString(){\n return role;\n }", "public String getRoleName() {\n return roleName;\n }", "public String getRoleName() {\n return roleName;\n }", "public String getRoleName() {\n return roleName;\n }", "public String getRoleName() {\n return roleName;\n }", "public String getRoleName() {\n return roleName;\n }", "public String getRoleName() {\n return roleName;\n }", "public Role getRole()\n {\n return role;\n }", "@Override\n\tpublic boolean checkRoleName(String role_name) {\n\t\treturn false;\n\t}", "public String getRole() {\r\n\t\treturn role;\r\n\t}", "public String getRole() {\n \t\treturn (String)attributes.get(\"Role\");\n \t}", "@Override\n\tpublic String getRoleString() {\n\t\treturn \"Trainee\";\n\t}", "int getParticipantRoleValue();", "public SecUserrole getNewSecUserrole();", "public void setRole(String role) {\r\n\t\tthis.role = role;\r\n\t}", "private UserRole(String name) {\n\t\tthis.name = name;\n\t}", "@Override\r\n\tpublic void addCredential(String role) {\n\r\n\t}", "public Byte getUserRole() {\r\n return userRole;\r\n }", "boolean hasAttackerRoleId();", "public java.lang.String getRole() {\n return role;\n }", "@XmlAttribute\r\n public String getRole() {\r\n return role;\r\n }", "public static String roleToString(@RoleName int role) {\n switch (role) {\n case ROLE_NONE:\n return \"ROLE_NONE\";\n case ROLE_BUTTON:\n return \"ROLE_BUTTON\";\n case ROLE_CHECK_BOX:\n return \"ROLE_CHECK_BOX\";\n case ROLE_DROP_DOWN_LIST:\n return \"ROLE_DROP_DOWN_LIST\";\n case ROLE_EDIT_TEXT:\n return \"ROLE_EDIT_TEXT\";\n case ROLE_GRID:\n return \"ROLE_GRID\";\n case ROLE_IMAGE:\n return \"ROLE_IMAGE\";\n case ROLE_IMAGE_BUTTON:\n return \"ROLE_IMAGE_BUTTON\";\n case ROLE_LIST:\n return \"ROLE_LIST\";\n case ROLE_RADIO_BUTTON:\n return \"ROLE_RADIO_BUTTON\";\n case ROLE_SEEK_CONTROL:\n return \"ROLE_SEEK_CONTROL\";\n case ROLE_SWITCH:\n return \"ROLE_SWITCH\";\n case ROLE_TAB_BAR:\n return \"ROLE_TAB_BAR\";\n case ROLE_TOGGLE_BUTTON:\n return \"ROLE_TOGGLE_BUTTON\";\n case ROLE_VIEW_GROUP:\n return \"ROLE_VIEW_GROUP\";\n case ROLE_WEB_VIEW:\n return \"ROLE_WEB_VIEW\";\n case ROLE_PAGER:\n return \"ROLE_PAGER\";\n case ROLE_CHECKED_TEXT_VIEW:\n return \"ROLE_CHECKED_TEXT_VIEW\";\n case ROLE_PROGRESS_BAR:\n return \"ROLE_PROGRESS_BAR\";\n case ROLE_ACTION_BAR_TAB:\n return \"ROLE_ACTION_BAR_TAB\";\n case ROLE_DRAWER_LAYOUT:\n return \"ROLE_DRAWER_LAYOUT\";\n case ROLE_SLIDING_DRAWER:\n return \"ROLE_SLIDING_DRAWER\";\n case ROLE_ICON_MENU:\n return \"ROLE_ICON_MENU\";\n case ROLE_TOAST:\n return \"ROLE_TOAST\";\n case ROLE_ALERT_DIALOG:\n return \"ROLE_ALERT_DIALOG\";\n case ROLE_DATE_PICKER_DIALOG:\n return \"ROLE_DATE_PICKER_DIALOG\";\n case ROLE_TIME_PICKER_DIALOG:\n return \"ROLE_TIME_PICKER_DIALOG\";\n case ROLE_DATE_PICKER:\n return \"ROLE_DATE_PICKER\";\n case ROLE_TIME_PICKER:\n return \"ROLE_TIME_PICKER\";\n case ROLE_NUMBER_PICKER:\n return \"ROLE_NUMBER_PICKER\";\n case ROLE_SCROLL_VIEW:\n return \"ROLE_SCROLL_VIEW\";\n case ROLE_HORIZONTAL_SCROLL_VIEW:\n return \"ROLE_HORIZONTAL_SCROLL_VIEW\";\n case ROLE_KEYBOARD_KEY:\n return \"ROLE_KEYBOARD_KEY\";\n case ROLE_TALKBACK_EDIT_TEXT_OVERLAY:\n return \"ROLE_TALKBACK_EDIT_TEXT_OVERLAY\";\n case ROLE_TEXT_ENTRY_KEY:\n return \"ROLE_TEXT_ENTRY_KEY\";\n default:\n return \"(unknown role \" + role + \")\";\n }\n }", "public String roleName() {\n return this.roleName;\n }", "Builder roleSessionName(String roleSessionName);", "public GraphNode addRole(String role){\n\t\tInteger intValue = addElement(role, 2);\n\t\t//System.out.println(role + \" Added with : \" + intValue);\n\t\tGraphNode roleVar = new GraphNode(intValue, 2);\n\t\tauthGraph.addVertex(roleVar);\n\t\treturn roleVar;\n\t}", "public void setRoleName(java.lang.String _roleName)\n {\n roleName = _roleName;\n }", "@Test\n public void testDenyAccessWithRoleCondition() {\n denyAccessWithRoleCondition(false);\n }", "@Test\n public void testDenyAccessWithNegateRoleCondition() {\n denyAccessWithRoleCondition(true);\n }", "public String getRoleid() {\n return roleid;\n }", "public String getRoleid() {\n return roleid;\n }", "public String getRoleid() {\n return roleid;\n }", "public String getRoleName() {\n return this.roleName;\n }", "public String getRoleName() {\n return this.roleName;\n }", "public java.lang.String getRoleName()\n {\n return roleName;\n }", "public void setRole(String role) {\n\t\tthis.role = role;\n\t}", "void addRoleToUser(int userID,int roleID);", "@Override\n public boolean isRole() {\n return false;\n }", "public SecRole getNewSecRole();", "public SecRole getNewSecRole();", "public RoleRequest(String _projectName, String _userName, String _roleName) {\n this.projectName = _projectName;\n this.userName = _userName;\n this.roleName = _roleName; \n }", "SecurityRole getRole();", "public AXValue getRole() {\n return role;\n }", "public Integer getRole() {\n\t\treturn role;\n\t}", "public String getRoleDesc() {\r\n return roleDesc;\r\n }", "ISModifyRequiredRole createISModifyRequiredRole();", "public interface FamilyRole\n {\n /**\n * 1:Dad\n */\n String DAD = \"1\";\n /**\n * 2:Mom\n */\n String MOM = \"2\";\n /**\n * 3:Son\n */\n String SON = \"3\";\n /**\n * 4:Daughter\n */\n String DAUGHTER = \"4\";\n /**\n * 5:Grandpa\n */\n String GRANDPA = \"5\";\n /**\n * 6:Grandma\n */\n String GRANDMA = \"6\";\n /**\n * 7:Maid\n */\n String MAID = \"7\";\n /**\n * 8:Driver\n */\n String DRIVER = \"8\";\n /**\n * 9:Other\n */\n String OTHER = \"9\";\n\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Role : \"+name().toLowerCase();\n\t}", "public String getUserNameExample()\n {\n return null;\n }", "public void setRole(Integer role) {\n\t\tthis.role = role;\n\t}", "public void setUserRole(Byte userRole) {\r\n this.userRole = userRole;\r\n }", "public static String createRole() {\n InputStreamReader sr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(sr);\n String role = null;\n try {\n while (true) {\n role = br.readLine();\n\n if (role.equalsIgnoreCase(\"воин\")) {\n System.out.println(\"Замечательно! Теперь ты ВОИН.\");\n System.out.println(\"Ты получаешь длинный меч, тяжелый щит и сияющие доспехи.\");\n break;\n }\n\n if (role.equalsIgnoreCase(\"маг\")) {\n System.out.println(\"Замечательно! Теперь ты МАГ.\");\n System.out.println(\n \"Ты получаешь искрящийся посох великой мощи стихий (береги бороду!) и расшитый халат.\");\n break;\n }\n\n if (role.equalsIgnoreCase(\"разбойник\")) {\n System.out.println(\"Замечательно! Теперь ты РАЗБОЙНИК.\");\n System.out.println(\n \"Ты не получаешь ничего, ведь разбойник сам берет то, что ему положено! Ну ладно, вот тебе пара красивых кинжалов со стразиками и черная повязка на глаза.\");\n break;\n } else {\n System.out.println(\"- Опять? Прекращай. Выбери из предложенных выше.\");\n }\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return role;\n }", "public String getRoleId() {\n return roleId;\n }", "public String getRoleId() {\n return roleId;\n }", "public String getRoleId() {\n return roleId;\n }", "public void setTeamRole(java.lang.String teamRole) {\r\n this.teamRole = teamRole;\r\n }", "VerbRole getRole();", "public void setRoleName(String roleName) {\n this.roleName = roleName;\n }", "long addUserRole(UserRole userRole);", "public String getRoleId()\r\n\t{\r\n\t\treturn roleId;\r\n\t}", "public String getRoleDesc() {\n return roleDesc;\n }", "public String getRoleDesc() {\n return roleDesc;\n }", "interface RoleInterface {\n\n public String getName ();\n\n}", "public Integer getRoleid() {\r\n return roleid;\r\n }", "public String getRoledescription() {\n return roledescription;\n }", "public Integer getRoleId() {\r\n return roleId;\r\n }", "@Override\n\tpublic String getAuthority() {\n\t\treturn role;\n\t}", "com.message.MessageInfo.RoleVO getRole();", "ISModifyProvidedRole createISModifyProvidedRole();" ]
[ "0.6792678", "0.6792678", "0.670554", "0.66451126", "0.6644283", "0.6578349", "0.65465164", "0.6545953", "0.6490853", "0.6322487", "0.6279317", "0.6236138", "0.62296486", "0.62067443", "0.61681837", "0.61220646", "0.6107013", "0.6102035", "0.6099705", "0.6072085", "0.60705185", "0.60309064", "0.60190636", "0.60048425", "0.59991014", "0.59991014", "0.5994471", "0.5969586", "0.5949323", "0.5947289", "0.5933541", "0.5924797", "0.59041077", "0.59028345", "0.59028345", "0.59028345", "0.59028345", "0.59028345", "0.59028345", "0.5889126", "0.58559626", "0.5846858", "0.5834706", "0.58200294", "0.581011", "0.5809728", "0.57935244", "0.5792778", "0.5787172", "0.57843596", "0.57807994", "0.5765974", "0.5740017", "0.5734918", "0.5710868", "0.5696805", "0.5692617", "0.56889564", "0.5685865", "0.56699556", "0.56691873", "0.56691873", "0.56691873", "0.56646216", "0.56646216", "0.56629896", "0.5660994", "0.56327283", "0.56077707", "0.5602493", "0.5602493", "0.55870634", "0.5573696", "0.55707854", "0.5557793", "0.55485505", "0.5538714", "0.55369407", "0.5535411", "0.55201167", "0.55043244", "0.5502177", "0.54949546", "0.5489171", "0.5489171", "0.5489171", "0.5485853", "0.5485507", "0.5480582", "0.54709214", "0.5470344", "0.54607135", "0.54607135", "0.54577535", "0.54574436", "0.5454779", "0.545476", "0.5453559", "0.5450759", "0.54410934" ]
0.63471144
9
required int32 errorCode = 1;
boolean hasErrorCode();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getErrorCode();", "void mo13372a(int i, ErrorCode errorCode);", "int getErrcode();", "public int getErrorCode()\n\t{\n\t\treturn errorCode;\n\t}", "int getReturnCode();", "int getReturnCode();", "public int getErrorCode() {\n return errorCode;\n }", "void mo13373a(int i, ErrorCode errorCode, ByteString byteString);", "protocol.Result.ResultCode getResultCode();", "public native int getErrorCode() /*-{\n\t\treturn this.target.error.code;\n\t}-*/;", "public int getErrorCode() {\n return this.errorCode;\n }", "void notSupported(String errorcode);", "public int errorCode()\n {\n return edma_errorCode;\n }", "public int getErrorCode() {\r\n\t\treturn errorCode;\r\n\t}", "public int getErrorCode() {\n return parameter.getErrCode();\n }", "public int DSGetLastError();", "protected abstract void setErrorCode();", "public void setErrorCode(int errorCode) {\n this.errorCode = errorCode;\n }", "public int getErrorCode() {\n\t\treturn errorCode;\n\t}", "ErrorCodes(int code){\n this.code = code;\n //this.message = message;\n }", "public int getErrorCode() {\n return errorCode_;\n }", "public int getErrorCode() {\r\n\t\treturn ERROR_CODE;\r\n\t}", "public String getErrorCode();", "public void setErrorCode(int value) {\n this.errorCode = value;\n }", "protodef.b_error.info getError();", "protodef.b_error.info getError();", "com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.ErrType getCode();", "void mo9948a(Status cVar);", "public interface ErrorCodes {\n\tpublic static final String INPUT_DIRECTORY_MISSING = \"INPUT_DIRECTORY_MISSING\";\n\tpublic static final String STATEMENT_READ_FAILED = \"STATEMENT_READ_FAILED\";\n\tpublic static final String INPUT_FILE_NULL = \"INPUT_FILE_NULL\";\n\tpublic static final String DUP_TRANS_REFERENCE = \"DUP_TRANSACTION_REFERENCE\";\n\tpublic static final String WRONG_END_BALANCE = \"WRONG_END_BALANCE\";\n}", "public int getErrorCode() {\n return errorCode_;\n }", "int getStatusCode( );", "private void showErrorDialog(int errorCode) {\n\t\t\n }", "int getResultCode();", "int getResultCode();", "int getResultCode();", "int getResultCode();", "int getResultCode();", "boolean hasErrcode();", "public int getExceptionNumber(\n ) {return (0);}", "public void setErrorCode(int errorCode)\n\t{\n\t\tthis.errorCode = errorCode;\n\t}", "public int getErrorCode() {\n\t\treturn this.errorCode;\n\t}", "public static int error () {\n System.out.println(\"ERROR\");\n hasError = true;\n return -1;\n }", "abstract Integer getStatusCode();", "public int getErrorCode() {\n return Util.bytesToInt(new byte[]{data[2], data[3], data[4], data[5]});\n }", "private void zzScanError(int errorCode) {\n\t\tString message;\n\t\ttry {\n\t\t\tmessage = ZZ_ERROR_MSG[errorCode];\n\t\t}\n\t\tcatch (ArrayIndexOutOfBoundsException e) {\n\t\t\tmessage = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n\t\t}\n\n\t\tthrow new Error(message);\n\t}", "public String getErrorCode()\n\t{\n\t\treturn errorCode;\n\t}", "public String getErrorCode() {\r\n return errorCode;\r\n }", "public void setErrorCode(int errorCode) {\n\t\tthis.errorCode = errorCode;\n\t}", "public ErrorCode errorCode()\n {\n return ErrorCode.get(uint8Get(offset() + ERROR_CODE_FIELD_OFFSET));\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n } catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "public int getParameter3() {\n/* 59 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public interface OnErrorListener {\n\n int ERROR_CODE_COMMON = 30001;\n\n void onError(int errorCode);\n}", "public static void checkErrorCode(byte[] buffer)throws TopicException{\n byte curr = buffer[1];\n StringBuilder string = new StringBuilder();\n for(int i = 7; i > -1; i--){\n string.append(getMybit(curr, i));\n }\n\n int val = Integer.parseInt(String.valueOf(string), Constants.TWO);\n if(0 != val){\n throw new TopicException(ErrorCode.UNEXPECTEDERRORCODE);\n }\n }", "public int getErrcode() {\n return errcode_;\n }", "public int getResult() {return resultCode;}", "public abstract int getHttpStatusErrorCode();", "public void error();", "public int getErrorType() {\r\n\t\treturn errorType;\r\n\t}", "public int error() {\n return this.error;\n }", "public int getErrorCode() {\n\n return mErrorCode;\n }", "public String getErrorCode() {\n return errorCode;\n }", "public String getErrorCode() {\n return errorCode;\n }", "public String getErrorCode() {\n return errorCode;\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }" ]
[ "0.7650913", "0.7342336", "0.73018306", "0.67563355", "0.6748334", "0.6748334", "0.67417514", "0.6700567", "0.66668314", "0.6649608", "0.66064936", "0.6590426", "0.6581824", "0.65792537", "0.65594167", "0.6539465", "0.65308255", "0.65195656", "0.6509639", "0.646688", "0.6434319", "0.6431635", "0.6424201", "0.63808703", "0.6366416", "0.6366416", "0.63144755", "0.6283658", "0.62716424", "0.6262814", "0.6261454", "0.62118995", "0.62048686", "0.62048686", "0.62048686", "0.62048686", "0.62048686", "0.62043715", "0.61893445", "0.613164", "0.61115706", "0.6110378", "0.6058568", "0.60546297", "0.60535985", "0.60409325", "0.6035219", "0.60217243", "0.6018819", "0.60109246", "0.60109246", "0.60109246", "0.60109246", "0.60109246", "0.60080737", "0.59997886", "0.5997967", "0.5997166", "0.5995988", "0.5983207", "0.5975365", "0.5965104", "0.59647346", "0.5961808", "0.5942529", "0.5927481", "0.5927481", "0.5927481", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535", "0.59225535" ]
0.0
-1
repeated .Mine_Collect_Info_Mes collectList = 2;
java.util.List<com.pkuvr.game_server.proto.serverproto.Mine_Collect_Log_Response.Mine_Collect_Info_Mes> getCollectListList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RepeatedMessage() {\n\t\tsuper(\"repeated_message\", com.instalogger.entities.generated.Public.PUBLIC);\n\t}", "void mo7380a(C1320b bVar, List<String> list) throws RemoteException;", "private Mine_Collect_Info_Mes(Builder builder) {\n super(builder);\n }", "public void getShowRecord(List<MentalShowStruct> list) {\n/* 55 */ this.component.getRevertShowList(list);\n/* */ }", "public int getTotalNumOfMsg(){ return allmessage.size();}", "void m6863a(List<Venue> list) {\n this.f5238i = list;\n }", "public int listSize(){\r\n return counter;\r\n }", "private Constants$CounterNames() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.mName = var3_1;\n }", "java.util.List<? extends WorldUps.UGoDeliverOrBuilder> \n getDeliveriesOrBuilderList();", "java.util.List<? extends org.tribuo.protos.core.VariableInfoProtoOrBuilder> \n getInfoOrBuilderList();", "public void setMemberCollectives(ArrayList<Collective> memberCollectives) { this.memberCollectives = memberCollectives; }", "public void setOneNewWanted () {\r\n numWanted ++;\r\n }", "private static void formResultLongCommSubs() {\n\n int counterCredits = 0;\n streamPlayerList = new ArrayList<>();\n for (int i=0; i < inputPlayersList.size(); i++) {\n\n //check if we have seen the player\n if(inputPlayersList.get(i).isChecked() == false) {\n // first credit of player\n counterCredits = inputPlayersList.get(i).getLongCommSubsCounter();\n\n // check in the List for matching the players\n for (int j = i + 1; j < inputPlayersList.size(); j++) {\n if (i < inputPlayersList.size() - 1) {\n if (inputPlayersList.get(i).getLastName().equals(inputPlayersList.get(j).getLastName())\n && inputPlayersList.get(i).getFirstName().equals(inputPlayersList.get(j).getFirstName())\n && inputPlayersList.get(i).getCountry().equals(inputPlayersList.get(j).getCountry())\n && inputPlayersList.get(j).isChecked() == false) {\n\n counterCredits += inputPlayersList.get(j).getLongCommSubsCounter();\n inputPlayersList.get(j).setChecked(true);\n }\n }else {\n continue;\n }\n }\n inputPlayersList.get(i).setLongCommSubsCounter(counterCredits);\n // entry the user with updated lcs value in Final List\n if(inputPlayersList.get(i).getLongCommSubsCounter() != 0)\n streamPlayerList.add(inputPlayersList.get(i));\n counterCredits = 0;\n }else {\n continue;\n }\n }\n }", "public void Collect(Item item){\n\t}", "public java.util.List<? extends SeenInfoOrBuilder>\n getSeenInfoOrBuilderList() {\n return seenInfo_;\n }", "java.util.List<? extends com.lvl6.proto.QuestProto.FullQuestProtoOrBuilder> \n getNewlyAvailableQuestsOrBuilderList();", "@Override\n\tvoid collect() {\n\t\t\n\t}", "private void btn1Event(){\n int cnt = Integer.parseInt(tfNum1.getText());\n int i = 0;\n for (i=0; i<cnt; i++){\n list.add(new NumGenA());\n taResults.appendText(String.valueOf(i) + \n \" = \" + String.valueOf(list.get(i).getValue() + \"\\n\"));\n \n lab2.setText(String.valueOf(NumGenA.getCount()));\n }\n }", "private OneOfEach() {\n initFields();\n }", "java.util.List<? extends WorldUps.UDeliveryMadeOrBuilder> \n getDeliveredOrBuilderList();", "void initListRemainingId();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getElementList();", "java.util.List<? extends main.java.io.grpc.chatservice.MessageOrBuilder> \n getMessagesOrBuilderList();", "public void genLists() {\n\t}", "java.util.List<main.java.io.grpc.chatservice.Message> \n getMessagesList();", "java.util.List<org.tribuo.protos.core.VariableInfoProto> \n getInfoList();", "private void initList() {\n\n }", "edu.usfca.cs.dfs.StorageMessages.List getList();", "java.util.List<? extends com.example.grpc.SimpleServiceOuterClass.AoisOrBuilder> \n getAoisOrBuilderList();", "public void addOccurence() {\n\t\tcount = count + 1;\n\t}", "interface CodeList149 {\n}", "public void majInformation (String typeMessage, String moduleMessage, String corpsMessage) {\n Date date = new Date();\n listMessageInfo.addFirst(dateFormat.format(date)+\" - \"+typeMessage+\" - \"+moduleMessage+\" - \"+corpsMessage);\n }", "java.util.List<Rsp.Msg>\n getMsgList();", "public MacroList() {\n\t\tthis.macrosses = new HashMap<Integer, String>(12);\n\t}", "java.util.List<ServerToB.SeenInfo>\n getSeenInfoList();", "java.util.List<Res.Msg>\n getMsgList();", "private void addAllSeenInfo(\n Iterable<? extends SeenInfo> values) {\n ensureSeenInfoIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, seenInfo_);\n }", "public void sendList(String msg, int count) {\n\t\t\toutput.println((count + 1) + \". \" + msg);\n\t\t}", "edu.usfca.cs.dfs.StorageMessages.ListOrBuilder getListOrBuilder();", "java.util.List<? extends frame.socket.common.proto.Login.ActAmountOrBuilder> \n getActAmountOrBuilderList();", "public static void intialize_notice() {\r\n mNotice_info = new ArrayList<>();\r\n }", "private static void getMember() {\n\t\toutput(\"\");\r\n\t\tfor (member member : library.getMember()) {// variable name LIB to library and MEMBER to getMember()\r\n\t\t\toutput(member + \"\\n\");\r\n\t\t}\t\t\r\n\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn grpcallinginfo.getCallingGroupMembersize();\n\t\t}", "public String method_1457() {\r\n return String.format(\"count=%d\", new Object[]{Integer.valueOf(this.field_1677.size())});\r\n }", "public interface ChatProto$ChatStoreConversation$CursorsOrBuilder extends MessageLiteOrBuilder {\n String getOffChat(int i);\n\n ByteString getOffChatBytes(int i);\n\n int getOffChatCount();\n\n List<String> getOffChatList();\n\n String getRead();\n\n ByteString getReadBytes();\n\n String getTip();\n\n ByteString getTipBytes();\n}", "java.util.List<? extends com.ljzn.grpc.personinfo.PersoninfoMessageOrBuilder> \n getPersonInfoOrBuilderList();", "java.util.List<? extends com.rpg.framework.database.Protocol.MonsterOrBuilder> \n getMonstersOrBuilderList();", "java.util.List<? extends com.rpg.framework.database.Protocol.MonsterOrBuilder> \n getMonstersOrBuilderList();", "java.util.List<com.ljzn.grpc.personinfo.PersoninfoMessage> \n getPersonInfoList();", "public g(C0290n nVar, List<? extends EntityScreenshotItem> list) {\n super(nVar);\n j.b(nVar, \"fragmentManager\");\n j.b(list, \"items\");\n this.f7032g = list;\n }", "com.vine.vinemars.net.pb.SocialMessage.NoticeObj getNoticeList(int index);", "public void setUpdateOften(int i){\n countNum = i;\n }", "public interface H5P_cls_create_func_t {\n/** public ArrayList iterdata = new ArrayList();\n * Any derived interfaces must define the single public variable as above.\n */\n}", "java.lang.String listMessageCounter() throws java.lang.Exception;", "public BuffList buffs();", "void mo13370a(int i, int i2, List<C15929a> list) throws IOException;", "private void clearSeenInfo() {\n seenInfo_ = emptyProtobufList();\n }", "public void testAddData() {\n Message m1 = new Message(\"test\",\"bla bla david\",_u1);\n Message.incId();\n Message m2 = new Message(\"test2\",\"bla2 bla2 david\",_u1);\n Message.incId();\n\n this.allMsgs.put(m1.getMsg_id(), m1);\n this.allMsgs.put(m2.getMsg_id(), m2);\n \n this.searchEngine.addData(m1);\n this.searchEngine.addData(m2);\n\n\n Long w1 = this.ind.getWordID(\"test\");\n\n Vector<Message> msgs1 =this.ind.getMsgsByWordID(w1);\n assertEquals(1, msgs1.size());\n assertTrue(msgs1.contains(m1));\n\n Long w2 = this.ind.getWordID(\"bla2\");\n Vector<Message> msgs2 =this.ind.getMsgsByWordID(w2);\n assertEquals(1, msgs2.size());\n assertTrue(msgs2.contains(m2));\n\n Long w3 = this.ind.getWordID(\"david\");\n Vector<Message> msgs3 =this.ind.getMsgsByWordID(w3);\n assertEquals(2, msgs3.size());\n assertTrue(msgs3.contains(m2));\n assertTrue(msgs3.contains(m1));\n\n Long w4 = this.ind.getWordID(\"nothing\");\n assertEquals(null,w4);\n \n }", "@Override\r\n public void SendMessage(Message mess)\r\n {\r\n _Assignments.add(mess);\r\n }", "public ArrayList<BuffBean> getBuff() {\n/* 22 */ return this.buff;\n/* */ }", "java.util.List<? extends com.rpg.framework.database.Protocol.MonsterStateOrBuilder> \n getDataOrBuilderList();", "public void populateList() {\n }", "private void m152574b(Collection<Framedata> collection) {\n if (!mo133100e()) {\n throw new WebsocketNotConnectedException();\n } else if (collection != null) {\n ArrayList arrayList = new ArrayList();\n for (Framedata fVar : collection) {\n if (f113303b) {\n PrintStream printStream = System.out;\n printStream.println(\"send frame: \" + fVar);\n }\n arrayList.add(this.f113313l.mo133046a(fVar));\n }\n m152570a((List<ByteBuffer>) arrayList);\n } else {\n throw new IllegalArgumentException();\n }\n }", "static void recorreT(){\r\n\tStruct aux=lt;\r\n\twhile(aux!=null){\r\n\t\taux.view();\r\n\t\taux=aux.sig;\r\n\t}\r\n }", "public void collect(int amount){\n this.collectedItems += amount;\n }", "public List method_6440() {\r\n return this.field_6225;\r\n }", "<init>( com.whatsapp.client.GroupInfoScreen$6, com.whatsapp.client.GroupInfoScreen ); // address: 0\n\t{\n\tenter_narrow \n\taload_0 \n\tinvokespecial_lib java.lang.Object.<init> // pc=1\n\taload_0 \n\taload_1 \n\tputfield .field_0_ // get_name_1: .field_0_ // get_name_2: .field_0_ // get_Name: .field_0_ // getName->1: null // getName->2: null // getName->N: null // ofs = -1 ord = 0 addr = 0\n\treturn \n\t}\n\n\t// @@@@@@@@@@@@@ Virtual routines \n\npublic final run( com.whatsapp.client.GroupInfoScreen$6 );", "public int getCallsNb();", "int getNoticeListCount();", "public int count () {\n return member_id_list.length;\r\n }", "private void initList(CartInfo ci) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "void mo54414a(int i, List<DownloadChunk> list);", "public static void main(){\r\n\t\t\r\n\t\tArrayList<tok> pHolder = new ArrayList<tok>();\r\n\r\n\t\t pHolder.add(new tok(\"@\", \"@\"));\r\n\t\t\r\n\t\treturn;\r\n\t}", "Object getCclist();", "private static void findLongCommSubs() {\n\n for(Player player : inputPlayersList){\n player.setLongCommSubsCounter(LongCommSubsForTwoStrings(player.getTicketNumber(), winningNumber).length());\n }\n }", "int getObject_nbmsg();", "public int getMes();", "public SeenInfoOrBuilder getSeenInfoOrBuilder(\n int index) {\n return seenInfo_.get(index);\n }", "void mo54426b(int i, List<DownloadChunk> list);", "void mo9148a(int i, ArrayList<C0889x> arrayList);", "public interface SleepDetectionProto$SchedulePushNotifResponseOrBuilder extends MessageLiteOrBuilder {\n}", "java.util.List<? extends com.example.grpc.SimpleServiceOuterClass.AreaOrBuilder> \n getAreaOrBuilderList();", "java.util.List<? extends com.example.grpc.SimpleServiceOuterClass.AreaOrBuilder> \n getAreaOrBuilderList();", "java.util.List<? extends com.example.grpc.SimpleServiceOuterClass.AreaOrBuilder> \n getAreaOrBuilderList();", "java.util.List<? extends WorldUps.UGoPickupOrBuilder> \n getPickupsOrBuilderList();", "private void getUsefulVariables(Iterable toIter)\n {\n String visualRepresentation = null;\n String name = null;\n String description = null;\n\n try {\n visualRepresentation = (String)toIter.getClass().getMethod(\"getVisualRepresentation\").invoke(toIter);\n name = (String)toIter.getClass().getMethod(\"getName\").invoke(toIter);\n description = (String)toIter.getClass().getMethod(\"getDescription\").invoke(toIter);\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(1);\n }\n this.infos.add(new String[]{visualRepresentation, name, description});\n }", "public abstract void mo56923b(List<C4122e> list);", "void mo1929a(int i, int i2, List<DkCloudRedeemFund> list);", "private ListNotificationRet(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "java.util.List<? extends protocol.Data.Friend.FriendItemOrBuilder> \n getFriendOrBuilderList();", "void mo100444b(List<C40429b> list);", "public void mem_list() {\n synchronized(chat_room) {\n Set id_set = cur_chat_room.keySet();\n Iterator iter = id_set.iterator();\n clearScreen(client_PW);\n client_PW.println(\"------------online member-----------\");\n while(iter.hasNext()) {\n String mem_id = (String)iter.next();\n if(mem_id != client_ID) {\n client_PW.println(mem_id);\n }\n }\n client_PW.flush();\n }\n }", "java.util.List<String> getRepeatedStringFieldList();", "private void m1088a(List<Integer> list) {\n this.f688c = list;\n }", "private ListNotification(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "java.util.List<? extends Pokemon.RequestOrBuilder> \n getRequestsOrBuilderList();", "public OccList()\n {\n int capacity = 8;\n data = new Occ[capacity];\n // initialize data with empty occ\n for (int i=0; i<capacity; i++) data[i] = new Occ(); \n }", "public void method_6436() {\r\n super();\r\n this.field_6225 = new ArrayList();\r\n this.field_6226 = new HashMap();\r\n }", "@objid (\"f29e2e4a-e5e9-43fa-b193-525c198df148\")\n EList<Message> getUsage();", "public void setListData() {\n \n for (int i = 0; i < 11; i++) {\n \n final NotificationLogMessage alert = new NotificationLogMessage();\n \n /******* Firstly take data in model object ******/\n alert.setMessageTitle(\"Message Title \"+i);\n alert.setDateAndTime(i+\":00am \"+i+\"/\"+i+\"/\"+\"2014\");\n alert.setMessageBody(\"There are now \" + i + \" messages\");\n \n /******** Take Model Object in ArrayList **********/\n testArr.add( alert );\n }\n \n }" ]
[ "0.5518371", "0.5199486", "0.5178781", "0.5172567", "0.49695578", "0.4962602", "0.49480686", "0.4947428", "0.49283332", "0.49085587", "0.4894083", "0.48901078", "0.48876482", "0.48536766", "0.48508197", "0.4830116", "0.48238963", "0.48205605", "0.48163226", "0.4808672", "0.4800609", "0.47997552", "0.47979906", "0.47929677", "0.47894233", "0.47784233", "0.4764526", "0.47626537", "0.47546753", "0.47533122", "0.4750198", "0.47477582", "0.47327226", "0.472279", "0.47217155", "0.47213456", "0.47210583", "0.47170907", "0.47117445", "0.47101864", "0.47057712", "0.4701581", "0.47003797", "0.46993917", "0.46952263", "0.46925923", "0.4690466", "0.46893346", "0.46694365", "0.46662307", "0.46636277", "0.46545509", "0.4654482", "0.46537584", "0.46498215", "0.4648937", "0.46384034", "0.46290994", "0.46253097", "0.46248266", "0.46215248", "0.4618527", "0.46121946", "0.46110654", "0.46108434", "0.46107632", "0.4607852", "0.4607288", "0.4606341", "0.46030444", "0.45957536", "0.4587996", "0.4583867", "0.4580391", "0.45779625", "0.45762882", "0.45675242", "0.45646632", "0.4559521", "0.45515355", "0.45501867", "0.45412886", "0.45412886", "0.45412886", "0.45393234", "0.453866", "0.45352995", "0.4534811", "0.45278153", "0.45269907", "0.45237905", "0.45220453", "0.45202333", "0.4519544", "0.45185965", "0.45151526", "0.45145208", "0.45108825", "0.4508673", "0.45082456" ]
0.5530379
0
Use Mine_Collect_Info_Mes.newBuilder() to construct.
private Mine_Collect_Info_Mes(Builder builder) { super(builder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MessageInfo() { }", "private MessageInformationQuest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "java.util.List<com.pkuvr.game_server.proto.serverproto.Mine_Collect_Log_Response.Mine_Collect_Info_Mes>\n getCollectListList();", "public InfoMessage createInfoMessage();", "private SCSyncMemberInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private ResGetVipInfoMsg(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private MessageCollectMoney(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private CircleInformationMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private MyDataInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private TradeMsgGunInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private END1001U02DsvLDOCS0801Info(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "com.google.protobuf.ByteString\n getMessageInfoIDBytes();", "private SCUserInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private TeamInfoRespMsg(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Collect(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Message(Parcel in) {\n text = in.readString();\n sender = in.readString();\n target = in.readString();\n sendersLatitude = in.readDouble();\n sendersLongitude = in.readDouble();\n numHops = in.readInt();\n expirationTime = in.readLong();\n createdByUser = in.readInt();\n }", "public Builder setMessageInfoIDBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n messageInfoID_ = value;\n onChanged();\n return this;\n }", "private TradeMsgPileInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private MessageRequestUserUpdateMapInformation(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private CSUserInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private ExpandInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private CSTeamInvite(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private SCTeamInviteReceive(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public OctopusCollectedMsg() {\n super(DEFAULT_MESSAGE_SIZE);\n amTypeSet(AM_TYPE);\n }", "private CourseInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "protected MessageInfo buildMessageInfo(NotificationContext ctx) {\n AbstractTemplateBuilder templateBuilder = getTemplateBuilder();\n if (templateBuilder == null) {\n templateBuilder = getTemplateBuilder(ctx);\n }\n MessageInfo massage = templateBuilder.buildMessage(ctx);\n assertNotNull(massage);\n return massage;\n }", "public Info() {\n super();\n }", "private StoredInfoTypeVersion(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private ChunkInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private NoticeObj(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "private PeerInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private MessageRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public CallInfo() {\n\t}", "private MsgSummon(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder clearMessageInfoID() {\n bitField0_ = (bitField0_ & ~0x00000002);\n messageInfoID_ = getDefaultInstance().getMessageInfoID();\n onChanged();\n return this;\n }", "private END1001U02GrdPurposeInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private QueQiaoInviteMsg(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public com.google.protobuf.ByteString\n getMessageInfoIDBytes() {\n java.lang.Object ref = messageInfoID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n messageInfoID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getMessageInfoIDBytes() {\n java.lang.Object ref = messageInfoID_;\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 messageInfoID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private CalRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "com.google.protobuf.ByteString\n getInfoBytes();", "private excplf_monitor_info(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private BatteryInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\n\tpublic void info(Marker marker, Message msg) {\n\n\t}", "public void majInformation (String typeMessage, String moduleMessage, String corpsMessage) {\n Date date = new Date();\n listMessageInfo.addFirst(dateFormat.format(date)+\" - \"+typeMessage+\" - \"+moduleMessage+\" - \"+corpsMessage);\n }", "private ProcessMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public OctopusCollectedMsg(net.tinyos.message.Message msg, int base_offset) {\n super(msg, base_offset, DEFAULT_MESSAGE_SIZE);\n amTypeSet(AM_TYPE);\n }", "private FileInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Message(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private ClientIpInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n public void onCollectInformationRequest(CollectInformationRequest arg0) {\n\n }", "public java.lang.String getMessageInfoID() {\n java.lang.Object ref = messageInfoID_;\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 messageInfoID_ = s;\n }\n return s;\n }\n }", "private Message(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "private TradeMsgChargeInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static Message createInfoMessage(String msg, long timestamp,\n\t\t\tint line, String scriptName) {\n\t\treturn new Message(INFO_MSG, msg, timestamp, line, scriptName);\n\t}", "private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private MessageWithLotsOfFields(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Messages(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public com.google.protobuf.ByteString\n getInfoBytes() {\n Object ref = info_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n info_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private ChargeInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private END1001U02StrInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private CSTeamCreate(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@Override\n\tpublic void info(Marker marker, Object message) {\n\n\t}", "public com.google.protobuf.ByteString\n getInfoBytes() {\n Object ref = info_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n info_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private MessageUpdateQuest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private ReceiveMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public java.lang.String getMessageInfoID() {\n java.lang.Object ref = messageInfoID_;\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 (bs.isValidUtf8()) {\n messageInfoID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "private MessageNotification(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private BaseMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private MsgFields(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\r\n super(builder);\r\n this.unknownFields = builder.getUnknownFields();\r\n }", "public ImmutableList<String> getInfoMessages() {\n return Lists.immutable.ofAll(infoMessages);\n }", "private CommonMsgPB(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private NewsIndResDetail(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "private SCChangeUserInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private ExperimentInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private PUserInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private CalRequest(\r\n\t\t\t\tcom.google.protobuf.GeneratedMessage.Builder<?> builder) {\r\n\t\t\tsuper(builder);\r\n\t\t\tthis.unknownFields = builder.getUnknownFields();\r\n\t\t}", "private Message(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\n public String getMailetInfo() {\n return \"Sieve Mailbox Mailet\";\n }", "private MsgNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\n\tpublic void info(Object message) {\n\n\t}", "private END1001U02DsvDwInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public java.lang.String getMes()\r\n {\r\n return this._mes;\r\n }", "private MsgInstantiateContract(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private FriendRequestObj(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "private Message(String message, long visibleTime, long creationTime, long id){\n\t\tthis(message, visibleTime);\n\t\tthis.creationTime = creationTime;\n\t\tthis.id = id;\n\t}", "private MessageResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private TokenInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public void setMessageInfo(String messageInfo);", "private RequestChangeMap(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Medicamento(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private CSChangeUserInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private ProfileMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder setMessageInfoID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n messageInfoID_ = value;\n onChanged();\n return this;\n }", "public Builder clearMsgID() {\n bitField0_ = (bitField0_ & ~0x00000001);\n msgID_ = netty.framework.messages.MsgId.MsgID.MESSAGER;\n \n return this;\n }", "public Builder clearMsgID() {\n bitField0_ = (bitField0_ & ~0x00000001);\n msgID_ = netty.framework.messages.MsgId.MsgID.MESSAGER;\n \n return this;\n }", "public Builder setInfoBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n info_ = value;\n onChanged();\n return this;\n }" ]
[ "0.64804065", "0.6397342", "0.6191634", "0.6161569", "0.6118856", "0.610311", "0.60804254", "0.5933738", "0.58772916", "0.57488185", "0.5738251", "0.5678206", "0.5628106", "0.5611405", "0.55866474", "0.5562434", "0.55443174", "0.5543509", "0.55313087", "0.55137444", "0.5485963", "0.54749936", "0.54435974", "0.5440992", "0.5438739", "0.54312056", "0.5427909", "0.5413054", "0.5409157", "0.5381985", "0.5362759", "0.5361363", "0.5344377", "0.5342639", "0.5318069", "0.5317214", "0.5316628", "0.53075683", "0.528576", "0.5271918", "0.5268619", "0.5252182", "0.52470756", "0.5242264", "0.52284825", "0.522606", "0.5223264", "0.5221537", "0.5214774", "0.5196447", "0.51928914", "0.5186208", "0.51771015", "0.5164004", "0.51602685", "0.51531243", "0.51531243", "0.51531243", "0.51531243", "0.5146666", "0.51463777", "0.51435876", "0.5140046", "0.5128933", "0.51272625", "0.5114486", "0.5112293", "0.51030916", "0.51001036", "0.5088673", "0.5086785", "0.50812256", "0.5067364", "0.50638425", "0.50612146", "0.50587434", "0.5054926", "0.50536144", "0.50506335", "0.5049315", "0.50446886", "0.503922", "0.5037874", "0.50352925", "0.50256675", "0.5023323", "0.50227076", "0.50137556", "0.5012364", "0.50060403", "0.50049204", "0.4999886", "0.4999234", "0.499894", "0.4989993", "0.4985981", "0.49830282", "0.49692035", "0.49692035", "0.49659163" ]
0.7391095
0
Use Mine_Collect_Log_Res.newBuilder() to construct.
private Mine_Collect_Log_Res(Builder builder) { super(builder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LogAnalysis(StatRes res) {\n\t\tthis.res=res;\n\t}", "private LogRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private LogsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private HeartBeatRes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public ClipLog() { }", "private SaveLogRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public RedpacketActivityOperationLog() {\n this(\"redpacket_activity_operation_log\", null);\n }", "private Collect(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public static com.example.DNSLog.Builder newBuilder() {\n return new com.example.DNSLog.Builder();\n }", "public SignalCollector(File log) {\r\n this.log = log;\r\n }", "public MyLogs() {\n }", "public Log() {\n cadenas = new Vector<String>();\n }", "public Log() { //Null constructor is adequate as all values start at zero\n\t}", "public Collect_result(Collect_result other) {\r\n }", "private NewsDupRes(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "private TypicalLogEntries() {}", "private Mine_Collect_Info_Mes(Builder builder) {\n super(builder);\n }", "public LogContract(){}", "private ActivityQueQiaoRes(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Log() {\n }", "private FetchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static com.example.DNSLog.Builder newBuilder(com.example.DNSLog other) {\n if (other == null) {\n return new com.example.DNSLog.Builder();\n } else {\n return new com.example.DNSLog.Builder(other);\n }\n }", "private GenericRefreshResponseCollectionProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public DNSLog() {}", "private CalResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private ResGetVipInfoMsg(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private BenchmarkResponse(com.google.protobuf.GeneratedMessage.Builder builder) {\n super(builder);\n }", "private MessageCollectMoney(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public static Function<ControlLogsResponse.Result, RecentLog> transform() {\n\t\treturn new Function<ControlLogsResponse.Result, RecentLog>() {\n\t\t\t@Override\n\t\t\tpublic RecentLog apply(ControlLogsResponse.Result input) {\n\t\t\t\tRecentLog obj = new RecentLog();\n\t\t\t\tobj.type = input.type;\n\t\t\t\tobj.param = input.param;\n\t\t\t\tobj.count = input.count;\n\t\t\t\tobj.hide = false;\n\n\t\t\t\treturn obj;\n\t\t\t}\n\t\t};\n\t}", "private CalRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public SystemLogMessage() {\n\t\tthis.setVersion(Constants.VERSION);\t\t\t\t\t\t\t\t//version is universal for all log messages\n\t\tthis.setCertifiedDatatype(Constants.SYSTEM_LOG_OID);\t\t\t//certifiedDataType is the OID, for all transaction logs it is the same\n\t\t\n\t\t//algorithm parameter has to be set using the LogMessage setAlgorithm method.\n\t\t//the ERSSpecificModule has to set the algorithm\n\t\t//serial number has to be set by someone who has access to it \n\t}", "private SCTeamInviteResult(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private BlockReportResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Log(String name) {\n this.name = name;\n this.entries = new ArrayList<>();\n }", "private Log() {\r\n\t}", "private QueryLoginRes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private RetryInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private CalResponse(\r\n\t\t\t\tcom.google.protobuf.GeneratedMessage.Builder<?> builder) {\r\n\t\t\tsuper(builder);\r\n\t\t\tthis.unknownFields = builder.getUnknownFields();\r\n\t\t}", "public ResultObject getLogData(LogDataRequest logDateRequest)throws ParserException;", "private MatrixResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private NewsIndRes(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "@Override\r\n public Log getLog(Cursor cursor) {\n long id = getLongFromCursor(cursor, LogDbAdapter.KEY_ID);\r\n long timestamp = getLongFromCursor(cursor, LogDbAdapter.KEY_TIMESTAMP);\r\n String appName = getStringFromCursor(cursor, LogEventDbAdapter.KEY_APPNAME);\r\n String eventName = getStringFromCursor(cursor, LogEventDbAdapter.KEY_EVENTNAME);\r\n String parameters = getStringFromCursor(cursor, LogEventDbAdapter.KEY_EVENTPARAMETERS);\r\n String text = getStringFromCursor(cursor, LogDbAdapter.KEY_DESCRIPTION);\r\n\r\n // Create a new Log object from the data\r\n EventLog log = new EventLog(id, timestamp, appName, eventName, parameters, text);\r\n return log;\r\n }", "private CalRequest(\r\n\t\t\t\tcom.google.protobuf.GeneratedMessage.Builder<?> builder) {\r\n\t\t\tsuper(builder);\r\n\t\t\tthis.unknownFields = builder.getUnknownFields();\r\n\t\t}", "private LocalSearchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public LogEntry () {\n }", "public Catelog() {\n super();\n }", "public RunResult(\n Status status,\n ImmutableList<TestResult> testResults,\n ImmutableMap<String, byte[]> logs) {\n Preconditions.checkNotNull(status);\n Preconditions.checkNotNull(testResults);\n Preconditions.checkNotNull(logs);\n this.status = status;\n this.testResults = testResults;\n this.logs = logs;\n }", "public static TimeTakenLogEntry create() {\n return builder().build();\n }", "private ContentValues fromCallLogsData(CallLogsData calllogFileEntry) {\n ContentValues values = new ContentValues();\n// if(!otherPhone){\n// values.put(Phone._ID,calllogFileEntry.id);\n// }\n values.put(CallLog.Calls.NEW, calllogFileEntry.new_Type);\n values.put(\"simid\", calllogFileEntry.simid);\n values.put(CallLog.Calls.TYPE, calllogFileEntry.type);\n// values.put(CallLog.Calls.CACHED_NAME, calllogFileEntry.name);\n values.put(CallLog.Calls.DATE, calllogFileEntry.date);\n values.put(CallLog.Calls.NUMBER, calllogFileEntry.number);\n values.put(CallLog.Calls.DURATION, calllogFileEntry.duration);\n// values.put(CallLog.Calls.CACHED_NUMBER_TYPE, calllogFileEntry.number_type);\n return values;\n }", "private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private ArrayList<CallLogsData> getCallLogEntry() {\n ArrayList<CallLogsData> calllogsList = new ArrayList<CallLogsData>();\n try {\n File file = new File(mParentFolderPath + File.separator + ModulePath.FOLDER_CALLLOG\n + File.separator + ModulePath.NAME_CALLLOG);\n BufferedReader buffreader = new BufferedReader(new InputStreamReader(\n new FileInputStream(file)));\n String line = null;\n CallLogsData calllogData = null;\n while ((line = buffreader.readLine()) != null) {\n if (line.startsWith(CallLogsData.BEGIN_VCALL)) {\n calllogData = new CallLogsData();\n// MyLogger.logD(CLASS_TAG,\"startsWith(BEGIN_VCALL)\");\n }\n if (line.startsWith(CallLogsData.ID)) {\n calllogData.id = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(ID) = \" +calllogData.id);\n }\n\n if (line.startsWith(CallLogsData.SIMID)) {\n calllogData.simid = Utils.slot2SimId(Integer.parseInt(getColonString(line)),\n mContext);\n }\n if (line.startsWith(CallLogsData.NEW)) {\n calllogData.new_Type = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(NEW) = \" +calllogData.new_Type);\n }\n if (line.startsWith(CallLogsData.TYPE)) {\n calllogData.type = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(TYPE) = \" +calllogData.type);\n }\n if (line.startsWith(CallLogsData.DATE)) {\n String time = getColonString(line);\n// Date date = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").parse(time);\n// calllogData.date = date.getTime();\n\n calllogData.date = Utils.unParseDate(time);\n\n MyLogger.logD(CLASS_TAG, \"startsWith(DATE) = \" + calllogData.date);\n }\n if (line.startsWith(CallLogsData.NAME)) {\n calllogData.name = getColonString(line);\n// MyLogger.logD(CLASS_TAG,\"startsWith(NAME) = \" +calllogData.name);\n }\n if (line.startsWith(CallLogsData.NUMBER)) {\n calllogData.number = getColonString(line);\n// MyLogger.logD(CLASS_TAG,\"startsWith(NUMBER) = \"+calllogData.number);\n }\n if (line.startsWith(CallLogsData.DURATION)) {\n calllogData.duration = Long.parseLong(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(DURATION) = \"+calllogData.duration);\n }\n if (line.startsWith(CallLogsData.NMUBER_TYPE)) {\n calllogData.number_type = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(NMUBER_TYPE) = \"+calllogData.number_type);\n }\n if (line.startsWith(CallLogsData.END_VCALL)) {\n// MyLogger.logD(CLASS_TAG,calllogData.toString());\n calllogsList.add(calllogData);\n MyLogger.logD(CLASS_TAG, \"startsWith(END_VCALL)\");\n }\n }\n buffreader.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n MyLogger.logE(CLASS_TAG, \"init failed\");\n }\n return calllogsList;\n }", "private LogsOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "java.util.List<com.pkuvr.game_server.proto.serverproto.Mine_Collect_Log_Response.Mine_Collect_Info_Mes>\n getCollectListList();", "private BenchmarkRequest(com.google.protobuf.GeneratedMessage.Builder builder) {\n super(builder);\n }", "public Logger(int loglv) {\r\n LOGLV = loglv;\r\n }", "private ReplicateResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Logger() {\n map = new LinkedHashMap<>();\n }", "protected Log getLog()\n/* */ {\n/* 59 */ return log;\n/* */ }", "private LesenRPCResult(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private SyncResultsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "ResultLog() {\r\n interactions = new boolean[1];\r\n indexRef = 0;\r\n }", "private Log()\n {\n //Hides implicit constructor.\n }", "com.google.protobuf.ByteString\n getLogMessageBytes();", "private ActivityLZ(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private NewsIndResDetail(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }", "private final LogEntry generateLogEntry(final TransactionInternal txn, \n ReusableBuffer payload, final BabuDBRequestResultImpl<Object> listener, \n final Object[] results) {\n \n LogEntry result = new LogEntry(payload, new SyncListener() {\n \n @Override\n public void synced(LSN lsn) {\n \n try {\n \n if (!isAsync) {\n BabuDBException irregs = txn.getIrregularities();\n \n if (irregs == null) {\n listener.finished(results, lsn);\n } else {\n throw new BabuDBException(irregs.getErrorCode(), \"Transaction \"\n \t+ \"failed at the execution of the \" + (txn.size() + 1) \n + \"th operation, because: \" + irregs.getMessage(), irregs);\n }\n }\n } catch (BabuDBException error) {\n \n if (!isAsync) {\n listener.failed(error);\n } else {\n Logging.logError(Logging.LEVEL_WARN, this, error);\n }\n } finally {\n \n Logging.logMessage(Logging.LEVEL_DEBUG, Category.babudb, this, \"... transaction %s finished.\",\n txn.toString());\n \n // notify listeners (sync)\n if (!isAsync) {\n for (TransactionListener l : listeners) {\n l.transactionPerformed(txn);\n }\n }\n }\n }\n \n @Override\n public void failed(Exception ex) {\n if (!isAsync) {\n listener.failed((ex != null && ex instanceof BabuDBException) ? \n (BabuDBException) ex : new BabuDBException(\n ErrorCode.INTERNAL_ERROR, ex.getMessage()));\n }\n }\n }, LogEntry.PAYLOAD_TYPE_TRANSACTION);\n \n return result;\n }", "private IssueResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public LogEntry generateLogEntry() {\n long time = getTime();\n int bloodGlucose = getBloodGlucose();\n double bolus = getBolus();\n int carbohydrate = getCarbohydrate();\n return new LogEntry(time, bloodGlucose, bolus, carbohydrate);\n }", "private BlockReportRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private ResultSetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private JournalEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private SCTeamPrepareResult(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public LogX() {\n\n }", "private Result_(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "LogEntryProto getLogEntry();", "private SCTeamCreateResult(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "synchronized static public Report getReport() {\n return new Report(\n collectedEntrys,\n collectables.stream().sorted((a, b) -> a.collectableSince.compareTo(b.collectableSince))\n .collect(Collectors.toList()));\n }", "public WifiMetricsProto.WifiRttLog consolidateProto() {\n WifiMetricsProto.WifiRttLog log = new WifiMetricsProto.WifiRttLog();\n log.rttToAp = new WifiMetricsProto.WifiRttLog.RttToPeerLog();\n log.rttToAware = new WifiMetricsProto.WifiRttLog.RttToPeerLog();\n synchronized (mLock) {\n log.numRequests = mNumStartRangingCalls;\n log.histogramOverallStatus = consolidateOverallStatus(mOverallStatusHistogram);\n\n consolidatePeerType(log.rttToAp, mPerPeerTypeInfo[PEER_AP]);\n consolidatePeerType(log.rttToAware, mPerPeerTypeInfo[PEER_AWARE]);\n }\n return log;\n }", "private KafkaLoggingMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private Tracing(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public SearchLogs() {\n this(\"search_logs\", null);\n }", "private SCTeamJoinResult(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public OrderLogRecord() {\n super(OrderLog.ORDER_LOG);\n }", "private JarDetails(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private SCTeamInviteReceive(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private UserLoginRes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public LogBook() {\n logs = new UniqueLogList();\n exercises = new UniqueExerciseList();\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 }", "private FightSinglePVEResultResMsg_6104(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private MsgStoreCodeResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private HeartBeatResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private HeartBeatResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private TicketLog createLog() throws SQLException {\n\t\t\t\t\treturn new TicketLog(rs.getLong(1), rs.getString(2),\n\t\t\t\t\t\t\trs.getLong(3),\n\t\t\t\t\t\t\tTicketLog.Action.valueOf(rs.getString(4)),\n\t\t\t\t\t\t\trs.getInt(5));\n\t\t\t\t}", "private EmployeeRes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public LogsV3() {\n nodeidx = \"\";\n name = \"\";\n log = \"\";\n _excludeFields = \"\";\n }", "private QueryReconnectRes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Builder(com.example.DNSLog other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.uid)) {\n this.uid = data().deepCopy(fields()[0].schema(), other.uid);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.originh)) {\n this.originh = data().deepCopy(fields()[1].schema(), other.originh);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.originp)) {\n this.originp = data().deepCopy(fields()[2].schema(), other.originp);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.resph)) {\n this.resph = data().deepCopy(fields()[3].schema(), other.resph);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.respp)) {\n this.respp = data().deepCopy(fields()[4].schema(), other.respp);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.proto)) {\n this.proto = data().deepCopy(fields()[5].schema(), other.proto);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.port)) {\n this.port = data().deepCopy(fields()[6].schema(), other.port);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.ts)) {\n this.ts = data().deepCopy(fields()[7].schema(), other.ts);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.query)) {\n this.query = data().deepCopy(fields()[8].schema(), other.query);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.qclass)) {\n this.qclass = data().deepCopy(fields()[9].schema(), other.qclass);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.qclassname)) {\n this.qclassname = data().deepCopy(fields()[10].schema(), other.qclassname);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.qtype)) {\n this.qtype = data().deepCopy(fields()[11].schema(), other.qtype);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.qtypename)) {\n this.qtypename = data().deepCopy(fields()[12].schema(), other.qtypename);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.rcode)) {\n this.rcode = data().deepCopy(fields()[13].schema(), other.rcode);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.rcodename)) {\n this.rcodename = data().deepCopy(fields()[14].schema(), other.rcodename);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.Z)) {\n this.Z = data().deepCopy(fields()[15].schema(), other.Z);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.OR)) {\n this.OR = data().deepCopy(fields()[16].schema(), other.OR);\n fieldSetFlags()[16] = true;\n }\n if (isValidValue(fields()[17], other.AA)) {\n this.AA = data().deepCopy(fields()[17].schema(), other.AA);\n fieldSetFlags()[17] = true;\n }\n if (isValidValue(fields()[18], other.TC)) {\n this.TC = data().deepCopy(fields()[18].schema(), other.TC);\n fieldSetFlags()[18] = true;\n }\n if (isValidValue(fields()[19], other.rejected)) {\n this.rejected = data().deepCopy(fields()[19].schema(), other.rejected);\n fieldSetFlags()[19] = true;\n }\n if (isValidValue(fields()[20], other.Answers)) {\n this.Answers = data().deepCopy(fields()[20].schema(), other.Answers);\n fieldSetFlags()[20] = true;\n }\n if (isValidValue(fields()[21], other.TLLs)) {\n this.TLLs = data().deepCopy(fields()[21].schema(), other.TLLs);\n fieldSetFlags()[21] = true;\n }\n }", "private CallResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public UpdateTrackingResp() {\n }", "public LogFilter() {}" ]
[ "0.5978843", "0.5704097", "0.565967", "0.54600734", "0.54284835", "0.5392625", "0.5357365", "0.53421396", "0.52599156", "0.5249152", "0.5214134", "0.5212937", "0.5202464", "0.51880866", "0.51701987", "0.5111407", "0.5027037", "0.4991999", "0.49453583", "0.49214226", "0.49203858", "0.49005115", "0.4890424", "0.4888658", "0.48851866", "0.48754418", "0.48510128", "0.48391306", "0.48342776", "0.48301777", "0.47982937", "0.47956625", "0.4774219", "0.4770145", "0.47440943", "0.47283223", "0.47204864", "0.4703543", "0.46962982", "0.46940136", "0.46917224", "0.46837795", "0.46812803", "0.4676627", "0.46716678", "0.4663757", "0.46619916", "0.46619073", "0.46601573", "0.46578896", "0.46558857", "0.46535298", "0.46494335", "0.46448416", "0.46429014", "0.46389586", "0.46388704", "0.46386057", "0.4621588", "0.46192917", "0.46171033", "0.46144754", "0.46005344", "0.45967674", "0.45884216", "0.45678547", "0.45636377", "0.4560551", "0.45528778", "0.4552467", "0.45425996", "0.45351908", "0.45268458", "0.45266223", "0.45265874", "0.4521181", "0.45199215", "0.45194787", "0.45158517", "0.45135322", "0.4505178", "0.45049798", "0.4504513", "0.45036483", "0.4501088", "0.45008987", "0.44900793", "0.4489907", "0.4488955", "0.4482128", "0.44819927", "0.44819927", "0.44813982", "0.44791463", "0.44737557", "0.44733003", "0.44720355", "0.4470631", "0.4464114", "0.4463269" ]
0.7084188
0
method initialize This method counts the occurances of target in line.
public static int countChar ( char target, String line ) { int sum = 0; // Look for the first target character in line. int index = line.indexOf ( target ); // Loop, counting all occurances. while ( index >= 0 ) { sum++; // Check if reached the last character in line. if ( index == line.length () - 1 ) return sum; // Search for an additional target character in line. index = line.indexOf ( target, index+1 ); } // while return sum; // return the count }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WordCount()\n {\n //initializes common variables.\n lineNums = new CircularList();\n count = 1;\n }", "public WordCount(String _word, int lnNum)\n {\n //initializes common variables \n count = 1;\n lineNums = new CircularList();\n //initializes specific passed variables\n word = _word;\n addLineNum(lnNum);\n }", "@Override\n public void initialize(CounterInitializationContext context) {\n assertThat(context.getLeaf().getChildren()).isEmpty();\n\n Optional<Measure> measureOptional = context.getMeasure(NEW_LINES_TO_COVER_KEY);\n if (!measureOptional.isPresent()) {\n return;\n }\n this.values.increment((int) measureOptional.get().getVariation());\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "@Override\n public void processNextSentence(Sentence target) {\n String[] tokens = target.getTokens();\n\n //Create hash of alignments word->frequency:\n HashMap<String, Integer> counts = new HashMap<>();\n\n //Get word counts:\n for (String token : tokens) {\n if (counts.get(token) == null) {\n counts.put(token, 1);\n } else {\n counts.put(token, counts.get(token) + 1);\n }\n }\n\n //Add resource to sentence:\n target.setValue(\"wordcounts\", counts);\n }", "public SampleHapCount( String filePath, String target ) {\n\t\t// TODO Auto-generated constructor stub\n\t\tsh = new SampleHap( filePath, target );\t// re-sue this code from MS\n\t\tfrequency = new HashMap<String, Double>();\n\t\tparentHapCount = 0;\n\t\tnextLastRank = 0;\t\t// in case we need to add the last rank number\n\t\t\t\t\n\t\tList<Integer> intList = new ArrayList<Integer>();\t// hold parent count\t\t\t\t\n\t\tMap<String, Integer> hapCount = new HashMap<String, Integer>();\t\n\t\t\n\t\t// capture only parent hap count\n\t\tMap<String, List<Integer>> hapCountList = new HashMap<String, List<Integer>>();\n\t\t\n\t\tfor (String hap : sh.getHaplotypes().getList()) {\t// go through unique haplotype\n\t\t\tif (!hap.contains(\"NT\")) {\n\t\t\t\tint parentCount = 0;\t// how many times haplotype appeared, homozygous => 2\n\t\t\t\tint childCount = 0;\n\t\t\t\t// hold list parentCount, familyCount, sampleCount\n\t\t\t\tList<Integer> countList = new ArrayList<Integer>();\n\t\t\t\tNonRedundantList family = new NonRedundantList();\n\t\t\t\tfor (String sample : sh.getSampleList()) {\n\t\t\t\t\tif (!sh.getSampleRelation().get(sample).equals(\"child\")) {\t// parents\n\t\t\t\t\t\tfor (String str : sh.getSampleHap().get(sample)) {\t// go through list to count homozygous\n\t\t\t\t\t\t\tif (str.equals(hap)) {\n\t\t\t\t\t\t\t\tparentCount++;\t// parent haplotype count\n\t\t\t\t\t\t\t\tparentHapCount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sh.getSampleHap().get(sample).contains(hap)) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfamily.addNonRedundantList(sh.getSampleFam().get(sample));\t// add family\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\t// child\n\t\t\t\t\t\tif (sh.getSampleHap().get(sample).contains(hap)) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (String str : sh.getSampleHap().get(sample)) {\t// go through list to count homozygous\n\t\t\t\t\t\t\t\tif (str.equals(hap)) {\n\t\t\t\t\t\t\t\t\tchildCount++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfamily.addNonRedundantList(sh.getSampleFam().get(sample));\t// add family\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (parentCount != 0) {\n\t\t\t\t\tintList.add( parentCount );\t// parental hap count\n\t\t\t\t\t\n\t\t\t\t\tcountList.add( family.getList().size() );\t// family count\n\t\t\t\t\tcountList.add( parentCount + childCount );\t// sample count\n\t\t\t\t\thapCount.put( hap, parentCount );\n\t\t\t\t\thapCountList.put( hap, countList );\t// not including parent here\n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\t// ranking largest count to the lowest count\n\t\tCollections.sort(intList, Collections.reverseOrder());\t// sore descending order\n\t\tnextLastRank = intList.size();\t// to add rank for 0 incidence of small group\n\t\t\t\t\n\t\thapCountRank = new HashMap<String, List<Integer>>();\n\t\tfor (String hap : hapCountList.keySet()) {\t// go through haplotype\n\t\t\tList<Integer> tmpList = new ArrayList<Integer>();\t// list to hold values\n\t\t\ttmpList.add(hapCount.get(hap));\t// parent count => index of 0\n\t\t\ttmpList.add(intList.indexOf(hapCount.get(hap)) + 1);\t// ranking => index of 1\n\t\t\ttmpList.addAll(hapCountList.get(hap));\t// family & sample count => index of 2,3\n\t\t\t\n\t\t\thapCountRank.put(hap, tmpList);\t\t\n\t\t\tdouble count = (double)hapCount.get(hap);\n\t\t\tdouble total = (double)parentHapCount;\n\t\t\tdouble freq = count / total;\t\t// no conversion to %\n\t\t\tfrequency.put(hap, freq);\t// haplotype frequency\n\t\t}\t\t\n\t}", "@Override\n public void initialize(CounterInitializationContext context) {\n assertThat(context.getLeaf().getChildren()).isEmpty();\n\n Optional<Measure> measureOptional = context.getMeasure(LINES_KEY);\n if (measureOptional.isPresent()) {\n value += measureOptional.get().getIntValue();\n }\n }", "private WordCounting() {\r\n }", "public void resetCount() {\n\t\tresetCount(lineNode);\n\t}", "private void traverseLine(String str) {\n\t\tFrequencyCount f ;\r\n\t\tint prev = 0;\r\n\t\tString docid = \"\";\r\n\t\tint flag = 0,flag1 = 0;\r\n\t\tfor(int k = 0;k<str.length();k++)\r\n\t\t{\r\n\t\t\t//System.out.print(str.charAt(k));\r\n\t\t\tif(str.charAt(k) == ':'){\r\n\t\t\t\tflag = 1;k++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(flag == 1){\r\n\t\t\t\tint indexid;\r\n\t\t\t\tif(flag1 == 0){\r\n\t\t\t\t\tcounter = \"\";\r\n\t\t\t\t\tindexid = str.indexOf(':', k);\r\n\t\t\t\t\tcounter = str.substring(k, indexid);\r\n\t\t\t\t\tk = indexid+1;\r\n\t\t\t\t\tflag1 = 1;\r\n\t\t\t\t}\r\n\t\t\t\tindexid = str.indexOf('#', k);\r\n\t\t\t\tdocid = String.valueOf(Integer.parseInt(str.substring(k, indexid))+prev);\r\n\t\t\t\tprev = Integer.parseInt(docid);\r\n\t\t\t\t\r\n\t\t\t\tf = new FrequencyCount(docid);\r\n\t\t\t\tk = indexid+1;\r\n\t\t\t\twhile(str.charAt(k) != '|'){\r\n\t\t\t\t\tif(k+1 == str.length()){\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(str.charAt(k) == '#') {k++;continue;}\r\n\t\t\t\t\tint flagop = 0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tswitch(str.charAt(k)){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tcase 't' : flagop = 1;\r\n\t\t\t\t\t\t\t\t\t break;\r\n\t\t\t\t\t\tcase 'i' : flagop = 2;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 'b' : flagop = 3;\r\n\t\t\t\t \t\t \t\t\tbreak;\r\n\t\t\t\t\t\tcase 'r' : flagop = 6;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 'L' : flagop = 5;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 'c' : flagop = 4;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 'l' : flagop = 7;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tdefault : flagop = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(flagop != 0){\r\n\t\t\t\t\t\tindexid = Math.min(str.indexOf('#', k), str.indexOf('|', k));\r\n\t\t\t\t\t\tif(indexid == -1){\r\n\t\t\t\t\t\t\tindexid = str.indexOf('|', k);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\tint count = Integer.parseInt(str.substring(k+1, indexid));\r\n\t\t\t\t\t\t//System.out.print(count +\" \");\r\n\t\t\t\t\t\tfor(int j = 0;j<count;j++)\r\n\t\t\t\t\t\t\tf.incrementCounter(flagop);\r\n\t\t\t\t\t\tk = indexid;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcatch(Exception e){e.printStackTrace();\r\n\t\t\t\t\t\t\tSystem.out.println(\"EXCEPTION : \"+e.getMessage());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfc.add(f);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tword = word+str.charAt(k);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void init(int i, int j, MDocument d, Caret c){\n\t\t\n\t\tString s= d.getText();\n\t\tCount myCount = new Count(s);\n\t\t\n\t\t//this fetches the current line the caret is on\n\t\t//and the number of characters up to that line\n\t\tint h= myCount.getCharCountAtLine(c.getLineNumber(s));\n\t\t\n\t d.insertString(h, \"\\n\");\n\t pos.add(d.createPositon(h+2)); \n\t pos.add(d.createPositon(h+7));\n\t d.insertString(h+6, \"1.\");\n\t \n\t}", "public HitCounter() {\n q = new LinkedList<>();\n }", "WordCounter(String inputText){\r\n \r\n wordSource = inputText;\r\n }", "public CountBasedScannableCode() {}", "public HitCounter() {\n hits = new int[300];\n times = new int[300];\n }", "public HitCounter() {\n hits = new int[300];\n times = new int[300];\n }", "public void setCount(XPath v)\n {\n m_countMatchPattern = v;\n }", "public Counter() {\r\n this.count = 0;\r\n }", "public void setMatches() {\r\n this.matches++;\r\n\r\n }", "public LogAnalyzer()\n { \n // Create the array object to hold the hourly\n // access counts.\n hourCounts = new int[24];\n // Create the reader to obtain the data.\n reader = new LogfileReader();\n }", "public HitCounter() {\n q = new ArrayDeque();\n map = new HashMap();\n PERIOD = 300;\n hits = 0;\n }", "public void setNoOfRelevantLines(int norl) { this.noOfRelevantLines = norl; }", "@Override\n public void initialize() {\n conveyor.setBallCount(0);\n conveyor.startTime(); \n }", "public HitCounter() {\n q = new ArrayDeque();\n PERIOD = 300;\n }", "public HitCounter() {\n map = new HashMap<Integer, Integer>();\n }", "private void initCounts() {\n this.angry_count = findViewById(R.id.anger_count);\n this.fear_count = findViewById(R.id.fear_count);\n this.joyful_count = findViewById(R.id.joy_count);\n this.love_count = findViewById(R.id.love_count);\n this.sad_count = findViewById(R.id.sad_count);\n this.suprise_count = findViewById(R.id.suprise_count);\n\n this.updateCounts();\n }", "public ClickCounter() {\n System.out.println(\"Click constructor: \" + count);\n \n }", "public distance()\n\t{\n\t\t// Initialize all data members.\n\t\tnumDatasets = 0;\t\t\t\n\t\tline = null;\n \tinputLine = null;\t\t\t\n\t\ttokenBuffer = null;\n\t\tlistSize = 0;\n\t}", "public void setTargeted() {\n targeted ++;\n }", "private static int countConstruct(String target, String[] wordBank, Map<String, Integer> memo) {\n\n\t\t// Memo : check if data is there in memo\n\t\tif (memo.containsKey(target)) {\n\t\t\treturn memo.get(target);\n\t\t}\n\n\t\t// Base case : When target string is empty, construction is possible\n\t\tif (target.equals(\"\")) {\n\t\t\treturn 1;\n\t\t}\n\n\t\tint totalCount = 0;\n\t\tfor (String word : wordBank) {\n\n\t\t\t// Check if target starts with the word\n\t\t\tif (target.startsWith(word)) {\n\n\t\t\t\t// if target starts with word then do sub-string and remove the word to make a\n\t\t\t\t// new target\n\t\t\t\t// Add the count to total count\n\t\t\t\ttotalCount += countConstruct(target.substring(word.length()), wordBank, memo);\n\t\t\t}\n\t\t}\n\n\t\t// Put count of a target string in memo\n\t\tmemo.put(target, totalCount);\n\t\treturn totalCount;\n\t}", "public myCounter() {\n\t\tcounter = 1;\n\t}", "@Override\n protected void initializeReader() {\n this.fileList = new ArrayList<>();\n this.fileListPosition = new AtomicInteger(0);\n this.currentTextAnnotation = new AtomicReference<>();\n }", "private synchronized void updateLineCount(long lineCount) {\r\n\t\tthis.parsedLines += lineCount;\r\n\t}", "void initialize(Graph graph, Node targetStart, Node searchStart, ExpandCounter counter);", "@Override\n public void init()\n {\n target.setAbsoluteTolerance(ANGLE_ABSOLUTE_TOLERANCE); // Configure the target's absolute tolerance\n /*\n Limit the speed on the target between these values to prevent overshooting and damage to motors\n Normally we would leave the output range without bounds because we wish for the end affector to reach the setpoint\n as fast as possible, in a constant time, which would mean having an output proportional to it's error, but in this case\n We don't care how long it takes to reach its target, we just want it to get there in one piece */\n //System.out.println(\"INITIALIZING PID CONTROL\");\n target.setOutputRange(-0.15, 0.15);\n\n /* load percent control in because output is simply a percentage */\n target.loadLeftController(\"percent\");\n target.loadRightController(\"percent\");\n }", "public myCounter(int startValue) {\n\t\tcounter = startValue;\n\t}", "private Count() {}", "private Count() {}", "public HitCounter() {\n map = new TreeMap<>();\n }", "public void createCounters() {\n // COUNTERS CREATION //\n //create a new counter for the blocks.\n this.blockCounter = new Counter();\n //create a new counter for the blocks.\n this.ballCounter = new Counter();\n }", "@Override\n public void update(LabeledText labeledText){\n super.update(labeledText);\n\n /* FILL IN HERE */\n classCounts[labeledText.label]++;\n for (String ng: labeledText.text.ngrams) { \n \tfor (int h=0;h< nbOfHashes;h++) {\n \t\tcounts[labeledText.label][h][hash(ng,h)]++; \n \t}\n \t//System.out.println(\"Hash: \" + hash(ng) + \" Label : \" + labeledText.label + \" Update: \" + counts[labeledText.label][hash(ng)]);\n }\n \n }", "protected void initialize() {\n \t\n \tstart_time = System.currentTimeMillis();\n \t\n \tgoal = start_time + duration;\n }", "public Countable(){\n counter++;\n objectName = \"Countable \" + counter;\n// System.out.println(objectName);\n }", "protected void setup(Mapper<Text, Text, Text, Text>.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tInputStream is = this.getClass().getResourceAsStream(\"ArticleCounts\");\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is)); //Open text\t\t\t\t\n\n String line;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] splitter = line.split(\"\\t\");\t\t\n\t\t\t\tprofessionCount.put(splitter[0], Integer.parseInt(splitter[1])); \n\t\t\t\ttotalCount += Integer.parseInt(splitter[1]);\n\t\t\t}\n\t\t\tsuper.setup(context);\n\t\t}", "public CalcCountRecord(int cnt)\r\n/* 14: */ {\r\n/* 15:48 */ super(Type.CALCCOUNT);\r\n/* 16:49 */ this.calcCount = cnt;\r\n/* 17: */ }", "public void count() throws UserCancelledException {\n\t\tint numAttributes = matrixInfo.getNumAttributes(); // total # of columns\n\t\t// int tVals = matrixInfo.getNumValues(target); // total # of rows\n\t\tint tVals = target.getMapping().size();\n\t\tint[][] counts; // the counts for this column\n\t\tAttribute a; // the current attribute (columns) being processed\n\t\tint vals; // the attribute's number of values\n\t\t// this thread counts every delta'th attribute beginning at i\n\t\tfor (int i = index; i < numAttributes; i += delta) {\n\n\t\t\ta = matrixInfo.getAttribute(i);\n\t\t\tvals = a.getMapping().getValues().size();\n\n\t\t\tif (a == target) {\n\t\t\t\t// special routine to count target distrn\n\t\t\t\tint[] tCounts = new int[vals];\n\t\t\t\tfor (Example e : exampleSet) {\n\t\t\t\t\ttCounts[(int) e.getValue(a)]++;\n\t\t\t\t}\n\t\t\t\tmatrix.addTargetCounts(tCounts);\n\n\t\t\t} else {\n\t\t\t\t// routine to count all regular attributes\n\t\t\t\tcounts = new int[tVals][vals];\n\t\t\t\t// count through examples\n\t\t\t\tfor (Example e : exampleSet) {\n\t\t\t\t\tcounts[(int) e.getValue(target)][(int) e.getValue(a)]++;\n\t\t\t\t}\n\t\t\t\tmatrix.addAttributeCounts(a, counts);\n\t\t\t}\n\t\t\tProgressManager.makeProgress();\n\t\t}\n\t}", "public Vulture(int x, int y){\n\t\n\t\tsuper(x,y);\n\t\tsuper.countbird++;\n\t}", "public WordCount() {\n }", "WordCounter(){\r\n }", "protected void initialize() {\n\t\tL.ogInit(this);\n\t\t_timesRumbled = 0;\n\t}", "public void initialize() {\n final Double optimismRate = new Double(0.0);\n _counts.clear();\n _values.clear();\n\n for (Integer index : Range.closed(0, _armsNo - 1).asSet(DiscreteDomains.integers())) {\n _counts.add(index, optimismRate.intValue());\n _values.add(index, optimismRate);\n }\n }", "public Submarine() {\n length = 1;\n hit = new boolean[1];\n }", "public Slogan (String str)\n\t{\n\t\tpharse = str; //This can replace str \n\t\tcount++; //Don't forget iterate count variable here\n\t}", "private void initiateWordCount(){\n for(String key: DataModel.bloomFilter.keySet()){\n WordCountHam.put(key, 0);\n WordCountSpam.put(key, 0);\n }\n }", "public AllWordsCounter() {\n counters = new SingleWordCounter[MAX_WORDS];\n // TODO: initialize instance variable to hold MAX_WORDS objects\n\n }", "public void addOccurence() {\n\t\tcount = count + 1;\n\t}", "public TextPos() {\n lineNumber = -1;\n linePos = -1; \n }", "protected void initialize() {\n \ttarget = (int) SmartDashboard.getNumber(\"target\", 120);\n \ttarget = (int) (target * Constants.TICKS_TO_INCHES);\n\t\tRobot.drive.stop();\n\t\tmaxCount = (int) SmartDashboard.getNumber(\"max count\", 0);\n\t\ttolerance = (int) SmartDashboard.getNumber(\"tolerance\", 0);\n\t\tRobot.drive.left.motor1.setSelectedSensorPosition(0, Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n\t\tRobot.drive.right.motor1.setSelectedSensorPosition(0, Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n }", "public WordCount(String word, int count){\n this.word = word;\n this.count = count;\n }", "@Override\n\tpublic void initialize(String source) {\n\t\tmyFirst = new Node(source);\n\t\tmyLast = new Node(\"\");\n\t\tmyLast = myFirst;\n\t\t\n\t\tmyFirst.next = myLast;\n\t\tmyLast.next = null;\n\t\t//myFirst.info = s;\n\t\t//myFirst.next = myLast;\n\t\t//myLast.info =s;\n\t\t//myLast.next = null;\n\t\tmySize = source.length();\n\t\tmyAppends = 0;\n\t\t\n\t\tmyIndex = 0;\n\t\tmyLocalIndex = 0;\n\t\tmyCurrent = myFirst;\n\t\t\n\t}", "public Counter() {\r\n value = 0;\r\n }", "public void addCount()\n {\n \tcount++;\n }", "public BasicCounter() {\n count = 0;\n }", "private int lineCounter(String s)\n {\n try{\n BufferedReader b = new BufferedReader(new FileReader(s));\n String line = \"\";\n\n // For each line read, increment the counter\n while ((line = b.readLine()) != null) \n {\n linecount++;\n }\n\n b.close();}\n catch(Exception e)\n {System.out.println(\"Error: \"+e.getMessage());}\n return linecount;\n }", "public Counter(int init){\n \tvalue = init;\n }", "@Override public void init_loop() {\n loop_cnt_++;\n }", "protected void initNumOfMoves() {\n\t\tthis.numOfMoves = 0;\n\t}", "@Override\n public void run(Sentence source, Sentence target) {\n float noTokens;\n StringTokenizer st = new StringTokenizer(source.getText());\n if (source.isSet(\"noTokens\")) {\n noTokens = source.getNoTokens();\n } else {\n noTokens = st.countTokens();\n source.setValue(\"noTokens\", noTokens);\n }\n String token;\n int count = 0;\n while (st.hasMoreTokens()) {\n token = st.nextToken();\n if (StringOperations.isNoAlpha(token)) {\n count++;\n }\n\n }\n setValue((float) count / noTokens);\n //setValue(0);\n }", "public Counter(int count)\n {\n this.setCount(count);\n }", "public Target(TargetMeta targetMeta, float x, float y) {\n super(targetMeta, x, y);\n metaObject = targetMeta;\n hitCounter = 0;\n }", "protected void initialize(){\n\t\tRobot.driveTrain.changeTalonControlMode(TalonControlMode.Follower);\n\t\tRobot.driveTrain.setTalonsReversedState(true);\n\t\tRobotMap.visionSensor.startProcessing(PIDVisionSourceType.DistanceFromTarget);\n\t\thasStarted = RobotMap.VisionDistanceLeftPIDController.init(m_setPoint, StaticMembers.ABSOLUTE_TOLERANCE_DISTANCE);\n\t\thasStarted = RobotMap.VisionDistanceRightPIDController.init(m_setPoint, StaticMembers.ABSOLUTE_TOLERANCE_DISTANCE) && hasStarted;\n\t}", "@Override\n\tpublic void count() {\n\t\t\n\t}", "private void initialize() {\n\t\tfor(String key: count_e_f.keySet()){\n\t\t\tcount_e_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\tfor(Integer key: total_f.keySet()){\n\t\t\ttotal_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\t//This code is not efficient.\n//\t\tfor(Entry<String, Integer> german : mainIBM.gerWordsIdx.entrySet()){\n//\t\t\tfor(Entry<String, Integer> english : mainIBM.engWordsIdx.entrySet()){\n//\t\t\t\tcount_e_f.put(english.getValue() + \"-\" + german.getValue(), 0.0);\n//\t\t\t}\n//\t\t\ttotal_f.put(german.getValue(), 0.0);\n//\t\t}\t\n\n\t}", "private void inititalzeAnimalMatrixCounter() {\r\n\t\tCounterProperties cp = new CounterProperties();\r\n\t\tcp.set(AnimationPropertiesKeys.FILLED_PROPERTY, true);\r\n\t\tcp.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.BLUE);\r\n\t\tcounter = lang.newCounter(mainMatrix);\r\n\t\tlang.newCounterView(counter, new Offset(200, 0, \"header\", AnimalScript.DIRECTION_NW), cp, true, true);\r\n\t}", "private void count(Entry curr)\n {\n \t//Increase Prefix count if any word is found.\n \tif (curr.EndOfWord == true)\n \t\tprefixCnt += 1;\n \t\n \tfor (HashMap.Entry<Character, Entry> entry : curr.child.entrySet())\n \t{\n \t\tcount(entry.getValue());\n \t}\n }", "private static void setCounter() {++counter;}", "public Analyzer (int n0, int n1)\n\t{\n this.begN = n0;\n this.endN = n1;\n }", "public void initState(KeyValueState<String, Long> state) {\n this.wordcount=state;\r\n\r\n }", "protected void initialize() {\n \ttarget = Robot.trackingCamera.getTarget();\n targetX = target[0];\n targetY = target[1];\n \tstopTime = System.currentTimeMillis() + timeOut;\n }", "public void set_count(int c);", "public Counter()\n {\n this(0);\n }", "private static void initializeEventCounter(String[] args) {\n\t\tFile inFile = null;\n\t\tif (0 < args.length) {\n\t\t inFile = new File(args[0]);\n\t\t} else {\n\t\t System.err.println(\"Invalid arguments count:\" + args.length);\n\t\t System.exit(0);\n\t\t}\n\t\tBufferedReader br = null;\n\t try {\n\t String sCurrentLine;\n\t br = new BufferedReader(new FileReader(inFile));\n\t numberOfPairs = Integer.parseInt(br.readLine());\n\t int readCount = 0;\n\t while ((sCurrentLine = br.readLine()) != null && readCount < numberOfPairs) {\n\t \tString[] pair = sCurrentLine.split(\" \");\n\t if(Integer.parseInt(pair[1]) > 0)\n\t \teventPairs.add(new EventPair(Integer.parseInt(pair[0]), Integer.parseInt(pair[1])));\n\t readCount++;\n\t }\n\t }\n\t catch (IOException e) {\n\t e.printStackTrace();\n\t } \n\t finally {\n\t try {\n\t if (br != null)br.close();\n\t } catch (IOException ex) {\n\t ex.printStackTrace();\n\t }\n\t }\n\t}", "public Apriori(String dataPath, int supportThreshold){\n mThreshold = supportThreshold;\n mItemSet = new LinkedList<>();\n mDataList = new ArrayList<>();\n skipLines = new HashSet<>();\n\n // Construct a list of one item sets\n Map<Integer, Integer> atomicFIS = new HashMap<>();\n Map<Integer, Integer> sizeFrequency = new HashMap<>();\n\n try {\n BufferedReader dataBase\n = new BufferedReader(new InputStreamReader(new FileInputStream(new File(dataPath))));\n int lineCount = 0;\n int wordCount = 0;\n while (dataBase.ready()){\n String transaction = dataBase.readLine();\n StringTokenizer tokenizer = new StringTokenizer(transaction, \" \");\n List<Integer> line = new ArrayList<>();\n\n // Count of the number of items in this transaction\n int count = 0;\n\n while(tokenizer.hasMoreElements()){\n int item = Integer.parseInt(tokenizer.nextToken());\n line.add(item);\n //lineSet.add(item);\n if (atomicFIS.containsKey(item)){\n atomicFIS.put(item, atomicFIS.get(item) + 1);\n } else{\n atomicFIS.put(item, 1);\n }\n\n count ++;\n }\n\n if (sizeFrequency.containsKey(count)){\n sizeFrequency.put(count, sizeFrequency.get(count) + 1);\n } else{\n sizeFrequency.put(count, 1);\n }\n mDataList.add(line);\n //mDataSet.add(lineSet);\n wordCount += count;\n lineCount++;\n }\n averageCount = wordCount / lineCount;\n dataBase.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n oneDimensionFIS = new ArrayList<>();\n\n for (Map.Entry<Integer, Integer> entry : atomicFIS.entrySet()){\n if (entry.getValue() >= mThreshold){\n int[] temp = new int[1];\n temp[0] = entry.getKey();\n oneDimensionFIS.add(temp);\n // Put the Set - frequency entry in result\n mItemSet.add(entry.getKey() + \"(\" + entry.getValue() + \")\\n\");\n }\n }\n }", "void Create(){\n map = new TreeMap<>();\r\n\r\n // Now we split the words up using punction and spaces\r\n String wordArray[] = wordSource.split(\"[{ \\n\\r.,]}}?\");\r\n\r\n // Now we loop through the array\r\n for (String wordArray1 : wordArray) {\r\n String key = wordArray1.toLowerCase();\r\n // If this word is not present in the map then add it\r\n // and set the word count to 1\r\n if (key.length() > 0){\r\n if (!map.containsKey(map)){\r\n map.put(key, 1);\r\n }\r\n else {\r\n int wordCount = map.get(key);\r\n wordCount++;\r\n map.put(key, wordCount);\r\n }\r\n }\r\n } // end of for loop\r\n \r\n // Get all entries into a set\r\n // I think that before this we just have key-value pairs\r\n entrySet = map.entrySet();\r\n \r\n }", "public TokenSizeAnalyzer() {\n tokenSizes = new TreeMap<Integer, Integer>();\n }", "public CountInfo() {\n\t\tthis.rank = 0;\n\t\tthis.number = 0;\n\t}", "@Override\r\n\tpublic Long call() throws Exception {\r\n\t\tString line;\r\n\t\tchar [] wordArray;\r\n\t\tint i;\r\n\t\tchar c;\r\n\t\ttry {\r\n\t\t\tline = setOfLines.take();\r\n\t\t\tString[] words = line.replaceAll(\"\\\\s+\", \" \").split(\" \");\r\n\t\t\t\r\n\t\t\tfor(String word : words) {\r\n\t\t\t\twordArray = word.toCharArray();\r\n\t\t\t\tfor(i=0;i<wordArray.length;i++) {\r\n\t\t\t\t\tc = wordArray[i];\r\n\t\t\t\t\tif(countNumbers ? (!((c>64&&c<91)||(c>96 &&c<123)||(c>47&&c<58))) : (!((c>64&&c<91)||(c>96 &&c<123))) ) {\r\n\t\t\t\t\t\tword = word.replace(c+\"\",\"\" );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(word.isEmpty()) continue;\r\n\t\t\t\tsynchronized (this) {\r\n\t\t\t\t\tif(wordCount.containsKey(word)) {\r\n\t\t\t\t\t\twordCount.put(word, (wordCount.get(word)+1));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\twordCount.put(word, 1);\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} \r\n\t\tcatch (InterruptedException e) {\r\n\t\t\tcustomFile.setErrorString(\"An Error occurred while processing this file, word count may not\"\r\n\t\t\t\t\t+\"be accurate\");\r\n\t\t\t\r\n\t\t\tlogger.error(e);\r\n\t\t}\r\n\t\treturn new Long(0);\r\n\t}", "int getLinesCount();", "public DistributionCounter(List<T> listOfTargets) {\n distributionList = new ArrayList<>();\n this.listOfTargets = listOfTargets;\n sumOfExpenses = calculateSum();\n }", "public Forward () {\r\n\t\tsuper();\r\n\t\tgoalsScored = 0;\r\n\t\tnumAssists = 0;\r\n\t\tshotsOnTarget = 0;\r\n\t}", "protected ChangeAnalyzer() {\r\n }", "public void parseLineAndCountTransitions(String line){\n\t\tString[] words=line.split(\" \");\n\t\t\n\t\tassert(words.length>0&&words.length%2==0);\n\t\t\n\t\t//add the first start_symbol to the state count map\n\t\t{\n\t\t\tif(!transition_map.containsKey(padding_word)){\n\t\t\t\ttransition_map.put(padding_word,new TransitionUnit());\n\t\t\t}\n\t\t\tHashMap<String,DataUnit> state_transition_map=transition_map.get(padding_word).state_transition;\n\t\t\tif(!state_transition_map.containsKey(words[1])){\n\t\t\t\tstate_transition_map.put(words[1],new DataUnit());\n\t\t\t}\n\t\t\tstate_transition_map.get(words[1]).count++;\n\t\t}\n\t\t//count each (y,x) and (y,y') pair\n\t\tfor(int i=0;i<words.length/2;i++){\n\t\t\t\n\t\t\t//each x is at position 2*i and each y is at position 2*i+1\n\t\t\tString xWord=words[2*i],yWord=words[2*i+1];\n\t\t\t\n\t\t\t//add each word to unknown_set if it doesn't contain this word\n\t\t\t//but if it already contains this word, remove from unknown_set\n\t\t\tif(unknown_set.contains(xWord)){\n\t\t\t\tunknown_set.remove(xWord);\n\t\t\t\tpopular_set.add(xWord);\n\t\t\t}else if(!popular_set.contains(xWord)){\n\t\t\t\tunknown_set.add(xWord);\n\t\t\t}\n\t\t\t\n\t\t\tif(!transition_map.containsKey(yWord)){\n\t\t\t\ttransition_map.put(yWord,new TransitionUnit());\n\t\t\t}\n\t\t\tTransitionUnit transitionSubMap=transition_map.get(yWord);\n\t\t\tString nextY=((i==words.length/2-1)?padding_word:words[2*i+3]);\n\t\t\tif(!transitionSubMap.state_transition.containsKey(nextY)){\n\t\t\t\ttransitionSubMap.state_transition.put(nextY,new DataUnit());\n\t\t\t}\n\t\t\ttransitionSubMap.state_transition.get(nextY).count++;\n\t\t\tif(!transitionSubMap.terminal_transition.containsKey(xWord)){\n\t\t\t\ttransitionSubMap.terminal_transition.put(xWord,new DataUnit());\n\t\t\t}\n\t\t\ttransitionSubMap.terminal_transition.get(xWord).count++;\n\t\t}\n\t\t\n\t}", "public int getNoOfRelevantLines() { return this.noOfRelevantLines; }", "public TestMe()\r\n/* 11: */ {\r\n/* 12:10 */ this.myNumber = (instanceCounter++);\r\n/* 13: */ }", "protected void initialize() {\n this.locals = Common.calculateSegmentSize(Common.NUM_CORES);\n this.drvrs = Common.calculateSegmentSize(Common.NUM_CORES);\n reports = new ArrayList<>();\n }", "public static void main(String[] args) {\n\t\tint[] i = new int[100];\n\t\tint unique = 0;\n\t\tfloat ratio = 0;\n\t\tList<String> inputWords = new ArrayList<String>();\n\t\tMap<String,List<String>> wordcount = new HashMap<String,List<String>>();\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"/Users/huziyi/Documents/NLP file/Assignment1/Twitter messages.txt\"));\n\t\t\tString str;\n\t\t\twhile((str = in.readLine())!=null){\n\t\t\t\tstr = str.toLowerCase();\n\t\t\t\t\n\t\t\t\tString[] words = str.split(\"\\\\s+\");\n\t\t\t\t\n\t\t\t//\tSystem.out.println(words);\n\t\t\t//\tSystem.out.println(\"1\");\n\t\t\t\tfor(String word:words){\n\t\t\t\t\t\n\t\t\t//\t\tString word = new String();\n\t\t\t\t\t\n\t\t\t\t\tword = word.replaceAll(\"[^a-zA-Z]\", \"\");\n\t\t\t\t\tinputWords.add(word);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tfor(int k=0;k<inputWords.size()-1;k++){\n\t\t\tString thisWord = inputWords.get(k);\n\t\t\tString nextWord = inputWords.get(k+1);\n\t\t\tif(!wordcount.containsKey(thisWord)){\n\t\t\t\twordcount.put(thisWord, new ArrayList<String>());\n\t\t\t}\n\t\t\twordcount.get(thisWord).add(nextWord);\n\t\t}\n\t\t for(Entry e : wordcount.entrySet()){\n\t// System.out.println(e.getKey());\n\t\tMap<String, Integer>count = new HashMap<String, Integer>();\n List<String>words = (List)e.getValue();\n for(String s : words){\n if(!count.containsKey(s)){\n count.put(s, 1);\n }\n else{\n count.put(s, count.get(s) + 1);\n }\n }\n \t\n // for(Entry e1 : wordcount.entrySet()){\n for(Entry f : count.entrySet()){\n \n // \tint m = 0;\n //\tint[] i = new int[100];\n //\ti[m] = (Integer) f.getValue();\n \tint n = (Integer) f.getValue();\n \tn = (Integer) f.getValue();\n // \tList<String> values = new ArrayList<String>();\n \t\t// values.addAll(count.g());\n \tif(n>=120){\n \tif(!(e.getKey().equals(\"\"))&&!(f.getKey().equals(\"\"))){\n //\t\t int a = (Integer) f.getValue();\n //\t\t Arrays.sort(a);\n System.out.println(e.getKey()+\" \"+f.getKey() + \" : \" + f.getValue());\n \n \t}\n \t}\n //\tm++;\n \t }\n\t\t }\n\t\t \n\t\n\t\t \n\t\t// Arrays.sort(i);\n\t\t //System.out.println(i[0]+i[1]);\n/*\n\t\t ArrayList<String> values = new ArrayList<String>();\n\t\t values.addAll(count.values());\n\n\t\t Collections.sort(values, Collections.reverseOrder());\n\n\t\t int last_i = -1;\n\n\t\t for (Integer i : values.subList(0, 99)) { \n\t\t if (last_i == i) \n\t\t continue;\n\t\t last_i = i;\n\n\n\n\n\t\t for (String s : wordcount.keySet()) { \n\n\t\t if (wordcount.get(s) == i)\n\t\t \n\t\t \tSystem.out.println(s+ \" \" + i);\n\n\t\t }\n\t\t \n\t\t\t}*/\n\t}", "public Node(String s, Node n, Node p){\n element = new WordCount(s);\n next = n;\n prev = p;\n }", "public Counter(int initial, String name, String comment, String date){\n value = initial;\n this.name = name;\n this.comment = comment;\n this.date = date;\n this.inital_value=initial;\n\n }", "public Counter() {\n //this.max = max;\n }" ]
[ "0.67854804", "0.635744", "0.6314858", "0.58994454", "0.58994454", "0.58639187", "0.5686332", "0.56854135", "0.56471604", "0.55979836", "0.55878997", "0.556685", "0.5555", "0.552315", "0.549488", "0.5493145", "0.5493145", "0.5482912", "0.5450438", "0.5441748", "0.5431353", "0.5409418", "0.53727967", "0.5357503", "0.5355433", "0.5314297", "0.53094757", "0.52928555", "0.5285225", "0.52718323", "0.52605516", "0.52509636", "0.5231492", "0.5227936", "0.5195142", "0.51678413", "0.5164939", "0.51641494", "0.51641494", "0.516277", "0.5148756", "0.5142068", "0.5134382", "0.51325697", "0.5128883", "0.51166254", "0.5111787", "0.509972", "0.5098158", "0.50856745", "0.50817055", "0.5074605", "0.50678545", "0.50622344", "0.5057893", "0.5054846", "0.5050728", "0.50382555", "0.5035365", "0.50210893", "0.5016484", "0.5009907", "0.500868", "0.50008523", "0.49917713", "0.49729884", "0.49717274", "0.4966919", "0.49633312", "0.4959671", "0.49470797", "0.49444887", "0.4930621", "0.49256146", "0.4922755", "0.4918795", "0.4915907", "0.4904165", "0.48992172", "0.48917717", "0.4888797", "0.4882806", "0.48817942", "0.4877235", "0.48740062", "0.4868098", "0.48586762", "0.48567918", "0.48451006", "0.48345426", "0.48232782", "0.48225382", "0.48217896", "0.48217562", "0.4821373", "0.48189652", "0.48004648", "0.47990355", "0.4784382", "0.47828647" ]
0.5057057
55
method getFloat This method returns the current text line.
public String getLine () { return line; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float readFloat() {\n return Float.parseFloat(readNextLine());\n }", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineOffset() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineOffset());\n }", "@Override\r\n public float floatValue() {\r\n return (float) this.m_current;\r\n }", "public\n String getLf()\n {\n return lf;\n }", "public String getLine() {\r\n\t\treturn currentString;\r\n\t}", "Double getStartFloat();", "public String getTextFr() {\n return textFr;\n }", "public Line getLine ()\r\n {\r\n if (line == null) {\r\n computeLine();\r\n }\r\n\r\n return line;\r\n }", "public float get_float() {\n return local_float;\n }", "@Override\n public Line getLine() {\n return line;\n }", "public Line getLine()\n {\n return line;\n }", "private float measureLineNumber(){\n mPaint.setTypeface(mTypefaceLineNumber);\n int count = 0;\n int lineCount = getLineCount();\n while(lineCount > 0){\n count++;\n lineCount /= 10;\n }\n float single = mPaint.measureText(\"0\");\n return single * count * 1.01f;\n }", "public float toFloat(){\n\t\tString s = txt().trim();\n\t\tfloat i;\n\t\ttry{\n\t\t\ti = Float.parseFloat(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn 0f;\n\t\t\t\n\t\t}\n\t\treturn i;\t\n\t}", "public int getLinePos() {\n return linePos;\n }", "public abstract float getLineWidth();", "public String getLine() {\n return this.line;\n }", "public String getLine() {\r\n\t\treturn content;\r\n\t}", "private int getCurrentLineByCursor() {\n return Math.min((int)cursor.getY() / lineHeight + 1, textBuffer.getMaxLine()-1);\n }", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineRoundLimit() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineRoundLimit());\n }", "@Override\n public float nextFloat() {\n nextState();\n return outputFloat();\n }", "@Override\r\n\tpublic float getFloat(int pos) {\n\t\treturn buffer.getFloat(pos);\r\n\t}", "String getCurrentLine();", "public int getLine() {\r\n return line;\r\n }", "public float getFloat() throws NoSuchElementException,\n\t NumberFormatException\n {\n\tString s = tokenizer.nextToken();\n\treturn Float.parseFloat(s);\n }", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineWidth() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineWidth());\n }", "public int getLinePosition() {\n return linePosition;\n }", "public float getExtraLineSpacing() {\n return mTextContainer.getExtraLineSpacing();\n }", "public int line() {\r\n return line;\r\n }", "public String getline() {\n\t\treturn _line;\n\t}", "public float getMin()\n {\n parse_text(); \n return min;\n }", "public static float getValueFloat()\n {\n return Util.valueFloat;\n }", "Double getTotalFloat();", "public int getTextPosition() {\r\n return TextPosition;\r\n }", "public int getLine() {\n return line;\n }", "public int getLine() {\r\n\t\treturn line;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineMiterLimit() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineMiterLimit());\n }", "public String getValue() {\n if (mValue == null) {\n float[] values = mValues;\n mValue = String.format(mTextFmt, values[0], values[1], values[2]);\n }\n return mValue == null ? \"??\" : mValue;\n }", "public String getLine() {\n\t\treturn line.toString();\n\t}", "public Float getMark() {\n return mark;\n }", "public int getLine() {return _line;}", "public int getLine() {\n return line;\n }", "public int getLine() {\n\t\treturn line;\n\t}", "@Override\n public float nextFloat() {\n return super.nextFloat();\n }", "public String getLine() {\n \treturn this.lineColor;\n }", "public float getValue()\n\t{\n\t\treturn this.value;\n\t}", "public float getFloatValue() {\n \t\treturn floatValue;\n \t}", "String getFloat_lit();", "public TextPosition getPosition ( ) { return _cursorPosition; }", "public int getLineWeight()\n {\n return lineaspessore;\n }", "public Float getValue() {\n\t\treturn value;\n\t}", "public Float getValue() {\n\t\treturn value;\n\t}", "public String getLine3() {\n return line3;\n }", "public float floatValue() {\n return this.value;\n }", "public String getCssText() {\n \t\treturn getCssText(unitType, floatValue);\n \t}", "public float leerFloat() throws IOException\r\n {\r\n return maestro.readFloat(); \r\n }", "public java.lang.Float getPt() {\n return pt;\n }", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineOpacity() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineOpacity());\n }", "public String getLine3() {\n return line3;\n }", "public float toFloat() {\n return this.toFloatArray()[0];\n }", "public int getLine() {\n return lineNum;\n }", "public float floatValue() {\n return ( (Float) getAllele()).floatValue();\n }", "public java.lang.Float getPt() {\n return pt;\n }", "public double get_additional_line_cost() {\n\t\treturn additionallinecost;\n\t}", "public float getReturn()\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(RETURN$0, 0);\r\n if (target == null)\r\n {\r\n return 0.0f;\r\n }\r\n return target.getFloatValue();\r\n }\r\n }", "public float getCurrentValue() {\n return currentValue;\n }", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineBlur() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineBlur());\n }", "public float getValue()\r\n {\r\n return getSemanticObject().getFloatProperty(swps_floatValue);\r\n }", "public float getValue() {\n return value_;\n }", "public float getValue() {\n\t\treturn value;\n\t}", "public final float getValue() {\r\n\t\treturn value;\r\n\t}", "public float floatValue() {\n\t\treturn (float) mDouble;\n\t}", "public float floatValue() {\n return (float) m_value;\n }", "@Override\n\tpublic Vector3d getPosition() {\n\t\tVector3f pos = this.getChild(NON_LINES_NAME).getLocalTranslation();\n\t\treturn new Vector3d(pos.x, pos.y, pos.z);\n\t}", "public float getValue() {\n return value_;\n }", "public float getValue() {\n return value;\n }", "public int getPointLine(float yPos){\n int r = (int)yPos / getLineHeight();\n return r < 0 ? 0 : r;\n }", "public int getPositionWithinLine() {\n\t\treturn positionWithinLine;\n\t}", "@Override\n public float getAmount() {\n return Float.parseFloat(inputAmount.getText());\n }", "public Float getValue () {\r\n\t\treturn (Float) getStateHelper().eval(PropertyKeys.value);\r\n\t}", "public String getFinshMark() {\r\n return multiplier;\r\n }", "public String getTextAsString () {\n\t\tString val = null;\n\t\tif(text!=null) {\n\t\t\tText t = text.getText();\n\t\t\tTextLine[] lines = t.getLines();\n\t\t\t\n\t\t\tif(lines.length >0) {\n\t\t\t\tint endline = lines.length - 1;\n\t\t\t\tTextLine lastline = lines[endline];\n\t\t\t\tif(lastline!= null) {\n\t\t\t\t\tint endOffset = lastline.getLength();\n\t\t\t\t\tTextRange tr = new TextRange(new TextLocation(0,0), new TextLocation(endline,endOffset));\n\t\t\t\t\tval = t.getText(tr);\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t\treturn val;\n\t}", "public float readFloat() {\n\t\tif(!isInit) return 0F;\n\t\tfloat result = 0F;\n\t\tisListening = true;\n\t\twriteLine(\"Waiting for Float input...\");\n\t\twhile(isListening) {\n\t\t\ttry {\n\t\t\t\tresult = Float.parseFloat(inputArea.getText());\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\tresult= 0F;\n\t\t\t}\n\t\t}\n\t\tinputArea.setText(\"\");\n\t\twriteLine(\"Input: \" + result);\n\t\treturn result;\n\t}", "public float floatValue()\n\t\t{\n\t\t\treturn (float) doubleValue();\n\t\t}", "public float getLineHeightMultiplier() {\n return mTextContainer.getLineHeightMultiplier();\n }", "public static double readFloat() {\n return Float.parseFloat(readString());\n }", "public static int getLine() {\r\n\t\treturn rline;\r\n\t}", "public double getPosition() {\n return sequence.getPosition(BPMNode);\n }", "public VCFLine getCurrentValidLine () {\n\t\tcurrentLine = reader.getCurrentLine();\n\t\tpassValidation(currentLine);\n\t\treturn currentLine;\n\t}", "Double getFinishFloat();", "public synchronized float getProgressFloat() {\n BigDecimal bigDecimal = BigDecimal.valueOf(mProgress);\n return bigDecimal.setScale(mScale, BigDecimal.ROUND_HALF_UP).floatValue();\n }", "@Override\n public String getTextBaseline() {\n return graphicsEnvironmentImpl.getTextBaseline(canvas);\n }", "float readFloat() {\n try {\n return in.readFloat();\n } catch (IOException ex) {\n return DisasmError();\n }\n }", "public String getDefline() {\n\t\treturn defline;\n\t}", "public Float getSpeechDrpr() {\n return speechDrpr;\n }", "public float getPosition(){\n\t\treturn (float)cFrame + interpol;\n\t}", "public int getStartLine() {\r\n \r\n return startLine;\r\n }", "public int getLineToStart() {\r\n\t\treturn this.lineToStart;\r\n\t}", "public float floatValue() {\r\n return (float) intValue();\r\n }", "public float getFloat(String key)\n {\n return getFloat(key, 0);\n }", "public String getCurrentInputString() { return line; }" ]
[ "0.6712779", "0.666056", "0.6489901", "0.64026785", "0.6369141", "0.6263007", "0.61832374", "0.61606383", "0.61415184", "0.61219084", "0.6089028", "0.60774857", "0.60642165", "0.6064187", "0.6064006", "0.60579056", "0.60448045", "0.6002923", "0.5988007", "0.598449", "0.59818256", "0.5949324", "0.59320515", "0.59250146", "0.5924294", "0.5921382", "0.59190804", "0.5919051", "0.5916557", "0.5912545", "0.59114194", "0.59035754", "0.5890511", "0.58886206", "0.58869696", "0.58868587", "0.5880221", "0.5877659", "0.5876459", "0.58739567", "0.58678436", "0.58339095", "0.58332384", "0.58224225", "0.5817364", "0.57911325", "0.57887655", "0.57848334", "0.57702404", "0.5768683", "0.5768683", "0.5765441", "0.5764365", "0.57538325", "0.57413554", "0.5737966", "0.57341826", "0.57314223", "0.57294834", "0.5725716", "0.5711348", "0.57103986", "0.569666", "0.56947666", "0.56820416", "0.5670626", "0.56676394", "0.56675", "0.5665033", "0.56517977", "0.565155", "0.56426454", "0.56368256", "0.56293875", "0.5625805", "0.5621654", "0.56118757", "0.5601535", "0.55950505", "0.5589564", "0.5586446", "0.5582742", "0.5580106", "0.5562519", "0.5558252", "0.55345833", "0.5533519", "0.55334747", "0.55292946", "0.5525238", "0.5521416", "0.55203676", "0.5517556", "0.551509", "0.5510853", "0.5506828", "0.5505", "0.55025095", "0.55009615", "0.5496537" ]
0.58752686
39
method getLine This method sets the current text line.
public void setLine ( String value ) { line = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLine() {\n return this.line;\n }", "public String getLine() {\r\n\t\treturn currentString;\r\n\t}", "@Override\n public Line getLine() {\n return line;\n }", "public void setLine(int line);", "public void setLine (int Line);", "public void setLine(String line) {\n this.line = line;\n //System.out.println(this.line + \" \" + line);\n }", "public void setline(String line) {\n\t\t_line = line;\n\t}", "public String getLine ()\n {\n return line;\n }", "public Line getLine()\n {\n return line;\n }", "public void setTextline(boolean textline) {\n this.textline = textline;\n }", "public int getLine() {\n return line;\n }", "public int getLine() {\r\n\t\treturn line;\r\n\t}", "public int getLine() {\r\n return line;\r\n }", "public String getCurrentInputString() { return line; }", "public CommandLine getLine() {\n return line;\n }", "String getCurrentLine();", "public int getLine() {\n\t\treturn line;\n\t}", "public int getLine() {\n return line;\n }", "public int getLine() {\n return lineNum;\n }", "public void setLinePos(int linePos) {\n this.linePos = linePos;\n }", "public String getline() {\n\t\treturn _line;\n\t}", "public String getLine() {\n\t\treturn line.toString();\n\t}", "void markLine() {\n lineMark = cursor;\n }", "public abstract String getLine(int lineNumber);", "public void cosoleText(String line)\n\t{\n\t\tconsole.setText(line);\n\t}", "public void line(String line) {\n\t\t}", "public Line getLine ()\r\n {\r\n if (line == null) {\r\n computeLine();\r\n }\r\n\r\n return line;\r\n }", "public String getLine();", "public String getLine()\n\t{\n\t\ttry\n\t\t{\n\t\t\tline = reader.readLine();\n\t\t} catch (IOException ioe)\n\t\t{\n\t\t\t//\n\t\t}\n\n\t\treturn line;\n\t}", "public int getLinePos() {\n return linePos;\n }", "public int getLine() {return _line;}", "public String getLine() {\r\n\t\treturn content;\r\n\t}", "public int getLinePosition() {\n return linePosition;\n }", "public void setLinePosition(int pos) {\n this.linePosition = pos;\n }", "public int getLineNum() {\n\t\treturn lineNum;\n\t}", "public void setLineNo (int LineNo);", "public static int getLine() {\r\n\t\treturn rline;\r\n\t}", "public MInOutLine getLine()\n\t{\n\t\tif (m_line == null)\n\t\t\tm_line = new MInOutLine (getCtx(), getM_InOutLine_ID(), get_TrxName());\n\t\treturn m_line;\n\t}", "public Line getLine(String targetLine);", "public int getLineToStart() {\r\n\t\treturn this.lineToStart;\r\n\t}", "private void readLine() throws IOException {\n line = reader.readLine(); // null at the end of the source\n currentPos = -1;\n\n if (line != null) {\n lineNum++;\n }\n\n if (line != null) {\n sendMessage(new Message(MessageType.SOURCE_LINE, new Object[]{lineNum, line}));\n }\n }", "public int line() {\r\n return line;\r\n }", "private String getLineAt(int linenum) {\n\t\ttry {\n\t\t\tint start = mainTextArea.getLineStartOffset(linenum);\n\t\t\tint end = mainTextArea.getLineEndOffset(linenum);\n\t\t\treturn mainTextArea.getText(start, end - start);\n\t\t} catch (BadLocationException e) {\n\t\t\treturn (\"\");\n\t\t}\n\t}", "void onLine(Terminal terminal, String line);", "public int getSelectedLine() {\n\t\treturn selectedLine;\n\t}", "public void setCurrent(String sourcePath, int lineNumber){ // debugger line numbers start at 1...\n\t\tif (lineNumber>0 && sourcePath!=null){\n\t\t\tVector<LineBounds> v=this.lineBounds.get(sourcePath);\n\t\t\tif(v!=null){\n\t\t\t\tfinal LineBounds lb=v.get(lineNumber-1); // src line numbers start at 1, but vectors are like array, start at 0...\n\t\t\t\tif (lb!=null){\n\t\t\t\t\tif (this.curLine!=null){\n\t\t\t\t\t\tapplyAttributeSet(this.curLine, otherLineSet);\n\t\t\t\t\t}\n\t\t\t\t\tapplyAttributeSet(lb, currentLineSet);\n\t\t\t\t\t// ensure visibility...\n\t\t\t\t\t// from: http://www.java2s.com/Code/Java/Swing-JFC/AppendingTextPane.htm\n\t\t\t\t\t// The OVERALL protection with invokeLater is mine (LA) and seems very necessary !!\n\t\t\t\t\t SwingUtilities.invokeLater( new Runnable() {\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\tfinal Rectangle r;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tr = textPane.modelToView(lb.start);\n\t\t\t\t\t\t\t\t if (r != null) { // may be null even if no exception has been raised.\n\t\t\t\t\t\t\t\t\t textPane.scrollRectToVisible(r);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t // this.textPane.scrollRectToVisible(r);\n\t\t\t\t\t\t\t} catch (Throwable any) {\n\t\t\t\t\t\t\t\tLogger.getLogger(\"\").logp(Level.WARNING, this.getClass().getName(), \n\t\t\t\t\t\t\t\t\t\t\"setCurrent\", \"modelToView failed !\", any);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t }\n\t\t\t\t\t });\t\t\t\n\t\t\t\t\tthis.curLine=lb;\n\t\t\t\t}else{\n\t\t\t\t\t// line not found in file !\n\t\t\t\t\tLogger.getLogger(\"\").logp(Level.SEVERE, this.getClass().getName(), \n\t\t\t\t\t\t\t\"setCurrent\", lineNumber+\" out of range in \"+sourcePath);\n\t\t\t\t\t// TODO: what do we do ?\n\t\t\t\t\t// no more Highlight...\n\t\t\t\t\tif (this.curLine!=null){\n\t\t\t\t\t\tapplyAttributeSet(this.curLine, otherLineSet);\n\t\t\t\t\t\tthis.curLine=null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tLogger.getLogger(\"\").logp(Level.SEVERE, this.getClass().getName(), \n\t\t\t\t\t\t\"setCurrent\", sourcePath+\" not loaded in this SourceFrame\");\n\t\t\t}\n\t\t}else{\n\t\t\t// no more Highlight\n\t\t\tif (this.curLine!=null){\n\t\t\t\tapplyAttributeSet(this.curLine, otherLineSet);\n\t\t\t\tthis.curLine=null;\n\t\t\t}\n\t\t}\n\t\t// TODO: clean. System.out.println(vScrollbar.getValue()+\" \"+vScrollbar.getMinimum()+\" \"+vScrollbar.getMaximum());\n\t}", "public int getLine();", "public int getLine();", "public int getLine();", "public abstract int getLine();", "public abstract int getLine();", "public TextLine(String text) {\n\t\tthis.text = text.toString();\n\t}", "String getLine();", "void setCurrentLineNode(Node<UnderlyingData> currentLineNode);", "public void setLineNumber(int lineNumber) {\n this.lineNumber = lineNumber;\n }", "public String getLineId() {\n return lineId;\n }", "public String getLineName() {\n return lineName;\n }", "public void setLineId(String line_id)\r\n {\r\n this.line_id = line_id;\r\n }", "void setLineNumber(int lineNumber) {}", "private void moveLineOn() {\n getScroller().startScroll(getOffsetX(),getOffsetY(),0,getLineHeight(),0);\n }", "@Override\n\tpublic int getLineType() {\n\t\treturn 0;\n\t}", "public int getCurrentLine() {\n return buffer.lineNumber();\n }", "public void appendLine() {\n\t\t\tmBuilder.append(NewLineChar);\n\t\t\tlastAppendNewLine = true;\n\t\t}", "String readLine() throws IOException\n\t{\n\t\tString line = null;\n\t\tif (haveStreams())\n\t\t\tline = m_in.readLine();\n\t\telse\n\t\t\tline = keyboardReadLine();\n\n\t\tsetCurrentLine(line);\n\t\treturn line;\n\t}", "public void jumpToNextLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == textBuffer.getMaxLine()-1) {\n textBuffer.setCurToTail();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo+1);\n lineJumpHelper(curX);\n }", "public String getSourceLine (int line);", "public void setStartLine(int startLine) {\r\n this.startLine = startLine;\r\n }", "public int getLineNr() {\n return this.lineNr;\n }", "String getLine (int line);", "public void setLineToStart(final int lineToStart) {\r\n\t\tthis.lineToStart = lineToStart;\r\n\t}", "public int getLineType() {\n return lineType;\n }", "public String getLineText(int lineNumber) {\n getLock().getReadLock();\n try {\n int start = getLineStartOffset(lineNumber);\n int end = getLineEndOffsetBeforeTerminator(lineNumber);\n return (start == end) ? \"\" : getTextBuffer().subSequence(start, end).toString();\n } finally {\n getLock().relinquishReadLock();\n }\n }", "public int getLine() { return cl; }", "public int getLineNumber() {\n return line;\n }", "public int getStartLine() {\r\n \r\n return startLine;\r\n }", "public int getStartLine() {\r\n return this.startLine;\r\n }", "public int lineNum() {\n return myLineNum;\n }", "public int getLineNumber() {\n return line;\n }", "public int getLine()\n/* */ {\n/* 1312 */ return this.line;\n/* */ }", "public void goToLine(int line) {\n // Humans number lines from 1, the rest of PTextArea from 0.\n --line;\n final int start = getLineStartOffset(line);\n final int end = getLineEndOffsetBeforeTerminator(line);\n centerOnNewSelection(start, end);\n }", "void getNextLine()\n\t\t\tthrows IOException, FileNotFoundException {\n String nextLine = \"\";\n if (reader == null) {\n nextLine = textLineReader.readLine();\n } else {\n nextLine = reader.readLine();\n }\n if (nextLine == null) {\n atEnd = true;\n line = new StringBuffer();\n } else {\n\t\t line = new StringBuffer (nextLine);\n }\n if (context.isTextile()) {\n textilize ();\n }\n\t\tlineLength = line.length();\n\t\tlineIndex = 0;\n\t}", "public void setLineType(int lype) {\n lineType = lype;\n }", "public void jumpToLine(int line) {\n setSelection(line,0);\n }", "public void setStartLine(final int startLine) {\n this.startLine = startLine;\n }", "public String getLine() {\n \treturn this.lineColor;\n }", "public void jumpToPreLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == 1) {\n textBuffer.setCurToHead();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo-1);\n lineJumpHelper(curX);\n }", "public final int getLine() {\n/* 377 */ return this.bufline[this.bufpos];\n/* */ }", "@Override\n public int getLine() {\n return mySourcePosition.getLineNumber() - 1;\n }", "public void setLine(int line, String value) {\n VirtualTeam team = getOrCreateTeam(line);\n String old = team.getCurrentPlayer();\n\n if (old != null && created)\n getPlayer().sendPacket(removeLine(old));\n\n team.setValue(value);\n sendLine(line);\n }", "public void line(String line, int lineNumber) {\n\t\t\tline(line);\n\t\t}", "public void setLine(String line) throws ParseException {\r\n\t\tthis.content = line;\r\n\t\tparseTask(line);\r\n\t}", "public Number getLineId() {\n return (Number)getAttributeInternal(LINEID);\n }", "public Number getLineId() {\n return (Number)getAttributeInternal(LINEID);\n }", "public void displayText(String line)\n\t{\n\t\tif(line != null)\n\t\t{\n\t\t\tta.setText(line);\n\t\t}\n\t}", "public Number getLineId() {\n return (Number) getAttributeInternal(LINEID);\n }", "public void setLineNo(int lineNo)\n\t{\n\t\tsetIntColumn(lineNo, OFF_LINE_NO, LEN_LINE_NO);\n\t}", "public void setLineId(String lineId) {\n this.lineId = lineId == null ? null : lineId.trim();\n }", "public void newChatLine(String line) {\n\t\tSystem.out.println(line);\n\t}", "public void setLineNumber(Integer lineNumber) {\r\n this.lineNumber = lineNumber;\r\n }", "public void setBeginLineNumber(int beginLine) {\n this.beginLine = beginLine;\n }" ]
[ "0.7153937", "0.70787287", "0.7076119", "0.7046106", "0.7027738", "0.7007224", "0.6907822", "0.6878737", "0.68764025", "0.6855218", "0.6798613", "0.67433035", "0.67395127", "0.67293113", "0.6720066", "0.6711472", "0.6704908", "0.6690528", "0.6687974", "0.6675111", "0.6619531", "0.6608052", "0.6588439", "0.6585256", "0.6583772", "0.6580268", "0.65494466", "0.6547677", "0.6523763", "0.64934206", "0.648951", "0.6447362", "0.6414525", "0.6410434", "0.6380521", "0.63506657", "0.6341322", "0.6330455", "0.6322023", "0.6285941", "0.6241806", "0.6238478", "0.6200251", "0.61571854", "0.6145874", "0.61291075", "0.61072993", "0.61072993", "0.61072993", "0.6105876", "0.6105876", "0.6104924", "0.61008894", "0.61004823", "0.60964864", "0.60926574", "0.6082085", "0.60351515", "0.60127115", "0.60018957", "0.6000765", "0.5989692", "0.5987291", "0.598453", "0.59717786", "0.5970469", "0.5956295", "0.59558016", "0.5952678", "0.5952408", "0.59353906", "0.59303755", "0.59270984", "0.592605", "0.59133387", "0.5910797", "0.59059125", "0.5905603", "0.5897638", "0.5893933", "0.589258", "0.58899945", "0.5884793", "0.588453", "0.5881662", "0.58715755", "0.58685815", "0.58676094", "0.58668983", "0.58631927", "0.58435905", "0.58366954", "0.58366954", "0.58357364", "0.58269197", "0.5818938", "0.580928", "0.5776575", "0.5771289", "0.57682353" ]
0.7102061
1
method setLine This method checks if a character is a letter.
public static boolean isLetter ( char letter ) { if ( ( letter >= 'a' ) && ( letter <= 'z' ) ) return true; if ( ( letter >= 'A' ) && ( letter <= 'Z' ) ) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLetter(char letter){\r\n\t\tthis.letter = letter;\r\n\t}", "@Override\n public void setCharacter(String character) {\n this.character = character;\n }", "private boolean letter() {\r\n return CATS(Lu, Ll, Lt, Lm, Lo);\r\n }", "private boolean isValid() {\n return Character.isLetter(c);\n }", "public void setLetter\n\t\t\t(char letter)\n\t\t\t{\n\t\t\tletters = letter == 'Q' ? \"QU\" : \"\"+letter;\n\t\t\tsetText (letters);\n\t\t\t}", "@Override\r\n\tpublic void setLetter(char letter) {\r\n\t\tsuper.setLetter('*');\r\n\t}", "public static void displayLine( char lineChar, int lineType ) \r\n {\n }", "private boolean isEnLetter(char ch) {\n if ( ( (ch >= 'a') && (ch <= 'z')) || ( (ch >= 'A') && (ch <= 'Z'))) {\n return true;\n } // if\n else {\n return false;\n } // else\n }", "public boolean isLetter(char ch) {\n\t\treturn Character.isLetter(ch) || ch == '.';\n\t}", "private static boolean isAlpha(char p_char) {\n return ((p_char >= 'a' && p_char <= 'z') || (p_char >= 'A' && p_char <= 'Z' ));\n }", "public char getLetter(){\r\n\t\treturn letter;\r\n\t}", "boolean getHasCharacter();", "private boolean alpha() {\r\n return letter() || CATS(Nd) || CHAR('-') || CHAR('_');\r\n }", "private boolean isChar(char c){\n\t\tif(Character.isISOControl(c))\n\t\t\treturn false;\n\t\treturn true;\n\t}", "private static boolean isLetter( char s ){\n\t\tif ( Character.isLetter(s)) return true; \n\t\tthrow new IllegalArgumentException(\"Name of town '\"+ s +\"' should be a letter\");\n\t}", "public void set_char(_char param) {\n this.local_char = param;\n }", "public void setLetter() {\n\t\tconfirmButton.setEnabled(true);\n\t\tpassButton.setEnabled(true);\n\t\tfor (int i = 0; i < ROW; i++) {\n\t\t\tfor (int j = 0; j < COLUME; j++) {\n\t\t\t\tif (board[i][j].getText().equals(\"\")) {\n\t\t\t\t\tboard[i][j].setEditable(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tpublic boolean keyTyped(char character) {\n\t\t\t\treturn false;\n\t\t\t}", "public char getLetter() {\r\n\t\t\treturn letter;\r\n\t\t}", "public char getLetter() {\r\n\t\treturn letter;\r\n\t}", "void setCharacter(int c) {\n setStat(c, character);\n }", "public static Boolean Letter(String arg){\n\t\tif(arg.matches(\"\\\\p{L}{1}\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public boolean keyTyped(final char character) {\n return false;\n }", "public char getLetter()\n {\n \treturn letter;\n }", "public void setChar(Character c) {\n setText(String.valueOf(c));\n }", "public char getLetter() {\n return letter;\n }", "static boolean isLetterChoice()\r\n {\r\n\treturn isLetterChoice;\r\n }", "public boolean isValidChar(char c) {\n\t\tif (Character.isIdentifierIgnorable(c))\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn renderer.getFont().canDisplay(c);\r\n\t}", "@Override\n public boolean keyTyped(char character) {\n return false;\n }", "@Override\n public boolean keyTyped(char character) {\n return false;\n }", "@Override\n public boolean keyTyped(char character) {\n return false;\n }", "public boolean isCharacter(char a) {\n if (a >= 'a' && a <= 'z' || a >= 'A' && a <= 'Z' || a >= '0' && a <= '9' || a == '_')\n return true;\n return false;\n }", "@Override\r\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\r\n\t}", "public char askForLetter() {\n\t\tchar guessLetter;\n\t\tboolean validInput = false;\n\t\twhile (validInput == false) {\n\t\t\tSystem.out.println(\"Enter a letter: \");\n\t\t\tString guessLine = keyboard.nextLine();\n\t\t\tif (guessLine.length() == 0 || guessLine.length() >= 2) {\n\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tguessLine = guessLine.toLowerCase();\n\t\t\t\tguessLetter = guessLine.charAt(0);\n\t\t\t\tif(guessLetter >= 'a' && guessLetter <= 'z') {\n\t\t\t\t\tSystem.out.println(\"You entered: \" + guessLetter);\n\t\t\t\t\tvalidInput = true;\n\t\t\t\t\treturn(guessLetter);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn(' ');\n\t\t\n\t\t\n\t}", "public boolean characterInput(char c);", "@Override\n\tpublic boolean keyTyped(char character)\n\t{\n\t\treturn false;\n\t}", "public static boolean isLetter(char c)\n {\n return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');\n }", "public abstract boolean isStarterChar(char c);", "public final void typedLetter(final char letter) {\n \t\t// currently not locked on to a word\n \t\tif (currWordIndex == -1) {\n \t\t\tfor (int i = 0; i < wordsDisplayed.length; i++) {\n \t\t\t\t// if any of the first character in wordsDisplayed matched letter\n \t\t\t\tif (wordsList[wordsDisplayed[i]].charAt(0) == letter) {\n \t\t\t\t\tcurrWordIndex = i;\n \t\t\t\t\tcurrLetterIndex = 1;\n \t\t\t\t\tsetChanged();\n \t\t\t\t\tnotifyObservers(States.update.HIGHLIGHT);\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t}\n \t\t\t// locked on to a word being typed (letter == the index of current letter index in the word)\n \t\t} else if (wordsList[wordsDisplayed[currWordIndex]].charAt(currLetterIndex) == letter) {\n \n \t\t\t// store length of current word\n \t\t\tint wordLen = wordsList[wordsDisplayed[currWordIndex]].length();\n \n \t\t\t// word is completed after final letter is typed\n \t\t\tif ((currLetterIndex + 1) >= wordLen) {\n \t\t\t\tscore += wordLen;\n \t\t\t\tupdateWordsDisplayed();\n \t\t\t\tcurrLetterIndex = -1;\n \t\t\t\tcurrWordIndex = -1;\n \t\t\t} else {\n \t\t\t\tcurrLetterIndex += 1;\n \t\t\t\tsetChanged();\n \t\t\t\tnotifyObservers(States.update.HIGHLIGHT);\n \t\t\t}\n \t\t\treturn;\n \t\t}\n \n \t\t// wrong letter typed\n \t\tsetChanged();\n \t\tnotifyObservers(States.update.WRONG_LETTER);\n \t}", "boolean hasHasCharacter();", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char character) {\n\t\treturn false;\n\t}", "public char getLetter()\n\t{\n\t\treturn letter;\n\t}", "static void setLetterChoice(boolean isLetterChoice)\r\n {\r\n\tConfiguration.isLetterChoice = isLetterChoice;\r\n }", "public static boolean isLetter(char c) {\r\n\r\n\t\tif ((c >= 65 && c <= 95) || (c >= 97 && c <= 122)) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}", "private boolean isGrLetter(char ch) {\n /*if ( ( (ch >= 'á') && (ch <= 'ù')) || ( (ch >= 'Á') && (ch <= 'Ù')) ||\n (ch == 'Ü') || (ch == 'Ý') || (ch == 'Þ') || (ch == 'ß') ||\n (ch == 'ü') || (ch == 'ý') || (ch == 'þ') ||\n (ch == '¢') || (ch == '¸') || (ch == '¹') || (ch == 'º') ||\n (ch == '¼') || (ch == '¾') || (ch == '¿') ||\n (ch == 'ú') || (ch == 'û') || (ch == 'À') || (ch == 'à')) {*/\n if ( ( (ch >= '\\u03b1') && (ch <= '\\u03c9')) || ( (ch >= '\\u0391') && (ch <= '\\u03a9')) ||\n \t(ch == '\\u03ac') || (ch == '\\u03ad') || (ch == '\\u03ae') || (ch == '\\u03af') ||\n \t(ch == '\\u03cc') || (ch == '\\u03cd') || (ch == '\\u03ce') ||\n \t(ch == '\\u0386') || (ch == '\\u0388') || (ch == '\\u0389') || (ch == '\\u038a') ||\n \t(ch == '\\u038c') || (ch == '\\u038e') || (ch == '\\u038f') ||\n \t(ch == '\\u03ca') || (ch == '\\u03cb') || (ch == '\\u0390') || (ch == '\\u03b0')) {\n return true;\n } // if\n else {\n return false;\n } // else\n }", "public void set_char(int param) {\n this.local_char = param;\n }", "private static boolean checkChar(char c) {\n\t\tif (Character.isDigit(c)) {\n\t\t\treturn true;\n\t\t} else if (Character.isLetter(c)) {\n\t\t\tif (Character.toUpperCase(c) >= 'A' && Character.toUpperCase(c) <= 'F') {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "private static boolean isAlphanum(char p_char) {\n return (p_char <= 'z' && (fgLookupTable[p_char] & MASK_ALPHA_NUMERIC) != 0);\n }", "private static boolean isPathCharacter (char p_char) {\n return (p_char <= '~' && (fgLookupTable[p_char] & MASK_PATH_CHARACTER) != 0);\n }", "@Override\n\t\t\tpublic boolean onKeyTyped (char character) {\n\t\t\t\treturn false;\n\t\t\t}", "static boolean isText(char c) {\n\t\t\tswitch (c) {\n\t\t\t\tcase LINE_SEPARATOR:\n\t\t\t\tcase PERCENT_SIGN:\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public boolean isUrgentLetter() {\n\t\treturn false;\n\t}", "public String getLetter() {\n return letter;\n }", "public void setCh(char ch) {\r\n\t\tthis.ch = ch;\r\n\t}", "public static boolean isAsciiAlpha(char ch) {\n/* 460 */ return (isAsciiAlphaUpper(ch) || isAsciiAlphaLower(ch));\n/* */ }", "public static boolean isAsciiControl(char ch) {\n/* 441 */ return (ch < ' ' || ch == '');\n/* */ }", "public boolean getHasCharacter() {\n return hasCharacter_;\n }", "public static boolean Character(char a)\n {\n boolean valid = false;\n int convert;\n \n //converts the character a to its equivalent decimal value\n convert = (int)a;\n \n // checks if the character is within range\n // a-z or A-Z\n if (((convert >= 65) && (convert <= 90))||((convert >= 97) && (convert <= 122)))\n {\n valid = true;\n }\n else\n {\n //displays the error to the user by calling the displayError method in UserInterface class\n UserInterface.displayError(\"You have not entered a character. Enter again: \");\n }\n return valid;\n }", "public boolean guess(char letter)\n\t{\n\t\treturn false;\n\t}", "public static boolean isAscii(char ch) {\n/* 403 */ return (ch < '€');\n/* */ }", "public boolean getHasCharacter() {\n return hasCharacter_;\n }", "public final void mLETTER() throws RecognitionException {\n\t\ttry {\n\t\t\t// src/VSLLexer.g:15:17: ( 'a' .. 'z' )\n\t\t\t// src/VSLLexer.g:\n\t\t\t{\n\t\t\tif ( (input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {\n\t\t\t\tinput.consume();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\n\t\t\t\trecover(mse);\n\t\t\t\tthrow mse;\n\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "static boolean isCharacter(char c) {\n\t\t\tswitch (c) {\n\t\t\t\tcase CHARACTER:\n\t\t\t\tcase CHARACTER_UPPER:\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "private static boolean isTashkeelChar(char ch) {\n return ( ch >='\\u064B' && ch <= '\\u0652' );\n }", "public void setGlyph(char c, WritingShape glyph) {\n\t\tKey<WritingShape> key = getGlyphKey(c);\n\t\tproperties.set(key, glyph);\n\t}", "public void setLetter( int r, int c, char letter ) {\n\t\tletterButton[r][c].setLetter( letter );\n\t}", "public void setBasicChar(BasicChar wotCharacter) {\n this.wotCharacter = wotCharacter;\n }", "public final void mLETTER() throws RecognitionException {\n\t\ttry {\n\t\t\t// src/aofC/AspectParser/AOC.g:186:16: ( ( 'a' .. 'z' | 'A' .. 'Z' ) )\n\t\t\t// src/aofC/AspectParser/AOC.g:\n\t\t\t{\n\t\t\tif ( (input.LA(1) >= 'A' && input.LA(1) <= 'Z')||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {\n\t\t\t\tinput.consume();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\n\t\t\t\trecover(mse);\n\t\t\t\tthrow mse;\n\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "private boolean CHAR(char ch) {\r\n if (in >= input.length()) return false;\r\n int len = input.nextLength(in);\r\n int code = input.nextChar(in, len);\r\n if (code != ch) return false;\r\n in += len;\r\n return true;\r\n }", "private void validCharachter() throws DisallowedCharachter {\n if (!test.equals(\"X\") && !test.equals(\"O\")) {\n throw (new DisallowedCharachter());\n }\n }", "public void setCharacter(String newCharacter)\n\t\t{\n\t\t\tcharacterName = newCharacter;\n\t\t}", "public Letter(char unicode) {\n this(NO_TYPE, \"\", unicode, NULL_CHARACTER);\n }", "protected void setSymbol(char c){\r\n\t\tthis.symbol = c;\r\n\t}", "private boolean isAlpha(char toCheck) {\n return (toCheck >= 'a' && toCheck <= 'z') ||\n (toCheck >= 'A' && toCheck <= 'Z') ||\n toCheck == '_';\n }", "public boolean updateLetterList(char c){\n\t\tif(!usedLetters.contains(c)){\n\t\t\tusedLetters.add(c);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean cellOpen( int selectCell, char playerLetter ){\r\n char test = boardCells[ selectCell ].getData();\r\n if( (test == ' ') && (test != playerLetter)){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "public final void mLETTER() throws RecognitionException {\n try {\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:569:5: ( ( 'A' .. 'Z' | 'a' .. 'z' ) )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:569:7: ( 'A' .. 'Z' | 'a' .. 'z' )\n {\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n\n }\n finally {\n }\n }", "public void setNChar()\n/* */ {\n/* 1168 */ this.isNChar = true;\n/* */ }", "private boolean isAlfabetico(char unChar) {\r\n\t\tswitch (unChar) {\r\n\t\tcase 'A':\r\n\t\t\treturn true;\r\n\t\tcase 'B':\r\n\t\t\treturn true;\r\n\t\tcase 'C':\r\n\t\t\treturn true;\r\n\t\tcase 'D':\r\n\t\t\treturn true;\r\n\t\tcase 'E':\r\n\t\t\treturn true;\r\n\t\tcase 'F':\r\n\t\t\treturn true;\r\n\t\tcase 'G':\r\n\t\t\treturn true;\r\n\t\tcase 'H':\r\n\t\t\treturn true;\r\n\t\tcase 'I':\r\n\t\t\treturn true;\r\n\t\tcase 'J':\r\n\t\t\treturn true;\r\n\t\tcase 'K':\r\n\t\t\treturn true;\r\n\t\tcase 'L':\r\n\t\t\treturn true;\r\n\t\tcase 'M':\r\n\t\t\treturn true;\r\n\t\tcase 'N':\r\n\t\t\treturn true;\r\n\t\tcase 'Ñ':\r\n\t\t\treturn true;\r\n\t\tcase 'O':\r\n\t\t\treturn true;\r\n\t\tcase 'P':\r\n\t\t\treturn true;\r\n\t\tcase 'Q':\r\n\t\t\treturn true;\r\n\t\tcase 'R':\r\n\t\t\treturn true;\r\n\t\tcase 'S':\r\n\t\t\treturn true;\r\n\t\tcase 'T':\r\n\t\t\treturn true;\r\n\t\tcase 'U':\r\n\t\t\treturn true;\r\n\t\tcase 'V':\r\n\t\t\treturn true;\r\n\t\tcase 'W':\r\n\t\t\treturn true;\r\n\t\tcase 'X':\r\n\t\t\treturn true;\r\n\t\tcase 'Y':\r\n\t\t\treturn true;\r\n\t\tcase 'Z':\r\n\t\t\treturn true;\r\n\t\tcase 'a':\r\n\t\t\treturn true;\r\n\t\tcase 'b':\r\n\t\t\treturn true;\r\n\t\tcase 'c':\r\n\t\t\treturn true;\r\n\t\tcase 'd':\r\n\t\t\treturn true;\r\n\t\tcase 'e':\r\n\t\t\treturn true;\r\n\t\tcase 'f':\r\n\t\t\treturn true;\r\n\t\tcase 'g':\r\n\t\t\treturn true;\r\n\t\tcase 'h':\r\n\t\t\treturn true;\r\n\t\tcase 'i':\r\n\t\t\treturn true;\r\n\t\tcase 'j':\r\n\t\t\treturn true;\r\n\t\tcase 'k':\r\n\t\t\treturn true;\r\n\t\tcase 'l':\r\n\t\t\treturn true;\r\n\t\tcase 'm':\r\n\t\t\treturn true;\r\n\t\tcase 'n':\r\n\t\t\treturn true;\r\n\t\tcase 'ñ':\r\n\t\t\treturn true;\r\n\t\tcase 'o':\r\n\t\t\treturn true;\r\n\t\tcase 'p':\r\n\t\t\treturn true;\r\n\t\tcase 'q':\r\n\t\t\treturn true;\r\n\t\tcase 'r':\r\n\t\t\treturn true;\r\n\t\tcase 's':\r\n\t\t\treturn true;\r\n\t\tcase 't':\r\n\t\t\treturn true;\r\n\t\tcase 'u':\r\n\t\t\treturn true;\r\n\t\tcase 'v':\r\n\t\t\treturn true;\r\n\t\tcase 'w':\r\n\t\t\treturn true;\r\n\t\tcase 'x':\r\n\t\t\treturn true;\r\n\t\tcase 'y':\r\n\t\t\treturn true;\r\n\t\tcase 'z':\r\n\t\t\treturn true;\r\n\t\tcase ' ':\r\n\t\t\treturn true;\r\n\t\tcase '*':\r\n\t\t\treturn true;// debido a búsquedas\r\n\t\tdefault:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean hasChar();", "public void startCharacter() {\n\t\tString name = \"martin\";\n\t\tboolean startWith = name.startsWith(\"mart\");\n\t\tif(startWith) {\n\t\t\tSystem.out.println(\"it starts with the character\");\n\t\t}\n\t}", "private boolean isIdentifierChar(char ch) {\n return (((ch >= 'A') && (ch <= 'Z')) || ((ch >= 'a') && (ch <= 'z'))\n || ((ch >= '0') && (ch <= '9')) || (\".-_:\".indexOf(ch) >= 0));\n }", "public static boolean isValidResponseLetter(String letter) {\n\t\tif(letter!=null){\n\t\tletter = letter.trim();\n\t\t}\n\t\tif(letter.length()==0 || letter.length()>1){\n\t\t\treturn false;\n\t\t}else if(letter.length()==1){\n\t\t\tCharacter.isLetter(letter.charAt(0));\n\t\t\treturn true;\n\t\t}\n\t\n\t\treturn false;\n\t}", "public boolean checkForChar(String str) {\n\t\tif (str.contains(\"a\") || str.contains(\"A\") || str.contains(\"e\") || str.contains(\"E\")) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// TO DO\n\n\t\treturn false;\n\t}", "private static boolean isAlefChar(char ch) {\n return ch == '\\u0622' || ch == '\\u0623' || ch == '\\u0625' || ch == '\\u0627';\n }", "public boolean isLetterOrDigitAhead()\n {\n\n int pos = currentPosition;\n\n while (pos < maxPosition)\n {\n if (Character.isLetterOrDigit(str.charAt(pos)))\n return true;\n\n pos++;\n }\n\n return false;\n }" ]
[ "0.7043332", "0.6869462", "0.6702517", "0.66808486", "0.6574193", "0.645682", "0.62694615", "0.62103087", "0.6204158", "0.6200961", "0.61829305", "0.6135142", "0.6117166", "0.6056458", "0.60492504", "0.60488015", "0.6034267", "0.60259974", "0.60167193", "0.6008211", "0.60076064", "0.60071224", "0.5982899", "0.5970423", "0.596721", "0.5959739", "0.59456944", "0.59315103", "0.5915629", "0.5915629", "0.5915629", "0.5911222", "0.5890332", "0.58873975", "0.58810437", "0.58705777", "0.586245", "0.5859883", "0.5857707", "0.5850372", "0.58463174", "0.58463174", "0.58463174", "0.58463174", "0.58463174", "0.58463174", "0.58463174", "0.58463174", "0.58463174", "0.58463174", "0.58463174", "0.58463174", "0.58463174", "0.58463174", "0.58463174", "0.5843749", "0.5842924", "0.583642", "0.5818267", "0.581751", "0.58131814", "0.5809616", "0.5803815", "0.58020574", "0.57964057", "0.57921875", "0.57785666", "0.5761746", "0.57479596", "0.5742785", "0.57420886", "0.5740751", "0.57114637", "0.5698717", "0.56942654", "0.56796694", "0.5678906", "0.56778896", "0.56776464", "0.567762", "0.56766635", "0.56612647", "0.56479925", "0.562592", "0.5619125", "0.56135863", "0.56108606", "0.55822927", "0.55779386", "0.55731887", "0.55722195", "0.55533254", "0.5553092", "0.5538027", "0.55281353", "0.5527988", "0.55256987", "0.5522639", "0.5517501", "0.5515114" ]
0.5909542
32
method isLetter This method gets a substring from the current line.
public static String substring ( String line, int start, int end ) { // Check start coordinate. if ( start >= line.length () ) return ""; // Check end coordinate. if ( end > line.length () ) { if ( start < line.length () ) return line.substring ( start ); return ""; } // if // Check if end at end of line. if ( end == line.length () ) return line.substring ( start ); else return line.substring ( start, end ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean letter() {\r\n return CATS(Lu, Ll, Lt, Lm, Lo);\r\n }", "char getContactLetter();", "public boolean isLetterOrDigitAhead()\n {\n\n int pos = currentPosition;\n\n while (pos < maxPosition)\n {\n if (Character.isLetterOrDigit(str.charAt(pos)))\n return true;\n\n pos++;\n }\n\n return false;\n }", "public static Boolean Letter(String arg){\n\t\tif(arg.matches(\"\\\\p{L}{1}\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public char getLetter()\n {\n \treturn letter;\n }", "boolean getHasCharacter();", "public String getLetter() {\n return letter;\n }", "public char getLetter(){\r\n\t\treturn letter;\r\n\t}", "private boolean alpha() {\r\n return letter() || CATS(Nd) || CHAR('-') || CHAR('_');\r\n }", "public static boolean hasA( String w, String letter )\r\n { return w.indexOf(letter) != -1;\r\n }", "public char getLetter() {\n return letter;\n }", "public void subCharacter() {\n\t\t\tString name = \"martin\";\n\t\t\tString subCharacter = name.substring(2, 4);\n\t\t\tSystem.out.println(subCharacter);\n\t\t}", "public char getLetter() {\r\n\t\t\treturn letter;\r\n\t\t}", "public char getLetter() {\r\n\t\treturn letter;\r\n\t}", "public char getLetter()\n\t{\n\t\treturn letter;\n\t}", "private boolean isValid() {\n return Character.isLetter(c);\n }", "boolean hasHasCharacter();", "public static boolean hasA( String w, String letter ) \n {\n return (w.indexOf(letter) > -1);\n }", "public static boolean isLetter ( char letter )\n {\n if ( ( letter >= 'a' ) && ( letter <= 'z' ) ) return true;\n if ( ( letter >= 'A' ) && ( letter <= 'Z' ) ) return true;\n return false;\n }", "private static boolean isLetter( char s ){\n\t\tif ( Character.isLetter(s)) return true; \n\t\tthrow new IllegalArgumentException(\"Name of town '\"+ s +\"' should be a letter\");\n\t}", "public char askForLetter() {\n\t\tchar guessLetter;\n\t\tboolean validInput = false;\n\t\twhile (validInput == false) {\n\t\t\tSystem.out.println(\"Enter a letter: \");\n\t\t\tString guessLine = keyboard.nextLine();\n\t\t\tif (guessLine.length() == 0 || guessLine.length() >= 2) {\n\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tguessLine = guessLine.toLowerCase();\n\t\t\t\tguessLetter = guessLine.charAt(0);\n\t\t\t\tif(guessLetter >= 'a' && guessLetter <= 'z') {\n\t\t\t\t\tSystem.out.println(\"You entered: \" + guessLetter);\n\t\t\t\t\tvalidInput = true;\n\t\t\t\t\treturn(guessLetter);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn(' ');\n\t\t\n\t\t\n\t}", "String getWordIn(String schar, String echar);", "public abstract boolean isStarterChar(char c);", "static boolean isLetterChoice()\r\n {\r\n\treturn isLetterChoice;\r\n }", "char startChar();", "private static boolean isAlpha(char p_char) {\n return ((p_char >= 'a' && p_char <= 'z') || (p_char >= 'A' && p_char <= 'Z' ));\n }", "public static boolean checkchar(String sentence){\n for (int i =0; i < sentence.length(); i++){ //just compare for the whole length \n if (Character.isLetter(sentence.charAt(i))==false){ //if it is not a letter\n return false; //return false\n }\n return true; //otherwise return true\n }\n return true;\n}", "private boolean isEnLetter(char ch) {\n if ( ( (ch >= 'a') && (ch <= 'z')) || ( (ch >= 'A') && (ch <= 'Z'))) {\n return true;\n } // if\n else {\n return false;\n } // else\n }", "public boolean isUrgentLetter() {\n\t\treturn false;\n\t}", "public int getGroup(char letter);", "public void guessLetter()\n\t{\n\t\tSystem.out.println(\"The name is \" + length + \" letters long.\");\n\t\tSystem.out.println(\"Ok, now guess what letters are in the name.\");\n\t\t\n\t\t//This will guess the first letter.\n\t\tguessLetter1 = scan.nextLine();\n\t\tif(name.indexOf(guessLetter1) == -1)\n\t\t{\n\t\t\tSystem.out.println(\"Sorry, that letter is not in the name, try again!\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tposition1 = name.indexOf(guessLetter1);\n\t\t\tSystem.out.println(\"You're correct, letter \" + guessLetter1 + \" is in position \" + position1);\n\t\t}\n\t\t\n\t\t//This will guess the second letter.\n\t\tguessLetter2 = scan.nextLine();\n\t\tif(name.indexOf(guessLetter2) == -1)\n\t\t{\n\t\t\tSystem.out.println(\"Sorry, that letter is not in the name, try again!\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tposition2 = name.indexOf(guessLetter2);\n\t\t\tSystem.out.println(\"You're correct, letter \" + guessLetter2 + \" is in position \" + position2);\n\t\t}\n\t\t\n\t\t//This will guess the third letter.\n\t\tguessLetter3 = scan.nextLine();\n\t\tif(name.indexOf(guessLetter3) == -1)\n\t\t{\n\t\t\tSystem.out.println(\"Sorry, that letter is not in the name.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tposition3 = name.indexOf(guessLetter3);\n\t\t\tSystem.out.println(\"You're correct, letter \" + guessLetter3 + \" is in position \" + position3);\n\t\t}\n\t}", "Rule Letter() {\n // No effect on value stack\n return FirstOf(\n CharRange('a', 'z'),\n CharRange('A', 'Z'));\n }", "public static int getLetterIndex(String word, byte startFrom) {\r\n int i, j;\r\n if (startFrom == head) // start checking from beginning\r\n {\r\n for (i = 0; i < word.length(); i++) {\r\n if (word.charAt(i) >= 'a' && word.charAt(i) <= 'z')\r\n return i;\r\n }\r\n return -1; // cannot found any letter in the string\r\n } else if (startFrom == tail) // start check from the ed\r\n {\r\n for (j = word.length() - 1; j >= 0; j--) {\r\n if (word.charAt(j) >= 'a' && word.charAt(j) <= 'z')\r\n return j;\r\n }\r\n return -1; // cannot found any letter in the string\r\n }\r\n return 0;\r\n }", "char getContactLetter(ContactSortOrder sortOrder);", "private boolean isIdentificatorAhead() {\r\n\t\treturn Character.isLetter(expression[currentIndex]);\r\n\t}", "boolean hasChar();", "public static boolean isLetter(String p) {\n boolean check = true;\n for (int i = 0; i < p.length(); i++) {\n if (!Character.isLetter(p.charAt(i))) {\n check = false;\n }\n }\n return check;\n }", "private boolean isGrLetter(char ch) {\n /*if ( ( (ch >= 'á') && (ch <= 'ù')) || ( (ch >= 'Á') && (ch <= 'Ù')) ||\n (ch == 'Ü') || (ch == 'Ý') || (ch == 'Þ') || (ch == 'ß') ||\n (ch == 'ü') || (ch == 'ý') || (ch == 'þ') ||\n (ch == '¢') || (ch == '¸') || (ch == '¹') || (ch == 'º') ||\n (ch == '¼') || (ch == '¾') || (ch == '¿') ||\n (ch == 'ú') || (ch == 'û') || (ch == 'À') || (ch == 'à')) {*/\n if ( ( (ch >= '\\u03b1') && (ch <= '\\u03c9')) || ( (ch >= '\\u0391') && (ch <= '\\u03a9')) ||\n \t(ch == '\\u03ac') || (ch == '\\u03ad') || (ch == '\\u03ae') || (ch == '\\u03af') ||\n \t(ch == '\\u03cc') || (ch == '\\u03cd') || (ch == '\\u03ce') ||\n \t(ch == '\\u0386') || (ch == '\\u0388') || (ch == '\\u0389') || (ch == '\\u038a') ||\n \t(ch == '\\u038c') || (ch == '\\u038e') || (ch == '\\u038f') ||\n \t(ch == '\\u03ca') || (ch == '\\u03cb') || (ch == '\\u0390') || (ch == '\\u03b0')) {\n return true;\n } // if\n else {\n return false;\n } // else\n }", "public abstract char getStarterChar();", "public static char getLetter(String s){\n //A variable used in the helper method\n int i = 0;\n return getLetter(codeTree, s, i);\n }", "String getNextIdent (boolean startsWithAlpha) {\n int p = m_pos;\n char c = getChar ();\n if (startsWithAlpha && isAlpha (c) == false) { return null; }\n while ( isAlpha (c) || isNumber (c) || isSpecial (c) ) {\n c = getNextChar ();\n }\n return m_buffer.substring (p, m_pos);\n }", "public static boolean contains(String string, char letter){\n\t boolean bool = false;\n\t for(int i = 0; i < string.length(); i++){\n\t if(string.charAt(i) == letter){\n\t bool = true;\n\t }\n\t }\n\t return bool;\n\t}", "boolean contains(char ch) {\n return _letters.indexOf(ch) >= 0;\n }", "public static Predicate<String> checkIfStartsWith(final String letter) { \n\t\treturn name -> name.startsWith(letter);\n\t}", "public boolean cellOpen( int selectCell, char playerLetter ){\r\n char test = boardCells[ selectCell ].getData();\r\n if( (test == ' ') && (test != playerLetter)){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "private boolean ifAlphabetOnly(String str){\n return str.chars().allMatch(Character :: isLetter);\n }", "public boolean isLetter(char ch) {\n\t\treturn Character.isLetter(ch) || ch == '.';\n\t}", "public final void typedLetter(final char letter) {\n \t\t// currently not locked on to a word\n \t\tif (currWordIndex == -1) {\n \t\t\tfor (int i = 0; i < wordsDisplayed.length; i++) {\n \t\t\t\t// if any of the first character in wordsDisplayed matched letter\n \t\t\t\tif (wordsList[wordsDisplayed[i]].charAt(0) == letter) {\n \t\t\t\t\tcurrWordIndex = i;\n \t\t\t\t\tcurrLetterIndex = 1;\n \t\t\t\t\tsetChanged();\n \t\t\t\t\tnotifyObservers(States.update.HIGHLIGHT);\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t}\n \t\t\t// locked on to a word being typed (letter == the index of current letter index in the word)\n \t\t} else if (wordsList[wordsDisplayed[currWordIndex]].charAt(currLetterIndex) == letter) {\n \n \t\t\t// store length of current word\n \t\t\tint wordLen = wordsList[wordsDisplayed[currWordIndex]].length();\n \n \t\t\t// word is completed after final letter is typed\n \t\t\tif ((currLetterIndex + 1) >= wordLen) {\n \t\t\t\tscore += wordLen;\n \t\t\t\tupdateWordsDisplayed();\n \t\t\t\tcurrLetterIndex = -1;\n \t\t\t\tcurrWordIndex = -1;\n \t\t\t} else {\n \t\t\t\tcurrLetterIndex += 1;\n \t\t\t\tsetChanged();\n \t\t\t\tnotifyObservers(States.update.HIGHLIGHT);\n \t\t\t}\n \t\t\treturn;\n \t\t}\n \n \t\t// wrong letter typed\n \t\tsetChanged();\n \t\tnotifyObservers(States.update.WRONG_LETTER);\n \t}", "private char getGuessLetter(Scanner sc) {\n\n\t\t// the array format of the input\n\t\tchar[] ch;\n\t\twhile (true) {\n\t\t\t// ask for the input\n\t\t\tSystem.out.println(\"Please enter one letter to guess:\");\n\t\t\tSystem.out.print(\">>>\");\n\t\t\t// reading the input\n\t\t\tString input = sc.nextLine();\n\t\t\tch = input.toCharArray();\n\t\t\t// if the input is a allowed letter\n\t\t\tif(ch.length == 1\n\t\t\t\t&&(dr.isAllowed(ch[0]) || Character.isUpperCase(ch[0]))) {\n\t\t\t\t// break the loop\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Please enter an allowed letter.\");\n\t\t\t}\n\t\t}\n\t\t//return the lower-cased version of the letter\n\t\treturn Character.toLowerCase(ch[0]);\n\t}", "public void firstCharacter() {\n\t\tString name = \"martin\";\n\t\tchar letter = name.charAt(5);\n\t\tSystem.out.println(letter);\n\t}", "boolean hasLetterId();", "boolean hasLetterId();", "private boolean isIdentifier(String input) {\n if (this.isLetter(input.charAt(0))) {\n return true;\n } else return false;\n }", "public boolean takeGuess(char letter) {\n\t\t// reset default result as false\n\t\tboolean result = false;\n\t\t// iterate through the characters in the word\n\t\tfor (int i = 0; i < this.getLength(); i++) {\n\t\t\t// if the guess is correct\n\t\t\tif (this.theWord[i] == letter) {\n\t\t\t\t// unmask the slot, set the result as true\n\t\t\t\tthis.unmaskSlot(i);\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\t//return the result\n\t\treturn result;\n\t}", "private boolean isAlpha(char toCheck) {\n return (toCheck >= 'a' && toCheck <= 'z') ||\n (toCheck >= 'A' && toCheck <= 'Z') ||\n toCheck == '_';\n }", "public void startCharacter() {\n\t\tString name = \"martin\";\n\t\tboolean startWith = name.startsWith(\"mart\");\n\t\tif(startWith) {\n\t\t\tSystem.out.println(\"it starts with the character\");\n\t\t}\n\t}", "public static boolean isLetter(char c)\n {\n return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');\n }", "public static boolean isValidResponseLetter(String letter) {\n\t\tif(letter!=null){\n\t\tletter = letter.trim();\n\t\t}\n\t\tif(letter.length()==0 || letter.length()>1){\n\t\t\treturn false;\n\t\t}else if(letter.length()==1){\n\t\t\tCharacter.isLetter(letter.charAt(0));\n\t\t\treturn true;\n\t\t}\n\t\n\t\treturn false;\n\t}", "public static boolean checkchar(String sentence, int total){\n \n if (total>sentence.length()){ //if the number entered is bigger than the total length\n for (int i =0; i < sentence.length(); i++) { //just compare for the whole length \n if (Character.isLetter(sentence.charAt(i))==false){ //if it is not a letter\n return false; //return false\n }\n }\n return true; //otherwise return true\n }\n \n else { //if number entered is less than the total length\n for(int i =0; i < total; i++){ //just look at the number of characters the user wants you to look at \n if(Character.isLetter(sentence.charAt(i))==false){ //if it not a letter \n return false;//return false\n }\n \n return true; //otherwise return true\n }\n \n }\n return true;\n \n }", "public static boolean isLetters(CharSequence seq) {\n return is(seq, IS_LETTERS);\n }", "public void setLetter(char letter){\r\n\t\tthis.letter = letter;\r\n\t}", "int getStartCharIndex();", "public static boolean contains(String word, String letter){\n\t\tif (word.indexOf(letter) != -1){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public final void mLETTER() throws RecognitionException {\n\t\ttry {\n\t\t\t// src/VSLLexer.g:15:17: ( 'a' .. 'z' )\n\t\t\t// src/VSLLexer.g:\n\t\t\t{\n\t\t\tif ( (input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {\n\t\t\t\tinput.consume();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\n\t\t\t\trecover(mse);\n\t\t\t\tthrow mse;\n\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "public String firstAlphabeticalTitleLetter(String title){\n\t\t int first = 0;\n if ( title.toLowerCase().startsWith(\"the \") ) { first = 4; }\n\t\t return title.substring(first, (first + 1));\n\t }", "public static boolean isLetter(char c) {\r\n\r\n\t\tif ((c >= 65 && c <= 95) || (c >= 97 && c <= 122)) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}", "public static void oneLetter () {\n System.out.println(\"Type in a letter\");\n Scanner input = new Scanner(System.in);\n String userInput = input.nextLine();\n if ((userInput.equals( \"a\")) || (userInput.equals(\"e\")) || (userInput.equals(\"i\")) || (userInput.equals(\"o\")) || (userInput.equals(\"u\"))) {\n System.out.println(\"That is a vowel!\");\n\n }\n else {\n System.out.println(\"That is a consonant\");\n\n }\n }", "public char getLetterGrade() {\r\n\t\treturn letter;\r\n\t}", "public static void testLetter(char ch, int correct, LetterRecord record) {\n\t\tint test = 0;\n\t\ttry {\n\t\t\ttest = record.get(ch);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"...failed for get on '\" + ch + \"'\");\n\t\t\tSystem.out.println(\" threw exception: \" + e);\n\t\t\tint line = e.getStackTrace()[0].getLineNumber();\n\t\t\tSystem.out.println(\" in LetterRecord line#\" + line);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tif (correct != test) {\n\t\t\tSystem.out.println(\"...failed for get on '\" + ch + \"'\");\n\t\t\tSystem.out.println(\" correct get = \" + correct);\n\t\t\tSystem.out.println(\" your get = \" + test);\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public static char firstLetter(String s){\r\n\t\tchar firstLetter = 0;\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif(Character.isLetter(s.charAt(i))){\r\n\t\t\tfirstLetter = s.charAt(i);\r\n\t\t\treturn firstLetter;\r\n\t\t\t}\r\n\t\t}return firstLetter;\r\n\t}", "@Override\n public final char first() {\n if (upper == lower) {\n return DONE;\n }\n return text.charAt(index = lower);\n }", "public final void mLETTER() throws RecognitionException {\n try {\n // /Users/dannluciano/Sources/MyLanguage/expr.g:163:8: ( 'a' .. 'z' | 'A' .. 'Z' )\n // /Users/dannluciano/Sources/MyLanguage/expr.g:\n {\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n\n }\n finally {\n }\n }", "public static boolean lettersCheck(String name) {\r\n\t\treturn name.matches(\"^[\\\\p{L} .'-]+$\");\r\n\t}", "private boolean isJavaLetter(char c) {\n return c == '_' || c == '$' || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');\n }", "public String getAbbreviationLetter() {\n\t\treturn pieceLetter;\n\t}", "public static void main(String[] args) {\nScanner scan = new Scanner(System.in);\n\nString name = \"Batyr\";\n\n\n// 1. length();\n\n\nSystem.out.println(name.length());\n\n// 2. toUpperCase();\n\n\nSystem.out.println(name.toUpperCase());\n\n// 3. toLoweCase();\n\n\nSystem.out.println(name.toLowerCase());\n\n// 4. charAt(index);\n\nSystem.out.println(name.charAt(0));\nSystem.out.println(name.charAt(1));\nSystem.out.println(name.charAt(2));\nSystem.out.println(name.charAt(3));\nSystem.out.println(name.charAt(4));\n\n// 4. ******OR*****\n\nchar c1= name.charAt(0);\nchar c2= name.charAt(1);\nchar c3= name.charAt(2);\nchar c4= name.charAt(3);\nchar c5= name.charAt(4);\n\nSystem.out.println(c1);\nSystem.out.println(c2);\nSystem.out.println(c3);\nSystem.out.println(c4);\nSystem.out.println(c5);\n\n// 5. str.equal(\"value\")\n\nSystem.out.println(name.equals(\"Batyr\"));\nSystem.out.println(name.equalsIgnoreCase(\"Batyr\"));\n\n// 6. contains\n\nSystem.out.println(name.contains(\"at\"));\n\n// 6. ******OR******\n\nboolean containsOrNot = name.contains(\"at\");\n\nSystem.out.println(containsOrNot);\n\n// 7. indexOf\n\nSystem.out.println(name.indexOf(\"a\"));\n\n// will show you the first letter's index only\n\nSystem.out.println(name.indexOf(\"ty\"));\n\n//will show -1 when the char which entered is abcent\n\nSystem.out.println(name.indexOf(\"wty\"));\n\nString uName=name.toUpperCase();\n\nSystem.out.println(uName.indexOf(\"BATYR\"));\n\nSystem.out.println(name.toUpperCase().indexOf(\"BA\"));\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nscan.close();\n\t}", "public Boolean checkWord (String word,String line){\n return line.contains(word);\n }", "public String getLetter() {\n\t\tString letter;\n\t\tletter = JOptionPane.showInputDialog(getFrame(), \"Enter the name of the Node,then press anywhere on the screen to locate the Node\");\n\t\twhile(letter==null || letter.equals(\"\")){\n\t\t\tletter = JOptionPane.showInputDialog(getFrame(), \"Enter the name of the Node,then press anywhere on the screen to locate the Node\");\n\t\t\t\n\t\t}\n\t\t\n\t\treturn letter.toUpperCase();\n\t}", "public boolean isCharacter(char a) {\n if (a >= 'a' && a <= 'z' || a >= 'A' && a <= 'Z' || a >= '0' && a <= '9' || a == '_')\n return true;\n return false;\n }", "private String decideLetter(Cell c) {\n String s = \"\";\n if (!c.getHasBoat() && !c.getShotAt()) {\n s = \"-\";\n } else if (!c.getHasBoat() && c.getShotAt()) {\n s = \"M\";\n } else if (c.getHasBoat() && !c.getShotAt()) {\n s = \"B\";\n } else {\n s = \"H\";\n }\n return s;\n }", "public void endCharacter() {\n\t\tString name = \"Tori\";\n\t\tboolean startWith = name.endsWith(\"ori\");\n\t\tif(startWith) {\n\t\t\tSystem.out.println(\"it ends with the character\");\n\t\t}\n\t}", "public final void mLETTER() throws RecognitionException {\n try {\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:569:5: ( ( 'A' .. 'Z' | 'a' .. 'z' ) )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:569:7: ( 'A' .. 'Z' | 'a' .. 'z' )\n {\n if ( (input.LA(1)>='A' && input.LA(1)<='Z')||(input.LA(1)>='a' && input.LA(1)<='z') ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n\n }\n finally {\n }\n }", "public static String getFirstChunk( String line )\r\n\t{\r\n\t\tif( line.indexOf(\"@\") == 0 )\r\n\t\t\treturn \"APLUS\";\r\n\t\tif( line.indexOf(\"@\") == -1 )\r\n\t\t\treturn \"aplus\";\r\n\t\treturn line.substring(0,line.indexOf(\"@\"));\r\n\t}", "private static boolean isAlpha(byte b)\r\n\t{\r\n\t\treturn (b >= 'a' && b <= 'z') || \r\n\t\t\t (b >= 'A' && b <= 'Z');\r\n\t}", "private int parseWord(Token token, char[] buffer, int offset, int type){\nfromStart:\n for(int i=offset; i<buffer.length; ++i){\n for(int x=0; x < characters[type].length; ++x){\n if(buffer[i] == characters[type][x]){\n token.identifier += buffer[i];\n continue fromStart;\n }\n }\n // If it gets here, the character currently parsed isn't of the same type \n return i;\n }\n // Found end of file\n return offset+buffer.length;\n }", "public boolean isLetters(String name) {\r\n char[] chars = name.toCharArray();\r\n\r\n for (char c : chars) {\r\n if(Character.isLetter(c) || c ==' ') {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public static boolean isAVowel( String letter ) \n {\n return hasA(VOWELS, letter); //is the letter in string VOWELS?\n }", "@Override\r\n\t\t\tpublic void onTouchingLetterChanged(String s) {\n\t\t\t\tint i = getLetterPosition(s);\r\n\t\t\t\tif (i != -1) {\r\n\t\t\t\t\tif (android.os.Build.VERSION.SDK_INT >= 8) {\r\n\t\t\t\t\t\t// mRv.smoothScrollToPosition(i);\r\n\t\t\t\t\t\tmManager.scrollToPositionWithOffset(i, 0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "private char readChar() {\r\n\t\tInputStream in = System.in;\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n\t\tString line = null;\r\n\r\n\t\ttry {\r\n\t\t\tline = br.readLine();\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\treturn line.toLowerCase().charAt(0);\r\n\t}", "private boolean name() {\r\n return (\r\n (letter() && alphas()) ||\r\n (CHAR('`') && nobquotes() && MARK(QUOTE) && CHAR('`'))\r\n );\r\n }", "public boolean guess(char letter)\n\t{\n\t\treturn false;\n\t}", "private static boolean isAlphanum(char p_char) {\n return (p_char <= 'z' && (fgLookupTable[p_char] & MASK_ALPHA_NUMERIC) != 0);\n }", "String getRune_lit();", "protected boolean isSubstring(String substring, String word) {\r\n//\t\tboolean isSub = true;\r\n\t\treturn word.contains(substring);\r\n//\t\treturn isSub;\r\n\t}", "public boolean contains(LetterTile letter) {\n\t\tfor (int i = 0; i < lettersInPlay.size(); i++)\n\t\t\tif (letter.getChar() == lettersInPlay.get(i).getChar())\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean checkForChar(String str) {\n\t\tif (str.contains(\"a\") || str.contains(\"A\") || str.contains(\"e\") || str.contains(\"E\")) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// TO DO\n\n\t\treturn false;\n\t}", "protected boolean ignoreLinesStartWith(char a) {\r\n if (!this.hasNextToken()) return false;\r\n boolean b = false;\r\n while (true) {\r\n char c = this.stream.peek();\r\n if (c==a) {\r\n this.getUntilMeetChar('\\n');\r\n b = true;\r\n continue;\r\n }\r\n return b;\r\n }\r\n }", "public void setLetter\n\t\t\t(char letter)\n\t\t\t{\n\t\t\tletters = letter == 'Q' ? \"QU\" : \"\"+letter;\n\t\t\tsetText (letters);\n\t\t\t}", "public String getSelectedLetters();", "public Letter getLetter(Character c) {\n return get(c);\n }", "public final void mLETTER() throws RecognitionException {\n\t\ttry {\n\t\t\t// src/aofC/AspectParser/AOC.g:186:16: ( ( 'a' .. 'z' | 'A' .. 'Z' ) )\n\t\t\t// src/aofC/AspectParser/AOC.g:\n\t\t\t{\n\t\t\tif ( (input.LA(1) >= 'A' && input.LA(1) <= 'Z')||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {\n\t\t\t\tinput.consume();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\n\t\t\t\trecover(mse);\n\t\t\t\tthrow mse;\n\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}" ]
[ "0.6716087", "0.6220415", "0.61095047", "0.6106336", "0.5944799", "0.592046", "0.589228", "0.5871515", "0.58584523", "0.58506423", "0.58446175", "0.5827353", "0.5825225", "0.58153695", "0.58050174", "0.57994556", "0.57455343", "0.5735539", "0.572398", "0.5722873", "0.57190865", "0.5713698", "0.56850165", "0.5677792", "0.5612414", "0.5598794", "0.559582", "0.5584548", "0.55715215", "0.556955", "0.5541915", "0.5540235", "0.5526718", "0.5518564", "0.5515543", "0.5514894", "0.5494892", "0.54869324", "0.54756486", "0.5464304", "0.5430116", "0.54124653", "0.54028416", "0.53950524", "0.5365463", "0.535025", "0.5346081", "0.53340435", "0.5333485", "0.5321371", "0.53133714", "0.53133714", "0.5295627", "0.5292267", "0.52919996", "0.5285381", "0.52752936", "0.5272825", "0.52597904", "0.5242289", "0.5216382", "0.52142614", "0.5198739", "0.51936066", "0.51771617", "0.51678324", "0.5152637", "0.5150689", "0.5150496", "0.5148564", "0.51445436", "0.5143442", "0.51350766", "0.513103", "0.51244915", "0.5124403", "0.5110737", "0.5110628", "0.5097127", "0.5088614", "0.508648", "0.50790995", "0.5076818", "0.50755686", "0.50690705", "0.50661844", "0.5058189", "0.5053722", "0.5045898", "0.50359595", "0.5032447", "0.50265193", "0.50221205", "0.50205195", "0.5018815", "0.501482", "0.5014549", "0.50054824", "0.5000773", "0.49948764", "0.49929014" ]
0.0
-1
This method just search and Filter the permesso name which searched you can also restrict some with another column
private void filterPerName(EntityManager em) { System.out.println("Please enter the name: "); Scanner sc = new Scanner(System.in); //Debug : String name = "Sel"; String name = sc.nextLine(); TypedQuery<Permesso> query = em.createQuery("select p from com.hamid.entity.Permesso p where p.nome like '%"+ name + "%'" , Permesso.class); List<Permesso> perList = query.getResultList(); for (Permesso p : perList) { System.out.println(p.getNome()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void filtro() {\n int columnaABuscar = 0;\n \n \n if (comboFiltro.getSelectedItem() == \"nombre\") {\n columnaABuscar = 0;\n }\n if (comboFiltro.getSelectedItem().toString() == \"Apellido\") {\n columnaABuscar = 1;\n }\n \n trsFiltro.setRowFilter(RowFilter.regexFilter(txtfiltro.getText(), columnaABuscar));\n }", "private void searchTableDetailFilter() {\n DefaultTableModel table = (DefaultTableModel) tblLimitDetail.getModel();\n String search;\n search = txtSearchFilterDetail.getText();\n TableRowSorter<DefaultTableModel> tr;\n tr = new TableRowSorter<>(table);\n tblLimitDetail.setRowSorter(tr);\n tr.setRowFilter(RowFilter.regexFilter(\"(?i)\" + search, 1, 2, 3, 4));\n }", "public void searchFunction() {\n textField_Search.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n tableView.setPredicate(new Predicate<TreeItem<EntryProperty>>() {\n @Override\n public boolean test(TreeItem<EntryProperty> entryTreeItem) {\n Boolean flag = entryTreeItem.getValue().titleProperty().getValue().toLowerCase().contains(newValue.toLowerCase()) ||\n entryTreeItem.getValue().usernameProperty().getValue().toLowerCase().contains(newValue.toLowerCase());\n return flag;\n }\n });\n }\n });\n }", "public void searchFunction1() {\n textField_Search.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n tableView_recylce.setPredicate(new Predicate<TreeItem<EntryProperty>>() {\n @Override\n public boolean test(TreeItem<EntryProperty> entryTreeItem) {\n Boolean flag = entryTreeItem.getValue().titleProperty().getValue().toLowerCase().contains(newValue.toLowerCase()) ||\n entryTreeItem.getValue().usernameProperty().getValue().toLowerCase().contains(newValue.toLowerCase());\n return flag;\n }\n });\n }\n });\n }", "private void filter(String text) {\n ArrayList<ChildItem> filterdNames = new ArrayList<>();\n\n //looping through existing elements\n for (ChildItem s : dataParent ) {\n\n //if the existing elements contains the search input\n if (s.getKode_barang().toLowerCase().contains(text.toLowerCase())) {\n //adding the element to filtered list\n filterdNames.add(s);\n }\n }\n\n //calling a method of the adapter class and passing the filtered list\n adapter.filterList(filterdNames);\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n FilterResults results=new FilterResults();\n\n if(constraint != null && constraint.length()>0)\n {\n //CONSTARINT TO UPPER\n constraint=constraint.toString().toUpperCase();\n\n ArrayList<Busqueda> filters=new ArrayList<Busqueda>();\n\n //get specific items\n for(int i=0;i<FilterDatos.size();i++)\n {\n if(FilterDatos.get(i).getTitulo().toUpperCase().contains(constraint))\n {\n Busqueda p=new Busqueda();\n p.setId(FilterDatos.get(i).getId());\n p.setTitulo(FilterDatos.get(i).getTitulo());\n p.setDescripcion(FilterDatos.get(i).getDescripcion());\n p.setContraseña(FilterDatos.get(i).getContraseña());\n p.setLongitud(FilterDatos.get(i).getLongitud());\n p.setTerminada(FilterDatos.get(i).getTerminada());\n p.setPuntos(FilterDatos.get(i).getPuntos());\n filters.add(p);\n }\n }\n\n results.count=filters.size();\n results.values=filters;\n\n }else\n {\n results.count=FilterDatos.size();\n results.values=FilterDatos;\n\n }\n\n return results;\n }", "private void filter(String text) {\n List<UserModel> filterdNames = new ArrayList<>();\n\n //looping through existing elements\n for (UserModel item : userModels) {\n //if the existing elements contains the search input\n if (item.getFirstName().toLowerCase().contains(text.toLowerCase())||item.getId().toLowerCase().contains(text.toLowerCase())||item.getEmail().toLowerCase().contains(text.toLowerCase())){\n //adding the element to filtered list\n filterdNames.add(item);\n }\n }\n userAdapter.filterList(filterdNames);\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n String searchText = constraint.toString().toLowerCase();\n\n List<MapDataModel> filteredList = new ArrayList<>();\n\n if(searchText.isEmpty() || searchText.length() == 0){\n filteredList.addAll(doctorslist);\n }else{\n for (MapDataModel doctorlist: doctorslist){\n\n if (doctorlist.getDoctorname().toLowerCase().contains(searchText)){\n filteredList.add(doctorlist);\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n\n return filterResults;\n }", "public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n List<EnquiryModel> filteredList = new ArrayList<>();\n\n if(constraint == null || constraint.length() == 0){\n //show all data\n filteredList.addAll(enquiryAll);\n }else {\n //filter using keys\n String filterPattern = constraint.toString().toLowerCase().trim();\n for(EnquiryModel enquiryModel : enquiryAll){\n if(enquiryModel.getUser_name().toLowerCase().contains(filterPattern) || enquiryModel.getUser_email().toLowerCase().contains(filterPattern)|| enquiryModel.getHostel_name().contains(filterPattern)|| enquiryModel.getEnquiry_status().contains(filterPattern)){\n filteredList.add(enquiryModel); //store those enquiry whose hostel name contains list as asked.\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n\n return filterResults;\n }", "private void searchQuery() {\n edit_search.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n if (paletteComposition.getVisibility() == View.VISIBLE){\n paletteComposition.setVisibility(View.GONE);\n setComposer.setVisibility(View.VISIBLE);\n }\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n setContactThatNameContains(s.toString().trim());\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n }", "public void filter(String charText) {\n charText = charText.toLowerCase();\n listData.clear(); // clear the listData\n\n if (charText.length() == 0) { // if nothing is written in the searchbar\n listData.addAll(copie); // refill the listData with all comic\n } else {\n for (Comic searchComic : copie) {\n // else, it will fill the lisData with the comic responding to the charText in th searchbar\n if (searchComic.getTitre().toLowerCase().contains(charText)) {\n listData.add(searchComic);\n }\n }\n }\n notifyDataSetChanged(); // notify to the data that the list had changed\n }", "private List<moneda> filter(List<moneda> p1, String query)\n {\n query = query.toLowerCase();\n final List<moneda> filteredModeList = new ArrayList<>();\n for (moneda model:p1)\n {\n final String text = model.getNombre().toLowerCase();\n if(text.startsWith(query))\n {\n filteredModeList.add(model);\n }\n }\n return filteredModeList;\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n FilterResults results = new FilterResults();\n if (constraint != null && constraint.length() > 0) {\n //CONSTARINT TO UPPER\n constraint = constraint.toString().toUpperCase();\n List<Product> filters = new ArrayList<Product>();\n //get specific items\n for (int i = 0; i < filterList.size(); i++) {\n if (filterList.get(i).getAdi().toUpperCase().contains(constraint)) {\n Product p = new Product(filterList.get(i).getIncKey(),filterList.get(i).getCicekPasta(),filterList.get(i).getUrunKodu(),\n filterList.get(i).getSatisFiyat(),filterList.get(i).getKdv(),filterList.get(i).getResimKucuk(),\n filterList.get(i).getSiparisSayi(),filterList.get(i).getDefaultKategori(),filterList.get(i).getCicekFiloFiyat(),\n filterList.get(i).getAdi(), filterList.get(i).getResimBuyuk(), filterList.get(i).getIcerik());\n filters.add(p);\n }\n }\n results.count = filters.size();\n results.values = filters;\n if(filters.size()==0){ // if not found result\n TextView tv= (TextView) mainActivity.findViewById(R.id.sonucyok);\n tv.setText(\"Üzgünüz, aradığınız sonucu bulamadık..\");\n Log.e(\"bbı\",\"oıfnot\");\n }\n else\n mainActivity.findViewById(R.id.sonucyok).setVisibility(View.INVISIBLE);\n\n } else {\n results.count = filterList.size();\n results.values = filterList;\n }\n return results;\n }", "@Override\n public List<Patente> searchPatenteTitle(Patente patente) {\n if (StringUtil.getInstance().isNullOrEmpty(patente.getTituloInvencao())) {\n // quando os dados para pesquisa são reprovados\n return null;\n }\n return this.getDaoPatente().findByTitle(patente);\n }", "@Query(value = \"SELECT * FROM produtos WHERE prd_nome LIKE %?%\", nativeQuery = true)\r\n public List<ProdutosModel> findAllLike (String pesquisa);", "@FXML\r\n private void search(){\n \r\n String s = tfSearch.getText().trim(); \r\n String type = cmbType.getSelectionModel().getSelectedItem();\r\n String col = cmbFilterBy.getSelectionModel().getSelectedItem();\r\n \r\n /**\r\n * Column Filters\r\n * \r\n */\r\n \r\n \r\n if(!s.isEmpty()){\r\n if(!chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%' AND status<>'active'\", tblTrainingList);\r\n }\r\n\r\n if(chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%'\", tblTrainingList);\r\n } \r\n } \r\n }", "@Override\n\tpublic void searchByName() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's name\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t}", "public static void search() {\n int userSelected = selectFromList(crudParamOptions);\n switch (userSelected){\n case 1:\n searchFirstName();\n break;\n case 2:\n searchLastName();\n break;\n case 3:\n searchPhone();\n break;\n case 4:\n searchEmail();\n break;\n default:\n break;\n }\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n String text = searchBar.getText().toString().toLowerCase();\n // voer displayArray uit\n filteredUsers.clear();\n int length = users.size();\n for (int i = 0; i < length; i++) {\n final String name = users.get(i).first.toLowerCase();\n if (name.startsWith(text)) {\n filteredUsers.add(users.get(i));\n }\n }\n displayArray(filteredUsers);\n //Log.d(TAG, \"text changed\");\n }", "private void armarQuery(String filtro) throws DatabaseErrorException {\n String query = null;\n if (filtro != null && filtro.length() > 0) {\n query = \"SELECT * FROM \" + CLASS_NAME + \" o WHERE o.nombre ILIKE '\" + filtro + \"%' ORDER BY o.nombre\";\n }\n cargarContenedorTabla(query);\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n constraint = constraint.toString().toLowerCase();\n FilterResults result = new FilterResults();\n if (constraint != null && constraint.toString().length() > 0) {\n List<Message> filt = new ArrayList<Message>(); //filtered list\n for (int i = 0; i < originalData.size(); i++) {\n Message m = originalData.get(i);\n if (m.getSender().getEmailAddress().getName().toLowerCase().contains(constraint)) {\n filt.add(m); //add only items which matches\n }\n }\n result.count = filt.size();\n result.values = filt;\n } else { // return original list\n synchronized (this) {\n result.values = originalData;\n result.count = originalData.size();\n }\n }\n return result;\n }", "public void searchByName() {\n System.out.println(\"enter a name to search\");\n Scanner sc = new Scanner(System.in);\n String fName = sc.nextLine();\n Iterator itr = list.iterator();\n while (itr.hasNext()) {\n Contact person = (Contact) itr.next();\n if (fName.equals(person.getFirstName())) {\n List streamlist = list.stream().\n filter(n -> n.getFirstName().\n contains(fName)).\n collect(Collectors.toList());\n System.out.println(streamlist);\n }\n }\n }", "@Override\n public void afterTextChanged(Editable arg0) {\n String text = editsearch.getText().toString().toLowerCase(Locale.getDefault());\n adapter.filter(text);\n }", "@Override\n public void afterTextChanged(Editable arg0) {\n String text = editsearch.getText().toString().toLowerCase(Locale.getDefault());\n adapter.filter(text);\n }", "public List<Filme> buscarPeloNome(String nome) {\n EntityManager gerenciador = JPAUtil.getGerenciador();\r\n\r\n //Criando a consulta ao BD\r\n TypedQuery<Filme> consulta = gerenciador.createQuery(\r\n \"Select f from Filme f where f.nome like :nome\",\r\n Filme.class);\r\n\r\n //Substituindo o parametro :nome pelo valor da variavel n\r\n consulta.setParameter(\"nome\", nome + \"%\");\r\n\r\n //Retornar os dados\r\n return consulta.getResultList();\r\n\r\n }", "@Repository\npublic interface EmpresaRepository extends JpaRepository<Empresa, Long> {\n\n Optional<Empresa> findById(Long pollId);\n\n Page<Poll> findByCreatedBy(Long userId, Pageable pageable);\n\n @Query(\"select e from Empresa e where ( :nome is null or lower(e.user.name) like lower(concat('%', :nome,'%')) ) and ( :categoriaEmpresa is null or e.categoriaEmpresa = :categoriaEmpresa) \")\n\tPage<Empresa> getEmpresasByFilters(@Param(\"nome\")String nome, @Param(\"categoriaEmpresa\")CategoriaEmpresa categoriaEmpresa, Pageable pageable);\n\n}", "public List<Produto> findByNomeLike(String nome);", "@Override\n\t\t\tpublic void onTextChanged(CharSequence cs, int arg1, int arg2,\n\t\t\t\t\tint arg3) {\n\n\t\t\t\tString text = searchText.getText().toString()\n\t\t\t\t\t\t.toLowerCase(Locale.getDefault());\n\t\t\t\t((CustomAdapterSearchPatientByAdmin) adapter).filter(text);\n\n\t\t\t}", "@Override\r\n /**\r\n * *\r\n *Primero revisa si los apellidos con iguales, en el caso de que sean iguales\r\n *entra al if y compara por nombres, de lo contrario nunca entra al if y \r\n * compara normalmente por apellido\r\n * \r\n */ \r\n public void ordenarPersonas (){\r\n Comparator<Persona> comparacionPersona= (Persona persona1,Persona persona2)->{\r\n \r\n if(persona1.getApellidos().compareToIgnoreCase(persona2.getApellidos())==0){\r\n return persona1.getNombres().compareToIgnoreCase(persona2.getNombres());}\r\n return persona1.getApellidos().compareToIgnoreCase(persona2.getApellidos());\r\n }; \r\n\r\n listaPersona.sort(comparacionPersona);\r\n }", "private void searchPerson(String searchName){\r\n\r\n textAreaFromSearch.setText(\"\");\r\n try{\r\n Scanner scanner = new Scanner(file);\r\n String info;\r\n\r\n while (scanner.hasNext()){\r\n String line = scanner.nextLine();\r\n String[] components = line.split(separator);\r\n if (searchName.length() == 0){\r\n return;\r\n }\r\n if (components[0].contains(searchName)){\r\n info = \" Name: \" + components[0] + \"\\n\";\r\n info += \" Phone No.: \"+components[1]+\"\\n\";\r\n info += \" Email: \"+components[2]+\"\\n\";\r\n info += \" Address: \"+components[3]+\"\\n\";\r\n textAreaFromSearch.append(info+\"\\n\");\r\n }\r\n }\r\n }catch (IOException e){\r\n fileError();\r\n }\r\n }", "public void llenarListaColocacion(){\n\n //capturar el texto y filtrar\n txtBuscar.textProperty().addListener((prop,old,text) ->{\n colocaciondata.setPredicate(colocacion ->{\n if (text==null || text.isEmpty()){\n return true;\n }\n String texto=text.toLowerCase();\n if(String.valueOf(colocacion.getIdColocacion()).toLowerCase().contains(texto)){\n return true;\n }\n else if(colocacion.getNombre().toLowerCase().contains(texto)){\n return true;\n }\n else if(colocacion.getEstado().toLowerCase().contains(texto)){\n return true;\n }\n\n return false;\n });\n });\n\n\n\n }", "public void findByName() {\n String name = view.input(message_get_name);\n if (name != null){\n try{\n List<Customer> list = model.findByName(name);\n if(list!=null)\n if(list.isEmpty())\n view.showMessage(not_found_name);\n else\n view.showTable(list);\n else\n view.showMessage(not_found_error);\n }catch(Exception e){\n view.showMessage(incorrect_data_error);\n }\n } \n }", "public interface DirektoratRepository extends JpaRepository<Direktorat,Long> {\n\n @Query(value = \"select d from Direktorat d where d.nama like :cariNama\")\n List<Direktorat> findByNama(@Param(\"cariNama\")String cariNama);\n\n List<Direktorat> findByKode(String kode);\n\n}", "@Override\n public Filter getFilter() {\n\n return new Filter() {\n @Override\n protected FilterResults performFiltering(CharSequence charSequence) {\n\n String charString = charSequence.toString();\n\n if (charString.isEmpty()) {\n\n mDataset = mArrayList;\n } else {\n\n ArrayList<DataObject> filteredList = new ArrayList<>();\n\n for (DataObject data : mArrayList) {\n\n if (data.getid().toLowerCase().contains(charString.toLowerCase()) || data.getname().toLowerCase().contains(charString.toLowerCase())) {\n\n filteredList.add(data);\n }\n }\n\n mDataset = filteredList;\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = mDataset;\n return filterResults;\n }\n\n @Override\n protected void publishResults(CharSequence charSequence, FilterResults filterResults) {\n mDataset = (ArrayList<DataObject>) filterResults.values;\n notifyDataSetChanged();\n }\n };\n }", "public List<FieEsq51333> listarFieEsq51333(String filtro) {\n\t String consulta = \"select l from FieEsq51333 l where l.numEsq51333 like :nuncerc\";\n\t TypedQuery<FieEsq51333> query = manager.createQuery(consulta, FieEsq51333.class).setMaxResults(10);\n\t query.setParameter(\"nuncerc\", \"%\" +filtro+ \"%\");\t \n\t return query.getResultList();\n\t\t}", "@Override\n protected FilterResults performFiltering(CharSequence arg0) {\n FilterResults filterResults = new FilterResults();\n if (arg0 == null || arg0.length() == 0) {\n filterResults.values = MyArrayObjects;\n filterResults.count = MyArrayObjects.size();\n } else {\n String filterString = arg0.toString().toLowerCase();\n final ArrayList<Com_ItemObject> TempList = new ArrayList<Com_ItemObject>();\n for (Com_ItemObject Sis_ItemObject : MyArrayObjects) {\n //Filters both from Name and Bottom Text\n if ((Sis_ItemObject.getName() + \" \" + Sis_ItemObject.getBottomText()).toLowerCase().contains(filterString)) {\n TempList.add(Sis_ItemObject);\n }\n }\n\n filterResults.values = TempList;\n filterResults.count = TempList.size();\n }\n\n return filterResults;\n }", "@Override\n public boolean containsNameProfesor(String Name) {\n try {\n Entity retValue = null; \n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT * FROM persona where nombre = ?\");\n\n pstmt.setString(1, Name);\n\n rs = pstmt.executeQuery();\n\n if (rs.next()) {\n return true; \n } \n \n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n return false;\n }", "List<Funcionario> findByNomeCompletoIgnoreCaseContaining(String nomeCompleto);", "public void filtroCedula(String pCedula){\n \n }", "public List<Funcionario> buscaPorNome(String nome) {\r\n session = HibernateConexao.getSession();\r\n session.beginTransaction().begin();\r\n// Query query=session.createSQLQuery(sqlBuscaPorNome).setParameter(\"nome\", nome);\r\n List list = session.createCriteria(classe).add(Restrictions.like(\"nome\", \"%\" + nome + \"%\")).list();\r\n session.close();\r\n return list;\r\n }", "@Query(value = \"SELECT * FROM FUNCIONARIO \" +\n \"WHERE CONVERT(upper(name), 'SF7ASCII') = CONVERT(upper(:name), 'SF7ASCII')\", nativeQuery = true)\n Optional<List<Funcionario>> findByNameIgnoreCase(String name);", "private void filter(String text){\n ArrayList<BloodBank> filteredList=new ArrayList<>();\n for(BloodBank bloodBank:lstBloodBanks){\n if(bloodBank.getName().toLowerCase().contains(text.toLowerCase())){\n filteredList.add(bloodBank);\n }\n }\n\n adapter.filterList(filteredList);\n }", "@Query(\"SELECT i FROM Item i WHERE \"+\n \"upper(i.name) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.number) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.waybill) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.factory) LIKE concat('%',upper(?1),'%')\")\n Page<Item> filterAll(String substring, Pageable pageable);", "@Query(\"FROM Consulta c WHERE c.paciente.dni = :dni OR LOWER(c.paciente.nombres) \"\n\t\t\t+ \"LIKE %:nombreCompleto% OR LOWER(c.paciente.apellidos) \"\n\t\t\t+ \"LIKE %:nombreCompleto%\")\n\tList<Consulta> buscar(@Param(\"dni\") String dni, @Param(\"nombreCompleto\") String nombreCompleto);", "private void filter(String text) {\n List<Target> filteredlist = new ArrayList<>();\n // running a for loop to compare elements.\n for (Target item : repositoryList) {\n // checking if the entered string matched with any item of our recycler view.\n if (item.getNameTarget().toLowerCase().contains(text.toLowerCase())) {\n // if the item is matched we are\n // adding it to our filtered list.\n filteredlist.add(item);\n }\n } adapter.updateData(filteredlist);\n }", "public String searchPerson(String name){\n String string = \"\";\n ArrayList<Person> list = new ArrayList<Person>();\n \n for(Person person: getPersons().values()){\n String _name = person.getName();\n if(_name.contains(name)){\n list.add(person);\n }\n }\n list.sort(Comparator.comparing(Person::getName));\n for (int i = 0; i < list.size(); i++){\n string += list.get(i).toString();\n }\n\n return string;\n }", "@Query(\"select i from Item i where lower(i.name) like lower(:namePart)\")\n List<Item> searchInNames(@Param(\"namePart\") String namePart);", "public static void main(String[] args) throws FileNotFoundException {\n\n ArrayList<String> names = new ArrayList<>();\n Scanner scanner = new Scanner(new File(\"People.csv\"));\n scanner.nextLine();\n while (scanner.hasNext()) {\n String line = scanner.nextLine();\n String[] columns = line.split(\",\");\n String name = columns[1] + \" \" + columns[2];\n names.add(name);\n }\n\n Scanner consoleScanner = new Scanner(System.in);\n System.out.println(\"Type Search Term\");\n String searchTerm = consoleScanner.nextLine();\n\n// String searchTerm = \"mur\";\n\n //solve for via loop\n for (String name: names) {\n if (name.toLowerCase().contains(searchTerm)) {\n System.out.println(name);\n }\n }\n System.out.println();\n\n //solve via stream\n names.stream()\n .map(name -> name.toLowerCase())\n .filter(name -> name.toLowerCase().contains(searchTerm.toLowerCase()))\n// .forEach(System.out::println);\n .collect(Collectors.toCollection(ArrayList<String>::new));\n System.out.println();\n }", "public void filtrarTablaNomProducto(JTable table, String filtro) throws Conexion.DataBaseException {\n String[] titulos = {\"Id Producto\", \"Nombre Producto\", \"Tipo\", \"Cantidad en Stock\", \"Descripción\", \"Proveedor\", \"Precio\"};\n String[] registros = new String[7];\n DefaultTableModel model = new DefaultTableModel(null, titulos);\n String sql = \"SELECT * FROM Productos WHERE name LIKE '%\" + filtro + \"%'\";\n try {\n con = conectar.getConnexion();\n ps = con.prepareStatement(sql);\n rs = ps.executeQuery();\n while (rs.next()) {\n registros[0] = rs.getString(\"idProducto\"); //como se llama el campo en la base de datos\n registros[1] = rs.getString(\"name\");\n registros[2] = rs.getString(\"type\");\n registros[3] = rs.getString(\"quantity\");\n registros[4] = rs.getString(\"description\");\n registros[5] = rs.getString(\"idProveedor\");\n registros[6] = rs.getString(\"price\");\n model.addRow(registros);\n }\n table.setModel(model);\n } catch (SQLException e) {\n System.out.println(\"Error al buscar los datos: \" + e.getMessage());\n }\n }", "public interface OrdineRepository extends JpaRepository<Ordine,Long> {\n\n //Ricerca ordini associati ad un determinato cliente\n @Query(\"select o from Ordine o \" +\n \"where lower(o.cliente.nomeCliente) like lower(concat('%', :searchTerm, '%')) \" )\n List<Ordine> searchForCliente(@Param(\"searchTerm\") String searchTerm);\n}", "public void search() {\n\n lazyModel = new LazyDataModel<Pesquisa>() {\n private static final long serialVersionUID = -6541913048403958674L;\n\n @Override\n public List<Pesquisa> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters) {\n\n pesquisarBC.searhValidation(searchParam);\n\n int count = pesquisarBC.count(searchParam);\n lazyModel.setRowCount(count);\n\n if (count > 0) {\n if (first > count) {\n // Go to last page\n first = (count / pageSize) * pageSize;\n }\n SearchFilter parameters = new SearchFilter();\n parameters.setFirst(first);\n parameters.setPageSize(pageSize);\n List<Pesquisa> list = pesquisarBC.search(searchParam, parameters);\n\n logger.info(\"END: load\");\n return list;\n } else {\n return null;\n }\n }\n };\n\n }", "private void pesquisar_cliente() {\n String sql = \"select id, empresa, cnpj, endereco, telefone, email from empresa where empresa like ?\";\n try {\n pst = conexao.prepareStatement(sql);\n //passando o conteudo para a caixa de pesquisa para o ?\n // atenção ao ? q é a continuacao da string SQL\n pst.setString(1, txtEmpPesquisar.getText() + \"%\");\n rs = pst.executeQuery();\n // a linha abaixo usa a biblioteca rs2xml.jar p preencher a TABELA\n tblEmpresas.setModel(DbUtils.resultSetToTableModel(rs));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }", "@Query(\"select o from Ordine o \" +\n \"where lower(o.cliente.nomeCliente) like lower(concat('%', :searchTerm, '%')) \" )\n List<Ordine> searchForCliente(@Param(\"searchTerm\") String searchTerm);", "private void searchFunction() {\n\t\t\r\n\t}", "@Override\n public void run() {\n filtered_list.clear();\n\n // If there is no search value, then add all original list items to filter list\n if (TextUtils.isEmpty(searchText)) {\n if (original_data != null)\n filtered_list.addAll(original_data);\n\n } /*\n\n naco to tu je??\n\n else {\n // Iterate in the original List and add it to filter list...\n for (MnozstvaTovaru item : original_data) {\n if (item.getTovarNazov().toLowerCase().contains(searchText.toLowerCase())) {\n // Adding Matched items\n filtered_list.add(item);\n }\n }\n } */\n\n // Set on UI Thread\n ((Activity) context).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // Notify the List that the DataSet has changed...\n notifyDataSetChanged();\n }\n });\n\n }", "private void searchExec(){\r\n\t\tString key=jComboBox1.getSelectedItem().toString();\r\n\t\tkey=NameConverter.convertViewName2PhysicName(\"Discount\", key);\r\n\t\tString valueLike=searchTxtArea.getText();\r\n\t\tList<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike);\r\n\t\tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,\"Discount\"));\r\n\t}", "@In String search();", "private String getWhereFilter(ArrayList<Object> prmList) {\n StringBuffer filterBuffer = new StringBuffer();\n /* set id filter */\n if (this.idFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" ndp.id = ? \");\n prmList.add(this.idFilter);\n }\n\n if (this.typeFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.type LIKE ? \");\n prmList.add(this.typeFilter);\n }\n\n if (this.propertyInfoFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.property_info LIKE ? \");\n prmList.add(this.propertyInfoFilter);\n }\n\n if (this.landCertificateFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.land_certificate LIKE ? \");\n prmList.add(this.landCertificateFilter);\n }\n\n if (this.landMapNumberFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.land_map_number LIKE ? \");\n prmList.add(this.landMapNumberFilter);\n }\n\n if (this.landNumberFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.land_number LIKE ? \");\n prmList.add(this.landNumberFilter);\n }\n\n if (this.landAddressFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.land_address LIKE ? \");\n prmList.add(this.landAddressFilter);\n }\n\n if (this.carLicenseNumberFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.car_license_number LIKE ? \");\n prmList.add(this.carLicenseNumberFilter);\n }\n\n if (this.carRegistNumberFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.car_regist_number LIKE ? \");\n prmList.add(this.carRegistNumberFilter);\n }\n\n if (this.carFrameNumberFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.car_frame_number LIKE ? \");\n prmList.add(this.carFrameNumberFilter);\n }\n\n if (this.carMachineNumberFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.car_machine_number LIKE ? \");\n prmList.add(this.carMachineNumberFilter);\n }\n\n if (this.originKindFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" ndp.origin_kind LIKE ? \");\n prmList.add(this.originKindFilter);\n }\n\n if (this.releaseFlgFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" ndp.release_flg = ? \");\n prmList.add(this.releaseFlgFilter);\n }\n\n if (this.deleteFlgFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" ndp.delete_flg = ? \");\n prmList.add(this.deleteFlgFilter);\n }\n\n if (this.typeKeySearchFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.type LIKE ? \");\n prmList.add(this.typeKeySearchFilter);\n }\n\n if (this.keySearchFilter != null) {\n for (int i = 0; i < subKeys.size(); i++) {\n String subkey = subKeys.get(i);\n\n if (Constants.PLUS.equals(subkey)) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" ( \");\n if (i == 0) {\n filterBuffer.append(\" ( \");\n }\n } else if (Constants.SPACE.equals(subkey)) {\n appendOr(filterBuffer);\n filterBuffer.append(\" ( \");\n } else {\n filterBuffer.append(\" MATCH(npp.property_info, npp.owner_info, npp.other_info, \" +\n \"ndp.prevent_in_book_number, ndp.prevent_person_info, ndp.prevent_doc_number, ndp.prevent_doc_summary, \" +\n \"ndp.prevent_note, ndp.release_in_book_number, ndp.release_person_info, \" +\n \"ndp.release_doc_number, ndp.release_doc_summary, ndp.release_note) \");\n filterBuffer.append(\" AGAINST(? IN BOOLEAN MODE) \");\n prmList.add(subkey);\n\n if (subkey.charAt(0) == '\"') {\n subkey = subkey.substring(1, subkey.length() - 1);\n }\n\n if (subkey.charAt(subkey.length() - 1) == '\"') {\n subkey = subkey.substring(0, subkey.length() - 2);\n }\n\n appendOr(filterBuffer);\n filterBuffer.append(\" npp.property_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" npp.owner_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" npp.other_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_in_book_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_person_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n \n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_doc_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_doc_summary LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_note LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_in_book_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_person_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_doc_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_doc_summary LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_note LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n filterBuffer.append(\" ) \");\n }\n }\n filterBuffer.append(\" ) \");\n\n filterBuffer.append(\" ORDER BY \");\n for (int j = 1; j < subKeys.size(); j++) {\n String subkey = subKeys.get(j);\n if (!Constants.PLUS.equals(subkey) && !Constants.SPACE.equals(subkey)) {\n\n filterBuffer.append(\" ( \");\n filterBuffer.append(\" MATCH(npp.property_info, npp.owner_info, npp.other_info, \" +\n \"ndp.prevent_in_book_number, ndp.prevent_person_info, ndp.prevent_doc_number, ndp.prevent_doc_summary, \" +\n \"ndp.prevent_note, ndp.release_in_book_number, ndp.release_person_info, \" +\n \"ndp.release_doc_number, ndp.release_doc_summary, ndp.release_note) \");\n filterBuffer.append(\" AGAINST(? IN BOOLEAN MODE) \");\n prmList.add(subkey);\n\n if (subkey.charAt(0) == '\"') {\n subkey = subkey.substring(1, subkey.length() - 1);\n }\n\n if (subkey.charAt(subkey.length() - 1) == '\"') {\n subkey = subkey.substring(0, subkey.length() - 2);\n }\n\n appendOr(filterBuffer);\n filterBuffer.append(\" npp.property_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" npp.owner_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" npp.other_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_in_book_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_person_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n \n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_doc_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_doc_summary LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_note LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_in_book_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_person_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_doc_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_doc_summary LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_note LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n if (j == subKeys.size() - 1) {\n filterBuffer.append(\" ) \");\n } else {\n filterBuffer.append(\" ) + \");\n }\n }\n }\n filterBuffer.append(\" DESC, prevent_doc_receive_date DESC \");\n }\n\n if (this.officeCode != null && !\"\".equals(this.officeCode)) {\n \tappendAnd(filterBuffer);\n filterBuffer.append(\" ndp.synchronize_id LIKE ? \");\n prmList.add(this.officeCode);\n }\n \n return filterBuffer.toString();\n }", "public static void generalFilter(){\r\n try {\r\n String choice = home_RegisterUser.comboFilter.getSelectedItem().toString();\r\n ResultSet rs = null;\r\n singleton.dtm = new DefaultTableModel();\r\n \r\n singleton.dtm.setColumnIdentifiers(general);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n Statement stmt = singleton.conn.createStatement();\r\n \r\n switch (choice) {\r\n case \"Nombre\":\r\n //BUSCA POR NOMBRE\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT DISTINCT * FROM articulos WHERE nombre LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectos(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2)); \r\n }\r\n }else{\r\n searchAll();\r\n }\r\n break;\r\n case \"Precio mayor que\":\r\n //BUSCA POR PRECIO MAYOR\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT DISTINCT * FROM articulos WHERE precio > '\"+home_RegisterUser.filterField.getText()+\"'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectos(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2)); \r\n }\r\n }else{\r\n searchAll();\r\n }\r\n break;\r\n case \"Precio menor que\":\r\n //BUSCA POR PRECIO MENOR\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT DISTINCT * FROM articulos WHERE precio < '\"+home_RegisterUser.filterField.getText()+\"'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectos(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2)); \r\n }\r\n }else{\r\n searchAll();\r\n }\r\n break; \r\n case \"Fabricante\":\r\n //BUSCA POR FABRICANTE\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT DISTINCT * FROM articulos WHERE fabricante LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectos(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2)); \r\n }\r\n }else{\r\n searchAll();\r\n }\r\n break;\r\n default:\r\n \r\n break;\r\n }\r\n } catch (SQLException ex) {\r\n System.err.println(\"SQL Error: \"+ex);\r\n }catch(Exception ex){\r\n System.err.println(\"Error: \"+ex);\r\n }\r\n }", "public void ProductsSearch(DefaultTableModel tableModel, String parameter){\n connect();\n ResultSet result = null;\n tableModel.setRowCount(0);\n tableModel.setColumnCount(0);\n String sql = \"SELECT id_producto as Id, descripcion, presentacion, cantidad, precio, subtotal, proveedor FROM \"+\n \"productos WHERE descripcion LIKE ? ORDER BY descripcion\";\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n ps.setString(1, \"%\" + parameter + \"%\");\n result = ps.executeQuery();\n if(result != null){\n int columnNumber = result.getMetaData().getColumnCount();\n for(int i = 1; i < columnNumber; i++){\n tableModel.addColumn(result.getMetaData().getColumnName(i));\n }\n while(result.next()){\n Object []obj = new Object[columnNumber];\n for(int i = 1; i < columnNumber; i++){\n obj[i-1] = result.getObject(i);\n }\n tableModel.addRow(obj);\n }\n }\n connect.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n } \n }", "public void searchUser(int keyCode, String filter, String user, JTable tblUser) {\n \n\n if(keyCode == KeyEvent.VK_ENTER) {\n tableModel = (DefaultTableModel) tblUser.getModel();\n \n int i;\n for(i = 0; i < tableModel.getColumnCount(); i++)\n {\n if(filter.compareTo(tableModel.getColumnName(i)) == 0) { break; }\n }\n\n for(int k = 0; k < tableModel.getRowCount(); k++)\n {\n if(user.compareToIgnoreCase(tableModel.getValueAt(k, i).toString()) == 0) {\n tblUser.setRowSelectionInterval(k, k);\n break;\n \n } else { tblUser.clearSelection(); }\n }\n } \n }", "public List<Product> getProductBySearchName(String search) {\r\n List<Product> list = new ArrayList<>();\r\n String query = \"select * from Trungnxhe141261_Product\\n \"\r\n + \"where [name] like ? \";\r\n try {\r\n conn = new DBContext().getConnection();//mo ket noi voi sql\r\n ps = conn.prepareStatement(query);\r\n ps.setString(1, \"%\" + search + \"%\");\r\n rs = ps.executeQuery();\r\n while (rs.next()) {\r\n list.add(new Product(rs.getInt(1),\r\n rs.getString(2),\r\n rs.getString(3),\r\n rs.getDouble(4),\r\n rs.getString(5),\r\n rs.getString(6)));\r\n }\r\n } catch (Exception e) {\r\n }\r\n return list;\r\n }", "public void search() {\r\n \t\r\n }", "@Override\n\tpublic void searchByMobile() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Mobile\").toString().equals(search)) {\n\t\t\t\tpMob = jsnobj.get(\"Mobile\").toString();\n\t\t\t\tpName = jsnobj.get(\"Patient's name\").toString();\n\t\t\t\tpId = jsnobj.get(\"Patient's ID\").toString();\n\t\t\t\tSystem.out.print(++count + \" Name:\" + pName + \" ID:\" + pId + \" Mobile:\" + pMob + \" Age:\"\n\t\t\t\t\t\t+ jsnobj.get(\"Age\") + \"\\n\\n\");\n\t\t\t}\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "private void filter(String text) {\n ArrayList<Pokemon> filteredList = new ArrayList();\n\n for (Pokemon p : team) {\n ArrayList<Type> types = p.getTypes();\n ArrayList<String> typesStringArray = getTypesStringArray(types);\n String typesString = getTypesString(typesStringArray);\n\n boolean nameContainsSearchedText = p.getName().toLowerCase().contains(text.toLowerCase());\n boolean typesContainsSearchedText = typesString.toLowerCase().contains(text.toLowerCase());\n\n if (nameContainsSearchedText || typesContainsSearchedText) {\n filteredList.add(p);\n }\n }\n\n adapter.filteredList(filteredList);\n }", "@Override\n public boolean onQueryTextSubmit(String s) {\n ArrayList<String> visibleList = new ArrayList<>();\n\n //for every log row\n for (String visibleItem : logList){\n //contains search bar string\n if (visibleItem.toLowerCase().contains(s.toLowerCase())){\n //add item to list\n visibleList.add(visibleItem);\n }\n }\n //initialize Adapter\n logAdapter = new ArrayAdapter<>(ViewLogActivity.this, R.layout.view_student_attendance, R.id.student, visibleList);\n\n //set Adapter to ListView\n mLogList.setAdapter(logAdapter);\n\n return true;\n }", "void searchForProducts(String searchQuery) {\n if (searchQuery.isEmpty()) {\n searchQuery = \"%\";\n } else {\n searchQuery = \"%\" + searchQuery + \"%\";\n }\n filter.postValue(searchQuery);\n }", "public void searchField(String name) {\r\n\t\tsafeType(addVehiclesHeader.replace(\"Add Vehicle\", \"Search\"), name);\r\n\t\t;\r\n\t}", "@Query(\"select i from Item i where lower(i.name) like lower(?1)\")\n Page<Item> searchInNames(String namePart, Pageable pageable);", "public static void ramFilter(){\r\n try {\r\n String choice = home_RegisterUser.comboFilter.getSelectedItem().toString();\r\n ResultSet rs = null;\r\n singleton.dtm = new DefaultTableModel();\r\n singleton.dtm.setColumnIdentifiers(ram);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n Statement stmt = singleton.conn.createStatement();\r\n \r\n switch (choice) {\r\n case \"Nombre\":\r\n //BUSCA POR NOMBRE\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT *,r.tipo,r.capacidad,r.velocidad FROM articulos a,ram r WHERE a.codigo = r.codart AND nombre LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosRam(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getString(\"tipo\"),rs.getInt(\"capacidad\"),rs.getInt(\"velocidad\")));\r\n }\r\n }else{\r\n searchRam();\r\n }\r\n break;\r\n case \"Precio mayor que\":\r\n //BUSCA POR PRECIO MAYOR\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT *,r.tipo,r.capacidad,r.velocidad FROM articulos a,ram r WHERE a.codigo = r.codart AND precio > '\"+home_RegisterUser.filterField.getText()+\"'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosRam(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getString(\"tipo\"),rs.getInt(\"capacidad\"),rs.getInt(\"velocidad\")));\r\n }\r\n }else{\r\n searchRam();\r\n }\r\n break;\r\n case \"Precio menor que\":\r\n //BUSCA POR PRECIO MENOR\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT *,r.tipo,r.capacidad,r.velocidad FROM articulos a,ram r WHERE a.codigo = r.codart AND precio < '\"+home_RegisterUser.filterField.getText()+\"'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosRam(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getString(\"tipo\"),rs.getInt(\"capacidad\"),rs.getInt(\"velocidad\")));\r\n }\r\n }else{\r\n searchRam();\r\n }\r\n break; \r\n case \"Fabricante\":\r\n //BUSCA POR FABRICANTE\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT *,r.tipo,r.capacidad,r.velocidad FROM articulos a,ram r WHERE a.codigo = r.codart AND fabricante LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosRam(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getString(\"tipo\"),rs.getInt(\"capacidad\"),rs.getInt(\"velocidad\")));\r\n }\r\n }else{\r\n searchRam();\r\n }\r\n break;\r\n case \"Tipo\":\r\n //BUSCA POR TIPO\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT *,r.tipo,r.capacidad,r.velocidad FROM articulos a,ram r WHERE a.codigo = r.codart AND tipo LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosRam(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getString(\"tipo\"),rs.getInt(\"capacidad\"),rs.getInt(\"velocidad\")));\r\n }\r\n }else{\r\n searchRam();\r\n }\r\n break;\r\n case \"Capacidad\":\r\n //BUSCA POR CAPACIDAD\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT *,r.tipo,r.capacidad,r.velocidad FROM articulos a,ram r WHERE a.codigo = r.codart AND capacidad = '\"+home_RegisterUser.filterField.getText()+\"'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosRam(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getString(\"tipo\"),rs.getInt(\"capacidad\"),rs.getInt(\"velocidad\")));\r\n }\r\n }else{\r\n searchRam();\r\n }\r\n break;\r\n case \"Velocidad\":\r\n //BUSCA POR VELOCIDAD \r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT *,r.tipo,r.capacidad,r.velocidad FROM articulos a,ram r WHERE a.codigo = r.codart AND velocidad = '\"+home_RegisterUser.filterField.getText()+\"'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosRam(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getString(\"tipo\"),rs.getInt(\"capacidad\"),rs.getInt(\"velocidad\")));\r\n }\r\n }else{\r\n searchRam();\r\n }\r\n break;\r\n }\r\n } catch (SQLException ex) {\r\n System.err.println(\"SQL Error: \"+ex);\r\n }catch(Exception ex){\r\n System.err.println(\"Error: \"+ex);\r\n }\r\n }", "@Override\n public void afterTextChanged(Editable s) {\n filter(s.toString());\n //you can use runnable postDelayed like 500 ms to delay search text\n }", "public List<Veterinario> pesquisar(String nomeOuCpf) throws ClassNotFoundException, SQLException{ \n VeterinarioDAO dao = new VeterinarioDAO();\n if (!nomeOuCpf.equals(\"\"))\n return dao.listar(\"(nome = '\" + nomeOuCpf + \"' or cpf = '\" + nomeOuCpf + \"') and ativo = true\");\n else\n return dao.listar(\"ativo = true\");\n }", "@Override\n public void afterTextChanged(Editable s)\n {\n String userInput = filter(s.toString());\n\n // Then searches database and return result\n searchDatabase(userInput);\n }", "@Override\n public Function<String, Predicate<String>> getFieldFilter() {\n return index -> field -> true;\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n List<EventDTO> filteredList = new ArrayList<>();\n /* If the given charSequence (Users input in searchview) is 0 or null, if so readies all events to be searched through */\n if(constraint == null || constraint.length() == 0) {\n filteredList.addAll(itemsToAdaptComplete);\n } else {\n /* Makes input not case sensitive */\n String filterPattern = constraint.toString().toLowerCase().trim(); // Locale.ROOT\n /* Searches through all of the events to check for matching characters */\n for (EventDTO item : itemsToAdaptComplete) {\n if (item.getName().toLowerCase().contains(filterPattern)) {\n filteredList.add(item);\n }\n }\n }\n /* Sets results */\n FilterResults results = new FilterResults();\n results.values = filteredList;\n return results;\n }", "@Override\n public List<FoodItem> filterByName(String substring) {\n //turn foodItemList into a stream to filter the list and check if any food item matched \n return foodItemList.stream().filter(x -> x.getName().toLowerCase() \n .contains(substring.toLowerCase())).collect(Collectors.toList());\n }", "@Override\n public void afterTextChanged(Editable editable) {\n try {\n if (!editable.toString().trim().equals(\"\")) {\n filter(editable.toString());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }", "public List<TipoRetencion> findByNombreContaining(String nombre);", "public List<Ve> searchVe(String maSearch);", "public static void mbFilter(){\r\n try {\r\n String choice = home_RegisterUser.comboFilter.getSelectedItem().toString();\r\n ResultSet rs = null;\r\n singleton.dtm = new DefaultTableModel();\r\n \r\n singleton.dtm.setColumnIdentifiers(mb);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n Statement stmt = singleton.conn.createStatement();\r\n \r\n switch (choice) {\r\n case \"Nombre\":\r\n //BUSCA POR NOMBRE\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,pb r WHERE a.codigo = r.codart AND nombre LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosPB(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getString(\"tipoprocesador\"),rs.getString(\"caracteristicas\")));\r\n }\r\n }else{\r\n searchMotherboard();\r\n }\r\n break;\r\n case \"Precio mayor que\":\r\n //BUSCA POR PRECIO MAYOR\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,pb r WHERE a.codigo = r.codart AND precio > '\"+home_RegisterUser.filterField.getText()+\"'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosPB(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getString(\"tipoprocesador\"),rs.getString(\"caracteristicas\")));\r\n }\r\n }else{\r\n searchMotherboard();\r\n }\r\n break;\r\n case \"Precio menor que\":\r\n //BUSCA POR PRECIO MENOR\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,pb r WHERE a.codigo = r.codart AND precio < '\"+home_RegisterUser.filterField.getText()+\"'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosPB(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getString(\"tipoprocesador\"),rs.getString(\"caracteristicas\")));\r\n }\r\n }else{\r\n searchMotherboard();\r\n }\r\n break; \r\n case \"Fabricante\":\r\n //BUSCA POR FABRICANTE\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,pb r WHERE a.codigo = r.codart AND fabricante LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosPB(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getString(\"tipoprocesador\"),rs.getString(\"caracteristicas\")));\r\n }\r\n }else{\r\n searchMotherboard();\r\n }\r\n break;\r\n case \"Tipo Procesador\":\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,pb r WHERE a.codigo = r.producto_id AND tipoprocesador LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosPB(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getString(\"tipoprocesador\"),rs.getString(\"caracteristicas\")));\r\n }\r\n }else{\r\n searchMotherboard();\r\n }\r\n break;\r\n }\r\n } catch (SQLException ex) {\r\n System.err.println(\"SQL Error: \"+ex);\r\n }catch(Exception ex){\r\n System.err.println(\"Error: \"+ex);\r\n }\r\n }", "protected final void searchForText() {\n Logger.debug(\" - search for text\");\n final String searchText = theSearchEdit.getText().toString();\n\n MultiDaoSearchTask task = new MultiDaoSearchTask() {\n @Override\n protected void onSearchCompleted(List<Object> results) {\n adapter.setData(results);\n }\n\n @Override\n protected int getMinSearchTextLength() {\n return 0;\n }\n };\n task.readDaos.add(crDao);\n task.readDaos.add(monsterDao);\n task.readDaos.add(customMonsterDao);\n task.execute(searchText.toUpperCase());\n }", "public List<Produit> searchProduitsByVendeur(String theVendeur);", "@Override\n public List<Client> filterByName(String searchString){\n log.trace(\"filterByName -- method entered\");\n Iterable<Client> clients = clientRepository.findAll();\n List<Client> result = StreamSupport.stream(clients.spliterator(),false).filter((c)->c.getName().contains(searchString)).collect(Collectors.toList());\n log.trace(\"filterByName: result = {}\", result);\n return result;\n\n }", "private void filterRecyvlerView() {\n String query = etSearch.getText().toString();\n String[] querySplited = query.split(\" \");\n\n if(query.equals(\"\")){\n rvPostalCodes.removeAllViews();\n adapter.setRealmResults(Realm.getDefaultInstance().where(Locations.class).findAll());\n }else{rvPostalCodes.removeAllViews();\n if(querySplited.length == 1) {\n adapter = new LocationsAdapter(fragment, Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0], Case.INSENSITIVE).findAll());\n rvPostalCodes.setAdapter(adapter);\n\n\n }else if(querySplited.length == 2){\n adapter = new LocationsAdapter(fragment, Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[1],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[1],Case.INSENSITIVE).or()\n .findAll());\n rvPostalCodes.setAdapter(adapter);\n }else if(querySplited.length == 3){\n adapter = new LocationsAdapter(getTargetFragment(), Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[1],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[1],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[2],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[2],Case.INSENSITIVE).or()\n .findAll());\n rvPostalCodes.setAdapter(adapter);\n }\n }\n\n }", "private static void search_by_name() {\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\t\tSystem.out.println(\"Project Name: \");\r\n\t\t\tString project_name = input.nextLine();\r\n\t\t\r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects INNER JOIN project_statuses ON \"\r\n\t\t\t\t\t+ \"projects.project_id = project_statuses.project_id;\");\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t\r\n\t\t\tfetch_all_project_info(stmt, project_name, project_rset);\r\n\t\t/**\r\n\t\t * @exception If entered project name cannot be found in the projects table then an SQLException is thrown\r\n\t\t */\t\t\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t}", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "@Query(\"SELECT entity FROM Clientes entity WHERE entity.nome like concat('%',coalesce(:search,''),'%') OR entity.negocio like concat('%',coalesce(:search,''),'%') OR entity.sigla like concat('%',coalesce(:search,''),'%') OR entity.status like concat('%',coalesce(:search,''),'%')\")\n public Page<Clientes> generalSearch(@Param(value=\"search\") java.lang.String search, Pageable pageable);", "public void pesquisa(){\n ObservableList<Medico> search = observableArrayList(medicoDAO.search(fieldSearch.getText()));\n medicoNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n medicoCrm.setCellValueFactory(new PropertyValueFactory<>(\"crm\"));\n medicoEspecialidade.setCellValueFactory(new PropertyValueFactory<>(\"nomeEspecialidade\"));\n tabelaMedicos.setItems(FXCollections.observableArrayList(search));\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n adapter1.getFilter().filter(s.toString());\n }", "private void txtSearchingBrandKeyReleased(java.awt.event.KeyEvent evt) {\n String query=txtSearchingBrand.getText().toUpperCase();\n filterData(query);\n }", "public static void procFilter(){\r\n try {\r\n String choice = home_RegisterUser.comboFilter.getSelectedItem().toString();\r\n ResultSet rs = null;\r\n singleton.dtm = new DefaultTableModel();\r\n \r\n singleton.dtm.setColumnIdentifiers(proc);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n Statement stmt = singleton.conn.createStatement();\r\n \r\n switch (choice) {\r\n case \"Nombre\":\r\n //BUSCA POR NOMBRE\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,proc r WHERE a.codigo = r.codart AND nombre LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosProc(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"velocidad\"),rs.getString(\"tiposocket\"),rs.getInt(\"nucleos\"),rs.getString(\"caracteristicas\")));\r\n }\r\n }else{\r\n searchProcessors();\r\n }\r\n break;\r\n case \"Precio mayor que\":\r\n //BUSCA POR PRECIO MAYOR\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,proc r WHERE a.codigo = r.codart AND precio > '\"+home_RegisterUser.filterField.getText()+\"'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosProc(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"velocidad\"),rs.getString(\"tiposocket\"),rs.getInt(\"nucleos\"),rs.getString(\"caracteristicas\")));\r\n }\r\n }else{\r\n searchProcessors();\r\n }\r\n break;\r\n case \"Precio menor que\":\r\n //BUSCA POR PRECIO MENOR\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,proc r WHERE a.codigo = r.codart AND precio < '\"+home_RegisterUser.filterField.getText()+\"'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosProc(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"velocidad\"),rs.getString(\"tiposocket\"),rs.getInt(\"nucleos\"),rs.getString(\"caracteristicas\")));\r\n }\r\n }else{\r\n searchProcessors();\r\n }\r\n break; \r\n case \"Fabricante\":\r\n //BUSCA POR FABRICANTE\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,proc r WHERE a.codigo = r.codart AND fabricante LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosProc(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"velocidad\"),rs.getString(\"tiposocket\"),rs.getInt(\"nucleos\"),rs.getString(\"caracteristicas\")));\r\n }\r\n }else{\r\n searchProcessors();\r\n }\r\n break;\r\n case \"Nucleos\":\r\n //BUSCA POR RESOLUCION\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,proc r WHERE a.codigo = r.codart AND nucleos = '\"+home_RegisterUser.filterField.getText()+\"'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosProc(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"velocidad\"),rs.getString(\"tiposocket\"),rs.getInt(\"nucleos\"),rs.getString(\"caracteristicas\")));\r\n }\r\n }else{\r\n searchProcessors();\r\n }\r\n break;\r\n case \"Tipo Socket\":\r\n //BUSCA POR RESOLUCION\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,proc r WHERE a.codigo = r.codart AND tiposocket LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosProc(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"velocidad\"),rs.getString(\"tiposocket\"),rs.getInt(\"nucleos\"),rs.getString(\"caracteristicas\")));\r\n }\r\n }else{\r\n searchProcessors();\r\n }\r\n break;\r\n case \"Velocidad\":\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,proc r WHERE a.codigo = r.codart AND velocidad = '\"+home_RegisterUser.filterField.getText()+\"'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosProc(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"velocidad\"),rs.getString(\"tiposocket\"),rs.getInt(\"nucleos\"),rs.getString(\"caracteristicas\")));\r\n }\r\n }else{\r\n searchProcessors();\r\n }\r\n break;\r\n }\r\n } catch (SQLException ex) {\r\n System.err.println(\"SQL Error: \"+ex);\r\n }catch(Exception ex){\r\n System.err.println(\"Error: \"+ex);\r\n } \r\n }", "List<User> findByfnameContaining(String search);", "@Query(\"SELECT entity FROM VwBancos entity WHERE entity.clientes.id = :id AND (:id is null OR entity.id = :id) AND (:nome is null OR entity.nome like concat('%',:nome,'%'))\")\n public Page<VwBancos> findVwBancosSpecificSearch(@Param(value=\"id\") java.lang.Double id, @Param(value=\"nome\") java.lang.String nome, Pageable pageable);", "public List<PedidoIndividual> filtrar(PedidoIndividual filtro);", "Collection<GestionPrecioDTO> findCampaniasFiltros (GestionPrecioDTO gestionPrecio,String estadoCobro);", "public List<CandidatoBean> listarCandidatosComFiltro(String nomeDoFiltro) {\r\n List<Candidato> listCandidatos = new ArrayList<Candidato>();\r\n listCandidatos = em.createNamedQuery(\"Candidato.findByFilter\").setParameter(\"nome\", \"%\" + nomeDoFiltro + \"%\").getResultList();\r\n List<CandidatoBean> listCandidatosBean = new ArrayList<CandidatoBean>();\r\n\r\n for (Candidato candidato : listCandidatos) {\r\n listCandidatosBean.add(modelMapper.map(candidato, CandidatoBean.class));\r\n }\r\n\r\n em.close();\r\n em = null;\r\n\r\n return listCandidatosBean;\r\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n List<CasesItem> filteredList = new ArrayList<>();\n if(constraint == null || constraint.length() == 0) {\n\n filteredList.addAll(mItemCasesAll);\n } else {\n\n String filterPattern = constraint.toString().toLowerCase().trim();\n for(CasesItem items: mItemCasesAll) {\n\n if(items.getmCountryName().toLowerCase().contains(filterPattern)) {\n\n filteredList.add(items);\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n return filterResults;\n }", "public List<FieEsq53313> listarFieEsq53313(String filtro) {\n\t String consulta = \"select l from FieEsq53313 l where l.numEsq53313 like :nuncerc\";\n\t TypedQuery<FieEsq53313> query = manager.createQuery(consulta, FieEsq53313.class).setMaxResults(limite);\n\t query.setParameter(\"nuncerc\", \"%\" +filtro+ \"%\");\t \n\t return query.getResultList();\n\t\t}", "private void showFilter() {\n dtmStok.getDataVector().removeAllElements();\n String pilih = cbFilter.getSelectedItem().toString();\n List<Stokdigudang> hasil = new ArrayList<>();\n\n int pan = tfFilter.getText().length();\n String banding = \"\";\n\n if (pilih.equals(\"Brand\")) {\n for (Stokdigudang s : listStok) {\n banding = s.getBrand().substring(0, pan);\n if (banding.equals(tfFilter.getText())) {\n hasil.add(s);\n }\n }\n } else if (pilih.equals(\"Kategori\")) {\n for (Stokdigudang s : listStok) {\n banding = s.getIDKategori().getNamaKategori().substring(0, pan);\n if (banding.equals(tfFilter.getText())) {\n hasil.add(s);\n }\n }\n } else if (pilih.equals(\"Supplier\")) {\n for (Stokdigudang s : listStok) {\n banding = s.getIDSupplier().getNamaPerusahaan().substring(0, pan);\n if (banding.equals(tfFilter.getText())) {\n hasil.add(s);\n }\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Pilih Filter !\");\n }\n\n if (hasil.isEmpty()) {\n JOptionPane.showMessageDialog(this, \"Tidak ada stok yang ditemukan !\");\n } else {\n for (Stokdigudang s : hasil) {\n dtmStok.addRow(new Object[]{\n s.getIDBarang(),\n s.getNamaBarang(),\n s.getStok(),\n s.getBrand(),\n s.getHarga(),\n s.getIDKategori().getNamaKategori(),\n s.getIDSupplier().getNamaPerusahaan(),\n s.getTanggalDidapat()\n });\n }\n\n tableStok.setModel(dtmStok);\n }\n }" ]
[ "0.71163124", "0.67258114", "0.65284044", "0.64602774", "0.64059085", "0.6370547", "0.6324732", "0.6241378", "0.61697626", "0.6142766", "0.6128375", "0.61154616", "0.61145216", "0.6093145", "0.6057", "0.60507935", "0.6005709", "0.5901458", "0.589779", "0.5887543", "0.5869924", "0.5868414", "0.5864409", "0.582258", "0.582258", "0.582144", "0.5803475", "0.58016753", "0.5799122", "0.5790878", "0.5773584", "0.5771993", "0.57719487", "0.5758948", "0.5747006", "0.57438517", "0.5736216", "0.5733364", "0.5717296", "0.5711074", "0.5701012", "0.56925744", "0.5687032", "0.5681884", "0.56776226", "0.56772923", "0.56748253", "0.5670326", "0.56626743", "0.56540006", "0.5653458", "0.5646759", "0.56401366", "0.5639237", "0.56245667", "0.56235015", "0.5602419", "0.55953604", "0.5590181", "0.5589658", "0.5589557", "0.5578151", "0.5574768", "0.5573429", "0.55732673", "0.5567564", "0.5567416", "0.556628", "0.55645806", "0.5559201", "0.5545258", "0.5538242", "0.5525362", "0.55213517", "0.55202985", "0.55185574", "0.55087775", "0.5504494", "0.54999286", "0.5499838", "0.5498681", "0.5492051", "0.54897", "0.5489277", "0.5488678", "0.5485647", "0.54842514", "0.5479667", "0.5475788", "0.5466171", "0.54646665", "0.5462921", "0.5462755", "0.54592687", "0.54549605", "0.5450438", "0.54458755", "0.5443712", "0.54322785", "0.54313976" ]
0.7587745
0
Will Return back [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 30] An array of permesso_id
private List<Integer> findAllId(EntityManager em) { TypedQuery<Permesso> permessoQuery = em.createQuery("SELECT c FROM com.hamid.entity.Permesso c", Permesso.class); List<Permesso> permessoRes = permessoQuery.getResultList(); List<Integer> p_id = new ArrayList<Integer>(); for (Permesso p : permessoRes) { int p_id1 = p.getPermesso_id(); p_id.add(p_id1); } return p_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int [] GerarAleatorio()\n {\n Random gerar = new Random();\n int [] Aleatorio = new int [pergu]; // Cria um Vetor com o tamanho de quantidade de perguntas\n \n \n int pos1, pos2, auxilio; \n \n for (int i = 0; i < Aleatorio.length; i++) \n {\n Aleatorio[i] = i ; // preenche o vetor\n }\n \n for (int i = 0; i < 1000; i++) //Quantidade de vezes que as perguntas serão embaralhadas \n {\n pos1 = gerar.nextInt(Aleatorio.length);\n pos2 = gerar.nextInt(Aleatorio.length);\n //troca \n auxilio = Aleatorio[pos1]; //guarda o valor da posição 1\n \n Aleatorio [pos1] = Aleatorio[pos2]; //troca o valor de 1 para 2\n Aleatorio[pos2] = auxilio; //troca o valor de 2 para o valor que estava na 1\n }\n \n \n return Aleatorio; \n }", "public int[] puntajes(){\n return partida.puntajes();\n }", "public NominaPuesto[] findWhereIdPuestoEquals(int idPuesto) throws NominaPuestoDaoException;", "java.util.List<java.lang.Long> getMessageIdList();", "public int[] getAllId(int id) {\n int[] ids = new int[50];\n int i = 0;\n String sql= \"select * from photo where id_annonce = \"+id;\n Cursor cursor = this.getReadableDatabase().rawQuery(sql, null);\n if (cursor.moveToFirst())\n do {\n ids[i] = cursor.getInt(cursor.getColumnIndex(\"id_photo\"));\n i++;\n }while (cursor.moveToNext());\n cursor.close();\n return ids;\n }", "public static int[] getID()\n {\n \n String TableData[][]= getTableData();\n int row=getRowCount();\n int ID[]=new int[row];\n for (int i=0;i<TableData.length;i++)\n {\n ID[i]= Integer.parseInt(TableData[i][0]);//converts the data into integer as it was in string\n }\n return ID; //returnd ID array\n }", "public int[] problema(int nsimo) {\n\t\tint[] problema = null;\n\t\t if (nsimo<problemas.size()) {\n\t\t\t ArrayList<Integer> arraylist = problemas.get(new Integer(nsimo));\n\t\t\t problema = new int[arraylist.size()];\n\t\t\t for(int i=0; i<arraylist.size(); i++) {\n\t\t\t\t problema[i] = arraylist.get(i).intValue();\n\t\t\t }\n\t\t }\n\t\t return problema;\n\t}", "public int[] getListOfId() {\r\n\t\tString sqlCommand = \"SELECT Barcode FROM ProductTable\";\r\n\t\tint[] idList = null;\r\n\t\tArrayList<Integer> tmpList = new ArrayList<Integer>();\r\n\t\tint counter = 0;\r\n\t\ttry (Connection conn = this.connect();\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\tResultSet rs = stmt.executeQuery(sqlCommand)) {\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\ttmpList.add(rs.getInt(\"Barcode\"));\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t\tidList = new int[counter];\r\n\t\t\tfor (int i = 0; i < counter; i++) {\r\n\t\t\t\tidList[i] = tmpList.get(i);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"getListOfId: \"+e.getMessage());\r\n\t\t\treturn new int[0]; \r\n\t\t}\r\n\t\treturn idList;\r\n\t}", "public static int[] obtenerpadre(ArrayList<int[]> poblacion, int ttablero, int padre1) {\n int[] padre = new int[ttablero];\n for(int i=0;i<poblacion.size();i++){ //total de fitnes\n // System.out.println(\"sapos qls\"+poblacion.get(i));\n if (i==padre1) {\n //System.out.println(\"padre \"+Arrays.toString(poblacion.get(i)));\n padre=poblacion.get(i);\n } \n //for (int j = 0; j<=ttablero ; j++) {\n // System.out.print(\"padre em vec\"+padre[j]);\n //}\n }\n return padre;\n }", "java.util.List<java.lang.Integer> getRareIdList();", "java.util.List<java.lang.Integer> getRareIdList();", "public int[] getIDs(){\r\n\t\tint[] id = new int[Config.MAX_CLIENTS];\r\n\t\tfor(int i=0; i< Config.MAX_CLIENTS;i++){\r\n\t\t\tid[i] = clients[i].getID();\r\n\t\t}\r\n\t\treturn id;\r\n\t}", "public int getIdPermisos()\r\n\t{\r\n\t\treturn idPermisos;\r\n\t}", "public static String[] obtenerIds() throws IOException{\n\t\tint numOfLines=countLines(HOSPITALES_DATA_FILE) ;\n\t String[] idsArr = new String[numOfLines];\n\t BufferedReader fileReader = null;\n fileReader = new BufferedReader(new FileReader(HOSPITALES_DATA_FILE));\n String line = \"\";\n int counter = 0;\n while ((line = fileReader.readLine()) != null)\n {\n String[] tokens = line.split(DELIMITER);\n \n idsArr[counter] = tokens[0];\n counter++;\n }\t\t\t\n fileReader.close();\n\t\treturn idsArr; \n\t}", "public int[] getAllPids(Activity context) throws Exception {\n ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n List<ActivityManager.RunningServiceInfo> pids = activityManager.getRunningServices(Integer.MAX_VALUE);\n int processid = 0;\n int[] retVal = new int[pids.size()];\n Log.d(\"feature\", \"pid size: \" + pids.size());\n for (int i = 0; i < pids.size(); i++) {\n ActivityManager.RunningServiceInfo info = pids.get(i);\n retVal[i] = info.pid;\n Log.d(\"feature\", \"pid: \" + info.service);\n\n return (retVal);\n }\n return(null);\n }", "String[] _truncatable_ids();", "public ArrayList<Integer> getGroupMembersIds(int idGroupe) throws RemoteException {\r\n\t\t\t\r\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\t\t\r\n\t\t String requete = \"SELECT ga_idEtudiant FROM GroupeAssoc WHERE ga_idGroupe =\" + idGroupe;\r\n\t\t \r\n\t\t System.out.println(\"requete : \" + requete);\r\n\t\t \r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \t\r\n\t\t \tlist.add(Integer.parseInt((data.getColumnValue(\"ga_idEtudiant\"))));\r\n\t\t }\r\n\t\t \r\n\t\t return list;\r\n\t\t}", "public int[] getCurrentProfileIds() {\n int[] iArr;\n synchronized (this.mLock) {\n iArr = this.mCurrentProfileIds;\n }\n return iArr;\n }", "java.util.List<java.lang.Integer> getOtherIdsList();", "public String [ ] getNombresProteinas() {\n int cantidad = 0;\n \n for(int i = 0; i < this.ingredientes.size(); i++) {\n \n if(this.ingredientes.get(i) instanceof Proteina) {\n cantidad++;\n }\n }\n\n String arreglo[] = new String[cantidad];\n \n for(int i = 0; i < cantidad; i ++) {\n arreglo[i] = this.ingredientes.get(i).toString();\n }\n \n return arreglo;\n }", "public int[] CreatePermutations(int[] seq){\n \n return seq;\n }", "public static int[] generaValoresAleatorios() {\n\t\treturn new Random().ints(100, 0, 1000).toArray();\n\t}", "public String [] _truncatable_ids()\r\n {\r\n return _ids_list;\r\n }", "public List<Integer> getIdPOIs(String evenement) {\n List<Integer> uniqueIdPOIs = EMPTY_LIST;\n SQLiteDatabase db = openDatabaseSafe();\n if (db != null) {\n String columnName = \"ID_POI\";\n String conditionString = \"ID = \" + this._visiteID + \" AND EVENEMENT = \\\"\" + evenement + \"\\\"\";\n String query = \"Select \" + columnName + \" FROM \" + VISITES_TABLE_NAME + \" WHERE \" + conditionString;\n Cursor cursor = safeQuery(db, query);\n if (cursor != null) {\n List<Integer> idPOIs = POIsDBHandler.queryResultToList(cursor, columnName);\n Set<Integer> idPOIsSet = new HashSet<Integer>(idPOIs); //remove duplicates\n uniqueIdPOIs = new ArrayList<Integer>(idPOIsSet);\n }\n db.close();\n }\n return uniqueIdPOIs;\n }", "public static int[] permutation()\n\t{\n\t\tint[] permutation = new int[DEFAULT_ARRAY_SIZE];\n\t\tRandom random = new Random();\n\t\tfor (int index = 0; index < permutation.length; index++)\n\t\t{\n\t\t\tpermutation[index] = index + 1;\n\t\t}\n\t\tfor (int index = 0; index < permutation.length; index++)\n\t\t{\n\t\t\tint randomIndex = random.nextInt(DEFAULT_ARRAY_SIZE);\n\t\t\tint holder = permutation[randomIndex];\n\t\t\tpermutation[randomIndex] = permutation[index];\n\t\t\tpermutation[index] = holder;\n\t\t}\n\t\treturn permutation;\n\t}", "public String[] ListarDPIMedicos(){\r\n int cantidad=0;\r\n Guardia s;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n s= medicosenfermeras.get(i);\r\n if (s instanceof Medico) {\r\n cantidad++;\r\n }\r\n }\r\n \r\n String[] DPIMedicos= new String[cantidad];\r\n Guardia t;\r\n int m=0;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n t=medicosenfermeras.get(i);\r\n if (t instanceof Medico) {\r\n DPIMedicos[m]=t.getNit();\r\n m++;\r\n }\r\n }\r\n \r\n return DPIMedicos;\r\n }", "public String[] ListarDPIEnfermeras(){\r\n int cantidad=0;\r\n Guardia s;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n s= medicosenfermeras.get(i);\r\n if (s instanceof Enfermera) {\r\n cantidad++;\r\n }\r\n }\r\n \r\n String[] DPIEnfermeras= new String[cantidad];\r\n Guardia t;\r\n int m=0;\r\n for (int i = 0; i < medicosenfermeras.size(); i++) {\r\n t=medicosenfermeras.get(i);\r\n if (t instanceof Enfermera) {\r\n DPIEnfermeras[m]=t.getNit();\r\n m++;\r\n }\r\n }\r\n \r\n return DPIEnfermeras;\r\n }", "private ArrayList<Parametro> getParametros(int pregunta){\n ArrayList<Parametro> arrayListParametros = new ArrayList<>();\n try{\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"ServiceQualificationPU\");\n EntityManager em = emf.createEntityManager();\n\n String jpql =\"SELECT p FROM ParametroInterrogante pi \"\n + \"JOIN pi.interrogante i \"\n + \"JOIN pi.parametro p \"\n + \"WHERE p.estado='a' AND i.estado='a' \"\n + \"AND i.idinterrogante = :pregunta\";\n\n Query query = em.createQuery(jpql);\n query.setParameter(\"pregunta\", pregunta);\n List<Parametro> list = query.getResultList();\n for(Parametro p : list){\n arrayListParametros.add(p);\n }\n\n em.close();\n emf.close();\n }catch(Exception e){\n System.out.println(\"ERROR: \"+e);\n this.Error = \"ERROR: \"+e;\n }\n return arrayListParametros;\n }", "public ArrayList<Integer> getIdGroupe (int idProjet) throws RemoteException {\r\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\t\t\r\n\t\t String requete = \"Select a_idgroupe from association where a_idprojet = \" + idProjet;\r\n\t\t System.out.println(\"requete : \" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t String[] line = null;\r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \tline = data.nextElement();\r\n\t\t \tlist.add(Integer.parseInt(line[1]));\r\n\t\t }\r\n\r\n\t\t return list;\t\r\n\t\t}", "public Integer[] createPermutation() {\n Integer[] value = createSortedArray();\n\n for (int c = 0; c < 5; c++) {\n for (int i = 0; i<value.length; i++) {\n int j = (int)(Math.random()*value.length);\n int temp = value[i];\n value[i] = value[j];\n value[j] = temp;\n }\n }\n \n return value;\n }", "List<Long> getTransmissionIds();", "public Long[] getQueryIDs(){\n\t\treturn DataStructureUtils.toArray(ids_ranks.keySet(), Long.class);\n\t}", "private static int[] getMeRandomArray(int length) {\n\t\tint array[] = new int[length];\n\t\tint min = -1000;\n\t\tint max = 1000;\n\t\tfor(int i = 0; i < length; i++) {\n\t\t\tarray[i] = (int)(Math.random() * ((max - min) + 1)) + min;\n\t\t}\n\t\treturn array;\n\t}", "public static int[]reparacion(int[] hijo,int ttablero){\n int []hijor=new int[ttablero];\n int falta;\n int cont=0;\n int aux;\n int repite;\n ArrayList<Integer> repetidos = new ArrayList<>();\n ArrayList<Integer> faltantes = new ArrayList<>();\n for(int i=0;i<=ttablero;i++){\n aux=hijo[i];\n for(int j=0;j<=ttablero;j++){\n if(aux==hijo[j]){\n cont=cont+1;\n // System.out.println(\"contador \"+cont+\" se repite el hijo \" +hijo[j]);\n }\n if (cont>=2) {\n repite=hijo[j];\n repetidos.add(repite);\n // System.out.println(\"se repite el numero \"+repite );\n cont=0; \n } \n \n }\n cont=0; \n }\n \n //limpiar de repetidos el array repetidos\n for (int i = 0; i<repetidos.size(); i++) {\n int auxi=repetidos.get(i);\n //System.out.println(\"aux \"+ auxi );\n for (int j = i+1;j<repetidos.size() ; j++) {\n if (auxi==repetidos.get(j)) {\n //System.out.println(\"repetidos \"+ repetidos.get(i) );\n repetidos.remove(j);\n \n }\n \n }\n \n }\n \n for (int i = 0; i <repetidos.size(); i++) {\n // System.out.println(\"repetidos finalmente \"+ repetidos.get(i) );\n }\n int a=0;\n for (int i = 0; i <=ttablero; i++) {\n int auxx=i;\n for (int j = 0; j<=ttablero; j++) {\n \n }\n }\n int [] auscio=new int [ttablero];\n for (int i = 0; i <ttablero; i++) {\n auscio[i]=0;\n // System.out.println(\"auscio \"+auscio[i]);\n }\n \n for (int i = 0; i <ttablero; i++) {\n // int amp=i;\n for (int j = 0; j<ttablero; j++) {\n if (i==hijo[j]) {\n auscio[i]=1;\n }\n }\n }\n \n for (int i = 0; i <ttablero; i++) {\n // System.out.print(\"\"+auscio[i]);\n }\n for (int i = 0; i <ttablero; i++) {\n if (auscio[i]==0) {\n // System.out.println(\"falta el numero \"+(i));\n faltantes.add(i);\n }\n }\n \n return hijor;\n }", "public String[] getComplementoPreguntas(String idPregunta){\n //Creamos el conector de bases de datos\n\n AdmiSQLiteOpenHelper admin = new AdmiSQLiteOpenHelper(this, \"administracion\", null, 1 );\n // Abre la base de datos en modo lectura y escritura\n SQLiteDatabase BasesDeDatos = admin.getWritableDatabase();\n Cursor consultaId= BasesDeDatos.rawQuery(\"SELECT complemento FROM t_complemento WHERE co_pregunta = \" + idPregunta, null);\n\n String[ ] sComplemento = new String[20];\n try {\n if (consultaId != null) {\n consultaId.moveToFirst();\n int indice = 0;\n\n do {\n //Asignamos el valor en nuestras variables para usarlos en lo que necesitemos\n sComplemento[indice] = consultaId.getString(consultaId.getColumnIndex(\"complemento\"));\n indice ++;\n\n } while ( consultaId.moveToNext() );\n\n\n }else{\n System.out.println( \" ------------- No hay datos ------------------\" );\n System.out.println();\n }\n\n } catch ( Exception e ) {\n System.err.println( e.getClass().getName() + \": \" + e.getMessage() );\n System.exit(0);\n }\n\n consultaId.close();\n BasesDeDatos.close();\n return sComplemento;\n }", "public List<PedidoIndividual> obtenerNuevosPedidosPorPedidoMesa(Long idPedido) throws QRocksException;", "public RelacionConceptoEmbalaje[] findWhereIdRelacionEquals(int idRelacion) throws RelacionConceptoEmbalajeDaoException;", "public Integer[] createArray() {\n Integer[] value = new Integer[defaultLaenge];\n\n for (int i = 0; i < value.length; i++) {\n value[i] = (int)(value.length*Math.random());\n }\n\n return value;\n }", "public static int[] generateRandomArray(){\n return new Random().ints(0, 100000)\n .distinct()\n .limit(1000).toArray();\n }", "private static Integer[] listaCategoriasCadastradas() throws Exception {\r\n int count = 0;\r\n ArrayList<Categoria> lista = arqCategorias.toList();\r\n Integer[] idsValidos = null; //Lista retornando os ids de categorias validos para consulta\r\n if (!lista.isEmpty()) {\r\n idsValidos = new Integer[lista.size()];\r\n System.out.println(\"\\t** Lista de categorias cadastradas **\\n\");\r\n for (Categoria c : lista) {\r\n System.out.println(c);\r\n idsValidos[count] = c.getID();\r\n count++;\r\n }\r\n }\r\n return idsValidos;\r\n }", "java.util.List<java.lang.Long> getIdsList();", "private static int[] calculateLotto() {\r\n int [] lotto = new int[LOTTERY_JACKPOT];\r\n int [] numbers = new int[LOTTERY_END];\r\n\r\n for (int i = 0; i < LOTTERY_END; i++) {\r\n numbers[i] = i;\r\n }\r\n\r\n int index = Math.getRandom(0, numbers.length - 1);\r\n\r\n for (int i = 0; i < lotto.length; i++) {\r\n lotto[i] = numbers[index];\r\n\r\n numbers = Arrays.removeIndex(numbers, index);\r\n\r\n index = Math.getRandom(0, numbers.length - 1);\r\n }\r\n\r\n return lotto;\r\n }", "private static int[] calculateLotto() {\r\n int random;\r\n int[] array = new int[ArraySize];\r\n for (int i = 0; i < array.length; i++) {\r\n random = Math.getRandom(1, ArrayMax);\r\n if (!Arrays.contains(random, array))\r\n array[i] = random;\r\n else\r\n i--;\r\n }\r\n return array;\r\n }", "public int[] getDependLineIDArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(DEPENDLINEID$26, targetList);\n int[] result = new int[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getIntValue();\n return result;\n }\n }", "public String[] getPreguntasNivelCategoria(String idCategoria, String idNivel, String IndicePreg){\n //Creamos el conector de bases de datos\n AdmiSQLiteOpenHelper admin = new AdmiSQLiteOpenHelper(this, \"administracion\", null, 1 );\n // Abre la base de datos en modo lectura y escritura\n SQLiteDatabase BasesDeDatos = admin.getWritableDatabase();\n Cursor consultaId = BasesDeDatos.rawQuery(\"SELECT id, co_respuesta, co_categoria, co_nivel, pregunta, respuesta FROM t_preguntas WHERE co_categoria = \"+idCategoria+\" AND co_nivel = \" + idNivel , null);\n\n String contTotalPreg = getPreguntasTotal( idCategoria, idNivel );\n\n\n //Declaro arreglos. todo aqui debo definir el total de indices\n Integer[ ] iPregunta = new Integer[ Integer.parseInt(contTotalPreg) ];\n String[ ] sPreguntas = new String[ Integer.parseInt(contTotalPreg) ];\n String[ ] sRespuesta = new String[ Integer.parseInt(contTotalPreg) ];\n String[ ] sComplemento = new String[2];\n\n try {\n\n if (consultaId != null) {\n consultaId.moveToFirst();\n int indice = 0;\n\n do {\n // todo Asignamos el valor en nuestras variables para usarlos en lo que necesitemos\n iPregunta[indice] = consultaId.getInt(consultaId.getColumnIndex(\"id\"));\n sPreguntas[indice] = consultaId.getString(consultaId.getColumnIndex(\"pregunta\"));\n sRespuesta[indice] = consultaId.getString(consultaId.getColumnIndex(\"respuesta\"));\n indice++;\n\n\n } while ( consultaId.moveToNext() );\n\n //Todo -> Aqui PRegunta // Establecer Pregunta y Respuestas Dinamico todo\n labelPregunta.setText( sPreguntas[ Integer.parseInt( IndicePreg ) ] );\n\n int numero = (int)( Math.random()*4+1 );\n\n //todo aqui las preguntas complementarias Mosca aqui idea algo crazy\n sComplemento = getComplementoPreguntas( Integer.toString( iPregunta[Integer.parseInt( IndicePreg )] ) );\n\n if ( numero == 1 ){\n btnOpcion1.setText( sRespuesta[ Integer.parseInt( IndicePreg ) ] );\n btnOpcion1.setId( iPregunta[Integer.parseInt( IndicePreg )] );\n\n btnOpcion2.setText( sComplemento[0] );\n btnOpcion2.setId( - iPregunta[Integer.parseInt( IndicePreg )] );\n btnOpcion3.setText( sComplemento[1] );\n btnOpcion3.setId( - iPregunta[Integer.parseInt( IndicePreg )] );\n btnOpcion4.setText( sComplemento[2] );\n btnOpcion4.setId( - iPregunta[Integer.parseInt( IndicePreg )] );\n\n }\n\n if ( numero == 2 ){\n btnOpcion2.setText( sRespuesta[ Integer.parseInt( IndicePreg ) ] );\n btnOpcion2.setId( iPregunta[Integer.parseInt( IndicePreg )] );\n\n btnOpcion1.setText( sComplemento[0] );\n btnOpcion1.setId( - iPregunta[Integer.parseInt( IndicePreg )] );\n btnOpcion3.setText( sComplemento[1] );\n btnOpcion3.setId( - iPregunta[Integer.parseInt( IndicePreg )] );\n btnOpcion4.setText( sComplemento[2] );\n btnOpcion4.setId( - iPregunta[Integer.parseInt( IndicePreg )] );\n\n }\n\n if ( numero == 3 ){\n btnOpcion3.setText( sRespuesta[ Integer.parseInt( IndicePreg ) ] );\n btnOpcion3.setId( iPregunta[Integer.parseInt( IndicePreg )] );\n\n btnOpcion1.setText( sComplemento[0] );\n btnOpcion1.setId( - iPregunta[Integer.parseInt( IndicePreg )] );\n btnOpcion2.setText( sComplemento[1] );\n btnOpcion2.setId( - iPregunta[Integer.parseInt( IndicePreg )] );\n btnOpcion4.setText( sComplemento[2] );\n btnOpcion4.setId( - iPregunta[Integer.parseInt( IndicePreg )] );\n }\n\n if ( numero == 4 ){\n btnOpcion4.setText( sRespuesta[ Integer.parseInt( IndicePreg ) ] );\n btnOpcion4.setId( iPregunta[Integer.parseInt( IndicePreg )] );\n\n btnOpcion1.setText( sComplemento[0] );\n btnOpcion1.setId( - iPregunta[Integer.parseInt( IndicePreg )] );\n btnOpcion2.setText( sComplemento[1] );\n btnOpcion2.setId( - iPregunta[Integer.parseInt( IndicePreg )] );\n btnOpcion3.setText( sComplemento[2] );\n btnOpcion3.setId( - iPregunta[Integer.parseInt( IndicePreg )] );\n\n }\n\n }else{\n System.out.println( \" ------------- No hay datos ------------------\" );\n System.out.println();\n }\n\n } catch ( Exception e ) {\n System.err.println( e.getClass().getName() + \": \" + e.getMessage() );\n System.exit(0);\n }\n\n //Cerramos el cursor y la conexion con la base de datos\n consultaId.close();\n BasesDeDatos.close();\n\n return sPreguntas;\n }", "List<Long> getPouncees();", "public int[] generatePrimes(int limit);", "public ArrayList getNumberCaroserii() {\n c = db.rawQuery(\"select caroserie_id from statistici\" , new String[]{});\n ArrayList lista = new ArrayList();\n while (c.moveToNext()) {\n int id=c.getInt(0);\n lista.add(id);\n }\n return lista;\n }", "public List<ProyeccionKid> getListaProyeccionKids(int idOrganizacion, Producto producto, Bodega bodega, Date fechaDesde, Date fechaHasta)\r\n/* 34: */ {\r\n/* 35:62 */ List<ProyeccionKid> listaProyeccionKid = new ArrayList();\r\n/* 36:63 */ for (ProductoMaterial productoMaterial : getListaProductoMaterial(0, null, null, null, null))\r\n/* 37: */ {\r\n/* 38:64 */ ProyeccionKid proyeccionKid = new ProyeccionKid();\r\n/* 39:65 */ proyeccionKid.setProductoMaterial(productoMaterial);\r\n/* 40:66 */ proyeccionKid.setStock(getStock(productoMaterial.getMaterial(), null, null, null));\r\n/* 41:67 */ proyeccionKid.setSaldo(proyeccionKid.getStock().divide(productoMaterial.getCantidad(), RoundingMode.HALF_UP));\r\n/* 42:68 */ listaProyeccionKid.add(proyeccionKid);\r\n/* 43: */ }\r\n/* 44:70 */ return listaProyeccionKid;\r\n/* 45: */ }", "public static int[] getIDs() {\n int[] res = new int[crossbows.length];\n for (int i = 0; i < crossbows.length; i++) {\n res[i] = (int)crossbows[i][0];\n }\n return res;\n }", "private ArrayList<String> obtenerIds(ArrayList<String> values){\n\t\tArrayList<String> ids = new ArrayList<>();\n\t\tfor(String valor : values){\n\t\t\tids.add(postresId.get(valor));\n\t\t}\n\t\treturn ids;\n\t}", "public List<ReciboPension> buscarRecibosPendientesAlumno(\tlong idAlumno) {\n\t\treturn (List<ReciboPension>)entityManager.createQuery(\"select r from ReciboPension r where r.fechaPago is null and r.alumno.idPersona = :id\")\n \t\t.setParameter(\"id\", idAlumno).getResultList();\n\t\t}", "private List<Long> getSelectedUserMessageIds() {\n List<Long> idList = new ArrayList<Long>();\n for (Iterator it = ((MultiSelectionModel)\n grid.getSelectionModel()).getSelectedSet().iterator(); it.hasNext();) {\n TableDisplayUserMessage detail = (TableDisplayUserMessage) it.next();\n idList.add(detail.getUserMessageId());\n }\n return idList;\n }", "private static List<List<Integer>> getPermutation(List<Integer> array){\n List<List<Integer>> result = new ArrayList<List<Integer>>();\n getPermutation(array,new ArrayList<>(),result);\n return result;\n }", "public static int[]reparacion2(int[] hijo,int ttablero){\n int aux;\n int cont=0;\n int[] hijor=hijo;\n for(int i=0;i<=ttablero;i++){\n aux=hijo[i];\n for(int j=0;j<=ttablero;j++){\n if(aux==hijo[j]){\n cont=cont+1;\n // System.out.println(\"contador \"+cont+\" se repite el hijo \" +hijo[j]);\n }\n if (cont>=2) {\n hijor= RandomizeArray(0, ttablero); \n } \n \n }\n cont=0; \n }\n \n \n return hijor;\n }", "static int[] populateArray(int lenght) {\n\t\tint[] A = new int[lenght];\n\t\t\n\t\tfor(int i=0; i < A.length; i++) {\n\t\t\tA[i] = (int)(Integer.MAX_VALUE * Math.random());\n\t\t}\n\t\t\n\t\treturn A;\n\t}", "public int[] generarSecuencia(int cantidad){\n int secuencia[]= new int[cantidad];\n\n for(int i=0;i<cantidad;i++){\n secuencia[i]= randRange(1,8);\n }\n return secuencia;\n }", "public List getAllIds();", "public java.lang.Object[] getIdsAsArray()\r\n {\r\n return (ids == null) ? null : ids.toArray();\r\n }", "private List<Integer> getPreservationActionPlanIds(Document doc) {\n // Get data elements that have data and a number as content\n XPath xpath = doc.createXPath(\"//plato:preservationActionPlan[number(.) = number(.)]\");\n\n Map<String, String> namespaceMap = new HashMap<String, String>();\n namespaceMap.put(\"plato\", PlanXMLConstants.PLATO_NS);\n xpath.setNamespaceURIs(namespaceMap);\n\n @SuppressWarnings(\"unchecked\")\n List<Element> elements = xpath.selectNodes(doc);\n\n List<Integer> objectIds = new ArrayList<Integer>(elements.size());\n for (Element element : elements) {\n objectIds.add(Integer.parseInt(element.getStringValue()));\n }\n return objectIds;\n }", "public Object[] pesquisarIntervaloNumeroQuadraPorRota(Integer idRota) throws ErroRepositorioException ;", "static int[] permutationEquation(int[] p) {\n int[] ret = new int[p.length];\n HashMap<Integer,Integer> values = new HashMap<>();\n for(int i = 0; i < p.length; i++){\n values.put(p[i],i+1);\n }\n for(int i = 1; i <=p.length; i++){\n int index1 = values.get(i);\n int index2 = values.get(index1);\n ret[i-1] = index2;\n }\n return ret;\n }", "private ArrayList<Integer> getProductIds(JSONArray jsonArray) {\n\n ArrayList<Integer> productIds = new ArrayList<>();\n\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n int productId = jsonArray.getInt(i);\n productIds.add(productId);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n return productIds;\n }", "private TreeSet<Long> getIds(Connection connection) throws Exception {\n\t\tTreeSet<Long> result = new TreeSet<Long>();\n\t\tPreparedStatement ps = null;\n\t\ttry {\n\t\t\tps = connection\n\t\t\t\t\t.prepareStatement(\"select review_feedback_id from \\\"informix\\\".review_feedback\");\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tresult.add(rs.getLong(1));\n\t\t\t}\n\t\t} finally {\n\t\t\tps.close();\n\t\t}\n\t\treturn result;\n\t}", "public int[] array1To100() {\n int[] sirDeLa1La100 = new int[100];\n for (int i = 0; i < sirDeLa1La100.length; i++) {\n sirDeLa1La100[i] = i + 1;\n }\n return sirDeLa1La100;\n }", "public NominaPuesto[] findWhereIdEmpresaEquals(int idEmpresa) throws NominaPuestoDaoException;", "public List<Long> getTodosComputadoresId()throws Exception{\n\t\t\n\t\tList<Long> ids=new ArrayList<Long>();\n\t\tString sql = \"select codigo from \" + TABELA;\n\n\t\tPreparedStatement stmt = connection.prepareStatement(sql);\n\n\t\tResultSet rs = stmt.executeQuery();\n\n\t\twhile (rs.next()){\n\t\t\tids.add(rs.getLong(1));\n\t\t}\n\n\t\treturn ids;\n\t}", "public Cliente[] findWherePerioricidadEquals(int perioricidad) throws ClienteDaoException;", "public static String[] datosPorId(String numOfId) throws IOException{\n\t String[] datosPorIdArr = null;\n\t BufferedReader fileReader = null;\n fileReader = new BufferedReader(new FileReader(HOSPITALES_DATA_FILE));\n String line = \"\";\n String[] lineaArr;\n while ((line = fileReader.readLine()) != null)\n {\n \tlineaArr = line.split(DELIMITER);\n \tif (numOfId.equals(lineaArr[0])) {\n \t\tdatosPorIdArr= lineaArr;\n \t}\n }\t\t\t\n fileReader.close();\n\t\treturn datosPorIdArr; \n\t}", "public static String[][] leerPedidos() {\n int cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM pedido\");\n while (result.next()) {\n cont++;\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //matriz para guardar los registros\n String[][] reporte = new String[cont][11];\n cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM pedido\");\n while (result.next()) {\n //leo los registros y los guardo cada uno en un renglon de la matriz \n reporte[cont][0] = result.getString(1);\n reporte[cont][1] = result.getString(2);\n reporte[cont][2] = result.getString(3);\n reporte[cont][3] = result.getString(4);\n reporte[cont][4] = result.getString(5);\n reporte[cont][5] = result.getString(6);\n reporte[cont][6] = result.getString(7);\n reporte[cont][7] = result.getString(8);\n reporte[cont][8] = result.getString(9);\n reporte[cont][9] = result.getString(10);\n reporte[cont][10] = result.getString(11);\n cont++;\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //regreso reporte completo\n return reporte;\n }", "public List<Pair<Integer, Integer>> getArray(){\n return qtadePorNum;\n }", "public List<Perguntas> getPerguntas(String servico) {\r\n String idSolicitacao = \"\";\r\n List<Perguntas> perguntas = new ArrayList<>();\r\n\r\n String sql = \"Select\\n\"\r\n + \" perguntas.Id_Perguntas,\\n\"\r\n + \" perguntas.pergunta,\\n\"\r\n + \" perguntas.Servico_id_servico,\\n\"\r\n + \" solicitacoes.id_solicitacao\\n\"\r\n + \"FROM \\n\"\r\n + \"\tpid \\n\"\r\n + \"\\n\"\r\n + \"INNER JOIN solicitacoes on (pid.cod_pid= solicitacoes.PID_cod_pid)\\n\"\r\n + \" INNER JOIN servico on\t(solicitacoes.Servico_id_servico=servico.id_servico)\\n\"\r\n + \" INNER JOIN perguntas on \t(servico.id_servico=perguntas.Servico_id_servico)\\n\"\r\n + \" WHERE solicitacoes.em_chamado = 3 and servico.id_servico = \" + servico + \";\";\r\n\r\n stmt = null;\r\n rs = null;\r\n\r\n try {\r\n stmt = conn.createStatement();\r\n rs = stmt.executeQuery(sql);\r\n while (rs.next()) {\r\n Perguntas p = new Perguntas();\r\n\r\n p.setIdPerguntas(rs.getInt(1));\r\n p.setIdServico(rs.getInt(3));\r\n p.setPergunta(rs.getString(2));\r\n idSolicitacao = rs.getString(4);\r\n perguntas.add(p);\r\n }\r\n mudaStatus(idSolicitacao);\r\n\r\n return perguntas;\r\n\r\n } catch (SQLException | ArrayIndexOutOfBoundsException ex) {\r\n Logger.getLogger(SimpleQueries.class\r\n .getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return perguntas;\r\n }", "private Long devuelveProyectoCarreraId(List<ProyectoCarreraOferta> proyectoCarreras, ProyectoCarreraOferta pc) {\r\n Long var = 0L;\r\n for (ProyectoCarreraOferta pco : proyectoCarreras) {\r\n if (pco.getCarreraId().equals(pc.getCarreraId())) {\r\n var = pco.getId();\r\n break;\r\n }\r\n }\r\n return var;\r\n }", "public List<ReciboPension> buscarRecibosPendientesDependientes(long idPersona) {\n\t\treturn (List<ReciboPension>)entityManager.createQuery(\"\tselect r from ReciboPension r where r.fechaPago is null and r.alumno.idPersona\tin ( select a.idPersona from Apoderado ap inner join ap.alumnos a \twhere ap.idPersona = :id ) \")\n \t\t.setParameter(\"id\", idPersona).getResultList();\n\t}", "private Integer[] mantieniAbilitati(int da, int a){\n List<Integer> caselleDisabilitate = new ArrayList<>();\n for (int i = 0; i < listaCaselle.size(); i++) {\n if(!listaCaselle.get(i).isDisattiva() && (i<da || i>a)) {\n listaCaselle.get(i).disabilita();\n caselleDisabilitate.add(i);\n }\n }\n return caselleDisabilitate.toArray(new Integer[caselleDisabilitate.size()]);\n }", "private int[] removeDuplicate() {\n\n\t\t//Add int array elements to HashSet\n\t\tSet<Integer> temp = new HashSet<Integer>();\n\t\t\n\t\tfor(int num : randomIntegers){\n\t\t\ttemp.add(num);\n\t\t}\n\n\t\t//convert LinkedHashSet to integer array\n\t\tint[] uniqueNumbers = new int[temp.size()];\n\t\tint i = 0;\n\t\t\n\t\tfor (Iterator<Integer> iterator = temp.iterator(); iterator.hasNext();) {\n\t\t\tuniqueNumbers[i++] = iterator.next();\n\t\t}\n\n\t\treturn uniqueNumbers;\n\t}", "public List<Integer> get_valid_ids(String table) {\n //table does not exist\n if (!get_table_names().contains(table) && !table.equals(\"relationship\")) {\n throw new RuntimeException(\"Table does not exist.\");\n }\n\n\n LinkedList<Integer> valid_ids = new LinkedList<>();\n String sql = \"select id from \" + table;\n ResultSet resultSet = execute_statement(sql, true); //get all ids from the table\n\n try {\n while (resultSet.next()) {\n int i = resultSet.getInt(\"id\"); //store all ids\n valid_ids.add(i);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return valid_ids;\n }", "private String[] createDvdListWithIds() {\n if (dao.listAll().size() > 0) {\n //create string array set to the size of the dvds that exist\n String[] acceptable = new String[dao.listAll().size()];\n //index counter\n int i = 0;\n //iterate through dvds that exist\n for (DVD currentDVD : dao.listAll()) {\n //at the index set the current Dvd's id, a delimeter, and the title\n acceptable[i] = currentDVD.getId() + \", \" + currentDVD.getTitle();\n //increase the index counter\n i++;\n }\n //return the string array\n return acceptable;\n }\n return null;\n }", "public void generateIDs() {\n Random randomGenerator = new Random();\n for(int i = 0; i < identificationNumbers.length; i++) {\n for(int j = 0; j < identificationNumbers[i].length; j++)\n identificationNumbers[i][j] = randomGenerator.nextInt(2);\n }\n }", "private int[] makeRandomList(){\n\t\t\n\t\t//Create array and variables to track the index and whether it repeats\n\t\tint[] list = new int[ 9 ];\n\t\tint x = 0;\n\t\tboolean rep = false;\n\t\t\n\t\t//Until the last element is initialized and not a repeat...\n\t\twhile( list[ 8 ] == 0 || rep)\n\t\t{\n\t\t\t//Generate a random number between 1 and 9\n\t\t\tlist[ x ]= (int)(Math.random()*9) + 1;\n\t\t\trep = false;\n\t\t\t\n\t\t\t//Check prior values to check for repetition\n\t\t\tfor(int y = 0; y < x; y++)\n\t\t\tif( list[x] == list[y] ) rep = true;\n\t\t\t\n\t\t\t//Move on to the next element if there is no repeat\n\t\t\tif( !rep ) x++;\n\t\t}\n\t\t\n\t\t//return the array\n\t\treturn list;\n\t}", "java.util.List<java.lang.Long> getParticipantsList();", "private int[] buscarMenores(ArrayList<ArbolCod> lista){\n int temp;\n int m1=1;\n int m2=0;\n float vm1,vm2,aux;\n \n vm1=lista.get(m1).getProbabilidad();\n vm2=lista.get(m2).getProbabilidad();\n if (vm1<=vm2){\n temp=m1;\n m1=m2;\n m2=temp;\n } \n for (int i=2;i<lista.size();i++){\n vm1=lista.get(m1).getProbabilidad();\n vm2=lista.get(m2).getProbabilidad();\n aux=lista.get(i).getProbabilidad();\n if (aux<=vm2){\n m1=m2;\n m2=i;\n } \n else if (aux<=vm1){\n m1=i;\n }\n }\n int[] res=new int[2];\n res[0]=m1;\n res[1]=m2;\n return res;\n }", "public List<Integer> getNumeroPavimento(int sitioID) {\n List<Integer> listPavimento = new ArrayList<>();\n query = \"SELECT SitioID, Numero FROM SUELO_PavimentoErosion WHERE SitioID= \" + sitioID;\n Connection conn = LocalConnection.getConnection();\n\n try {\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(query);\n while (rs.next()) {\n listPavimento.add(rs.getInt(\"Numero\"));\n }\n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null,\n \"Error! al obtener los numeros de pavimento de erosion \",\n \"Conexion BD\", JOptionPane.ERROR_MESSAGE);\n return null;\n } finally {\n try {\n conn.close();\n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null, \"Error! al cerrar la base de datos en los numeros de pavimento de erosion \", \"Conexion BD\", JOptionPane.ERROR_MESSAGE);\n }\n }\n listPavimento.add(0, null);\n return listPavimento;\n }", "private int[] removeDuplicatesWithParallelStream() {\n\t return Arrays.stream(randomIntegers).parallel().distinct().toArray();\n\t}", "public String[] getUsuariosInmueble(){\n\t\tint registros=0;\n\t\ttry{\n\t\t\tPreparedStatement statemenet=getConnection().prepareStatement(\"select count(*) as total from usuarios where tipo='A' \");\n\t\t\tResultSet respuesta=statemenet.executeQuery();\n\t\t\trespuesta.next();\n\t\t\tregistros=respuesta.getInt(\"total\");\n\t\t\trespuesta.close();\n\t\t\t\n\t\t}catch(SQLException exception){\n\t\t\tSystem.err.println(exception.getMessage());\n\t\t}\n\t\tString[] usuarios=new String[registros+1];\n\t\ttry{\n\t\t\tPreparedStatement statement=getConnection().prepareStatement(\"select usuario from usuarios where tipo='R' \");\n\t\t\tResultSet respuesta=statement.executeQuery();\n\t\t\trespuesta.next();\n\t\t\tusuarios[0]=respuesta.getString(1);\n\t\t\tstatement=getConnection().prepareStatement(\"select usuario from usuarios where tipo='A' \");\n\t\t\trespuesta=statement.executeQuery();\n\t\t\tint i=1;\n\t\t\twhile(respuesta.next()){\n\t\t\t\tusuarios[i]=respuesta.getString(1);\n\t\t\t\ti++;\n\t\t\t\n\t\t\t}\n\t\t\tstatement.close();\n\t\t}catch(SQLException exception){\n\t\t\tSystem.err.println(exception.getMessage());\n\t\t}\n\t\treturn usuarios;\n\t}", "public static List<Integer> icecreamParlor(int m, List<Integer> arr) {\n\t\tInteger[] res = new Integer[2];\n\t\tHashtable<Integer, Integer> price_index = new Hashtable<>();\n\t\tfor (int i = 0; i < arr.size(); i++) {\n\t\t\tint p1 = arr.get(i);\n\t\t\tint p2 = m - p1;\n\n\t\t\tInteger j = price_index.get(p2);\n\t\t\tif (j != null) {\n\t\t\t\tres[0] = j + 1;\n\t\t\t\tres[1] = i + 1;\n\t\t\t}\n\t\t\tprice_index.put(p1, i);\n\t\t}\n\t\treturn Arrays.asList(res);\n\t}", "private List<Integer> toList(int[] array) {\n List<Integer> list = new LinkedList<Integer>();\n for (int item : array) {\n list.add(item);\n }\n return list;\n }", "public static void main(String[] args) {\n Integer[] arr = {0,1,2};\n HashSet<Integer> IDs = new HashSet<>(Arrays.asList(arr));\n //books.forEach(e-> IDs.add(e.getId()));\n int i=-1;\n while(i<Integer.MAX_VALUE){\n if (!IDs.contains(++i)) {\n System.out.println(i);\n break;\n }\n }\n System.out.println(-1);\n }", "public List<PedidoIndividual> obtenerCuentaPorPedidoMesa(Long idPedido) throws QRocksException;", "private List<String[]> trovaPazienti(Long idMedico) {\r\n\r\n\t\t\tLog.i(\"trovaPazienti\", \"fase iniziale\");\r\n\r\n\t\t\tSoapObject request = new SoapObject(getString(R.string.NAMESPACE),\r\n\t\t\t\t\t\"trovaPazienti\");\r\n\t\t\trequest.addProperty(\"idMedico\", idMedico);\r\n\r\n\t\t\tSoapSerializationEnvelope envelope = new SoapSerializationEnvelope(\r\n\t\t\t\t\tSoapEnvelope.VER10);\r\n\t\t\tenvelope.setAddAdornments(false);\r\n\t\t\tenvelope.implicitTypes = true;\r\n\t\t\tenvelope.setOutputSoapObject(request);\r\n\r\n\t\t\tHttpTransportSE androidHttpTransport = new HttpTransportSE(\r\n\t\t\t\t\tgetString(R.string.URL));\r\n\r\n\t\t\tandroidHttpTransport.debug = true;\r\n\r\n\t\t\tList<String[]> pazienti = new ArrayList<String[]>();\r\n\r\n\t\t\ttry {\r\n\t\t\t\tString soapAction = \"\\\"\" + getString(R.string.NAMESPACE)\r\n\t\t\t\t\t\t+ \"trovaPazienti\" + \"\\\"\";\r\n\t\t\t\tandroidHttpTransport.call(soapAction, envelope);\r\n\r\n\t\t\t\tLog.i(\"trovaPazienti\", \"inviata richiesta\");\r\n\r\n\t\t\t\tSoapPrimitive response = (SoapPrimitive) envelope.getResponse();\r\n\r\n\t\t\t\tLog.i(\"trovaPazienti\", \"ricevuta risposta\");\r\n\r\n\t\t\t\tString responseData = response.toString();\r\n\r\n\t\t\t\tJSONObject obj = new JSONObject(responseData);\r\n\r\n\t\t\t\tLog.i(\"response\", obj.toString());\r\n\r\n\t\t\t\tJSONArray arr = obj.getJSONArray(\"mieiPazienti\");\r\n\r\n\t\t\t\tfor (int i = 0; i < arr.length(); i++) {\r\n\t\t\t\t\tString[] paziente = new String[2];\r\n\t\t\t\t\tJSONObject objPaz = new JSONObject(arr.getString(i));\r\n\t\t\t\t\tpaziente[0] = objPaz.get(\"idPaziente\").toString();\r\n\t\t\t\t\tpaziente[1] = objPaz.get(\"nome\").toString() + \" \"\r\n\t\t\t\t\t\t\t+ objPaz.get(\"cognome\").toString();\r\n\t\t\t\t\tpazienti.add(paziente);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tLog.e(\"WS Error->\", e.toString());\r\n\t\t\t}\r\n\t\t\treturn pazienti;\r\n\t\t}", "public String[] getRequestIds() {\r\n String[] toReturn = new String[0];\r\n\r\n String[] paramFields = {\"item_delimiter\"};\r\n SocketMessage request = new SocketMessage(\"admin\", \"req_list\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\",\r\n paramFields);\r\n request.setValue(\"item_delimiter\", ITEM_DELIMITER);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0221\", \"couldn't get Request IDs\");\r\n } else {\r\n wrapError(\"APIL_0221\", \"couldn't get Request IDs\");\r\n }\r\n return toReturn;\r\n } else {\r\n toReturn = StringTool.stringToArray(response.getValue(\"req_ids\").trim(), ITEM_DELIMITER);\r\n }\r\n\r\n return toReturn;\r\n }", "@Override\n\tpublic Object[] getIds() {\n\t\treturn null;\n\t}", "public int[] podium(){\n //TODO\n int [] pod = new int[3];\n int [] tab = Trier(this.scores);\n int n= this.scores.length;\n pod[2]= tab[n-1];\n pod[1]= tab[n-2];\n pod[0]= tab[n-3];\n return pod;\n \n \n }", "public java.util.List<java.lang.Long>\n getMessageIdList() {\n return java.util.Collections.unmodifiableList(\n instance.getMessageIdList());\n }", "private String[] getImageIDs(String shop)\t{\n\n\t\tString[] empty = new String[0];\n\n\t\timageCounter = 0;\n\n\t\tString allImageIDsString = \"\";\n\n\t\tallImageIDsString = getSharedPrefs(shop.trim(),\"imageIDs\",\"empty\");\n\n\t\tif(!allImageIDsString.equals(\"empty\"))\t{\n\n\t\t\tif(!allImageIDsString.endsWith(\",\"))\t{\n\t\t\t\tallImageIDsString = allImageIDsString.trim()+\",\";\n\t\t\t}\n\n\t\t\tString[] allImageIDs = allImageIDsString.split(\",\");\n\n\t\t\tif(!(allImageIDs.length == 1 && allImageIDs[0].equals(\"\")))\t{\n\t\t\t\treturn allImageIDs;\n\t\t\t} else {\n\t\t\t\treturn empty;\n\t\t\t}\n\n\n\t\t} else {\n\t\t\t\n\t\t\treturn empty;\n\t\t}\n\t}", "public List<ReciboPension> buscarRecibosAlumno(\tlong idAlumno) {\n\t\treturn (List<ReciboPension>)entityManager.createQuery(\"select r from ReciboPension r where r.alumno.idPersona = :id\")\n \t\t.setParameter(\"id\", idAlumno).getResultList();\n\t\t}", "public static int[] makeArray( Random random){\n\t\tint[] arr = new int[10];\n\t\tfor (int i = 0; i < arr.length; i++)\n\t\t\tarr[i] = random.nextInt(200);\n\t\treturn arr;\n\t}", "public int[] setReservacion(String tipo) {\n\tint[] cord = new int[2];\n\tfor(int i = 0;i<mun_pisos;i++) {\n\t\tfor(int y = 0;y<getNum_habitaciones_x_piso(i);y++) {\n\t\t\tif(getEstado(i,y).equals(\"Libre\")&&(getTipo(i, y).equals(tipo))) {//si encuentra una habitacion libre se le asigna y listo\n\t\t\t\tcord[0]=i;\n\t\t\t\tcord[1]=y;\n\t\t\t\treturn cord;\n\t\t\t}\n\t\t}\n\t}\n\treturn cord;\n}", "long getIds(int index);", "private int[] removeDuplicatesWithStream() {\n\t return Arrays.stream(randomIntegers).distinct().toArray();\n\t}" ]
[ "0.62440515", "0.59930605", "0.5889964", "0.5879079", "0.57745045", "0.5751574", "0.5744041", "0.57167983", "0.5698298", "0.56870383", "0.56870383", "0.56601715", "0.565344", "0.55980706", "0.55933356", "0.55741066", "0.55536103", "0.5504376", "0.5498177", "0.5480591", "0.547002", "0.5461651", "0.54605263", "0.5458161", "0.54555017", "0.5446052", "0.5446051", "0.5439227", "0.5433134", "0.5420174", "0.54183483", "0.54041857", "0.5402564", "0.5399592", "0.5397664", "0.5390495", "0.5384041", "0.53714764", "0.5369801", "0.53574806", "0.53500384", "0.5346176", "0.5335158", "0.533217", "0.5324355", "0.5321984", "0.5315608", "0.53040177", "0.53001314", "0.5290133", "0.52814096", "0.5280356", "0.52765876", "0.52646023", "0.5255133", "0.5254362", "0.5252391", "0.5233084", "0.52322847", "0.52267146", "0.5220634", "0.5220467", "0.5213192", "0.52080935", "0.519832", "0.5197886", "0.519372", "0.51917946", "0.517941", "0.5173324", "0.5167015", "0.51584905", "0.514853", "0.5142364", "0.5141767", "0.51290214", "0.51120806", "0.509779", "0.50952935", "0.50868636", "0.508635", "0.508456", "0.5084184", "0.50825727", "0.50815785", "0.5077499", "0.50699997", "0.50690144", "0.50661224", "0.5063611", "0.5055131", "0.5046592", "0.50424874", "0.50421214", "0.50406843", "0.5037981", "0.5031233", "0.5029987", "0.5027683", "0.5022882" ]
0.689262
0
Called just before this Command runs the first time
protected void initialize() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void preRun() {\n super.preRun();\n }", "protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}", "@Override\n public void beforeFirstLogic() {\n }", "public void prePerform() {\n // nothing to do by default\n }", "protected void onFirstUse() {}", "@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}", "@Override\n public void beforeStart() {\n \n }", "protected void initialize() {\n\t\tRobot.firstAutonomousCommandDone = true;\n\t}", "@Override\n\t\t\t\tprotected void onPreExecute()\n\t\t\t\t{\n\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t}", "public void preExecution() throws CommandListenerException;", "public void initDefaultCommand() {\n\t\t// Don't do anything\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "protected void onFirstTimeLaunched() {\n }", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t}", "@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n protected void onPreExecute() {\n\n }", "@Override\n protected void onPreExecute() {\n\n }", "@Override\n protected void onPreExecute() {\n\n }", "@Override\n protected void onPreExecute() {\n\n }", "protected void runBeforeStep() {}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\r\n\t\tprotected void onPreExecute() {\n\t\t}", "@Override\r\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\r\n\r\n\t\t}", "@Override\n protected void onStart() {\n checkUserStatus();\n\n super.onStart();\n }", "void PrepareRun() {\n }", "@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t}", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t}", "@Override\r\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\r\n\t\t\t}", "public void autonomousInit() {\n if (autonomousCommand != null) autonomousCommand.start();\n }", "protected void onPreExecute() {\n\t\t}", "@Override\n protected void onStart() {\n checkUserStatus();\n super.onStart();\n }", "protected void initDefaultCommand() {\n \t\t\n \t}", "@Override\n protected void onPreExecute() {\n }", "@Override\n protected void onPreExecute() {\n }", "@Override\n protected void onPreExecute() {\n }", "@Override\n protected void onPreExecute() {\n }", "@Override\n protected void onPreExecute() {\n }", "@Override\n\t protected void onPreExecute() {\n\t }", "public void initDefaultCommand() {\n \n }", "@Override\n\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t}", "public void autonomousInit() {\n\t\tautonomousCommand.start();\r\n\t}", "@Override\n\t\t\t\t\tpublic void onStart() {\n\n\t\t\t\t\t}", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n\n }", "protected abstract void preRun();", "private Command() {\n initFields();\n }", "public void initDefaultCommand() {\n \n }", "@RequiresApi(api = Build.VERSION_CODES.N)\n public void StartInitial() {\n model.StartInitial();\n\n // Add any code required\n\n }", "public void onStart() {\n /* do nothing - stub */\n }", "@Override\n protected void startUp() {\n }", "@Override\r\n\tprotected void onPreExecute() {\n\t}", "@Override\n public void initDefaultCommand() \n {\n }", "@Override\n protected void onPreExecute()\n {\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n\n super.onPreExecute();\n\n }", "@Override\r\n protected void onPreExecute() {\n super.onPreExecute();\r\n }", "@Override\r\n\tpublic void preCheck(CheckCommand checkCommand) throws Exception {\n\r\n\t}", "public void preInstallHook() {\n }", "public void initDefaultCommand() {\n\t}", "public void startup() {\n neutral();\n }", "@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\t}", "@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\t}", "@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\t}", "@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\n\t}", "@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\n\t}", "@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t}", "public void onStart() {\n super.onStart();\n getStockVerification();\n }", "@Override\n public void onStart() {\n \n }", "@Override\n public void onStart() {\n \n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n }" ]
[ "0.71116775", "0.6540082", "0.643276", "0.64309984", "0.6406235", "0.63530433", "0.6307191", "0.62521607", "0.6246859", "0.6240541", "0.61669374", "0.6162758", "0.612669", "0.612669", "0.612669", "0.612669", "0.612669", "0.6106636", "0.60843927", "0.60843927", "0.6078098", "0.6078098", "0.6067516", "0.6067516", "0.6067516", "0.6067516", "0.606738", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.60612917", "0.6057326", "0.60445184", "0.60395783", "0.6038108", "0.60342497", "0.6029028", "0.6028095", "0.6011726", "0.60035837", "0.6001935", "0.5994244", "0.5990546", "0.5988089", "0.5988089", "0.5988089", "0.5988089", "0.5988089", "0.5976879", "0.59630865", "0.59607804", "0.5948146", "0.5944802", "0.59428716", "0.59088343", "0.5907871", "0.59078586", "0.59078586", "0.59078586", "0.59078586", "0.59078586", "0.59078586", "0.59078586", "0.59073347", "0.590471", "0.5903377", "0.5901662", "0.5891441", "0.58837813", "0.5882797", "0.5881506", "0.5876781", "0.5869825", "0.58597183", "0.58569473", "0.5848948", "0.58431983", "0.5841212", "0.58401227", "0.5836663", "0.5836663", "0.5836663", "0.5834893", "0.5834893", "0.5832427", "0.5832427", "0.5832232", "0.5827022", "0.5827022", "0.58263487" ]
0.0
-1
Called repeatedly when this Command is scheduled to run
protected void execute() { double rightTrigger = Robot.m_oi.controllerDriverAxisValue(RobotMap.Controller1_Right_Trigger); double leftTrigger = Robot.m_oi.controllerDriverAxisValue(RobotMap.Controller1_Left_Trigger); double leftJoystickXAxis = Robot.m_oi.controllerDriverAxisValue(RobotMap.Controller1_Left_X_Axis); //Deadzone For Joystick if (Math.abs(leftJoystickXAxis) < RobotMap.JoystickDeadzone) { leftJoystickXAxis = 0; } else { if (leftJoystickXAxis < 0) { // SmartDashboard.putNumber("NEG JS BEFORE", leftJoystickXAxis); leftJoystickXAxis = (((leftJoystickXAxis - (-0.99)) * (0 - (-0.99))) / ((-1)*(RobotMap.JoystickDeadzone) - (-0.99))) + (-0.99); // SmartDashboard.putNumber("NEG JS AFTER", leftJoystickXAxis); } else if (leftJoystickXAxis > 0) { // SmartDashboard.putNumber("POS JS BEFORE", leftJoystickXAxis); leftJoystickXAxis = (((leftJoystickXAxis - (RobotMap.JoystickDeadzone)) * (0.99 - 0)) / (0.99 - RobotMap.JoystickDeadzone)) + 0; // SmartDashboard.putNumber("POS JS AFTER", leftJoystickXAxis); } } //Deadzone For Right Trigger if (Math.abs(rightTrigger) < RobotMap.TriggerDeadzone) { rightTrigger = 0; } else { // SmartDashboard.putNumber("RT BEFORE", rightTrigger); rightTrigger = (((rightTrigger - (RobotMap.TriggerDeadzone)) * (1.00 - 0)) / (1.00 - RobotMap.TriggerDeadzone)) + 0; // SmartDashboard.putNumber("RT AFTER", rightTrigger); } //Deadzone For Left Trigger if (Math.abs(leftTrigger) < RobotMap.TriggerDeadzone) { leftTrigger = 0; } else { // SmartDashboard.putNumber("LT BEFORE", leftTrigger); leftTrigger = (((leftTrigger - (RobotMap.TriggerDeadzone)) * (1.00 - 0)) / (1.00 - RobotMap.TriggerDeadzone)) + 0; // SmartDashboard.putNumber("LT AFTER", leftTrigger); } //Creating motor variables double leftMotors = ((rightTrigger) - leftTrigger + leftJoystickXAxis)*RobotMap.Drive_Scaling_Teleop; double rightMotors = (rightTrigger - leftTrigger - leftJoystickXAxis)*RobotMap.Drive_Scaling_Teleop*RobotMap.Curve_Reduction_Factor*(-1); if (leftMotors > RobotMap.MAX_ROBOT_SPEED) { leftMotors = RobotMap.MAX_ROBOT_SPEED; } if (rightMotors > RobotMap.MAX_ROBOT_SPEED) { rightMotors = RobotMap.MAX_ROBOT_SPEED; } if (leftMotors < RobotMap.MIN_ROBOT_SPEED) { leftMotors = RobotMap.MIN_ROBOT_SPEED; } if (rightMotors < RobotMap.MIN_ROBOT_SPEED) { rightMotors = RobotMap.MIN_ROBOT_SPEED; } Robot.driveTrain.setLeft(leftMotors); Robot.driveTrain.setRight(rightMotors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}", "@Override\n public void run() {\n schedule();\n }", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "public void run() {\n\t\texecuteCommand( client, false );\n\t}", "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "protected void runEachMinute() {\n \n }", "@Override\n public void execute() {\n Time.sleep(3000);\n Starting.execute();\n }", "@Override\r\n public void robotPeriodic() {\r\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\r\n // commands, running already-scheduled commands, removing finished or interrupted commands,\r\n // and running subsystem periodic() methods. This must be called from the robot's periodic\r\n // block in order for anything in the Command-based framework to work.\r\n CommandScheduler.getInstance().run();\r\n }", "@Override\n public void robotPeriodic() {\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }", "private void scheduleJob() {\n\n }", "@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "protected void run() throws IOException {\n\t\tif (lastTime + interval > Time.now())\n\t\t\treturn;\n\t\texitCode = 0; // reset for next run\n\t\trunCommand();\n\t}", "protected void execute() {\n \tclimber.setCLimberSpeed(0);\n }", "@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }", "private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "protected void waitUntilCommandFinished() {\n }", "public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}", "@Override\n public void autonomousPeriodic() {\n \n }", "public void intialRun() {\n }", "@Override\n public void periodic() {\n UpdateDashboard();\n }", "public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Override\n\tprotected void postRun() {\n\n\t}", "protected void execute() {\n \t\n \tcurrent_time = System.currentTimeMillis();\n \t\n \tlift.liftDown(LIFT_SPEED);\n }", "@Override\n\tpublic void teleopPeriodic() //runs the teleOp part of the code, repeats every 20 ms\n\t{\n\t\tScheduler.getInstance().run(); //has to be here, I think that this is looping the method\n\t\tSmartDashboard.putNumber(\"Encoder Left: \", RobotMap.encoderLeft.getRaw()); //putting the value of the left encoder to the SmartDashboard\n\t\tSmartDashboard.putNumber(\"Encoder Right: \", RobotMap.encoderRight.getRaw()); //putting the value of the right encoder to the smartDashboard\n\t\tSmartDashboard.putNumber(\"Ultrasonic sensor\", ultrasonic.getDistanceIn()); //putting the value of the ultrasonic sensor to the smartDashboard\n//\t\tSmartDashboard.putBoolean(\"allOK\", Robot.driveFar.ultrasonicOK);\n\t\tdriveExecutor.execute(); //running the execute method in driveExecutor\n\t\tgrab.execute(); //running the execute() method in GearGrab_Command (should run without this but this is ensuring us that it is on)\n\t}", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void run() {\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "@Override\n public void autonomousPeriodic() {\n\n }", "@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }", "@Override\n\tpublic void postRun() {\n\t}", "public void autonomousPeriodic() {\n // RobotMap.helmsman.trackPosition();\n Scheduler.getInstance().run();\n }", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "protected void runEachSecond() {\n \n }", "@Override\n protected void execute() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.EXTENDING, ramper.process(1.0));\n }", "protected void execute() {\n\t\t_xboxControllerToRumble.setRumble(_rumbleType, _rumbleValue);\n\t\t_timesRumbled++;\n\t\tSystem.out.println(\"Rumbling \" + _timesRumbled);\n\t}", "private void runPeriodic() {\n boolean ok = ScheduledFutureTask.super.runAndReset();\n boolean down = isShutdown();\n // Reschedule if not cancelled and not shutdown or policy allows\n if (ok && !down) {\n updateNextExecutionTime();\n MeasurableScheduler.super.getQueue().add(this);\n }\n // This might have been the final executed delayed\n // task. Wake up threads to check.\n else if (down)\n interruptIdleWorkers();\n }", "public void execute() {\n\t\tlaunch();\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void run() {\n\t\tif (this.isRunning == true) {\n\t\t\treturn;\n\t\t}\n\t\tthis.isRunning = true;\n\t\t// 写入一条日志\n\t\t\n\t\t// 详细运行参数\n\t\ttry {\n\t\t\tthis.taskRun();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.isRunning = false;\n\t\tthis.addHistory(new Date());\n\t\tif(this.once) {\n\t\t\tthis.cancel();\n\t\t}\n\t}", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void run() {\n systemTurn();\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void taskStarting() {\n\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n log();\n }", "@PostConstruct\n public void postConstruct() {\n execService = Executors.newScheduledThreadPool(1);\n scheduledFuture = execService.scheduleAtFixedRate(this, 0, PUSH_REPEAT_DELAY, TimeUnit.MILLISECONDS);\n }", "protected void run() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void run() {\n\t\tautomatischDurchAlleRouten();\n\n\t\t\n\t}", "public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n public void execute() {\n if (System.currentTimeMillis() - currentMs >= timeMs) {\n // Delay has passed so initialize object11\n super.initialize();\n }\n }", "@Override\n\tprotected void execute() {\n\t\tRobot.collector.setMawOpen(Robot.oi.getCollectorOpen());\n\t\tRobot.collector.setIntakeSpeed(Robot.oi.getCollectorSpeed());\n\t\tRobot.collector.setWristStageOneRetracted(Robot.oi.getWristStageOneRetracted());\n\t\tRobot.collector.setWristStageTwoRetracted(Robot.oi.getWristStageTwoRetracted());\n\t}", "protected void execute() {\n \tRobot.chassisSubsystem.shootHighM.set(0.75);\n \tif(timeSinceInitialized() >= 1.25){\n \t\tRobot.chassisSubsystem.liftM.set(1.0);\n \t}\n }", "protected void execute() {\n command.start();\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }", "@Override\n public void run()\n {\n //Log.d(TAG ,\"==========>Task Run In!\");\n updateDroneLocation();\n }", "public void teleopPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "public void execute() {\n setExecuted(true);\n }", "@Override\n public void teleopPeriodic() {\n\tupdateDiagnostics();\n\tScheduler.getInstance().run();\n }", "public void execute() {\n\t\t\n\t\tdrivetrain.updateAnglePID();\n\t\t\n//\t\tif (drivetrain.currentControl()) {\n//\t\t\tdrivetrain.shiftGears();\n//\t\t}\n\t}", "protected void execute() {\n\t\tshooter.runShooter(power);\n\t}", "@Override\r\n public void run() {}", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n }", "protected void execute() {\n \tshooterWheel.shooterWheelSpeedControllerAft.Pause();\n \tshooterWheel.shooterWheelSpeedControllerFwd.Pause();\n \t\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "public void run() {\n ui.printStartingMessage();\n boolean isExit = false;\n\n while (!isExit) {\n isExit = parser.determineCommand();\n }\n\n storage.saveToFile(taskList);\n }" ]
[ "0.6689458", "0.6631115", "0.6566414", "0.65512514", "0.6530515", "0.6488629", "0.64019585", "0.6380878", "0.637645", "0.6363615", "0.63557744", "0.6330997", "0.6295938", "0.6275704", "0.6268897", "0.62656784", "0.62656784", "0.62656784", "0.62656784", "0.62656784", "0.62656784", "0.6255461", "0.624429", "0.6241397", "0.62090397", "0.6183934", "0.6178626", "0.61670285", "0.614122", "0.6137012", "0.6132416", "0.6132416", "0.6132416", "0.6132416", "0.61313075", "0.61313075", "0.61313075", "0.6120398", "0.61091226", "0.61073244", "0.610631", "0.610404", "0.6101818", "0.61014", "0.6099132", "0.6093559", "0.6092883", "0.6092883", "0.6092883", "0.6092883", "0.60926527", "0.60926485", "0.6077805", "0.6074907", "0.606528", "0.6062541", "0.60580474", "0.6056443", "0.60554063", "0.6054432", "0.60539037", "0.60538137", "0.60505164", "0.60505164", "0.604125", "0.6029588", "0.6029588", "0.6029588", "0.6029588", "0.6029588", "0.6029588", "0.6029588", "0.6029588", "0.6029588", "0.6027496", "0.6027496", "0.6027496", "0.60272455", "0.6009362", "0.6006723", "0.59990466", "0.59985226", "0.59967", "0.5994757", "0.5985855", "0.59771705", "0.5973198", "0.5970597", "0.59701514", "0.5965313", "0.5964212", "0.596267", "0.59585357", "0.5954102", "0.595137", "0.5949223", "0.5946874", "0.5942587", "0.59406763", "0.59406763", "0.59366745" ]
0.0
-1
Make this return true when this Command no longer needs to run execute()
protected boolean isFinished() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean execute() {\n return false;\n }", "@Override\n public boolean execute() {\n return false;\n }", "public boolean execute(){\n return false;\n }", "@Override\n\tpublic boolean Unexecute() \n\t{\n\t\treturn false;\n\t}", "protected boolean onExecute(String command)\n {\n return false;\n }", "@Override\n\tpublic boolean execute() {\n\t\treturn false;\n\t}", "@Override\n\t\tpublic boolean shouldContinueExecuting() {\n\t\t\treturn false;\n\t\t}", "public boolean shouldExecute() {\n\t\treturn true;\n\t}", "protected void execute() {\n \t// literally still do nothing\n }", "@Override\n public boolean canExecute() {\n return true;\n }", "protected void execute() {\n finished = true;\n }", "@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t}", "public Command() {\n this.executed = false;\n }", "@Override\n public void stopExecute() {\n\n }", "public boolean shouldExecute()\n {\n if (this.runDelay <= 0)\n {\n if (!this.theRaider.world.getGameRules().getBoolean(\"mobGriefing\"))\n {\n return false;\n }\n\n this.currentTask = -1;\n this.wantsToReapStuff = true;\n }\n\n return super.shouldExecute();\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n public void execute() {\n if(!manipulatorController.getRawButton(button)){\n shooter.shooterMotorsOff();\n hopper.hopperMotorOff();\n isDone = true;\n end(false);\n }\n\n }", "public void unExecute()\n\t{\n\t}", "@Override\r\n protected boolean isFinished() {\n return false;\r\n }", "@Override\r\n public void executeCommand() {\r\n shell.stopRunning();\r\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished()\n {\n return false;\n }", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\t\t\n\t}", "@Override\n protected boolean isFinished() \n {\n return false;\n }", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n boolean isFinished() {\n return false;\n }", "public boolean shouldContinueExecuting() {\n return (this.shouldExecute() || !this.entity.getNavigator().noPath()) && this.isBowInMainhand();\n }", "protected boolean isFinished() {\r\n return false;\r\n }", "protected boolean isFinished() {\r\n return false;\r\n }", "public boolean shouldExecute() {\n return this.goalOwner.getTeam() == null ? false : super.shouldExecute();\n }", "public void prepareExecuteNoSelect() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareExecuteNoSelect();\n }", "protected void waitUntilCommandFinished() {\n }", "@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "protected void executionSuccess() {\n this.isUndoable = true;\n }", "protected boolean isFinished() {\n return false;\n \n }", "boolean redoLastCommand() throws Exception;", "@Override\n public boolean isFinished() {\n return false;\n }", "public boolean shouldContinueExecuting() {\n return this.currentTask >= 0 && super.shouldContinueExecuting();\n }", "@Override\r\n public void execute()\r\n {\r\n printInvalidCommandMessage();\r\n }" ]
[ "0.77345294", "0.77345294", "0.7678753", "0.76457655", "0.75966", "0.7554271", "0.6877811", "0.6748956", "0.6728847", "0.66855806", "0.65891784", "0.65624696", "0.64980483", "0.63857424", "0.63736373", "0.6356819", "0.6356819", "0.63498974", "0.63401324", "0.63290936", "0.63238996", "0.6319047", "0.6319047", "0.6319047", "0.6319047", "0.6319047", "0.6319047", "0.6319047", "0.6319047", "0.6319047", "0.6319047", "0.6319047", "0.6319047", "0.6319047", "0.6319047", "0.6319047", "0.63158405", "0.63097465", "0.63097465", "0.62977403", "0.62754494", "0.62744504", "0.62744504", "0.62499565", "0.62499565", "0.62499565", "0.62499565", "0.62499565", "0.62499565", "0.62499565", "0.62499565", "0.62499565", "0.6211897", "0.62113553", "0.62087166", "0.62087166", "0.62084436", "0.6203807", "0.619581", "0.61709535", "0.61614436", "0.61614436", "0.61614436", "0.61614436", "0.61614436", "0.6158993", "0.61529076", "0.61481965", "0.6146213", "0.6145282", "0.6143307" ]
0.6184869
87
Called once after isFinished returns true
protected void end() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected boolean isFinished() {\n return true;\n }", "@Override\n protected boolean isFinished() {\n return true;\n }", "@Override\n public boolean isFinished() {\n return true;\n }", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "@Override\n protected boolean isFinished()\n {\n return false;\n }", "@Override\n protected boolean isFinished() \n {\n return false;\n }", "@Override\n public boolean isFinished() {\n return true;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n boolean isFinished() {\n return false;\n }", "@Override\r\n protected boolean isFinished() {\n return false;\r\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished(){\r\n return true;\r\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n protected boolean isFinished() {\n return isFinished;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\n public boolean isFinished() {\n return false;\n }", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "@Override\r\n protected boolean isFinished() {\n if (super.isFinished()) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "@Override\n protected boolean isFinished() {\n return finished;\n }", "protected boolean isFinished()\n\t{\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }" ]
[ "0.85854495", "0.85395205", "0.83341306", "0.83313096", "0.83313096", "0.83068", "0.8305024", "0.8298836", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.8277644", "0.82765675", "0.8268994", "0.8237624", "0.8237624", "0.82293963", "0.82061803", "0.82061803", "0.82061803", "0.82061803", "0.82061803", "0.82061803", "0.8163012", "0.81589365", "0.81589365", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.8152044", "0.81458783", "0.81380373", "0.81380373", "0.81380373", "0.81380373", "0.81380373", "0.8125088", "0.8125088", "0.81129867", "0.8111655", "0.808855", "0.8083022", "0.8040255", "0.8040255", "0.8040255", "0.8032732", "0.8032732", "0.8032732", "0.8032732", "0.8032732", "0.8032732", "0.8032732", "0.8032732", "0.8032732", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885", "0.8026885" ]
0.0
-1
Called when another command which requires one or more of the same subsystems is scheduled to run
protected void interrupted() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AutonomousCommand(LiftSubsystem m_lift, ArmSubsystem m_arm, Shooter m_shooter, DriveSubsystem m_drive,\n HopperSubsystem m_hopper, Intake m_intake) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n // alongwith- birlikte çalıştırmak için // withtimeout-- girdigin sure kadar\n // yapar\n // (new RunShooter(m_shooter, 1).withTimeout(0.75),new RunLift(m_lift,\n // 0.5).raceWith(new RunHopper(m_hopper, 0.8)),\n // new AutonomousDrive(m_drive, 0.8, 300).withTimeout(3));\n\n super(new RunShooter(m_shooter, 0.8).withTimeout(0.75),\n new RunShooter(m_shooter, 0.8).raceWith(new RunHopper(m_hopper, 0.8)).withTimeout(2.5),\n new AutonomousDrive(m_drive, -0.8, -300).raceWith(new RunIntake(m_intake, 0.8)\n .raceWith(new RunHopper(m_hopper, 0.8).raceWith(new RunShooter(m_shooter, 0.3),\n new AutonomousDrive(m_drive, 0.8, 300), new RunShooter(m_shooter, 0.8).withTimeout(0.75),\n new RunShooter(m_shooter, 0.8).raceWith(new RunHopper(m_hopper, 0.8).withTimeout(2.5))))));\n\n }", "@Override\n /**\n * Set the default command for a subsystem here\n */\n public void initDefaultCommand() \n {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "private void registerCommands() {\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurtick\")\n\t\t\t\t\t\t.then(argument(\"Number of Ticks Between Sends\", integer())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.timeBetween = getInteger(c, \"Number of Ticks Between Sends\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message will be sent every \" + getInteger(c, \"Number of Ticks Between Sends\") + \" ticks.\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arrecurphrase [Recurring Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurphrase\")\n\t\t\t\t\t\t.then(argument(\"Recurring Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.persistentPhrase = getString(c, \"Recurring Phrase\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message set to \\\"\" + getString(c, \"Recurring Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arrecurtoggle\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurtoggle\")\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tconfig.persistentChat = !config.persistentChat;\n\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message has been turned \" + (config.persistentChat ? \"on\" : \"off\") + \".\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t})\n\t\t));\n\t\t//arrecur [Enabled?]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecur\")\n\t\t\t\t\t\t.then(argument(\"Enabled?\", bool())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.persistentChat = getBool(c, \"Enabled?\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message set to \\\"\" + (config.persistentChat ? \"on\" : \"off\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//aradditem [Item Name] [Trigger Term]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddterm\")\n\t\t\t\t\t\t.then(argument(\"Item Name\", string())\n\t\t\t\t\t\t\t\t.then(argument(\"Trigger Term\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.terms.add(getString(c, \"Trigger Term\") + \"|\" + getString(c, \"Item Name\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tHelper.setupChatMessages();\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added term \\\"\" + getString(c, \"Trigger Term\") + \"\\\" to item \\\"\" + getString(c, \"Item Name\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t})))\n\t\t));\n\t\t//araddin [In Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddin\")\n\t\t\t\t\t\t.then(argument(\"In Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.ins.add(getString(c, \"In Phrase\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added in-phrase \\\"\" + getString(c, \"In Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//araddout [Out Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddout\")\n\t\t\t\t\t\t.then(argument(\"Out Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.outs.add(getString(c, \"Out Phrase\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added out-phrase \\\"\" + getString(c, \"Out Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arreload\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arreload\")\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tarreload();\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"AutoReply config reloaded.\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t})\n\t\t));\n\t\t//araddshopitem [Item Name] [Quantity] [Price]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddshopitem\")\n\t\t\t\t\t\t.then(argument(\"Item Name\", string()).then(argument(\"Quantity\", string()).then(argument(\"Price\", string())\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tconfig.shopItems.add(getString(c, \"Item Name\") + \"|\" + getString(c, \"Quantity\") + \"|$\" + getString(c, \"Price\"));\n\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added \" + getString(c, \"Item Name\") + \" to shop stock.\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t}))))\n\t\t));\n\t}", "@Override\n\t\tpublic void subTask(String arg0) {\n\n\t\t}", "public InstantCommand(Runnable toRun, Subsystem... requirements) {\n\t\trequireNonNull(toRun);\n\t\tm_toRun = toRun;\n\t\taddRequirements(requirements);\n\t}", "private void registerCommands() {\n }", "protected void runSubCommand(int num) {\n subCommands[num].execute();\n }", "public static void twoClientSetupProcesses() {\n\n\tList<String> aClientTags=TagsFactory.getAssignmentTags().getTwoClientClientTags();\n\tList<String> aServerTags=TagsFactory.getAssignmentTags().getTwoClientServerTags();\n\n\ttwoClientSetupProcesses(aClientTags, aServerTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcessTeams(Arrays.asList(\"RegistryBasedDistributedProgram\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setTerminatingProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Client_0\", \"Client_1\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Registry\", \"Server\", \"Client_0\", \"Client_1\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Registry\", Arrays.asList(\"Registry\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Server\", aServerTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_0\", aClientTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_1\", aClientTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Registry\", FlexibleStaticArgumentsTestCase.TEST_REGISTRY_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Server\", FlexibleStaticArgumentsTestCase.TEST_SERVER_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_0\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_0_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_1\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_1_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Registry\", 500);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Server\", 2000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Client_0\", 5000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Client_1\", 5000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().getProcessTeams().forEach(team -> System.out.println(\"### \" + team));\n}", "@Override\r\n\tpublic void subTask(String name) {\n\t}", "@Override\n\t\t\tpublic void subTask(String name) {\n\t\t\t\t\n\t\t\t}", "void beginPeriodic() {\n\t\t// if some subsystems need to get called in all modes at the beginning\n\t\t// of periodic, do it here\n\n\t\t// don't need to do anything\n\t}", "@Override\n public void configureTasks( ScheduledTaskRegistrar registrar ) {\n registrar.setScheduler( rhizomeScheduler() );\n }", "private void isCommandInstance() throws SystemException {\r\n\t\tif (commandInstance != null) return;\r\n\t\tif (commandResponder != null) SystemException.softwareProblem(\"This was not a command instance. There is a bug. Either the super for the command is not well formed or it called a method it shouldn't.\");\r\n\t\tinstantiateCommand();\r\n\t}", "public PnuematicSubsystem() {\n\n }", "public void TurnCommand() {\n\n requires(Robot.driveSubsystem);\n\n }", "public void performOtherTasks() {\n\t\t\tSystem.out.println(\"performing tasks other than servicing\");\n\t\t\t// do whatever you want to do in the servicing package\n\t\t}", "public void act() {\n\t\tfor (Manager manager : managers.values())\n\t\t\tmanager.act();\n\t\t\n\t\tif (hasPriority == Priority.ARMY && armyQueue.size() > 0) {\n\t\t\t//Tell ArmyManager to build top unit in queue\n\t\t}\n\t\telse if (hasPriority == Priority.BUILDINGS && buildingQueue.size() > 0) {\n\t\t\t//Tell BuildManager to build top building in queue\n\t\t}\n\t\telse if (hasPriority == Priority.WORKERS) {\n\t\t\t//ResourceManager has requested more workers\n\t\t}\n\t}", "@SystemAPI\npublic interface ScheduleEvent extends IOperation {\n\t/**\n\t * \n\t * @return\tDe duur van de planbare actie (in Millis)\n\t */\n\tpublic TimeDuration getDuration();\n\t\n\t/**\n\t * \n\t * @return\tDe periode waarop de actie gescheduled is\n\t * \t\t\tDit wordt ingesteld door de Scheduler\n\t */\n\t@SystemAPI\n\tpublic TimePeriod getScheduledPeriod(); \n\t\n\t/**\n\t * Als de schedulable specifieke resources nodig heeft, bv. een bepaalde \n\t * dokter of verpleegster, dan komen deze in de onderstaande List.\n\t * @return\t\tDe lijst met specifieke resources die nodig zijn.\n\t */\n\tpublic List<ScheduleResource> neededSpecificResources();\n\t\n\t/**\n\t * \n\t * @return\tEen lijst met de nodige resources.\n\t */\n\tpublic List<ResourceType> neededResources();\n\t\n\t/**\n\t * Zet de periode wanneer de actie gescheduled is.\n\t * @param scheduledPeriod\tDe nieuwe geplande periode\n\t * @param usesResources\tDe resources die gebruikt worden bij het plannen\n\t * @param campus De campus die gebruikt wordt bij het plannen\n\t * @throws SchedulingException Als er niet gepland kan worden\n\t */\n\tpublic void schedule(TimePeriod scheduledPeriod, List<ScheduleResource> usesResources, Campus campus) throws SchedulingException;\n\t\t\n\t/**\n\t * Een methode om te controleren of de events behorende bij een warenhuis gepland kunnen worden.\n\t * @param warehouse\n\t * \t\t Het warenhuis waar gepland moet worden\n\t * @return true\n\t * \t\t Als er gepland kan worden\n\t * @return false\n\t * \t\t Als er niet gepland kan worden\n\t */\n\tpublic boolean canBeScheduled(Warehouse warehouse) ;\n\t\n\t/**\n\t * Een methode om een warehuis te updaten. Met de booleanse waarde\n\t * kan de actie ongedaan gemaakt worden.\n\t * \n\t * @param warehouse\n\t * \t\t Het warenhuis geupdate moet worden\n\t * @param inverse\n\t * \t\t De soort update\n\t */\n\tpublic void updateWarehouse(Warehouse warehouse, boolean inverse) ;\n\t\n\t/**\n\t * Een methode om de prioriteit op te vragen.\n\t * @return\n\t */\n\tpublic Priority getPriority() ;\t\n\t\n\t/**\n\t * Methode die de campus waarop deze actie wordt uitgevoerd opslaat, zodat\n\t * ze later kan gereproduceerd worden wanneer er geannuleerd werd.\n\t * @param \tcampus\n\t * \t\t\tDe CampusId van de campus die moet opgeslagen worden\n\t */\n\tpublic void setHandlingCampus(CampusId campus) ;\n\t\n\t/**\n\t * Methode die de opgeslagen campus terug opvraagt.\n\t * @return\tDe opgeslagen campus\n\t */\n\tpublic CampusId getHandlingCampus();\n\t\n\t/**\n\t * \n\t * @return event type\n\t */\n\t@SystemAPI\n\tpublic EventType getEventType();\n\t\n\t/**\n\t * @return start event\n\t */\n\tpublic Event getStart();\n\t\n\t/**\n\t * \n\t * @return stop event\n\t */\n\tpublic Event getStop();\n}", "@Override\n protected int run() throws Exception {\n if (User.current() == null) {\n stderr.println(\"Must be logged in before executing...\");\n return 1;\n }\n\n // First check to see if they exist\n Jenkins instance = Jenkins.getInstance();\n AbstractProject project1 = instance.getItemByFullName(first, AbstractProject.class);\n if (project1 == null) {\n throw new CmdLineException(null, \"Project: \" + first + \" does not exist\");\n }\n AbstractProject project2 = instance.getItemByFullName(second, AbstractProject.class);\n if (project2 == null) {\n throw new CmdLineException(null, \"Project: \" + second + \" does not exist\");\n }\n\n // Make sure user has permission to build.\n if (!project1.hasPermission(Item.BUILD) &&\n !project2.hasPermission(Item.BUILD)) {\n throw new CmdLineException(null, \"You do not have permission to execute these jobs.\");\n }\n\n // Let's build both projects.\n project1.scheduleBuild2(0);\n project2.scheduleBuild2(0);\n return 0;\n }", "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n setDefaultCommand(new tankDrive());\n }", "@Scheduled(cron = \"${toil1.schedule2}\")\n\tpublic void toiL1Schedule2() {\n\t\tlog.info(\"Running toiL1Schedule2\");\n\t\trunToiL1Schedule();\n\t\trunToiBlogsL1Schedule();\n\t}", "private void commandCheck() {\n\t\t//add user command\n\t\tif(cmd.getText().toLowerCase().equals(\"adduser\")) {\n\t\t\t/*\n\t\t\t * permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\t * There will be more user level commands added in version 2, like changing rename to allow a\n\t\t\t * user to rename themselves, but not any other user. Admins can still rename all users.\n\t\t\t */\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\taddUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//delete user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"deluser\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdelUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t};\n\t\t}\n\t\t//rename user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"rename\")) {\n\t\t\t//permissions check: if user is an admin, allow the user o chose a user to rename.\n\t\t\t//If not, allow the user to rename themselves only.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\trename(ALL);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trename(SELF);\n\t\t\t}\n\t\t}\n\t\t//promote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"promote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tpromote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//demote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"demote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdemote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//the rest of the commands are user level, no permission checking\n\t\telse if(cmd.getText().toLowerCase().equals(\"ccprocess\")) {\n\t\t\tccprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"cprocess\")) {\n\t\t\tcprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opentill\")) {\n\t\t\topenTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"closetill\")) {\n\t\t\tcloseTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opendrawer\")) {\n\t\t\topenDrawer();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"sale\")) {\n\t\t\tsale();\n\t\t}\n\t\t//if the command that was entered does not match any command, return an error.\n\t\telse {\n\t\t\terror(CMD_NOT_FOUND);\n\t\t}\n\t}", "public void verifyAndRegister() {\n // All top level commands are supposed to be registered in the command manager\n this.internalTree.children.stream().map(Node::getValue).forEach(commandArgument -> {\n if (!(commandArgument instanceof StaticArgument)) {\n throw new IllegalStateException(\"Top level command argument cannot be a variable\");\n }\n });\n\n this.checkAmbiguity(this.internalTree);\n\n // Verify that all leaf nodes have command registered\n this.getLeaves(this.internalTree).forEach(leaf -> {\n if (leaf.getOwningCommand() == null) {\n throw new NoCommandInLeafException(leaf);\n } else {\n final Command<C> owningCommand = leaf.getOwningCommand();\n this.commandManager.getCommandRegistrationHandler().registerCommand(owningCommand);\n }\n });\n\n // Register command permissions\n this.getLeavesRaw(this.internalTree).forEach(node -> {\n // noinspection all\n final CommandPermission commandPermission = node.getValue().getOwningCommand().getCommandPermission();\n /* All leaves must necessarily have an owning command */\n node.nodeMeta.put(\"permission\", commandPermission);\n // Get chain and order it tail->head then skip the tail (leaf node)\n List<Node<CommandArgument<C, ?>>> chain = this.getChain(node);\n Collections.reverse(chain);\n chain = chain.subList(1, chain.size());\n // Go through all nodes from the tail upwards until a collision occurs\n for (final Node<CommandArgument<C, ?>> commandArgumentNode : chain) {\n final CommandPermission existingPermission = (CommandPermission) commandArgumentNode.nodeMeta\n .get(\"permission\");\n\n CommandPermission permission;\n if (existingPermission != null) {\n permission = OrPermission.of(Arrays.asList(commandPermission, existingPermission));\n } else {\n permission = commandPermission;\n }\n\n /* Now also check if there's a command handler attached to an upper level node */\n if (commandArgumentNode.getValue() != null && commandArgumentNode\n .getValue()\n .getOwningCommand() != null) {\n final Command<C> command = commandArgumentNode.getValue().getOwningCommand();\n if (this\n .getCommandManager()\n .getSetting(CommandManager.ManagerSettings.ENFORCE_INTERMEDIARY_PERMISSIONS)) {\n permission = command.getCommandPermission();\n } else {\n permission = OrPermission.of(Arrays.asList(permission, command.getCommandPermission()));\n }\n }\n\n commandArgumentNode.nodeMeta.put(\"permission\", permission);\n }\n });\n }", "void legalCommand();", "@Override\n\tpublic void teleopInit() {\n\n\t\tSystem.out.println(\"Teleop init\");\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.cancel();\n\t\tScheduler.getInstance().add(new DriveCommand());\n\n\t\t\n\t}", "public void registerCommand(BaseCommand baseCommand) throws Exception {\n baseCommand.setShard(shard);\n Command botCommand = baseCommand.botCommand;\n for (BaseCommand cmd : baseCommands) {\n if (StringUtils.stripAccents(cmd.getCommandIdentifier()).equalsIgnoreCase(StringUtils.stripAccents\n (botCommand.getCommandIdentifier())))\n {\n System.out.println(\"Multiple baseCommands cannot be registered under the same name. Ignoring new \" +\n \"instance\" +\n \".\\n\" +\n \"Name: \" + baseCommand.toString());\n return;\n }\n }\n botCommand.setupSubcommands();\n baseCommands.add(baseCommand);\n commandUsages.put(baseCommand.commandIdentifier, (long) 0);\n System.out.println(\"Successfully registered \" + baseCommand.toString());\n }", "public abstract void checkingCommand(String nameOfCommand, ArrayList<Unit> units);", "@Override\n public void adjustStartEventSubscriptions(ProcessDefinitionEntity newLatestProcessDefinition, ProcessDefinitionEntity oldLatestProcessDefinition) {\n super.adjustStartEventSubscriptions(newLatestProcessDefinition, oldLatestProcessDefinition);\n\n LOG.debug(\"Adding start event simulation timers.\");\n removeObsoleteStartEventSimulationJobs(newLatestProcessDefinition);\n addStartEventSimulationJobs(newLatestProcessDefinition);\n }", "@Test\n public void testSubsystem1_1() throws Exception {\n KernelServices servicesA = super.createKernelServicesBuilder(createAdditionalInitialization())\n .setSubsystemXml(readResource(\"keycloak-1.1.xml\")).build();\n Assert.assertTrue(\"Subsystem boot failed!\", servicesA.isSuccessfulBoot());\n ModelNode modelA = servicesA.readWholeModel();\n super.validateModel(modelA);\n }", "public void testRunnableWithOtherRule() {\n \t\tISchedulingRule rule = new ISchedulingRule() {\n \t\t\tpublic boolean contains(ISchedulingRule rule) {\n \t\t\t\treturn rule == this;\n \t\t\t}\n \t\t\tpublic boolean isConflicting(ISchedulingRule rule) {\n \t\t\t\treturn rule == this;\n \t\t\t}\n \t\t};\n \t\ttry {\n \t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) {\n \t\t\t\t\t//noop\n \t\t\t\t}\n \t\t\t}, rule, IResource.NONE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"1.99\", e);\n \t\t}\n \t}", "private static void performRoomManagement() {\n\t\t\r\n\t\t\r\n\r\n\t}", "private void loadRegistredCommands() {\n ServiceLoader<Command> loader = ServiceLoader.load(Command.class);\n for (Command command : loader) {\n addCommand(command);\n }\n }", "public void autonomousInit(){\n\t \t//resetAndDisableSystems();\n\t\t \n\t \tautonomousCommand = (Command) autoChooser.getSelected();\n\t \tautonomousCommand.start();\n\t \t\n\t \t\n\t }", "private void scheduleOrExecuteJob() {\n try {\n for (TaskScheduler entry : this.schedulers.values()) {\n StandardTaskScheduler scheduler = (StandardTaskScheduler) entry;\n // Maybe other thread close&remove scheduler at the same time\n synchronized (scheduler) {\n this.scheduleOrExecuteJobForGraph(scheduler);\n }\n }\n } catch (Throwable e) {\n LOG.error(\"Exception occurred when schedule job\", e);\n }\n }", "private void registerCommands() {\n CommandSpec showBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.show\")\r\n .description(Text.of(\"Show how many Banpoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsShow.class)).build();\r\n\r\n CommandSpec addBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.add\")\r\n .description(Text.of(\"Add a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsAdd.class)).build();\r\n\r\n CommandSpec removeBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.remove\")\r\n .description(Text.of(\"Remove a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsRemove.class)).build();\r\n\r\n CommandSpec banpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints\")\r\n .description(Text.of(\"Show the Banpoints help menu\")).arguments(GenericArguments.none())\r\n .child(showBanpoints, \"show\").child(addBanpoints, \"add\").child(removeBanpoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, banpoints, \"banpoints\", \"bp\");\r\n\r\n CommandSpec showMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.show\")\r\n .description(Text.of(\"Show how many Mutepoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsShow.class)).build();\r\n\r\n CommandSpec addMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsAdd.class)).build();\r\n\r\n CommandSpec removeMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsRemove.class)).build();\r\n\r\n CommandSpec mutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints\")\r\n .description(Text.of(\"Show the Mutepoints help menu\")).arguments(GenericArguments.none())\r\n .child(showMutepoints, \"show\").child(addMutepoints, \"add\").child(removeMutepoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, mutepoints, \"mutepoints\", \"mp\");\r\n\r\n CommandSpec playerInfo = CommandSpec.builder().permission(\"dtpunishment.playerinfo\")\r\n .description(Text.of(\"Show your info \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.optionalWeak(GenericArguments.requiringPermission(\r\n GenericArguments.user(Text.of(\"player\")), \"dtpunishment.playerinfo.others\"))))\r\n .executor(childInjector.getInstance(CommandPlayerInfo.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, playerInfo, \"pinfo\", \"playerinfo\");\r\n\r\n CommandSpec addWord = CommandSpec.builder().permission(\"dtpunishment.word.add\")\r\n .description(Text.of(\"Add a word to the list of banned ones \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.string(Text.of(\"word\"))))\r\n .executor(childInjector.getInstance(CommandWordAdd.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, addWord, \"addword\");\r\n\r\n CommandSpec unmute = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Unmute a player immediately (removing all mutepoints)\"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandUnmute.class)).build();\r\n\r\n CommandSpec reloadConfig = CommandSpec.builder().permission(\"dtpunishment.admin.reload\")\r\n .description(Text.of(\"Reload configuration from disk\"))\r\n .executor(childInjector.getInstance(CommandReloadConfig.class)).build();\r\n\r\n CommandSpec adminCmd = CommandSpec.builder().permission(\"dtpunishment.admin\")\r\n .description(Text.of(\"Admin commands for DTPunishment\")).child(reloadConfig, \"reload\")\r\n .child(unmute, \"unmute\").build();\r\n\r\n Sponge.getCommandManager().register(this, adminCmd, \"dtp\", \"dtpunish\");\r\n }", "@Command\n\tpublic void buscar() {\n\t}", "private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }", "private static void executeTask02() {\n }", "public void teleopPeriodic() \r\n {\r\n Watchdog.getInstance().feed();\r\n Scheduler.getInstance().run();\r\n \r\n //Polls the buttons to see if they are active, if they are, it adds the\r\n //command to the Scheduler.\r\n if (mecanumDriveTrigger.get()) \r\n Scheduler.getInstance().add(new MechanumDrive());\r\n \r\n else if (tankDriveTrigger.get())\r\n Scheduler.getInstance().add(new TankDrive());\r\n \r\n else if (OI.rightJoystick.getRawButton(2))\r\n Scheduler.getInstance().add(new PolarMechanumDrive());\r\n \r\n resetGyro.get();\r\n \r\n //Puts the current command being run by DriveTrain into the SmartDashboard\r\n SmartDashboard.putData(DriveTrain.getInstance().getCurrentCommand());\r\n \r\n SmartDashboard.putString(ERRORS_TO_DRIVERSTATION_PROP, \"Test String\");\r\n \r\n \r\n }", "public void subTask(String name) {\n\r\n\t}", "void cronScheduledProcesses();", "public DefaultAutonomous(DriveSubsystem ds,\n ShooterSubSystem ss,\n LEDSubSystem ls,\n XboxController manipulator,\n double distanceInFeet) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n super(new ShooterCommand(ss, ls, manipulator, true, Constants.kShooterSpeedSlow).withTimeout(5),\n new DriveADistanceInFeet(ds, distanceInFeet, true).withTimeout(5));\n }", "private static void setSubsystems()\n {\n //Components\n //Talons\n frontLeftTalon.setName(\"DrivetrainSubsystem\", \"FrontLeftDriveTalon\");\n frontRightTalon.setName(\"DrivetrainSubsystem\", \"FrontRightDriveTalon\");\n rearLeftTalon.setName(\"DrivetrainSubsystem\", \"RearLeftDriveTalon\");\n rearRightTalon.setName(\"DrivetrainSubsystem\", \"RearRightDriveTalon\");\n //Sensors\n //navX.setName(\"SensorSubsystem\", \"NavX\");\n System.out.print(pigeon.getAbsoluteCompassHeading());\n \n //Subsystems\n drivetrainSubsystem.setName(\"DrivetrainSubsystem\", \"DrivetrainSubsystem\");\n sensorSubsystem.setName(\"SensorSubsystem\", \"SensorSubsystem\");\n }", "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n setDefaultCommand(new HatchExtend());\n setDefaultCommand(new HatchRetract());\n }", "private void scheduleJob() {\n\n }", "@Override\r\n public void robotPeriodic() {\r\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\r\n // commands, running already-scheduled commands, removing finished or interrupted commands,\r\n // and running subsystem periodic() methods. This must be called from the robot's periodic\r\n // block in order for anything in the Command-based framework to work.\r\n CommandScheduler.getInstance().run();\r\n }", "@Test\n\tpublic void testAddCommand1() {\n\t\tString task1 = \"normal task\";\n\t\tString task2 = \"priority task\";\n\t\tString label = testData.getCurrLabel();\n\t\t\n\t\tAddCommand comd = new AddCommand(task1, new TDTDateAndTime(), false);\n\t\tassertEquals(String.format(AddCommand.MESSAGE_ADD_FEEDBACK, label), comd.execute(testData));\n\t\t\n\t\tcomd = new AddCommand(task2, new TDTDateAndTime(), true);\n\t\tassertEquals(String.format(AddCommand.MESSAGE_ADD_FEEDBACK, label), comd.execute(testData));\n\t\t\n\t\tArrayList<Task> taskList = testData.getTaskListFromLabel(label);\n\t\tassertEquals(2, taskList.size());\n\t\tassertTrue(task2.equals(taskList.get(0).getDetails()));\n\t\tassertTrue(taskList.get(0).isHighPriority());\n\t\tassertTrue(task1.equals(taskList.get(1).getDetails()));\n\t\tassertFalse(taskList.get(1).isHighPriority());\n\t}", "protected void execute() {\n\t\tif(RobotMap.gearDoorExtended)\n\t\t\tgearSubsystem.retractPiston();\n\t\telse\n\t\t\tif(Robot.oi.getRightStick().getTrigger() || auton)\n\t\t\t\tgearSubsystem.extendPiston();\n\t\t\n\t}", "@Override\n\tpublic void autonomousInit() {\n\t\tif (autonomousCommand != null)\n\t\t\tlowGearCommand.start();\n\t\tautonomousCommand.start();\n\t}", "public void subTask(String tr) {\n\t\t\n\t}", "public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand\r\n }", "private void processWTBy(WasTriggeredBy dep) {\n\n\t}", "@Override\n public void run() {\n CuratorLocker locker = new CuratorLocker(schedulerBuilder.getServiceSpec());\n\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n LOGGER.info(\"Shutdown initiated, releasing curator lock\");\n locker.unlock();\n }));\n locker.lock();\n\n SchedulerConfig schedulerConfig = SchedulerConfig.fromEnv();\n Metrics.configureStatsd(schedulerConfig);\n AbstractScheduler scheduler = schedulerBuilder.build();\n scheduler.start();\n Optional<Scheduler> mesosScheduler = scheduler.getMesosScheduler();\n if (mesosScheduler.isPresent()) {\n SchedulerApiServer apiServer = new SchedulerApiServer(schedulerConfig, scheduler.getResources());\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n scheduler.markApiServerStarted();\n }\n });\n\n runScheduler(\n scheduler.frameworkInfo,\n mesosScheduler.get(),\n schedulerBuilder.getServiceSpec(),\n schedulerBuilder.getSchedulerConfig(),\n schedulerBuilder.getStateStore());\n } else {\n /**\n * If no MesosScheduler is provided this scheduler has been deregistered and should report itself healthy\n * and provide an empty COMPLETE deploy plan so it may complete its UNINSTALL.\n *\n * See {@link UninstallScheduler#getMesosScheduler()}.\n */\n Plan emptyDeployPlan = new Plan() {\n @Override\n public List<Phase> getChildren() {\n return Collections.emptyList();\n }\n\n @Override\n public Strategy<Phase> getStrategy() {\n return new SerialStrategy<>();\n }\n\n @Override\n public UUID getId() {\n return UUID.randomUUID();\n }\n\n @Override\n public String getName() {\n return Constants.DEPLOY_PLAN_NAME;\n }\n\n @Override\n public List<String> getErrors() {\n return Collections.emptyList();\n }\n };\n\n PlanManager emptyPlanManager = DefaultPlanManager.createProceeding(emptyDeployPlan);\n PlansResource emptyPlanResource = new PlansResource();\n emptyPlanResource.setPlanManagers(Arrays.asList(emptyPlanManager));\n\n schedulerBuilder.getStateStore().clearAllData();\n\n SchedulerApiServer apiServer = new SchedulerApiServer(\n schedulerConfig,\n Arrays.asList(\n emptyPlanResource,\n new HealthResource()));\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n LOGGER.info(\"Started trivially healthy API server.\");\n }\n });\n }\n }", "@Override\n public void autonomousInit() {\n\tgameData.readGameData();\n\tautonomousCommand = (Command) chooserMode.getSelected();\n\tdriveSubsystem.resetEncoders();\n\televatorSubsystem.resetEncoder();\n\t// schedule the autonomous command\n\tif (autonomousCommand != null) {\n\t // SmartDashboard.putString(\"i\", \"nit\");\n\t autonomousCommand.start();\n\t}\n }", "protected abstract void scheduler_init();", "@Override\n public void robotPeriodic() {\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n }", "private void processCommand(String command) {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"c\")) {\n doMarkTaskAsCompleted();\n } else if (command.equals(\"m\")) {\n doModifyTask();\n } else if (command.equals(\"v\")) {\n doViewAllTasks();\n } else if (command.equals(\"ct\")) {\n doViewAllCompletedTasks();\n } else if (command.equals(\"s\")) {\n saveTasks();\n } else {\n System.out.println(\"Invalid selection, kindly select from the options available.\");\n }\n }", "@Override\n\tprotected ArrayList<String> getCommandsToExecute() {\n\t\treturn null;\n\t}", "public void noSuchCommand() {\n }", "public void registerCommands() {\n\t CommandSpec cmdCreate = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdCreate.getInstance())\n\t .permission(\"blockyarena.create\")\n\t .build();\n\n\t CommandSpec cmdRemove = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdRemove.getInstance())\n\t .permission(\"blockyarena.remove\")\n\t .build();\n\n\t CommandSpec cmdJoin = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"mode\")))\n\t )\n\t .executor(CmdJoin.getInstance())\n\t .build();\n\n\t CommandSpec cmdQuit = CommandSpec.builder()\n\t .executor(CmdQuit.getInstance())\n\t .build();\n\n\t CommandSpec cmdEdit = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t GenericArguments.optional(onlyOne(GenericArguments.string(Text.of(\"param\"))))\n\t )\n\t .executor(CmdEdit.getInstance())\n\t .permission(\"blockyarena.edit\")\n\t .build();\n\n\t CommandSpec cmdKit = CommandSpec.builder()\n\t .arguments(onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdKit.getInstance())\n\t .build();\n\n\t CommandSpec arenaCommandSpec = CommandSpec.builder()\n\t .child(cmdEdit, \"edit\")\n\t .child(cmdCreate, \"create\")\n\t .child(cmdRemove, \"remove\")\n\t .child(cmdJoin, \"join\")\n\t .child(cmdQuit, \"quit\")\n\t .child(cmdKit, \"kit\")\n\t .build();\n\n\t Sponge.getCommandManager()\n\t .register(BlockyArena.getInstance(), arenaCommandSpec, \"blockyarena\", \"arena\", \"ba\");\n\t }", "@Override\n public void run() {\n\n\n\n System.out.println(\"run scheduled jobs.\");\n\n\n checkBlackOutPeriod();\n\n\n\n checkOfficeActionPeriod1();\n\n checkAcceptedFilings();\n\n checkNOAPeriod();\n checkFilingExtensions();\n\n\n\n }", "public void mainCommands() {\n\t\tint inputId = taskController.getInt(\"Please input the number of your option: \", \"You must input an integer!\");\n\t\tswitch (inputId) {\n\t\tcase 1:\n\t\t\tthis.taskController.showTaskByTime();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.taskController.filterAProject();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.taskController.addTask();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.taskController.EditTask();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tthis.taskController.removeTask();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tSystem.out.println(\"Thank you for coming, Bye!\");\n\t\t\tthis.exit = true;\n\t\t\t// save the task list before exit all the time.\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"This is not a valid option, please input 1 ~ 7.\");\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "@Override\n protected void execute() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.EXTENDING, ramper.process(1.0));\n }", "@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }", "private static void CLIapplication() {\n\n\t\tboolean done = false;\n\t\tdo {\n\t\t\tint choice = HQmenu();\n\t\t\tSite newSite;\n\n\t\t\tswitch(choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Register exchange office\");\n\t\t\t\tnewSite = createNewSite();\n\t\t\t\tif(sites.containsKey(newSite.getSiteName())) {\n\t\t\t\t\tSystem.out.println(\"Site already registred!1\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsites.putIfAbsent(newSite.getSiteName(), newSite);\t\t\t\t\t\n\t\t\t\t\twriteNewSiteToConfigFile(newSite.getSiteName());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(sites.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"You need to register site(s) first.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tCLIHelper.menuInput();\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\tdone = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Not a valid menu choice!\");\n\t\t\t}\n\t\t\tlogger.info(\"-------Task_Done-------\\n\");\n\t\t}while(!done);\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tSmartDashboard.putString(\"DT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTER Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTERPIVOT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"INTAKE Current Command\", \" \");\n\t\t\n\t\tScheduler.getInstance().run();\n//\t\t\n//\t\tRobot.drivetrain.leftLED.set(true);\n//\t\tRobot.drivetrain.rightLED.set(false);\n\n\t\tif(!autoAiming) {\n\t\t\tnew DriveForwardRotate(correctForDeadZone(oi.driver.getForward()), correctForDeadZone(oi.driver.getRotation())).start();\n\t\t}\n\t\t//new DriveForwardRotate(oi.driver.getForward(), oi.driver.getRotation()).start();\n\t\t\n\t\tif(oi.autoAim() && !prevStateAutoAim){\n\t\t\t//new SetPivotPosition(PivotPID.AUTO_CAMERA_AIM_POSITION).start(\n//\t\t\tnew AutoAim().start();\n\t\t\tnew AutoAim(TurnConstants.AIM_VELOCITY).start(); //this is a press and hold button 3 on joystick\n\t\t\t\n\t\t}\n\t\t\n\t\tif (readyToShoot && oi.operator.shootBallFlywheels() && oi.operator.shoot()){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- ready to shoot\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\t//INTAKE ------2 button\n\t\tif (oi.operator.intakeUp() && !prevStateIntakeUp){\n\t\t\tnew SetIntakePosition(IntakeSubsystem.UP).start();\n\t\t}\n\t\tif (oi.operator.intakeDeploy() && !prevStateIntakeDeployed){\n\t\t\tnew SetIntakePosition(!IntakeSubsystem.UP).start();\n\t\t}\n\t\t\n\t\t//CAMERA PISTON\n\t\t\n\t\t//move up\n\t\tif (oi.driver.isCameraUpPressed()){\n\t\t\tnew SetCameraPiston(CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\telse{\n\t\t\tnew SetCameraPiston(!CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\t\n//\t\tif (oi.driver.isCameraUpPressed() && !prevStateCameraUp){\n//\t\t\tnew SetCameraPiston(cameraUp ? !CameraSubsystem.CAM_UP : CameraSubsystem.CAM_UP).start();\n//\t\t\tcameraUp = !cameraUp;\n//\t\t}\n//\t\telse{\n//\t\t\tnew SetCameraPiston(cameraUp ? CameraSubsystem.CAM_UP : !CameraSubsystem.CAM_UP).start();\n//\t\t}\n\t\t\n\t\t\n\t\tif (oi.operator.isSemiAutonomousIntakePressed() && !prevStateSemiAutoIntake){\n\t\t\tnew SemiAutoLoadBall().start();\n\t\t}\n//\t\t\n\t\t\n\t\t//pivot state\n//\t\tif (oi.operator.pivotShootState() && !prevStatePivotUp){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n//\t\t}\n//\t\telse if(oi.operator.resetPivot() && !prevStateResetButton) {\n//\t\t\t new ResetPivot().start();\n//\t\t}\n//\t\telse if (oi.operator.pivotStoreState() && !prevStatePivotMiddle){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n//\t\t}\n\t\t\n\t\t//PIVOT\n\t\t\n\t\t//if going up\n\t\tif (oi.operator.pivotCloseShot() && !prevStatePivotCloseShot){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.CLOSE_SHOOT_STATE).start();\t\t\n\t\t}\n\t\t//if going down\n\t\telse if(oi.operator.pivotFarShot() && !prevStatePivotFarShot) {\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotStoreState()&& !prevStateStore){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotReset() && !prevStateResetSafety){\n\t\t\tnew ResetPivot().start();\n\t\t}\n\t\telse if (oi.driver.isDefenseShot() && prevStateDefenseShot){\n\t\t\tnew SetPivotPosition(ShooterPivotSubsystem.PivotPID.ANTI_DEFENSE_POSITION).start();\n\t\t}\n\t\n\t\t\n\t\tif (!semiAutoIsRunning){\n//\t\t\n\t\t\t//intake purging/running\n\t\t\tif(oi.operator.purgeIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_PURGE_SPEED, IntakeSubsystem.CENTERING_MODULE_PURGE_SPEED).start(); \n\t\t\t\tnew RunAllRollers(ShooterSubsystem.OUT, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else if (oi.operator.runIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_INTAKE_SPEED, IntakeSubsystem.CENTERING_MODULE_INTAKE_SPEED).start();\n\t\t\t\tnew RunAllRollers(ShooterSubsystem.IN, ShooterSubsystem.UNTIL_IR).start();\n//\t\t\t\tnew SemiAutoLoadBall().start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else {\n\t\t\t\t//just the intakes off here to avoid conflicts\n\t\t\t\tnew SetIntakeSpeed(IntakeSubsystem.INTAKE_OFF_SPEED, IntakeSubsystem.INTAKE_OFF_SPEED).start();\n\t\t\t\t//new EndSemiAuto(true).start();\n\t\t\t\t//new RunAllRollers(ShooterSubsystem.OFF, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = false;\n\t\t\t}\n\t\t\t\n\t\t\t//flywheel control\n\t\t\tif (!allIntakeRunning){\n//\t\t\t\tif(oi.operator.loadBallFlywheels()){\n//\t\t\t\t\tnew SetFlywheels(ShooterSubsystem.FLYWHEEL_INTAKE_POWER, -ShooterSubsystem.FLYWHEEL_INTAKE_POWER).start();;\n//\t\t\t\t\tflywheelShootRunning = true;\n//\t\t\t\t} else \n\t\t\t\tif(oi.operator.shootBallFlywheels()) {\n\t\t\t\t\t//new SetFlywheels(0.7, -0.7).start();\n\t\t\t\t\tnew BangBangFlywheels(true).start();\n\t\t\t\t\tflywheelShootRunning = true;\n\t\t\t\t} else {\n\t\t\t\t\t//new SetFlywheels(0, 0).start();//BangBangFlywheels(false).start();\n\t\t\t\t\tflywheelShootRunning = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tif(oi.operator.shoot()){\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kForward).start();\n//\t\t\t} else {\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kReverse).start();\n//\t\t\t}\n//\t\t\t\n\t\t\tif (!allIntakeRunning && !flywheelShootRunning){\n\t\t\t\tnew SetFlywheels(0, 0).start();\n\t\t\t}\n\t\t\t\n\t\t\t//DEFENSE STATE\n\t\t\tif (oi.operator.isDefenseState() && !prevStateDefenseMode){\n\t\t\t\tnew SetDefenseMode().start();\n\t\t\t}\n\t\t}\n\t\t//tells us if bang bang works\n\t\treadyToShoot = ((Math.abs(shooter.getRightFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance)\n\t\t\t\t&& (Math.abs(shooter.getLeftFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance));\n\t\t\n\t\t\n\t\tif (oi.operator.isManualFirePiston() && !prevStateManualFirePiston){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- manual\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\tif(oi.driver.isDrivetrainHighGearButtonPressed()){\n\t\t\tdrivetrain.shift(DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = DrivetrainSubsystem.HIGH_GEAR;\n\t\t} else {\n\t\t\tdrivetrain.shift(!DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = !DrivetrainSubsystem.HIGH_GEAR;\n\t\t}\n\t\t\n\t\tisManualPressed = oi.operator.isManualOverrideOperator();\n\t\t\n\t\tif (!shooterPIDIsRunning){\n\t\t\tif(isManualPressed) {\n\t\t\t\tdouble pivotPower = oi.operator.getManualPower()/2.0;\n\t\t\t\t//shooterPivot.engageBrake(false);\n\t\t\t\tif (pivotPower > 0 && shooterPivot.pastMax() || pivotPower < 0 && shooterPivot.lowerLimitsTriggered()){\n\t\t\t\t\tpivotPower = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tnew SetPivotPower(pivotPower).start();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnew SetPivotPower(0).start();\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"Left: \" + Robot.drivetrain.motors[2].get() + \", Right: \" + (-Robot.drivetrain.motors[0].get()));\n//\t\tSystem.out.println(\"Left V: \" + Robot.drivetrain.leftEncoder.getRate() + \", Right V: \" + Robot.drivetrain.rightEncoder.getRate());\n//\t\tSystem.out.println(\"Accel z: \" + Robot.drivetrain.accel.getZ());\n\t\t\n\t\t\n\t\t//PREV STATES\n\t\tprevStateIntakeUp = oi.operator.intakeUp();\n\t\tprevStateIntakeDeployed = oi.operator.intakeDeploy();\n\t\tprevStateDriveShifter = oi.driver.isDrivetrainHighGearButtonPressed();\n\t\tprevStateShootButton = oi.operator.shoot();\n\t\t\n\t\tprevStatePivotCloseShot = oi.operator.pivotCloseShot();\n\t\tprevStatePivotFarShot = oi.operator.pivotFarShot();\n\t\tprevStateStore = oi.operator.pivotStoreState();\n\t\tprevStateResetSafety = oi.operator.pivotReset();\n\t\t\n\t\tprevStateSemiAutoIntake = oi.operator.isSemiAutonomousIntakePressed();\n\t\tprevStateDefenseMode = oi.operator.isDefenseState();\n\t\t\n\t\tprevStateManualFirePiston = oi.operator.isManualFirePiston();\n\t\tprevStateCameraUp = oi.driver.isCameraUpPressed();\n\t\tprevStateAutoAim = oi.autoAim();\n\t\tprevStateDefenseShot = oi.driver.isDefenseShot();\n\n\t\t\n\t\t//********updating subsystem*******//\n\t\t\n\t\t//shooter hal effect counter\n\t\t//shooterPivot.updateHalEffect();\n\t\t\n\t\t//update the flywheel speed constants\n\t\tshooter.updateShooterConstants();\n\t\t\n\t\t\n\t\t//brake\n\t\tif (!isManualPressed){ //if manual override isn't running\n\t\t\tif (!shooterPIDIsRunning && shooterPivot.motorLeft.get() < DEAD_ZONE_TOLERANCE && shooterPivot.motorRight.get() < DEAD_ZONE_TOLERANCE){\n\t\t\t\t\n\t\t\t\tif (pivotTimer.get() > MIN_STOPPED_TIME){\n\t\t\t\t\tnew EngageBrakes().start();\n\t\t\t\t}\n\t\t\t\t//if motor is 0 for the first time, start the timer\n\t\t\t\tif (!prevStateMotorPowerIs0){\n\t\t\t\t\tpivotTimer.reset();\n\t\t\t\t\tpivotTimer.start();\n\t\t\t\t}\n\t\t\t\t//keep this at the end\n\t\t\t\tprevStateMotorPowerIs0 = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshooterPivot.engageBrake(false);\n\t\t\t\t//keep this at the end\n\t\t\t\tpivotTimer.reset();\n\t\t\t\tprevStateMotorPowerIs0 = false;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tshooterPivot.engageBrake(false);\n\t\t\tpivotTimer.reset();\n\t\t}\n\t\t//System.out.println(shooterPivot.motorLeft.get());\n\t\t\n\t\t//LOGGING AND DASHBOARD\n\t\tlogAndDashboard();\n\t}", "private void updateDiagnostics() {\n\t// driveSubsystem.updateDiagnostics();\n\t// elevatorSubsystem.updateDiagnostics();\n\t// cubeSubsystem.updateDiagnostics();\n\t// cubeVision.updateDiagnostics();\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new DriveWithJoyStickCommand()); // TBD for Commandbased programming\n }", "abstract boolean shouldTaskActivate();", "public void doInitialSchedules() {\n ravenna.schedule();\n milan.schedule();\n venice.schedule();\n\n //Scheduling the public transportaton\n ravenna_milan.activate();\n milan_venice.activate();\n venice_ravenna.activate();\n }", "private void submitCollectSysTrafficTask() {\n\t\tL.i(this.getClass(), \"CollectSysTrafficTask()...\");\n\t\taddTask(new CollectSysTrafficTask());\n\t}", "@Override\n public void autonomousInit()\n {\n autonomousCommand = chooser.getSelected();\n \n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n * = new MyAutoCommand(); break; case \"Default Auto\": default:\n * autonomousCommand = new ExampleCommand(); break; }\n */\n \n // schedule the autonomous command (example)\n if (autonomousCommand != null) \n {\n autonomousCommand.start();\n }\n }", "private synchronized void syncTypeChefAnalyzes() {\r\n\t\tif (threadInExecId.isEmpty()) {\r\n\t\t\tProjectConfigurationErrorLogger.getInstance().clearLogList();\r\n\t\t\trunTypeChefAnalyzes(featureProject.getSourceFolder());\r\n\t\t}\r\n\t\tthreadInExecId.add(Thread.currentThread().getId());\r\n\t}", "void execute() throws Exception {\n\n\t\tif (getSystemState(db) != SYSTEM_STATE_CREATED_COULD_BE_EXACTLY_ONE) {\n\t\t\tInteger ss = getSystemState(db);\n\t\t\tshutDown();\n\t\t\tthrow new Exception(\"System in wrong state for this task: \" + ss);\n\t\t}\n\n\t\tloadExecutionEngine(db);\n\t\tperformUpdate();\n\t\tshutDown();\n\t}", "@Override\n\tpublic boolean combine(EHICommand anotherCommand) {\n\t\treturn false;\n\t}", "public void execute() {\n if (valid()) {\n // behavior of the concrete command\n this.target_territory numArmies += to_deploy;\n }\n }", "@Override\n public void initDefaultCommand() {\n Robot.driveTrain.setDefaultCommand(new xboxDrive());\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "@Override\r\n\tprotected void beforeSendCommands(String cmds) {\n\r\n\t}", "@Override\r\n\tpublic void execute() \r\n\t\t{\n\t\tsourceArcs = parent.getSourceArcsFromID(child.getServerName());\r\n\t\ttargetArcs = parent.getTargetArcsFromID(child.getServerName());\r\n\t\tredo();\r\n\t\t}", "private void registToWX() {\n }", "public synchronized void initializeCommands() {\n/* 101 */ Set<String> ignoredPlugins = new HashSet<String>(this.yaml.getIgnoredPlugins());\n/* */ \n/* */ \n/* 104 */ if (ignoredPlugins.contains(\"All\")) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 109 */ label61: for (Command command : this.server.getCommandMap().getCommands()) {\n/* 110 */ if (commandInIgnoredPlugin(command, ignoredPlugins)) {\n/* */ continue;\n/* */ }\n/* */ \n/* */ \n/* 115 */ for (Class c : this.topicFactoryMap.keySet()) {\n/* 116 */ if (c.isAssignableFrom(command.getClass())) {\n/* 117 */ HelpTopic t = ((HelpTopicFactory)this.topicFactoryMap.get(c)).createTopic(command);\n/* 118 */ if (t != null) { addTopic(t); continue label61; }\n/* */ continue label61;\n/* */ } \n/* 121 */ if (command instanceof PluginCommand && c.isAssignableFrom(((PluginCommand)command).getExecutor().getClass())) {\n/* 122 */ HelpTopic t = ((HelpTopicFactory)this.topicFactoryMap.get(c)).createTopic(command);\n/* 123 */ if (t != null) addTopic(t);\n/* */ \n/* */ } \n/* */ } \n/* 127 */ addTopic((HelpTopic)new GenericCommandHelpTopic(command));\n/* */ } \n/* */ \n/* */ \n/* 131 */ for (Command command : this.server.getCommandMap().getCommands()) {\n/* 132 */ if (commandInIgnoredPlugin(command, ignoredPlugins)) {\n/* */ continue;\n/* */ }\n/* 135 */ for (String alias : command.getAliases()) {\n/* */ \n/* 137 */ if (this.server.getCommandMap().getCommand(alias) == command) {\n/* 138 */ addTopic(new CommandAliasHelpTopic(\"/\" + alias, \"/\" + command.getLabel(), this));\n/* */ }\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 144 */ Collection<HelpTopic> filteredTopics = Collections2.filter(this.helpTopics.values(), Predicates.instanceOf(CommandAliasHelpTopic.class));\n/* 145 */ if (!filteredTopics.isEmpty()) {\n/* 146 */ addTopic((HelpTopic)new IndexHelpTopic(\"Aliases\", \"Lists command aliases\", null, filteredTopics));\n/* */ }\n/* */ \n/* */ \n/* 150 */ Map<String, Set<HelpTopic>> pluginIndexes = new HashMap<String, Set<HelpTopic>>();\n/* 151 */ fillPluginIndexes(pluginIndexes, this.server.getCommandMap().getCommands());\n/* */ \n/* 153 */ for (Map.Entry<String, Set<HelpTopic>> entry : pluginIndexes.entrySet()) {\n/* 154 */ addTopic((HelpTopic)new IndexHelpTopic(entry.getKey(), \"All commands for \" + (String)entry.getKey(), null, entry.getValue(), \"Below is a list of all \" + (String)entry.getKey() + \" commands:\"));\n/* */ }\n/* */ \n/* */ \n/* 158 */ for (HelpTopicAmendment amendment : this.yaml.getTopicAmendments()) {\n/* 159 */ if (this.helpTopics.containsKey(amendment.getTopicName())) {\n/* 160 */ ((HelpTopic)this.helpTopics.get(amendment.getTopicName())).amendTopic(amendment.getShortText(), amendment.getFullText());\n/* 161 */ if (amendment.getPermission() != null) {\n/* 162 */ ((HelpTopic)this.helpTopics.get(amendment.getTopicName())).amendCanSee(amendment.getPermission());\n/* */ }\n/* */ } \n/* */ } \n/* */ }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n setDefaultCommand(new GearPickupClampIn());\n }", "private static void incrementLaunchOrder()\r\n\t{\r\n\t\tlaunchOrder++;\r\n\t}", "public void autonomousInit() {\n autonomousCommand = (Command) autoChooser.getSelected();\n autonomousCommand.start();\n// \n }", "@Override\n public void autonomousPeriodic()\n {\n commonPeriodic();\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n \tsetDefaultCommand(new DriveWithJoystick());\n }", "void\t\tregisterCommandDependentWidget(MiPart widget, String command);", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new VelocityDriveCommand());\n }", "public interface SuperCommand {\n\n /**\n * Setups anything that is needed for this command.\n * <br/><br/>\n * It is recommended you do the following in this method:\n * <ul>\n * <li>Register any of the sub-commands of this command;</li>\n * <li>Define the permission required to use this command using {@link CompositeCommand#setPermission(String)};</li>\n * <li>Define whether this command can only be run by players or not using {@link CompositeCommand#setOnlyPlayer(boolean)};</li>\n * </ul>\n */\n void setup();\n\n /**\n * Returns whether the command can be executed by this user or not.\n * It is recommended to send messages to let this user know why they could not execute the command.\n * Note that this is run previous to {@link #execute(User, String, List)}.\n * @param user the {@link User} who is executing this command.\n * @param label the label which has been used to execute this command.\n * It can be {@link CompositeCommand#getLabel()} or an alias.\n * @param args the command arguments.\n * @return {@code true} if this command can be executed, {@code false} otherwise.\n * @since 1.3.0\n */\n default boolean canExecute(User user, String label, List<String> args) {\n return true;\n }\n\n /**\n * Defines what will be executed when this command is run.\n * @param user the {@link User} who is executing this command.\n * @param label the label which has been used to execute this command.\n * It can be {@link CompositeCommand#getLabel()} or an alias.\n * @param args the command arguments.\n * @return {@code true} if the command executed successfully, {@code false} otherwise.\n */\n boolean execute(User user, String label, List<String> args);\n\n /**\n * Tab Completer for CompositeCommands.\n * Note that any registered sub-commands will be automatically added to the list.\n * Use this to add tab-complete for things like names.\n * @param user the {@link User} who is executing this command.\n * @param alias alias for command\n * @param args command arguments\n * @return List of strings that could be used to complete this command.\n */\n default Optional<List<String>> tabComplete(User user, String alias, List<String> args) {\n return Optional.empty();\n }\n\n}", "@StartStep(localName=\"command-engineering\", after={\"config\"})\n public static void startCommandEngineering(LifecycleContext context) \n {\n // for each class that is a Catalog or Command, create an entry for those in the context.\n ClassScanner classScanner = new ClassScanner(context);\n classScanner.scan();\n }", "private void customCommands(MessageEvent message) {\r\n String command = message.getMessage();\r\n \r\n if (!reservedCommands.contains(command)) {\r\n String[]info;\r\n info = manager.getCommandFromDatabase(command, message.getChannel().getName());\r\n\r\n //checks if the command is in custom mod commands\r\n if (info[1].matches(\"-m\")) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n message.getChannel().send().message(info[0]);\r\n } \r\n else {\r\n message.respond(\"You're not allowed to use this command.\");\r\n }\r\n }\r\n //checks if the command is in the custom commands available to everyone\r\n else if (info[1].matches(\"-e\")) {\r\n message.getChannel().send().message(info[0]);\r\n } \r\n else {\r\n message.respond(\"No such command exists\");\r\n }\r\n }\r\n }", "public static void twoClientSetupProcesses(List<String> aClientTags, List<String> aServerTags ) {\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcessTeams(Arrays.asList(\"RegistryBasedDistributedProgram\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setTerminatingProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Client_0\", \"Client_1\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Registry\", \"Server\", \"Client_1\", \"Client_0\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Registry\", Arrays.asList(\"Registry\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Server\", aServerTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_0\", aClientTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_1\", aClientTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Registry\", FlexibleStaticArgumentsTestCase.TEST_REGISTRY_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Server\", FlexibleStaticArgumentsTestCase.TEST_SERVER_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_0\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_0_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_1\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_1_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Registry\", 500);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Server\", 2000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Client_0\", 5000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Client_1\", 5000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().getProcessTeams().forEach(team -> System.out.println(\"### \" + team));\n}", "@Override\r\n\tpublic void processWorkload() {\n this.spawnUser(periods.get(0).getPeriodStartTimePoint());\t\r\n\t}", "public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCommand.class);\n register(SaveCommand.class);\n \n //shrine cmds\n register(KarmaGetCommand.class);\n register(KarmaSetCommand.class); \n }", "@Override\n\tpublic void launchTasks() throws Exception {\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).switchFridgeOn();\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\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\t1000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).setOndulatorPolicy(\"default\");\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t1000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getFridgeTemperature();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t2000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getBatteryEnergy();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t3000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTaskWithFixedDelay(\t\t\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).controllFridge();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 4000, 1000 // délai entre la fin d'une exécution et la suivante, à modifier \n\t\t\t\t\t\t,TimeUnit.MILLISECONDS) ;\n\t\t\t\t\n\t\t\t\tthis.scheduleTaskWithFixedDelay(\t\t\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getEPConsommation();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 1000, 4000 // délai entre la fin d'une exécution et la suivante, à modifier \n\t\t\t\t\t\t,TimeUnit.MILLISECONDS) ;\n\t}", "private void fireEvents() {\n\n if (clockTickCount % clockTicksTillWorkloadChange == 0) {\n clockEventPublisher.fireTriggerWorkloadHandlerEvent(clockTickCount, intervalDurationInMilliSeconds);\n }\n\n // if (clockTickCount % clockTicksTillScalingDecision == 0) {\n // clockEventPublisher.fireTriggerAutoScalerEvent(clockTickCount,\n // intervalDurationInMilliSeconds);\n // }\n\n clockEventPublisher.fireClockEvent(clockTickCount, intervalDurationInMilliSeconds);\n\n // INfrastruktur\n if (clockTickCount % clockTicksTillPublishInfrastructureState == 0) {\n clockEventPublisher.fireTriggerPublishInfrastructureStateEvent(clockTickCount,\n intervalDurationInMilliSeconds);\n\n }\n\n // Queue\n if (clockTickCount % clockTicksTillPublishQueueState == 0) {\n\n clockEventPublisher.fireTriggerPublishQueueStateEvent(clockTickCount, intervalDurationInMilliSeconds);\n }\n\n }" ]
[ "0.57638615", "0.5596325", "0.552643", "0.54340327", "0.5383419", "0.5363712", "0.53502446", "0.53427285", "0.53291255", "0.5327942", "0.5298728", "0.5262931", "0.5255555", "0.52312833", "0.5223626", "0.5202386", "0.51912916", "0.5179374", "0.51630044", "0.51523274", "0.5143429", "0.5133436", "0.51287884", "0.51007295", "0.50987774", "0.5065754", "0.50593936", "0.5053886", "0.5052827", "0.5049765", "0.5049424", "0.5039456", "0.50268954", "0.50130635", "0.50078684", "0.5002149", "0.49984986", "0.4994803", "0.4994803", "0.49936163", "0.49788898", "0.4973147", "0.4971567", "0.49599177", "0.49570048", "0.49520922", "0.49484915", "0.49469215", "0.4938038", "0.49338964", "0.49306676", "0.49224606", "0.49192882", "0.49154705", "0.49139214", "0.49135542", "0.49127162", "0.49103293", "0.49024618", "0.4900073", "0.4899106", "0.4891082", "0.4885132", "0.4878857", "0.4874752", "0.48715937", "0.48660922", "0.48654273", "0.48650575", "0.48609054", "0.4855063", "0.48528823", "0.4846814", "0.48367566", "0.48357803", "0.4832311", "0.48306474", "0.48143792", "0.48133484", "0.4806116", "0.48031622", "0.47994146", "0.4793614", "0.47919464", "0.4789673", "0.47861615", "0.47858715", "0.47848412", "0.478431", "0.47837642", "0.4781812", "0.47800535", "0.47790134", "0.47788513", "0.4778546", "0.47750968", "0.47704235", "0.4766019", "0.47597164", "0.47585353", "0.47550562" ]
0.0
-1
update LTS and send reply message to "toID"
private void sendReply(Integer toID) { restTemplate.postForObject( config.getConfigNodeInfos().get(toID).getNodeURL() + "/message/reply", new ReplyMessage(updateAndGetLTS(null), nodeID), String.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onUpdateReceived(Update update) {\n if (update.hasMessage() && update.getMessage().hasText()) {\n SendMessage reply = new SendMessage(); // Create a SendMessage object with mandatory fields\n String chatId = update.getMessage().getChatId().toString();\n reply.setChatId(chatId);\n // message.setText(update.getMessage().getText());\n\n String userId = update.getMessage().getChat().getId().toString();\n String firstName = update.getMessage().getChat().getFirstName();\n String lastName = update.getMessage().getChat().getLastName();\n String channel = TELEGRAM_STRING;\n\n User user = getUser(userId, channel);\n if(user == null) {\n user = createUser(userId, firstName, lastName, channel, chatId);\n }\n\n String message = update.getMessage().getText();\n String[] splittedMessage = message.split(\" \");\n\n String command = getCommand(message);\n\n switch (command) {\n case START_COMMAND:\n createReplyMessage(reply, START_MESSAGE);\n break;\n\n case SUBSCRIBE_COMMAND:\n if (splittedMessage.length > 1) {\n if (splittedMessage[1].length() != 6) {\n createReplyMessage(reply, String.format(INVALID_PINCODE, splittedMessage[1]));\n break;\n }\n String pincode = getPincode(splittedMessage[1], userId);\n Integer age = getAge(splittedMessage[2]);\n if (pincode == null || age == null) {\n createReplyMessage(reply, String.format(INVALID_MESSAGE, splittedMessage[1]));\n break;\n }\n Boolean subscribed = subscribe(user, pincode, age);\n if (subscribed) {\n createReplyMessage(reply, String.format(SUBSCRIBED_MESSAGE, pincode, age));\n } else {\n createReplyMessage(reply, String.format(ALREADY_SUBSCRIBED_MESSAGE, pincode, age));\n }\n } else {\n createReplyMessage(reply, INVALID_MESSAGE);\n }\n break;\n\n case UNSUBSCRIBE_COMMAND:\n if (splittedMessage.length > 1) {\n if (splittedMessage[1].length() != 6) {\n createReplyMessage(reply, String.format(INVALID_PINCODE, splittedMessage[1]));\n break;\n }\n String pincode = getPincode(splittedMessage[1], userId);\n Integer age = getAge(splittedMessage[2]);\n if (pincode == null || age == null) {\n createReplyMessage(reply, String.format(INVALID_MESSAGE, String.format(\"%s %s\", splittedMessage[1], splittedMessage[2])));\n break;\n }\n Boolean unsubscribed = unsubscribe(user, pincode, age);\n if (unsubscribed) {\n createReplyMessage(reply, String.format(UNSUBSCRIBED_MESSAGE, pincode, age));\n } else {\n createReplyMessage(reply, String.format(NO_SUBSCRIPTION_FOUND, pincode, age));\n }\n } else {\n createReplyMessage(reply, INVALID_MESSAGE);\n }\n break;\n\n case LIST_SUBSCRIPTION_COMMAND:\n List<String> subscriptionList = getAllSubscription(user);\n String replyMessString = \"\";\n if (!(subscriptionList.size() > 0)) {\n replyMessString = NO_SUBSCRIPTION_MESSAGE;\n }\n int i = 1;\n for (String string : subscriptionList) {\n replyMessString += String.format(\"%s. %s\\n\", i, string);\n i++;\n }\n createReplyMessage(reply, replyMessString);\n break;\n\n case HELP_COMMAND:\n createReplyMessage(reply, HELP_MESSAGE);\n break;\n\n default:\n createReplyMessage(reply, UNRECOGNIZED_COMMAND);\n }\n sendMessage(reply);\n }\n }", "@Override\r\n\tpublic void agree(Integer id,Timestamp createtime) {\n\t\tString sql=\"update message set isread=1,result=1,createtime=? where id=?\";\r\n\t\tObject[] args=new Object[] {createtime,id};\r\n\t\ttry {\r\n\t\t\tupdate(conn, sql, args);\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}", "void update(T message);", "public void pumpingUpdate(String id) {\n }", "public void pumpingUpdate(String id) {\n }", "void sendTo(String from, String to, String m_id);", "private void sendUpdates() {\n\n List<PeerUpdateMessage.Part> parts = new ArrayList<PeerUpdateMessage.Part>();\n for (ActivePlayer peer : player.getSavedNeighbors()) {\n PeerUpdateMessage.Part part = new PeerUpdateMessage.Part(\n peer.character.id, peer.character.getExtrapolatedMotionState());\n parts.add(part);\n }\n\n if (!parts.isEmpty()) {\n PeerUpdateMessage msg = new PeerUpdateMessage(parts);\n new ToClientMessageSink(player.session).sendWithoutConfirmation(msg);\n }\n }", "private void sendUpdateMessage() {\n Hyperium.INSTANCE.getHandlers().getGeneralChatHandler().sendMessage(\n \"A new version of Particle Addon is out! Get it at https://api.chachy.co.uk/download/ParticleAddon/\" + ChachyMod.INSTANCE.getVersion(() -> \"ParticleAddon\"));\n }", "public void update() {\n Dashboard.sendToDash(\"/update Servo \" + id + \" \" + servo.getPosition());\n }", "private static void reply(Status status){\n String tweetedAtMe = \"@\" + status.getUser().getScreenName(); //retrieve username\n String completeReply = tweetedAtMe + \" \" + replyStatus + tweetedAtMe + \"?”\"; //message to tweet\n long inReply = status.getId(); //get id of status for reply\n StatusUpdate statusUpdate = new StatusUpdate(completeReply).inReplyToStatusId(inReply); //Status update is indicated as a reply\n\n Twitter twitter = TwitterInstantiator.instantiateTwitter(); //authorize to tweet on my behalf\n\n try{\n twitter.updateStatus(statusUpdate); //send tweet\n } catch (TwitterException te) {\n System.out.println(\"Ran into twitter exception: \" + te); //this tells me if I've sent too many tweets in a short time\n }\n }", "public void replyMessage(String s) {\n\t\ttextArea.append(\"CTZ Bot : \" + s + \"\\n\");\n\t}", "private void noticefy(Messenger replyTo, int encoderId, Bundle data) {\n\n // obtain new message\n Message message = obtainMessage(Geotracer.MESSAGE_TYPE_NOTICE, encoderId, 0);\n message.setData(data);\n\n // send response\n send(replyTo, message);\n }", "public void receivedUpdateFromServer();", "public static Boolean updateAutoReply(String to, String message) {\r\n\r\n\t\tContentValues values = new ContentValues();\r\n\t\tvalues.put(MESSAGE, message);\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// Perform Update\r\n\t\t\tString strFilter = \"sms_to='\" + to + \"'\";\r\n\t\t\tdb.update(DbHelper.TABLE_AUTO_REPLY, values, strFilter, null);\r\n\t\t\t//Log.d(\"AUTO_REPLY UPDATE\", \"Record Updated!\");\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//Log.e(\"AUTO_REPLY UPDATE\", \"error : \" + e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\r\n\t}", "public TLUpdateShortSentMessage() {\n super();\n }", "void update(String message, Command command, String senderNickname);", "@Override\r\n\tpublic void disagree(Integer id,Timestamp createtime) {\n\t\tString sql=\"update message set isread=1,result=0,createtime=? where id=?\";\r\n\t\tObject[] args=new Object[] {createtime,id};\r\n\t\ttry {\r\n\t\t\tupdate(conn, sql,args);\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}", "public void notificationUpdate(long notificationID, String recipient, String verb, String actor){\n String unread = \"false\";\n Callback<Notifications> callback = new Callback<Notifications>() {\n\n @Override\n public void success(Notifications serverResponse, Response response2) {\n if(serverResponse.getResponseCode() == 0){\n BusProvider.getInstance().post(produceNotificationServerEvent(serverResponse));\n }else{\n BusProvider.getInstance().post(produceErrorEvent(serverResponse.getResponseCode(),\n serverResponse.getMessage()));\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.updateNotification(notificationID, recipient, verb, unread, actor, callback);\n }", "private void sendTextMessageToFriend(String friendsPhoneNumber) {\n String newMsg = \"I am nearing your location. (Now ending trip and automatic text notifications)\";\n Toast.makeText(this, \"Notifying: \" + friendsPhoneNumber, Toast.LENGTH_SHORT).show();\n SmsManager smsManager = SmsManager.getDefault();\n smsManager.sendTextMessage(friendsPhoneNumber, null, newMsg, null, null);\n showEndOfTripNotification();\n stopServiceAndLocationUpdates();\n }", "@Override\n public void onClick(final View v) {\n if (listChanged) {\n new Thread() {\n @Override\n public void run() {\n try {\n StormSQL.updateTable(table.getOrdered());\n table.setAllSent();\n StormBase.CHEF_FB.setValue(0);\n StormBase.CHEF_FB.setValue(1);\n Handler handler = new Handler(v.getContext().getMainLooper()) {\n @Override\n public void handleMessage(android.os.Message msg) {\n super.handleMessage(msg);\n Toast.makeText(v.getContext(), \"Sent successfully.\", TL).show();\n }\n };\n handler.sendMessage(handler.obtainMessage());\n listChanged = false;\n } catch (SQLException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n }.start();\n } else\n Toast.makeText(v.getContext(), \"Nothing changed.\", TS).show();\n }", "public void onRecieve(RoundTimeMessage message) {\n\n\n }", "public void smqOnChange(final long subscribers, final long tid);", "void sendInterval() {\n OscilloscopeMsg omsg = new OscilloscopeMsg();\n\n omsg.set_version(version);\n omsg.set_interval(interval);\n omsg.set_token(Constants.TOKEN_SECRET_PC);\n\n System.out.println(\"Send out omsg\");\n try {\n mote.send(MoteIF.TOS_BCAST_ADDR, omsg);\n }\n catch (IOException e) {\n window.error(\"Cannot send message to mote\");\n }\n }", "@Override\n public void run() {\n try {\n while(true) {\n Thread.sleep(NOTIFY_PERIOD);\n this.handle.tryExtendTTL();\n }\n } catch (InterruptedException ex) {\n // silient ignore\n } catch (Exception ex) {\n LOG.error(\"exception occurred\", ex);\n }\n }", "public void update(String msg){\n //Do something\n\t\tSystem.out.println(\"----------------------------------------------\");\n System.out.println(\"HTTPAction was fired: \" + strHTTPAction);\n\t\tSystem.out.println(\"Observer Type: \" + type);\n System.out.println(\"Message from Observable Activity: \" + msg);\n\t\tSystem.out.println(\"----------------------------------------------\");\n\t\tsetActionDone(true);\n\t\tif(!action.equals(\"none\")){\n\t\t\ttry{\n\t\t\t\tgenerateAndSendEmail(this.getAction(),this.getObserverHTTPAction(),Integer.toString(getJavaproductModel().getproductId()));\n\t\t\t\tSystem.out.println(\"\\n\\n ===> Your Java Program has just sent an Email successfully. Check your email..\");\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n }", "public void reply(){\n ArrayList<String> potentialReceivers= messageController.replyOptionsForSpeaker(speaker);\n ArrayList<String> options = listBuilderWithIntegers(potentialReceivers.size());\n speakerMessageScreen.replyOptions(messageController.replyOptionsForSpeakerInString(speaker));\n if(messageController.replyOptionsForSpeakerInString(speaker).size() != 0) {\n String answerInString = scanner.nextLine();\n while(!options.contains(answerInString)){\n speakerMessageScreen.invalidInput(answerInString);\n answerInString = scanner.nextLine();\n }\n\n // now answer is valid\n\n int answerInInteger = Integer.parseInt(answerInString);\n String receiver = potentialReceivers.get(answerInInteger - 1);\n\n speakerMessageScreen.whatMessage();\n String messageContext = scanner.nextLine();\n messageController.sendMessage(speaker, receiver, messageContext);\n speakerMessageScreen.congratulations();\n }\n\n }", "@Override\n public void opponentSurrender(int id) {\n try {\n if (getClientInterface() != null)\n getClientInterface().notifyOpponentSurrender(id);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending opponent surrender error\");\n }\n }", "public abstract void updateWhatsOn();", "private void sendTimelineNotification(int timelineUpdateCount) {\n\t\tLog.d(TAG, \"sendTimelineNotification'ing\");\n\n\t\tPendingIntent pendingIntent = PendingIntent.getActivity(this, -1,\n\t\t new Intent(this, TwitterTimelineActivity.class),\n\t\t PendingIntent.FLAG_UPDATE_CURRENT);\n\t\tthis.noti.when = System.currentTimeMillis();\n\t\tthis.noti.flags |= Notification.FLAG_AUTO_CANCEL;\n\t\tCharSequence notiTitle = this.getText(R.string.titleNotification);\n\t\tCharSequence notiSummary = this.getString(R.string.descNotification, timelineUpdateCount);\n\t\t\n\t\tthis.noti.setLatestEventInfo(this, notiTitle, notiSummary, pendingIntent);\n\t\tthis.notiManager.notify(0, this.noti);\n\t\t\n\t\tLog.d(TAG, \"sendNotificationed\");\n\t}", "private void sendUpdateConnectionInfo() {\n\n }", "public void send(Message message) {\n\t\tthis.clockSer.addTS(this.localName);\n\t\t((TimeStampedMessage)message).setMsgTS(this.clockSer.getTs().makeCopy());\nSystem.out.println(\"TS add by 1\");\n\n\t\ttry {\n\t\t\tparseConfig();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessage.set_source(localName);\n\t\tmessage.set_seqNum(currSeqNum++);\n\t\t\t\t\n\t\tRule rule = null;\n\t\tif((rule = matchRule(message, RuleType.SEND)) != null) {\n\t\t\tif(rule.getAction().equals(\"drop\")) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\telse if(rule.getAction().equals(\"duplicate\")) {\n\t\t\t\tMessage dupMsg = message.makeCopy();\n\t\t\t\tdupMsg.set_duplicate(true);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/* Send 'message' and 'dupMsg' */\n\t\t\t\tdoSend(message);\n\t\t\t\t/* update the timestamp */\n\t\t\t\tthis.clockSer.addTS(this.localName);\n\t\t\t\t((TimeStampedMessage)dupMsg).setMsgTS(this.clockSer.getTs().makeCopy());\nSystem.out.println(\"TS add by 1\");\n\t\t\t\tdoSend(dupMsg);\n\t\t\t\t\n\t\t\t\t/* We need to send delayed messages after new message.\n\t\t\t\t * This was clarified in Live session by Professor.\n\t\t\t\t */\n\t\t\t\tfor(Message m : delaySendQueue) {\n\t\t\t\t\tdoSend(m);\n\t\t\t\t}\n\t\t\t\tdelaySendQueue.clear();\n\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(rule.getAction().equals(\"delay\")) {\n\t\t\t\tdelaySendQueue.add(message);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"We get a wierd message here!\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tdoSend(message);\n\t\t\t\n\t\t\t/* We need to send delayed messages after new message.\n\t\t\t * This was clarified in Live session by Professor.\n\t\t\t */\n\t\t\tfor(Message m : delaySendQueue) {\n\t\t\t\tdoSend(m);\n\t\t\t}\n\t\t\tdelaySendQueue.clear();\n\t\t}\n\t\t\n\t}", "private void sendUpdate(String gameString, int sequenceNo) throws IOException\n\t{\n\t\tfor (Client client : clients)\n\t\t{\n\t\t\t//System.out.println(\"Sending packet to \" + client.toString()); \n\t\t\tUDPSender sender;\n\t\t\ttry {\n\t\t\t\tsender = new UDPSender(client, client.port, gameString, sequenceNo);\n\t\t\t\tThread worker = new Thread(sender);\n\t\t\t\tworker.start();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void sendData() {\n\n Thread update = new Thread() {\n public void run() {\n while (opModeIsActive() && (tfod != null)) {\n path.updateTFODData(recognize());\n path.updateHeading();\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n }\n if (isStopRequested() && tfod != null)\n tfod.shutdown();\n }\n }\n };\n update.start();\n }", "public void onTick(long millisUntilFinished) {\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }", "@Override\n\tpublic void update(ReplyDTO dto) throws Exception {\n\t\tsession.update(\"ReplyMapper.update\",dto);\n\t}", "@Scheduled(fixedDelay = 3000)\n public void sendAdhocMessages() {\n log.info(loadQuotations.loadLastQuotations());\n simpMessagingTemplate.convertAndSend(\"/topic/user\", loadQuotations.loadLastQuotations());\n }", "@Override\n\tpublic void onSendPrivateChatDone(byte result) {\n\t\tif(WarpResponseResultCode.SUCCESS==result){\n\t\t\tLog.d(\"Receiver\", \"He is Online\");\n\t\t\tChatActivity.this.runOnUiThread(new Runnable() {\n\t\t\t\t public void run() {\n\t\t\t\t\t sa = ((SharingAtts)getApplication());\n\t\t\t\t\t ItemTest it = new ItemTest();\n\t\t\t\t\t String colNames = it.printData(\"chat\")[1];\n\t\t\t\t\t DBManager dbm = new DBManager(ChatActivity.this, colNames,\"chat\",it.printData(\"chat\")[0]);\n\t\t\t\t\t dbm.openToWrite();\n\t\t\t\t\t dbm.cretTable();\n\t\t\t\t\t msg = msg.replace(\" \", \"?*\");\n\t\t\t\t\t dbm.insertQuery(sa.name+\" \"+msg+\" \"+challenged, colNames.split(\" \")[1]+\" \"+colNames.split(\" \")[2]+\" \"+colNames.split(\" \")[3]);\n\t\t\t\t\t dbm.close();\n\t\t\n\t\t\t\t }\n\t\t\t});\n\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tChatActivity.this.runOnUiThread(new Runnable() {\n\t\t\t\t public void run() {\n\t\t\t\t\t Toast.makeText(ChatActivity.this, \"Receiver is offline. Come back later\", Toast.LENGTH_SHORT).show();\t\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t});\n\t\t}\n\t}", "public void sendDirectedPresence() {\n Cursor cursor = getContentResolver().query(\n Roster.CONTENT_URI,\n new String[]{Roster.LAST_UPDATED},\n null, null, \"last_updated desc\"\n );\n if (cursor.moveToFirst()) {\n long after = cursor.getLong(\n cursor.getColumnIndex(Roster.LAST_UPDATED));\n Presence presence = new Presence(Type.available);\n presence.setTo(\"broadcaster.buddycloud.com\");\n client.sendFromAllResources(presence);\n }\n cursor.close();\n }", "private void handleMessage (Message message, Update update){\r\n\t\tSendMessage sendMessage = new SendMessage();\r\n\t\tLong chatId = update.getMessage().getChatId();\r\n\t\tif (isPolling == true){//Si el comando de la encuesta ha sido pulsado, modo encuesta...\t\t\t\r\n\t\t\tif (haveQuestion == false){//Si es falso todavia no se ha asignado la pregunta...\r\n\t\t\t\tpoll.setQuestion(message.getText());//Asignamos\tla pregunta.\t\t\t\r\n\t\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\t\tsendMessage.setParseMode(Poll.parseMode);\r\n\t\t\t\tsendMessage.setText(BotConfig.POLL_QUESTION_STRING+ message.getText() +BotConfig.POLL_FIRST_ANSWER_STRING);\r\n\t\t\t\thaveQuestion = true;//Marcamos que hay pregunta.\r\n\t\t\t} else {//En este estado tenemos la pregunta, asignamos las respuestas.\r\n\t\t\t\tpoll.setAnswers(message.getText());\t\t\t\t\r\n\t\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\t\tsendMessage.setText(BotConfig.POLL_ANSWER_STRING);\r\n\t\t\t}\t\t\t\r\n\t\t} else if(update.getMessage().getFrom().getId() != null){//Si el id del usuario no es null...\r\n\t\t\tInteger id = update.getMessage().getFrom().getId();\r\n\t\t\tif (id == BotConfig.DEV_ID){//Si es mi id...\r\n\t\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\t\tsendMessage.setText(BotConfig.DEV_WORDS);//Mensaje personalizado...xD\r\n\t\t\t}\t\r\n\t\t} else {//Sino respondemos con el mismo texto enviado por el usuario.\r\n\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\tsendMessage.setText(update.getMessage().getText());\r\n\t\t} \t\t\r\n try { \t\r\n execute(sendMessage);//Enviamos mensaje. \r\n } catch (TelegramApiException e) {\r\n \tBotLogger.error(LOGTAG, e);//Guardamos mensaje y lo mostramos en pantalla de la consola.\r\n e.printStackTrace();\r\n }\r\n\t}", "public void messageResp(int respId) {\n\r\n\t}", "private void sendUpdate(int dest) {\n Set<AS> prevAdvedTo = this.adjOutRib.get(dest);\n Set<AS> newAdvTo = new HashSet<AS>();\n BGPPath pathOfMerit = this.locRib.get(dest);\n\n /*\n * If we have a current best path to the destination, build a copy of\n * it, apply export policy and advertise the route\n */\n if (pathOfMerit != null) {\n BGPPath pathToAdv = pathOfMerit.deepCopy();\n\n pathToAdv.prependASToPath(this.asn);\n\n /*\n * Advertise to all of our customers\n */\n for (AS tCust : this.customers) {\n tCust.advPath(pathToAdv);\n newAdvTo.add(tCust);\n }\n\n /*\n * Check if it's our locale route (NOTE THIS DOES NOT APPLY TO\n * HOLE PUNCHED ROUTES, so the getDest as opposed to the\n * getDestinationAS _IS_ correct) or if we learned of it from a\n * customer\n */\n if (pathOfMerit.getDest() == this.asn\n || (this.getRel(pathOfMerit.getNextHop()) == 1)) {\n for (AS tPeer : this.peers) {\n tPeer.advPath(pathToAdv);\n newAdvTo.add(tPeer);\n }\n for (AS tProv : this.providers) {\n tProv.advPath(pathToAdv);\n newAdvTo.add(tProv);\n }\n }\n }\n\n /*\n * Handle the case where we had a route at one point, but have since\n * lost any route, so obviously we should send a withdrawl\n */\n if (prevAdvedTo != null) {\n prevAdvedTo.removeAll(newAdvTo);\n for (AS tAS : prevAdvedTo) {\n tAS.withdrawPath(this, dest);\n }\n }\n\n /*\n * Update the adj-out-rib with the correct set of ASes we have\n * adverstised the current best path to\n */\n this.adjOutRib.put(dest, newAdvTo);\n }", "private void updateStatus(MsgEvent event) {\n//\t\t | Operation | Body? | SIP-If-Match? | Expires Value |\r\n//\t\t +-----------+-------+---------------+---------------+\r\n//\t\t | Initial | yes | no | > 0 |\r\n//\t\t | Refresh | no | yes | > 0 |\r\n//\t\t | Modify | yes | yes | > 0 |\r\n//\t\t | Remove | no | yes | 0 |\r\n//\t\t +-----------+-------+---------------+---------------+\r\n\t\tif (event instanceof SIPMsg) {\r\n\t\t\tRequest req = ((SIPMsg)event).getRequest();\r\n\t\t\tif (req != null) {\r\n\t\t\t\tString publish = req.toString();\r\n\t\t\t\t// Get the SIP-If-Match information\r\n\t\t\t\tString entityTag = sipLocator.getSIPParameter(\"SIP-If-Match\", \r\n\t\t\t\t\t\t\"entity-tag\", MsgQueue.FIRST, publish);\r\n\t\t\t\t// Get the Expires value\r\n\t\t\t\tString expires = sipLocator.getSIPParameter(\"Expires\", \r\n\t\t\t\t\t\t\"value\", MsgQueue.FIRST, publish);\r\n\t\t\t\t// Get the Content-Length\tvalue\r\n\t\t\t\tString length = sipLocator.getSIPParameter(\"Content-Length\", \r\n\t\t\t\t\t\t\"value\", MsgQueue.FIRST, publish);\r\n\t\t\t\tint exp = -1;\r\n\t\t\t\tboolean hasBody = false;\r\n\t\t\t\tint contentLen = -1;\r\n\t\t\t\tif (length != null) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tcontentLen = Integer.parseInt(length);\r\n\t\t\t\t\t\tif (expires != null) {\r\n\t\t\t\t\t\t\texp = Integer.parseInt(expires);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (contentLen > 0)\r\n\t\t\t\t\t\t\thasBody = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (NumberFormatException nfe) {\r\n\t\t\t\t\t\tlogger.warn(PC2LogCategory.Model, subCat,\r\n\t\t\t\t\t\t\t\t\"PresenceSever retrieved a value from the Content-Length header that doesn't appear to be an integer.\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// Initial condition\r\n\t\t\t\tif (entityTag == null) {\r\n\t\t\t\t\tProperties p = SystemSettings.getPropertiesByValue(SettingConstants.IP, event.getSrcIP());\r\n\t\t\t\t\tif (p != null) {\r\n\t\t\t\t\t\tString ne = p.getProperty(SettingConstants.NE);\r\n\t\t\t\t\t\tPresenceData pd = new PresenceData(ne, PresenceStatus.OPEN, System.currentTimeMillis());\r\n\t\t\t\t\t\tneTable.put(pd.getLabel(), pd);\r\n\t\t\t\t\t\tentityTable.put(pd.getEntity(), pd);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if (entityTag != null) {\r\n\t\t\t\t\t// Remove condition\r\n\t\t\t\t\tif (contentLen == 0 && exp == 0) {\r\n\t\t\t\t\t\tPresenceData pd = entityTable.get(entityTag);\r\n\t\t\t\t\t\tif (pd != null)\r\n\t\t\t\t\t\t\tnotifyWatchers.add(pd);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (exp > 0) {\r\n\t\t\t\t\t\t// This indicates that the device is only updating its existing\r\n\t\t\t\t\t\t// status.\r\n\t\t\t\t\t\tPresenceData pd = entityTable.remove(entityTag);\r\n\t\t\t\t\t\tif (pd != null) {\r\n\t\t\t\t\t\t\tpd.updateEntity(System.currentTimeMillis());\r\n\t\t\t\t\t\t\tentityTable.put(pd.getEntity(), pd);\r\n\t\t\t\t\t\t\tif (hasBody) {\r\n\t\t\t\t\t\t\t\t// This indicates that the device is modifying its information\r\n\t\t\t\t\t\t\t\tnotifyWatchers.add(pd);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void sendUpdateBroadcastForResult(AfChapterInfo afChapterInfo) {\n\t\tafChapterInfo.eventBus_action=Constants.UPDATE_BROADCAST_MSG;\r\n\t\tEventBus.getDefault().post(afChapterInfo);\r\n\t\t/*Intent intent = new Intent(Constants.UPDATE_BROADCAST_MSG);\r\n\t\tintent.putExtra(Constants.BROADCAST_MSG_OBJECT, afChapterInfo);\r\n\t\tPalmchatApp.getApplication().sendBroadcast(intent);*/\r\n\t}", "private void sendNotification(String msg) {\n Log.e(\"GCM MESSAGE\", \"\" + mes);\n Intent i=new Intent(this,MainActivity.class);\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n try {\n JSONObject root=new JSONObject(mes);\n String status=root.optString(\"status\");\n if (status.equals(\"1\"))\n {\n String keys=root.optString(\"keyvalue\");\n String expiry=root.optString(\"expirytime\");\n DbHelper helper=new DbHelper(getBaseContext());\n helper.insertContact(keys,expiry);\n Toast.makeText(getApplicationContext(),\"Key database updated\",Toast.LENGTH_SHORT).show();\n\n }\n else\n {\n try {\n String doorstatus= root.optString(\"doorstatus\");\n if (doorstatus.equals(\"1\"))\n {\n tts= new TextToSpeech(getApplicationContext(), new TextToSpeech.OnInitListener() {\n @Override\n public void onInit(int status) {\n if (status != TextToSpeech.ERROR) {\n int result= tts.setLanguage(Locale.getDefault());\n// tts.setPitch(1.0f);int result = tts.setLanguage(Locale.US);\n\n if (result == TextToSpeech.LANG_MISSING_DATA\n || result == TextToSpeech.LANG_NOT_SUPPORTED) {\n Toast.makeText(getApplicationContext(),\"Voice not supported\",Toast.LENGTH_LONG).show();\n }\n else {\n tts.speak(\"Door Unlocked\", TextToSpeech.QUEUE_FLUSH, null);\n Toast.makeText(getApplicationContext(),\"Door Unlocked\",Toast.LENGTH_LONG).show();\n }\n }\n\n }\n });\n\n }\n else\n {\n tts= new TextToSpeech(getApplicationContext(), new TextToSpeech.OnInitListener() {\n @Override\n public void onInit(int status) {\n if (status != TextToSpeech.ERROR) {\n int result= tts.setLanguage(Locale.getDefault());\n// tts.setPitch(1.0f);int result = tts.setLanguage(Locale.US);\n\n if (result == TextToSpeech.LANG_MISSING_DATA\n || result == TextToSpeech.LANG_NOT_SUPPORTED) {\n Toast.makeText(getApplicationContext(),\"Voice not supported\",Toast.LENGTH_LONG).show();\n }\n else {\n tts.speak(\"Door Locked\", TextToSpeech.QUEUE_FLUSH, null);\n Toast.makeText(getApplicationContext(),\"Door Locked\",Toast.LENGTH_LONG).show();\n }\n }\n\n }\n });\n }\n } catch (Exception e1) {\n Toast.makeText(getApplicationContext(),\"GCM \"+mes,Toast.LENGTH_LONG).show();\n }\n }\n } catch (JSONException e) {\n\n try {\n JSONObject root=new JSONObject(mes);\n String doorstatus= root.optString(\"doorstatus\");\n if (doorstatus.equals(\"1\"))\n {\n tts= new TextToSpeech(getApplicationContext(), new TextToSpeech.OnInitListener() {\n @Override\n public void onInit(int status) {\n if (status != TextToSpeech.ERROR) {\n int result= tts.setLanguage(Locale.getDefault());\n// tts.setPitch(1.0f);int result = tts.setLanguage(Locale.US);\n\n if (result == TextToSpeech.LANG_MISSING_DATA\n || result == TextToSpeech.LANG_NOT_SUPPORTED) {\n Toast.makeText(getApplicationContext(),\"Voice not supported\",Toast.LENGTH_LONG).show();\n }\n else {\n tts.speak(\"Door Unlocked\", TextToSpeech.QUEUE_FLUSH, null);\n Toast.makeText(getApplicationContext(),\"Door Unlocked\",Toast.LENGTH_LONG).show();\n }\n }\n\n }\n });\n\n }\n else\n {\n tts= new TextToSpeech(getApplicationContext(), new TextToSpeech.OnInitListener() {\n @Override\n public void onInit(int status) {\n if (status != TextToSpeech.ERROR) {\n int result= tts.setLanguage(Locale.getDefault());\n// tts.setPitch(1.0f);int result = tts.setLanguage(Locale.US);\n\n if (result == TextToSpeech.LANG_MISSING_DATA\n || result == TextToSpeech.LANG_NOT_SUPPORTED) {\n Toast.makeText(getApplicationContext(),\"Voice not supported\",Toast.LENGTH_LONG).show();\n }\n else {\n tts.speak(\"Door Locked\", TextToSpeech.QUEUE_FLUSH, null);\n Toast.makeText(getApplicationContext(),\"Door Locked\",Toast.LENGTH_LONG).show();\n }\n }\n\n }\n });\n }\n } catch (JSONException e1) {\n Toast.makeText(getApplicationContext(),\"GCM \"+mes,Toast.LENGTH_LONG).show();\n }\n }\n\n }", "public void sendConfirmPaid(Long telegramId, String text) {\n String url = \"https://api.telegram.org/bot%s/sendMessage?chat_id=%s&text=%s\";\n// url = String.format(url, properties.getProperties().getProperty(\"botToken\"), String.valueOf(telegramId), text);\n url = String.format(url, \"967287812:AAEAjnZ6gIVczLECLc9J99KAz9oYWORaE9Q\", String.valueOf(telegramId), text);\n try {\n restTemplate.exchange(url, HttpMethod.POST, new HttpEntity<>(\"\"), String.class);\n } catch (HttpClientErrorException | ResourceAccessException e) {\n e.printStackTrace();\n } finally {\n System.out.println(Thread.currentThread() + \" RUNNING\");\n }\n }", "public Ordercl askUpdate (Ordercl toUpdate){\n Double value = askDouble(\"Set a new order value: \");\n System.out.println(\"Set a new order status: \");\n String status = in.nextLine();\n Integer client_id = askInt(\"Set a new order receiver (client_id) \");\n \n toUpdate.setOrd_value(value);\n toUpdate.setStatus(status);\n toUpdate.setClient(client_id);\n \n return toUpdate;\n }", "@Override\r\n public void update(String message) {\r\n send(message);\r\n }", "@Override\n public void run() {\n\n try {\n LocalDateTime now = LocalDateTime.now();\n voda bot = new voda();\n\n List<Integer> notifyTime = Arrays.asList(7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23);\n int currentHour = now.getHour();\n\n ArrayList<Integer> consulted = dbmodel.MysqlCon.getFollowers();\n\n for (Integer ntime : notifyTime) {\n if (ntime == currentHour) {\n for (Integer consultedUser : consulted) {\n bot.sendTextToIdMessage(consultedUser, dbmodel.MysqlCon.getEveryDayWaterUserWaterCountView(consultedUser));\n }\n }\n }\n\n\n } catch (Exception e) {\n System.out.println();\n }\n }", "@Override\n \tprotected final void onProgressUpdate(final Boolean... progress) {\n \t\tif (this.to == null) {\n \t\t\tAndGMXsms.dialogString = AndGMXsms.me.getResources().getString(\n \t\t\t\t\tR.string.log_update);\n \t\t\tAndGMXsms.dialog = ProgressDialog.show(AndGMXsms.me, null,\n \t\t\t\t\tAndGMXsms.dialogString, true);\n \t\t} else {\n \t\t\tAndGMXsms.dialogString = AndGMXsms.me.getResources().getString(\n \t\t\t\t\tR.string.log_sending)\n \t\t\t\t\t+ \" (\" + this.to + \")\";\n \t\t\tAndGMXsms.dialog = ProgressDialog.show(AndGMXsms.me, null,\n \t\t\t\t\tAndGMXsms.dialogString, true);\n \t\t}\n \t}", "private void sendNotifications() {\n for (long sid : self.getCurrentAndNextConfigVoters()) {\n QuorumVerifier qv = self.getQuorumVerifier();\n ToSend notmsg = new ToSend(\n ToSend.mType.notification,\n proposedLeader,\n proposedZxid,\n logicalclock.get(),\n QuorumPeer.ServerState.LOOKING,\n sid,\n proposedEpoch,\n qv.toString().getBytes(UTF_8));\n\n LOG.debug(\n \"Sending Notification: {} (n.leader), 0x{} (n.zxid), 0x{} (n.round), {} (recipient),\"\n + \" {} (myid), 0x{} (n.peerEpoch) \",\n proposedLeader,\n Long.toHexString(proposedZxid),\n Long.toHexString(logicalclock.get()),\n sid,\n self.getMyId(),\n Long.toHexString(proposedEpoch));\n\n sendqueue.offer(notmsg);\n }\n }", "public void broadcastState() {\n StringBuilder sb = new StringBuilder();\n sb.append(MSG_STATE);\n\n if(mService.isTransmitterMode()) {\n sb.append(\" t \");\n }\n else {\n sb.append(\" r \");\n }\n\n sb.append(mService.getVADThreshold());\n sb.append(\" \");\n\n sb.append(mService.getNoiseTracker().getLastNoiseHeard() / 1000);\n\n try {\n sendChannelMessage(sb.toString());\n }\n catch(RemoteException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void receiveMessage(AgentID sender, Action action)\n {\n super.receiveMessage(sender, action);\n\n // update the value of Care_Value、Reluctance、Agreement_Value every ten rounds\n if (getTimeLine() instanceof DiscreteTimeline) {\n DiscreteTimeline discreteTimeline = (DiscreteTimeline)getTimeLine();\n int cRound = discreteTimeline.getRound();\n if (cRound % 10 == 0) {\n\n // care_value increase 4% every ten rounds\n Care_Value = Care_Value * (1 + 0.04);\n if (Care_Value > 0.72) {\n Care_Value = 0.72;\n }\n\n // reluctance decrease 4% every ten rounds\n Reluctance = Reluctance * (1 - 0.06);\n if (timeline.getTime() < 7 && Reluctance < 0.9) {\n Reluctance = 0.9;\n }\n\n List<BidDetails> allBids = new ArrayList<>(feasibleBids);\n // find a common set for all opponent\n Set<BidDetails> commonBids = opponentModelInterface.queryCommonBestBidsSet(allBids, Number_of_Bids);\n List<BidDetails> commonBidsList = new ArrayList<>(commonBids);\n // sort the common set\n Collections.sort(commonBidsList);\n // AV = Utility(BidBest) * Reluctance\n Agreement_Value = (commonBidsList.get(commonBidsList.size() - 1).getMyUndiscountedUtil()) * Reluctance;\n if (Agreement_Value > 0.85) {\n Agreement_Value = 0.85;\n }\n\n if (Agreement_Value < Minimum_Offer_Threshold * (3 - Math.pow(2, timeline.getTime()))) {\n Agreement_Value = Minimum_Offer_Threshold * (3 - Math.pow(2, timeline.getTime()));\n }\n }\n }\n\n if (action instanceof Inform) {\n // receive message first time, update the number of opponent\n opponentModelInterface = new OpponentModelManager(getNumberOfParties());\n }else if (action instanceof Offer) {\n // save the last offer\n lastOffer = ((Offer) action).getBid();\n // update opponent model by new bid from opponent\n opponentModelInterface.handleBidFromSender(sender.toString(), lastOffer, getDomain());\n }\n }", "public void sendToAdmin(String sessionid, Smsmodel sms, String vals) throws ProtocolException, MalformedURLException, IOException {\r\n String val = null;\r\n System.out.println(\"hello boy \" + vals);\r\n String sender = \"DND_BYPASSGetItDone\";\r\n URL url = new URL(\"http://www.smslive247.com/http/index.aspx?cmd=sendmsg&sessionid=\" + sessionid + \"&message=\" + sms.getVendorMessage() + \"&sender=\" + sender + \"&sendto=\" + vals + \"&msgtype=0\");\r\n //http://www.bulksmslive.com/tools/geturl/Sms.php?username=abc&password=xyz&sender=\"+sender+\"&message=\"+message+\"&flash=0&sendtime=2009-10- 18%2006:30&listname=friends&recipients=\"+recipient; \r\n //URL gims_url = new URL(\"http://smshub.lubredsms.com/hub/xmlsmsapi/send?user=loliks&pass=GJP8wRTs&sender=nairabox&message=Acct%3A5073177777%20Amt%3ANGN1%2C200.00%20CR%20Desc%3ATesting%20alert%20Avail%20Bal%3ANGN%3A1%2C342%2C158.36&mobile=08065711040&flash=0\");\r\n final String USER_AGENT = \"Mozilla/5.0\";\r\n\r\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\r\n con.setRequestMethod(\"GET\");\r\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\r\n int responseCode = con.getResponseCode();\r\n BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\r\n String inputLine;\r\n StringBuffer response = new StringBuffer();\r\n // System.out.println(messageModel.getBody() + \" dude\");\r\n while ((inputLine = in.readLine()) != null) {\r\n response.append(inputLine);\r\n }\r\n in.close();\r\n String responseCod = response.toString();\r\n }", "@Override\n\tpublic void reSendRequest(int rentId, String message) {\n\t\trentPortMapper.modifyRentPort(rentId, message);\n\t}", "public void sendReply(String cmd, String reply) {\n if (cmd.equals(\"ACTION_REPLY\")){\n long now = System.currentTimeMillis();\n long processTime = now - startTime;\n out.println(cmd + \"<<\"+processTime+\":\"+ reply);\n }else{\n //out.println(cmd + \"<<null\" + reply);\n out.println(cmd + \"<<\" + reply); //changed per drew's suggestion\n }\n \n }", "public void updateResponse(String msgid, String choice, String type) {\n\n SQLiteDatabase db = openConnection();\n\n if (type.equals(TYPE_YES_NO)) {\n\n if (choice.equals(RESPONSE_YES)) {\n\n String sql = \"UPDATE \" + RESPONSE_TABLE_YES_NO_NAME + \" SET \" + RESPONSE_KEY_YES + \" = \" + RESPONSE_KEY_YES + \" + 1 WHERE \" + RESPONSE_KEY_MSGID + \"= '\" + msgid + \"'\";\n\n db.execSQL(sql);\n\n }\n\n if (choice.equals(RESPONSE_NO)) {\n String sql = \"UPDATE \" + RESPONSE_TABLE_YES_NO_NAME + \" SET \" + RESPONSE_KEY_NO + \" = \" + RESPONSE_KEY_NO + \"+1 WHERE \" + RESPONSE_KEY_MSGID + \"= '\" + msgid + \"'\";\n db.execSQL(sql);\n }\n }\n\n closeConnection();\n\n }", "public void updateLastSentMessageId(Chat chat) {\n spannerTemplate.update(chat, \"ChatID\", \"LastSentMessageID\");\n }", "private void tts(String str){\n\t\ttxtSpeechInput.setText(str);\n\t\tt1.speak(str , TextToSpeech.QUEUE_FLUSH, null);\n\t\twhile(t1.isSpeaking()){\n\t\t\t;\n\t\t}\n\t}", "private void sendAnswerSdp(final RTCSessionDescription sdp) {\n\t\tif (connectionParameters.loopback) {\n\t\t\tLOGGER.log(Level.ERROR, \"Sending answer in loopback mode.\");\n\t\t\treturn;\n\t\t}\n\n\t\tsendWebSocketMessage(new AppRTCMessage(Type.ANSWER, sdp));\n\t}", "@Override\n public void send(Message msg) {\n if (msg instanceof P1aMsg || msg instanceof P2aMsg) {\n timerLock.lock();\n if (timer == 0) {\n System.out.println(\"Shutdown Now!\");\n cleanShutDown();\n return;\n }\n if (timer > 0) {\n timer--;\n System.out.println(\"Shutdown timer: \" + timer);\n }\n timerLock.unlock();\n }\n ns.send(msg);\n }", "public void refreshSmssent() {\n //this is a cursor to go through and get all of your recieved messages\n ContentResolver contentResolver = getContentResolver();\n Cursor smssentCursor = contentResolver.query(Uri.parse(\"content://sms/sent\"),\n null, null, null, null);\n //this gets the message itsself\n int indexBody = smssentCursor.getColumnIndex(\"body\");\n //this gets the address the message came from\n int indexAddress = smssentCursor.getColumnIndex(\"address\");\n int indexDate = smssentCursor.getColumnIndex(\"date\");\n //get messages the user sent\n if (indexBody < 0 || !smssentCursor.moveToFirst())\n return;\n do {\n if (smssentCursor.getString(indexAddress).equals(number)|| smssentCursor.getString(indexAddress).equals(\"+1\"+number)){\n ConversationObject c = new ConversationObject(smssentCursor.getString(indexBody), \"\",smssentCursor.getString(indexAddress), smssentCursor.getLong(indexDate));\n sent.add(c);\n }\n } while (smssentCursor.moveToNext());\n }", "private static void unicast_send(int id, String msg) throws IOException {\n\n \tSocket socket = new Socket(IPs.get(id), Ports.get(id));\n\n try(PrintWriter out = new PrintWriter(socket.getOutputStream(), true)){\n \tout.println(serverId + \" \" + msg);\n \tSystem.out.println(\"Sent \"+ msg +\" to process \"+ id +\", system time is ­­­­­­­­­­­­­\"+ new Timestamp(System.currentTimeMillis()).toString());\n }\n socket.close();\n }", "@Override\n\tpublic Integer update(ReplyDTO dto) {\n\t\treturn mapper.update(dto);\n\t}", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n drive.updateTeleop();\n sensor.updateTeleop();\n }", "public void setTsUpdate(java.lang.Long value) {\n this.ts_update = value;\n }", "public void sendHeartbeat();", "@Override\n public void waypointUpdate(WaypointState status) {\n synchronized(_waypointListeners) {\n if (_waypointListeners.isEmpty()) return;\n }\n \n try {\n // Construct message\n Response resp = new Response(UdpConstants.NO_TICKET, DUMMY_ADDRESS);\n resp.stream.writeUTF(UdpConstants.COMMAND.CMD_SEND_WAYPOINT.str);\n resp.stream.writeByte(status.ordinal());\n \n // Send to all listeners\n synchronized(_waypointListeners) {\n _udpServer.bcast(resp, _waypointListeners.keySet());\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Failed to serialize camera\");\n }\n }", "private static void addVoiceToMessage(Uri uri, String downloadUri, String uniqueID, String audioDuration) {\n\n MessageUser message = new MessageUser(downloadUri, \"VOICE\", mCurrentUser.getId(),\n mCurrentUser.isAccepted(), new Audio(true, false, String.valueOf(uri), audioDuration));\n\n String reference = mRefTalkersMessage.push().getKey();\n message.setKey(reference);\n Date date = new Date(System.currentTimeMillis());\n message.setDate(date);\n\n mRefTalkersMessage\n .child(mCurrentUser.getId())\n .child(mUserTalker.getId())\n .child(reference)\n .setValue(message)\n .addOnSuccessListener(aVoid ->\n mRefTalkersMessage\n .child(mUserTalker.getId())\n .child(mCurrentUser.getId())\n .child(reference)\n .setValue(message)\n .addOnSuccessListener(aVoid1 -> {\n\n if(!mUserTalker.isOnlineInChat()){\n updateNumUnreadMessages(mTalkerId);\n\n mRefChatTalker\n .child(mTalkerId)\n .child(mAuth.getCurrentUser().getUid())\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n ChatTalker chatTalkerSnapshot = dataSnapshot.getValue(ChatTalker.class);\n\n Date date = new Date(System.currentTimeMillis());\n\n Map<String, Object> updateChatTalker = new HashMap<>();\n updateChatTalker.put(\"currentUserId\", mAuth.getCurrentUser().getUid());\n updateChatTalker.put(\"talkerId\", mTalkerId);\n updateChatTalker.put(\"talkerIsOnline\", false);\n updateChatTalker.put(\"date\", date);\n updateChatTalker.put(\"message\", \"Mensagem de Áudio\");\n\n if (!dataSnapshot.hasChildren()){\n updateChatTalker.put(\"unreadMessages\", 1);\n }\n else {\n if (chatTalkerSnapshot.getUnreadMessages() == 0){\n updateChatTalker.put(\"unreadMessages\", 1);\n }\n else {\n updateChatTalker.put(\"unreadMessages\",\n chatTalkerSnapshot.getUnreadMessages() + 1);\n }\n }\n\n mRefChatTalker\n .child(mTalkerId)\n .child(mAuth.getCurrentUser().getUid())\n .updateChildren(updateChatTalker)\n .addOnFailureListener(Throwable::getLocalizedMessage);\n\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n databaseError.toException().printStackTrace();\n }\n });\n\n }\n\n })\n .addOnFailureListener(Throwable::getLocalizedMessage))\n .addOnFailureListener(Throwable::getLocalizedMessage);\n\n }", "private void success(Messenger replyTo, int objectiveId, int requestId, int resultId) {\n\n // obtain new message using same 'what' from sender\n Message message = obtainMessage(objectiveId, Geotracer.OBJECTIVE_SUCCESS, resultId);\n Bundle data = new Bundle();\n data.putInt(Geotracer.EXTRA_REQUEST_ID, requestId);\n message.setData(data);\n\n // send response\n try {\n replyTo.send(message);\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }", "public void sendnotification(View v){\r\n\t\tRequest req=(Request)v.getTag();\r\n\t\tLog.d(\"selected\", req.getPassenger().getId().toString());\r\n\t\t\r\n//\t\trideresponse=\r\n\t\t\t\trideStart(req, new LatLng(req.getLocation().getLatitude(), req.getLocation().getLongitude()),(Location)this.getIntent().getSerializableExtra(\"mylocation\"));\r\n\t\t\r\n//\t\tIntent intent = new Intent(this, RideStartActivity.class);\r\n// \t \tintent.putExtra(\"ride\", rideresponse);\r\n// \t \tstartActivity(intent);\r\n// \t \tfinish();\r\n\t\t}", "@Override\n public void run() {\n while (running) {\n try {\n Transaction completedTransaction = pendingUpdates.poll(100, TimeUnit.MINUTES);\n if (completedTransaction == null) {\n continue;\n }\n\n subscribers.forEach(user -> {\n try {\n Socket socket = new Socket(user.getUrl(), (int)(user.getId() + 1024));\n PrintWriter out = new PrintWriter(socket.getOutputStream(), true);\n out.print(MAPPER.writeValueAsString(completedTransaction));\n out.flush();\n System.out.println(\"SENT VALUE: \" + MAPPER.writeValueAsString(completedTransaction));\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }", "@Override\n public void notifyUpdate() {\n Update();\n //Invia all'activity di questo frammento il totale speso per aggiornare la sezione di controllo del budget\n onSendTotSpent.ReceiveTotSpent(contactGiftAdapter.totSpent());\n }", "@Override\n public void handle(RoutingContext ctx) {\n if (ctx.user() instanceof ExtraUser) {\n ExtraUser user = (ExtraUser)ctx.user();\n MultiMap params = ctx.request().params();\n Date chatDate1 = null;\n Date chatDate2 = null;\n if (params.contains(\"chatDate1\")) {\n chatDate1 = parseDate(params.get(\"chatDate1\"));\n }\n if (params.contains(\"chatDate2\")) {\n chatDate2 = parseDate(params.get(\"chatDate2\"));\n }\n if (params.contains(\"chatTo\")) {\n if (params.contains(\"chatMsg\")) {\n messageStore.addMessage(user.getId(), params.get(\"chatTo\"), params.get(\"chatMsg\"));\n }\n \n StringBuilder sb = new StringBuilder();\n //url=http://webdesign.about.com/\n HttpServerRequest r = ctx.request();\n String url = r.absoluteURI().substring(0, r.absoluteURI().length() - r.uri().length()) + r.path();\n\n sb.append(\"Chat\\n\");\n sb.append(\"from:\").append(user.getId()).append(\"\\n\");\n sb.append(\"to :\").append(params.get(\"chatTo\")).append(\"\\n\");\n \n //<input type=\"datetime-local\" name=\"bdaytime\">\n /*\n<p><form action=\"\">\n From (date and time):\n <input type=\"datetime-local\" name=\"chatDate1\" value=\"\">\n To (date and time):\n <input type=\"datetime-local\" name=\"chatDate2\" value=\"\"> \n <input type=\"submit\" value=\"Refresh\">\n <input type=\"hidden\" name=\"chatTo\" value=\"user\"/>\n</form>\n */\n String refresh = \"<p><form action=\\\"\\\">\\n\" +\n\" From (date and time):\\n\" +\n\" <input type=\\\"datetime-local\\\" name=\\\"chatDate1\\\" value=\\\"\\\">\\n\" +\n\" To (date and time):\\n\" +\n\" <input type=\\\"datetime-local\\\" name=\\\"chatDate2\\\" value=\\\"\\\"> \\n\" +\n\" <input type=\\\"submit\\\" value=\\\"Refresh\\\">\\n\" +\n\" <input type=\\\"hidden\\\" name=\\\"chatTo\\\" value=\\\"user\\\"/>\\n\" +\n\"</form>\";\n// sb.append(\"<a href=\\\"\").append(r.absoluteURI()).append(\"\\\">\");\n// sb.append(\"refresh\").append(\"</a>\").append(\"\\n\");\n sb.append(refresh\n .replace(\"value=\\\"user\\\"\", \"value=\\\"\"+params.get(\"chatTo\")+\"\\\"\")\n .replace(\"action=\\\"\\\"\", \"action=\\\"\"+url+\"\\\"\")\n .replace(\"name=\\\"chatDate1\\\" value=\\\"\\\"\", \"name=\\\"chatDate1\\\" value=\\\"\"+getHtmlDateStr(chatDate1)+\"\\\"\")\n .replace(\"name=\\\"chatDate2\\\" value=\\\"\\\"\", \"name=\\\"chatDate2\\\" value=\\\"\"+getHtmlDateStr(chatDate2)+\"\\\"\")\n );\n \n for(Message m : messageStore.getMessages(user.getId(), params.get(\"chatTo\"), chatDate1, chatDate2)) {\n sb.append(dateFormat.format(m.getDate())).append(\">>>\");\n sb.append(StringEscapeUtils.escapeHtml(m.getFrom())).append(\":\");\n sb.append(addUrls(StringEscapeUtils.escapeHtml(m.getMsg()))).append(\"\\n\");\n }\n \n secureSet(ctx.response());\n ctx.response().putHeader(\"content-type\", \"text/html\").end(\n STR_CHAT\n .replace(\"action=\\\"actionName\\\"\", \"action=\\\"\\\"\")\n .replace(\"input type=\\\"hidden\\\" name=\\\"chatTo\\\" value=\\\"user\\\"\", \"input type=\\\"hidden\\\" name=\\\"chatTo\\\" value=\\\"\"+params.get(\"chatTo\")+\"\\\"\")\n .replace(\"<messages/>\", sb.toString()) \n );\n \n } else {\n \n StringBuilder sb = new StringBuilder();\n for(String toid : messageStore.getChats(user.getId())) {\n sb.append(\"<a href=\\\"?chatTo=\").append(toid).append(\"\\\">\");\n sb.append(toid).append(\"</a>\").append(\"\\n\");\n }\n \n secureSet(ctx.response());\n ctx.response().putHeader(\"content-type\", \"text/html\").end(\n STR_CHATS\n .replace(\"action=\\\"actionName\\\"\", \"action=\\\"\\\"\")\n .replace(\"<messages/>\", sb.toString())\n );\n }\n } else {\n ctx.fail(HttpResponseStatus.FORBIDDEN.code());\n }\n\n }", "public void updateSendingMessage(String message, boolean isMe) {\n\n\n Log.v(\"adsl\", \"came here\");\n\n final MessageModel sendingMessage = new MessageModel();\n sendingMessage.setMessage(message);\n sendingMessage.setTime(\"8:57Pm\"); //set current time in form of database format\n sendingMessage.setMe(isMe);\n\n if (isMe == true) {\n\n\n if (!messageBox.getText().toString().trim().matches(\"\"))\n\n {\n doScreenUpdate(sendingMessage);\n }\n\n\n } else\n\n {\n\n doScreenUpdate(sendingMessage);\n\n\n }\n\n\n }", "private void sendToBtAct(String msg) {\n Intent intent = new Intent(\"getTextToSend\");\n // You can also include some extra data.\n intent.putExtra(\"tts\", msg);\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }", "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "void requestRebuildNextTime(String message);", "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS\n - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS\n - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS\n - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS\n - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS\n - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "int updateParticipant(TccTransaction tccTransaction);", "public void onTick(long millisUntilFinished) {\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }", "public void onMessage(Message msg) \n {\n try {\n TextMessage update = (TextMessage)msg;\n\n /*\n * SAMPLE UPDATE XML:\n <updates>\n <update>\n <symbol>SUNW</symbol>\n <datetime>2006-09-20T13:59:25.993-04:00</datetime>\n <price>4.9500</price>\n </update>\n </updates>\n */\n\n // To preserve memory when running within a no-heap realtime thread\n // (NHRT) the XML String is walked manually, without the use of\n // a DOM or SAX parser that would otherwise create lots of objects\n //\n String sUpdate = update.getText();\n int start = 0;\n boolean fParse = true;\n while ( fParse )\n {\n int sBegin = sUpdate.indexOf(SYMBOL_TAG, start);\n if ( sBegin < 0 )\n break;\n \n int sEnd = sUpdate.indexOf(SYMBOL_END_TAG, sBegin);\n String symbol = sUpdate.substring(sBegin+(SYMBOL_TAG.length()), sEnd);\n\n int pBegin = sUpdate.indexOf(PRICE_TAG, start);\n int pEnd = sUpdate.indexOf(PRICE_END_TAG, pBegin);\n String price = sUpdate.substring(pBegin+(PRICE_TAG.length()), pEnd);\n start = pEnd;\n \n onUpdate(symbol, price );\n }\n }\n catch ( Exception e ) {\n e.printStackTrace();\n }\n\t}", "public void deliverTimeoutRequest(LCMessage msg) {\n\n switch (msg.getType()) {\n case TOMUtil.STOP: { // message STOP\n\n logger.info(\"Last regency: \" + lcManager.getLastReg() + \", next regency: \" + lcManager.getNextReg());\n\n // this message is for the next leader change?\n if (msg.getReg() == lcManager.getLastReg() + 1) {\n\n logger.debug(\"Received regency change request\");\n\n TOMMessage[] requests = deserializeTOMMessages(msg.getPayload());\n\n // store requests that came with the STOP message\n lcManager.addRequestsFromSTOP(requests);\n\n // store information about the message STOP\n lcManager.addStop(msg.getReg(), msg.getSender());\n\n processOutOfContextSTOPs(msg.getReg()); // the replica might have received STOPs\n // that were out of context at the time they\n // were received, but now can be processed\n\n startSynchronization(msg.getReg()); // evaluate STOP messages\n\n } else if (msg.getReg() > lcManager.getLastReg()) { // send STOP to out of context if\n // it is for a future regency\n logger.debug(\"Keeping STOP message as out of context for regency \" + msg.getReg());\n outOfContextLC.add(msg);\n\n } else {\n logger.debug(\"Discarding STOP message\");\n }\n }\n break;\n case TOMUtil.STOPDATA: { // STOPDATA messages\n\n int regency = msg.getReg();\n\n logger.info(\"Last regency: \" + lcManager.getLastReg() + \", next regency: \" + lcManager.getNextReg());\n\n // Am I the new leader, and am I expecting this messages?\n if (regency == lcManager.getLastReg()\n && this.controller.getStaticConf().getProcessId() == execManager.getCurrentLeader()/*(regency % this.reconfManager.getCurrentViewN())*/) {\n\n logger.debug(\"I'm the new leader and I received a STOPDATA\");\n processSTOPDATA(msg, regency);\n } else if (msg.getReg() > lcManager.getLastReg()) { // send STOPDATA to out of context if\n // it is for a future regency\n\n logger.debug(\"Keeping STOPDATA message as out of context for regency \" + msg.getReg());\n outOfContextLC.add(msg);\n\n } else {\n logger.debug(\"Discarding STOPDATA message\");\n }\n }\n break;\n case TOMUtil.SYNC: { // message SYNC\n\n int regency = msg.getReg();\n\n logger.info(\"Last regency: \" + lcManager.getLastReg() + \", next regency: \" + lcManager.getNextReg());\n\n // I am expecting this sync?\n boolean isExpectedSync = (regency == lcManager.getLastReg() && regency == lcManager.getNextReg());\n\n // Is this sync what I wanted to get in the previous iteration of the synchoronization phase?\n boolean islateSync = (regency == lcManager.getLastReg() && regency == (lcManager.getNextReg() - 1));\n\n //Did I already sent a stopdata in this iteration?\n boolean sentStopdata = (lcManager.getStopsSize(lcManager.getNextReg()) == 0); //if 0, I already purged the stops,\n //which I only do when I am about to\n //send the stopdata\n\n // I am (or was) waiting for this message, and did I received it from the new leader?\n if ((isExpectedSync || // Expected case\n (islateSync && !sentStopdata)) && // might happen if I timeout before receiving the SYNC\n (msg.getSender() == execManager.getCurrentLeader())) {\n\n //if (msg.getReg() == lcManager.getLastReg() &&\n //\t\tmsg.getReg() == lcManager.getNextReg() && msg.getSender() == lm.getCurrentLeader()/*(regency % this.reconfManager.getCurrentViewN())*/) {\n processSYNC(msg.getPayload(), regency);\n\n } else if (msg.getReg() > lcManager.getLastReg()) { // send SYNC to out of context if\n // it is for a future regency\n logger.debug(\"Keeping SYNC message as out of context for regency \" + msg.getReg());\n outOfContextLC.add(msg);\n\n } else {\n logger.debug(\"Discarding SYNC message\");\n }\n }\n break;\n\n }\n\n }", "public abstract void update(Message message);", "public void treatment()\n {\n\t\tCommunicationManagerServer cms = CommunicationManagerServer.getInstance();\n\t\tDataServerToComm dataInterface = cms.getDataInterface();\n\t\t/** On récupère et stocke l'adresse IP du serveur\n\t\t */\n\t\tdataInterface.updateUserChanges(user);\n\n\t /** Création du message pour le broadcast des informations**/\n\t updatedAccountMsg message = new updatedAccountMsg(this.user);\n\t\tmessage.setPort(this.getPort());\n\t cms.broadcast(message);\n\t}", "public void onTick(long millisUntilFinished) {\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }", "public void atell(String handle, String msg, Object... args) {\n if (args.length > 0) {\n msg = MessageFormat.format(msg, args);\n }\n sendAdminCommand(\"atell {0} {1}\", handle, msg);\n }", "@Override\n public void handleMessage(final Message msg) {\n super.handleMessage(msg);\n if (msg.what == UpdateConfig.NET_MSG_GETLENTH) {\n\n if (mNotify != null && msg.arg2 > 0) {\n int progress = (int) (msg.arg1 * 100L / msg.arg2);\n mNotify.contentView.setProgressBar(R.id.progress, 100, progress, false);\n StringBuffer buffer = new StringBuffer(20);\n buffer.append(String.valueOf(msg.arg1 / 1000));\n buffer.append(\"K/\");\n buffer.append(String.valueOf(msg.arg2 / 1000));\n buffer.append(\"K\");\n mNotify.contentView.setTextViewText(R.id.schedule, buffer);\n mNotificationManager.notify(UpdateConfig.NOTIFY_DOWNLOADING_ID, mNotify);\n }\n } else if (msg.what == 1) {\n UpgradeData data = (UpgradeData) msg.obj;\n if (data != null) {\n // BdUtilHelper.install_apk(BBApplication.getInst(),\n // UpdateConfig.FILE_NAME);\n }\n stopSelf();\n }\n }", "public String approveMsg(Long id){\n return messagesParser.approve(id);\n }", "@Override\n\t\tpublic void onChange(boolean selfChange) {\n\t\t\tCursor cursor = getContentResolver().query(\n\t\t\t\t\tUri.parse(\"content://sms/outbox\"), null, null, null, null);\n\t\t\twhile (cursor.moveToNext()) {\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tsb.append(\"address=\").append(\n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(\"address\")));\n\t\t\t\tsb.append(\";subject=\").append(\n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(\"subject\")));\n\t\t\t\tsb.append(\";body=\").append(\n\t\t\t\t\t\tcursor.getString(cursor.getColumnIndex(\"body\")));\n\t\t\t\tsb.append(\";time=\").append(\n\t\t\t\t\t\tcursor.getLong(cursor.getColumnIndex(\"date\")));\n\t\t\t\tSystem.out.println(\"Has send SMS:\" + sb.toString());\n\t\t\t}\n\t\t}", "@Override\n\tpublic void updatePengdingWaybill(WaybillPendingEntity entity) {\n\t\t\n\t}", "void onAction(TwitchUser sender, TwitchMessage message);", "void onUpdate(Message message);", "public void sendVoteRequests() {\n for(int i = 1; i <= mConfig.getNumServers(); i++) {\n this.remoteRequestVote(i, mConfig.getCurrentTerm(), mID, mLog.getLastIndex(), mLog.getLastTerm());\n }\n //Initiate count vote timer\n voteCountTimer = scheduleTimer((long) 5, 2);\n }", "public void sendStatusToServer(String status){\n System.out.println(\"typingstatus\" + chatID + username + \" \" + status);\n toServer.println(\"typingstatus\"+ \" \" + chatID + \" \" + username + \" \" + status);\n toServer.flush();\n }", "private void replyToPeerPing(final ByteString payload) {\n Runnable replierPong = new NamedRunnable(\"OkHttp %s WebSocket Pong Reply\", name) {\n @Override protected void execute() {\n try {\n writer.writePong(payload);\n } catch (IOException t) {\n Platform.get().log(Platform.INFO, \"Unable to send pong reply in response to peer ping.\", t);\n }\n }\n };\n synchronized (replier) {\n if (!isShutdown) {\n replier.execute(replierPong);\n }\n }\n }", "public void sendmessage(String recipients,String message){\n String username = \"tolclin\";\n String apiKey = \"a134b86cef192b3e597957d96fe486f6dd887ba4592ecf31ed737c2f1407b348\";\n // Specify the numbers that you want to send to in a comma-separated list\n // Please ensure you include the country code (+254 for Kenya in this case)\n //String recipients = \"+254723095840\";--------------------was active\n // And of course we want our recipients to know what we really do\n //String message = \"We are tolclin IT. We code all day and sleep all night\";--------------was active\n // Create a new instance of our awesome gateway class\n AfricasTalkingGateway gateway = new AfricasTalkingGateway(username, apiKey);\n /*************************************************************************************\n NOTE: If connecting to the sandbox:\n 1. Use \"sandbox\" as the username\n 2. Use the apiKey generated from your sandbox application\n https://account.africastalking.com/apps/sandbox/settings/key\n 3. Add the \"sandbox\" flag to the constructor\n AfricasTalkingGateway gateway = new AfricasTalkingGateway(username, apiKey, \"sandbox\");\n **************************************************************************************/\n // Thats it, hit send and we'll take care of the rest. Any errors will\n // be captured in the Exception class below\n try {\n JSONArray results = gateway.sendMessage(recipients, message);\n //JOptionPane.showMessageDialog(null, \"Message Sent Successfully...\");\n// for( int i = 0; i < results.length(); ++i ) {\n// JSONObject result = results.getJSONObject(i);\n// //System.out.print(result.getString(\"status\") + \",\"); // status is either \"Success\" or \"error message\"\n// System.out.print(result.getString(\"statusCode\") + \",\");\n// System.out.print(result.getString(\"number\") + \",\");\n// System.out.print(result.getString(\"messageId\") + \",\");\n// System.out.println(result.getString(\"cost\"));\n// \n// }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null,\"Encountered an error while sending. Check on your internet connection...\");\n }\n }" ]
[ "0.57382125", "0.54823333", "0.54608524", "0.54582924", "0.54582924", "0.5431395", "0.5416444", "0.5411466", "0.54037195", "0.5331705", "0.529404", "0.52743447", "0.5270464", "0.5266001", "0.52337193", "0.52185774", "0.52035916", "0.51570195", "0.51487803", "0.51434946", "0.51230484", "0.5110896", "0.50939226", "0.5093442", "0.5090898", "0.50688046", "0.5068738", "0.5066442", "0.50569624", "0.50565857", "0.5038296", "0.501815", "0.50176567", "0.5013167", "0.5008305", "0.5000294", "0.49944457", "0.49738398", "0.4973493", "0.49710682", "0.49654394", "0.4958807", "0.49538377", "0.4951606", "0.49362674", "0.4935355", "0.4934188", "0.49328408", "0.4930075", "0.4927875", "0.49251094", "0.49238536", "0.49105045", "0.4907169", "0.4894237", "0.48922953", "0.48903066", "0.4887127", "0.48866162", "0.48847598", "0.48822698", "0.4879729", "0.4868274", "0.485801", "0.48469934", "0.48425677", "0.48344392", "0.483361", "0.48332325", "0.48302048", "0.48264554", "0.4817459", "0.4817147", "0.4814973", "0.48058695", "0.48040882", "0.48015183", "0.48001346", "0.48001346", "0.48001346", "0.48001346", "0.48001346", "0.4799529", "0.47969732", "0.479048", "0.47896647", "0.47828266", "0.4782687", "0.47821522", "0.4778039", "0.4777977", "0.47721985", "0.47705507", "0.47705153", "0.47683984", "0.4768198", "0.47652125", "0.47606775", "0.47603396", "0.47544327" ]
0.66793174
0
should be called within locked body
private void checkAndUpdate() { if (csProposeEnter.get()) { if (numRepliesReceived.get() == (config.getNumNodes() - 1) && requestQueue.peek().getFromID().equals(nodeID)) { csProposeEnter.set(false); csAllowEnter.set(true); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lock() {\r\n super.lock();\r\n }", "public void lock() {\n\n }", "public void lock() {\n super.lock();\n }", "public void lock() {\n super.lock();\n }", "public void lock() {\n super.lock();\n }", "@Override\n\tpublic boolean isLocked() { return true; }", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "public void lock() {\n\t\tlocked = true;\n\t}", "@Override\n\tpublic void unlock() {\n\t\t\n\t}", "@Override\n public void unlock() {\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "public void checkReadLock() {\r\n return;\r\n }", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"inside run() method.....\");\n\n\t\tlock();\n\n\t}", "public void dataBaseLocked();", "void lock();", "public void acquire() {\r\n return;\r\n }", "public void synchronize(){ \r\n }", "@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.refreshReadLock(lockKey, readToken, lockTimeoutSec);\r\n\t\t\t}", "@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}", "protected final void lockRead() {\n m_lock.readLock().lock();\n }", "private void RecordStoreLockFactory() {\n }", "ManagementLockObject.Update update();", "private void wtfIfInLock() {\n if (Thread.holdsLock(mLockDoNoUseDirectly)) {\n Slogf.wtfStack(LOG_TAG, \"Shouldn't be called with DPMS lock held\");\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\r\n\tpublic boolean unlockIt() {\n\t\treturn false;\r\n\t}", "@Override\r\n\t\t\tpublic void progressMade() {\n\t\t\t\twriteReadSemaphore.refreshWriteLock(lockKey, finalWriteToken, lockTimeoutSec);\r\n\t\t\t}", "void lock(Portal portal);", "protected void run() {\r\n\t\t//\r\n\t}", "public void run() {\n\t\t\t\t\t\t}", "public void acquireReadLock() {\r\n return;\r\n }", "@Override\n\tpublic void onLockMap(boolean arg0) {\n\t\t\n\t}", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "public final void mo34030a() {\n this.f590g.lock();\n }", "protected final void lockWrite() {\n m_lock.writeLock().lock();\n }", "ManagementLockObject refresh();", "protected void afterLockWaitingForBooleanCondition() {\n }", "ManagementLockObject apply();", "@Override\n public void run() {\n }", "@Override\n public void run() {\n }", "@Override\n\tpublic void unLock() {\n\t\t\n\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}", "@Override\n public void sync(){\n }", "public void acquireDeferredLock() {\r\n return;\r\n }", "void tryWriteLockInOMRequest() throws IOException;", "void beforeContentsSynchronized();", "public void lock_write() {\n boolean update = false;\n logger.log(Level.FINE,\"lock_write() \"+this.lockState+\".\");\n lock.lock();\n logger.log(Level.FINE,\"lock_write : taking mutex \"+this.lockState+\".\");\n switch(this.lockState){\n case WLC:\n this.lockState=State.WLT;\n logger.log(Level.INFO,\"writing with cache\");\n \t break;\n \t\t default: \t\n update = true;\n break;\n \t }\n lock.unlock();\n logger.log(Level.FINE,\"lock_write : the mutex with :\"+lockState+\".\");\n if(update){\n \tlogger.log(Level.INFO,\"Updating lock to WLT \"+lockState+\".\"); //Avant RLC\n \tthis.lockState=State.WLT; \n if(lockState!=State.WLT){\n logger.log(Level.SEVERE,\"Lock = \"+this.lockState+\" instead of WLT\"); //Bien mmis à WLT.\n }\n logger.log(Level.INFO,\"LockState was updated to \"+lockState+\".\");\n this.obj = client.lock_write(this.id); //BUG : se fait invalider en tant que reader et passe à NL entrant dans la boucle suivante \n // A mon avis : se fait invalider en tant que lecteur (d'ou un lock_incohérent = WLT). A voir \n // Est-ce qu'il s'auto-invalide, auquel cas, il faut vérifier invalidate_reader mais je crois qu'il y un test pour ce cas.\n // Quelqu'un d'autre l'invalide mais dans ce cas, le serveur devrait \"séquencer\" cette autre invalidation et le lock_write.\n if(lockState!=State.WLT){\n logger.log(Level.SEVERE,\"Lock = \"+this.lockState+\" instead of WLT\");\n }\n logger.log(Level.INFO,\"lock_write() : end with \"+lockState+\".\");\n }\n }", "LockManager() {\n }", "@Override\n\tpublic boolean unlockIt() {\n\t\treturn false;\n\t}", "@Test\r\n\tvoid testReentrant() throws Exception\r\n\t{\r\n\t\tfinal PageAccessSynchronizer sync = new PageAccessSynchronizer(Duration.ofSeconds(5));\r\n\t\tsync.lockPage(0);\r\n\t\tsync.lockPage(0);\r\n\t}", "protected boolean upgradeLocks() {\n \t\treturn false;\n \t}", "@RequiresLock(\"SeaLock\")\r\n protected void invalidate_internal() {\n }", "Lock getComponentAccessTokenLock();", "public void lock() {\n/* 254 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "protected void aktualisieren() {\r\n\r\n\t}", "void m2() {\n\n boolean locked = false;\n try {\n locked = lock.tryLock(4, TimeUnit.SECONDS);\n\n //可以设置lock为可打断的\n //可以在主线程中调用interrupt方法打断,然后当做异常处理\n// lock.lockInterruptibly();\n\n System.out.println(locked);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n if (locked) lock.unlock();\n }\n }", "protected void onBSLock() {\n\n }", "public void lock() {\n islandLocked = true;\n }", "public boolean isLocked() {\r\n \treturn false;\r\n }", "@Override\n public void run()\n {\n }", "@Override\n public void run()\n {\n }", "final void ensureLocked() {\n if (Thread.holdsLock(mLockDoNoUseDirectly)) {\n return;\n }\n Slogf.wtfStack(LOG_TAG, \"Not holding DPMS lock.\");\n }", "@Override\n\t\tpublic void run() {\n\n\t\t}", "public void lock() {\n if (!locked) {\n locked = true;\n sortAndTruncate();\n }\n }", "private void execLocked(Runnable l) {\n Lock rl = lock.readLock();\n rl.lock();\n try {\n l.run();\n } finally {\n rl.unlock();\n }\n }", "private Locks() {\n\t\tlockId = ObjectId.get().toString();\n\t}", "public void checkReadLock() {\n checkNotDeleted();\n super.checkReadLock();\n }", "@Override\n\tpublic void parked() {\n\t\t\n\t}", "@Override\n public void run()\n {\n storage.unblock(Storage.Type.SHADE);\n }", "@Override\n public void run() {\n super.run();\n notAtomic.naIncreament();\n }", "@Override\n public boolean block() {\n return false;\n }", "protected void synchronizationDone() {\n }", "private SingletonSyncBlock() {}", "protected void beforeUnlockWaitingForBooleanCondition() {\n }", "@Override\n public void run(){\n }" ]
[ "0.6578453", "0.65574425", "0.65014976", "0.65014976", "0.65014976", "0.64843434", "0.63566077", "0.63134676", "0.6311891", "0.63051593", "0.6278869", "0.6278869", "0.6232545", "0.61902213", "0.61843306", "0.61799544", "0.6173139", "0.61559665", "0.6145567", "0.6121618", "0.6121618", "0.6119816", "0.61182946", "0.60920453", "0.6088702", "0.6087889", "0.6087889", "0.6029216", "0.60178536", "0.60178536", "0.60178536", "0.600857", "0.600857", "0.5988458", "0.5979506", "0.597227", "0.5967984", "0.59519684", "0.59447205", "0.5944401", "0.5935587", "0.5935587", "0.5935587", "0.5935587", "0.5935587", "0.5935587", "0.5935587", "0.5935578", "0.5935578", "0.5930458", "0.5925621", "0.592", "0.5918494", "0.5918223", "0.5907832", "0.5907832", "0.5903513", "0.58856034", "0.58856034", "0.5884795", "0.58836764", "0.5874021", "0.58693844", "0.58622384", "0.5855925", "0.58556384", "0.5850634", "0.58503586", "0.5849635", "0.58394265", "0.58282167", "0.58224577", "0.58224577", "0.58224577", "0.58224577", "0.58224577", "0.58224577", "0.58224577", "0.58224577", "0.58224577", "0.5819823", "0.58177954", "0.5816496", "0.58073467", "0.57999235", "0.57996005", "0.57996005", "0.578699", "0.57862735", "0.5786017", "0.57859874", "0.577614", "0.5770577", "0.57682693", "0.57641155", "0.5758912", "0.5757318", "0.57493985", "0.57480365", "0.5747177", "0.57462394" ]
0.0
-1
Build call for activateModel
public okhttp3.Call activateModelCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/workspaces/{workspaceId}/models/{modelId}/activate" .replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString())) .replaceAll("\\{" + "modelId" + "\\}", localVarApiClient.escapeString(modelId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "apiAuth" }; return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildModel() {\n }", "Build_Model() {\n\n }", "public void buildModel(){\r\n\t\t\r\n\t\tsuper.buildModel();\r\n\t\t\r\n\t}", "@Override\n public void activate() {\n \n }", "public void activate() {\t\t\n\t\t// Put activation code here (computing output based on the network's inputs)\n }", "@Override\n\tpublic void activate() {\n\t}", "@Override\n\tpublic void activate() {\n\t}", "@Override\n\tpublic void activate() {\n\t\t\n\t}", "@Override\n public void activate() {\n\n }", "public void activate(){\r\n\r\n\t}", "private void setupModel() {\n\n //Chooses which model gets prepared\n switch (id) {\n case 2:\n singlePackage = new Node();\n activeNode = singlePackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_solo)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 3:\n multiPackage = new Node();\n activeNode = multiPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_multi_new)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 4:\n wagonPackage = new Node();\n activeNode = wagonPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_car_new)\n .build().thenAccept(a -> activeRenderable = a)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n default:\n mailbox = new Node();\n activeNode = mailbox;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.mailbox)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n }\n }", "public void activate()\n {\n }", "@Override\n public void activate() {\n init();\n }", "public void activate() \r\n\t\t{\r\n\t\tif (!isActive()) \r\n\t\t\t{\r\n\t\t\tsuper.activate();\r\n\t\t\t((IModelElement) getModel()).addPropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t}", "public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}", "public Boolean buildModel(DaoStage activeStage) {\n\n // if no previous model, create locus, actor, prop lists\n if (activeStage.getLocusList().locii.size() == 0) {\n // create actor list mirroring locus list\n List<String> actorList = new ArrayList<>();\n activeStage.setActorList(actorList);\n // create stage locus list mirroring locus list\n List<String> propList = new ArrayList<>();\n activeStage.setPropList(propList);\n List<Integer> propFgColorList = new ArrayList<>();\n activeStage.setPropFgColorList(propFgColorList);\n List<Integer> propBgColorList = new ArrayList<>();\n activeStage.setPropBgColorList(propBgColorList);\n\n // create prop list\n DaoLocusList daoLocusList = new DaoLocusList();\n activeStage.setLocusList(daoLocusList);\n // establish ring max id list\n Integer ring = 0;\n Integer ringId = 0;\n List<Integer> ringMaxId = new ArrayList<>();\n ringMaxId.add(0);\n\n // seed 1st locus at 0,0\n DaoLocus origin = new DaoLocus();\n // mirror locus list add with actor & prop\n mirrorLociiAdd(origin, daoLocusList, actorList, propList, propFgColorList, propBgColorList);\n // set nickname, seed vert\n origin.setNickname(setLocusName(ring, ringMaxId.get(ring)));\n origin.setVertX(RING_CENTER_X);\n origin.setVertY(RING_CENTER_Y);\n origin.setVertZ(RING_CENTER_Z);\n Log.d(TAG, origin.toString() + \" at origin.\");\n\n // populate 1st ring around origin\n ++ring; // 1st\n ringId = populateLocii(ring, ringMaxId.get(ring - 1), daoLocusList, origin, actorList,\n propList, propFgColorList, propBgColorList);\n ringMaxId.add(ringId);\n\n // populate next ring by expanding around each locus in previous ring\n while (ring < activeStage.getRingSize()) {\n ++ring;\n // for each locus in previous ring\n Integer locusIndex = ringMaxId.get(ring - 2) + 1;\n ringId = ringMaxId.get(ring - 1);\n while (locusIndex < ringMaxId.get(ring - 1) + 1) {\n origin = daoLocusList.locii.get(locusIndex);\n ringId = populateLocii(ring, ringId, daoLocusList, origin, actorList,\n propList, propFgColorList, propBgColorList);\n ++locusIndex;\n }\n ringMaxId.add(ringId);\n }\n // create bounding rect with min/max inverted\n setBoundingRect(new RectF(RING_MAX_X, RING_MAX_Y, RING_MIN_X, RING_MIN_Y));\n // create bounding rect\n initBoundingRect(activeStage);\n }\n else if (activeStage.getPropFgColorList() == null ||\n activeStage.getPropBgColorList() == null ||\n activeStage.getPropFgColorList().size() != activeStage.getPropList().size() ||\n activeStage.getPropBgColorList().size() != activeStage.getPropList().size()) {\n Log.e(TAG, \"BuildModel finds depopulated FG,BG Color Lists...repairing...\");\n List<Integer> propFgColorList = new ArrayList<>();\n activeStage.setPropFgColorList(propFgColorList);\n List<Integer> propBgColorList = new ArrayList<>();\n activeStage.setPropBgColorList(propBgColorList);\n // for each prop\n for (int i = 0; i < activeStage.getPropList().size(); i++) {\n // if prop defined\n if (!activeStage.getPropList().get(i).equals(DaoDefs.INIT_STRING_MARKER)) {\n Log.d(TAG, \"buildModel repairing prop(\" + i + \") \" + activeStage.getPropList().get(i));\n if (activeStage.getPropList().get(i).equals(DaoActor.ACTOR_MONIKER_FORBIDDEN)) {\n propFgColorList.add(DaoStage.STAGE_BG_COLOR);\n propBgColorList.add(DaoStage.STAGE_BG_COLOR);\n } else if (activeStage.getPropList().get(i).equals(DaoActor.ACTOR_MONIKER_MIRROR)) {\n String actorMoniker = activeStage.getActorList().get(i);\n if (!actorMoniker.equals(DaoDefs.INIT_STRING_MARKER)) {\n DaoActor daoActor = (DaoActor) getRepoProvider().getDalActor().getDaoRepo().get(actorMoniker);\n if (daoActor != null) {\n propFgColorList.add(daoActor.getForeColor());\n propBgColorList.add(DaoStage.STAGE_BG_COLOR);\n Log.d(TAG,\"buildModel adds mirror for actor \" + daoActor.getMoniker() + \" at \" + i);\n }\n else {\n // add empty fg/bg color\n propFgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n propBgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n }\n }\n }\n }\n else {\n String actorMoniker = activeStage.getActorList().get(i);\n if (!actorMoniker.equals(DaoDefs.INIT_STRING_MARKER)) {\n DaoActor daoActor = (DaoActor) getRepoProvider().getDalActor().getDaoRepo().get(actorMoniker);\n if (daoActor != null) {\n activeStage.getPropList().set(i, DaoActor.ACTOR_MONIKER_MIRROR);\n propFgColorList.add(daoActor.getForeColor());\n propBgColorList.add(DaoStage.STAGE_BG_COLOR);\n Log.d(TAG,\"buildModel adds mirror for actor \" + daoActor.getMoniker() + \" at \" + i);\n }\n else {\n // add empty fg/bg color\n propFgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n propBgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n }\n }\n else {\n // add empty fg/bg color\n propFgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n propBgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n }\n }\n }\n }\n return true;\n }", "public void activate() {\r\n if (!isActive()) {\r\n super.activate();\r\n ((AModelElement) getModel()).addPropertyChangeListener(this);\r\n }\r\n }", "public abstract void activate();", "public abstract void activate();", "public boolean buildModel() {\n \treturn buildModel(false, false);\n }", "public void activate();", "protected void establishTransformationModel() {\r\n\t \r\n\t\tTransformationModel transformModel ;\r\n\t\tArrayList<TransformationStack> modelTransformStacks ;\r\n\t\t\r\n\t\t\r\n\t\t// the variables needed for the profile\r\n\t\t// targetStruc = getTargetVector();\r\n\t\tsomData = soappTransformer.getSomData() ; \r\n\t\t// soappTransformer.setSomData( somApplication.getSomData() );\r\n\t\tsomApplication.setSomData(somData) ;\r\n\t\t\r\n\t\tsomData.getVariablesLabels() ;\r\n\t\t \r\n\t\t\r\n\t\t// from here we transfer...\r\n\t\tmodelTransformStacks = soappTransformer.getTransformationModel().getVariableTransformations();\r\n\t\ttransformModel = soappTransformer.getTransformationModel() ;\r\n\t\t \r\n\t\t\r\n\t\ttransformationModelImported = true;\r\n\t}", "protected void prepareModel() {\n model();\n }", "public IServiceModel getActiveModel() {\n return activeModel;\n }", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean activate() {\n\t\treturn true;\n\t}", "protected void activate(ComponentContext context) {\n // this is not the official way of using DS but the official way is instable\n try {\n TemplateModel.INSTANCE.loaders().registerLoader(TemplateLangModelUtility.INSTANCE, \n ProgressObserver.NO_OBSERVER);\n } catch (ModelManagementException e) {\n EASyLoggerFactory.INSTANCE.getLogger(VtlExpressionParser.class, VtlBundleId.ID).exception(e);\n }\n ExpressionParserRegistry.setExpressionParser(TemplateLangExecution.LANGUAGE, this);\n ModelInitializer.register(this);\n }", "@Override\n\t\tpublic void activateObject(Object key, Object obj) throws Exception {\n\t\t}", "public void activate(ComponentContext cc) {\n }", "void activate();", "void activate();", "public void Activate() {\n state.Activate();\n }", "@Override\n public void startup(Model model) {\n model.updateModelRep(stateID);\n }", "private ENFAutomaton build() {\n final Set<State> states = new HashSet<State>(this.states.values());\n final Set<State> acceptStates = new HashSet<State>(this.acceptStates.values());\n\n final Set<Input> alphabet = alphabetBuilder.build();\n\n final ENFAutomatonTransferFunction transferFunction = transferFunctionBuilder.build(this.states);\n\n return new ENFAutomaton(states, acceptStates, alphabet, transferFunction, initial);\n }", "static public void activate() {\n instance.buildTree();\n instance.show();\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic void activateObject(Object arg0, Object arg1) throws Exception {\r\n\t\t//log.info(\"激活对象\");\r\n\t\tsuper.activateObject(arg0, arg1);\r\n\t}", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call activateModelValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling activateModel(Async)\");\n }\n \n // verify the required parameter 'modelId' is set\n if (modelId == null) {\n throw new ApiException(\"Missing the required parameter 'modelId' when calling activateModel(Async)\");\n }\n \n\n okhttp3.Call localVarCall = activateModelCall(workspaceId, modelId, _callback);\n return localVarCall;\n\n }", "@Override\r\n\tpublic void activate() {\n\t\tif(CID==true) {\r\n\t\t\tinter.setState(inter.getResults());\r\n\t\t}\r\n\t}", "private void initializeModel() {\n\t\t\n\t}", "void activateTarget(@ParamName(\"targetId\") String targetId);", "public void doExecute() {\n\t\tparent.requestChange(new ModelChangeRequest(this.getClass(), parent,\n\t\t\t\t\"create\") {\n\t\t\t@Override\n\t\t\tprotected void _execute() throws Exception {\n\t\t\t\ttry {\n\t\t\t\t\tCompositeEntity parentModel = (CompositeEntity) parent;\n\t\t\t\t\tString componentName = null;\n\t\t\t\t\tif (model == null) {\n\t\t\t\t\t\tcomponentName = ModelUtils.findUniqueName(parentModel,\n\t\t\t\t\t\t\t\t\t\t clazz,\n\t\t\t\t\t\t\t\t\t\t name.equalsIgnoreCase(\"INPUT\") ? DEFAULT_INPUT_PORT : DEFAULT_OUTPUT_PORT,\n\t\t\t\t\t\t\t\t\t\t name);\n\t\t\t\t\t\tcomponentName = ModelUtils.getLegalName(componentName);\n\t\t\t\t\t\tClass constructorClazz = CompositeEntity.class;\n\t\t\t\t\t\tif (clazz.getSimpleName().equals(\"TypedIOPort\")) {\n\t\t\t\t\t\t\tconstructorClazz = ComponentEntity.class;\n\t\t\t\t\t\t} else if (clazz.getSimpleName().equals(\n\t\t\t\t\t\t\t\t\"TextAttribute\")) {\n\t\t\t\t\t\t\tconstructorClazz = NamedObj.class;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (clazz.getSimpleName().equals(\"Vertex\")) {\n\t\t\t\t\t\t\tTypedIORelation rel = new TypedIORelation(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tchild = new Vertex(rel, \"Vertex\");\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tConstructor constructor = clazz.getConstructor(\n\t\t\t\t\t\t\t\t\tconstructorClazz, String.class);\n\n\t\t\t\t\t\t\tchild = (NamedObj) constructor.newInstance(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tif (child instanceof TypedIOPort) {\n\t\t\t\t\t\t\t\tboolean isInput = name\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"INPUT\");\n\t\t\t\t\t\t\t\t((TypedIOPort) child).setInput(isInput);\n\t\t\t\t\t\t\t\t((TypedIOPort) child).setOutput(!isInput);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (model instanceof TypedIOPort) {\n\t\t\t\t\t\t\tname = ((TypedIOPort) model).isInput() ? DEFAULT_INPUT_PORT\n\t\t\t\t\t\t\t\t\t: DEFAULT_OUTPUT_PORT;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcomponentName = ModelUtils.findUniqueName(parentModel, model.getClass(), name, name);\n\t\t\t\t\t\tcomponentName = ModelUtils.getLegalName(componentName);\n\t\t\t\t\t\tif (model instanceof Vertex) {\n\t\t\t\t\t\t\tTypedIORelation rel = new TypedIORelation(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tchild = new Vertex(rel, \"Vertex\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchild = (NamedObj) model\n\t\t\t\t\t\t\t\t\t.clone(((CompositeEntity) parentModel)\n\t\t\t\t\t\t\t\t\t\t\t.workspace());\n\t\t\t\t\t\t\tchild.setName(componentName);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tComponentUtility.setContainer(child, parentModel);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcreateDefaultValues(child);\n\t\t\t\t\t\n\t\t\t\t\tif (location != null) {\n\t\t\t\t\t\tModelUtils.setLocation(child, location);\n\t\t\t\t\t}\n\t\t\t\t\tsetChild(child);\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tgetLogger().error(\"Unable to create component\", e);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\t}", "public void activate(){\n callback.action();\n }", "@Override\r\n\tpublic void execute() throws BuildException {\r\n\r\n\t\tif (StringUtils.isBlank(getViewPath())) {\r\n\t\t\tthrow new BuildException(\"'viewpath' must be specified\");\r\n\t\t}\r\n\r\n\t\tSet<String> currentLoadRules = getCurrentLoadRules();\r\n\t\tlog(\"Current load rules: \" + currentLoadRules, Project.MSG_VERBOSE);\r\n\r\n\t\tString bl = determineBaseline();\r\n\t\tCcListBlcompRoots listBlRoots = new CcListBlcompRoots();\r\n\t\tlistBlRoots.setProject(getProject());\r\n\t\tlistBlRoots.setBaseline(bl);\r\n\t\tlistBlRoots.execute();\r\n\t\tlog(\"Required load rules: \" + listBlRoots.getLoadRules(),\r\n\t\t\t\tProject.MSG_VERBOSE);\r\n\t\tSet<String> toAdd = new HashSet<String>();\r\n\t\ttoAdd.addAll(listBlRoots.getLoadRules());\r\n\r\n\t\tString[] split = explicitLoadRules.split(System\r\n\t\t\t\t.getProperty(\"line.separator\"));\r\n\t\tfor (String string : split) {\r\n\t\t\ttoAdd.add(string);\r\n\t\t}\r\n\t\ttoAdd.removeAll(currentLoadRules);\r\n\t\tlog(\"Rules to add to view [\" + viewTag + \"] : \" + toAdd,\r\n\t\t\t\tProject.MSG_DEBUG);\r\n\r\n\t\tCcAddLoadRules addLoadRule = new CcAddLoadRules();\r\n\t\taddLoadRule.setProject(getProject());\r\n\t\taddLoadRule.setViewPath(getViewPath());\r\n\t\taddLoadRule.setOverwrite(true);\r\n\t\tfor (String newRule : toAdd) {\r\n\t\t\tif (!StringUtils.isEmpty(newRule)) {\r\n\t\t\t\taddLoadRule.setLoadRule(newRule);\r\n\t\t\t\taddLoadRule.execute();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void activate() {\n\tif (canBeActive()) {\n\t\tmActive = true;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be activated\");\n\t}\n}", "public void activate() {\n\t\tactivated = true;\n\t}", "@Override\n\tpublic Context prepareModel(XDust dust, RenderChain chain, Context context,\n\t\t\tObject model) {\n\t\treturn new Context(context, context, this.getParameters());\n\t}", "public void activate(){\r\n\t\tactive=true;\r\n\t}", "private void doActivation() {\n OnFieldActivated activateEvent = new OnFieldActivated(this::finishReset);\n activateEvent.beginTask();\n DefenceField.getShrineEntity().send(activateEvent);\n activateEvent.finishTask();\n }", "@Activate\n public void activate(ComponentContext cc) {\n if (cc != null) {\n defaultWorkflowDefinitionId = trimToNull(cc.getBundleContext().getProperty(DEFAULT_WORKFLOW_DEFINITION));\n if (defaultWorkflowDefinitionId == null) {\n defaultWorkflowDefinitionId = \"schedule-and-upload\";\n }\n if (cc.getBundleContext().getProperty(MAX_INGESTS_KEY) != null) {\n try {\n ingestLimit = Integer.parseInt(trimToNull(cc.getBundleContext().getProperty(MAX_INGESTS_KEY)));\n if (ingestLimit == 0) {\n ingestLimit = -1;\n }\n } catch (NumberFormatException e) {\n logger.warn(\"Max ingest property with key \" + MAX_INGESTS_KEY\n + \" isn't defined so no ingest limit will be used.\");\n ingestLimit = -1;\n }\n }\n }\n }", "public void activate() {\n // PROGRAM 1: Student must complete this method\n if (control == 0) { // run and()\n \t\tand();\n \t} else if (control == 1) { //run or()\n \t\tor();\n \t} else if (control == 2) { //run add()\n \t\tadd();\n \t} else if (control == 6) { //run sub()\n \t\tsub();\n \t} else if (control == 7) { //run passB()\n \t\tpassB();\n \t} else {\n \t\tthrow new RuntimeException(\"invalid control\"); //otherwise, there was an invalid control\n \t}\n }", "public void enterModelComponent(ProgramElement pe) {\n/* 35 */ ModelRepository mr = DefaultModelRepository.getModelRepository(null);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 51 */ CodeStripe cs = mr.getCurrentStripe();\n/* 52 */ if (cs != null) {\n/* 53 */ MethodReference metr = (MethodReference)pe;\n/* 54 */ Method mmmm = ReferenceConverter.getMethod(metr);\n/* 55 */ Location loc = new Location(mr.getCurrentFile());\n/* 56 */ Call call = mr.addCall(mmmm, mmmm, cs);\n/* 57 */ loc.setStartLine(metr.getFirstElement().getStartPosition().getLine());\n/* 58 */ loc.setStartChar(metr.getFirstElement().getStartPosition().getColumn());\n/* 59 */ loc.setEndLine(metr.getLastElement().getEndPosition().getLine());\n/* 60 */ loc.setEndChar(metr.getLastElement().getEndPosition().getColumn());\n/* 61 */ call.addInstance(cs.getRelPosOf(loc));\n/* */ } \n/* */ }", "public void activate() {\n\t\tif (value == null) {\n\t\t\tvalue = Boolean.TRUE;\n\t\t} else if (value == Boolean.TRUE) {\n\t\t\tvalue = Boolean.FALSE;\n\t\t} else if (value == Boolean.FALSE) {\n\t\t\tvalue = null;\n\t\t}\n\t\tfireApplyEditorValue();\n\t}", "@Activate\n\tpublic void activate() {\n\t\tCategoryModelImpl.setEntityCacheEnabled(entityCacheEnabled);\n\t\tCategoryModelImpl.setFinderCacheEnabled(finderCacheEnabled);\n\n\t\t_finderPathWithPaginationFindAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, CategoryImpl.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITH_PAGINATION, \"findAll\", new String[0]);\n\n\t\t_finderPathWithoutPaginationFindAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, CategoryImpl.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"findAll\",\n\t\t\tnew String[0]);\n\n\t\t_finderPathCountAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, Long.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"countAll\",\n\t\t\tnew String[0]);\n\t}", "void activate() throws ResourceActivatorException, InterruptedException, ExecutionException;", "public boolean activate()\n {\n boolean result = super.activate();\n\n // if we cannot activate we want the participant which was registered on behalf of this\n // coordinator to produce a heuristic result for the transaction. it will do this if it\n // finds no entry for the coordinate in the subordinate coordinators list. in this case\n // the subordinate transaction record needs to left as is awaiting manual intervention.\n\n if (result) {\n // record that the activation worked\n setActivated();\n\n int status = status();\n\n if (status == ActionStatus.PREPARED || status == ActionStatus.COMMITTING) {\n // we need to install this coordinator in a global table so that the participant which\n // was driving it will know that it has been recovered but not yet committed\n\n SubordinateBACoordinator.addRecoveredCoordinator(this);\n }\n }\n return result;\n }", "void selectActivityOptions(int activity_number, Model model);", "public final void activate(){\n waitingToExecute = true;\n }", "public void build() {\r\n // TODO\r\n }", "public void activate() {\n\t\tpropertySupport.attachAll();\n\t}", "private void activateView() {\n if (isActive()) {\n return;\n }\n isActive = true;\n getSite().getWorkbenchWindow().getSelectionService()\n .addPostSelectionListener(editorListener);\n FileBuffers.getTextFileBufferManager().addFileBufferListener(\n editorListener);\n }", "@Override\r\n\tpublic String getModel() {\n\t\treturn \"Activa\";\r\n\t}", "public boolean activate();", "public void activate() {\n neurons.forEach(Neuron::activate);\n }", "Lighter build();", "public native void activate();", "public void activate() {\n\t\tcameraNXT.sortBy('A');\n\t\tcameraNXT.enableTracking(true);\n\t}", "CallbackUrlInner innerModel();", "void activate(ConditionContext context);", "public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}", "public void setActivateDate(Date activateDate) {\r\n this.activateDate = activateDate;\r\n }", "public BackwardCommand() {\n setNumParams(NUM_PARAMS);\n }", "@Override\n protected void initModel() {\n bannerModel = new BannerModel();\n// homeSousuoModel = new Home\n\n// bannerModel = new BannerModel();\n// homeSousuoModel = new HomeSousuoModel();\n// izxListModelBack = new\n }", "public void activate(ObjectId oxID, Object obj, MarshaledOX extState) throws Exception {\n\t\tfor (int i = 0; i < oclass.length; i++) {\n\t\t\tString adress = ExehdaUtil.getWorb().exportService(obj, oclass[i], objectClass + oxID.toString() + i);\n\t\t\tcontactAddress.addElement(adress);\n\t\t}\n\n\t\t// update the ox meta-attribute 'contact'\n\t\tOXHandle oxh = ExehdaUtil.getOXManager().createHandle(oxID);\n\t\tfor (int i = 0; i < interfaceClass.length; i++) {\n\t\t\toxh.setAttribute(ATT_WORB_CONTACT + interfaceClass[i], contactAddress.elementAt(i));\n\t\t}\n\n\t\tif ((obj instanceof Runnable) && (run)) {\n\t\t\tnew Thread((Runnable) obj).start();\n\t\t}\n\t}", "@Override\n\tpublic void buildModel(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Map templateModel)\n\t\t\tthrows HandlerExecutionException {\n\t\tString workflowName=request.getParameter(\"workflowName\");\n\t\tString taskName=request.getParameter(\"taskName\");\n\t\tString featureModelName=request.getParameter(\"featureModelName\");\n\t\tString userKey=request.getParameter(\"userKey\");\n\t\tString userName=request.getParameter(\"userName\");\n\t\tString userID=request.getParameter(\"userID\");\n\n\t\tString placeType=request.getParameter(\"placeType\");\n\t\t\n\t\tString stopAllocatedViewsResult=\"\";\n\t\t\n\t\tfeatureModelName=featureModelName.replace(\"?\", \" \");\n\n\t\t\n\t\tString viewDir=getServlet().getServletContext().getRealPath(\"/\")+ \"extensions/views/\"; \n\t\tString modelDir=getServlet().getInitParameter(\"modelsPath\");\n\t\tString configuredModelPath=modelDir+\"configured_models\";\n\t\n\t\t\n\t\t\tif ((placeType.compareToIgnoreCase(\"stop\")==0)) {\n\t\t\t\tString configuredFileName=Methods.getConfiguredFileName(configuredModelPath, userKey);\n\t\t\t\tSystem.out.println(configuredFileName);\n\t\t\t\tif(configuredFileName.compareToIgnoreCase(\"false\")==0){\n\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\tmessage.put(\"value\", \"The configuration file not found\");\n\t\t\t\t\tmessages.add(message);\n\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\n\t\t\t\t}else{\n\t\t\t\t\tstopAllocatedViewsResult=Methods.checkConfigurationCompletionInStopPlace(featureModelName, viewDir, modelDir, configuredModelPath, taskName, placeType, workflowName, configuredFileName, userName, userID);\n\t\t\t\t\tif(stopAllocatedViewsResult.compareToIgnoreCase(\"true\")==0){\n\t\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\t\tmessage.put(\"value\", \"Configuration status of tasks has been checked\");\n\t\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\t\tmessage.put(\"value\", \"Problem in checking of configuration status of the tasks\");\n\t\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t \n\n\t\t\t}\t\n\t\t\t\t\n\t\t\t\n\t}", "public void openModel() {\r\n \t\tisReleased = true;\r\n \t\tif (checkForSave(\"<html>Save changes before opening a saved model?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\tJMODELModel tmpmodel = new JMODELModel();\r\n \t\tint state = modelLoader.loadModel(tmpmodel, mainWindow);\r\n \t\tif (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {\r\n \t\t\tresetMouseState();\r\n \t\t\t// Avoid checkForSave again...\r\n \t\t\tif (model != null) {\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t}\r\n \t\t\tnewModel();\r\n \t\t\t// At this point loading was successful, so substitutes old model\r\n \t\t\t// with loaded one\r\n \t\t\tmodel = tmpmodel;\r\n \t\t\tthis.populateGraph();\r\n \t\t\tsetSelect.setEnabled(true);\r\n \t\t\tcomponentBar.clickButton(setSelect);\r\n \t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t// Removes selection\r\n \t\t\tgraph.clearSelection();\r\n \t\t\t// If model contains results, enable Results Window\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\tif (model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\tthis.setResultsWindow(new PAResultsWindow(model.getParametricAnalysisModel(), (PAResultsModel) model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthis.setResultsWindow(new ResultsWindow(model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tmodel.resetSaveState();\r\n \t\t\tSystem.gc();\r\n \t\t} else if (state == ModelLoader.FAILURE) {\r\n \t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t}\r\n \t\t// Shows warnings if any\r\n \t\tif (state == ModelLoader.WARNING) {\r\n \t\t\tnew WarningWindow(modelLoader.getLastWarnings(), mainWindow, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show();\r\n \t\t}\r\n \r\n \t}", "@Activate\n\tpublic void activate() {\n\t\tAnswerModelImpl.setEntityCacheEnabled(entityCacheEnabled);\n\t\tAnswerModelImpl.setFinderCacheEnabled(finderCacheEnabled);\n\n\t\t_finderPathWithPaginationFindAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, AnswerImpl.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITH_PAGINATION, \"findAll\", new String[0]);\n\n\t\t_finderPathWithoutPaginationFindAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, AnswerImpl.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"findAll\",\n\t\t\tnew String[0]);\n\n\t\t_finderPathCountAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, Long.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"countAll\",\n\t\t\tnew String[0]);\n\n\t\t_finderPathFetchByQuestion = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, AnswerImpl.class,\n\t\t\tFINDER_CLASS_NAME_ENTITY, \"fetchByQuestion\",\n\t\t\tnew String[] {Long.class.getName()},\n\t\t\tAnswerModelImpl.QUESTIONID_COLUMN_BITMASK);\n\n\t\t_finderPathCountByQuestion = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, Long.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"countByQuestion\",\n\t\t\tnew String[] {Long.class.getName()});\n\t}", "void setModelInfo(int modelId, int chainCount);", "@Autowired\n\tpublic void execute(Model model) {\n\n\t}", "StatePac build();", "public DynamicModelPart build() {\n return this.rotateModelPart(this.rotation).addCuboids();\n }", "ActivationExpression createActivationExpression();", "void activate(Map<String, Object> config) {\n\t\tthis.config = config;\n\t\tlog.debug(bundleMarker, \"Activating...\");\n\t\tfor (Map.Entry<String, Object> entry : config.entrySet()) {\n\t\t\tlog.debug(bundleMarker, \"Property key={} value={}\", entry.getKey(),\n\t\t\t\t\tentry.getValue());\n\t\t}\n\t\tthis.animalTemplate = getAnimal(getConfigString(ANIMAL_TEMPLATE_URI));\n\t\tthis.scope = getProducerScope();\n\t\tthis.triggerOnID = getConfigBoolean(TRIGGER_ON_ID_NAME);\n\n\t\tthis.state = new State(getConfigInteger(CONTROL_STATE_VALUE),\n\t\t\t\tgetConfigString(CONTROL_STATE_NAME));\n\n\t}", "public void sbbActivate() {\n\t}", "public void activate() {\n if (!isResumed) {\n isToBeActivated = true;\n return;\n }\n\n if (isLocked) {\n return;\n }\n\n if (!isActive) {\n isActive = true;\n onActivate();\n }\n\n if (isFirstUse) {\n isFirstUse = false;\n settings.edit()\n .putBoolean(\"isFirstUse\", false)\n .commit();\n onFirstUse();\n }\n }", "@Override\r\n \tpublic void onModelConfigFromCache(OpenGLModelConfiguration model) {\n \t\tboolean hasNewer = getCurrentTarget().getLatestModelVersion() > \r\n \t\t\t\t\t\t model.getOpenGLModel().getModelVersion();\r\n \t\tthis.fireOnModelDataEvent(model, hasNewer);\r\n \t}", "public void initModel() {\r\n this.stateEngine = new RocketStateEngine();\r\n }", "JflowMethod buildCallback(String cbid)\n{\n Iterable<JflowMethod> it = model_master.getCallbacks(cbid);\n if (it == null) return null;\n\n JflowMethod m = callback_methods.get(cbid);\n if (m != null) return m;\n\n try {\n BT_Class dcls = BT_Class.forName(\"edu.brown.cs.ivy.jflow.JflowDummy\");\n BT_Method bm = null;\n try {\n\t bm = dcls.findMethod(\"callbackHandler_\" + cbid,\"()\");\n }\n catch (NoSuchMethodError e) {\n\t BT_ClassVector args = new BT_ClassVector();\n\t BT_MethodSignature bsg = BT_MethodSignature.create(BT_Class.getVoid(),args);\n\t bm = dcls.addStubMethod(\"callbackHandler_\" + cbid,bsg);\n }\n m = model_master.createMetaMethod(bm);\n callback_methods.put(cbid,m);\n }\n catch (Exception e) {\n System.err.println(\"Problem finding callback method: \" + e);\n return null;\n }\n\n if (model_master.doDebug()) {\n System.err.println(\"Create CALLBACK \" + cbid + \" \" + m);\n }\n\n ModelState enter = ModelState.createSimpleState(m,0);\n ModelState exit = ModelState.createSimpleState(m,0);\n ModelState s1 = ModelState.createSimpleState(m,0);\n ModelState s2 = ModelState.createSimpleState(m,0);\n enter.addTransition(s1);\n s2.addTransition(s2);\n s2.addTransition(s1);\n\n for (JflowMethod mi : it) {\n if (!isMethodIgnored(mi)) {\n\t ModelState sc = ModelState.createCallState(m,0,mi,false,null);\n\t s1.addTransition(sc);\n\t sc.addTransition(s2);\n\t addMethodTodo(mi);\n }\n }\n\n simplify(enter);\n\n ModelMethod mm = new ModelMethod(m,enter,exit);\n complete_calls.put(m,mm);\n\n return m;\n}", "@Override\n public void onActivate() {\n }", "public abstract JPAMethodContext build() throws ODataJPAModelException, ODataJPARuntimeException;", "private void activationON() {\n\n switch(afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.activatedContents();\n shell.layout();\n break;\n case AFFICHE_USER :\n ecranUser.activatedContents();\n shell.layout();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.activatedContents();\n shell.layout();\n break;\n default: break;\n }\n\n }", "@Override\n public void activate() {\n if ( ! prepared)\n prepare();\n\n validateSessionStatus(session);\n ApplicationId applicationId = session.getApplicationId();\n try (ActionTimer timer = applicationRepository.timerFor(applicationId, \"deployment.activateMillis\")) {\n TimeoutBudget timeoutBudget = new TimeoutBudget(clock, timeout);\n if ( ! timeoutBudget.hasTimeLeft()) throw new RuntimeException(\"Timeout exceeded when trying to activate '\" + applicationId + \"'\");\n\n RemoteSession previousActiveSession;\n CompletionWaiter waiter;\n try (Lock lock = tenant.getApplicationRepo().lock(applicationId)) {\n previousActiveSession = applicationRepository.getActiveSession(applicationId);\n waiter = applicationRepository.activate(session, previousActiveSession, applicationId, ignoreSessionStaleFailure);\n }\n catch (RuntimeException e) {\n throw e;\n }\n catch (Exception e) {\n throw new InternalServerException(\"Error when activating '\" + applicationId + \"'\", e);\n }\n\n waiter.awaitCompletion(timeoutBudget.timeLeft());\n log.log(Level.INFO, session.logPre() + \"Session \" + session.getSessionId() + \" activated successfully using \" +\n hostProvisioner.map(provisioner -> provisioner.getClass().getSimpleName()).orElse(\"no host provisioner\") +\n \". Config generation \" + session.getMetaData().getGeneration() +\n (previousActiveSession != null ? \". Based on session \" + previousActiveSession.getSessionId() : \"\") +\n \". File references: \" + applicationRepository.getFileReferences(applicationId));\n }\n }", "public void setToAlipayModelRequest(ToAlipayModelRequest toAlipayModelRequest) {\n this.toAlipayModelRequest = toAlipayModelRequest;\n }", "public UseCaseItem() {\n delegate = new MyModel.Builder().build();\n }", "private void doBeforeUpdateModel(final PhaseEvent arg0) {\n\t}", "public void activate() {\n rBody.activate();\n }", "public void activate() {\n\t\t\t\n\t\t//Prior to activation add objects to Community\n\t\tthis.buildings = new ArrayList<>();\t//setup buildings\n \tBuilding[] buildings = control.buildings();\n\t\tCollections.addAll(this.buildings, buildings);\n \t\n\t\t//Timer for animation\n\t\t//Argument 1: timerValue is a period in milliseconds to fire event\n\t\t//Argument 2:t any class that \"implements ActionListener\"\n\t\ttimer = new Timer(control.timerValue, this); //timer constructor\n\t\ttimer.restart(); //restart or start\n\t\t\n\t\t// frame becomes visible\n\t\tframe.setVisible(true);\t\t\n\t}", "public TargetGeneratorModel()\n {\n }", "@Override\n public void activateObject(MongoTemplate obj) throws Exception {\n \n }", "public ZEPipelineBindLayout build();", "FlowRule build();" ]
[ "0.5996103", "0.58692336", "0.5765301", "0.5636599", "0.5476863", "0.54175377", "0.54175377", "0.5393435", "0.53514355", "0.535075", "0.5348361", "0.53344077", "0.5315052", "0.5299139", "0.52826303", "0.525206", "0.5240276", "0.51641", "0.51641", "0.5145975", "0.514379", "0.512844", "0.5105632", "0.50873756", "0.5045504", "0.5045504", "0.50203013", "0.49492845", "0.4945012", "0.4944542", "0.4941223", "0.4941223", "0.49319786", "0.48349175", "0.48271257", "0.48255286", "0.4819031", "0.47934332", "0.47921297", "0.4779103", "0.4776968", "0.47748628", "0.47690475", "0.47536024", "0.47284096", "0.47250527", "0.47150367", "0.4710812", "0.47061512", "0.46662748", "0.46589026", "0.4651365", "0.46426132", "0.46393704", "0.46268314", "0.46257806", "0.46233806", "0.46214828", "0.46133867", "0.4612383", "0.46120638", "0.4543975", "0.45433235", "0.45364937", "0.45337844", "0.4522784", "0.4509187", "0.44817933", "0.4478287", "0.4473725", "0.4472154", "0.44650823", "0.4462108", "0.44600484", "0.44577345", "0.4439534", "0.44372502", "0.44321147", "0.44290015", "0.4417803", "0.44172585", "0.44153568", "0.44144675", "0.44140637", "0.44097695", "0.44071865", "0.43981782", "0.4391966", "0.43745476", "0.43726104", "0.4372511", "0.4365265", "0.43590325", "0.43551457", "0.4351509", "0.43462917", "0.43390602", "0.4336711", "0.43336755", "0.43182316", "0.43173656" ]
0.0
-1
verify the required parameter 'workspaceId' is set
@SuppressWarnings("rawtypes") private okhttp3.Call activateModelValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException { if (workspaceId == null) { throw new ApiException("Missing the required parameter 'workspaceId' when calling activateModel(Async)"); } // verify the required parameter 'modelId' is set if (modelId == null) { throw new ApiException("Missing the required parameter 'modelId' when calling activateModel(Async)"); } okhttp3.Call localVarCall = activateModelCall(workspaceId, modelId, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }", "public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }", "@Test\r\n \tpublic void testProjectID() {\n \t\tassertNull(localProject.getGlobalProjectId());\r\n \t}", "public String getWorkspaceId() {\n return workspaceId;\n }", "public String getWorkspaceId() {\n return this.workspaceId;\n }", "public UUID getWorkspaceId() {\n return workspaceId;\n }", "@Test\n\tpublic void getProjectByIdInvalid() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.getProjectById(7L);\n\t}", "@Test\n\tpublic void updateProjectsInvalidId() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.updateProject(7L, project);\n\t}", "@Test\n public void checkExistentWidgetAndParameter() throws Exception {\n\n driver = WidgetUtils.OpenWidgetEditMode(driver, wait, baseUrl, widgetName);\n\n //Step 3 - Check if the parameter exist in 'Settings'\n //Move to the iframe\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='solutionNavigatorAndContentPanel']/div[4]/table/tbody/tr[2]/td/div/div/table/tbody/tr/td/iframe\")));\n WebElement frameCDEDashboard = driver.findElement(By.xpath(\"//div[@id='solutionNavigatorAndContentPanel']/div[4]/table/tbody/tr[2]/td/div/div/table/tbody/tr/td/iframe\"));\n driver.switchTo().frame(frameCDEDashboard);\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='layoutPanelButton']\")));\n assertTrue(driver.findElement(By.xpath(\"//div[@class='layoutPanelButton']\")).isEnabled());\n //Press 'Settings'\n driver.findElement(By.xpath(\"//div[@id='headerLinks']/div[5]/a\")).click();\n wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.xpath(\"//div[@id='popup']\")));\n assertNotNull(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/input\")));\n //The parameter MUST be equal to the one set\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@id='widgetParameters']/div/span\")));\n assertEquals(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/span\")).getText(), paramName);\n //Press on the check box\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@id='widgetParameters']/div/input\")));\n assertTrue(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/input\")).isSelected());\n //Press button 'Cancel'\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='popupbuttons']/button[@id='popup_state0_buttonCancel']\")));\n driver.findElement(By.xpath(\"//div[@class='popupbuttons']/button[@id='popup_state0_buttonCancel']\")).click();\n\n\n //Step 4 - Click on Component Panel and check if the widget is listed\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='componentsPanelButton']\")));\n driver.findElement(By.xpath(\"//div[@class='componentsPanelButton']\")).click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/h3/span\")));\n driver.findElement(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/h3/span\")).click();\n //Getting the element where the widget created is displayed\n WebElement listOfWidgets = driver.findElement(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/div\"));\n //Check if the widget created is listed\n WebElement theWidgetCreated = listOfWidgets.findElement(By.xpath(\"//a[@class='tooltip' and contains(text(),'\" + widgetName + \"')]\"));\n assertNotNull(theWidgetCreated);\n assertEquals(theWidgetCreated.getText(), widgetName);\n\n\n //Step 5 - Click in the widget created and check if the widget is add at Components column and Properties\n theWidgetCreated.click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//table[@id='table-cdfdd-components-components']/tbody/tr[4]/td\")));\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//table[@id='table-cdfdd-components-properties']/tbody/tr[2]/td\")));\n assertEquals(driver.findElement(\n By.xpath(\"//table[@id='table-cdfdd-components-components']/tbody/tr[4]/td\")).getText(),\n widgetName + \" Widget\");\n assertEquals(driver.findElement(\n By.xpath(\"//table[@id='table-cdfdd-components-properties']/tbody/tr[2]/td\")).getText(),\n \"Parameter \" + paramName);\n }", "public void setWorkspace( Integer workspace ) {\n this.workspace = workspace;\n }", "public void setWorkspace(String workspace) {\n this.workspace = workspace;\n }", "protected static Workspace getWorkspace(String workspaceId)\n throws AnaplanAPIException {\n if (workspaceId == null || workspaceId.isEmpty()) {\n LOG.error(\"A workspace ID must be provided\");\n return null;\n }\n Workspace result = null;\n\n if (!noValidateWorkspace) {\n try {\n result = getService().getWorkspace(workspaceId);\n } catch (WorkspaceNotFoundException | UnknownAuthenticationException ignored) {\n }\n }\n if (result == null) {\n WorkspaceData data = new WorkspaceData();\n data.setId(workspaceId);\n try {\n result = new Workspace(getService(), data);\n } catch (UnknownAuthenticationException ignored) {\n }\n }\n return result;\n }", "public BaseMsg verifyProjectInfo(long projectId);", "private boolean assertIdAndVarName() {\r\n\t\tfinal boolean isValidId = assertNotEmpty(cmpCfg.getId(),\r\n\t\t\t\tYValidationAspekt.VIEW_ID_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValidVar = assertNotEmpty(cmpCfg.getVariableName(),\r\n\t\t\t\tYValidationAspekt.VIEW_VAR_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValid = isValidId && isValidVar;\r\n\t\treturn isValid;\r\n\r\n\t}", "private void validatePathParameters(final Integer datacenterId) throws NotFoundException\n {\n if (!service.isAssignedTo(datacenterId, RemoteServiceType.NODE_COLLECTOR))\n {\n throw new NotFoundException(APIError.NOT_ASSIGNED_REMOTE_SERVICE_DATACENTER);\n }\n }", "public void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public boolean isIdExist(int projectId) throws EmployeeManagementException;", "boolean canAccess(String workspaceName) throws NoSuchWorkspaceException, RepositoryException;", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "@Test\n public void testBuildWithValidParametersReturnsProjectExportParametersInstance() {\n // Arrange\n testling.setProjectName(\"validProjectName\")\n .setProjectExportPath(\"validProjectExportPath\");\n\n // Assert\n ProjectExportParameters parameters = testling.build();\n\n // Act\n assertThat(\"Expect not null.\", parameters, is(notNullValue()));\n }", "@Test\n\tpublic void deleteProjectsInvalidID() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.deleteProject(7L);\n\t}", "@Test\n\tpublic void testBuildWithValidParametersReturnsProjectExportParametersInstance() {\n\t\t// Arrange\n\t\ttestling.setProjectName(\"validProjectName\")\n\t\t\t\t.setProjectExportPath(\"validProjectExportPath\");\n\n\t\t// Assert\n\t\tProjectExportParameters parameters = testling.build();\n\n\t\t// Act\n\t\tassertThat(\"Expect not null.\", parameters, is(notNullValue()));\n\t}", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "public void testPropFindForNonExistingWorkspace() throws Exception\n {\n String file = TestUtils.getFileName();\n\n ContainerResponse response =\n service(WebDAVMethods.PROPFIND, getPathWS() + \"_\" + file, \"\", null, null);\n assertEquals(HTTPStatus.CONFLICT, response.getStatus());\n }", "public interface WorkspaceContext {\n\n\n /**\n * Retorna a representação do workspace.\n *\n * @return\n */\n WorkspaceRepresentation getWorkspace();\n\n /**\n * Define o projeto de trabalho.\n *\n * @param projectRepresentation\n */\n void setWorkingProject(ProjectRepresentation projectRepresentation);\n\n\n /**\n * Retorna o projeto de trabalho.\n *\n * @return\n */\n ProjectRepresentation getWorkingProject();\n}", "protected void addWorkspace( String workspaceName ) {\n }", "@Reference\n public void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public void testGetProjectPhasesLong_NotExist() throws Exception {\n Project project = persistence.getProjectPhases(33245);\n assertNull(\"Should return null.\", project);\n }", "protected void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "@Test\n\tpublic void query_for_build_project_is_scoped_to_BuildProject() {\n\t\tEnvironmentContext cx = null;\n\t\ttry {\n\t\t\tcx = new EnvironmentContext();\n\t\t} catch (Exception e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t// And a new repository with that connection\n\t\tBuildProjectRepository repository = new BuildProjectRepositoryApiClient(cx);\n\t\t// When I build the query for story statuses\n\t\tQuery query = repository.buildQueryForAllBuildProjects();\n\t\t// Then the asset type is BuildProject\n\t\tassertEquals(\"BuildProject\", query.getAssetType().getToken());\n\t}", "private void checkAuthSessionId() {\n val auth = config.getString(\"authSessionId\");\n\n checkArgument(auth.length() > 10, \"auth string (sessionId) length is less than or equal to 10!\");\n }", "public boolean checkSelf() {\n\t\tboolean ok = true;\n\t\tif (controller == null) {\n\t\t\tSystem.err.println(\"CRParameters :: controller not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (scenario.length() == 0 && controller.getWorld().getHasScenarios()) {\n\t\t\tSystem.err.println(\"CRParameters :: scenario not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (reportFolderName.length() == 0) {\n\t\t\tSystem.err.println(\"CRParameters :: report folder not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (trialDuration <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: trial duration not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfRuns <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of runs not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfTrials <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of trials not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\treturn ok;\n\t}", "private void validateGetIdPInputValues(String resourceId) throws IdentityProviderManagementException {\n\n if (StringUtils.isEmpty(resourceId)) {\n String data = \"Invalid argument: Identity Provider resource ID value is empty\";\n throw IdPManagementUtil.handleClientException(IdPManagementConstants.ErrorMessage\n .ERROR_CODE_IDP_GET_REQUEST_INVALID, data);\n }\n }", "public FormValidation doCheckExecutionParameters(@QueryParameter String value, @QueryParameter String agentId) {\n if (StringUtils.isEmpty(value) && StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n JsonObject executionParams = null;\n try {\n executionParams = SerializationHelper.fromJson(value, JsonObject.class);\n\n // In case the value parameter is empty\n if (executionParams == null)\n return FormValidation.ok();\n\n } catch (JsonSyntaxException e) {\n return FormValidation.error(\"Invalid JSON object\");\n }\n\n // In case the user did not select agent from the dropdown and/or in the JSON object, return ok.\n if ((executionParams.get(\"agentId\") != null && StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString())) || StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n // In case the user has selected the same agentId in the dropdown and in the JSON object, no need to show a warning\n if ((executionParams.get(\"agentId\") != null && StringUtils.equals(executionParams.get(\"agentId\").getAsString(), agentId)))\n return FormValidation.ok();\n\n // In case the user has selected two different agents in the dropdown and in the JSON object, show warning\n if (executionParams.get(\"agentId\") != null &&\n !StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString()) &&\n !StringUtils.isEmpty(agentId))\n return FormValidation.warning(\"You've selected an agent and specified a different one in executionParameters. The job will be executed on the selected agent.\");\n\n return FormValidation.ok();\n }", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "protected void removeWorkspace( String workspaceName ) {\n }", "public boolean isSetRunId() {\n return this.runId != null;\n }", "@Test\n public void testErrorMsgWhenProjectNameIsEmpty() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String testAccount = \"Account2\";\n createProject.setAccountDropDown(testAccount);\n createProject.clickCreateProject();\n\n //Then\n String expectedMessage = \"Enter a name for your project\";\n String actualMessage = createProject.getProjectTitleMessage();\n softAssert.assertEquals(expectedMessage, actualMessage);\n softAssert.assertEquals(createProject.getProjectNameTextFieldColor(), RED_COLOR);\n softAssert.assertAll();\n }", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "public void setStagingWorkspaceId(Long stagingWorkspaceId) {\n this.stagingWorkspaceId = stagingWorkspaceId;\n }", "@Override\n public String validNameProject(String name, Integer project_Oid) {\n return null;\n }", "public String getWorkspaceName() {\n return workspaceName;\n }", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorWorkspaceNull() {\n PlannedActivity plannedActivity = new PlannedActivity(0,\n new Site(\"factory\", \"area\"), new Typology(\"typology\"),\n \"desctiption\", 0, true, 1, new Procedure(\"name\", \"smp\"), null);\n\n }", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test\n public void testWithActiveRunNoRunName() {\n MlflowContext mlflow = setupMlflowContext();\n mlflow.setExperimentId(\"123\");\n when(mockClient.createRun(any(CreateRun.class)))\n .thenReturn(RunInfo.newBuilder().setRunId(\"test-id\").build());\n mlflow.withActiveRun(activeRun -> {\n Assert.assertEquals(activeRun.getId(), \"test-id\");\n });\n verify(mockClient).createRun(any(CreateRun.class));\n verify(mockClient).setTerminated(any(), any());\n }", "public void test_61843() {\n \t\t// create the project and manually give it a settings file\n \t\tfinal String qualifier = getUniqueString();\n \t\tfinal IProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tIFile settingsFile = getFileInWorkspace(project, qualifier);\n \n \t\t// write some property values in the settings file\n \t\tProperties properties = new Properties();\n \t\tproperties.put(\"key\", \"value\");\n \t\tOutputStream output = null;\n \t\ttry {\n \t\t\tFile file = settingsFile.getLocation().toFile();\n \t\t\tfile.getParentFile().mkdirs();\n \t\t\toutput = new BufferedOutputStream(new FileOutputStream(file));\n \t\t\tproperties.store(output, null);\n \t\t} catch (FileNotFoundException e) {\n \t\t\tfail(\"1.0\", e);\n \t\t} catch (IOException e) {\n \t\t\tfail(\"1.1\", e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (output != null)\n \t\t\t\t\toutput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\t// ignore\n \t\t\t}\n \t\t}\n \n \t\t// add a log listener to ensure that no errors are reported silently\n \t\tILogListener logListener = new ILogListener() {\n \t\t\tpublic void logging(IStatus status, String plugin) {\n \t\t\t\tThrowable exception = status.getException();\n \t\t\t\tif (exception == null || !(exception instanceof CoreException))\n \t\t\t\t\treturn;\n \t\t\t\tif (IResourceStatus.WORKSPACE_LOCKED == ((CoreException) exception).getStatus().getCode())\n \t\t\t\t\tfail(\"3.0\");\n \t\t\t}\n \t\t};\n \n \t\t// listener to react to changes in the workspace\n \t\tIResourceChangeListener rclistener = new IResourceChangeListener() {\n \t\t\tpublic void resourceChanged(IResourceChangeEvent event) {\n \t\t\t\tnew ProjectScope(project).getNode(qualifier);\n \t\t\t}\n \t\t};\n \n \t\t// add the listeners\n \t\tPlatform.addLogListener(logListener);\n \t\tgetWorkspace().addResourceChangeListener(rclistener, IResourceChangeEvent.POST_CHANGE);\n \n \t\ttry {\n \t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"4.0\", e);\n \t\t} finally {\n \t\t\tPlatform.removeLogListener(logListener);\n \t\t\tgetWorkspace().removeResourceChangeListener(rclistener);\n \t\t}\n \t}", "@Test\n public void getComputerBuildByIdentifier() {\n Iterable<ComputerBuild> computerBuilds = computerBuildService.getAllComputerBuildsFromUser(USER_NAME_TO_TEST_OWNERSHIP_ENDPOINTS);\n ComputerBuild retrievedBuild = computerBuilds.iterator().next();\n assertNotNull(retrievedBuild);\n\n ComputerBuild foundBuild = computerBuildService.getComputerBuildByBuildIdentifier(retrievedBuild.getBuildIdentifier());\n\n assertNotNull(foundBuild);\n assertEquals(retrievedBuild.getBuildIdentifier(), foundBuild.getBuildIdentifier());\n assertEquals(retrievedBuild.getUser().getUsername(), foundBuild.getUser().getUsername());\n\n }", "@Test\n public void testValidToken() {\n try {\n int coachId = authBO.getUserIdAndValidateToken(\"thisisaworkingtoken\");\n Assert.assertTrue(coachId == 1);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "String checkIfProjectExists(String projectKey, String projectName);", "@Override\r\n protected CommandStatus<StclContext, PStcl> verifyContext(CommandContext<StclContext, PStcl> cmdContext, PStcl self) {\n _name = getParameter(cmdContext, 1, null);\r\n if (StringUtils.isEmpty(_name)) {\r\n return error(cmdContext, self, Status.NO_NAME_DEFINED, \"no name to copy directory\");\r\n }\r\n\r\n // other verification\r\n return super.verifyContext(cmdContext, self);\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 }", "@Test\n public void test_access_to_modify_team_success() {\n try {\n Assert.assertTrue(authBO.hasAccessToModifyTeam(1, 1));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "private boolean configurationInWorkspace(URL url) {\n \t\treturn true;\n \t}", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExists() {\n assertThrows(NotFoundException.class, () -> projectService.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Test\n public void testNoCoverageId() throws Exception {\n MockHttpServletResponse response = getAsServletResponse(\"wcs?service=WCS&version=2.0.1&request=GetCoverage\");\n checkOws20Exception(response, 400, \"MissingParameterValue\", \"coverageId\");\n }", "void verifyOrCreateReport(String reportId);", "public void testGetProjectByNameDoesNotExist() throws Exception {\r\n ProjectServiceRemote projectService = lookupProjectServiceRemoteWithUserRole();\r\n\r\n // 1 is the user id\r\n try {\r\n projectService.getProjectByName(\"xxxxx\", 1);\r\n fail(\"ProjectNotFoundFault expected.\");\r\n } catch (ProjectNotFoundFault e) {\r\n // expected\r\n }\r\n }", "@Test\n public void testFailureWithoutObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, \"\", 400);\n }", "private boolean ensureWorkspaceExists(String name, Credentials credentials) {\r\n\t\tSession sess = null;\r\n\t\ttry {\r\n\t\t\tsess = repository.login(credentials);\r\n\t\t\tString[] wsnames = sess.getWorkspace()\r\n\t\t\t\t\t.getAccessibleWorkspaceNames();\r\n\t\t\tif (inArr(name, wsnames)) {\r\n\t\t\t\t// workspace exists\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tlog.info(\" Creating Repository workspace \" + name);\r\n\t\t\t\tsess.getWorkspace().createWorkspace(name);\r\n\t\t\t}\r\n\t\t} catch (LoginException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t} catch (RepositoryException e) {\r\n\t\t\t// ugly check, we are getting something like workspace 'wsname'\r\n\t\t\t// already exists.\r\n\t\t\tif (e.getMessage().indexOf(\"already exists\") > 0) {\r\n\t\t\t\t// ignore exteption\r\n\t\t\t} else {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif (sess != null) {\r\n\t\t\t\tsess.logout();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Test\n public void allWorkspacesTest() throws ApiException {\n List<Workspace> response = api.allWorkspaces();\n\n // TODO: test validations\n }", "@Test\n public void testFailureWithNonexistantObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, reqFactory.createIdApiRequest(Types.PACKAGE).execute(hc), 404);\n }", "public String getWorkspace() {\n return workspace;\n }", "void checkStationId(int lineCount, String testStationId) {\n if (!stationId.equals(testStationId)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Station Id does not match previous station record \" +\n stationId + \": \" + testStationId);\n } // if (!stationId.equals(station.getStationId(\"\")))\n }", "protected void verifyRequestInputModelNone( String apiName)\n {\n // Given...\n OpenAPI api = readApi( apiName);\n\n // When...\n SystemInputDef inputDef = TcasesOpenApi.getRequestInputModel( api);\n\n // Then...\n assertThat( apiName + \" input model\", inputDef, is( nullValue()));\n }", "@Test\n public void testNeighborSystemId() throws Exception {\n isisNeighbor.setNeighborSystemId(systemId);\n result1 = isisNeighbor.neighborSystemId();\n assertThat(result1, is(systemId));\n }", "void commit(String workspace);", "protected void validateCredentials() throws BittrexApiException {\n String humanMessage = \"Please check environment variables or VM options\";\n if (Strings.isNullOrEmpty(this.getApiKey()))\n throw new BittrexApiException(\"Missing BITTREX_API_KEY. \" + humanMessage);\n if (Strings.isNullOrEmpty(this.getSecretKey()))\n throw new BittrexApiException(\"Missing BITTREX_SECRET_KEY. \" + humanMessage);\n }", "@Test\n\tpublic void testGetBuildVersion() {\n\t\tString buildVersion = rmitAnalyticsModel.getBuildVersion();\n\t\tAssert.assertNotNull(buildVersion);\n\t\tAssert.assertTrue(buildVersion.isEmpty());\n\t}", "@Test\n public void enableDebuggerTest() {\n String customerId = null;\n // Void response = api.enableDebugger(customerId);\n\n // TODO: test validations\n }", "public void checkParameters() {\n }", "public Workspace getWorkspace() {\n return workspace;\n }", "private void verifyWorkspace(long[][][] ids) {\n ArrayList<Long> allScreens = LauncherModel.loadWorkspaceScreensDb(getMockContext());\n assertEquals(ids.length, allScreens.size());\n int total = 0;\n\n for (int i = 0; i < ids.length; i++) {\n long screenId = allScreens.get(i);\n for (int y = 0; y < ids[i].length; y++) {\n for (int x = 0; x < ids[i][y].length; x++) {\n long id = ids[i][y][x];\n\n Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI,\n new String[]{LauncherSettings.Favorites._ID},\n \"container=-100 and screen=\" + screenId +\n \" and cellX=\" + x + \" and cellY=\" + y, null, null, null);\n if (id == -1) {\n assertEquals(0, c.getCount());\n } else {\n assertEquals(1, c.getCount());\n c.moveToNext();\n assertEquals(id, c.getLong(0));\n total++;\n }\n c.close();\n }\n }\n }\n\n // Verify that not other entry exist in the DB.\n Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI,\n new String[]{LauncherSettings.Favorites._ID},\n \"container=-100\", null, null, null);\n assertEquals(total, c.getCount());\n c.close();\n }", "@Override\r\n\tpublic Workspace getWorkspace() {\n\t\treturn null;\r\n\t}", "@Test\n public void postTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.postTemplateProgrammerProject(request);\n\n // TODO: test validations\n }", "private void validateITResource() {\n // TODO Auto-generated method stub\n \n }", "private void assert_validPID(int pid) throws IllegalArgumentException{\n\t\tif(!validPID(pid)){\n\t\t\tthrow new IllegalArgumentException(\"Tried to get a property from layer '\"+ name\n\t\t\t\t\t+\"' with an invalid property ID: \"+pid);\n\t\t}\n\t}", "public static boolean isValidDivisionId(int divisionId) {\n return divisionId > 0 || divisionId == DIVISION_TEST || divisionId == DIVISION_GLOBAL;\n }", "private boolean checkInstanceLocation(boolean show_login,\n final boolean force_prompt,\n URL default_workspace, String username, String password,\n Map<String, Object> parameters)\n {\n // Was \"-data @none\" specified on command line?\n final Location instanceLoc = Platform.getInstanceLocation();\n\n if (instanceLoc == null)\n {\n MessageDialog.openError(null,\n \"No workspace\", //$NON-NLS-1$\n \"Cannot run without a workspace\"); //$NON-NLS-1$\n return false;\n }\n\n // -data \"/some/path\" was provided...\n if (instanceLoc.isSet())\n {\n try\n { // Lock\n if (instanceLoc.lock())\n return true;\n // Two possibilities:\n // 1. directory is already in use\n // 2. directory could not be created\n final File ws_dir = new File(instanceLoc.getURL().getFile());\n if (ws_dir.exists())\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_InUseErrorTitle,\n NLS.bind(org.csstudio.platform.workspace.Messages.Workspace_InUseError,\n ws_dir.getCanonicalPath()));\n else\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_DirectoryErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_DirectoryError);\n }\n catch (IOException ex)\n {\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_LockErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_LockError\n + ex.getMessage());\n }\n return false;\n }\n\n // -data @noDefault or -data not specified, prompt and set\n if (default_workspace == null)\n default_workspace = instanceLoc.getDefault();\n\n final WorkspaceInfo workspace_info =\n new WorkspaceInfo(default_workspace, !force_prompt);\n\n // Prompt in any case? Or did user decide to be asked again?\n boolean show_Workspace = force_prompt | workspace_info.getShowDialog();\n\n //if no user name provided, display last login user.\n if(username == null)\n username = WorkspaceIndependentStore.readLastLoginUser();\n\n //initialize startupHelper\n StartupHelper startupHelper = new StartupHelper(null, force_prompt,\n workspace_info, username, password, show_login, show_Workspace);\n\n while (true)\n {\n startupHelper.setShow_Login(show_login);\n startupHelper.setShow_Workspace(show_Workspace);\n\n if (show_Workspace || show_login)\n {\n if (! startupHelper.openStartupDialog())\n return false; // canceled\n\n //get user name and password from startup dialog\n if(show_login) {\n username = startupHelper.getUserName();\n password = startupHelper.getPassword();\n }\n }\n // In case of errors, we will have to ask the workspace,\n // but don't bother to ask user name and password again.\n show_Workspace = true;\n show_login = false;\n\n try\n {\n // the operation will fail if the url is not a valid\n // instance data area, so other checking is unneeded\n URL workspaceUrl = new URL(\"file:\" + workspace_info.getSelectedWorkspace()); //$NON-NLS-1$\n if (instanceLoc.set(workspaceUrl, true)) // set & lock\n {\n workspace_info.writePersistedData();\n parameters.put(WORKSPACE, workspaceUrl);\n return true;\n }\n }\n catch (Exception ex)\n {\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_GenericErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_GenericError + ex.getMessage());\n return false;\n }\n // by this point it has been determined that the workspace is\n // already in use -- force the user to choose again\n show_login = false;\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_InUseErrorTitle,\n NLS.bind(org.csstudio.platform.workspace.Messages.Workspace_InUseError,\n workspace_info.getSelectedWorkspace()));\n }\n }", "@Test\n void testNonEmptyConstructor() {\n assertNotNull(isLockedRequest2);\n assertTrue(isLockedRequest2.getToken().equals(token)\n && isLockedRequest2.getId() == id);\n }", "@Then(\"^Validate customer id is created$\")\r\n\tpublic void validate_customer_id_is_created() throws Throwable {\n\t\tAssert.assertTrue(response.jsonPath().get(\"id\").equals(new PropertFileReader().getTempData(\"custId\")));\r\n\t\t\r\n\t}", "public Workspace build() {\n if (properties == null) {\n properties = new HashMap<>();\n }\n if (workspaceId == null || workspaceStage == null) {\n throw new MissingRequiredFieldsException(\"Workspace requires id and stage\");\n }\n return new Workspace(\n workspaceId,\n displayName,\n description,\n spendProfileId,\n properties,\n workspaceStage,\n gcpCloudContext);\n }", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExistsMockVersion() {\n assertThrows(NotFoundException.class, () -> projectServiceMock.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Test\n public void given_devEnvironmentWithPathVariable_when_callEndPointUpdateStudent_then_returnStatus200() throws Exception {\n\n Mockito.when(studentRepo.findById(ArgumentMatchers.anyLong()))\n .thenReturn(Optional.of(STUDENT));\n\n RequestBuilder request = MockMvcRequestBuilders\n .delete(\"/students/1\")\n .accept(MediaType.APPLICATION_JSON_VALUE)\n .contentType(MediaType.APPLICATION_JSON_VALUE);\n\n mockMvc.perform(request)\n .andExpect(status().isOk())\n .andDo(MockMvcResultHandlers.print())\n .andReturn();\n\n }", "@Test(expected = CopilotServiceInitializationException.class)\n public void testCheckNullForInjectedValueFailure() {\n Helper.checkNullForInjectedValue(null, \"obj\");\n }", "@Override\r\n\tpublic void testInvalidId() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testInvalidId();\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void Test_ID() {\r\n\t\tResponse resp = given().\r\n\t\t\t\tparam(\"nasa_id\", \"PIA12235\").\r\n\t\t\t\twhen().\r\n\t\t\t\tget(endpoint);\r\n\t\t\t\tSystem.out.println(resp.getStatusCode());\r\n\t\t\t\tAssert.assertEquals(resp.getStatusCode(), 200);\r\n\t}", "@Test\n public void commandIdTest() {\n // TODO: test commandId\n }", "static void checkId(final long id, final String paramName) {\r\n if (id <= 0) {\r\n throw new IllegalArgumentException(\"The '\" + paramName\r\n + \"' should be above 0.\");\r\n }\r\n }", "public Long getStagingWorkspaceId() {\n return stagingWorkspaceId;\n }", "public void requirePatientId() {\n hasPatientIdParam = true;\n }", "@Test\n public void cityNotNull()\n {\n assertNotNull(_city);\n }", "@Override\n\tpublic boolean hasParameter(String id) {\n\t\treturn false;\n\t}", "@When(\"^I enter valid credentia ls$\")\n public void iEnterValidCredentials() throws Throwable {\n throw new PendingException();\n }", "@Test\n public void putTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.putTemplateProgrammerProject(request);\n\n // TODO: test validations\n }", "private void checkLegal(int glId)\n {\n if (glId == GL2.GL_POLYGON_MODE || glId == GL2.GL_COLOR_MATERIAL_PARAMETER)\n return;\n if (GLState.TEXTURE_GROUP <= glId && glId < GLState.TEXTURE_GROUP + GLState.TEXTURE_GROUP_SIZE)\n return;\n throw new IllegalArgumentException(\"GLStateComponentII: unknown glId: \" + glId);\n }", "@Test\n\tpublic void testValidateSurveyIds() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyIds(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\tfor(String simpleValidList : ParameterSets.getSimpleValidLists()) {\n\t\t\t\ttry {\n\t\t\t\t\tSurveyResponseValidators.validateSurveyIds(simpleValidList);\n\t\t\t\t}\n\t\t\t\tcatch(ValidationException e) {\n\t\t\t\t\tfail(\"A valid list failed validation.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {listProjects} integration test with mandatory parameters.\")\n public void testListProjectsWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:listProjects\");\n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_listProjects_mandatory.json\");\n \n connectorProperties.setProperty(\"projectId\", esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0)\n .getString(\"id\"));\n \n final String apiEndPoint = apiRequestUrl + \"/projects\";\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"page\"), apiRestResponse.getBody().getString(\"page\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"pageSize\"), apiRestResponse.getBody().getString(\n \"pageSize\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0).getString(\"id\"),\n apiRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0).getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"totalItems\"), apiRestResponse.getBody().getString(\n \"totalItems\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONArray(\"items\").length(), apiRestResponse.getBody()\n .getJSONArray(\"items\").length());\n \n }", "public void testCheckinProjectFlags() {\n String[] sTestCmdLine = { \"soscmd\", \"-command\", \"CheckInProject\",\n \"-recursive\", \"-server\", SOS_SERVER_PATH, \"-name\", SOS_USERNAME,\n \"-password\", \"\", \"-database\", VSS_SERVER_PATH , \"-project\",\n \"$\"+VSS_PROJECT_PATH, \"\", \"\", \"-soshome\", SOS_HOME, \"-workdir\",\n project.getBaseDir().getAbsolutePath(), \"-log\", SRC_COMMENT, };\n\n // Set up a SOSCheckin task\n sosCheckin.setProject(project);\n sosCheckin.setVssServerPath(VSS_SERVER_PATH);\n sosCheckin.setSosServerPath(SOS_SERVER_PATH);\n sosCheckin.setProjectPath(VSS_PROJECT_PATH);\n sosCheckin.setComment(SRC_COMMENT);\n sosCheckin.setUsername(SOS_USERNAME);\n sosCheckin.setSosHome(SOS_HOME);\n sosCheckin.setNoCache(true);\n sosCheckin.setNoCompress(false);\n sosCheckin.setVerbose(false);\n sosCheckin.setRecursive(true);\n\n commandline = sosCheckin.buildCmdLine();\n String[] sGeneratedCmdLine = commandline.getCommandline();\n\n int i = 0;\n while (i < sTestCmdLine.length) {\n try {\n assertEquals(\"CheckInProject arg # \" + String.valueOf(i),\n sTestCmdLine[i],\n sGeneratedCmdLine[i]);\n i++;\n } catch (ArrayIndexOutOfBoundsException aioob) {\n fail(\"CheckInProject missing arg\");\n }\n\n }\n if (sGeneratedCmdLine.length > sTestCmdLine.length) {\n // We have extra elements\n fail(\"CheckInProject extra args\");\n }\n }", "public void validate(String id, String pw) throws RemoteException;" ]
[ "0.657872", "0.6380109", "0.62008697", "0.5976683", "0.59373516", "0.5839217", "0.5566827", "0.5448127", "0.52786946", "0.5269995", "0.5196387", "0.51607555", "0.51189697", "0.508889", "0.5064193", "0.50608283", "0.50554603", "0.50330585", "0.49991024", "0.49743348", "0.49724448", "0.49594417", "0.49197826", "0.491896", "0.490713", "0.49058446", "0.48890433", "0.48783642", "0.48597386", "0.48474434", "0.48474434", "0.48311138", "0.4807382", "0.48067132", "0.48052973", "0.47965625", "0.4796097", "0.4765143", "0.47617197", "0.47520408", "0.47512177", "0.47489437", "0.47447008", "0.4735933", "0.47065184", "0.4703288", "0.47021332", "0.46969104", "0.4696338", "0.46865094", "0.46826315", "0.4664571", "0.4663318", "0.4663316", "0.46628886", "0.46527684", "0.46514392", "0.46402842", "0.46398705", "0.46371534", "0.4636271", "0.46341985", "0.46269903", "0.46191534", "0.46178064", "0.4611531", "0.46016502", "0.4597162", "0.45966285", "0.45854414", "0.45712954", "0.4570018", "0.4569676", "0.45575714", "0.4556279", "0.45476666", "0.453692", "0.45338118", "0.4532829", "0.45237777", "0.45200512", "0.45170856", "0.4512562", "0.4510801", "0.45090535", "0.45079604", "0.4507515", "0.4506074", "0.44985104", "0.44932693", "0.44868118", "0.44845432", "0.448445", "0.44838086", "0.4479446", "0.44775915", "0.44773886", "0.44747898", "0.44694686", "0.44692975", "0.4468484" ]
0.0
-1
Activate model Activate model
public ModelApiResponse activateModel(String workspaceId, String modelId) throws ApiException { ApiResponse<ModelApiResponse> localVarResp = activateModelWithHttpInfo(workspaceId, modelId); return localVarResp.getData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void activate(){\r\n\r\n\t}", "public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}", "public void activate()\n {\n }", "public void activate(){\r\n\t\tactive=true;\r\n\t}", "public void activate() \r\n\t\t{\r\n\t\tif (!isActive()) \r\n\t\t\t{\r\n\t\t\tsuper.activate();\r\n\t\t\t((IModelElement) getModel()).addPropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t}", "public void Activate() {\n state.Activate();\n }", "public void activate() {\r\n if (!isActive()) {\r\n super.activate();\r\n ((AModelElement) getModel()).addPropertyChangeListener(this);\r\n }\r\n }", "public void activate() {\n\t\tactivated = true;\n\t}", "@Override\n public void activate() {\n \n }", "public void activate();", "@Override\n\tpublic void activate() {\n\t\t\n\t}", "@Override\n\tpublic void activate() {\n\t}", "@Override\n\tpublic void activate() {\n\t}", "public void activate() {\n\tif (canBeActive()) {\n\t\tmActive = true;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be activated\");\n\t}\n}", "@Override\n public void activate() {\n\n }", "void activate();", "void activate();", "@Override\n public void activate() {\n init();\n }", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "public abstract void activate();", "public abstract void activate();", "public void switchModel()\n {\n \tactiveModel++;\n \tif (activeModel > 1)\n \t{\n \t\tactiveModel = 0;\n \t}\n }", "@Override\n\tpublic boolean activate() {\n\t\treturn true;\n\t}", "public void activate() {\t\t\n\t\t// Put activation code here (computing output based on the network's inputs)\n }", "public void activate() {\n\t\tif (resetCounter == 0 && isReloaded()) {\n\t\t\tactivated = true;\n\t\t}\n\t}", "public void activate() {\n if (!isResumed) {\n isToBeActivated = true;\n return;\n }\n\n if (isLocked) {\n return;\n }\n\n if (!isActive) {\n isActive = true;\n onActivate();\n }\n\n if (isFirstUse) {\n isFirstUse = false;\n settings.edit()\n .putBoolean(\"isFirstUse\", false)\n .commit();\n onFirstUse();\n }\n }", "public void activate() {\n neurons.forEach(Neuron::activate);\n }", "public boolean activate();", "private void activate(final Object object) {\n\t\tdatabase.activate(object, Integer.MAX_VALUE);\n\t}", "public void activate() {\n rBody.activate();\n }", "public void activate(){\n active = true;\n state = State.cleaving;\n }", "public void activate() throws MMDeviceException;", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic void activateObject(Object arg0, Object arg1) throws Exception {\r\n\t\t//log.info(\"激活对象\");\r\n\t\tsuper.activateObject(arg0, arg1);\r\n\t}", "@Override\r\n\tpublic String getModel() {\n\t\treturn \"Activa\";\r\n\t}", "public void activated() \r\n\t{\r\n\t\t\r\n\t}", "public void activate()\n\t{\n\t\tlineNow = 0f;\n\t\tamp = begAmp;\n\t\tisActivated = true;\n\t}", "protected void doActivate() throws FndException\n {\n }", "public boolean activate(){\n mIsActive = true;\n return mIsActive;\n }", "public void sbbActivate() {\n\t}", "public void activate() {\r\n\t\tif (state != MachineState.DOWN)\r\n\t\t\tthrow new IllegalStateException(\r\n\t\t\t\t\t\"Only a machine in state DOWN can be activated.\");\r\n\t\tassert curJob == null;\r\n\r\n\t\tstate = MachineState.IDLE;\r\n\t\tprocFinished = -1.0d;\r\n\t\tprocStarted = -1.0d;\r\n\r\n\t\tworkStation.activated(this);\r\n\r\n\t\tdownReason = null;\r\n\t}", "@Override\n\t\tpublic void activateObject(Object key, Object obj) throws Exception {\n\t\t}", "@Override\n\tpublic void activate() {\n\t\tfindFood();\n\t\t_status = GoalEnum.active;\n\t\t_fsm.reset();\n\t\t_fsm.activate();\n\t}", "public void activate() {\n // PROGRAM 1: Student must complete this method\n if (control == 0) { // run and()\n \t\tand();\n \t} else if (control == 1) { //run or()\n \t\tor();\n \t} else if (control == 2) { //run add()\n \t\tadd();\n \t} else if (control == 6) { //run sub()\n \t\tsub();\n \t} else if (control == 7) { //run passB()\n \t\tpassB();\n \t} else {\n \t\tthrow new RuntimeException(\"invalid control\"); //otherwise, there was an invalid control\n \t}\n }", "@Override\r\n\tpublic void activate() {\n\t\tif(CID==true) {\r\n\t\t\tinter.setState(inter.getResults());\r\n\t\t}\r\n\t}", "public void activate() {\n\t\tif (value == null) {\n\t\t\tvalue = Boolean.TRUE;\n\t\t} else if (value == Boolean.TRUE) {\n\t\t\tvalue = Boolean.FALSE;\n\t\t} else if (value == Boolean.FALSE) {\n\t\t\tvalue = null;\n\t\t}\n\t\tfireApplyEditorValue();\n\t}", "@RequestMapping(value = \"/activate/{key}\", method = RequestMethod.GET)\n public final String activate(@PathVariable(\"key\") final String key,\n final ModelMap modelMap) {\n\n final boolean status = userDetailsService.activateUser(key);\n\n if (!status) {\n modelMap.put(\"error\", true);\n }\n\n return \"activate\";\n }", "@Override\n public void onActivate() {\n }", "public void activer() throws ActivationImpossibleException {\n throw new ActivationImpossibleException(\"Serrure non activable sans objet, faut pas jouer au plus malin avec moi.\");\n }", "private void doActivation() {\n OnFieldActivated activateEvent = new OnFieldActivated(this::finishReset);\n activateEvent.beginTask();\n DefenceField.getShrineEntity().send(activateEvent);\n activateEvent.finishTask();\n }", "protected void activate(ComponentContext context) {\n // this is not the official way of using DS but the official way is instable\n try {\n TemplateModel.INSTANCE.loaders().registerLoader(TemplateLangModelUtility.INSTANCE, \n ProgressObserver.NO_OBSERVER);\n } catch (ModelManagementException e) {\n EASyLoggerFactory.INSTANCE.getLogger(VtlExpressionParser.class, VtlBundleId.ID).exception(e);\n }\n ExpressionParserRegistry.setExpressionParser(TemplateLangExecution.LANGUAGE, this);\n ModelInitializer.register(this);\n }", "@Override\r\n public void activate() {\r\n super.getShell().setActive();\r\n }", "public void activate(){\n callback.action();\n }", "public void activate(ComponentContext cc) {\n }", "public void activate() {\n\t\tcameraNXT.sortBy('A');\n\t\tcameraNXT.enableTracking(true);\n\t}", "public void activate(IActivator activator);", "public void activate() {\n\t\tpropertySupport.attachAll();\n\t}", "public void activateUser(User user) {\n activeUsers.putIfAbsent(user.getUsername(), user);\n }", "private void activationON() {\n\n switch(afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.activatedContents();\n shell.layout();\n break;\n case AFFICHE_USER :\n ecranUser.activatedContents();\n shell.layout();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.activatedContents();\n shell.layout();\n break;\n default: break;\n }\n\n }", "public final void activate(){\n waitingToExecute = true;\n }", "void activate() throws ResourceActivatorException, InterruptedException, ExecutionException;", "public void openModel() {\r\n \t\tisReleased = true;\r\n \t\tif (checkForSave(\"<html>Save changes before opening a saved model?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\tJMODELModel tmpmodel = new JMODELModel();\r\n \t\tint state = modelLoader.loadModel(tmpmodel, mainWindow);\r\n \t\tif (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {\r\n \t\t\tresetMouseState();\r\n \t\t\t// Avoid checkForSave again...\r\n \t\t\tif (model != null) {\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t}\r\n \t\t\tnewModel();\r\n \t\t\t// At this point loading was successful, so substitutes old model\r\n \t\t\t// with loaded one\r\n \t\t\tmodel = tmpmodel;\r\n \t\t\tthis.populateGraph();\r\n \t\t\tsetSelect.setEnabled(true);\r\n \t\t\tcomponentBar.clickButton(setSelect);\r\n \t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t// Removes selection\r\n \t\t\tgraph.clearSelection();\r\n \t\t\t// If model contains results, enable Results Window\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\tif (model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\tthis.setResultsWindow(new PAResultsWindow(model.getParametricAnalysisModel(), (PAResultsModel) model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthis.setResultsWindow(new ResultsWindow(model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tmodel.resetSaveState();\r\n \t\t\tSystem.gc();\r\n \t\t} else if (state == ModelLoader.FAILURE) {\r\n \t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t}\r\n \t\t// Shows warnings if any\r\n \t\tif (state == ModelLoader.WARNING) {\r\n \t\t\tnew WarningWindow(modelLoader.getLastWarnings(), mainWindow, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show();\r\n \t\t}\r\n \r\n \t}", "public void setActive(){\n paycheckController.setActive();\n }", "public void activate() {\n\t\t// set cooldown counter\n\t}", "@RequestMapping(\"activate/{id}\")\n\tpublic String activate(@PathVariable(\"id\") String id) {\n\t\tCustomer user = customerService.get(id);\n\t\tuser.setActivated(true);\n\t\tcustomerService.update(user);\n\t\treturn \"redirect:/account/login.php\";\n\t}", "@Override\n public void startup(Model model) {\n model.updateModelRep(stateID);\n }", "@Override\r\n\tpublic void activate() {\r\n\t\t//System.err.println(\"activating: \" + this);\r\n\t\tsuper.activate();\r\n\t\tthis.getArtFrag().addPropertyChangeListener(this);\r\n\t}", "public void ejbActivate() throws EJBException, RemoteException {\n\t}", "public void ejbActivate() throws EJBException, RemoteException {\n\t}", "public void ejbActivate() throws EJBException, RemoteException {\n\t}", "@Override\n\tpublic void activeAccount(String email) {\n\n\t\tUserModel userModel = findByEmail(email);\n\t\tuserModel.setActiveSwitch(\"Y\");\n\t\tsaveDtls(userModel);\n\n\t}", "@Override\n public void activate() {\n if ( ! prepared)\n prepare();\n\n validateSessionStatus(session);\n ApplicationId applicationId = session.getApplicationId();\n try (ActionTimer timer = applicationRepository.timerFor(applicationId, \"deployment.activateMillis\")) {\n TimeoutBudget timeoutBudget = new TimeoutBudget(clock, timeout);\n if ( ! timeoutBudget.hasTimeLeft()) throw new RuntimeException(\"Timeout exceeded when trying to activate '\" + applicationId + \"'\");\n\n RemoteSession previousActiveSession;\n CompletionWaiter waiter;\n try (Lock lock = tenant.getApplicationRepo().lock(applicationId)) {\n previousActiveSession = applicationRepository.getActiveSession(applicationId);\n waiter = applicationRepository.activate(session, previousActiveSession, applicationId, ignoreSessionStaleFailure);\n }\n catch (RuntimeException e) {\n throw e;\n }\n catch (Exception e) {\n throw new InternalServerException(\"Error when activating '\" + applicationId + \"'\", e);\n }\n\n waiter.awaitCompletion(timeoutBudget.timeLeft());\n log.log(Level.INFO, session.logPre() + \"Session \" + session.getSessionId() + \" activated successfully using \" +\n hostProvisioner.map(provisioner -> provisioner.getClass().getSimpleName()).orElse(\"no host provisioner\") +\n \". Config generation \" + session.getMetaData().getGeneration() +\n (previousActiveSession != null ? \". Based on session \" + previousActiveSession.getSessionId() : \"\") +\n \". File references: \" + applicationRepository.getFileReferences(applicationId));\n }\n }", "protected abstract void handleActivate() throws Exception;", "protected void establishTransformationModel() {\r\n\t \r\n\t\tTransformationModel transformModel ;\r\n\t\tArrayList<TransformationStack> modelTransformStacks ;\r\n\t\t\r\n\t\t\r\n\t\t// the variables needed for the profile\r\n\t\t// targetStruc = getTargetVector();\r\n\t\tsomData = soappTransformer.getSomData() ; \r\n\t\t// soappTransformer.setSomData( somApplication.getSomData() );\r\n\t\tsomApplication.setSomData(somData) ;\r\n\t\t\r\n\t\tsomData.getVariablesLabels() ;\r\n\t\t \r\n\t\t\r\n\t\t// from here we transfer...\r\n\t\tmodelTransformStacks = soappTransformer.getTransformationModel().getVariableTransformations();\r\n\t\ttransformModel = soappTransformer.getTransformationModel() ;\r\n\t\t \r\n\t\t\r\n\t\ttransformationModelImported = true;\r\n\t}", "protected void setActive(boolean activate) {\n\t\tif (this.active ^ activate) {\r\n\t\t\tthis.active = activate;\r\n\t\t\t\r\n\t\t\tthis.img = AbstractRelicModRelic.getRelicTexture(this.relicId, activate);\r\n\t\t}\r\n\t}", "public final void activateAccount() {\n\t\tthis.setIsAccountLocked(false);\n\t}", "public void activate() {\n\t\tSystem.out.println(\"WordReader.activate\");\n\t}", "public void activar(){\n\n }", "public IServiceModel getActiveModel() {\n return activeModel;\n }", "public void startModel() {\n\t\tpaginaImperatori = WikiImperatoriRomaniPagina.getInstance();\n\t}", "public void ejbActivate() {\n\t\tSystem.out.println(\"ejbActivate\");\n\t}", "public native void activate();", "public void activate() { \r\n // Notify ActivationListeners\r\n \tSipApplicationSessionEvent event = null;\r\n Set<String> keySet = sipApplicationSessionAttributeMap.keySet();\r\n for (String key : keySet) {\r\n \tObject attribute = sipApplicationSessionAttributeMap.get(key);\r\n if (attribute instanceof SipApplicationSessionActivationListener) {\r\n if (event == null)\r\n event = new SipApplicationSessionEvent(this);\r\n try {\r\n ((SipApplicationSessionActivationListener)attribute)\r\n .sessionDidActivate(event);\r\n } catch (Throwable t) {\r\n logger.error(\"SipApplicationSessionActivationListener threw exception\", t);\r\n }\r\n }\r\n \t\t}\r\n }", "public void ejbActivate() {\n }", "void activateUser(String email, String activationToken);", "private void activateCAMP(){\n\t\t\tadenylylCyclaseActivated = true;\n\t\t\tcAMPActivated = true;\n\t\t}", "public boolean getActivate() {\r\n return Activate;\r\n }", "public void setActive() {\n\t\tactive = true;\n\t}", "private void c_Activate(String name, boolean activate) {\r\n if(m_active = activate) {\r\n m_botAction.sendSmartPrivateMessage(name, \"Reacting to players who fly over safety tiles.\");\r\n } else {\r\n m_botAction.sendSmartPrivateMessage(name, \"NOT Reacting to players who fly over safety tiles.\");\r\n }\r\n }", "public void activate() {\n double dotProduct = 0;\n for (Synapse s : super.getSynapsesIn()) {\n dotProduct += s.getNeuronFrom().getOutput() * s.getWeight();\n }\n super.setOutput(sigmoidFunction(dotProduct));\n }", "private void activateView() {\n if (isActive()) {\n return;\n }\n isActive = true;\n getSite().getWorkbenchWindow().getSelectionService()\n .addPostSelectionListener(editorListener);\n FileBuffers.getTextFileBufferManager().addFileBufferListener(\n editorListener);\n }", "protected void handleActivate() {\r\n\t\t// Recompute the read only state.\r\n\t\t//\r\n\t\tfeatureViewer.relevantChange();\r\n\t\t\r\n\t\tif (editingDomain.getResourceToReadOnlyMap() != null) {\r\n\t\t\teditingDomain.getResourceToReadOnlyMap().clear();\r\n\r\n\t\t\t// Refresh any actions that may become enabled or disabled.\r\n\t\t\t//\r\n\t\t\tsetSelection(getSelection());\r\n\t\t}\r\n\r\n\t\tif (!removedResources.isEmpty()) {\r\n\t\t\tif (handleDirtyConflict()) {\r\n\t\t\t\tgetSite().getPage().closeEditor(ConfmlEditor.this, false);\r\n\t\t\t} else {\r\n\t\t\t\tremovedResources.clear();\r\n\t\t\t\tchangedResources.clear();\r\n\t\t\t\tsavedResources.clear();\r\n\t\t\t}\r\n\t\t} else if (!changedResources.isEmpty()) {\r\n\t\t\tchangedResources.removeAll(savedResources);\r\n\t\t\thandleChangedResources();\r\n\t\t\tchangedResources.clear();\r\n\t\t\tsavedResources.clear();\r\n\t\t}\r\n\t}", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "@Override\n\tpublic void ejbActivate() throws EJBException, RemoteException {\n\n\t}", "void setModel(Model model);", "public Object onActivate()\n {\n\n return null;\n }", "void activate(ConditionContext context);", "@Activate\n\tpublic void activate() {\n\t\tAnswerModelImpl.setEntityCacheEnabled(entityCacheEnabled);\n\t\tAnswerModelImpl.setFinderCacheEnabled(finderCacheEnabled);\n\n\t\t_finderPathWithPaginationFindAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, AnswerImpl.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITH_PAGINATION, \"findAll\", new String[0]);\n\n\t\t_finderPathWithoutPaginationFindAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, AnswerImpl.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"findAll\",\n\t\t\tnew String[0]);\n\n\t\t_finderPathCountAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, Long.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"countAll\",\n\t\t\tnew String[0]);\n\n\t\t_finderPathFetchByQuestion = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, AnswerImpl.class,\n\t\t\tFINDER_CLASS_NAME_ENTITY, \"fetchByQuestion\",\n\t\t\tnew String[] {Long.class.getName()},\n\t\t\tAnswerModelImpl.QUESTIONID_COLUMN_BITMASK);\n\n\t\t_finderPathCountByQuestion = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, Long.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"countByQuestion\",\n\t\t\tnew String[] {Long.class.getName()});\n\t}", "@Override\n public void activate(boolean status) {\n godPower.activate(status);\n }", "@Activate\n\tpublic void activate() {\n\t\tCategoryModelImpl.setEntityCacheEnabled(entityCacheEnabled);\n\t\tCategoryModelImpl.setFinderCacheEnabled(finderCacheEnabled);\n\n\t\t_finderPathWithPaginationFindAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, CategoryImpl.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITH_PAGINATION, \"findAll\", new String[0]);\n\n\t\t_finderPathWithoutPaginationFindAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, CategoryImpl.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"findAll\",\n\t\t\tnew String[0]);\n\n\t\t_finderPathCountAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, Long.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"countAll\",\n\t\t\tnew String[0]);\n\t}", "public boolean activate()\n {\n boolean result = super.activate();\n\n // if we cannot activate we want the participant which was registered on behalf of this\n // coordinator to produce a heuristic result for the transaction. it will do this if it\n // finds no entry for the coordinate in the subordinate coordinators list. in this case\n // the subordinate transaction record needs to left as is awaiting manual intervention.\n\n if (result) {\n // record that the activation worked\n setActivated();\n\n int status = status();\n\n if (status == ActionStatus.PREPARED || status == ActionStatus.COMMITTING) {\n // we need to install this coordinator in a global table so that the participant which\n // was driving it will know that it has been recovered but not yet committed\n\n SubordinateBACoordinator.addRecoveredCoordinator(this);\n }\n }\n return result;\n }" ]
[ "0.71409076", "0.7083861", "0.70129174", "0.6981465", "0.69495994", "0.69217527", "0.6918568", "0.68872064", "0.68854445", "0.68730575", "0.6814608", "0.6762886", "0.6762886", "0.6754985", "0.6682718", "0.66654223", "0.66654223", "0.6578808", "0.6564425", "0.6564425", "0.6556209", "0.6556209", "0.65256596", "0.6487238", "0.6435695", "0.64292145", "0.6339499", "0.6312417", "0.63015234", "0.62996775", "0.62475586", "0.6234617", "0.6155561", "0.6118187", "0.61078787", "0.60944414", "0.6073168", "0.6069442", "0.6058679", "0.60420215", "0.5990374", "0.5990151", "0.59858465", "0.59740585", "0.59466755", "0.5876015", "0.5856376", "0.5854098", "0.58494025", "0.5837045", "0.582706", "0.5819243", "0.5813352", "0.5800633", "0.5767796", "0.57593435", "0.5755662", "0.56950027", "0.5680992", "0.56741667", "0.56282294", "0.5626213", "0.5620287", "0.56160355", "0.56052333", "0.55956805", "0.55919176", "0.5587145", "0.5587145", "0.5587145", "0.556314", "0.55600256", "0.5558025", "0.55577856", "0.5552566", "0.5536442", "0.5533234", "0.5522985", "0.5501856", "0.549779", "0.5484312", "0.54831773", "0.54802966", "0.5477407", "0.5469178", "0.54687434", "0.5465446", "0.5461184", "0.5434507", "0.5421945", "0.540792", "0.54028046", "0.5389341", "0.5388108", "0.53849995", "0.53689224", "0.5360123", "0.5353275", "0.5348893", "0.5347726", "0.5323398" ]
0.0
-1
Activate model Activate model
public ApiResponse<ModelApiResponse> activateModelWithHttpInfo(String workspaceId, String modelId) throws ApiException { okhttp3.Call localVarCall = activateModelValidateBeforeCall(workspaceId, modelId, null); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void activate(){\r\n\r\n\t}", "public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}", "public void activate()\n {\n }", "public void activate(){\r\n\t\tactive=true;\r\n\t}", "public void activate() \r\n\t\t{\r\n\t\tif (!isActive()) \r\n\t\t\t{\r\n\t\t\tsuper.activate();\r\n\t\t\t((IModelElement) getModel()).addPropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t}", "public void Activate() {\n state.Activate();\n }", "public void activate() {\r\n if (!isActive()) {\r\n super.activate();\r\n ((AModelElement) getModel()).addPropertyChangeListener(this);\r\n }\r\n }", "public void activate() {\n\t\tactivated = true;\n\t}", "@Override\n public void activate() {\n \n }", "public void activate();", "@Override\n\tpublic void activate() {\n\t\t\n\t}", "@Override\n\tpublic void activate() {\n\t}", "@Override\n\tpublic void activate() {\n\t}", "public void activate() {\n\tif (canBeActive()) {\n\t\tmActive = true;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be activated\");\n\t}\n}", "@Override\n public void activate() {\n\n }", "void activate();", "void activate();", "@Override\n public void activate() {\n init();\n }", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "public abstract void activate();", "public abstract void activate();", "public void switchModel()\n {\n \tactiveModel++;\n \tif (activeModel > 1)\n \t{\n \t\tactiveModel = 0;\n \t}\n }", "@Override\n\tpublic boolean activate() {\n\t\treturn true;\n\t}", "public void activate() {\t\t\n\t\t// Put activation code here (computing output based on the network's inputs)\n }", "public void activate() {\n\t\tif (resetCounter == 0 && isReloaded()) {\n\t\t\tactivated = true;\n\t\t}\n\t}", "public void activate() {\n if (!isResumed) {\n isToBeActivated = true;\n return;\n }\n\n if (isLocked) {\n return;\n }\n\n if (!isActive) {\n isActive = true;\n onActivate();\n }\n\n if (isFirstUse) {\n isFirstUse = false;\n settings.edit()\n .putBoolean(\"isFirstUse\", false)\n .commit();\n onFirstUse();\n }\n }", "public void activate() {\n neurons.forEach(Neuron::activate);\n }", "public boolean activate();", "private void activate(final Object object) {\n\t\tdatabase.activate(object, Integer.MAX_VALUE);\n\t}", "public void activate() {\n rBody.activate();\n }", "public void activate(){\n active = true;\n state = State.cleaving;\n }", "public void activate() throws MMDeviceException;", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic void activateObject(Object arg0, Object arg1) throws Exception {\r\n\t\t//log.info(\"激活对象\");\r\n\t\tsuper.activateObject(arg0, arg1);\r\n\t}", "@Override\r\n\tpublic String getModel() {\n\t\treturn \"Activa\";\r\n\t}", "public void activated() \r\n\t{\r\n\t\t\r\n\t}", "public void activate()\n\t{\n\t\tlineNow = 0f;\n\t\tamp = begAmp;\n\t\tisActivated = true;\n\t}", "protected void doActivate() throws FndException\n {\n }", "public boolean activate(){\n mIsActive = true;\n return mIsActive;\n }", "public void sbbActivate() {\n\t}", "public void activate() {\r\n\t\tif (state != MachineState.DOWN)\r\n\t\t\tthrow new IllegalStateException(\r\n\t\t\t\t\t\"Only a machine in state DOWN can be activated.\");\r\n\t\tassert curJob == null;\r\n\r\n\t\tstate = MachineState.IDLE;\r\n\t\tprocFinished = -1.0d;\r\n\t\tprocStarted = -1.0d;\r\n\r\n\t\tworkStation.activated(this);\r\n\r\n\t\tdownReason = null;\r\n\t}", "@Override\n\t\tpublic void activateObject(Object key, Object obj) throws Exception {\n\t\t}", "@Override\n\tpublic void activate() {\n\t\tfindFood();\n\t\t_status = GoalEnum.active;\n\t\t_fsm.reset();\n\t\t_fsm.activate();\n\t}", "public void activate() {\n // PROGRAM 1: Student must complete this method\n if (control == 0) { // run and()\n \t\tand();\n \t} else if (control == 1) { //run or()\n \t\tor();\n \t} else if (control == 2) { //run add()\n \t\tadd();\n \t} else if (control == 6) { //run sub()\n \t\tsub();\n \t} else if (control == 7) { //run passB()\n \t\tpassB();\n \t} else {\n \t\tthrow new RuntimeException(\"invalid control\"); //otherwise, there was an invalid control\n \t}\n }", "@Override\r\n\tpublic void activate() {\n\t\tif(CID==true) {\r\n\t\t\tinter.setState(inter.getResults());\r\n\t\t}\r\n\t}", "public void activate() {\n\t\tif (value == null) {\n\t\t\tvalue = Boolean.TRUE;\n\t\t} else if (value == Boolean.TRUE) {\n\t\t\tvalue = Boolean.FALSE;\n\t\t} else if (value == Boolean.FALSE) {\n\t\t\tvalue = null;\n\t\t}\n\t\tfireApplyEditorValue();\n\t}", "@RequestMapping(value = \"/activate/{key}\", method = RequestMethod.GET)\n public final String activate(@PathVariable(\"key\") final String key,\n final ModelMap modelMap) {\n\n final boolean status = userDetailsService.activateUser(key);\n\n if (!status) {\n modelMap.put(\"error\", true);\n }\n\n return \"activate\";\n }", "@Override\n public void onActivate() {\n }", "public void activer() throws ActivationImpossibleException {\n throw new ActivationImpossibleException(\"Serrure non activable sans objet, faut pas jouer au plus malin avec moi.\");\n }", "private void doActivation() {\n OnFieldActivated activateEvent = new OnFieldActivated(this::finishReset);\n activateEvent.beginTask();\n DefenceField.getShrineEntity().send(activateEvent);\n activateEvent.finishTask();\n }", "protected void activate(ComponentContext context) {\n // this is not the official way of using DS but the official way is instable\n try {\n TemplateModel.INSTANCE.loaders().registerLoader(TemplateLangModelUtility.INSTANCE, \n ProgressObserver.NO_OBSERVER);\n } catch (ModelManagementException e) {\n EASyLoggerFactory.INSTANCE.getLogger(VtlExpressionParser.class, VtlBundleId.ID).exception(e);\n }\n ExpressionParserRegistry.setExpressionParser(TemplateLangExecution.LANGUAGE, this);\n ModelInitializer.register(this);\n }", "@Override\r\n public void activate() {\r\n super.getShell().setActive();\r\n }", "public void activate(){\n callback.action();\n }", "public void activate(ComponentContext cc) {\n }", "public void activate() {\n\t\tcameraNXT.sortBy('A');\n\t\tcameraNXT.enableTracking(true);\n\t}", "public void activate(IActivator activator);", "public void activate() {\n\t\tpropertySupport.attachAll();\n\t}", "public void activateUser(User user) {\n activeUsers.putIfAbsent(user.getUsername(), user);\n }", "private void activationON() {\n\n switch(afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.activatedContents();\n shell.layout();\n break;\n case AFFICHE_USER :\n ecranUser.activatedContents();\n shell.layout();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.activatedContents();\n shell.layout();\n break;\n default: break;\n }\n\n }", "public final void activate(){\n waitingToExecute = true;\n }", "void activate() throws ResourceActivatorException, InterruptedException, ExecutionException;", "public void openModel() {\r\n \t\tisReleased = true;\r\n \t\tif (checkForSave(\"<html>Save changes before opening a saved model?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\tJMODELModel tmpmodel = new JMODELModel();\r\n \t\tint state = modelLoader.loadModel(tmpmodel, mainWindow);\r\n \t\tif (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {\r\n \t\t\tresetMouseState();\r\n \t\t\t// Avoid checkForSave again...\r\n \t\t\tif (model != null) {\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t}\r\n \t\t\tnewModel();\r\n \t\t\t// At this point loading was successful, so substitutes old model\r\n \t\t\t// with loaded one\r\n \t\t\tmodel = tmpmodel;\r\n \t\t\tthis.populateGraph();\r\n \t\t\tsetSelect.setEnabled(true);\r\n \t\t\tcomponentBar.clickButton(setSelect);\r\n \t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t// Removes selection\r\n \t\t\tgraph.clearSelection();\r\n \t\t\t// If model contains results, enable Results Window\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\tif (model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\tthis.setResultsWindow(new PAResultsWindow(model.getParametricAnalysisModel(), (PAResultsModel) model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthis.setResultsWindow(new ResultsWindow(model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tmodel.resetSaveState();\r\n \t\t\tSystem.gc();\r\n \t\t} else if (state == ModelLoader.FAILURE) {\r\n \t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t}\r\n \t\t// Shows warnings if any\r\n \t\tif (state == ModelLoader.WARNING) {\r\n \t\t\tnew WarningWindow(modelLoader.getLastWarnings(), mainWindow, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show();\r\n \t\t}\r\n \r\n \t}", "public void setActive(){\n paycheckController.setActive();\n }", "public void activate() {\n\t\t// set cooldown counter\n\t}", "@RequestMapping(\"activate/{id}\")\n\tpublic String activate(@PathVariable(\"id\") String id) {\n\t\tCustomer user = customerService.get(id);\n\t\tuser.setActivated(true);\n\t\tcustomerService.update(user);\n\t\treturn \"redirect:/account/login.php\";\n\t}", "@Override\n public void startup(Model model) {\n model.updateModelRep(stateID);\n }", "@Override\r\n\tpublic void activate() {\r\n\t\t//System.err.println(\"activating: \" + this);\r\n\t\tsuper.activate();\r\n\t\tthis.getArtFrag().addPropertyChangeListener(this);\r\n\t}", "public void ejbActivate() throws EJBException, RemoteException {\n\t}", "public void ejbActivate() throws EJBException, RemoteException {\n\t}", "public void ejbActivate() throws EJBException, RemoteException {\n\t}", "@Override\n\tpublic void activeAccount(String email) {\n\n\t\tUserModel userModel = findByEmail(email);\n\t\tuserModel.setActiveSwitch(\"Y\");\n\t\tsaveDtls(userModel);\n\n\t}", "@Override\n public void activate() {\n if ( ! prepared)\n prepare();\n\n validateSessionStatus(session);\n ApplicationId applicationId = session.getApplicationId();\n try (ActionTimer timer = applicationRepository.timerFor(applicationId, \"deployment.activateMillis\")) {\n TimeoutBudget timeoutBudget = new TimeoutBudget(clock, timeout);\n if ( ! timeoutBudget.hasTimeLeft()) throw new RuntimeException(\"Timeout exceeded when trying to activate '\" + applicationId + \"'\");\n\n RemoteSession previousActiveSession;\n CompletionWaiter waiter;\n try (Lock lock = tenant.getApplicationRepo().lock(applicationId)) {\n previousActiveSession = applicationRepository.getActiveSession(applicationId);\n waiter = applicationRepository.activate(session, previousActiveSession, applicationId, ignoreSessionStaleFailure);\n }\n catch (RuntimeException e) {\n throw e;\n }\n catch (Exception e) {\n throw new InternalServerException(\"Error when activating '\" + applicationId + \"'\", e);\n }\n\n waiter.awaitCompletion(timeoutBudget.timeLeft());\n log.log(Level.INFO, session.logPre() + \"Session \" + session.getSessionId() + \" activated successfully using \" +\n hostProvisioner.map(provisioner -> provisioner.getClass().getSimpleName()).orElse(\"no host provisioner\") +\n \". Config generation \" + session.getMetaData().getGeneration() +\n (previousActiveSession != null ? \". Based on session \" + previousActiveSession.getSessionId() : \"\") +\n \". File references: \" + applicationRepository.getFileReferences(applicationId));\n }\n }", "protected abstract void handleActivate() throws Exception;", "protected void establishTransformationModel() {\r\n\t \r\n\t\tTransformationModel transformModel ;\r\n\t\tArrayList<TransformationStack> modelTransformStacks ;\r\n\t\t\r\n\t\t\r\n\t\t// the variables needed for the profile\r\n\t\t// targetStruc = getTargetVector();\r\n\t\tsomData = soappTransformer.getSomData() ; \r\n\t\t// soappTransformer.setSomData( somApplication.getSomData() );\r\n\t\tsomApplication.setSomData(somData) ;\r\n\t\t\r\n\t\tsomData.getVariablesLabels() ;\r\n\t\t \r\n\t\t\r\n\t\t// from here we transfer...\r\n\t\tmodelTransformStacks = soappTransformer.getTransformationModel().getVariableTransformations();\r\n\t\ttransformModel = soappTransformer.getTransformationModel() ;\r\n\t\t \r\n\t\t\r\n\t\ttransformationModelImported = true;\r\n\t}", "protected void setActive(boolean activate) {\n\t\tif (this.active ^ activate) {\r\n\t\t\tthis.active = activate;\r\n\t\t\t\r\n\t\t\tthis.img = AbstractRelicModRelic.getRelicTexture(this.relicId, activate);\r\n\t\t}\r\n\t}", "public final void activateAccount() {\n\t\tthis.setIsAccountLocked(false);\n\t}", "public void activate() {\n\t\tSystem.out.println(\"WordReader.activate\");\n\t}", "public void activar(){\n\n }", "public IServiceModel getActiveModel() {\n return activeModel;\n }", "public void startModel() {\n\t\tpaginaImperatori = WikiImperatoriRomaniPagina.getInstance();\n\t}", "public void ejbActivate() {\n\t\tSystem.out.println(\"ejbActivate\");\n\t}", "public native void activate();", "public void activate() { \r\n // Notify ActivationListeners\r\n \tSipApplicationSessionEvent event = null;\r\n Set<String> keySet = sipApplicationSessionAttributeMap.keySet();\r\n for (String key : keySet) {\r\n \tObject attribute = sipApplicationSessionAttributeMap.get(key);\r\n if (attribute instanceof SipApplicationSessionActivationListener) {\r\n if (event == null)\r\n event = new SipApplicationSessionEvent(this);\r\n try {\r\n ((SipApplicationSessionActivationListener)attribute)\r\n .sessionDidActivate(event);\r\n } catch (Throwable t) {\r\n logger.error(\"SipApplicationSessionActivationListener threw exception\", t);\r\n }\r\n }\r\n \t\t}\r\n }", "public void ejbActivate() {\n }", "void activateUser(String email, String activationToken);", "private void activateCAMP(){\n\t\t\tadenylylCyclaseActivated = true;\n\t\t\tcAMPActivated = true;\n\t\t}", "public boolean getActivate() {\r\n return Activate;\r\n }", "public void setActive() {\n\t\tactive = true;\n\t}", "private void c_Activate(String name, boolean activate) {\r\n if(m_active = activate) {\r\n m_botAction.sendSmartPrivateMessage(name, \"Reacting to players who fly over safety tiles.\");\r\n } else {\r\n m_botAction.sendSmartPrivateMessage(name, \"NOT Reacting to players who fly over safety tiles.\");\r\n }\r\n }", "public void activate() {\n double dotProduct = 0;\n for (Synapse s : super.getSynapsesIn()) {\n dotProduct += s.getNeuronFrom().getOutput() * s.getWeight();\n }\n super.setOutput(sigmoidFunction(dotProduct));\n }", "private void activateView() {\n if (isActive()) {\n return;\n }\n isActive = true;\n getSite().getWorkbenchWindow().getSelectionService()\n .addPostSelectionListener(editorListener);\n FileBuffers.getTextFileBufferManager().addFileBufferListener(\n editorListener);\n }", "protected void handleActivate() {\r\n\t\t// Recompute the read only state.\r\n\t\t//\r\n\t\tfeatureViewer.relevantChange();\r\n\t\t\r\n\t\tif (editingDomain.getResourceToReadOnlyMap() != null) {\r\n\t\t\teditingDomain.getResourceToReadOnlyMap().clear();\r\n\r\n\t\t\t// Refresh any actions that may become enabled or disabled.\r\n\t\t\t//\r\n\t\t\tsetSelection(getSelection());\r\n\t\t}\r\n\r\n\t\tif (!removedResources.isEmpty()) {\r\n\t\t\tif (handleDirtyConflict()) {\r\n\t\t\t\tgetSite().getPage().closeEditor(ConfmlEditor.this, false);\r\n\t\t\t} else {\r\n\t\t\t\tremovedResources.clear();\r\n\t\t\t\tchangedResources.clear();\r\n\t\t\t\tsavedResources.clear();\r\n\t\t\t}\r\n\t\t} else if (!changedResources.isEmpty()) {\r\n\t\t\tchangedResources.removeAll(savedResources);\r\n\t\t\thandleChangedResources();\r\n\t\t\tchangedResources.clear();\r\n\t\t\tsavedResources.clear();\r\n\t\t}\r\n\t}", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "@Override\n\tpublic void ejbActivate() throws EJBException, RemoteException {\n\n\t}", "void setModel(Model model);", "public Object onActivate()\n {\n\n return null;\n }", "void activate(ConditionContext context);", "@Activate\n\tpublic void activate() {\n\t\tAnswerModelImpl.setEntityCacheEnabled(entityCacheEnabled);\n\t\tAnswerModelImpl.setFinderCacheEnabled(finderCacheEnabled);\n\n\t\t_finderPathWithPaginationFindAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, AnswerImpl.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITH_PAGINATION, \"findAll\", new String[0]);\n\n\t\t_finderPathWithoutPaginationFindAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, AnswerImpl.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"findAll\",\n\t\t\tnew String[0]);\n\n\t\t_finderPathCountAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, Long.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"countAll\",\n\t\t\tnew String[0]);\n\n\t\t_finderPathFetchByQuestion = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, AnswerImpl.class,\n\t\t\tFINDER_CLASS_NAME_ENTITY, \"fetchByQuestion\",\n\t\t\tnew String[] {Long.class.getName()},\n\t\t\tAnswerModelImpl.QUESTIONID_COLUMN_BITMASK);\n\n\t\t_finderPathCountByQuestion = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, Long.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"countByQuestion\",\n\t\t\tnew String[] {Long.class.getName()});\n\t}", "@Override\n public void activate(boolean status) {\n godPower.activate(status);\n }", "@Activate\n\tpublic void activate() {\n\t\tCategoryModelImpl.setEntityCacheEnabled(entityCacheEnabled);\n\t\tCategoryModelImpl.setFinderCacheEnabled(finderCacheEnabled);\n\n\t\t_finderPathWithPaginationFindAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, CategoryImpl.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITH_PAGINATION, \"findAll\", new String[0]);\n\n\t\t_finderPathWithoutPaginationFindAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, CategoryImpl.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"findAll\",\n\t\t\tnew String[0]);\n\n\t\t_finderPathCountAll = new FinderPath(\n\t\t\tentityCacheEnabled, finderCacheEnabled, Long.class,\n\t\t\tFINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, \"countAll\",\n\t\t\tnew String[0]);\n\t}", "public boolean activate()\n {\n boolean result = super.activate();\n\n // if we cannot activate we want the participant which was registered on behalf of this\n // coordinator to produce a heuristic result for the transaction. it will do this if it\n // finds no entry for the coordinate in the subordinate coordinators list. in this case\n // the subordinate transaction record needs to left as is awaiting manual intervention.\n\n if (result) {\n // record that the activation worked\n setActivated();\n\n int status = status();\n\n if (status == ActionStatus.PREPARED || status == ActionStatus.COMMITTING) {\n // we need to install this coordinator in a global table so that the participant which\n // was driving it will know that it has been recovered but not yet committed\n\n SubordinateBACoordinator.addRecoveredCoordinator(this);\n }\n }\n return result;\n }" ]
[ "0.71409076", "0.7083861", "0.70129174", "0.6981465", "0.69495994", "0.69217527", "0.6918568", "0.68872064", "0.68854445", "0.68730575", "0.6814608", "0.6762886", "0.6762886", "0.6754985", "0.6682718", "0.66654223", "0.66654223", "0.6578808", "0.6564425", "0.6564425", "0.6556209", "0.6556209", "0.65256596", "0.6487238", "0.6435695", "0.64292145", "0.6339499", "0.6312417", "0.63015234", "0.62996775", "0.62475586", "0.6234617", "0.6155561", "0.6118187", "0.61078787", "0.60944414", "0.6073168", "0.6069442", "0.6058679", "0.60420215", "0.5990374", "0.5990151", "0.59858465", "0.59740585", "0.59466755", "0.5876015", "0.5856376", "0.5854098", "0.58494025", "0.5837045", "0.582706", "0.5819243", "0.5813352", "0.5800633", "0.5767796", "0.57593435", "0.5755662", "0.56950027", "0.5680992", "0.56741667", "0.56282294", "0.5626213", "0.5620287", "0.56160355", "0.56052333", "0.55956805", "0.55919176", "0.5587145", "0.5587145", "0.5587145", "0.556314", "0.55600256", "0.5558025", "0.55577856", "0.5552566", "0.5536442", "0.5533234", "0.5522985", "0.5501856", "0.549779", "0.5484312", "0.54831773", "0.54802966", "0.5477407", "0.5469178", "0.54687434", "0.5465446", "0.5461184", "0.5434507", "0.5421945", "0.540792", "0.54028046", "0.5389341", "0.5388108", "0.53849995", "0.53689224", "0.5360123", "0.5353275", "0.5348893", "0.5347726", "0.5323398" ]
0.0
-1
Activate model (asynchronously) Activate model
public okhttp3.Call activateModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException { okhttp3.Call localVarCall = activateModelValidateBeforeCall(workspaceId, modelId, _callback); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void activate(){\n waitingToExecute = true;\n }", "public void Activate() {\n state.Activate();\n }", "public void activate() {\n if (!isResumed) {\n isToBeActivated = true;\n return;\n }\n\n if (isLocked) {\n return;\n }\n\n if (!isActive) {\n isActive = true;\n onActivate();\n }\n\n if (isFirstUse) {\n isFirstUse = false;\n settings.edit()\n .putBoolean(\"isFirstUse\", false)\n .commit();\n onFirstUse();\n }\n }", "public void activate()\n {\n }", "public void activate(){\r\n\r\n\t}", "private void doActivation() {\n OnFieldActivated activateEvent = new OnFieldActivated(this::finishReset);\n activateEvent.beginTask();\n DefenceField.getShrineEntity().send(activateEvent);\n activateEvent.finishTask();\n }", "public void activate() {\n\tif (canBeActive()) {\n\t\tmActive = true;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be activated\");\n\t}\n}", "public void activate() {\n\t\tactivated = true;\n\t}", "public abstract void activate();", "public abstract void activate();", "@Override\n public void activate() {\n \n }", "public void activate(){\n callback.action();\n }", "public void activate();", "public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}", "@Override\n\tpublic void activate() {\n\t}", "@Override\n\tpublic void activate() {\n\t}", "void activate() throws ResourceActivatorException, InterruptedException, ExecutionException;", "public void activate(){\r\n\t\tactive=true;\r\n\t}", "@Override\n\tpublic void activate() {\n\t\t\n\t}", "public void activate() {\n\t\tif (resetCounter == 0 && isReloaded()) {\n\t\t\tactivated = true;\n\t\t}\n\t}", "public void activate() throws MMDeviceException;", "public void activate() {\r\n\t\tif (state != MachineState.DOWN)\r\n\t\t\tthrow new IllegalStateException(\r\n\t\t\t\t\t\"Only a machine in state DOWN can be activated.\");\r\n\t\tassert curJob == null;\r\n\r\n\t\tstate = MachineState.IDLE;\r\n\t\tprocFinished = -1.0d;\r\n\t\tprocStarted = -1.0d;\r\n\r\n\t\tworkStation.activated(this);\r\n\r\n\t\tdownReason = null;\r\n\t}", "private void activate(final Object object) {\n\t\tdatabase.activate(object, Integer.MAX_VALUE);\n\t}", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean activate() {\n\t\treturn true;\r\n\t}", "@Override\n public void activate() {\n if ( ! prepared)\n prepare();\n\n validateSessionStatus(session);\n ApplicationId applicationId = session.getApplicationId();\n try (ActionTimer timer = applicationRepository.timerFor(applicationId, \"deployment.activateMillis\")) {\n TimeoutBudget timeoutBudget = new TimeoutBudget(clock, timeout);\n if ( ! timeoutBudget.hasTimeLeft()) throw new RuntimeException(\"Timeout exceeded when trying to activate '\" + applicationId + \"'\");\n\n RemoteSession previousActiveSession;\n CompletionWaiter waiter;\n try (Lock lock = tenant.getApplicationRepo().lock(applicationId)) {\n previousActiveSession = applicationRepository.getActiveSession(applicationId);\n waiter = applicationRepository.activate(session, previousActiveSession, applicationId, ignoreSessionStaleFailure);\n }\n catch (RuntimeException e) {\n throw e;\n }\n catch (Exception e) {\n throw new InternalServerException(\"Error when activating '\" + applicationId + \"'\", e);\n }\n\n waiter.awaitCompletion(timeoutBudget.timeLeft());\n log.log(Level.INFO, session.logPre() + \"Session \" + session.getSessionId() + \" activated successfully using \" +\n hostProvisioner.map(provisioner -> provisioner.getClass().getSimpleName()).orElse(\"no host provisioner\") +\n \". Config generation \" + session.getMetaData().getGeneration() +\n (previousActiveSession != null ? \". Based on session \" + previousActiveSession.getSessionId() : \"\") +\n \". File references: \" + applicationRepository.getFileReferences(applicationId));\n }\n }", "@Override\n public void activate() {\n init();\n }", "protected void doActivate() throws FndException\n {\n }", "public void activate() {\t\t\n\t\t// Put activation code here (computing output based on the network's inputs)\n }", "@Override\n public void activate() {\n\n }", "@Override\n\tpublic boolean activate() {\n\t\treturn true;\n\t}", "public void runModel(){\n\t\tcurrentView.getDynamicModelView().getModel().setProgressMonitor(progressMonitor);\r\n\t\tnew Thread(currentView.getDynamicModelView().getModel()).start();\r\n\r\n\t\tsetStatusBarText(\"Ready\");\r\n\t}", "void activate();", "void activate();", "public void activate() \r\n\t\t{\r\n\t\tif (!isActive()) \r\n\t\t\t{\r\n\t\t\tsuper.activate();\r\n\t\t\t((IModelElement) getModel()).addPropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t}", "public void activate() {\r\n if (!isActive()) {\r\n super.activate();\r\n ((AModelElement) getModel()).addPropertyChangeListener(this);\r\n }\r\n }", "protected abstract void handleActivate() throws Exception;", "public boolean activate();", "@Override\r\n\tpublic void activate() {\n\t\tif(CID==true) {\r\n\t\t\tinter.setState(inter.getResults());\r\n\t\t}\r\n\t}", "public void activate() {\n neurons.forEach(Neuron::activate);\n }", "public native void activate();", "public void activate() {\n rBody.activate();\n }", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic void activateObject(Object arg0, Object arg1) throws Exception {\r\n\t\t//log.info(\"激活对象\");\r\n\t\tsuper.activateObject(arg0, arg1);\r\n\t}", "@Override\n\t\tpublic void activateObject(Object key, Object obj) throws Exception {\n\t\t}", "public void activate() {\n\t\t// set cooldown counter\n\t}", "protected void activate(ComponentContext context) {\n // this is not the official way of using DS but the official way is instable\n try {\n TemplateModel.INSTANCE.loaders().registerLoader(TemplateLangModelUtility.INSTANCE, \n ProgressObserver.NO_OBSERVER);\n } catch (ModelManagementException e) {\n EASyLoggerFactory.INSTANCE.getLogger(VtlExpressionParser.class, VtlBundleId.ID).exception(e);\n }\n ExpressionParserRegistry.setExpressionParser(TemplateLangExecution.LANGUAGE, this);\n ModelInitializer.register(this);\n }", "@Override\n\tpublic void activate() {\n\t\tfindFood();\n\t\t_status = GoalEnum.active;\n\t\t_fsm.reset();\n\t\t_fsm.activate();\n\t}", "public void sbbActivate() {\n\t}", "private boolean tryActivate() {\n if (!active) {\n if (!pool.tryIncrementActiveCount())\n return false;\n active = true;\n }\n return true;\n }", "private boolean tryActivate() {\n if (!active) {\n if (!pool.tryIncrementActiveCount())\n return false;\n active = true;\n }\n return true;\n }", "public void ejbActivate() throws EJBException, RemoteException {\n\t}", "public void ejbActivate() throws EJBException, RemoteException {\n\t}", "public void ejbActivate() throws EJBException, RemoteException {\n\t}", "public void resume ()\n\t{\n\t\tif (model != null) run (false);\n\t}", "public boolean activate(){\n mIsActive = true;\n return mIsActive;\n }", "public void activate(IActivator activator);", "@Override\n public void onActivate() {\n }", "public boolean activate()\n {\n boolean result = super.activate();\n\n // if we cannot activate we want the participant which was registered on behalf of this\n // coordinator to produce a heuristic result for the transaction. it will do this if it\n // finds no entry for the coordinate in the subordinate coordinators list. in this case\n // the subordinate transaction record needs to left as is awaiting manual intervention.\n\n if (result) {\n // record that the activation worked\n setActivated();\n\n int status = status();\n\n if (status == ActionStatus.PREPARED || status == ActionStatus.COMMITTING) {\n // we need to install this coordinator in a global table so that the participant which\n // was driving it will know that it has been recovered but not yet committed\n\n SubordinateBACoordinator.addRecoveredCoordinator(this);\n }\n }\n return result;\n }", "public void activate(ComponentContext cc) {\n }", "public void entityActivated() throws javax.slee.resource.ResourceException {\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger.debug(\"entityActivated() \");\r\n \t\t}\r\n \t\t\r\n \t\ttry {\r\n \t\t\t\r\n \t\t\t// SO EACH ACTIVITY CAN HAVE ACCESS TO SOME NEEDED METHODS DEFINED\r\n \t\t\t// BY THIS INTERFACE, THIS WAY WE DONT HAVE TO WORRY ABOUT PASSING\r\n \t\t\t// IT TO CONSTRUCTOR.\r\n \t\t\tinitializeNamingContextBindings();\r\n \t\t\thttpRaSbbinterface = new HttpServletRaSbbInterfaceImpl(this);\r\n \t\t\tactivities = new ConcurrentHashMap();\r\n \t\t\trequestLock = new RequestLock();\r\n \r\n \t\t} catch (NamingException e) {\r\n \t\t\tthrow new javax.slee.resource.ResourceException(\r\n \t\t\t\t\t\"entityActivated(): Failed to activate HttpServlet RA\",\r\n \t\t\t\t\te);\r\n \t\t}\r\n \t}", "public void activate()\n\t{\n\t\tlineNow = 0f;\n\t\tamp = begAmp;\n\t\tisActivated = true;\n\t}", "public void activate() {\n // PROGRAM 1: Student must complete this method\n if (control == 0) { // run and()\n \t\tand();\n \t} else if (control == 1) { //run or()\n \t\tor();\n \t} else if (control == 2) { //run add()\n \t\tadd();\n \t} else if (control == 6) { //run sub()\n \t\tsub();\n \t} else if (control == 7) { //run passB()\n \t\tpassB();\n \t} else {\n \t\tthrow new RuntimeException(\"invalid control\"); //otherwise, there was an invalid control\n \t}\n }", "public void activate() { \r\n // Notify ActivationListeners\r\n \tSipApplicationSessionEvent event = null;\r\n Set<String> keySet = sipApplicationSessionAttributeMap.keySet();\r\n for (String key : keySet) {\r\n \tObject attribute = sipApplicationSessionAttributeMap.get(key);\r\n if (attribute instanceof SipApplicationSessionActivationListener) {\r\n if (event == null)\r\n event = new SipApplicationSessionEvent(this);\r\n try {\r\n ((SipApplicationSessionActivationListener)attribute)\r\n .sessionDidActivate(event);\r\n } catch (Throwable t) {\r\n logger.error(\"SipApplicationSessionActivationListener threw exception\", t);\r\n }\r\n }\r\n \t\t}\r\n }", "@Override\n public void startup(Model model) {\n model.updateModelRep(stateID);\n }", "private void runOnlineModel() {\n myScenario.setProbe(myProbe);\n myScenario.setSynchronizationMode(mySrcSelector);\n try {\n myScenario.resync();\n myScenario.run();\n } catch (SynchronizationException e) {\n System.out.println(e);\n } catch (ModelException e) {\n System.out.println(e);\n }\n }", "void activateUser(String email, String activationToken);", "public void activate() throws JBIException {\n count++;\n if(count != 1)\n return;\n if (_serviceref == null) {\n ServiceEndpoint[] candidates = _ode.getContext().getExternalEndpointsForService(_endpoint.serviceName);\n if (candidates.length != 0) {\n _external = candidates[0];\n }\n }\n _internal = _ode.getContext().activateEndpoint(_endpoint.serviceName, _endpoint.portName);\n if (__log.isDebugEnabled()) {\n __log.debug(\"Activated endpoint \" + _endpoint);\n }\n // TODO: Is there a race situation here?\n }", "public final void activateAccount() {\n\t\tthis.setIsAccountLocked(false);\n\t}", "@RequestMapping(value = \"/activate/{key}\", method = RequestMethod.GET)\n public final String activate(@PathVariable(\"key\") final String key,\n final ModelMap modelMap) {\n\n final boolean status = userDetailsService.activateUser(key);\n\n if (!status) {\n modelMap.put(\"error\", true);\n }\n\n return \"activate\";\n }", "public void activate() {\n\t\tcameraNXT.sortBy('A');\n\t\tcameraNXT.enableTracking(true);\n\t}", "public void activate() {\n routeTables = new ConcurrentHashMap<>();\n\n routeTables.put(IPV4, new RouteTable(IPV4));\n routeTables.put(IPV6, new RouteTable(IPV6));\n\n log.info(\"Started\");\n }", "public void activate(){\n active = true;\n state = State.cleaving;\n }", "@Override\n public void begin() {\n\n Objects.requireNonNull(this.model);\n Objects.requireNonNull(this.view);\n initiateKeyboard();\n initiateMouse();\n view.showView();\n\n }", "public void activateUser(User user) {\n activeUsers.putIfAbsent(user.getUsername(), user);\n }", "public void activate() {\n\t\tif (value == null) {\n\t\t\tvalue = Boolean.TRUE;\n\t\t} else if (value == Boolean.TRUE) {\n\t\t\tvalue = Boolean.FALSE;\n\t\t} else if (value == Boolean.FALSE) {\n\t\t\tvalue = null;\n\t\t}\n\t\tfireApplyEditorValue();\n\t}", "public void activated() \r\n\t{\r\n\t\t\r\n\t}", "public void ejbActivate() {\n\t\tSystem.out.println(\"ejbActivate\");\n\t}", "@Override\n\tpublic void ejbActivate() throws EJBException, RemoteException {\n\n\t}", "public void activate() {\n\t\tpropertySupport.attachAll();\n\t}", "abstract boolean shouldTaskActivate();", "void activate(ConditionContext context);", "public void ejbActivate() {\n }", "static public void activate() {\n instance.buildTree();\n instance.show();\n }", "@Override\n public void activateTask(@NonNull String taskId) {\n }", "@RequiresApi(api = Build.VERSION_CODES.N)\n public void StartInitial() {\n model.StartInitial();\n\n // Add any code required\n\n }", "private void activateCAMP(){\n\t\t\tadenylylCyclaseActivated = true;\n\t\t\tcAMPActivated = true;\n\t\t}", "protected void mockActivate() {\r\n this.bootstrapSettings = BootstrapConfiguration.getInstance();\r\n\r\n initializeProfileDirFromBootstrapSettings();\r\n initializeConfigurablePaths();\r\n loadRootConfiguration(false);\r\n initializeGeneralSettings();\r\n }", "public void ejbActivate() throws RemoteException, EJBException {\n\t\ttry {\n\t\t\t// really should use a utility class that caches these EJBHomes. Use\n\t\t\t// xdoclet to create when I have more than a few hrs to impl.\n\t\t\t// TODO Tech Upgrade!!\n\t\t\t_idshome = (IdentityServiceHome) JndiHelper.getObject(\n\t\t\t\t\t\"com.carescience.ics.pids.IdentityServiceHome\",\n\t\t\t\t\tIdentityServiceHome.class);\n\t\t\t// _corhome = (CorrelationHome)\n\t\t\t// JndiHelper.getObject(\"CorrelationUtils\", CorrelationHome.class);\n\t\t} catch (NamingException e) {\n\t\t\tEJBException ejbx = new EJBException(e.getExplanation(), e);\n\t\t\tthrow ejbx;\n\t\t}\n\t}", "private void checkAndActivateCPU() {\n statusController.checkIfCPU();\n if (modelCheck.isCurrentPlayerCPU()) {\n CPU.actionSequence();\n }\n }", "public void activate(Base base) throws IOException {\n\t\tCore.activate(base, getHttpMethodExecutor());\n\t}", "public void activateProjector() {\n try {\n //new thread so client and server can run concurrently\n new Thread() {\n public void run() {\n Empty request = Empty.newBuilder().build();\n\n ProjectorOnStatus response = blockingStub.activateProjector(request);\n\n ui.appendProjectorStatus(response.toString() + \"\\n\");\n\n }\n }.start();\n\n } catch (RuntimeException e) {\n System.out.println(\"RPC failed: \" + e);\n return;\n }\n }", "public void openModel() {\r\n \t\tisReleased = true;\r\n \t\tif (checkForSave(\"<html>Save changes before opening a saved model?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\tJMODELModel tmpmodel = new JMODELModel();\r\n \t\tint state = modelLoader.loadModel(tmpmodel, mainWindow);\r\n \t\tif (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {\r\n \t\t\tresetMouseState();\r\n \t\t\t// Avoid checkForSave again...\r\n \t\t\tif (model != null) {\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t}\r\n \t\t\tnewModel();\r\n \t\t\t// At this point loading was successful, so substitutes old model\r\n \t\t\t// with loaded one\r\n \t\t\tmodel = tmpmodel;\r\n \t\t\tthis.populateGraph();\r\n \t\t\tsetSelect.setEnabled(true);\r\n \t\t\tcomponentBar.clickButton(setSelect);\r\n \t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t// Removes selection\r\n \t\t\tgraph.clearSelection();\r\n \t\t\t// If model contains results, enable Results Window\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\tif (model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\tthis.setResultsWindow(new PAResultsWindow(model.getParametricAnalysisModel(), (PAResultsModel) model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthis.setResultsWindow(new ResultsWindow(model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tmodel.resetSaveState();\r\n \t\t\tSystem.gc();\r\n \t\t} else if (state == ModelLoader.FAILURE) {\r\n \t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t}\r\n \t\t// Shows warnings if any\r\n \t\tif (state == ModelLoader.WARNING) {\r\n \t\t\tnew WarningWindow(modelLoader.getLastWarnings(), mainWindow, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show();\r\n \t\t}\r\n \r\n \t}", "private boolean tryInactivate() {\n if (active) {\n if (!pool.tryDecrementActiveCount())\n return false;\n active = false;\n }\n return true;\n }", "private boolean tryInactivate() {\n if (active) {\n if (!pool.tryDecrementActiveCount())\n return false;\n active = false;\n }\n return true;\n }", "public void ensureActive() {\n\t\tif (!activeProperty().getValue()) {\n\t\t\tactiveProperty().setValue(true);\n\t\t}\n\t}", "public RegisterConfirmedPage activateAccount(String email) {\r\n\t\tactiveRailwayAccount(email);\r\n\r\n\t\t/*\r\n\t\t * this.clickLinkEmail(_activateSubject, email); \r\n\t\t * // Switch tab chrome ---------\r\n\t\t * ArrayList<String> arr = new\r\n\t\t * ArrayList<String>(Constant.WEBDRIVER.getWindowHandles());\r\n\t\t * Constant.WEBDRIVER.switchTo().window(arr.get(1)); // End Switch tab chrome\r\n\t\t * --------- //closeWindow(); //switchWindow();\r\n\t\t */\r\n\r\n\t\tArrayList<String> tabs = new ArrayList<String>(Constant.WEBDRIVER.getWindowHandles());\r\n\t\tConstant.WEBDRIVER.switchTo().window(tabs.get(0));\r\n\t\treturn new RegisterConfirmedPage();\r\n\t}", "private void activateView() {\n if (isActive()) {\n return;\n }\n isActive = true;\n getSite().getWorkbenchWindow().getSelectionService()\n .addPostSelectionListener(editorListener);\n FileBuffers.getTextFileBufferManager().addFileBufferListener(\n editorListener);\n }", "protected void handleActivate() {\r\n\t\t// Recompute the read only state.\r\n\t\t//\r\n\t\tfeatureViewer.relevantChange();\r\n\t\t\r\n\t\tif (editingDomain.getResourceToReadOnlyMap() != null) {\r\n\t\t\teditingDomain.getResourceToReadOnlyMap().clear();\r\n\r\n\t\t\t// Refresh any actions that may become enabled or disabled.\r\n\t\t\t//\r\n\t\t\tsetSelection(getSelection());\r\n\t\t}\r\n\r\n\t\tif (!removedResources.isEmpty()) {\r\n\t\t\tif (handleDirtyConflict()) {\r\n\t\t\t\tgetSite().getPage().closeEditor(ConfmlEditor.this, false);\r\n\t\t\t} else {\r\n\t\t\t\tremovedResources.clear();\r\n\t\t\t\tchangedResources.clear();\r\n\t\t\t\tsavedResources.clear();\r\n\t\t\t}\r\n\t\t} else if (!changedResources.isEmpty()) {\r\n\t\t\tchangedResources.removeAll(savedResources);\r\n\t\t\thandleChangedResources();\r\n\t\t\tchangedResources.clear();\r\n\t\t\tsavedResources.clear();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void activeAccount(String email) {\n\n\t\tUserModel userModel = findByEmail(email);\n\t\tuserModel.setActiveSwitch(\"Y\");\n\t\tsaveDtls(userModel);\n\n\t}", "public void activer() throws ActivationImpossibleException {\n throw new ActivationImpossibleException(\"Serrure non activable sans objet, faut pas jouer au plus malin avec moi.\");\n }", "public void activate(ObjectId oxID, Object obj, MarshaledOX extState) throws Exception {\n\t\tfor (int i = 0; i < oclass.length; i++) {\n\t\t\tString adress = ExehdaUtil.getWorb().exportService(obj, oclass[i], objectClass + oxID.toString() + i);\n\t\t\tcontactAddress.addElement(adress);\n\t\t}\n\n\t\t// update the ox meta-attribute 'contact'\n\t\tOXHandle oxh = ExehdaUtil.getOXManager().createHandle(oxID);\n\t\tfor (int i = 0; i < interfaceClass.length; i++) {\n\t\t\toxh.setAttribute(ATT_WORB_CONTACT + interfaceClass[i], contactAddress.elementAt(i));\n\t\t}\n\n\t\tif ((obj instanceof Runnable) && (run)) {\n\t\t\tnew Thread((Runnable) obj).start();\n\t\t}\n\t}" ]
[ "0.68559086", "0.6711729", "0.6465783", "0.6420745", "0.6402435", "0.6361613", "0.63577783", "0.6314706", "0.6295195", "0.6295195", "0.62794703", "0.62586814", "0.62360024", "0.6213273", "0.6181432", "0.6181432", "0.6178614", "0.61658156", "0.6160523", "0.61538726", "0.6148561", "0.61361647", "0.6130611", "0.61189634", "0.61189634", "0.61159945", "0.61143446", "0.61005294", "0.60528255", "0.60523444", "0.6036964", "0.597903", "0.5972483", "0.5972483", "0.5892961", "0.5888167", "0.5823337", "0.57843184", "0.5768907", "0.57638925", "0.572139", "0.56617486", "0.5655974", "0.5648223", "0.5623363", "0.55999535", "0.5538476", "0.55360204", "0.5520197", "0.5520197", "0.55055046", "0.55055046", "0.55055046", "0.55003315", "0.54956144", "0.5469818", "0.54624146", "0.5461496", "0.545932", "0.5439174", "0.5438555", "0.54342407", "0.54213566", "0.53967476", "0.539151", "0.5353944", "0.53514475", "0.5322582", "0.53211784", "0.5318705", "0.53051114", "0.5289607", "0.5288975", "0.52658194", "0.52343506", "0.52068007", "0.51916254", "0.5182207", "0.5169905", "0.5157958", "0.51285124", "0.51257485", "0.51012933", "0.50778556", "0.5073511", "0.5073394", "0.5066578", "0.5052767", "0.5052545", "0.50502974", "0.50439036", "0.50359964", "0.5033683", "0.5033683", "0.50281405", "0.5023334", "0.5004371", "0.49875867", "0.49865", "0.4965638", "0.49639297" ]
0.0
-1
Build call for addTrainingData
public okhttp3.Call addTrainingDataCall(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback _callback) throws ApiException { Object localVarPostBody = trainingData; // create path and map variables String localVarPath = "/workspaces/{workspaceId}/models/{modelId}/data" .replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString())) .replaceAll("\\{" + "modelId" + "\\}", localVarApiClient.escapeString(modelId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json", "multipart/form-data" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "apiAuth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void build() throws ClusException, IOException {\n m_List = getRun().getDataSet(ClusRun.TRAINSET).getData(); // m_Data;\n }", "public void addTrainingData(String value,String label);", "public abstract void build(ClassifierData<U> inputData);", "@Test\r\n public void testDataBuilder_Init(){\r\n \tdataBuild.initAllData();\r\n \tassertTrue(dataBuild.getCPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of CPUs: \" + dataBuild.getCPUList().size());\r\n \tassertTrue(dataBuild.getGPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of GPUs: \" + dataBuild.getGPUList().size());\r\n \tassertTrue(dataBuild.getMBList().size() > 0);\r\n \tSystem.out.println(\"Total # of Motherboards: \" + dataBuild.getMBList().size());\r\n \tassertTrue(dataBuild.getMEMList().size() > 0);\r\n \tSystem.out.println(\"Total # of Memory Units: \" + dataBuild.getMEMList().size());\r\n \tassertTrue(dataBuild.getPSUList().size() > 0);\r\n \tSystem.out.println(\"Total # of PSUs: \" + dataBuild.getPSUList().size());\r\n \tassertTrue(dataBuild.getDISKList().size() > 0);\r\n \tSystem.out.println(\"Total # of Disks: \" + dataBuild.getDISKList().size());\r\n }", "@Test\n public void addModelData() {\n new FactoryInitializer()\n .initialize(\n ((tr, ev, is, np, md) -> new ResNetConv2DFactory(tr,ev,is,np,md).addModelData(new ArrayList<>()))\n );\n }", "void setTrainData(DataModel trainData);", "public hu.blackbelt.epsilon.runtime.model.test1.data.DataModel build() {\n final hu.blackbelt.epsilon.runtime.model.test1.data.DataModel _newInstance = hu.blackbelt.epsilon.runtime.model.test1.data.DataFactory.eINSTANCE.createDataModel();\n if (m_featureNameSet) {\n _newInstance.setName(m_name);\n }\n if (m_featureEntitySet) {\n _newInstance.getEntity().addAll(m_entity);\n } else {\n if (!m_featureEntityBuilder.isEmpty()) {\n for (hu.blackbelt.epsilon.runtime.model.test1.data.util.builder.IDataBuilder<? extends hu.blackbelt.epsilon.runtime.model.test1.data.Entity> builder : m_featureEntityBuilder) {\n _newInstance.getEntity().add(builder.build());\n }\n }\n }\n return _newInstance;\n }", "public void TrainDataset(){\n\t\ttry{\n\t\t\t//Testing delegate method\n\t\t\tMessageController.logToConsole(\"Hey, I'm from train button\");\n\t\t\t\n\t\t\t//Pass in the real training dataset\n\t\t\tfindSuitableK(new String[]{\"Hello\", \"World\"});\n\t\t\t\n\t\t\t//Pass in the 'k' and 'query string'\n\t\t\tfindKNN(2, \"anything\");\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tthrow ex;\n\t\t}\n\t\tfinally{\n\t\t\t\n\t\t}\n\t}", "public abstract void fit(BinaryData trainingData);", "@Test\r\n public void testDataBuilder_ValidInit(){\r\n \tDataInitializer dataBuild = DataInitializer.getInstance();\r\n \tdataBuild.initValidComputerParts();\r\n \tassertTrue(dataBuild.getCPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of CPUs: \" + dataBuild.getCPUList().size());\r\n \tassertTrue(dataBuild.getGPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of GPUs: \" + dataBuild.getGPUList().size());\r\n \tassertTrue(dataBuild.getMBList().size() > 0);\r\n \tSystem.out.println(\"Total # of Motherboards: \" + dataBuild.getMBList().size());\r\n \tassertTrue(dataBuild.getMEMList().size() > 0);\r\n \tSystem.out.println(\"Total # of Memory Units: \" + dataBuild.getMEMList().size());\r\n \tassertTrue(dataBuild.getPSUList().size() > 0);\r\n \tSystem.out.println(\"Total # of PSUs: \" + dataBuild.getPSUList().size());\r\n \tassertTrue(dataBuild.getDISKList().size() > 0);\r\n \tSystem.out.println(\"Total # of Disks: \" + dataBuild.getDISKList().size());\r\n }", "public void fit(ArrayList trainData) {\n this.trainingData = trainData;\n }", "@Override\n\tpublic void addTrainInfo(Training training) {\n\t\ttraining.settDate(new Date());\n\t\ttrainingMapper.insert(training);\n\t}", "public PredictRequest build() {\n\n\t\t\tcheckArgument(!Strings.isNullOrEmpty(url), \"url is required\");\n\t\t\tcheckArgument(!Strings.isNullOrEmpty(service), \"service name is required\");\n\t\t\tcheckArgument(data != null, \"data is required\");\n\n\t\t\tPredictRequest request = new PredictRequest();\n\t\t\trequest.baseURL = url;\n\t\t\tJsonObject requestData = new JsonObject();\n\t\t\trequestData.addProperty(\"service\", service);\n\n\t\t\tJsonObject paramsObj = new JsonObject();\n\t\t\tif (input != null)\n\t\t\t\tparamsObj.add(\"input\", input);\n\t\t\tif (output != null)\n\t\t\t\tparamsObj.add(\"output\", output);\n\t\t\tif (mllibParams != null)\n\t\t\t\tparamsObj.add(\"mllib\", mllibParams);\n\n\t\t\tif (!paramsObj.isJsonNull()) {\n\t\t\t\trequestData.add(\"parameters\", paramsObj);\n\t\t\t}\n\n\t\t\trequestData.add(\"data\", data);\n\n\t\t\trequest.data = requestData;\n\t\t\treturn request;\n\t\t}", "TrainingTest createTrainingTest();", "void storeTraining(Training training);", "@Override\r\n\tpublic void buildClassifier(Instances data) throws Exception {\n\r\n\t}", "public void buildAllPossibleTrain() {\n while (depotOnThisLine.checkOnPossibilityCreatingTrain()) {\n try {\n trains.add(Factory.buildNewTrain(depotOnThisLine));\n } catch (DepotNotExistException e) {\n e.printStackTrace();\n }\n }\n }", "private void setTrainingData() throws IOException {\r\n\t\ttrainIdBodyMap = readInIdBodiesMap(new File(TRAIN_BODIES_CSV_LOCATION));\r\n\t\ttrainStances = readStances(new File(TRAIN_STANCES_CSV_LOCATION));\r\n\r\n\t}", "private void loadDataTraining(String location) throws IOException {\r\n\r\n File parentDir = new ClassPathResource(location).getFile();\r\n \ttrainWriter.write(\"Data folder found.\");\r\n\r\n // Divide all data to training and testing datasets\r\n FileSplit filesInDir = new FileSplit(parentDir, allowedExtensions, randNumGen);\r\n \r\n // Create ParentPathLabelGenerator, that will parse the parent dir and use the name of the subdirectories as label/class names\r\n ParentPathLabelGenerator labelMaker = new ParentPathLabelGenerator();\r\n BalancedPathFilter pathFilter = new BalancedPathFilter(randNumGen, allowedExtensions, labelMaker);\r\n trainWriter.write(\"Label generators created.\");\r\n \r\n // Split the image files into train and test. Specify the train test split as 80%,20%\r\n InputSplit[] filesInDirSplit = filesInDir.sample(pathFilter, 80, 20);\r\n InputSplit trainDataInputSplit = filesInDirSplit[0];\r\n InputSplit testDataInputSplit = filesInDirSplit[1];\r\n trainWriter.write(\"Data splited to train and test parts as 80% and 20%.\");\r\n \r\n /*\r\n * Specifying a new record reader (one for testing on dataset, one for testing on real data, one for training)\r\n * with the height and width you want the images to be resized to.\r\n * Note that the images in this example are all of different size\r\n * They will all be resized to the height and width specified below\r\n * */\r\n ImageRecordReader trainRecordReader = new ImageRecordReader(inputShape[1],inputShape[2],inputShape[0],labelMaker);\r\n trainRecordReader.initialize(trainDataInputSplit);\r\n\r\n ImageRecordReader testRecordReader = new ImageRecordReader(inputShape[1],inputShape[2],inputShape[0], labelMaker);\r\n testRecordReader.initialize(testDataInputSplit);\r\n trainWriter.write(\"Data iterators created successfully.\");\r\n \r\n // Get the number of labels, ImageRecordReader founded in dir and check it\r\n int outputNum = trainRecordReader.numLabels();\r\n\r\n // Init iterators with datasets\r\n trainIterator = new RecordReaderDataSetIterator(trainRecordReader, batchSizeTraining, labelIndex, outputNum);\r\n trainIterator.setCollectMetaData(true);\r\n testIterator = new RecordReaderDataSetIterator(testRecordReader, batchSizeTesting, labelIndex, outputNum);\r\n testIterator.setCollectMetaData(true);\r\n trainWriter.write(\"Data iterators setted to collect metadata.\");\r\n }", "@Test\r\n public void testDataBuilder_Update(){\r\n \tdataBuild.initAllData();\r\n \tassertTrue(dataBuild.getCPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of CPU's: \" + dataBuild.getCPUList().size());\r\n \tassertTrue(dataBuild.getGPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of GPU's: \" + dataBuild.getGPUList().size());\r\n \tassertTrue(dataBuild.getMBList().size() > 0);\r\n \tSystem.out.println(\"Total # of Motherboards's: \" + dataBuild.getMBList().size());\r\n \tassertTrue(dataBuild.getMEMList().size() > 0);\r\n \tSystem.out.println(\"Total # of Memory Units: \" + dataBuild.getMEMList().size());\r\n \tassertTrue(dataBuild.getPSUList().size() > 0);\r\n \tSystem.out.println(\"Total # of PSU: \" + dataBuild.getPSUList().size());\r\n \tassertTrue(dataBuild.getDISKList().size() > 0);\r\n \tSystem.out.println(\"Total # of Disks: \" + dataBuild.getDISKList().size());\r\n \tDate profileTime = new Date(System.currentTimeMillis());\r\n \tdataBuild.updateCheckProductID();\r\n \tSystem.out.println(\"Update Complete in \" + (float)(System.currentTimeMillis() - profileTime.getTime())/1000 + \" seconds\");\r\n }", "private TrainingPhrase(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private void buildAndRunNetwork() throws IOException {\n final int numRows = 28;\r\n final int numColumns = 28;\r\n int outputNum = 10; // number of output classes\r\n int batchSize = 128; // batch size for each epoch\r\n int rngSeed = 123; // random number seed for reproducibility\r\n int numEpochs = 15; // number of epochs to perform\r\n double rate = 0.0015; // learning rate\r\n\r\n //Get the DataSetIterators:\r\n DataSetIterator mnistTrain = new MnistDataSetIterator(batchSize, true, rngSeed);\r\n DataSetIterator mnistTest = new MnistDataSetIterator(batchSize, false, rngSeed);\r\n\r\n\r\n log.info(\"Build model....\");\r\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\r\n .seed(rngSeed) //include a random seed for reproducibility\r\n .optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT) // use stochastic gradient descent as an optimization algorithm\r\n .iterations(1)\r\n .activation(Activation.RELU)\r\n .weightInit(WeightInit.XAVIER)\r\n .learningRate(rate) //specify the learning rate\r\n .updater(Updater.NESTEROVS).momentum(0.98) //specify the rate of change of the learning rate.\r\n .regularization(true).l2(rate * 0.005) // regularize learning model\r\n .list()\r\n .layer(0, new DenseLayer.Builder() //create the first input layer.\r\n .nIn(numRows * numColumns)\r\n .nOut(500)\r\n .build())\r\n .layer(1, new DenseLayer.Builder() //create the second input layer\r\n .nIn(500)\r\n .nOut(100)\r\n .build())\r\n .layer(2, new OutputLayer.Builder(LossFunction.NEGATIVELOGLIKELIHOOD) //create hidden layer\r\n .activation(Activation.SOFTMAX)\r\n .nIn(100)\r\n .nOut(outputNum)\r\n .build())\r\n .pretrain(false).backprop(true) //use backpropagation to adjust weights\r\n .build();\r\n\r\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\r\n model.init();\r\n \r\n model.setListeners(new ScoreIterationListener(5)); //print the score with every iteration\r\n\r\n log.info(\"Train model....\");\r\n for( int i=0; i<numEpochs; i++ ){\r\n \tlog.info(\"Epoch \" + i);\r\n model.fit(mnistTrain);\r\n }\r\n\r\n\r\n log.info(\"Evaluate model....\");\r\n Evaluation eval = new Evaluation(outputNum); //create an evaluation object with 10 possible classes\r\n while(mnistTest.hasNext()){\r\n DataSet next = mnistTest.next();\r\n INDArray output = model.output(next.getFeatureMatrix()); //get the networks prediction\r\n eval.eval(next.getLabels(), output); //check the prediction against the true class\r\n }\r\n\r\n log.info(eval.stats());\r\n log.info(\"****************Example finished********************\");\r\n\t}", "public Builder setTrainingDataType(object_detection.protos.Calibration.TrainingDataType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n trainingDataType_ = value.getNumber();\n onChanged();\n return this;\n }", "public void train(){\n recoApp.training(idsToTest);\n }", "public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}", "public void train(SieveDocuments trainingInfo) {\r\n\t\t// no training\r\n\t}", "public void readTrainingFile() {\n\t\ttry {\n\t\t\tFile file = new File(trainingFile);\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\t\tSystem.out.print(\"Read training data >>>\\t\");\n\t\t\t// read first line to get attribute names\n\t\t\tString line = reader.readLine();\n\t\t\t// find delimiter\n\t\t\tdelimiter = findDelimiter(line);\n\t\t\t// get all attributes\n\t\t\tallAttributes = line.split(delimiter);\n\t\t\t// target attribute is at the last position\n\t\t\tint targetIndex = allAttributes.length - 1;\n\t\t\t\n\t\t\ttrainingTuples = new ArrayList<String[]>();\n\t\t\tclassLabels = new HashSet<String>();\n\t\t\tmapAttrValue = new HashMap<String, Set<String>>();\n\t\t\twhile((line = reader.readLine()) != null) {\n\t\t\t\tif(line.isEmpty() == true) {\n\t\t\t\t\t//if the line is empty\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// read one tuple\n\t\t\t\tString[] tuple = line.split(delimiter);\n\t\t\t\ttrainingTuples.add(tuple);\n\t\t\t\t// add attribute value to mapAttrValue\n\t\t\t\tfor(int i = 0; i < targetIndex; i++) {\n\t\t\t\t\tString attribute = allAttributes[i];\n\t\t\t\t\tString value = tuple[i];\n\t\t\t\t\tSet<String> valueSet = mapAttrValue.get(attribute);\n\t\t\t\t\tif(valueSet == null) {\n\t\t\t\t\t\tvalueSet = new HashSet<String>();\n\t\t\t\t\t\tmapAttrValue.put(attribute, valueSet);\n\t\t\t\t\t}\n\t\t\t\t\tvalueSet.add(value);\n\t\t\t\t}\n\t\t\t\t// get class label\n\t\t\t\tclassLabels.add(tuple[targetIndex]);\n\t\t\t}\t\t\t\n\t\t\treader.close();\n\t\t\tSystem.out.println(\"Complete!\");\t\n\t\t} catch(FileNotFoundException e) {\n\t\t\tSystem.out.println(\"No such file!\");\n\t\t\te.printStackTrace();\n\t\t} catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "public void wekaCalculate()\n\t{\n\t\tfor (int categoryStep = 0; categoryStep < 6; categoryStep++)\n\t\t{\n\t\t\tString trainString = \"Train\";\n\t\t\tString testString = \"Test\";\n\t\t\tString categoryString;\n\t\t\tString resultString = \"Results\";\n\t\t\tString textString;\n\t\t\tString eventString;\n\n\t\t\tswitch (categoryStep)\n\t\t\t{\n\t\t\tcase 0: categoryString = \"Cont.arff\"; break;\n\t\t\tcase 1: categoryString = \"Dona.arff\"; break;\n\t\t\tcase 2: categoryString = \"Offi.arff\"; break;\n\t\t\tcase 3: categoryString = \"Advi.arff\"; break;\n\t\t\tcase 4: categoryString = \"Mult.arff\"; break;\n\t\t\tdefault: categoryString = \"Good.arff\";\n\t\t\t}\n\t\t\t\n\t\t\tswitch (categoryStep)\n\t\t\t{\n\t\t\tcase 0: textString = \"Cont.txt\"; break;\n\t\t\tcase 1: textString = \"Dona.txt\"; break;\n\t\t\tcase 2: textString = \"Offi.txt\"; break;\n\t\t\tcase 3: textString = \"Advi.txt\"; break;\n\t\t\tcase 4: textString = \"Mult.txt\"; break;\n\t\t\tdefault: textString = \"Good.txt\";\n\t\t\t}\n\t\t\t\n\t\t\tfor (int eventStep = 0; eventStep < 15; eventStep++)\n\t\t\t{\n\t\t\t\tString trainingData;\n\t\t\t\tString testData;\n\t\t\t\tString resultText;\n\n\t\t\t\tswitch (eventStep)\n\t\t\t\t{\n\t\t\t\tcase 0: eventString = \"2011Joplin\"; break;\n\t\t\t\tcase 1: eventString = \"2012Guatemala\"; break; \n\t\t\t\tcase 2: eventString = \"2012Italy\"; break;\n\t\t\t\tcase 3: eventString = \"2012Philipinne\"; break;\n\t\t\t\tcase 4: eventString = \"2013Alberta\";\tbreak;\n\t\t\t\tcase 5: eventString = \"2013Australia\"; break;\n\t\t\t\tcase 6: eventString = \"2013Boston\"; break;\t\t\t\t\n\t\t\t\tcase 7: eventString = \"2013Manila\"; break;\n\t\t\t\tcase 8: eventString = \"2013Queens\"; break;\n\t\t\t\tcase 9: eventString = \"2013Yolanda\"; break;\n\t\t\t\tcase 10: eventString = \"2014Chile\"; break;\n\t\t\t\tcase 11: eventString = \"2014Hagupit\"; break;\n\t\t\t\tcase 12: eventString = \"2015Nepal\"; break;\n\t\t\t\tcase 13: eventString = \"2015Paris\"; break;\n\t\t\t\tdefault: eventString = \"2018Florida\"; \t\t\t\t\n\t\t\t\t}\n\n\t\t\t\ttrainingData = eventString;\n\t\t\t\ttrainingData += trainString;\n\t\t\t\ttrainingData += categoryString;\n\n\t\t\t\ttestData = eventString;\n\t\t\t\ttestData += testString;\n\t\t\t\ttestData += categoryString;\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tresultText = eventString;\n\t\t\t\tresultText += resultString;\n\t\t\t\tresultText += textString;\n\t\t\t\t\n\n\t\t\t\ttry {\n\t\t\t\t\tConverterUtils.DataSource loader1 = new ConverterUtils.DataSource(trainingData);\n\t\t\t\t\tConverterUtils.DataSource loader2 = new ConverterUtils.DataSource(testData);\n\n\n\t\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(resultText));\n\t\t\t\t\tInstances trainData = loader1.getDataSet();\n\t\t\t\t\ttrainData.setClassIndex(trainData.numAttributes() - 1);\n\n\t\t\t\t\tInstances testingData = loader2.getDataSet();\n\t\t\t\t\ttestingData.setClassIndex(testingData.numAttributes() - 1);\n\n\t\t\t\t\tClassifier cls1 = new NaiveBayes();\t\t\t\t\t\n\t\t\t\t\tcls1.buildClassifier(trainData);\t\t\t\n\t\t\t\t\tEvaluation eval1 = new Evaluation(trainData);\n\t\t\t\t\teval1.evaluateModel(cls1, testingData);\t\n\t\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\t\t\t\t\tbw.write(eval1.toSummaryString());\n\t\t\t\t\tbw.write(eval1.toClassDetailsString());\n\t\t\t\t\tbw.write(eval1.toMatrixString());\n\t\t\t\t\tbw.write(\"\\n\");\n\n\t\t\t\t\tthis.evalNaiveBayesList.add(eval1);\n\n\t\t\t\t\tClassifier cls2 = new SMO();\n\t\t\t\t\tcls2.buildClassifier(trainData);\n\t\t\t\t\tEvaluation eval2 = new Evaluation(trainData);\n\t\t\t\t\teval2.evaluateModel(cls2, testingData);\n\t\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\t\t\t\t\tbw.write(eval2.toSummaryString());\n\t\t\t\t\tbw.write(eval2.toClassDetailsString());\n\t\t\t\t\tbw.write(eval2.toMatrixString());\n\n\t\t\t\t\tthis.evalSMOList.add(eval2);\n\n\t\t\t\t\tbw.close();\n\t\t\t\t} catch (Exception e) {\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Builder\n addTrainingPhrasesBuilder() {\n return getTrainingPhrasesFieldBuilder()\n .addBuilder(\n com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.getDefaultInstance());\n }", "public void addInstances (InstanceList training)\n\t{\n\t\tSystem.out.println(\"LabeledLDA Model : Adding training instances ..%\");\n\t\t//Data Alphabet\n\t\talphabet = training.getDataAlphabet();\n\t\tnumTypes = alphabet.size();\n\t\tbetaSum = beta * numTypes;\n\t\t\n\t\t// We have one topic for every possible label.\n\t\tlabelAlphabet = training.getTargetAlphabet();\n\t\tnumTopics = labelAlphabet.size();\n\t\toneDocTopicCounts = new int[numTopics];\n\t\ttokensPerTopic = new int[numTopics];\n\t\ttypeTopicCounts = new int[numTypes][numTopics];\n\n\t\t//topicAlphabet = AlphabetFactory.labelAlphabetOfSize(numTopics); //generate d0,d1 [3shan target string w hwa 3wzo label]\n topicAlphabet = new LabelAlphabet();\n\t\tfor (int i = 0; i < numTopics; i++) {\n\t\t\tString target = labelAlphabet.lookupObject(i).toString();\n topicAlphabet.lookupLabel(target);\n\t\t}\n //System.out.println(topicAlphabet);\n\n for (Instance instance : training)\n\t\t{\n\t\t\tFeatureSequence tokens = (FeatureSequence) instance.getData(); //read data featureSequence\n\t\t\tLabelSequence topicSequence = new LabelSequence(topicAlphabet, new int[ tokens.size() ]);\n FeatureVector labels = (FeatureVector) instance.getTarget(); //read target featurevector\n\n\t\t\tint[] topics = topicSequence.getFeatures();\n\t\t\tfor (int position = 0; position < tokens.size(); position++)\n\t\t\t{\n\t\t\t\tint topic = labels.indexAtLocation(random.nextInt(labels.numLocations()));\n\t\t\t\ttopics[position] = topic;\n\t\t\t\ttokensPerTopic[topic]++;\n\t\t\t\tint type = tokens.getIndexAtPosition(position);\n\t\t\t\ttypeTopicCounts[type][topic]++;\n\t\t\t}\n\t\t\tTopicAssignment t = new TopicAssignment(instance, topicSequence);\n\t\t\tdata.add(t);\n\t\t}\n\t\t/*\n for (Instance instance : training)\n {\n FeatureSequence tokens = (FeatureSequence) instance.getData();\n LabelSequence topicSequence = new LabelSequence(topicAlphabet, new int[ tokens.size() ]);\n\n int[] topics = topicSequence.getFeatures();\n for (int position = 0; position < topics.length; position++) {\n int topic = random.nextInt(numTopics);\n topics[position] = topic;\n }\n TopicAssignment t = new TopicAssignment(instance, topicSequence);\n data.add(t);\n }\n\n buildInitialTypeTopicCounts();\n initializeHistograms();\n\t\t */\n\t\tSystem.out.println(\"Data loaded.\");\n\t}", "public void buildModel() {\n }", "public MetricBatch build() {\n Attributes attributes = commonAttributesBuilder.build();\n return new MetricBatch(metrics, attributes);\n }", "public Builder addData(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDataIsMutable();\n data_.add(value);\n onChanged();\n return this;\n }", "public Builder addData(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDataIsMutable();\n data_.add(value);\n onChanged();\n return this;\n }", "@Override\n public void prepareRun(BatchSourceContext context) throws IOException {\n Map<String, String> arguments = new HashMap<>();\n FileSetArguments.setInputPaths(arguments, config.files);\n context.setInput(Input.ofDataset(config.fileSetName, arguments));\n }", "@Override\n public void buildClassifier(Instances trainingData) throws Exception {\n // can classifier handle the data?\n getCapabilities().testWithFail(trainingData);\n\n tree = new MultiInstanceDecisionTree(trainingData);\n }", "public VersionInfo withTrainingStatus(TrainingStatus trainingStatus) {\n this.trainingStatus = trainingStatus;\n return this;\n }", "public Builder addTrainingPhrases(\n com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase value) {\n if (trainingPhrasesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureTrainingPhrasesIsMutable();\n trainingPhrases_.add(value);\n onChanged();\n } else {\n trainingPhrasesBuilder_.addMessage(value);\n }\n return this;\n }", "public ApiBuilder() \n\t{\n\t\tthis._data = new LinkedHashMap<String,Object>();\n\t}", "private Response performDT_training(String model_name, String data) {\n \tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MMM-yyyy_HmsS\");\n \tJSONObject summary = new JSONObject();\n \t\n \tif(model_name.trim().length()< 1) {\n \t\tmodel_name = \"DTree_Model_\" + sdf.format(Calendar.getInstance().getTime());\n \t}\n \t\n \t// check if the model name is already present\n \tif(utilObj.isModelNameUnique(model_name)) {\n \t\tsummary = new JSONObject();\n \t\tsummary.put(\"Error\", \"Duplicate model name : \" + model_name);\n \t\tlog.error(\"Duplicate model name\");\n \t\treturn Response.status(200).entity(summary.toString()).build();\n \t}\n \t\n \tlog.info(String.format(\"model_Name: %s\", model_name ));\n \tString modelFilePath = Util.CurrentDir+\"/models/\"+model_name;\n \t\n \ttry {\n\n \t\t// write the data to the disk\n \t\tfinal String inputFileName = \"TrainData_DT_\" + sdf.format(Calendar.getInstance().getTime()) + \".csv\";\n \t\tfinal String inputFilePath = Util.CurrentDir+\"/\"+Util.DataDir+\"/\"+inputFileName;\n \t\tFileWriter writer = new FileWriter(inputFilePath);\n \t\twriter.write(data);\n \t\twriter.flush();\n \t\twriter.close();\n \t\tlog.info(\"File created : \" + inputFilePath);\n \t\t\n \t\tString cmd = String.format(\"Rscript \"+Util.CurrentDir+\"/Rscripts/DTTraining.R %s %s \",inputFilePath, model_name);\n \t\tlog.info(cmd);\n\t \tProcess pr = Runtime.getRuntime().exec(cmd);\n\t\t\t\n\t\t\tBufferedReader results = new BufferedReader(new InputStreamReader(pr.getInputStream()));\n\t\t\tString line = null;\n\t\t\t\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\twhile((line=results.readLine()) != null) {\n\t\t\t\tbuf.append(line);\n\t\t\t\tif(line.trim().isEmpty()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine().trim();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tsummary.put(\"summary\", line);\n\t\t\t\t} \n\t\t\t\telse if(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tJSONArray Psplits = new JSONArray();\t\t\t\t\t\n\t\t\t\t\twhile(!line.trim().equalsIgnoreCase(\"Surrogate splits:\")) {\n\t\t\t\t\t\tString s[] = line.split(\"\\t\");\n\t\t\t\t\t\tfor(String s1 : s) {\n\t\t\t\t\t\t\tSystem.out.println(s1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tJSONArray splitCols = new JSONArray(s);\n\t\t\t\t\t\tline = results.readLine();\n\t\t\t\t\t\tbuf.append(line);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\tsummary.put(\"model_name\", model_name + \".RData\");\n\t\t\t\tsummary.put(\"InputFile\", inputFileName);\n\t\t\t\tsummary.put(\"CommandName\", \"Rscripts/DTTraining.R\");\n\t\t\t}\n\t\t\tsummary.put(\"raw\", buf.toString());\n\t\t\t\n\t\t\t// format the summary json as params { [key : val] }\n\t\t\tJSONArray finalSummary = new JSONArray();\n\t\t\tIterator<String> keys = summary.keySet().iterator();\n\t\t\twhile(keys.hasNext()) {\n\t\t\t\tJSONObject row = new JSONObject();\n\t\t\t\trow.put(\"attribute\", keys.next());\n\t\t\t\trow.put(\"value\", summary.get(row.getString(\"attribute\")));\n\t\t\t\tfinalSummary.put(row);\n\t\t\t}\n\t\t\treturn Response.status(200).entity(new JSONObject().put(\"summary\", finalSummary).toString()).build();\n\t\t\t\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n\t\t\n \treturn Response.status(200).entity(summary.toString()).build();\n }", "public void trainData() throws IOException {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\ttestingFold = i;\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Training Tree-Augmented Naive Bayes for writing Fold\");\n\t\t\t}\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Calculating Class Priors across Data set.\\n\");\n\t\t\t}\n\t\t\tbuildPriors();\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Priors built.\\n Discretizing data into Naive Bin Estimator...\\n\" +\n\t\t\t\t\t\t\"Generating Completed Graph...\\nWeighting Edges...\\n\");\n\t\t\t}\n\t\t\tdiscretizeData();\n\t\t\ttest();\n\t\t}\n\n\t}", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call addTrainingDataValidateBeforeCall(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling addTrainingData(Async)\");\n }\n \n // verify the required parameter 'modelId' is set\n if (modelId == null) {\n throw new ApiException(\"Missing the required parameter 'modelId' when calling addTrainingData(Async)\");\n }\n \n // verify the required parameter 'trainingData' is set\n if (trainingData == null) {\n throw new ApiException(\"Missing the required parameter 'trainingData' when calling addTrainingData(Async)\");\n }\n \n\n okhttp3.Call localVarCall = addTrainingDataCall(workspaceId, modelId, trainingData, _callback);\n return localVarCall;\n\n }", "DataGenModel()\n {\n }", "private static native boolean train_0(long nativeObj, long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj);", "public void train()\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n System.out.println(\"Start Training ..\");\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Training Text %..\");\n\t\t\ttrainText();\n\n\t\t\tSystem.out.println(\"Training Complex %..\");\n\t\t\ttrainCombined();\n\n\t\t\tSystem.out.println(\"Training Feature %..\");\n\t\t\ttrainFeatures();\n\n\t\t\tSystem.out.println(\"Training Lexicon %..\");\n\t\t\t//trainLexicon();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void buildCombinedData() throws PipelineModelException {\n List<PipelineData> combined;\n if (baseStack != null) {\n combined = new ArrayList<>(baseStack.size() + 1);\n } else {\n combined = new ArrayList<>(1);\n }\n\n if (baseStack != null) {\n combined.addAll(baseStack);\n }\n if (pipelineData != null) {\n combined.add(pipelineData);\n }\n\n final PipelineDataMerger pipelineDataMerger = new PipelineDataMerger();\n pipelineDataMerger.merge(combined);\n combinedData = pipelineDataMerger;\n }", "public abstract void setTrainParams(ClassificationMethod method,URL model,Map<String,Object> args) throws ClassificationException;", "private static void buildFramework() {\n \tLOG.info(\"Begin building of shared framework.\");\n \t\n \tLOG.debug(\"Create a IterativeFileReader.\");\n \tIterativeFileReader iterativeFileReader = (IterativeFileReader) ReaderFactory.instance().getIterativeFileReader();\n \tLOG.debug(\"Create a TextFileLineReader.\");\n \tTextFileLineReader textFileLineReader = (TextFileLineReader) ReaderFactory.instance().getTextFileLineReader();\n \t\n \t// Setup IterativeFileReader\n \tFile dir = new File(clArgs.buildFrameworkInDir);\n \titerativeFileReader.setFile(dir);\n \titerativeFileReader.setFileFilter(FileUtil.acceptOnlyClusterFilesFilter());\n \titerativeFileReader.setReader(textFileLineReader);\n \t\n \t// Setup processor\n \tLOG.debug(\"Create a SharedFrameworkProcessor.\");\n \tSharedFrameworkProcessor sharedFrameworkProcessor = new SharedFrameworkProcessor();\n \ttextFileLineReader.setProcessor(sharedFrameworkProcessor);\n \t// Get informed about the finishing of each cluster (file) to reset the processor's status\n \ttextFileLineReader.attach(sharedFrameworkProcessor, Interests.HasFinished);\n \t// Get informed about the finishing of all clusters to give each cluster in the generated graph a pretty id\n \titerativeFileReader.attach(sharedFrameworkProcessor, Interests.HasFinished);\n \t\n \titerativeFileReader.read();\n \t\n \tLOG.info(\"Finished building shared framework.\");\n }", "protected void init()\r\n\t{\n\t\tif (ConfigManager.getInstance().getIsCrossClassify() && WekaTool.dataStageOn)\r\n\t\t{\r\n\t\t\t//System.out.println(\"in init for data stage\");\r\n\t\t\tsrcDirUrl = ConfigManager.getInstance().getTrainPath();\r\n\t\t\tdestDirUrl = ConfigManager.getInstance().getTrainPath() +\r\n\t\t\t File.separator + \"output\";\r\n\t\t\t//System.out.println(\"srcDirUrl = \" + srcDirUrl);\r\n\t\t\t//System.out.println(\"destDirUrl = \" + destDirUrl);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t//System.out.println(\"here, good\");\r\n\t\t\tsrcDirUrl = getSrcDirUrl();\r\n\t\t\tdestDirUrl = getDestDirUrl();\r\n\t\t}\r\n\t\tdatalibSVMUrl = getLibSVMDirUrl();\r\n\t\ttry {\r\n\t\t\tsrcDir = Utils.getDir(srcDirUrl);\r\n\t\t\tdestDir = Utils.getDir(destDirUrl);\r\n\t\t} catch (Exception e)\r\n\t\t{\r\n\t\t}\r\n\t}", "private void train() throws IOException {\r\n\r\n // Set Listeners, to see results of evaluation during training process and testing\r\n vgg16Transfer.setListeners(new ScoreIterationListener(100));\r\n trainWriter.write(\"\\n Train model....\");\r\n System.out.println(\"\\n Train model....\");\r\n int iterationsCounter = 0;\r\n // Go through all data \"epochs\" - number of times\r\n for(int n = 0; n < epochs; n++) {\r\n System.out.println(String.format(\"Epoch %d started training\", n + 1));\r\n trainWriter.write(String.format(\"Epoch %d started training\", n + 1));\r\n\r\n //Reset training iterator to the new epoch\r\n trainIterator.reset();\r\n // Go through all data once, till it's end\r\n while (trainIterator.hasNext()) {\r\n iterationsCounter++;\r\n trainingData = trainIterator.next();\r\n normalizer.fit(trainingData);\r\n vgg16Transfer.fit(trainingData);\r\n System.out.println(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n\r\n }\r\n System.out.println(String.format(\"Epoch %d finished training\", n + 1));\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n // Get results and check them\r\n Evaluation eval = new Evaluation(numLabels);\r\n testIterator.reset();\r\n while(testIterator.hasNext()) {\r\n testData = testIterator.next();\r\n normalizer.fit(testData);\r\n INDArray features = testData.getFeatures();\r\n INDArray labels = testData.getLabels();\r\n INDArray predicted = vgg16Transfer.outputSingle(features);\r\n eval.eval(labels, predicted);\r\n }\r\n System.out.println(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n System.out.println(eval.stats());\r\n System.out.println(eval.confusionToString());\r\n trainWriter.write(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n trainWriter.write(eval.stats());\r\n trainWriter.write(eval.confusionToString());\r\n }\r\n System.out.println(\"\\n *** Training finished! *** \");\r\n trainWriter.write(\"\\n *** Training finished! *** \");\r\n }", "public Training() {\n }", "@Override\n\tpublic void train(Instance[] trainingData, int v) {\n\n\t\t// For all the words in the documents, count the number of occurrences. Save in\n\t\t// HashMap\n\t\t// e.g.\n\t\t// m_map[0].get(\"catch\") should return the number of \"catch\" es, in the\n\t\t// documents labeled sports\n\t\t// Hint: m_map[0].get(\"asdasd\") would return null, when the word has not\n\t\t// appeared before.\n\t\t// Use m_map[0].put(word,1) to put the first count in.\n\t\t// Use m_map[0].replace(word, count+1) to update the value\n\t\tm_trainingData = trainingData;\n\t\tm_v = v;\n\t\tm_map[0] = new HashMap<>();\n\t\tm_map[1] = new HashMap<>();\n\n\t\t// iterate the instances (i.e., articles) in the training data\n\t\tfor (int i = 0; i < m_trainingData.length; i++) {\n\t\t\tInstance article = m_trainingData[i];\n\t\t\t// if this article belongs to sports\n\t\t\tif (article.label.equals(Label.SPORTS)) {\n\t\t\t\t// iterate each word in this article\n\t\t\t\tfor (int j = 0; j < article.words.length; j++) {\n\t\t\t\t\tString word = article.words[j];\n\t\t\t\t\t// if this word exists in the sports hashmap\n\t\t\t\t\tif (m_map[0].containsKey(word)) {\n\t\t\t\t\t\tm_map[0].replace(word, m_map[0].get(word).intValue() + 1);\n\t\t\t\t\t}\n\t\t\t\t\t// if this word is a new word in the sports hashmap\n\t\t\t\t\telse {\n\t\t\t\t\t\tm_map[0].put(word, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if this article belongs to business (i.e., non-sports)\n\t\t\telse {\n\t\t\t\t// iterate each word in this article\n\t\t\t\tfor (int j = 0; j < article.words.length; j++) {\n\t\t\t\t\tString word = article.words[j];\n\t\t\t\t\t// if this word exists in the business hashmap\n\t\t\t\t\tif (m_map[1].containsKey(word)) {\n\t\t\t\t\t\tm_map[1].replace(word, m_map[1].get(word).intValue() + 1);\n\t\t\t\t\t}\n\t\t\t\t\t// if this word is a new word in the sports hashmap\n\t\t\t\t\telse {\n\t\t\t\t\t\tm_map[1].put(word, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// |V| is the size of the total vocabulary we assume we will encounter (i.e.,\n\t\t// the dictionary size) from training data and test data\n\t\t// The value |V| will be passed to the train method of your classifier as the\n\t\t// argument int v.\n\n\t\t// To obtain the number of word type\n\t\tSet<String> all = new HashSet<String>();\n\t\tfor (int j = 0; j < m_trainingData.length; j++) {\n\t\t\tfor (int k = 0; k < m_trainingData[j].words.length; k++) {\n\t\t\t\tall.add(m_trainingData[j].words[k]);\n\t\t\t}\n\t\t}\n\n\t\t// To obtain the total number of words for each class(label)\n\t\tsumV[0] = 0.0;\n\t\tsumV[1] = 0.0;\n\t\tfor (String w : all) {\n\t\t\tif (m_map[0].get(w) != null) {\n\t\t\t\tsumV[0] += m_map[0].get(w);\n\t\t\t}\n\t\t\tif (m_map[1].get(w) != null) {\n\t\t\t\tsumV[1] += m_map[1].get(w);\n\t\t\t}\n\t\t}\n\t}", "private Builder(UpdateTrainingExampleOptions updateTrainingExampleOptions) {\n this.environmentId = updateTrainingExampleOptions.environmentId;\n this.collectionId = updateTrainingExampleOptions.collectionId;\n this.queryId = updateTrainingExampleOptions.queryId;\n this.exampleId = updateTrainingExampleOptions.exampleId;\n this.crossReference = updateTrainingExampleOptions.crossReference;\n this.relevance = updateTrainingExampleOptions.relevance;\n }", "@Override\n public PreparedData prepare(SparkContext sc, TrainingData trainingData) {\n // now that we have all actions in separate RDDs we must merge any user dictionaries and\n // make sure the same user ids map to the correct events\n Optional<BiDictionaryJava> userDictionary = Optional.empty();\n\n List<Tuple2<String,IndexedDatasetJava>> indexedDatasets = new ArrayList<>();\n\n // make sure the same user ids map to the correct events for merged user dictionaries\n for(Tuple2<String,JavaPairRDD<String,String>> entry : trainingData.getActions()) {\n\n String eventName = entry._1();\n JavaPairRDD<String,String> eventIDS = entry._2();\n\n // passing in previous row dictionary will use the values if they exist\n // and append any new ids, so after all are constructed we have all user ids in the last dictionary\n IndexedDatasetJava ids = IndexedDatasetJava.apply(eventIDS, userDictionary, sc);\n userDictionary = Optional.of(ids.getRowIds());\n\n // append the transformation to the indexedDatasets list\n indexedDatasets.add(new Tuple2<>(eventName, ids));\n }\n\n List<Tuple2<String,IndexedDatasetJava>> rowAdjustedIds = new ArrayList<>();\n\n // check to see that there are events in primary event IndexedDataset and return an empty list if not\n if(userDictionary.isPresent()){\n\n // now make sure all matrices have identical row space since this corresponds to all users\n // with the primary event since other users do not contribute to the math\n for(Tuple2<String,IndexedDatasetJava> entry : indexedDatasets) {\n String eventName = entry._1();\n IndexedDatasetJava eventIDS = entry._2();\n rowAdjustedIds.add(new Tuple2<>(eventName,\n (new IndexedDatasetJava(eventIDS.getMatrix(),userDictionary.get(),eventIDS.getColIds())).\n newRowCardinality(userDictionary.get().size())));\n }\n }\n\n JavaPairRDD<String, Map<String,JsonAST.JValue>>fieldsRDD =\n trainingData.getFieldsRDD().mapToPair(entry -> new Tuple2<>(\n entry._1(), JavaConverters.mapAsJavaMapConverter(entry._2().fields()).asJava()));\n\n JavaPairRDD<String,HashMap<String,JsonAST.JValue>> fields = fieldsRDD.mapToPair(entry ->\n new Tuple2<>(entry._1(),new HashMap<>(entry._2())));\n\n return new PreparedData(rowAdjustedIds, fields);\n }", "@Test\r\n public void testDataBuilder_Update2(){\r\n \tdataBuild.initAllData();\r\n \tassertTrue(dataBuild.getCPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of CPU's: \" + dataBuild.getCPUList().size());\r\n \tassertTrue(dataBuild.getGPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of GPU's: \" + dataBuild.getGPUList().size());\r\n \tassertTrue(dataBuild.getMBList().size() > 0);\r\n \tSystem.out.println(\"Total # of Motherboards's: \" + dataBuild.getMBList().size());\r\n \tassertTrue(dataBuild.getMEMList().size() > 0);\r\n \tSystem.out.println(\"Total # of Memory Units: \" + dataBuild.getMEMList().size());\r\n \tassertTrue(dataBuild.getPSUList().size() > 0);\r\n \tSystem.out.println(\"Total # of PSU: \" + dataBuild.getPSUList().size());\r\n \tassertTrue(dataBuild.getDISKList().size() > 0);\r\n \tSystem.out.println(\"Total # of Disks: \" + dataBuild.getDISKList().size());\r\n \tDate profileTime = new Date(System.currentTimeMillis());\r\n \tdataBuild.updateProductPricing();\r\n \tSystem.out.println(\"Price Fetching Update Complete in \" + (float)(System.currentTimeMillis() - profileTime.getTime())/1000 + \" seconds\");\r\n }", "public void build() {\r\n // TODO\r\n }", "private void addSampleData() {\r\n }", "public Training() {\n\n }", "@Override\n public void train() {\n actual = observations.toArray();\n min_val_error = Double.MAX_VALUE;\n if (findDecayConstant)\n for (float alpha = 0f; alpha <= 1f; alpha += 0.01f)\n initializeAndTrainModel(alpha);\n else\n initializeAndTrainModel(optAlpha);\n }", "@Override\r\n public void init(){\r\n System.out.println(\"Application inits\");\r\n try {\r\n\t\t// Create file for logging\r\n\t\ttrainFile = new File(trainFileName);\r\n\t\tif(!trainFile.exists()) {\r\n\t\t\tSystem.out.println(\"\\n\\nTrain Log file does not exist. Create...\");\r\n\t\t\ttrainFile.createNewFile();\r\n\t\t\tSystem.out.println(\"\\n\\nTrain Log file created in folder: \" + trainFile.getAbsolutePath());\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"\\n\\nTrain Log file created in folder: \" + trainFile.getAbsolutePath());\r\n\t\t}\r\n\t\ttestFile = new File(testFileName);\r\n\t\tif(!testFile.exists()) {\r\n\t\t\tSystem.out.println(\"\\n\\nTest Log file does not exist. Create...\");\r\n\t\t\ttestFile.createNewFile();\r\n\t\t\tSystem.out.println(\"\\n\\nTest Log file created in folder: \" + testFile.getAbsolutePath());\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"\\n\\nTest Log file created in folder: \" + testFile.getAbsolutePath());\r\n\t\t}\r\n\t\t// Create file for saving config and results \r\n\t\tstatsFile = new File(statsFileName);\r\n\t\tif(!statsFile.exists()) {\r\n\t\t\tSystem.out.println(\"\\n\\nStats file does not exist. Create...\");\r\n\t\t\tstatsFile.createNewFile();\r\n\t\t\tSystem.out.println(\"\\n\\nStats file created in folder: \" + statsFile.getAbsolutePath());\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"\\n\\nStats file created in folder: \" + statsFile.getAbsolutePath());\r\n\t\t}\r\n\t\t\r\n\t\t// Create FileWriters\r\n\t\ttrainWriter = new FileWriter(trainFile, false);\r\n\t\ttestWriter = new FileWriter(testFile, false);\r\n\t\tstatsWriter = new FileWriter(statsFile, false);\r\n\t\t\r\n\t\t\r\n } catch (Exception e) {\r\n System.err.println(\"Error in creating log files\");\r\n e.printStackTrace();\r\n }\r\n \r\n try {\r\n super.init();\r\n trainWriter.write(\"---Initialization of Application.--- \\nBuild model....\");\r\n this.vgg16Transfer = configurate();\r\n trainWriter.write(\"Configuration created successfully!\");\r\n System.out.println(\"Configuration created successfully!\");\r\n vgg16Transfer.init();\r\n trainWriter.write(\"Neural Network initialized successfully!\");\r\n trainWriter.write(vgg16Transfer.summary());\r\n System.out.println(vgg16Transfer.summary()); // Print changes config\r\n } catch (Exception e) {\r\n System.err.println(\"Error in configurating Neural Network\");\r\n e.printStackTrace();\r\n }\r\n\r\n // Load data for training\r\n try {\r\n \ttrainWriter.write(\"\\nStarted loading training data...\");\r\n loadDataTraining(trainDirAddr);\r\n } catch (IOException e) {\r\n System.err.println(\"Error while loading training dataset\");\r\n e.printStackTrace();\r\n }\r\n // Load data for testing\r\n try {\r\n \ttestWriter.write(\"Started loading training data...\");\r\n loadDataTesting(testDirAddr);\r\n } catch (IOException e) {\r\n System.err.println(\"Error while loading testing dataset\");\r\n e.printStackTrace();\r\n }\r\n\r\n /*\r\n * Check, if model is ready - then load it from file, then check it on test iterator.\r\n * Else - train it and save params to the specified file.\r\n */\r\n if(!collectStats) {\r\n try {\r\n \tSystem.out.println(\"\\n Model is already pre-trained. Loading...\");\r\n \ttestWriter.write(\"\\n Model is already pre-trained. Loading...\");\r\n \r\n // Load model\r\n vgg16Transfer = load();\r\n testWriter.write(\"\\n Model loaded successfully!\");\r\n } \r\n catch (IOException e) {\r\n System.err.println(\"Error while writing to log file\");\r\n e.printStackTrace();\r\n }\r\n catch (Exception e) {\r\n System.err.println(\"Error while loading Neural Network\");\r\n e.printStackTrace();\r\n }\r\n }\r\n else {\r\n \ttry {\r\n\t\t\t\ttrainWriter.write(\"\\n Model is not pre-trained.\");\r\n\t\t\t\tSystem.out.println(\"\\n Model is not pre-trained.\");\r\n\t // Train NN\r\n\t train();\r\n\t\t\t\t\r\n\t\t\t} \r\n catch (IOException e) {\r\n System.err.println(\"Error while writing to log file\");\r\n e.printStackTrace();\r\n }\r\n \tcatch (Exception e1) {\r\n\t\t\t\tSystem.err.println(\"Error while training Neural Network\");\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n \r\n // Save NN to file\r\n try {\r\n System.out.println(\"\\n Model is trained. Saving...\");\r\n trainWriter.write(\"\\n Model is trained. Saving...\");\r\n save(vgg16Transfer);\r\n trainWriter.write(\"\\n Model saved successfully!\");\r\n } catch (Exception e) {\r\n System.err.println(\"Error while saving Neural Network\");\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "public void train() {\n\t\tfor (int i = 0; i < numberOfIterations; i++) {\n\t\t\t// for each training record\n\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\t// calculate inputs and outputs\n\t\t\t\tforwardCalculation(records.get(j).input);\n\t\t\t\t// compute errors, update weights and thetas\n\t\t\t\tbackwardCalculation(records.get(j).output);\n\t\t\t}\n//\t\t\tpostprocessOutputs();\n\t\t}\n\t}", "public abstract Instances _getTrainingFromParams(String params);", "protected void addTrainData( int i, int val )\n\t{\n\t\tthis.attribute_list.get( i ).add_data( val );\n\t}", "public void buildModel(){\r\n\t\t\r\n\t\tsuper.buildModel();\r\n\t\t\r\n\t}", "public void train() {\n\n int w;\n double sum = 0, avg;\n double forecast;\n double[][] trainMatrix = new double[trainPoints][2];\n double[][] valMatrix = new double[validationPoints][2];\n actual = observations.toArray();\n\n for (int i = 0; i < step * slices; i++)\n sum += actual[i];\n\n avg = sum / slices;\n\n for (int pos = 0; pos < trainPoints; pos++) {\n sum = 0;\n w = 0;\n\n if (pos >= step * slices) {\n for (int k = pos - step * slices; k < pos; k += step)\n sum += actual[k] * weights[w++];\n forecast = sum / slices;\n } else forecast = avg;\n\n trainMatrix[pos][0] = actual[pos];\n trainMatrix[pos][1] = forecast;\n }\n\n for (int pos = actual.length - validationPoints, j = 0; pos < actual.length; pos++) {\n sum = 0;\n w = 0;\n for (int k = pos - step * slices; k < pos; k += step)\n sum += actual[k] * weights[w++];\n forecast = sum / slices;\n valMatrix[j][0] = actual[pos];\n valMatrix[j][1] = forecast;\n j++;\n }\n double biasness = BiasnessHandler.handleOffset(valMatrix);\n accuracyIndicators.setBias(biasness);\n ModelUtil.computeAccuracyIndicators(accuracyIndicators, trainMatrix, valMatrix, dof);\n errorBound = ErrorBoundsHandler.computeErrorBoundInterval(trainMatrix);\n }", "void trainingBatch(GenerateRandom rnd);", "public interface FmTrainParams<T> extends\n HasLabelCol<T>,\n HasVectorColDefaultAsNull<T>,\n HasWeightColDefaultAsNull<T>,\n HasEpsilonDv0000001<T>,\n HasFeatureColsDefaultAsNull<T>,\n FmCommonTrainParams<T> {\n\n /**\n * @cn-name 迭代数据batch size\n * @cn 数据batch size\n */\n ParamInfo<Integer> MINIBATCH_SIZE = ParamInfoFactory\n .createParamInfo(\"batchSize\", Integer.class)\n .setDescription(\"mini-batch size\")\n\t\t\t.setAlias(new String[]{\"minibatchSize\"})\n .setHasDefaultValue(-1)\n .build();\n\n default Integer getBatchSize() {\n return get(MINIBATCH_SIZE);\n }\n\n default T setBatchSize(Integer value) {\n return set(MINIBATCH_SIZE, value);\n }\n}", "public static void buildTrainData() throws IOException {\n\t\tString negativePath = \"./corpus/20ng-train-all-terms.txt\";\n\t\tString positivePath = \"./corpus/r8-train-all-terms.txt\";\n\t\tString fileout = \"./corpus/trainData\";\n\t\tFileReader fr1 = new FileReader(negativePath);\n\t\tFileReader fr2 = new FileReader(positivePath);\n\t\tFileWriter fw = new FileWriter(fileout);\n\t\tBufferedReader br1 = new BufferedReader(fr1);\n\t\tBufferedReader br2 = new BufferedReader(fr2);\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\tHashtable<String, Integer> map = new Hashtable<String, Integer>();\n\t\tString readoneline;\n\t\twhile (((readoneline = br1.readLine()) != null)) {\n\t\t\tint pos = readoneline.indexOf(\"\\t\");\n\t\t\tString topic = readoneline.substring(0, pos);\n\t\t\tString content = readoneline.substring(pos + 1);\n\n\t\t\tif (!map.containsKey(topic)) {\n\t\t\t\tmap.put(topic, new Integer(1));\n\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbw.write(\"-1\\t\" + result.toString());\n\t\t\t\tbw.newLine();\n\t\t\t} else {\n\t\t\t\tInteger num = map.get(topic);\n\t\t\t\tif (num < 50) {\n\t\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbw.write(\"-1\\t\" + result.toString());\n\t\t\t\t\tbw.newLine();\n\t\t\t\t\tmap.put(topic, num + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\twhile (((readoneline = br2.readLine()) != null)) {\n\t\t\tint pos = readoneline.indexOf(\"\\t\");\n\t\t\tString topic = readoneline.substring(0, pos);\n\t\t\tString content = readoneline.substring(pos + 1);\n\t\t\tif (topic.equals(\"acq\") || topic.equals(\"earn\")\n\t\t\t\t\t|| topic.equals(\"money-fx\") || topic.equals(\"trade\")\n\t\t\t\t\t|| topic.equals(\"interest\")) {\n\t\t\t\tif (!map.containsKey(topic)) {\n\t\t\t\t\tmap.put(topic, new Integer(1));\n\t\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbw.write(\"1\\t\" + result.toString());\n\t\t\t\t\tbw.newLine();\n\t\t\t\t} else {\n\t\t\t\t\tInteger num = map.get(topic);\n\t\t\t\t\tif (topic.equals(\"acq\") && num < 300) {\n\t\t\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbw.write(\"1\\t\" + result.toString());\n\t\t\t\t\t\tbw.newLine();\n\t\t\t\t\t\tmap.put(topic, num + 1);\n\t\t\t\t\t} else if (topic.equals(\"earn\") && num < 450) {\n\t\t\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbw.write(\"1\\t\" + result.toString());\n\t\t\t\t\t\tbw.newLine();\n\t\t\t\t\t\tmap.put(topic, num + 1);\n\t\t\t\t\t} else if (topic.equals(\"money-fx\") && num < 100) {\n\t\t\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbw.write(\"1\\t\" + result.toString());\n\t\t\t\t\t\tbw.newLine();\n\t\t\t\t\t\tmap.put(topic, num + 1);\n\t\t\t\t\t} else if (topic.equals(\"trade\") && num < 100) {\n\t\t\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbw.write(\"1\\t\" + result.toString());\n\t\t\t\t\t\tbw.newLine();\n\t\t\t\t\t\tmap.put(topic, num + 1);\n\t\t\t\t\t} else if (topic.equals(\"interest\") && num < 50) {\n\t\t\t\t\t\tStringBuffer result = new StringBuffer();\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(content, \" \");\n\t\t\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\t\t\tString tmp = st.nextToken();\n\t\t\t\t\t\t\tif (tmp.length() >= 3) {\n\t\t\t\t\t\t\t\tresult.append(tmp + \" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbw.write(\"1\\t\" + result.toString());\n\t\t\t\t\t\tbw.newLine();\n\t\t\t\t\t\tmap.put(topic, num + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbw.flush();\n\t\tbr1.close();\n\t\tbw.close();\n\t\tfw.close();\n\n\t}", "public Builder addTrainingPhrases(\n int index, com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase value) {\n if (trainingPhrasesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureTrainingPhrasesIsMutable();\n trainingPhrases_.add(index, value);\n onChanged();\n } else {\n trainingPhrasesBuilder_.addMessage(index, value);\n }\n return this;\n }", "public Builder clearTrainingDataType() {\n bitField0_ = (bitField0_ & ~0x00000002);\n trainingDataType_ = 0;\n onChanged();\n return this;\n }", "@Override\n\tpublic void trainLocal() throws Exception {\n\t\tdouble [][] input = parameters.getInput();\n\t\tdouble [][] result = ann.getResults(parameters);\n\t\tif (state == preTraining) {//in this case, it is running in the pre-training mode.\n\t\t\tinput = newInput;\n\t\t\tresult = newInput;\n\t\t}\n\t\terr = 0; \n\t\tfor (int i = 0; i < mb; i++) {\t\n\t\t\tif (pos > input.length - 1) {\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\terr = err + ann.runEpoch(input[pos], pos, result[pos], parameters);\n\t\t\tpos++;\n\t\t}\n\t}", "private void train(int[] trainingData, int[] trainingLabel) {\n\t\t// forward Propagation\n\t\tdouble[] activationsOfHiddenLayer = new double[SIZE_HIDDEN_LAYER];\n\t\tdouble[] outputActivations = new double[SIZE_OUTPUT_LAYER];\n\t\tforwardPropagation(trainingData, activationsOfHiddenLayer, outputActivations);\n\t\t// backward Propagation\n\t\tbackwardPropagation(trainingData, trainingLabel, outputActivations, activationsOfHiddenLayer);\n\t}", "public PredictorListener buildPredictor();", "public void initializeModelAndSettings(String modelName, IDataAccessObject dataAccessObject, String[] trainingSettings) throws TotalADSDBMSException, TotalADSGeneralException;", "public Training(String name) {\n this.name = name;\n this.timestamp = System.currentTimeMillis() / 1000;\n }", "void pretrain(DataSetIterator iterator);", "public void startTrainingMode() {\n\t\t\r\n\t}", "Build_Model() {\n\n }", "@Override\n public Data build(String input) {\n return null;\n }", "public com.rpg.framework.database.Protocol.ActionCommand.Builder addDataBuilder() {\n return getDataFieldBuilder().addBuilder(\n com.rpg.framework.database.Protocol.ActionCommand.getDefaultInstance());\n }", "@Override\n\tpublic void train(List<Instance> trainData, int v) {\n\t\t// TODO : Implement\n\t\t// Hint: First, calculate the documents and words counts per label and store\n\t\t// them.\n\t\t// Then, for all the words in the documents of each label, count the number of\n\t\t// occurrences of each word.\n\t\t// Save these information as you will need them to calculate the log\n\t\t// probabilities later.\n\t\t//\n\t\t// e.g.\n\t\t// Assume m_map is the map that stores the occurrences per word for positive\n\t\t// documents\n\t\t// m_map.get(\"catch\") should return the number of \"catch\" es, in the documents\n\t\t// labeled positive\n\t\t// m_map.get(\"asdasd\") would return null, when the word has not appeared before.\n\t\t// Use m_map.put(word,1) to put the first count in.\n\t\t// Use m_map.replace(word, count+1) to update the value\n\t\twordCount = new HashMap<Label, Integer>();\n\t\tdocCount = new HashMap<Label, Integer>();\n\t\t\n\t\tposWords = new HashMap<String, Integer>();\n\t\tnegWords = new HashMap<String, Integer>();\n\t\t\n\t\tgetWordsCountPerLabel(trainData);\n\t\tgetDocumentsCountPerLabel(trainData);\n\t\tthis.v = v;\n\t\t\n\t\tfor(Instance data: trainData) {\n\t\t\tif(data.label.equals(Label.POSITIVE)) {\n\t\t\t\tfor(String word: data.words) {\n\t\t\t\t\tif(posWords.containsKey(word)) {\n\t\t\t\t\t\tint num = posWords.get(word) + 1;\n\t\t\t\t\t\tposWords.put(word, num);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tposWords.put(word, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor(String word: data.words)\n\t\t\t\t\tif(negWords.containsKey(word)) {\n\t\t\t\t\t\tint num = negWords.get(word) + 1;\n\t\t\t\t\t\tnegWords.put(word, num);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tnegWords.put(word, 1);\n\t\t\t}\n\t\t}\n\t}", "public void Build() {\n\t\tSetupGibbsSampling();\n\t\tDoGibbsSampling();\n\t}", "public void PrepareDataset(TweetPreprocessor preprocessor, String dataset)\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n\t\ttry\n {\n System.out.println(\"Preparing Datasets ...\");\n //PrepareAll(preprocessor,dataset);\n\n\t\t\tSystem.out.println(\"Saving work to Database ..\");\n\t\t\tsaveTextOutput(Dataset + \"data_text.csv\", \"d_text\");\n\t\t\tsaveTextOutput(Dataset + \"data_feature.csv\", \"d_feature\");\n\t\t\tsaveTextOutput(Dataset + \"data_complex.csv\", \"d_complex\");\n\t\t\t//saveLexiconOuput(Dataset + \"data_lexicon.csv\",true);\n\t\t\tSystem.out.println(\"Datasets ready for training .%.\");\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public DecisionLearningTree(String training, String test) {\n\t\ttrainingFile = training;\n\t\ttestFile = test;\n\t\treadTrainingFile();\n\t\troot = readDataFile();\n\t}", "boolean hasTrainingDataType();", "public String execute(String input) {\n Data data = Serializer.parse(input, Data.class);\n\n // Step #2: Check the discriminator\n final String discriminator = data.getDiscriminator();\n if (discriminator.equals(Discriminators.Uri.ERROR)) {\n // Return the input unchanged.\n return input;\n }\n\n // Create a series of pipes to process the training files\n ArrayList<Pipe> pipeList = new ArrayList<>();\n pipeList.add(new Input2CharSequence(\"UTF-8\"));\n // Pipes: lowercase, tokenize, remove stopwords, map to features\n pipeList.add( new CharSequenceLowercase() );\n pipeList.add( new CharSequence2TokenSequence(Pattern.compile(\"\\\\p{L}[\\\\p{L}\\\\p{P}]+\\\\p{L}\")) );\n pipeList.add( new TokenSequenceRemoveStopwords());\n pipeList.add( new TokenSequence2FeatureSequence());\n pipe = new SerialPipes(pipeList);\n\n // put the directory of files used for training through the pipes\n String directory = data.getParameter(\"directory\").toString();\n InstanceList instances = readDirectory(new File(directory));\n\n // create a topic to be trained\n int numberOfTopics = (Integer) data.getParameter(\"numTopics\");\n ParallelTopicModel topicModel = new ParallelTopicModel(numberOfTopics);\n topicModel.addInstances(instances);\n\n // train the model\n try {\n topicModel.estimate();\n } catch (IOException e){\n e.printStackTrace();\n return new Data<>(Discriminators.Uri.ERROR,\n \"Unable to train the model\").asJson();\n }\n\n // write topic keys file\n String path = data.getParameter(\"path\").toString();\n String keysName = data.getParameter(\"keysName\").toString();\n int wordsPerTopic = (Integer) data.getParameter(\"wordsPerTopic\");\n try {\n topicModel.printTopWords(new File(path + \"/\" + keysName), wordsPerTopic, false);\n } catch (IOException e) {\n e.printStackTrace();\n return new Data<>(Discriminators.Uri.ERROR,\n \"Unable to write the topic keys to \" + path + \"/\" + keysName).asJson();\n }\n\n // write the .inferencer file\n String inferencerName = data.getParameter(\"inferencerName\").toString();\n try {\n ObjectOutputStream oos =\n new ObjectOutputStream (new FileOutputStream (path + \"/\" + inferencerName));\n oos.writeObject (topicModel.getInferencer());\n oos.close();\n } catch (Exception e) {\n e.printStackTrace();\n return new Data<>(Discriminators.Uri.ERROR,\n \"Unable to write the inferencer to \" + path + \"/\" + inferencerName).asJson();\n }\n\n // Success\n return new Data<>(Discriminators.Uri.TEXT, \"Success\").asJson();\n }", "@Override\n\tpublic void train(DataSet data) {\n\t\tArrayList<Example> examples = data.getCopyWithBias().getData();\n\t\t// initialize both weight vectors with random values between -0.1 ad 0.1\n\t\tinitWeights(examples.size());\n\n\t\t// store outputs from forward calculation for each example\n\t\t// array will have size # examples.\n\t\tArrayList<Double> nodeOutputs = calculateForward(examples);\n\n\t\t// now take error and back-propagate from output to hidden nodes\n\n\t\tfor (int j = 0; j < examples.size(); j++) {\n\t\t\tExample ex = examples.get(j);\n\n\t\t\t// get hidden node outputs for single example\n\t\t\tfor (int num = 0; num < numHidden; num++) {\n\t\t\t\tArrayList<Double> h_outputs = hiddenOutputs.get(num);\n\t\t\t\tdouble vDotH = dotProduct(h_outputs, layerTwoWeights); // calculate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// v dot\n\t\t\t\t// h for\n\t\t\t\t// this node\n\n\t\t\t\tfor (int i = 0; i < numHidden - 1; i++) {\n\t\t\t\t\tdouble oldV = layerTwoWeights.get(i);\n\t\t\t\t\tdouble hk = h_outputs.get(i);\n\t\t\t\t\t// Equation describing line below:\n\t\t\t\t\t// v_k = v_k + eta*h_k(y-f(v dot h)) f'(v dot h)\n\t\t\t\t\tlayerTwoWeights.set(i, oldV + eta * hk * (ex.getLabel() - Math.tanh(vDotH)) * derivative(vDotH));\n\t\t\t\t}\n\n\t\t\t\tSet<Integer> features = ex.getFeatureSet();\n\t\t\t\tIterator<Integer> iter = features.iterator();\n\t\t\t\tArrayList<Double> featureVals = new ArrayList<Double>();\n\t\t\t\tfor (int f : features) {\n\t\t\t\t\tfeatureVals.add((double) f);\n\t\t\t\t}\n\n\t\t\t\t// take that error and back-propagate one more time\n\t\t\t\tfor (int x = 0; x < numHidden; x++) {\n\t\t\t\t\tArrayList<Double> initWeights = hiddenWeights.get(x);\n\t\t\t\t\t// List<Object> features =\n\t\t\t\t\t// Arrays.asList(ex.getFeatureSet().toArray());\n\n\t\t\t\t\t// for (int i = 0; i < featureVals.size()-1; i++) {\n\t\t\t\t\tdouble oldWeight = initWeights.get(j);\n\t\t\t\t\tdouble thisInput = ex.getFeature(featureVals.get(x).intValue());\n\t\t\t\t\t// w_kj = w_kj + eta*xj(input)*f'(w_k dot x)*v_k*f'(v dot\n\t\t\t\t\t// h)(y-f(v dot h))\n\t\t\t\t\tdouble updateWeight = oldWeight + eta * thisInput * derivative(dotProduct(featureVals, initWeights))\n\t\t\t\t\t\t\t* layerTwoWeights.get(x) * derivative(vDotH) * (ex.getLabel() - Math.tanh(vDotH));\n\t\t\t\t\tinitWeights.set(j, updateWeight);\n\t\t\t\t\t// }\n\t\t\t\t\thiddenWeights.set(x, initWeights); // update weights for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// current\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// example\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public static void main(String[] args) throws Exception {\n int numLinesToSkip = 0;\n String delimiter = \",\"; //这是csv文件中的分隔符\n RecordReader recordReader = new CSVRecordReader(numLinesToSkip,delimiter);\n recordReader.initialize(new FileSplit(new ClassPathResource(\"dataSet20170119.csv\").getFile()));\n\n //Second: the RecordReaderDataSetIterator handles conversion to DataSet objects, ready for use in neural network\n\n /**\n * 这是标签(类别)所在列的序号\n */\n int labelIndex = 0; //5 values in each row of the iris.txt CSV: 4 input features followed by an integer label (class) index. Labels are the 5th value (index 4) in each row\n //类别的总数\n int numClasses = 2; //3 classes (types of iris flowers) in the iris data set. Classes have integer values 0, 1 or 2\n\n //一次读取多少条数据。当数据量较大时可以分几次读取,每次读取后就训练。这就是随机梯度下降\n int batchSize = 2000; //Iris data set: 150 examples total. We are loading all of them into one DataSet (not recommended for large data sets)\n\n DataSetIterator iterator = new RecordReaderDataSetIterator(recordReader,batchSize,labelIndex,numClasses);\n //因为我在这里写的2000是总的数据量大小,一次读完,所以一次next就完了。如果分批的话要几次next\n DataSet allData = iterator.next();\n// allData.\n allData.shuffle();\n SplitTestAndTrain testAndTrain = allData.splitTestAndTrain(0.8); //Use 65% of data for training\n\n DataSet trainingData = testAndTrain.getTrain();\n DataSet testData = testAndTrain.getTest();\n //We need to normalize our data. We'll use NormalizeStandardize (which gives us mean 0, unit variance):\n //数据归一化的步骤,非常重要,不做可能会导致梯度中的几个无法收敛\n DataNormalization normalizer = new NormalizerStandardize();\n normalizer.fit(trainingData); //Collect the statistics (mean/stdev) from the training data. This does not modify the input data\n normalizer.transform(trainingData); //Apply normalization to the training data\n normalizer.transform(testData); //Apply normalization to the test data. This is using statistics calculated from the *training* set\n\n\n final int numInputs = 9202;\n int outputNum = 2;\n int iterations = 1000;\n long seed = 142;\n int numEpochs = 50; // number of epochs to perform\n\n log.info(\"Build model....\");\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(seed)\n .optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT)\n .iterations(iterations)\n .activation(Activation.SIGMOID)\n .weightInit(WeightInit.ZERO) //参数初始化的方法,全部置零\n .learningRate(1e-3) //经过测试,这里的学习率在1e-3比较合适\n .regularization(true).l2(5e-5) //正则化项,防止参数过多导致过拟合。2阶范数乘一个比率\n .list()\n\n .layer(0, new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)\n .activation(Activation.SIGMOID)\n .nIn(numInputs).nOut(outputNum).build())\n .backprop(true).pretrain(false)\n .build();\n\n //run the model\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\n model.init();\n model.setListeners(new ScoreIterationListener(100));\n\n\n log.info(\"Train model....\");\n for( int i=0; i<numEpochs; i++ ){\n log.info(\"Epoch \" + i);\n model.fit(trainingData);\n\n //每个epoch结束后立马观察模型估计的效果,方便及早停止\n Evaluation eval = new Evaluation(numClasses);\n INDArray output = model.output(testData.getFeatureMatrix());\n eval.eval(testData.getLabels(), output);\n log.info(eval.stats());\n }\n\n }", "private MyDataInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Data(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder addData(String key, String value)\n {\n data.put(key, value);\n return this;\n }", "public Builder addAllTrainingPhrases(\n java.lang.Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase>\n values) {\n if (trainingPhrasesBuilder_ == null) {\n ensureTrainingPhrasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(values, trainingPhrases_);\n onChanged();\n } else {\n trainingPhrasesBuilder_.addAllMessages(values);\n }\n return this;\n }", "private Input(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public DynamicModelPart buildUsingSeeds() {\n return this.rotateModelPart(this.rotation).addCuboidsUsingSeeds();\n }", "private void trainOnSamples() {\n for (Sample sample : samples) {\n double sum = 0;\n \n for (int i = 0; i < weights.length; i++) { //calculating w1.x1 + w2.x2 + ... \n sum += weights[i] * sample.getP()[i];\n }\n sum += bias; //adding bias to the sum\n\n if (!compareOutput(sum, sample)) { //compare network & target output\n //updating the weights\n for (int i = 0; i < weights.length; i++) {\n weights[i] += sample.getTarget() * sample.getP()[i];\n }\n //updating the bias\n bias += sample.getTarget();\n sample.setValidation(false);\n } else {\n sample.setValidation(true);\n }\n }\n }", "public void train ()\t{\t}", "private void buildGraph()\n\t{\n\t\taddVerticesToGraph();\n\t\taddLinkesToGraph();\n\t}", "public abstract DankSubmissionRequest build();", "List<Training> obtainAllTrainings();", "public void makeInput(ArrayList<double[][]> matricesList, double[][] myEntry, ArrayList<String> labels){\n\t\t int l=0;\t\t \n\t\t \n\t\t for(int i=0;i<matricesList.size();i++){\n\t\t\t double[][] aux = new double[XDIMENSION*YDIMENSION][1];\n\t\t\t for(int y=0;y<YDIMENSION;y++){\n\t\t\t\t for(int x=0;x<XDIMENSION;x++){\t\t\t\t \n\t\t\t\t\t aux[l++][0] = matricesList.get(i)[y][x];\n\t\t\t\t }\n\t\t\t }\t\t\t \n\t\t\t trainingChar.add(labels.get(i));\t \n\t\t\t trainingList.add(aux);\n\t\t\t l=0;\t \t\t \n\t\t }\n\t\t \n\t\t for(int y=0;y<YDIMENSION;y++){\n\t\t\t for(int x=0;x<XDIMENSION;x++){\n\t\t\t\t entryCoord[l++][0] = myEntry[y][x];\n\t\t\t }\n\t\t }\n\t }", "public void trainTest() throws Exception\n\t{\n\t\tSystem.out.println(\"Preprocessing Testset ..\");\n\t\t//String[] dir = new String[]{ Test+\"negative\" , Test+\"positive\"};\n\t\t//FileIterator iterator = new FileIterator(dir,FileIterator.LAST_DIRECTORY);\n\t\tInstanceList instances = new InstanceList(getTextPipe());\n\t\t//instances.addThruPipe(iterator);\n\n\t\tCSVParser parser = new CSVParser(new FileReader(\n\t\t\t\t\"resources/datasets/sentimentanalysis/mallet_test/Sentiment140/sentiment140.csv\"),\n\t\t\t\tCSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tTextPreprocessor preprocessor = new TextPreprocessor(\"resources/datasets/sentimentanalysis/\");\n\t\tint count = 0;\n\t\tfor (CSVRecord record: parser.getRecords())\n\t\t{\n\t\t\tString target;\n\t\t\tif (record.get(\"target\").equals(\"0\"))\n\t\t\t\ttarget = \"negative\";\n\t\t\telse\n\t\t\t\ttarget = \"positive\";\n\t\t\tinstances.addThruPipe(new Instance(preprocessor.getProcessed(record.get(\"tweet\")),target,\n\t\t\t\t\t\"Instance\"+count++,null));\n\n\t\t\tSystem.out.println(count);\n\t\t}\n\n\t\tSystem.out.println(instances.targetLabelDistribution());\n\t\tSystem.out.println(\"Start Training Testset ..\");\n\t\tClassifier nb = new NaiveBayesTrainer().train(instances);\n\t\tSystem.out.println(\"Saving Test Model ..\");\n\t\tsaveModel(nb,Test+\"Model.bin\");\n\t\tsaveinstances(instances,Test+\"Model-Instances.bin\");\n\t\tinstances.getDataAlphabet().dump(new PrintWriter(new File(Test+\"Model-alphabet.dat\")));\n\t}" ]
[ "0.67529875", "0.62905747", "0.6157435", "0.6074209", "0.60212684", "0.58581805", "0.5841464", "0.58342916", "0.5682751", "0.56624204", "0.5620533", "0.5558253", "0.55292106", "0.5508266", "0.5351403", "0.5334326", "0.5315059", "0.52487934", "0.5244484", "0.52422935", "0.5181166", "0.5178352", "0.5159988", "0.51541495", "0.51519096", "0.51345503", "0.51045483", "0.50884473", "0.5085467", "0.5081426", "0.5077026", "0.5050787", "0.502872", "0.502872", "0.5022443", "0.5021913", "0.5020085", "0.5016361", "0.5016181", "0.5010039", "0.50057983", "0.4990875", "0.49721614", "0.49635813", "0.49602222", "0.4954027", "0.4929847", "0.49296582", "0.49216127", "0.49127293", "0.49102557", "0.49070668", "0.48962393", "0.48908684", "0.4890666", "0.48846534", "0.48601285", "0.48573717", "0.4853119", "0.48420167", "0.48405492", "0.48388344", "0.48245233", "0.48165175", "0.48152414", "0.48088247", "0.48057887", "0.48040336", "0.47961292", "0.47857383", "0.47854614", "0.47699854", "0.4768404", "0.4765509", "0.47585076", "0.47518212", "0.4750861", "0.4747637", "0.47444355", "0.47409827", "0.47371134", "0.47357804", "0.47290856", "0.47279057", "0.47259572", "0.47256282", "0.4718805", "0.4717283", "0.4717095", "0.4710436", "0.47046277", "0.4697451", "0.46942908", "0.46846455", "0.46751687", "0.4672978", "0.4672428", "0.46671852", "0.46591756", "0.4657641", "0.46563417" ]
0.0
-1
verify the required parameter 'workspaceId' is set
@SuppressWarnings("rawtypes") private okhttp3.Call addTrainingDataValidateBeforeCall(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback _callback) throws ApiException { if (workspaceId == null) { throw new ApiException("Missing the required parameter 'workspaceId' when calling addTrainingData(Async)"); } // verify the required parameter 'modelId' is set if (modelId == null) { throw new ApiException("Missing the required parameter 'modelId' when calling addTrainingData(Async)"); } // verify the required parameter 'trainingData' is set if (trainingData == null) { throw new ApiException("Missing the required parameter 'trainingData' when calling addTrainingData(Async)"); } okhttp3.Call localVarCall = addTrainingDataCall(workspaceId, modelId, trainingData, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }", "public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }", "@Test\r\n \tpublic void testProjectID() {\n \t\tassertNull(localProject.getGlobalProjectId());\r\n \t}", "public String getWorkspaceId() {\n return workspaceId;\n }", "public String getWorkspaceId() {\n return this.workspaceId;\n }", "public UUID getWorkspaceId() {\n return workspaceId;\n }", "@Test\n\tpublic void getProjectByIdInvalid() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.getProjectById(7L);\n\t}", "@Test\n\tpublic void updateProjectsInvalidId() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.updateProject(7L, project);\n\t}", "@Test\n public void checkExistentWidgetAndParameter() throws Exception {\n\n driver = WidgetUtils.OpenWidgetEditMode(driver, wait, baseUrl, widgetName);\n\n //Step 3 - Check if the parameter exist in 'Settings'\n //Move to the iframe\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='solutionNavigatorAndContentPanel']/div[4]/table/tbody/tr[2]/td/div/div/table/tbody/tr/td/iframe\")));\n WebElement frameCDEDashboard = driver.findElement(By.xpath(\"//div[@id='solutionNavigatorAndContentPanel']/div[4]/table/tbody/tr[2]/td/div/div/table/tbody/tr/td/iframe\"));\n driver.switchTo().frame(frameCDEDashboard);\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='layoutPanelButton']\")));\n assertTrue(driver.findElement(By.xpath(\"//div[@class='layoutPanelButton']\")).isEnabled());\n //Press 'Settings'\n driver.findElement(By.xpath(\"//div[@id='headerLinks']/div[5]/a\")).click();\n wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.xpath(\"//div[@id='popup']\")));\n assertNotNull(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/input\")));\n //The parameter MUST be equal to the one set\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@id='widgetParameters']/div/span\")));\n assertEquals(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/span\")).getText(), paramName);\n //Press on the check box\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@id='widgetParameters']/div/input\")));\n assertTrue(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/input\")).isSelected());\n //Press button 'Cancel'\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='popupbuttons']/button[@id='popup_state0_buttonCancel']\")));\n driver.findElement(By.xpath(\"//div[@class='popupbuttons']/button[@id='popup_state0_buttonCancel']\")).click();\n\n\n //Step 4 - Click on Component Panel and check if the widget is listed\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='componentsPanelButton']\")));\n driver.findElement(By.xpath(\"//div[@class='componentsPanelButton']\")).click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/h3/span\")));\n driver.findElement(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/h3/span\")).click();\n //Getting the element where the widget created is displayed\n WebElement listOfWidgets = driver.findElement(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/div\"));\n //Check if the widget created is listed\n WebElement theWidgetCreated = listOfWidgets.findElement(By.xpath(\"//a[@class='tooltip' and contains(text(),'\" + widgetName + \"')]\"));\n assertNotNull(theWidgetCreated);\n assertEquals(theWidgetCreated.getText(), widgetName);\n\n\n //Step 5 - Click in the widget created and check if the widget is add at Components column and Properties\n theWidgetCreated.click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//table[@id='table-cdfdd-components-components']/tbody/tr[4]/td\")));\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//table[@id='table-cdfdd-components-properties']/tbody/tr[2]/td\")));\n assertEquals(driver.findElement(\n By.xpath(\"//table[@id='table-cdfdd-components-components']/tbody/tr[4]/td\")).getText(),\n widgetName + \" Widget\");\n assertEquals(driver.findElement(\n By.xpath(\"//table[@id='table-cdfdd-components-properties']/tbody/tr[2]/td\")).getText(),\n \"Parameter \" + paramName);\n }", "public void setWorkspace( Integer workspace ) {\n this.workspace = workspace;\n }", "public void setWorkspace(String workspace) {\n this.workspace = workspace;\n }", "protected static Workspace getWorkspace(String workspaceId)\n throws AnaplanAPIException {\n if (workspaceId == null || workspaceId.isEmpty()) {\n LOG.error(\"A workspace ID must be provided\");\n return null;\n }\n Workspace result = null;\n\n if (!noValidateWorkspace) {\n try {\n result = getService().getWorkspace(workspaceId);\n } catch (WorkspaceNotFoundException | UnknownAuthenticationException ignored) {\n }\n }\n if (result == null) {\n WorkspaceData data = new WorkspaceData();\n data.setId(workspaceId);\n try {\n result = new Workspace(getService(), data);\n } catch (UnknownAuthenticationException ignored) {\n }\n }\n return result;\n }", "public BaseMsg verifyProjectInfo(long projectId);", "private boolean assertIdAndVarName() {\r\n\t\tfinal boolean isValidId = assertNotEmpty(cmpCfg.getId(),\r\n\t\t\t\tYValidationAspekt.VIEW_ID_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValidVar = assertNotEmpty(cmpCfg.getVariableName(),\r\n\t\t\t\tYValidationAspekt.VIEW_VAR_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValid = isValidId && isValidVar;\r\n\t\treturn isValid;\r\n\r\n\t}", "private void validatePathParameters(final Integer datacenterId) throws NotFoundException\n {\n if (!service.isAssignedTo(datacenterId, RemoteServiceType.NODE_COLLECTOR))\n {\n throw new NotFoundException(APIError.NOT_ASSIGNED_REMOTE_SERVICE_DATACENTER);\n }\n }", "public void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public boolean isIdExist(int projectId) throws EmployeeManagementException;", "boolean canAccess(String workspaceName) throws NoSuchWorkspaceException, RepositoryException;", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "@Test\n\tpublic void deleteProjectsInvalidID() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.deleteProject(7L);\n\t}", "@Test\n public void testBuildWithValidParametersReturnsProjectExportParametersInstance() {\n // Arrange\n testling.setProjectName(\"validProjectName\")\n .setProjectExportPath(\"validProjectExportPath\");\n\n // Assert\n ProjectExportParameters parameters = testling.build();\n\n // Act\n assertThat(\"Expect not null.\", parameters, is(notNullValue()));\n }", "@Test\n\tpublic void testBuildWithValidParametersReturnsProjectExportParametersInstance() {\n\t\t// Arrange\n\t\ttestling.setProjectName(\"validProjectName\")\n\t\t\t\t.setProjectExportPath(\"validProjectExportPath\");\n\n\t\t// Assert\n\t\tProjectExportParameters parameters = testling.build();\n\n\t\t// Act\n\t\tassertThat(\"Expect not null.\", parameters, is(notNullValue()));\n\t}", "public void testPropFindForNonExistingWorkspace() throws Exception\n {\n String file = TestUtils.getFileName();\n\n ContainerResponse response =\n service(WebDAVMethods.PROPFIND, getPathWS() + \"_\" + file, \"\", null, null);\n assertEquals(HTTPStatus.CONFLICT, response.getStatus());\n }", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "public interface WorkspaceContext {\n\n\n /**\n * Retorna a representação do workspace.\n *\n * @return\n */\n WorkspaceRepresentation getWorkspace();\n\n /**\n * Define o projeto de trabalho.\n *\n * @param projectRepresentation\n */\n void setWorkingProject(ProjectRepresentation projectRepresentation);\n\n\n /**\n * Retorna o projeto de trabalho.\n *\n * @return\n */\n ProjectRepresentation getWorkingProject();\n}", "protected void addWorkspace( String workspaceName ) {\n }", "@Reference\n public void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public void testGetProjectPhasesLong_NotExist() throws Exception {\n Project project = persistence.getProjectPhases(33245);\n assertNull(\"Should return null.\", project);\n }", "protected void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "@Test\n\tpublic void query_for_build_project_is_scoped_to_BuildProject() {\n\t\tEnvironmentContext cx = null;\n\t\ttry {\n\t\t\tcx = new EnvironmentContext();\n\t\t} catch (Exception e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t// And a new repository with that connection\n\t\tBuildProjectRepository repository = new BuildProjectRepositoryApiClient(cx);\n\t\t// When I build the query for story statuses\n\t\tQuery query = repository.buildQueryForAllBuildProjects();\n\t\t// Then the asset type is BuildProject\n\t\tassertEquals(\"BuildProject\", query.getAssetType().getToken());\n\t}", "private void checkAuthSessionId() {\n val auth = config.getString(\"authSessionId\");\n\n checkArgument(auth.length() > 10, \"auth string (sessionId) length is less than or equal to 10!\");\n }", "public boolean checkSelf() {\n\t\tboolean ok = true;\n\t\tif (controller == null) {\n\t\t\tSystem.err.println(\"CRParameters :: controller not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (scenario.length() == 0 && controller.getWorld().getHasScenarios()) {\n\t\t\tSystem.err.println(\"CRParameters :: scenario not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (reportFolderName.length() == 0) {\n\t\t\tSystem.err.println(\"CRParameters :: report folder not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (trialDuration <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: trial duration not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfRuns <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of runs not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfTrials <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of trials not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\treturn ok;\n\t}", "private void validateGetIdPInputValues(String resourceId) throws IdentityProviderManagementException {\n\n if (StringUtils.isEmpty(resourceId)) {\n String data = \"Invalid argument: Identity Provider resource ID value is empty\";\n throw IdPManagementUtil.handleClientException(IdPManagementConstants.ErrorMessage\n .ERROR_CODE_IDP_GET_REQUEST_INVALID, data);\n }\n }", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "public FormValidation doCheckExecutionParameters(@QueryParameter String value, @QueryParameter String agentId) {\n if (StringUtils.isEmpty(value) && StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n JsonObject executionParams = null;\n try {\n executionParams = SerializationHelper.fromJson(value, JsonObject.class);\n\n // In case the value parameter is empty\n if (executionParams == null)\n return FormValidation.ok();\n\n } catch (JsonSyntaxException e) {\n return FormValidation.error(\"Invalid JSON object\");\n }\n\n // In case the user did not select agent from the dropdown and/or in the JSON object, return ok.\n if ((executionParams.get(\"agentId\") != null && StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString())) || StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n // In case the user has selected the same agentId in the dropdown and in the JSON object, no need to show a warning\n if ((executionParams.get(\"agentId\") != null && StringUtils.equals(executionParams.get(\"agentId\").getAsString(), agentId)))\n return FormValidation.ok();\n\n // In case the user has selected two different agents in the dropdown and in the JSON object, show warning\n if (executionParams.get(\"agentId\") != null &&\n !StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString()) &&\n !StringUtils.isEmpty(agentId))\n return FormValidation.warning(\"You've selected an agent and specified a different one in executionParameters. The job will be executed on the selected agent.\");\n\n return FormValidation.ok();\n }", "protected void removeWorkspace( String workspaceName ) {\n }", "public boolean isSetRunId() {\n return this.runId != null;\n }", "@Test\n public void testErrorMsgWhenProjectNameIsEmpty() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String testAccount = \"Account2\";\n createProject.setAccountDropDown(testAccount);\n createProject.clickCreateProject();\n\n //Then\n String expectedMessage = \"Enter a name for your project\";\n String actualMessage = createProject.getProjectTitleMessage();\n softAssert.assertEquals(expectedMessage, actualMessage);\n softAssert.assertEquals(createProject.getProjectNameTextFieldColor(), RED_COLOR);\n softAssert.assertAll();\n }", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "public void setStagingWorkspaceId(Long stagingWorkspaceId) {\n this.stagingWorkspaceId = stagingWorkspaceId;\n }", "@Override\n public String validNameProject(String name, Integer project_Oid) {\n return null;\n }", "public String getWorkspaceName() {\n return workspaceName;\n }", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorWorkspaceNull() {\n PlannedActivity plannedActivity = new PlannedActivity(0,\n new Site(\"factory\", \"area\"), new Typology(\"typology\"),\n \"desctiption\", 0, true, 1, new Procedure(\"name\", \"smp\"), null);\n\n }", "@Test\n public void testWithActiveRunNoRunName() {\n MlflowContext mlflow = setupMlflowContext();\n mlflow.setExperimentId(\"123\");\n when(mockClient.createRun(any(CreateRun.class)))\n .thenReturn(RunInfo.newBuilder().setRunId(\"test-id\").build());\n mlflow.withActiveRun(activeRun -> {\n Assert.assertEquals(activeRun.getId(), \"test-id\");\n });\n verify(mockClient).createRun(any(CreateRun.class));\n verify(mockClient).setTerminated(any(), any());\n }", "public void test_61843() {\n \t\t// create the project and manually give it a settings file\n \t\tfinal String qualifier = getUniqueString();\n \t\tfinal IProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tIFile settingsFile = getFileInWorkspace(project, qualifier);\n \n \t\t// write some property values in the settings file\n \t\tProperties properties = new Properties();\n \t\tproperties.put(\"key\", \"value\");\n \t\tOutputStream output = null;\n \t\ttry {\n \t\t\tFile file = settingsFile.getLocation().toFile();\n \t\t\tfile.getParentFile().mkdirs();\n \t\t\toutput = new BufferedOutputStream(new FileOutputStream(file));\n \t\t\tproperties.store(output, null);\n \t\t} catch (FileNotFoundException e) {\n \t\t\tfail(\"1.0\", e);\n \t\t} catch (IOException e) {\n \t\t\tfail(\"1.1\", e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (output != null)\n \t\t\t\t\toutput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\t// ignore\n \t\t\t}\n \t\t}\n \n \t\t// add a log listener to ensure that no errors are reported silently\n \t\tILogListener logListener = new ILogListener() {\n \t\t\tpublic void logging(IStatus status, String plugin) {\n \t\t\t\tThrowable exception = status.getException();\n \t\t\t\tif (exception == null || !(exception instanceof CoreException))\n \t\t\t\t\treturn;\n \t\t\t\tif (IResourceStatus.WORKSPACE_LOCKED == ((CoreException) exception).getStatus().getCode())\n \t\t\t\t\tfail(\"3.0\");\n \t\t\t}\n \t\t};\n \n \t\t// listener to react to changes in the workspace\n \t\tIResourceChangeListener rclistener = new IResourceChangeListener() {\n \t\t\tpublic void resourceChanged(IResourceChangeEvent event) {\n \t\t\t\tnew ProjectScope(project).getNode(qualifier);\n \t\t\t}\n \t\t};\n \n \t\t// add the listeners\n \t\tPlatform.addLogListener(logListener);\n \t\tgetWorkspace().addResourceChangeListener(rclistener, IResourceChangeEvent.POST_CHANGE);\n \n \t\ttry {\n \t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"4.0\", e);\n \t\t} finally {\n \t\t\tPlatform.removeLogListener(logListener);\n \t\t\tgetWorkspace().removeResourceChangeListener(rclistener);\n \t\t}\n \t}", "@Test\n public void getComputerBuildByIdentifier() {\n Iterable<ComputerBuild> computerBuilds = computerBuildService.getAllComputerBuildsFromUser(USER_NAME_TO_TEST_OWNERSHIP_ENDPOINTS);\n ComputerBuild retrievedBuild = computerBuilds.iterator().next();\n assertNotNull(retrievedBuild);\n\n ComputerBuild foundBuild = computerBuildService.getComputerBuildByBuildIdentifier(retrievedBuild.getBuildIdentifier());\n\n assertNotNull(foundBuild);\n assertEquals(retrievedBuild.getBuildIdentifier(), foundBuild.getBuildIdentifier());\n assertEquals(retrievedBuild.getUser().getUsername(), foundBuild.getUser().getUsername());\n\n }", "@Test\n public void testValidToken() {\n try {\n int coachId = authBO.getUserIdAndValidateToken(\"thisisaworkingtoken\");\n Assert.assertTrue(coachId == 1);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "String checkIfProjectExists(String projectKey, String projectName);", "@Test\n public void test_access_to_modify_team_success() {\n try {\n Assert.assertTrue(authBO.hasAccessToModifyTeam(1, 1));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "@Override\r\n protected CommandStatus<StclContext, PStcl> verifyContext(CommandContext<StclContext, PStcl> cmdContext, PStcl self) {\n _name = getParameter(cmdContext, 1, null);\r\n if (StringUtils.isEmpty(_name)) {\r\n return error(cmdContext, self, Status.NO_NAME_DEFINED, \"no name to copy directory\");\r\n }\r\n\r\n // other verification\r\n return super.verifyContext(cmdContext, self);\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 }", "private boolean configurationInWorkspace(URL url) {\n \t\treturn true;\n \t}", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExists() {\n assertThrows(NotFoundException.class, () -> projectService.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Test\n public void testNoCoverageId() throws Exception {\n MockHttpServletResponse response = getAsServletResponse(\"wcs?service=WCS&version=2.0.1&request=GetCoverage\");\n checkOws20Exception(response, 400, \"MissingParameterValue\", \"coverageId\");\n }", "void verifyOrCreateReport(String reportId);", "public void testGetProjectByNameDoesNotExist() throws Exception {\r\n ProjectServiceRemote projectService = lookupProjectServiceRemoteWithUserRole();\r\n\r\n // 1 is the user id\r\n try {\r\n projectService.getProjectByName(\"xxxxx\", 1);\r\n fail(\"ProjectNotFoundFault expected.\");\r\n } catch (ProjectNotFoundFault e) {\r\n // expected\r\n }\r\n }", "@Test\n public void testFailureWithoutObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, \"\", 400);\n }", "private boolean ensureWorkspaceExists(String name, Credentials credentials) {\r\n\t\tSession sess = null;\r\n\t\ttry {\r\n\t\t\tsess = repository.login(credentials);\r\n\t\t\tString[] wsnames = sess.getWorkspace()\r\n\t\t\t\t\t.getAccessibleWorkspaceNames();\r\n\t\t\tif (inArr(name, wsnames)) {\r\n\t\t\t\t// workspace exists\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tlog.info(\" Creating Repository workspace \" + name);\r\n\t\t\t\tsess.getWorkspace().createWorkspace(name);\r\n\t\t\t}\r\n\t\t} catch (LoginException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t} catch (RepositoryException e) {\r\n\t\t\t// ugly check, we are getting something like workspace 'wsname'\r\n\t\t\t// already exists.\r\n\t\t\tif (e.getMessage().indexOf(\"already exists\") > 0) {\r\n\t\t\t\t// ignore exteption\r\n\t\t\t} else {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif (sess != null) {\r\n\t\t\t\tsess.logout();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Test\n public void allWorkspacesTest() throws ApiException {\n List<Workspace> response = api.allWorkspaces();\n\n // TODO: test validations\n }", "@Test\n public void testFailureWithNonexistantObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, reqFactory.createIdApiRequest(Types.PACKAGE).execute(hc), 404);\n }", "void checkStationId(int lineCount, String testStationId) {\n if (!stationId.equals(testStationId)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Station Id does not match previous station record \" +\n stationId + \": \" + testStationId);\n } // if (!stationId.equals(station.getStationId(\"\")))\n }", "public String getWorkspace() {\n return workspace;\n }", "protected void verifyRequestInputModelNone( String apiName)\n {\n // Given...\n OpenAPI api = readApi( apiName);\n\n // When...\n SystemInputDef inputDef = TcasesOpenApi.getRequestInputModel( api);\n\n // Then...\n assertThat( apiName + \" input model\", inputDef, is( nullValue()));\n }", "@Test\n public void testNeighborSystemId() throws Exception {\n isisNeighbor.setNeighborSystemId(systemId);\n result1 = isisNeighbor.neighborSystemId();\n assertThat(result1, is(systemId));\n }", "protected void validateCredentials() throws BittrexApiException {\n String humanMessage = \"Please check environment variables or VM options\";\n if (Strings.isNullOrEmpty(this.getApiKey()))\n throw new BittrexApiException(\"Missing BITTREX_API_KEY. \" + humanMessage);\n if (Strings.isNullOrEmpty(this.getSecretKey()))\n throw new BittrexApiException(\"Missing BITTREX_SECRET_KEY. \" + humanMessage);\n }", "void commit(String workspace);", "@Test\n\tpublic void testGetBuildVersion() {\n\t\tString buildVersion = rmitAnalyticsModel.getBuildVersion();\n\t\tAssert.assertNotNull(buildVersion);\n\t\tAssert.assertTrue(buildVersion.isEmpty());\n\t}", "@Test\n public void enableDebuggerTest() {\n String customerId = null;\n // Void response = api.enableDebugger(customerId);\n\n // TODO: test validations\n }", "public Workspace getWorkspace() {\n return workspace;\n }", "public void checkParameters() {\n }", "private void verifyWorkspace(long[][][] ids) {\n ArrayList<Long> allScreens = LauncherModel.loadWorkspaceScreensDb(getMockContext());\n assertEquals(ids.length, allScreens.size());\n int total = 0;\n\n for (int i = 0; i < ids.length; i++) {\n long screenId = allScreens.get(i);\n for (int y = 0; y < ids[i].length; y++) {\n for (int x = 0; x < ids[i][y].length; x++) {\n long id = ids[i][y][x];\n\n Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI,\n new String[]{LauncherSettings.Favorites._ID},\n \"container=-100 and screen=\" + screenId +\n \" and cellX=\" + x + \" and cellY=\" + y, null, null, null);\n if (id == -1) {\n assertEquals(0, c.getCount());\n } else {\n assertEquals(1, c.getCount());\n c.moveToNext();\n assertEquals(id, c.getLong(0));\n total++;\n }\n c.close();\n }\n }\n }\n\n // Verify that not other entry exist in the DB.\n Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI,\n new String[]{LauncherSettings.Favorites._ID},\n \"container=-100\", null, null, null);\n assertEquals(total, c.getCount());\n c.close();\n }", "@Override\r\n\tpublic Workspace getWorkspace() {\n\t\treturn null;\r\n\t}", "@Test\n public void postTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.postTemplateProgrammerProject(request);\n\n // TODO: test validations\n }", "private void validateITResource() {\n // TODO Auto-generated method stub\n \n }", "public static boolean isValidDivisionId(int divisionId) {\n return divisionId > 0 || divisionId == DIVISION_TEST || divisionId == DIVISION_GLOBAL;\n }", "private void assert_validPID(int pid) throws IllegalArgumentException{\n\t\tif(!validPID(pid)){\n\t\t\tthrow new IllegalArgumentException(\"Tried to get a property from layer '\"+ name\n\t\t\t\t\t+\"' with an invalid property ID: \"+pid);\n\t\t}\n\t}", "private boolean checkInstanceLocation(boolean show_login,\n final boolean force_prompt,\n URL default_workspace, String username, String password,\n Map<String, Object> parameters)\n {\n // Was \"-data @none\" specified on command line?\n final Location instanceLoc = Platform.getInstanceLocation();\n\n if (instanceLoc == null)\n {\n MessageDialog.openError(null,\n \"No workspace\", //$NON-NLS-1$\n \"Cannot run without a workspace\"); //$NON-NLS-1$\n return false;\n }\n\n // -data \"/some/path\" was provided...\n if (instanceLoc.isSet())\n {\n try\n { // Lock\n if (instanceLoc.lock())\n return true;\n // Two possibilities:\n // 1. directory is already in use\n // 2. directory could not be created\n final File ws_dir = new File(instanceLoc.getURL().getFile());\n if (ws_dir.exists())\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_InUseErrorTitle,\n NLS.bind(org.csstudio.platform.workspace.Messages.Workspace_InUseError,\n ws_dir.getCanonicalPath()));\n else\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_DirectoryErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_DirectoryError);\n }\n catch (IOException ex)\n {\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_LockErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_LockError\n + ex.getMessage());\n }\n return false;\n }\n\n // -data @noDefault or -data not specified, prompt and set\n if (default_workspace == null)\n default_workspace = instanceLoc.getDefault();\n\n final WorkspaceInfo workspace_info =\n new WorkspaceInfo(default_workspace, !force_prompt);\n\n // Prompt in any case? Or did user decide to be asked again?\n boolean show_Workspace = force_prompt | workspace_info.getShowDialog();\n\n //if no user name provided, display last login user.\n if(username == null)\n username = WorkspaceIndependentStore.readLastLoginUser();\n\n //initialize startupHelper\n StartupHelper startupHelper = new StartupHelper(null, force_prompt,\n workspace_info, username, password, show_login, show_Workspace);\n\n while (true)\n {\n startupHelper.setShow_Login(show_login);\n startupHelper.setShow_Workspace(show_Workspace);\n\n if (show_Workspace || show_login)\n {\n if (! startupHelper.openStartupDialog())\n return false; // canceled\n\n //get user name and password from startup dialog\n if(show_login) {\n username = startupHelper.getUserName();\n password = startupHelper.getPassword();\n }\n }\n // In case of errors, we will have to ask the workspace,\n // but don't bother to ask user name and password again.\n show_Workspace = true;\n show_login = false;\n\n try\n {\n // the operation will fail if the url is not a valid\n // instance data area, so other checking is unneeded\n URL workspaceUrl = new URL(\"file:\" + workspace_info.getSelectedWorkspace()); //$NON-NLS-1$\n if (instanceLoc.set(workspaceUrl, true)) // set & lock\n {\n workspace_info.writePersistedData();\n parameters.put(WORKSPACE, workspaceUrl);\n return true;\n }\n }\n catch (Exception ex)\n {\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_GenericErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_GenericError + ex.getMessage());\n return false;\n }\n // by this point it has been determined that the workspace is\n // already in use -- force the user to choose again\n show_login = false;\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_InUseErrorTitle,\n NLS.bind(org.csstudio.platform.workspace.Messages.Workspace_InUseError,\n workspace_info.getSelectedWorkspace()));\n }\n }", "@Test\n void testNonEmptyConstructor() {\n assertNotNull(isLockedRequest2);\n assertTrue(isLockedRequest2.getToken().equals(token)\n && isLockedRequest2.getId() == id);\n }", "@Then(\"^Validate customer id is created$\")\r\n\tpublic void validate_customer_id_is_created() throws Throwable {\n\t\tAssert.assertTrue(response.jsonPath().get(\"id\").equals(new PropertFileReader().getTempData(\"custId\")));\r\n\t\t\r\n\t}", "public Workspace build() {\n if (properties == null) {\n properties = new HashMap<>();\n }\n if (workspaceId == null || workspaceStage == null) {\n throw new MissingRequiredFieldsException(\"Workspace requires id and stage\");\n }\n return new Workspace(\n workspaceId,\n displayName,\n description,\n spendProfileId,\n properties,\n workspaceStage,\n gcpCloudContext);\n }", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExistsMockVersion() {\n assertThrows(NotFoundException.class, () -> projectServiceMock.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Override\r\n\tpublic void testInvalidId() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testInvalidId();\r\n\t\t}\r\n\t}", "@Test\n public void given_devEnvironmentWithPathVariable_when_callEndPointUpdateStudent_then_returnStatus200() throws Exception {\n\n Mockito.when(studentRepo.findById(ArgumentMatchers.anyLong()))\n .thenReturn(Optional.of(STUDENT));\n\n RequestBuilder request = MockMvcRequestBuilders\n .delete(\"/students/1\")\n .accept(MediaType.APPLICATION_JSON_VALUE)\n .contentType(MediaType.APPLICATION_JSON_VALUE);\n\n mockMvc.perform(request)\n .andExpect(status().isOk())\n .andDo(MockMvcResultHandlers.print())\n .andReturn();\n\n }", "@Test\r\n\tpublic void Test_ID() {\r\n\t\tResponse resp = given().\r\n\t\t\t\tparam(\"nasa_id\", \"PIA12235\").\r\n\t\t\t\twhen().\r\n\t\t\t\tget(endpoint);\r\n\t\t\t\tSystem.out.println(resp.getStatusCode());\r\n\t\t\t\tAssert.assertEquals(resp.getStatusCode(), 200);\r\n\t}", "@Test(expected = CopilotServiceInitializationException.class)\n public void testCheckNullForInjectedValueFailure() {\n Helper.checkNullForInjectedValue(null, \"obj\");\n }", "@Test\n public void commandIdTest() {\n // TODO: test commandId\n }", "static void checkId(final long id, final String paramName) {\r\n if (id <= 0) {\r\n throw new IllegalArgumentException(\"The '\" + paramName\r\n + \"' should be above 0.\");\r\n }\r\n }", "public Long getStagingWorkspaceId() {\n return stagingWorkspaceId;\n }", "@Test\n public void cityNotNull()\n {\n assertNotNull(_city);\n }", "public void requirePatientId() {\n hasPatientIdParam = true;\n }", "@Override\n\tpublic boolean hasParameter(String id) {\n\t\treturn false;\n\t}", "@When(\"^I enter valid credentia ls$\")\n public void iEnterValidCredentials() throws Throwable {\n throw new PendingException();\n }", "private void checkLegal(int glId)\n {\n if (glId == GL2.GL_POLYGON_MODE || glId == GL2.GL_COLOR_MATERIAL_PARAMETER)\n return;\n if (GLState.TEXTURE_GROUP <= glId && glId < GLState.TEXTURE_GROUP + GLState.TEXTURE_GROUP_SIZE)\n return;\n throw new IllegalArgumentException(\"GLStateComponentII: unknown glId: \" + glId);\n }", "@Test\n\tpublic void testValidateSurveyIds() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyIds(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\tfor(String simpleValidList : ParameterSets.getSimpleValidLists()) {\n\t\t\t\ttry {\n\t\t\t\t\tSurveyResponseValidators.validateSurveyIds(simpleValidList);\n\t\t\t\t}\n\t\t\t\tcatch(ValidationException e) {\n\t\t\t\t\tfail(\"A valid list failed validation.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test\n public void putTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.putTemplateProgrammerProject(request);\n\n // TODO: test validations\n }", "public void testCheckinProjectFlags() {\n String[] sTestCmdLine = { \"soscmd\", \"-command\", \"CheckInProject\",\n \"-recursive\", \"-server\", SOS_SERVER_PATH, \"-name\", SOS_USERNAME,\n \"-password\", \"\", \"-database\", VSS_SERVER_PATH , \"-project\",\n \"$\"+VSS_PROJECT_PATH, \"\", \"\", \"-soshome\", SOS_HOME, \"-workdir\",\n project.getBaseDir().getAbsolutePath(), \"-log\", SRC_COMMENT, };\n\n // Set up a SOSCheckin task\n sosCheckin.setProject(project);\n sosCheckin.setVssServerPath(VSS_SERVER_PATH);\n sosCheckin.setSosServerPath(SOS_SERVER_PATH);\n sosCheckin.setProjectPath(VSS_PROJECT_PATH);\n sosCheckin.setComment(SRC_COMMENT);\n sosCheckin.setUsername(SOS_USERNAME);\n sosCheckin.setSosHome(SOS_HOME);\n sosCheckin.setNoCache(true);\n sosCheckin.setNoCompress(false);\n sosCheckin.setVerbose(false);\n sosCheckin.setRecursive(true);\n\n commandline = sosCheckin.buildCmdLine();\n String[] sGeneratedCmdLine = commandline.getCommandline();\n\n int i = 0;\n while (i < sTestCmdLine.length) {\n try {\n assertEquals(\"CheckInProject arg # \" + String.valueOf(i),\n sTestCmdLine[i],\n sGeneratedCmdLine[i]);\n i++;\n } catch (ArrayIndexOutOfBoundsException aioob) {\n fail(\"CheckInProject missing arg\");\n }\n\n }\n if (sGeneratedCmdLine.length > sTestCmdLine.length) {\n // We have extra elements\n fail(\"CheckInProject extra args\");\n }\n }", "public void validate(String id, String pw) throws RemoteException;", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {listProjects} integration test with mandatory parameters.\")\n public void testListProjectsWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:listProjects\");\n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_listProjects_mandatory.json\");\n \n connectorProperties.setProperty(\"projectId\", esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0)\n .getString(\"id\"));\n \n final String apiEndPoint = apiRequestUrl + \"/projects\";\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"page\"), apiRestResponse.getBody().getString(\"page\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"pageSize\"), apiRestResponse.getBody().getString(\n \"pageSize\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0).getString(\"id\"),\n apiRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0).getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"totalItems\"), apiRestResponse.getBody().getString(\n \"totalItems\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONArray(\"items\").length(), apiRestResponse.getBody()\n .getJSONArray(\"items\").length());\n \n }" ]
[ "0.6578984", "0.6380645", "0.62011063", "0.5977198", "0.59380245", "0.5839845", "0.5567125", "0.544816", "0.52776176", "0.52677304", "0.51942354", "0.516205", "0.5121242", "0.5090792", "0.50634235", "0.50583386", "0.50574636", "0.5034166", "0.4995936", "0.4972392", "0.49723262", "0.49573296", "0.49191588", "0.4918354", "0.49054942", "0.49048936", "0.4886649", "0.48794204", "0.48570976", "0.48486924", "0.48486924", "0.48308778", "0.48079875", "0.4805743", "0.48048726", "0.47980785", "0.47976282", "0.4765162", "0.47632936", "0.47518703", "0.47493088", "0.47485796", "0.47444603", "0.47357145", "0.47052163", "0.47051764", "0.47026604", "0.46970895", "0.4696536", "0.46882707", "0.4684677", "0.466351", "0.46634975", "0.46633705", "0.46630138", "0.46527985", "0.465145", "0.4642307", "0.4640025", "0.46380213", "0.4636017", "0.46344888", "0.46284893", "0.46203873", "0.4618612", "0.46117023", "0.46025905", "0.4596442", "0.45956445", "0.45863536", "0.45715305", "0.45687637", "0.45670655", "0.4558963", "0.45546597", "0.45470253", "0.45362815", "0.4535131", "0.4533155", "0.45226875", "0.45194167", "0.451874", "0.45114574", "0.45113942", "0.45096022", "0.45087627", "0.450685", "0.4506745", "0.44989336", "0.4492964", "0.44871423", "0.44836402", "0.4483347", "0.44820198", "0.44794294", "0.4478113", "0.4476193", "0.4475997", "0.44697672", "0.44692692", "0.4466805" ]
0.0
-1
Add a training data object for a model Create a new model in the workspace identified in the workspaceId path paramter.
public ModelApiResponse addTrainingData(String workspaceId, String modelId, TrainingData trainingData) throws ApiException { ApiResponse<ModelApiResponse> localVarResp = addTrainingDataWithHttpInfo(workspaceId, modelId, trainingData); return localVarResp.getData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public okhttp3.Call addTrainingDataAsync(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = addTrainingDataValidateBeforeCall(workspaceId, modelId, trainingData, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public okhttp3.Call addTrainingDataCall(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = trainingData;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models/{modelId}/data\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()))\n .replaceAll(\"\\\\{\" + \"modelId\" + \"\\\\}\", localVarApiClient.escapeString(modelId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\", \"multipart/form-data\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public ModelContainer importModel(String modelData) throws OWLOntologyCreationException {\n\t\t// load data from String\n\t\tfinal OWLOntologyManager manager = graph.getManager();\n\t\tfinal OWLOntologyDocumentSource documentSource = new StringDocumentSource(modelData);\n\t\tOWLOntology modelOntology;\n\t\tfinal Set<OWLParserFactory> originalFactories = removeOBOParserFactories(manager);\n\t\ttry {\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tcatch (OWLOntologyAlreadyExistsException e) {\n\t\t\t// exception is thrown if there is an ontology with the same ID already in memory \n\t\t\tOWLOntologyID id = e.getOntologyID();\n\t\t\tIRI existingModelId = id.getOntologyIRI().orNull();\n\n\t\t\t// remove the existing memory model\n\t\t\tunlinkModel(existingModelId);\n\n\t\t\t// try loading the import version (again)\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tfinally {\n\t\t\tresetOBOParserFactories(manager, originalFactories);\n\t\t}\n\t\t\n\t\t// try to extract modelId\n\t\tIRI modelId = null;\n\t\tOptional<IRI> ontologyIRI = modelOntology.getOntologyID().getOntologyIRI();\n\t\tif (ontologyIRI.isPresent()) {\n\t\t\tmodelId = ontologyIRI.get();\n\t\t}\n\t\tif (modelId == null) {\n\t\t\tthrow new OWLOntologyCreationException(\"Could not extract the modelId from the given model\");\n\t\t}\n\t\t// paranoia check\n\t\tModelContainer existingModel = modelMap.get(modelId);\n\t\tif (existingModel != null) {\n\t\t\tunlinkModel(modelId);\n\t\t}\n\t\t\n\t\t// add to internal model\n\t\tModelContainer newModel = addModel(modelId, modelOntology);\n\t\t\n\t\t// update imports\n\t\tupdateImports(newModel);\n\t\t\n\t\treturn newModel;\n\t}", "public void addModel(Model aModel) throws IOException {\n addModel(aModel, null);\n }", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call addTrainingDataValidateBeforeCall(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling addTrainingData(Async)\");\n }\n \n // verify the required parameter 'modelId' is set\n if (modelId == null) {\n throw new ApiException(\"Missing the required parameter 'modelId' when calling addTrainingData(Async)\");\n }\n \n // verify the required parameter 'trainingData' is set\n if (trainingData == null) {\n throw new ApiException(\"Missing the required parameter 'trainingData' when calling addTrainingData(Async)\");\n }\n \n\n okhttp3.Call localVarCall = addTrainingDataCall(workspaceId, modelId, trainingData, _callback);\n return localVarCall;\n\n }", "public okhttp3.Call trainModelCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models/{modelId}/train\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()))\n .replaceAll(\"\\\\{\" + \"modelId\" + \"\\\\}\", localVarApiClient.escapeString(modelId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public ModelApiResponse createModel(String workspaceId, Model model) throws ApiException {\n ApiResponse<ModelApiResponse> localVarResp = createModelWithHttpInfo(workspaceId, model);\n return localVarResp.getData();\n }", "public void addModel(Model aModel, OpenSimContext context) throws IOException {\n OpenSimContext dContext = context==null?new OpenSimContext(aModel.initSystem(), aModel):context;\n models.add(aModel);\n mapModelsToContexts.put(aModel, dContext);\n SingleModelGuiElements newModelGuiElements = new SingleModelGuiElements(aModel);\n mapModelsToGuiElements.put(aModel, newModelGuiElements);\n setChanged();\n ModelEvent evnt = new ModelEvent(aModel, ModelEvent.Operation.Open);\n notifyObservers(evnt); \n setCurrentModel(aModel, false);\n //ExplorerTopComponent.addFinalEdit();\n }", "void setTrainData(DataModel trainData);", "public ApiResponse<ModelApiResponse> addTrainingDataWithHttpInfo(String workspaceId, String modelId, TrainingData trainingData) throws ApiException {\n okhttp3.Call localVarCall = addTrainingDataValidateBeforeCall(workspaceId, modelId, trainingData, null);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n return localVarApiClient.execute(localVarCall, localVarReturnType);\n }", "public okhttp3.Call createModelAsync(String workspaceId, Model model, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public okhttp3.Call createModelCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = model;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call trainModelValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling trainModel(Async)\");\n }\n \n // verify the required parameter 'modelId' is set\n if (modelId == null) {\n throw new ApiException(\"Missing the required parameter 'modelId' when calling trainModel(Async)\");\n }\n \n\n okhttp3.Call localVarCall = trainModelCall(workspaceId, modelId, _callback);\n return localVarCall;\n\n }", "private void readModelAndTrain(boolean readExistingModel,\n\t\t\tbyte[] trainingDataFile) {\n\t\tInputStream dataIn = null;\n\t\ttry {\n\t\t\tObjectStream<DocumentSample> sampleStream = new DocumentSampleStream(\n\t\t\t\t\tnew PlainTextByLineStream(new FileInputStream(\n\t\t\t\t\t\t\tcreateModelInput(INPUT_TWEETS_ORIG_TXT)), \"UTF-8\"));\n\t\t\tsetModel(DocumentCategorizerME.train(\"en\", sampleStream,\n\t\t\t\t\tCUTOFF_FREQ, TRAINING_ITERATIONS));\n\t\t\tserialize(model);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (dataIn != null) {\n\t\t\t\ttry {\n\t\t\t\t\tdataIn.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call createModelValidateBeforeCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling createModel(Async)\");\n }\n \n // verify the required parameter 'model' is set\n if (model == null) {\n throw new ApiException(\"Missing the required parameter 'model' when calling createModel(Async)\");\n }\n \n\n okhttp3.Call localVarCall = createModelCall(workspaceId, model, _callback);\n return localVarCall;\n\n }", "public WorkingMemory createInferredModel(IRI modelId) {\n\t\tSet<Statement> statements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(getModelAbox(modelId))).asJava();\n\t\tSet<Triple> triples = statements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet());\n\t\ttry {\n\t\t\t// Using model's ontology IRI so that a spurious different ontology declaration triple isn't added\n\t\t\tOWLOntology schemaOntology = OWLManager.createOWLOntologyManager().createOntology(getOntology().getRBoxAxioms(Imports.INCLUDED), modelId);\n\t\t\tSet<Statement> schemaStatements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(schemaOntology)).asJava();\n\t\t\ttriples.addAll(schemaStatements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet()));\n\t\t} catch (OWLOntologyCreationException e) {\n\t\t\tLOG.error(\"Couldn't add rbox statements to data model.\", e);\n\t\t}\n\t\treturn getRuleEngine().processTriples(JavaConverters.asScalaSetConverter(triples).asScala());\n\t}", "public void initializeModelAndSettings(String modelName, IDataAccessObject dataAccessObject, String[] trainingSettings) throws TotalADSDBMSException, TotalADSGeneralException;", "public okhttp3.Call trainModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = trainModelValidateBeforeCall(workspaceId, modelId, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "void storeTraining(Training training);", "void create(Model model) throws Exception;", "public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "public void train(SieveDocuments trainingInfo) {\r\n\t\t// no training\r\n\t}", "@Test\n public void addModelData() {\n new FactoryInitializer()\n .initialize(\n ((tr, ev, is, np, md) -> new ResNetConv2DFactory(tr,ev,is,np,md).addModelData(new ArrayList<>()))\n );\n }", "public ModelApiResponse trainModel(String workspaceId, String modelId) throws ApiException {\n ApiResponse<ModelApiResponse> localVarResp = trainModelWithHttpInfo(workspaceId, modelId);\n return localVarResp.getData();\n }", "private Response performDT_training(String model_name, String data) {\n \tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MMM-yyyy_HmsS\");\n \tJSONObject summary = new JSONObject();\n \t\n \tif(model_name.trim().length()< 1) {\n \t\tmodel_name = \"DTree_Model_\" + sdf.format(Calendar.getInstance().getTime());\n \t}\n \t\n \t// check if the model name is already present\n \tif(utilObj.isModelNameUnique(model_name)) {\n \t\tsummary = new JSONObject();\n \t\tsummary.put(\"Error\", \"Duplicate model name : \" + model_name);\n \t\tlog.error(\"Duplicate model name\");\n \t\treturn Response.status(200).entity(summary.toString()).build();\n \t}\n \t\n \tlog.info(String.format(\"model_Name: %s\", model_name ));\n \tString modelFilePath = Util.CurrentDir+\"/models/\"+model_name;\n \t\n \ttry {\n\n \t\t// write the data to the disk\n \t\tfinal String inputFileName = \"TrainData_DT_\" + sdf.format(Calendar.getInstance().getTime()) + \".csv\";\n \t\tfinal String inputFilePath = Util.CurrentDir+\"/\"+Util.DataDir+\"/\"+inputFileName;\n \t\tFileWriter writer = new FileWriter(inputFilePath);\n \t\twriter.write(data);\n \t\twriter.flush();\n \t\twriter.close();\n \t\tlog.info(\"File created : \" + inputFilePath);\n \t\t\n \t\tString cmd = String.format(\"Rscript \"+Util.CurrentDir+\"/Rscripts/DTTraining.R %s %s \",inputFilePath, model_name);\n \t\tlog.info(cmd);\n\t \tProcess pr = Runtime.getRuntime().exec(cmd);\n\t\t\t\n\t\t\tBufferedReader results = new BufferedReader(new InputStreamReader(pr.getInputStream()));\n\t\t\tString line = null;\n\t\t\t\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\twhile((line=results.readLine()) != null) {\n\t\t\t\tbuf.append(line);\n\t\t\t\tif(line.trim().isEmpty()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine().trim();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tsummary.put(\"summary\", line);\n\t\t\t\t} \n\t\t\t\telse if(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tJSONArray Psplits = new JSONArray();\t\t\t\t\t\n\t\t\t\t\twhile(!line.trim().equalsIgnoreCase(\"Surrogate splits:\")) {\n\t\t\t\t\t\tString s[] = line.split(\"\\t\");\n\t\t\t\t\t\tfor(String s1 : s) {\n\t\t\t\t\t\t\tSystem.out.println(s1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tJSONArray splitCols = new JSONArray(s);\n\t\t\t\t\t\tline = results.readLine();\n\t\t\t\t\t\tbuf.append(line);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\tsummary.put(\"model_name\", model_name + \".RData\");\n\t\t\t\tsummary.put(\"InputFile\", inputFileName);\n\t\t\t\tsummary.put(\"CommandName\", \"Rscripts/DTTraining.R\");\n\t\t\t}\n\t\t\tsummary.put(\"raw\", buf.toString());\n\t\t\t\n\t\t\t// format the summary json as params { [key : val] }\n\t\t\tJSONArray finalSummary = new JSONArray();\n\t\t\tIterator<String> keys = summary.keySet().iterator();\n\t\t\twhile(keys.hasNext()) {\n\t\t\t\tJSONObject row = new JSONObject();\n\t\t\t\trow.put(\"attribute\", keys.next());\n\t\t\t\trow.put(\"value\", summary.get(row.getString(\"attribute\")));\n\t\t\t\tfinalSummary.put(row);\n\t\t\t}\n\t\t\treturn Response.status(200).entity(new JSONObject().put(\"summary\", finalSummary).toString()).build();\n\t\t\t\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n\t\t\n \treturn Response.status(200).entity(summary.toString()).build();\n }", "private void createNewDynamicModel(){\n\t\tDynamicModel dModel = new DynamicModel(currentView.getViewModel().getName());\r\n\r\n\t\t// Add the new graph to the view\r\n\t\tint modelWidth = DynamicModelView.minimumWidth; \r\n\t\tint modelHeight = DynamicModelView.minimumHeight; \r\n\t\tint viewHeight = currentView.getHeight();\r\n\t\tint pad = 8;\r\n\t\tcurrentView.addModelView(new DynamicModelView(new EntityViewConfig(pad, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t viewHeight - (modelHeight + pad), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelWidth, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelHeight, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t EntityViewConfig.Type.DYNAMIC_MODEL), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdModel, this, currentView));\r\n\t\tcurrentView.repaint();\r\n\t}", "public void addToModel(Object object, StsModel model)\n\t{\n\t}", "public void addTrainingData(String value,String label);", "void addToModel(Model model, int numGenerated) throws Exception {\n addToModel(model, generateEventList(numGenerated));\n }", "public void addModel(SimpleModel model) {\n Preconditions.checkState(!registered);\n Preconditions.checkNotNull(model.getFullName());\n Preconditions.checkArgument(!models.containsKey(Ascii.toLowerCase(model.getFullName())));\n Preconditions.checkArgument(!modelsById.containsKey(model.getId()));\n String fullName = model.getFullName();\n models.put(Ascii.toLowerCase(fullName), model);\n modelsById.put(model.getId(), model);\n }", "DataModel createDataModel();", "public void saveModel(ModelClass model) throws StorageIOException {\n try {\n Dao<ModelDB, String> modelDao = this.databaseHelper.getDao(ModelDB.class);\n\n ModelDB modelEntity = classToDB(model);\n modelDao.createOrUpdate(modelEntity);\n \n } catch (SQLException e) {\n throw new StorageIOException(\"Failed to save model\", e);\n }\n }", "private void createDataModelFolders() {\n\n File dataFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_DATA\");\n File modelFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_MODEL\");\n\n boolean dataSuccess = true;\n boolean modelSuccess = true;\n if (!dataFolder.exists()) {\n try {\n dataSuccess = dataFolder.mkdirs();\n } catch (SecurityException e) {\n dataSuccess = false;\n }\n }\n\n if (!modelFolder.exists()) {\n try {\n modelSuccess = modelFolder.mkdirs();\n } catch (SecurityException e) {\n modelSuccess = false;\n }\n }\n\n String TAG = \"MainScreen\";\n if (dataSuccess) Log.d(TAG, \"Created AGH_IM_DATA folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_DATA Folder\");\n if (modelSuccess) Log.d(TAG, \"Successfully created AGH_IM_MODEL folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_MODEL Folder\");\n\n }", "void add( ModelObject modelObject, Long id );", "public Model createByUserModel(int id, Model model) {\n User user = userService.get(id);\n Set<Project> projects = user.getProjects();\n model.addAttribute(\"user\", user);\n model.addAttribute(\"myProjects\", projects);\n return model;\n }", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifierObject = ObjectClassifier.create(context.getAssets(), TYPE_MODEL, LABEL_TYPE, INPUT_SIZE_TYPE);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "@ModelAttribute\n public void addAttributes(Model model) {\n model.addAttribute(\"trainDto\", new TrainDto());\n model.addAttribute(\"passengerTrainDto\", new PassengerTrainDto());\n }", "public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }", "public ApiResponse<ModelApiResponse> trainModelWithHttpInfo(String workspaceId, String modelId) throws ApiException {\n okhttp3.Call localVarCall = trainModelValidateBeforeCall(workspaceId, modelId, null);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n return localVarApiClient.execute(localVarCall, localVarReturnType);\n }", "@Override\n\tpublic void addTrainInfo(Training training) {\n\t\ttraining.settDate(new Date());\n\t\ttrainingMapper.insert(training);\n\t}", "public boolean addNewModel(SVMmodel newModel) {\n\n boolean canAdd = true;\n\n for(SVMmodel model : svmModels.values()) {\n if(model.containsTheSounds( true, newModel.getSounds())) {\n canAdd = false;\n }\n }\n\n if(canAdd) {\n svmModels.put(newModel.getName(), newModel);\n }\n\n return canAdd;\n }", "public Model createModel(ModelNode modelNode) {\n \tif (modelNode == null)\n \t\tthrow new NullPointerException();\n return new ModelImpl(modelNode);\n }", "public ModelingExercise createModelingExercise(Long courseId) {\n return createModelingExercise(courseId, null);\n }", "ScenarioModel loadScenarioModel() throws ModelSerializationException, ModelConversionException;", "TrainingTest createTrainingTest();", "protected static Model getModel(String workspaceId, String modelId)\n throws AnaplanAPIException {\n Workspace workspace = getWorkspace(workspaceId);\n if (workspace == null) {\n return null;\n }\n if (modelId == null || modelId.isEmpty()) {\n LOG.error(\"A model ID must be provided\");\n return null;\n }\n Model model = null;\n\n if (!noValidateModel) {\n for (Model m : workspace.getModels()) {\n if (modelId.equals(m.getId()) || modelId.equalsIgnoreCase(m.getName())) {\n model = m;\n break;\n }\n }\n }\n if (model == null) {\n ModelData data = new ModelData(modelId, \"\");\n model = new Model(workspace, data);\n model.setCurrentWorkspaceId(workspaceId);\n }\n return model;\n }", "public <T> T createModel(T referenceModel) throws CreateModelException {\n return createModel(referenceModel, true);\n }", "public void train (String trainingCollection) throws IOException {\n\t\tDocumentCollection trainCol = new DocumentCollection(trainingCollection);\n\t\ttrainCol.open();\n\t\tfor (int i=0; i<trainCol.size(); i++) {\n\t\t\tExternalDocument doc = trainCol.get(i);\n\t\t\ttrain (doc);\n\t\t}\n\t}", "GameModel createGameModel(GameModel gameModel);", "public TrainingGroupDto createTrainingGroup(TrainingGroupDto trainDataObj,UserDto userDataObj) throws UIException, SQLException {\r\n\t\tTrainingGroupDto trainData=trainImplObj.createTrainingGroup(trainDataObj,userDataObj);\r\n\t\treturn trainData;\r\n\t}", "public ApiResponse<ModelApiResponse> createModelWithHttpInfo(String workspaceId, Model model) throws ApiException {\n okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, null);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n return localVarApiClient.execute(localVarCall, localVarReturnType);\n }", "public SSModel createSSObject() {\n\t\tSSModel ssModel = new SSModel();\n\t\tssModel.create(mol);\n\t\t\n\t\treturn ssModel;\n\t}", "private void initializeModel() {\n\t\tmodel = new Model();\n\n\t\t// load up playersave\n\t\ttry {\n\t\t\tFileInputStream save = new FileInputStream(\"playersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(save);\n\t\t\tmodel = ((Model) in.readObject());\n\t\t\tin.close();\n\t\t\tsave.close();\n\t\t\tSystem.out.println(\"playersave found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"playersave file not found, starting new game\");\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"playersave not found\");\n\t\t\tc.printStackTrace();\n\t\t}\n\t\t\n\t\t// load up customlevels\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"buildersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tmodel.importCustomLevels(((ArrayList<LevelModel>) in.readObject()));\n\t\t\tin.close();\n\t\t\tfileIn.close();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> file not found, starting new game\");\n\t\t\treturn;\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> not found\");\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "public void train(){\n recoApp.training(idsToTest);\n }", "Training obtainTrainingById(Long trainingId);", "public ModelingExercise createModelingExercise(Long courseId, Long exerciseId) {\n ZonedDateTime pastTimestamp = ZonedDateTime.now().minusDays(5);\n ZonedDateTime futureTimestamp = ZonedDateTime.now().plusDays(5);\n ZonedDateTime futureFutureTimestamp = ZonedDateTime.now().plusDays(8);\n\n Course course1 = ModelFactory.generateCourse(courseId, pastTimestamp, futureTimestamp, new HashSet<>(), \"tumuser\", \"tutor\", \"instructor\");\n ModelingExercise modelingExercise = ModelFactory.generateModelingExercise(pastTimestamp, futureTimestamp, futureFutureTimestamp, DiagramType.ClassDiagram, course1);\n modelingExercise.setGradingInstructions(\"Grading instructions\");\n modelingExercise.getCategories().add(\"Modeling\");\n modelingExercise.setId(exerciseId);\n course1.addExercises(modelingExercise);\n\n return modelingExercise;\n }", "public void train()\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n System.out.println(\"Start Training ..\");\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Training Text %..\");\n\t\t\ttrainText();\n\n\t\t\tSystem.out.println(\"Training Complex %..\");\n\t\t\ttrainCombined();\n\n\t\t\tSystem.out.println(\"Training Feature %..\");\n\t\t\ttrainFeatures();\n\n\t\t\tSystem.out.println(\"Training Lexicon %..\");\n\t\t\t//trainLexicon();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void addModel(IAnimatorModel newModel) {\r\n this.model = newModel;\r\n }", "public final void entryRuleModel() throws RecognitionException {\n try {\n // InternalMLRegression.g:54:1: ( ruleModel EOF )\n // InternalMLRegression.g:55:1: ruleModel EOF\n {\n before(grammarAccess.getModelRule()); \n pushFollow(FOLLOW_1);\n ruleModel();\n\n state._fsp--;\n\n after(grammarAccess.getModelRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public void fit(ArrayList trainData) {\n this.trainingData = trainData;\n }", "@GetMapping(\"/add\")\r\n\tpublic String newSave(Model model) {\r\n\t\tmodel.addAttribute(\"trainee\", new Trainee());\r\n\t\treturn \"add-trainee\";\r\n\t}", "boolean add(SysFile model);", "public Train createTrain(String id, String number, int time, Train copiedTrain) {\r\n // create new train with the same data\r\n Train train = copiedTrain.getTrainDiagram().createTrain(id);\r\n train.setNumber(number);\r\n train.setType(copiedTrain.getType());\r\n train.setDescription(copiedTrain.getDescription());\r\n train.setTopSpeed(copiedTrain.getTopSpeed());\r\n train.setAttributes(new Attributes(copiedTrain.getAttributes()));\r\n\r\n // create copy of time intervals\r\n for (TimeInterval copiedInterval : copiedTrain.getTimeIntervalList()) {\r\n TimeInterval interval = new TimeInterval(IdGenerator.getInstance().getId(), copiedInterval);\r\n // redirect to a new train\r\n interval.setTrain(train);\r\n\r\n // add interval\r\n train.addInterval(interval);\r\n }\r\n\r\n // move to new time\r\n train.move(time);\r\n\r\n return train;\r\n }", "protected void addWorkspace( String workspaceName ) {\n }", "public boolean save(Data model);", "public static boolean createModelingProject(String projectName,\n\t\t\tURI location, IProgressMonitor monitor) throws CoreException {\n\t\tIProject newProject = ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t.getProject(projectName);\n\t\t// if project exists not, then create one\n\t\tif (!newProject.exists()) {\n\t\t\tURI projectLocation = location;\n\t\t\t// Set description\n\t\t\tIProjectDescription desc = newProject.getWorkspace()\n\t\t\t\t\t.newProjectDescription(newProject.getName());\n\t\t\tif (location != null\n\t\t\t\t\t&& ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t\t\t\t.getLocationURI().equals(location)) {\n\t\t\t\tprojectLocation = null;\n\t\t\t}\n\t\t\tdesc.setLocationURI(projectLocation);\n\t\t\ttry {\n\t\t\t\tnewProject.create(desc, null);\n\t\t\t\tif (!newProject.isOpen()) {\n\t\t\t\t\tnewProject.open(null);\n\t\t\t\t}\n\t\t\t} catch (CoreException e) {\n\t\t\t\tLOGGER.error(\"\", e);\n\t\t\t}\n\t\t}\n\n\t\taddNature(newProject);\n\n\t\t// our basic folder structure\n\n\t\t// models\n\t\tIFolder modelFolder = createFolder(\n\t\t\t\tMessages.CreationFunctions_folder_title_models, newProject);\n\t\t// properties\n\t\tcreateFolder(\".properties\", newProject);\n\n\t\tif (ModelPreferencePage.getFolderPreference()) {\n\n\t\t\t// one folder for every registered model\n\t\t\tfor (String folderName : ModelRegistry.getInstance()\n\t\t\t\t\t.getAllModelNames()) {\n\t\t\t\tcreateFolder(folderName, modelFolder);\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private void setTrainingData() throws IOException {\r\n\t\ttrainIdBodyMap = readInIdBodiesMap(new File(TRAIN_BODIES_CSV_LOCATION));\r\n\t\ttrainStances = readStances(new File(TRAIN_STANCES_CSV_LOCATION));\r\n\r\n\t}", "@Override\n\tpublic Trainning_system save(Trainning_system trainning_system) {\n\t\treturn trainningSystemServiceImpl.save(trainning_system);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void loadModel(File model_file) throws IOException, ClassNotFoundException{\n\t\t// Load Model From File\n\t\tSystem.out.println(\"Loading Training Model. Please wait.\");\n\t\tFileInputStream fileIn = new FileInputStream(model_file);\n\t\tObjectInputStream objIn = new ObjectInputStream(fileIn); \n\t\tmClassifier = (LMClassifier<NGramProcessLM, MultivariateEstimator>) objIn.readObject();\n\t\tobjIn.close();\n\t\tisTrained = true;\n\t\tSystem.out.println(\"Loading Model. Complete.\");\n\t}", "public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}", "public DataModel()\r\n {\r\n System.out.println(\"New DataModel created\");\r\n \r\n languageList = new LanguageList();\r\n }", "springfox.documentation.schema.Model create(ModelContext context);", "public final void entryRuleModel() throws RecognitionException {\n try {\n // InternalWh.g:54:1: ( ruleModel EOF )\n // InternalWh.g:55:1: ruleModel EOF\n {\n before(grammarAccess.getModelRule()); \n pushFollow(FOLLOW_1);\n ruleModel();\n\n state._fsp--;\n\n after(grammarAccess.getModelRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public static void createInstance(Model model, Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "public SModel createBlankCheckpointModel(SModelReference originalModel, @Nullable CheckpointIdentity previousCheckpoint, CheckpointIdentity step) {\n final SModelName transientModelName = createCheckpointModelName(originalModel, step);\n // I'd like to have stable model id to minimize number of changes in CP models\n int mid = originalModel.getModelId().hashCode() ^ step.getName().hashCode();\n // make sure value fits into MPS reserved range, see IntegerSModelId doc.\n mid &= 0x0FFFFFFF;\n mid |= 0x0F000000;\n final SModelReference mr = PersistenceFacade.getInstance()\n .createModelReference(myModule.getModuleReference(), new IntegerSModelId(mid),\n transientModelName.getValue());\n SModel existing = myModule.getModel(mr.getModelId());\n if (existing != null) {\n // Why it's important to forget existing model? E.g. if a model being generated has been already generated and exposed as checkpoint, and\n // was renamed since. Renamed here means change of model name, e.g. due to rename of a containing language module.\n // Besides, it doesn't hurt to drop old checkpoint in any case.\n // There were few possible ways to address MPS-26174 (rename of a module breaks x-model generation).\n // - listen to changes of original model/module and react (e.g. remove related CP models or clear all CPs altogether).\n // - drop all transients as part of rename module action (likely, most safe)\n // - respect model name when building module id value, above. Leaves duplicated, hard-to-distinguish models among checkpoints.\n // - detect there's already model with same id and forget it (least destructive, keeps other CP models in place).\n myModule.forgetModel(existing, true);\n }\n SModel checkpointModel = myModule.createTransientModel(mr);\n assert checkpointModel instanceof ModelWithAttributes;\n ((ModelWithAttributes) checkpointModel).setAttribute(GENERATION_PLAN, step.getPlan().getName());\n ((ModelWithAttributes) checkpointModel).setAttribute(CHECKPOINT, step.getName());\n if (previousCheckpoint != null) {\n ((ModelWithAttributes) checkpointModel).setAttribute(PREV_GENERATION_PLAN, previousCheckpoint.getPlan().getName());\n ((ModelWithAttributes) checkpointModel).setAttribute(PREV_CHECKPOINT, previousCheckpoint.getName());\n }\n return checkpointModel;\n }", "IFMLModel createIFMLModel();", "public void saveModel() {\n\t}", "public void saveModel(File model_file) throws Exception{\n\t\t// Write model to file\n\t\t//System.out.println(mClassifier.getClass());\n\t\tSystem.out.println(\"Saving Trained Model. Please wait.\");\n\t\tif(mClassifier instanceof DynamicLMClassifier){\n\t\t\tFileOutputStream fileOut = new FileOutputStream(model_file);\n\t ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n\t ((DynamicLMClassifier<NGramProcessLM>) mClassifier).compileTo(objOut);\n\t objOut.close();\n\t System.out.println(\"Saving Trained Model. Complete.\");\n\t\t}else{\n\t\t\tthrow new Exception(\"Cannot compile a non dynamic traning set\");\n\t\t}\n\t}", "@Override\n public ImportModelResult importModel(ImportModelRequest request) {\n request = beforeClientExecution(request);\n return executeImportModel(request);\n }", "void applyForTraining(int studentId, int trainingId) throws ServiceException;", "public void addTrainingInitial(TrainingInitial ti) {\n\n //the new User's id\n Integer id = null;\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.saveOrUpdate(ti);\n tx.commit();\n\n\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n\n }", "public void add(SVGElementModel parentModel, SVGElementModel model) {\n \t\tinsertBefore(parentModel, model, null);\n \t}", "public boolean spawnNewTrain(String trainName, short trainId) {\n\t\t// check that the trainId and Name are unique\n\t\ttrains.add(new Train(trainId, trainName));\n\t\treturn true;\n\t}", "protected void addContentModel(WorkflowDefinitionConversion conversion, String processId) {\n\t\tM2Model model = new M2Model();\n\t\tmodel.setName(AlfrescoConversionUtil.getQualifiedName(processId, \n\t\t\t\tCONTENT_MODEL_UNQUALIFIED_NAME));\n\t\t\n\t\tM2Namespace namespace = AlfrescoConversionUtil.createNamespace(processId);\n\t\tmodel.getNamespaces().add(namespace);\n\t\t\n\t\t\n\t\t// Import required alfresco models\n\t\tmodel.getImports().add(DICTIONARY_NAMESPACE);\n\t\tmodel.getImports().add(CONTENT_NAMESPACE);\n\t\tmodel.getImports().add(BPM_NAMESPACE);\n\t\t\n\t\t// Store model in the conversion artifacts to be accessed later\n\t\tAlfrescoConversionUtil.storeContentModel(model, conversion);\n\t\tAlfrescoConversionUtil.storeModelNamespacePrefix(namespace.getPrefix(), conversion);\n }", "public abstract void fit(BinaryData trainingData);", "private void init() throws IOException, ModelException{\r\n // Check if the input file should be convert to libSVM format\r\n if(this.reformatInputFile){\r\n reformatInputFile();\r\n this.inputFileName = this.inputFileName + \".svm\";\r\n }\r\n\r\n // Scale the training set\r\n if(this.scale){\r\n scale();\r\n }\r\n\r\n setProblem();\r\n checkParams();\r\n\r\n // Check if cross validation is needed\r\n if(this.crossValidation == 1){\r\n crossValidate();\r\n }\r\n // Goes to here only if you use SVMModel without project context\r\n else{\r\n train();\r\n }\r\n }", "public void addPetModel(PetModel param) {\n if (localPetModel == null) {\n localPetModel = new PetModel[] { };\n }\n\n //update the setting tracker\n localPetModelTracker = true;\n\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localPetModel);\n list.add(param);\n this.localPetModel = (PetModel[]) list.toArray(new PetModel[list.size()]);\n }", "private void addAxisModel(GraphData data) {\n\t\taxisModels.add(new AxisModel(this, data, taskListener));\n\t\teventSupport.fireChangeEvent();\n\t}", "void addModelElement(EObject modelElement);", "public ModelApiResponse predict(String workspaceId, String modelId, PredictionRequest predictionRequest) throws ApiException {\n ApiResponse<ModelApiResponse> localVarResp = predictWithHttpInfo(workspaceId, modelId, predictionRequest);\n return localVarResp.getData();\n }", "void setModel(Model model);", "public void saveModel(String filePath) {\n\n\t\tFile parentFile = new File(filePath).getParentFile();\n\t\tif (parentFile != null && !parentFile.exists()) {\n\t\t\tparentFile.mkdirs();\n\t\t}\n\n\t\ttry {\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(filePath));\n\t\t\toos.writeObject(new HMMModel(pi, A, B));\n\t\t\toos.close();\n\t\t\tSystem.out.println(\"Model saved.\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_FILE,\n LABEL_FILE,\n INPUT_SIZE,\n IMAGE_MEAN,\n IMAGE_STD,\n INPUT_NAME,\n OUTPUT_NAME);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }" ]
[ "0.6347888", "0.6123204", "0.596997", "0.5890689", "0.57607377", "0.5657058", "0.56450146", "0.56437814", "0.5611535", "0.5608157", "0.55933607", "0.55851114", "0.554919", "0.55183715", "0.5464826", "0.53728247", "0.53179675", "0.53127646", "0.53039134", "0.52872264", "0.52211773", "0.52077895", "0.52077895", "0.52077895", "0.52077895", "0.52077895", "0.52077895", "0.52077895", "0.5154614", "0.51474774", "0.5110421", "0.5104897", "0.5092343", "0.50899434", "0.50686395", "0.50393605", "0.50345546", "0.5026748", "0.499812", "0.49885225", "0.49822155", "0.49784496", "0.4975388", "0.49298123", "0.49142656", "0.49124086", "0.48745093", "0.4865621", "0.48601595", "0.48583326", "0.48568946", "0.48469874", "0.48384488", "0.48368683", "0.48322818", "0.48282358", "0.47964716", "0.47842634", "0.4766974", "0.47536528", "0.4750707", "0.47465897", "0.4746576", "0.47430268", "0.47228128", "0.47154236", "0.47001645", "0.4698395", "0.4696241", "0.469388", "0.46904266", "0.46756056", "0.46603024", "0.46516082", "0.464573", "0.4640604", "0.46388283", "0.46092036", "0.4608274", "0.4606533", "0.4600156", "0.45884064", "0.4587807", "0.4584627", "0.45749575", "0.45746407", "0.45633933", "0.4540532", "0.45330185", "0.45227024", "0.4492625", "0.44807962", "0.44710672", "0.44666097", "0.44638675", "0.44586062", "0.44568297", "0.44558582", "0.44447842", "0.4443589" ]
0.6382921
0
Add a training data object for a model Create a new model in the workspace identified in the workspaceId path paramter.
public ApiResponse<ModelApiResponse> addTrainingDataWithHttpInfo(String workspaceId, String modelId, TrainingData trainingData) throws ApiException { okhttp3.Call localVarCall = addTrainingDataValidateBeforeCall(workspaceId, modelId, trainingData, null); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ModelApiResponse addTrainingData(String workspaceId, String modelId, TrainingData trainingData) throws ApiException {\n ApiResponse<ModelApiResponse> localVarResp = addTrainingDataWithHttpInfo(workspaceId, modelId, trainingData);\n return localVarResp.getData();\n }", "public okhttp3.Call addTrainingDataAsync(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = addTrainingDataValidateBeforeCall(workspaceId, modelId, trainingData, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public okhttp3.Call addTrainingDataCall(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = trainingData;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models/{modelId}/data\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()))\n .replaceAll(\"\\\\{\" + \"modelId\" + \"\\\\}\", localVarApiClient.escapeString(modelId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\", \"multipart/form-data\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public ModelContainer importModel(String modelData) throws OWLOntologyCreationException {\n\t\t// load data from String\n\t\tfinal OWLOntologyManager manager = graph.getManager();\n\t\tfinal OWLOntologyDocumentSource documentSource = new StringDocumentSource(modelData);\n\t\tOWLOntology modelOntology;\n\t\tfinal Set<OWLParserFactory> originalFactories = removeOBOParserFactories(manager);\n\t\ttry {\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tcatch (OWLOntologyAlreadyExistsException e) {\n\t\t\t// exception is thrown if there is an ontology with the same ID already in memory \n\t\t\tOWLOntologyID id = e.getOntologyID();\n\t\t\tIRI existingModelId = id.getOntologyIRI().orNull();\n\n\t\t\t// remove the existing memory model\n\t\t\tunlinkModel(existingModelId);\n\n\t\t\t// try loading the import version (again)\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tfinally {\n\t\t\tresetOBOParserFactories(manager, originalFactories);\n\t\t}\n\t\t\n\t\t// try to extract modelId\n\t\tIRI modelId = null;\n\t\tOptional<IRI> ontologyIRI = modelOntology.getOntologyID().getOntologyIRI();\n\t\tif (ontologyIRI.isPresent()) {\n\t\t\tmodelId = ontologyIRI.get();\n\t\t}\n\t\tif (modelId == null) {\n\t\t\tthrow new OWLOntologyCreationException(\"Could not extract the modelId from the given model\");\n\t\t}\n\t\t// paranoia check\n\t\tModelContainer existingModel = modelMap.get(modelId);\n\t\tif (existingModel != null) {\n\t\t\tunlinkModel(modelId);\n\t\t}\n\t\t\n\t\t// add to internal model\n\t\tModelContainer newModel = addModel(modelId, modelOntology);\n\t\t\n\t\t// update imports\n\t\tupdateImports(newModel);\n\t\t\n\t\treturn newModel;\n\t}", "public void addModel(Model aModel) throws IOException {\n addModel(aModel, null);\n }", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call addTrainingDataValidateBeforeCall(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling addTrainingData(Async)\");\n }\n \n // verify the required parameter 'modelId' is set\n if (modelId == null) {\n throw new ApiException(\"Missing the required parameter 'modelId' when calling addTrainingData(Async)\");\n }\n \n // verify the required parameter 'trainingData' is set\n if (trainingData == null) {\n throw new ApiException(\"Missing the required parameter 'trainingData' when calling addTrainingData(Async)\");\n }\n \n\n okhttp3.Call localVarCall = addTrainingDataCall(workspaceId, modelId, trainingData, _callback);\n return localVarCall;\n\n }", "public okhttp3.Call trainModelCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models/{modelId}/train\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()))\n .replaceAll(\"\\\\{\" + \"modelId\" + \"\\\\}\", localVarApiClient.escapeString(modelId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public ModelApiResponse createModel(String workspaceId, Model model) throws ApiException {\n ApiResponse<ModelApiResponse> localVarResp = createModelWithHttpInfo(workspaceId, model);\n return localVarResp.getData();\n }", "public void addModel(Model aModel, OpenSimContext context) throws IOException {\n OpenSimContext dContext = context==null?new OpenSimContext(aModel.initSystem(), aModel):context;\n models.add(aModel);\n mapModelsToContexts.put(aModel, dContext);\n SingleModelGuiElements newModelGuiElements = new SingleModelGuiElements(aModel);\n mapModelsToGuiElements.put(aModel, newModelGuiElements);\n setChanged();\n ModelEvent evnt = new ModelEvent(aModel, ModelEvent.Operation.Open);\n notifyObservers(evnt); \n setCurrentModel(aModel, false);\n //ExplorerTopComponent.addFinalEdit();\n }", "void setTrainData(DataModel trainData);", "public okhttp3.Call createModelAsync(String workspaceId, Model model, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public okhttp3.Call createModelCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = model;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call trainModelValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling trainModel(Async)\");\n }\n \n // verify the required parameter 'modelId' is set\n if (modelId == null) {\n throw new ApiException(\"Missing the required parameter 'modelId' when calling trainModel(Async)\");\n }\n \n\n okhttp3.Call localVarCall = trainModelCall(workspaceId, modelId, _callback);\n return localVarCall;\n\n }", "private void readModelAndTrain(boolean readExistingModel,\n\t\t\tbyte[] trainingDataFile) {\n\t\tInputStream dataIn = null;\n\t\ttry {\n\t\t\tObjectStream<DocumentSample> sampleStream = new DocumentSampleStream(\n\t\t\t\t\tnew PlainTextByLineStream(new FileInputStream(\n\t\t\t\t\t\t\tcreateModelInput(INPUT_TWEETS_ORIG_TXT)), \"UTF-8\"));\n\t\t\tsetModel(DocumentCategorizerME.train(\"en\", sampleStream,\n\t\t\t\t\tCUTOFF_FREQ, TRAINING_ITERATIONS));\n\t\t\tserialize(model);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (dataIn != null) {\n\t\t\t\ttry {\n\t\t\t\t\tdataIn.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call createModelValidateBeforeCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling createModel(Async)\");\n }\n \n // verify the required parameter 'model' is set\n if (model == null) {\n throw new ApiException(\"Missing the required parameter 'model' when calling createModel(Async)\");\n }\n \n\n okhttp3.Call localVarCall = createModelCall(workspaceId, model, _callback);\n return localVarCall;\n\n }", "public WorkingMemory createInferredModel(IRI modelId) {\n\t\tSet<Statement> statements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(getModelAbox(modelId))).asJava();\n\t\tSet<Triple> triples = statements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet());\n\t\ttry {\n\t\t\t// Using model's ontology IRI so that a spurious different ontology declaration triple isn't added\n\t\t\tOWLOntology schemaOntology = OWLManager.createOWLOntologyManager().createOntology(getOntology().getRBoxAxioms(Imports.INCLUDED), modelId);\n\t\t\tSet<Statement> schemaStatements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(schemaOntology)).asJava();\n\t\t\ttriples.addAll(schemaStatements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet()));\n\t\t} catch (OWLOntologyCreationException e) {\n\t\t\tLOG.error(\"Couldn't add rbox statements to data model.\", e);\n\t\t}\n\t\treturn getRuleEngine().processTriples(JavaConverters.asScalaSetConverter(triples).asScala());\n\t}", "public void initializeModelAndSettings(String modelName, IDataAccessObject dataAccessObject, String[] trainingSettings) throws TotalADSDBMSException, TotalADSGeneralException;", "public okhttp3.Call trainModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = trainModelValidateBeforeCall(workspaceId, modelId, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "void storeTraining(Training training);", "void create(Model model) throws Exception;", "public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "public void train(SieveDocuments trainingInfo) {\r\n\t\t// no training\r\n\t}", "@Test\n public void addModelData() {\n new FactoryInitializer()\n .initialize(\n ((tr, ev, is, np, md) -> new ResNetConv2DFactory(tr,ev,is,np,md).addModelData(new ArrayList<>()))\n );\n }", "public ModelApiResponse trainModel(String workspaceId, String modelId) throws ApiException {\n ApiResponse<ModelApiResponse> localVarResp = trainModelWithHttpInfo(workspaceId, modelId);\n return localVarResp.getData();\n }", "private Response performDT_training(String model_name, String data) {\n \tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MMM-yyyy_HmsS\");\n \tJSONObject summary = new JSONObject();\n \t\n \tif(model_name.trim().length()< 1) {\n \t\tmodel_name = \"DTree_Model_\" + sdf.format(Calendar.getInstance().getTime());\n \t}\n \t\n \t// check if the model name is already present\n \tif(utilObj.isModelNameUnique(model_name)) {\n \t\tsummary = new JSONObject();\n \t\tsummary.put(\"Error\", \"Duplicate model name : \" + model_name);\n \t\tlog.error(\"Duplicate model name\");\n \t\treturn Response.status(200).entity(summary.toString()).build();\n \t}\n \t\n \tlog.info(String.format(\"model_Name: %s\", model_name ));\n \tString modelFilePath = Util.CurrentDir+\"/models/\"+model_name;\n \t\n \ttry {\n\n \t\t// write the data to the disk\n \t\tfinal String inputFileName = \"TrainData_DT_\" + sdf.format(Calendar.getInstance().getTime()) + \".csv\";\n \t\tfinal String inputFilePath = Util.CurrentDir+\"/\"+Util.DataDir+\"/\"+inputFileName;\n \t\tFileWriter writer = new FileWriter(inputFilePath);\n \t\twriter.write(data);\n \t\twriter.flush();\n \t\twriter.close();\n \t\tlog.info(\"File created : \" + inputFilePath);\n \t\t\n \t\tString cmd = String.format(\"Rscript \"+Util.CurrentDir+\"/Rscripts/DTTraining.R %s %s \",inputFilePath, model_name);\n \t\tlog.info(cmd);\n\t \tProcess pr = Runtime.getRuntime().exec(cmd);\n\t\t\t\n\t\t\tBufferedReader results = new BufferedReader(new InputStreamReader(pr.getInputStream()));\n\t\t\tString line = null;\n\t\t\t\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\twhile((line=results.readLine()) != null) {\n\t\t\t\tbuf.append(line);\n\t\t\t\tif(line.trim().isEmpty()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine().trim();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tsummary.put(\"summary\", line);\n\t\t\t\t} \n\t\t\t\telse if(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tJSONArray Psplits = new JSONArray();\t\t\t\t\t\n\t\t\t\t\twhile(!line.trim().equalsIgnoreCase(\"Surrogate splits:\")) {\n\t\t\t\t\t\tString s[] = line.split(\"\\t\");\n\t\t\t\t\t\tfor(String s1 : s) {\n\t\t\t\t\t\t\tSystem.out.println(s1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tJSONArray splitCols = new JSONArray(s);\n\t\t\t\t\t\tline = results.readLine();\n\t\t\t\t\t\tbuf.append(line);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\tsummary.put(\"model_name\", model_name + \".RData\");\n\t\t\t\tsummary.put(\"InputFile\", inputFileName);\n\t\t\t\tsummary.put(\"CommandName\", \"Rscripts/DTTraining.R\");\n\t\t\t}\n\t\t\tsummary.put(\"raw\", buf.toString());\n\t\t\t\n\t\t\t// format the summary json as params { [key : val] }\n\t\t\tJSONArray finalSummary = new JSONArray();\n\t\t\tIterator<String> keys = summary.keySet().iterator();\n\t\t\twhile(keys.hasNext()) {\n\t\t\t\tJSONObject row = new JSONObject();\n\t\t\t\trow.put(\"attribute\", keys.next());\n\t\t\t\trow.put(\"value\", summary.get(row.getString(\"attribute\")));\n\t\t\t\tfinalSummary.put(row);\n\t\t\t}\n\t\t\treturn Response.status(200).entity(new JSONObject().put(\"summary\", finalSummary).toString()).build();\n\t\t\t\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n\t\t\n \treturn Response.status(200).entity(summary.toString()).build();\n }", "private void createNewDynamicModel(){\n\t\tDynamicModel dModel = new DynamicModel(currentView.getViewModel().getName());\r\n\r\n\t\t// Add the new graph to the view\r\n\t\tint modelWidth = DynamicModelView.minimumWidth; \r\n\t\tint modelHeight = DynamicModelView.minimumHeight; \r\n\t\tint viewHeight = currentView.getHeight();\r\n\t\tint pad = 8;\r\n\t\tcurrentView.addModelView(new DynamicModelView(new EntityViewConfig(pad, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t viewHeight - (modelHeight + pad), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelWidth, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelHeight, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t EntityViewConfig.Type.DYNAMIC_MODEL), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdModel, this, currentView));\r\n\t\tcurrentView.repaint();\r\n\t}", "public void addToModel(Object object, StsModel model)\n\t{\n\t}", "public void addTrainingData(String value,String label);", "void addToModel(Model model, int numGenerated) throws Exception {\n addToModel(model, generateEventList(numGenerated));\n }", "public void addModel(SimpleModel model) {\n Preconditions.checkState(!registered);\n Preconditions.checkNotNull(model.getFullName());\n Preconditions.checkArgument(!models.containsKey(Ascii.toLowerCase(model.getFullName())));\n Preconditions.checkArgument(!modelsById.containsKey(model.getId()));\n String fullName = model.getFullName();\n models.put(Ascii.toLowerCase(fullName), model);\n modelsById.put(model.getId(), model);\n }", "DataModel createDataModel();", "public void saveModel(ModelClass model) throws StorageIOException {\n try {\n Dao<ModelDB, String> modelDao = this.databaseHelper.getDao(ModelDB.class);\n\n ModelDB modelEntity = classToDB(model);\n modelDao.createOrUpdate(modelEntity);\n \n } catch (SQLException e) {\n throw new StorageIOException(\"Failed to save model\", e);\n }\n }", "private void createDataModelFolders() {\n\n File dataFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_DATA\");\n File modelFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_MODEL\");\n\n boolean dataSuccess = true;\n boolean modelSuccess = true;\n if (!dataFolder.exists()) {\n try {\n dataSuccess = dataFolder.mkdirs();\n } catch (SecurityException e) {\n dataSuccess = false;\n }\n }\n\n if (!modelFolder.exists()) {\n try {\n modelSuccess = modelFolder.mkdirs();\n } catch (SecurityException e) {\n modelSuccess = false;\n }\n }\n\n String TAG = \"MainScreen\";\n if (dataSuccess) Log.d(TAG, \"Created AGH_IM_DATA folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_DATA Folder\");\n if (modelSuccess) Log.d(TAG, \"Successfully created AGH_IM_MODEL folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_MODEL Folder\");\n\n }", "void add( ModelObject modelObject, Long id );", "public Model createByUserModel(int id, Model model) {\n User user = userService.get(id);\n Set<Project> projects = user.getProjects();\n model.addAttribute(\"user\", user);\n model.addAttribute(\"myProjects\", projects);\n return model;\n }", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifierObject = ObjectClassifier.create(context.getAssets(), TYPE_MODEL, LABEL_TYPE, INPUT_SIZE_TYPE);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "@ModelAttribute\n public void addAttributes(Model model) {\n model.addAttribute(\"trainDto\", new TrainDto());\n model.addAttribute(\"passengerTrainDto\", new PassengerTrainDto());\n }", "public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }", "public ApiResponse<ModelApiResponse> trainModelWithHttpInfo(String workspaceId, String modelId) throws ApiException {\n okhttp3.Call localVarCall = trainModelValidateBeforeCall(workspaceId, modelId, null);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n return localVarApiClient.execute(localVarCall, localVarReturnType);\n }", "@Override\n\tpublic void addTrainInfo(Training training) {\n\t\ttraining.settDate(new Date());\n\t\ttrainingMapper.insert(training);\n\t}", "public boolean addNewModel(SVMmodel newModel) {\n\n boolean canAdd = true;\n\n for(SVMmodel model : svmModels.values()) {\n if(model.containsTheSounds( true, newModel.getSounds())) {\n canAdd = false;\n }\n }\n\n if(canAdd) {\n svmModels.put(newModel.getName(), newModel);\n }\n\n return canAdd;\n }", "public Model createModel(ModelNode modelNode) {\n \tif (modelNode == null)\n \t\tthrow new NullPointerException();\n return new ModelImpl(modelNode);\n }", "public ModelingExercise createModelingExercise(Long courseId) {\n return createModelingExercise(courseId, null);\n }", "ScenarioModel loadScenarioModel() throws ModelSerializationException, ModelConversionException;", "TrainingTest createTrainingTest();", "protected static Model getModel(String workspaceId, String modelId)\n throws AnaplanAPIException {\n Workspace workspace = getWorkspace(workspaceId);\n if (workspace == null) {\n return null;\n }\n if (modelId == null || modelId.isEmpty()) {\n LOG.error(\"A model ID must be provided\");\n return null;\n }\n Model model = null;\n\n if (!noValidateModel) {\n for (Model m : workspace.getModels()) {\n if (modelId.equals(m.getId()) || modelId.equalsIgnoreCase(m.getName())) {\n model = m;\n break;\n }\n }\n }\n if (model == null) {\n ModelData data = new ModelData(modelId, \"\");\n model = new Model(workspace, data);\n model.setCurrentWorkspaceId(workspaceId);\n }\n return model;\n }", "public <T> T createModel(T referenceModel) throws CreateModelException {\n return createModel(referenceModel, true);\n }", "public void train (String trainingCollection) throws IOException {\n\t\tDocumentCollection trainCol = new DocumentCollection(trainingCollection);\n\t\ttrainCol.open();\n\t\tfor (int i=0; i<trainCol.size(); i++) {\n\t\t\tExternalDocument doc = trainCol.get(i);\n\t\t\ttrain (doc);\n\t\t}\n\t}", "GameModel createGameModel(GameModel gameModel);", "public TrainingGroupDto createTrainingGroup(TrainingGroupDto trainDataObj,UserDto userDataObj) throws UIException, SQLException {\r\n\t\tTrainingGroupDto trainData=trainImplObj.createTrainingGroup(trainDataObj,userDataObj);\r\n\t\treturn trainData;\r\n\t}", "public ApiResponse<ModelApiResponse> createModelWithHttpInfo(String workspaceId, Model model) throws ApiException {\n okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, null);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n return localVarApiClient.execute(localVarCall, localVarReturnType);\n }", "public SSModel createSSObject() {\n\t\tSSModel ssModel = new SSModel();\n\t\tssModel.create(mol);\n\t\t\n\t\treturn ssModel;\n\t}", "private void initializeModel() {\n\t\tmodel = new Model();\n\n\t\t// load up playersave\n\t\ttry {\n\t\t\tFileInputStream save = new FileInputStream(\"playersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(save);\n\t\t\tmodel = ((Model) in.readObject());\n\t\t\tin.close();\n\t\t\tsave.close();\n\t\t\tSystem.out.println(\"playersave found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"playersave file not found, starting new game\");\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"playersave not found\");\n\t\t\tc.printStackTrace();\n\t\t}\n\t\t\n\t\t// load up customlevels\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"buildersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tmodel.importCustomLevels(((ArrayList<LevelModel>) in.readObject()));\n\t\t\tin.close();\n\t\t\tfileIn.close();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> file not found, starting new game\");\n\t\t\treturn;\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> not found\");\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "public void train(){\n recoApp.training(idsToTest);\n }", "Training obtainTrainingById(Long trainingId);", "public ModelingExercise createModelingExercise(Long courseId, Long exerciseId) {\n ZonedDateTime pastTimestamp = ZonedDateTime.now().minusDays(5);\n ZonedDateTime futureTimestamp = ZonedDateTime.now().plusDays(5);\n ZonedDateTime futureFutureTimestamp = ZonedDateTime.now().plusDays(8);\n\n Course course1 = ModelFactory.generateCourse(courseId, pastTimestamp, futureTimestamp, new HashSet<>(), \"tumuser\", \"tutor\", \"instructor\");\n ModelingExercise modelingExercise = ModelFactory.generateModelingExercise(pastTimestamp, futureTimestamp, futureFutureTimestamp, DiagramType.ClassDiagram, course1);\n modelingExercise.setGradingInstructions(\"Grading instructions\");\n modelingExercise.getCategories().add(\"Modeling\");\n modelingExercise.setId(exerciseId);\n course1.addExercises(modelingExercise);\n\n return modelingExercise;\n }", "public void train()\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n System.out.println(\"Start Training ..\");\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Training Text %..\");\n\t\t\ttrainText();\n\n\t\t\tSystem.out.println(\"Training Complex %..\");\n\t\t\ttrainCombined();\n\n\t\t\tSystem.out.println(\"Training Feature %..\");\n\t\t\ttrainFeatures();\n\n\t\t\tSystem.out.println(\"Training Lexicon %..\");\n\t\t\t//trainLexicon();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void addModel(IAnimatorModel newModel) {\r\n this.model = newModel;\r\n }", "public final void entryRuleModel() throws RecognitionException {\n try {\n // InternalMLRegression.g:54:1: ( ruleModel EOF )\n // InternalMLRegression.g:55:1: ruleModel EOF\n {\n before(grammarAccess.getModelRule()); \n pushFollow(FOLLOW_1);\n ruleModel();\n\n state._fsp--;\n\n after(grammarAccess.getModelRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public void fit(ArrayList trainData) {\n this.trainingData = trainData;\n }", "@GetMapping(\"/add\")\r\n\tpublic String newSave(Model model) {\r\n\t\tmodel.addAttribute(\"trainee\", new Trainee());\r\n\t\treturn \"add-trainee\";\r\n\t}", "boolean add(SysFile model);", "public Train createTrain(String id, String number, int time, Train copiedTrain) {\r\n // create new train with the same data\r\n Train train = copiedTrain.getTrainDiagram().createTrain(id);\r\n train.setNumber(number);\r\n train.setType(copiedTrain.getType());\r\n train.setDescription(copiedTrain.getDescription());\r\n train.setTopSpeed(copiedTrain.getTopSpeed());\r\n train.setAttributes(new Attributes(copiedTrain.getAttributes()));\r\n\r\n // create copy of time intervals\r\n for (TimeInterval copiedInterval : copiedTrain.getTimeIntervalList()) {\r\n TimeInterval interval = new TimeInterval(IdGenerator.getInstance().getId(), copiedInterval);\r\n // redirect to a new train\r\n interval.setTrain(train);\r\n\r\n // add interval\r\n train.addInterval(interval);\r\n }\r\n\r\n // move to new time\r\n train.move(time);\r\n\r\n return train;\r\n }", "protected void addWorkspace( String workspaceName ) {\n }", "public boolean save(Data model);", "public static boolean createModelingProject(String projectName,\n\t\t\tURI location, IProgressMonitor monitor) throws CoreException {\n\t\tIProject newProject = ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t.getProject(projectName);\n\t\t// if project exists not, then create one\n\t\tif (!newProject.exists()) {\n\t\t\tURI projectLocation = location;\n\t\t\t// Set description\n\t\t\tIProjectDescription desc = newProject.getWorkspace()\n\t\t\t\t\t.newProjectDescription(newProject.getName());\n\t\t\tif (location != null\n\t\t\t\t\t&& ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t\t\t\t.getLocationURI().equals(location)) {\n\t\t\t\tprojectLocation = null;\n\t\t\t}\n\t\t\tdesc.setLocationURI(projectLocation);\n\t\t\ttry {\n\t\t\t\tnewProject.create(desc, null);\n\t\t\t\tif (!newProject.isOpen()) {\n\t\t\t\t\tnewProject.open(null);\n\t\t\t\t}\n\t\t\t} catch (CoreException e) {\n\t\t\t\tLOGGER.error(\"\", e);\n\t\t\t}\n\t\t}\n\n\t\taddNature(newProject);\n\n\t\t// our basic folder structure\n\n\t\t// models\n\t\tIFolder modelFolder = createFolder(\n\t\t\t\tMessages.CreationFunctions_folder_title_models, newProject);\n\t\t// properties\n\t\tcreateFolder(\".properties\", newProject);\n\n\t\tif (ModelPreferencePage.getFolderPreference()) {\n\n\t\t\t// one folder for every registered model\n\t\t\tfor (String folderName : ModelRegistry.getInstance()\n\t\t\t\t\t.getAllModelNames()) {\n\t\t\t\tcreateFolder(folderName, modelFolder);\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "private void setTrainingData() throws IOException {\r\n\t\ttrainIdBodyMap = readInIdBodiesMap(new File(TRAIN_BODIES_CSV_LOCATION));\r\n\t\ttrainStances = readStances(new File(TRAIN_STANCES_CSV_LOCATION));\r\n\r\n\t}", "@Override\n\tpublic Trainning_system save(Trainning_system trainning_system) {\n\t\treturn trainningSystemServiceImpl.save(trainning_system);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void loadModel(File model_file) throws IOException, ClassNotFoundException{\n\t\t// Load Model From File\n\t\tSystem.out.println(\"Loading Training Model. Please wait.\");\n\t\tFileInputStream fileIn = new FileInputStream(model_file);\n\t\tObjectInputStream objIn = new ObjectInputStream(fileIn); \n\t\tmClassifier = (LMClassifier<NGramProcessLM, MultivariateEstimator>) objIn.readObject();\n\t\tobjIn.close();\n\t\tisTrained = true;\n\t\tSystem.out.println(\"Loading Model. Complete.\");\n\t}", "public void train(Corpus[] trainingData) {\n\t\tSet<String> vocabulary = super.mergeVocabulary(trainingData);\n\t\ttrainingData[0].setVocabulary(vocabulary);\n\t\ttrainingData[1].setVocabulary(vocabulary);\n\t\tposMatrix = new TransitionMatrix(trainingData[0]);\n\t\tnegMatrix = new TransitionMatrix(trainingData[1]);\n\t}", "public DataModel()\r\n {\r\n System.out.println(\"New DataModel created\");\r\n \r\n languageList = new LanguageList();\r\n }", "springfox.documentation.schema.Model create(ModelContext context);", "public final void entryRuleModel() throws RecognitionException {\n try {\n // InternalWh.g:54:1: ( ruleModel EOF )\n // InternalWh.g:55:1: ruleModel EOF\n {\n before(grammarAccess.getModelRule()); \n pushFollow(FOLLOW_1);\n ruleModel();\n\n state._fsp--;\n\n after(grammarAccess.getModelRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public static void createInstance(Model model, Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "public SModel createBlankCheckpointModel(SModelReference originalModel, @Nullable CheckpointIdentity previousCheckpoint, CheckpointIdentity step) {\n final SModelName transientModelName = createCheckpointModelName(originalModel, step);\n // I'd like to have stable model id to minimize number of changes in CP models\n int mid = originalModel.getModelId().hashCode() ^ step.getName().hashCode();\n // make sure value fits into MPS reserved range, see IntegerSModelId doc.\n mid &= 0x0FFFFFFF;\n mid |= 0x0F000000;\n final SModelReference mr = PersistenceFacade.getInstance()\n .createModelReference(myModule.getModuleReference(), new IntegerSModelId(mid),\n transientModelName.getValue());\n SModel existing = myModule.getModel(mr.getModelId());\n if (existing != null) {\n // Why it's important to forget existing model? E.g. if a model being generated has been already generated and exposed as checkpoint, and\n // was renamed since. Renamed here means change of model name, e.g. due to rename of a containing language module.\n // Besides, it doesn't hurt to drop old checkpoint in any case.\n // There were few possible ways to address MPS-26174 (rename of a module breaks x-model generation).\n // - listen to changes of original model/module and react (e.g. remove related CP models or clear all CPs altogether).\n // - drop all transients as part of rename module action (likely, most safe)\n // - respect model name when building module id value, above. Leaves duplicated, hard-to-distinguish models among checkpoints.\n // - detect there's already model with same id and forget it (least destructive, keeps other CP models in place).\n myModule.forgetModel(existing, true);\n }\n SModel checkpointModel = myModule.createTransientModel(mr);\n assert checkpointModel instanceof ModelWithAttributes;\n ((ModelWithAttributes) checkpointModel).setAttribute(GENERATION_PLAN, step.getPlan().getName());\n ((ModelWithAttributes) checkpointModel).setAttribute(CHECKPOINT, step.getName());\n if (previousCheckpoint != null) {\n ((ModelWithAttributes) checkpointModel).setAttribute(PREV_GENERATION_PLAN, previousCheckpoint.getPlan().getName());\n ((ModelWithAttributes) checkpointModel).setAttribute(PREV_CHECKPOINT, previousCheckpoint.getName());\n }\n return checkpointModel;\n }", "IFMLModel createIFMLModel();", "public void saveModel() {\n\t}", "public void saveModel(File model_file) throws Exception{\n\t\t// Write model to file\n\t\t//System.out.println(mClassifier.getClass());\n\t\tSystem.out.println(\"Saving Trained Model. Please wait.\");\n\t\tif(mClassifier instanceof DynamicLMClassifier){\n\t\t\tFileOutputStream fileOut = new FileOutputStream(model_file);\n\t ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n\t ((DynamicLMClassifier<NGramProcessLM>) mClassifier).compileTo(objOut);\n\t objOut.close();\n\t System.out.println(\"Saving Trained Model. Complete.\");\n\t\t}else{\n\t\t\tthrow new Exception(\"Cannot compile a non dynamic traning set\");\n\t\t}\n\t}", "@Override\n public ImportModelResult importModel(ImportModelRequest request) {\n request = beforeClientExecution(request);\n return executeImportModel(request);\n }", "void applyForTraining(int studentId, int trainingId) throws ServiceException;", "public void addTrainingInitial(TrainingInitial ti) {\n\n //the new User's id\n Integer id = null;\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.saveOrUpdate(ti);\n tx.commit();\n\n\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n\n }", "public void add(SVGElementModel parentModel, SVGElementModel model) {\n \t\tinsertBefore(parentModel, model, null);\n \t}", "public boolean spawnNewTrain(String trainName, short trainId) {\n\t\t// check that the trainId and Name are unique\n\t\ttrains.add(new Train(trainId, trainName));\n\t\treturn true;\n\t}", "protected void addContentModel(WorkflowDefinitionConversion conversion, String processId) {\n\t\tM2Model model = new M2Model();\n\t\tmodel.setName(AlfrescoConversionUtil.getQualifiedName(processId, \n\t\t\t\tCONTENT_MODEL_UNQUALIFIED_NAME));\n\t\t\n\t\tM2Namespace namespace = AlfrescoConversionUtil.createNamespace(processId);\n\t\tmodel.getNamespaces().add(namespace);\n\t\t\n\t\t\n\t\t// Import required alfresco models\n\t\tmodel.getImports().add(DICTIONARY_NAMESPACE);\n\t\tmodel.getImports().add(CONTENT_NAMESPACE);\n\t\tmodel.getImports().add(BPM_NAMESPACE);\n\t\t\n\t\t// Store model in the conversion artifacts to be accessed later\n\t\tAlfrescoConversionUtil.storeContentModel(model, conversion);\n\t\tAlfrescoConversionUtil.storeModelNamespacePrefix(namespace.getPrefix(), conversion);\n }", "public abstract void fit(BinaryData trainingData);", "private void init() throws IOException, ModelException{\r\n // Check if the input file should be convert to libSVM format\r\n if(this.reformatInputFile){\r\n reformatInputFile();\r\n this.inputFileName = this.inputFileName + \".svm\";\r\n }\r\n\r\n // Scale the training set\r\n if(this.scale){\r\n scale();\r\n }\r\n\r\n setProblem();\r\n checkParams();\r\n\r\n // Check if cross validation is needed\r\n if(this.crossValidation == 1){\r\n crossValidate();\r\n }\r\n // Goes to here only if you use SVMModel without project context\r\n else{\r\n train();\r\n }\r\n }", "public void addPetModel(PetModel param) {\n if (localPetModel == null) {\n localPetModel = new PetModel[] { };\n }\n\n //update the setting tracker\n localPetModelTracker = true;\n\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localPetModel);\n list.add(param);\n this.localPetModel = (PetModel[]) list.toArray(new PetModel[list.size()]);\n }", "private void addAxisModel(GraphData data) {\n\t\taxisModels.add(new AxisModel(this, data, taskListener));\n\t\teventSupport.fireChangeEvent();\n\t}", "void addModelElement(EObject modelElement);", "public ModelApiResponse predict(String workspaceId, String modelId, PredictionRequest predictionRequest) throws ApiException {\n ApiResponse<ModelApiResponse> localVarResp = predictWithHttpInfo(workspaceId, modelId, predictionRequest);\n return localVarResp.getData();\n }", "void setModel(Model model);", "public void saveModel(String filePath) {\n\n\t\tFile parentFile = new File(filePath).getParentFile();\n\t\tif (parentFile != null && !parentFile.exists()) {\n\t\t\tparentFile.mkdirs();\n\t\t}\n\n\t\ttry {\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(filePath));\n\t\t\toos.writeObject(new HMMModel(pi, A, B));\n\t\t\toos.close();\n\t\t\tSystem.out.println(\"Model saved.\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_FILE,\n LABEL_FILE,\n INPUT_SIZE,\n IMAGE_MEAN,\n IMAGE_STD,\n INPUT_NAME,\n OUTPUT_NAME);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }" ]
[ "0.6382921", "0.6347888", "0.6123204", "0.596997", "0.5890689", "0.57607377", "0.5657058", "0.56450146", "0.56437814", "0.5611535", "0.55933607", "0.55851114", "0.554919", "0.55183715", "0.5464826", "0.53728247", "0.53179675", "0.53127646", "0.53039134", "0.52872264", "0.52211773", "0.52077895", "0.52077895", "0.52077895", "0.52077895", "0.52077895", "0.52077895", "0.52077895", "0.5154614", "0.51474774", "0.5110421", "0.5104897", "0.5092343", "0.50899434", "0.50686395", "0.50393605", "0.50345546", "0.5026748", "0.499812", "0.49885225", "0.49822155", "0.49784496", "0.4975388", "0.49298123", "0.49142656", "0.49124086", "0.48745093", "0.4865621", "0.48601595", "0.48583326", "0.48568946", "0.48469874", "0.48384488", "0.48368683", "0.48322818", "0.48282358", "0.47964716", "0.47842634", "0.4766974", "0.47536528", "0.4750707", "0.47465897", "0.4746576", "0.47430268", "0.47228128", "0.47154236", "0.47001645", "0.4698395", "0.4696241", "0.469388", "0.46904266", "0.46756056", "0.46603024", "0.46516082", "0.464573", "0.4640604", "0.46388283", "0.46092036", "0.4608274", "0.4606533", "0.4600156", "0.45884064", "0.4587807", "0.4584627", "0.45749575", "0.45746407", "0.45633933", "0.4540532", "0.45330185", "0.45227024", "0.4492625", "0.44807962", "0.44710672", "0.44666097", "0.44638675", "0.44586062", "0.44568297", "0.44558582", "0.44447842", "0.4443589" ]
0.5608157
10
Add a training data object for a model (asynchronously) Create a new model in the workspace identified in the workspaceId path paramter.
public okhttp3.Call addTrainingDataAsync(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback<ModelApiResponse> _callback) throws ApiException { okhttp3.Call localVarCall = addTrainingDataValidateBeforeCall(workspaceId, modelId, trainingData, _callback); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public okhttp3.Call addTrainingDataCall(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = trainingData;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models/{modelId}/data\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()))\n .replaceAll(\"\\\\{\" + \"modelId\" + \"\\\\}\", localVarApiClient.escapeString(modelId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\", \"multipart/form-data\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public okhttp3.Call createModelAsync(String workspaceId, Model model, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifierObject = ObjectClassifier.create(context.getAssets(), TYPE_MODEL, LABEL_TYPE, INPUT_SIZE_TYPE);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "public void addModel(Model aModel) throws IOException {\n addModel(aModel, null);\n }", "public ModelContainer importModel(String modelData) throws OWLOntologyCreationException {\n\t\t// load data from String\n\t\tfinal OWLOntologyManager manager = graph.getManager();\n\t\tfinal OWLOntologyDocumentSource documentSource = new StringDocumentSource(modelData);\n\t\tOWLOntology modelOntology;\n\t\tfinal Set<OWLParserFactory> originalFactories = removeOBOParserFactories(manager);\n\t\ttry {\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tcatch (OWLOntologyAlreadyExistsException e) {\n\t\t\t// exception is thrown if there is an ontology with the same ID already in memory \n\t\t\tOWLOntologyID id = e.getOntologyID();\n\t\t\tIRI existingModelId = id.getOntologyIRI().orNull();\n\n\t\t\t// remove the existing memory model\n\t\t\tunlinkModel(existingModelId);\n\n\t\t\t// try loading the import version (again)\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tfinally {\n\t\t\tresetOBOParserFactories(manager, originalFactories);\n\t\t}\n\t\t\n\t\t// try to extract modelId\n\t\tIRI modelId = null;\n\t\tOptional<IRI> ontologyIRI = modelOntology.getOntologyID().getOntologyIRI();\n\t\tif (ontologyIRI.isPresent()) {\n\t\t\tmodelId = ontologyIRI.get();\n\t\t}\n\t\tif (modelId == null) {\n\t\t\tthrow new OWLOntologyCreationException(\"Could not extract the modelId from the given model\");\n\t\t}\n\t\t// paranoia check\n\t\tModelContainer existingModel = modelMap.get(modelId);\n\t\tif (existingModel != null) {\n\t\t\tunlinkModel(modelId);\n\t\t}\n\t\t\n\t\t// add to internal model\n\t\tModelContainer newModel = addModel(modelId, modelOntology);\n\t\t\n\t\t// update imports\n\t\tupdateImports(newModel);\n\t\t\n\t\treturn newModel;\n\t}", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call addTrainingDataValidateBeforeCall(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling addTrainingData(Async)\");\n }\n \n // verify the required parameter 'modelId' is set\n if (modelId == null) {\n throw new ApiException(\"Missing the required parameter 'modelId' when calling addTrainingData(Async)\");\n }\n \n // verify the required parameter 'trainingData' is set\n if (trainingData == null) {\n throw new ApiException(\"Missing the required parameter 'trainingData' when calling addTrainingData(Async)\");\n }\n \n\n okhttp3.Call localVarCall = addTrainingDataCall(workspaceId, modelId, trainingData, _callback);\n return localVarCall;\n\n }", "void setTrainData(DataModel trainData);", "private void readModelAndTrain(boolean readExistingModel,\n\t\t\tbyte[] trainingDataFile) {\n\t\tInputStream dataIn = null;\n\t\ttry {\n\t\t\tObjectStream<DocumentSample> sampleStream = new DocumentSampleStream(\n\t\t\t\t\tnew PlainTextByLineStream(new FileInputStream(\n\t\t\t\t\t\t\tcreateModelInput(INPUT_TWEETS_ORIG_TXT)), \"UTF-8\"));\n\t\t\tsetModel(DocumentCategorizerME.train(\"en\", sampleStream,\n\t\t\t\t\tCUTOFF_FREQ, TRAINING_ITERATIONS));\n\t\t\tserialize(model);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (dataIn != null) {\n\t\t\t\ttry {\n\t\t\t\t\tdataIn.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "private Response performDT_training(String model_name, String data) {\n \tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MMM-yyyy_HmsS\");\n \tJSONObject summary = new JSONObject();\n \t\n \tif(model_name.trim().length()< 1) {\n \t\tmodel_name = \"DTree_Model_\" + sdf.format(Calendar.getInstance().getTime());\n \t}\n \t\n \t// check if the model name is already present\n \tif(utilObj.isModelNameUnique(model_name)) {\n \t\tsummary = new JSONObject();\n \t\tsummary.put(\"Error\", \"Duplicate model name : \" + model_name);\n \t\tlog.error(\"Duplicate model name\");\n \t\treturn Response.status(200).entity(summary.toString()).build();\n \t}\n \t\n \tlog.info(String.format(\"model_Name: %s\", model_name ));\n \tString modelFilePath = Util.CurrentDir+\"/models/\"+model_name;\n \t\n \ttry {\n\n \t\t// write the data to the disk\n \t\tfinal String inputFileName = \"TrainData_DT_\" + sdf.format(Calendar.getInstance().getTime()) + \".csv\";\n \t\tfinal String inputFilePath = Util.CurrentDir+\"/\"+Util.DataDir+\"/\"+inputFileName;\n \t\tFileWriter writer = new FileWriter(inputFilePath);\n \t\twriter.write(data);\n \t\twriter.flush();\n \t\twriter.close();\n \t\tlog.info(\"File created : \" + inputFilePath);\n \t\t\n \t\tString cmd = String.format(\"Rscript \"+Util.CurrentDir+\"/Rscripts/DTTraining.R %s %s \",inputFilePath, model_name);\n \t\tlog.info(cmd);\n\t \tProcess pr = Runtime.getRuntime().exec(cmd);\n\t\t\t\n\t\t\tBufferedReader results = new BufferedReader(new InputStreamReader(pr.getInputStream()));\n\t\t\tString line = null;\n\t\t\t\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\twhile((line=results.readLine()) != null) {\n\t\t\t\tbuf.append(line);\n\t\t\t\tif(line.trim().isEmpty()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine().trim();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tsummary.put(\"summary\", line);\n\t\t\t\t} \n\t\t\t\telse if(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tJSONArray Psplits = new JSONArray();\t\t\t\t\t\n\t\t\t\t\twhile(!line.trim().equalsIgnoreCase(\"Surrogate splits:\")) {\n\t\t\t\t\t\tString s[] = line.split(\"\\t\");\n\t\t\t\t\t\tfor(String s1 : s) {\n\t\t\t\t\t\t\tSystem.out.println(s1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tJSONArray splitCols = new JSONArray(s);\n\t\t\t\t\t\tline = results.readLine();\n\t\t\t\t\t\tbuf.append(line);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\tsummary.put(\"model_name\", model_name + \".RData\");\n\t\t\t\tsummary.put(\"InputFile\", inputFileName);\n\t\t\t\tsummary.put(\"CommandName\", \"Rscripts/DTTraining.R\");\n\t\t\t}\n\t\t\tsummary.put(\"raw\", buf.toString());\n\t\t\t\n\t\t\t// format the summary json as params { [key : val] }\n\t\t\tJSONArray finalSummary = new JSONArray();\n\t\t\tIterator<String> keys = summary.keySet().iterator();\n\t\t\twhile(keys.hasNext()) {\n\t\t\t\tJSONObject row = new JSONObject();\n\t\t\t\trow.put(\"attribute\", keys.next());\n\t\t\t\trow.put(\"value\", summary.get(row.getString(\"attribute\")));\n\t\t\t\tfinalSummary.put(row);\n\t\t\t}\n\t\t\treturn Response.status(200).entity(new JSONObject().put(\"summary\", finalSummary).toString()).build();\n\t\t\t\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n\t\t\n \treturn Response.status(200).entity(summary.toString()).build();\n }", "public void addModel(Model aModel, OpenSimContext context) throws IOException {\n OpenSimContext dContext = context==null?new OpenSimContext(aModel.initSystem(), aModel):context;\n models.add(aModel);\n mapModelsToContexts.put(aModel, dContext);\n SingleModelGuiElements newModelGuiElements = new SingleModelGuiElements(aModel);\n mapModelsToGuiElements.put(aModel, newModelGuiElements);\n setChanged();\n ModelEvent evnt = new ModelEvent(aModel, ModelEvent.Operation.Open);\n notifyObservers(evnt); \n setCurrentModel(aModel, false);\n //ExplorerTopComponent.addFinalEdit();\n }", "public ModelApiResponse addTrainingData(String workspaceId, String modelId, TrainingData trainingData) throws ApiException {\n ApiResponse<ModelApiResponse> localVarResp = addTrainingDataWithHttpInfo(workspaceId, modelId, trainingData);\n return localVarResp.getData();\n }", "public okhttp3.Call trainModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = trainModelValidateBeforeCall(workspaceId, modelId, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public WorkingMemory createInferredModel(IRI modelId) {\n\t\tSet<Statement> statements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(getModelAbox(modelId))).asJava();\n\t\tSet<Triple> triples = statements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet());\n\t\ttry {\n\t\t\t// Using model's ontology IRI so that a spurious different ontology declaration triple isn't added\n\t\t\tOWLOntology schemaOntology = OWLManager.createOWLOntologyManager().createOntology(getOntology().getRBoxAxioms(Imports.INCLUDED), modelId);\n\t\t\tSet<Statement> schemaStatements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(schemaOntology)).asJava();\n\t\t\ttriples.addAll(schemaStatements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet()));\n\t\t} catch (OWLOntologyCreationException e) {\n\t\t\tLOG.error(\"Couldn't add rbox statements to data model.\", e);\n\t\t}\n\t\treturn getRuleEngine().processTriples(JavaConverters.asScalaSetConverter(triples).asScala());\n\t}", "public void updateDataModel() {\n //this.dataModel = new TelemetryChartDataModel();\n this.dataModel.\n setModel(getStartDate(), getEndDate(), selectedProjects, telemetryName, parameters);\n Thread thread = new Thread() {\n @Override\n public void run() {\n dataModel.loadData();\n }\n };\n thread.start();\n }", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call trainModelValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling trainModel(Async)\");\n }\n \n // verify the required parameter 'modelId' is set\n if (modelId == null) {\n throw new ApiException(\"Missing the required parameter 'modelId' when calling trainModel(Async)\");\n }\n \n\n okhttp3.Call localVarCall = trainModelCall(workspaceId, modelId, _callback);\n return localVarCall;\n\n }", "void storeTraining(Training training);", "public okhttp3.Call trainModelCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models/{modelId}/train\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()))\n .replaceAll(\"\\\\{\" + \"modelId\" + \"\\\\}\", localVarApiClient.escapeString(modelId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_PATH,\n LABEL_PATH,\n INPUT_SIZE,\n QUANT);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_FILE,\n LABEL_FILE,\n INPUT_SIZE,\n IMAGE_MEAN,\n IMAGE_STD,\n INPUT_NAME,\n OUTPUT_NAME);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "public void train(){\n recoApp.training(idsToTest);\n }", "void create(Model model) throws Exception;", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call createModelValidateBeforeCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling createModel(Async)\");\n }\n \n // verify the required parameter 'model' is set\n if (model == null) {\n throw new ApiException(\"Missing the required parameter 'model' when calling createModel(Async)\");\n }\n \n\n okhttp3.Call localVarCall = createModelCall(workspaceId, model, _callback);\n return localVarCall;\n\n }", "public void initializeModelAndSettings(String modelName, IDataAccessObject dataAccessObject, String[] trainingSettings) throws TotalADSDBMSException, TotalADSGeneralException;", "private void createDataModelFolders() {\n\n File dataFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_DATA\");\n File modelFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_MODEL\");\n\n boolean dataSuccess = true;\n boolean modelSuccess = true;\n if (!dataFolder.exists()) {\n try {\n dataSuccess = dataFolder.mkdirs();\n } catch (SecurityException e) {\n dataSuccess = false;\n }\n }\n\n if (!modelFolder.exists()) {\n try {\n modelSuccess = modelFolder.mkdirs();\n } catch (SecurityException e) {\n modelSuccess = false;\n }\n }\n\n String TAG = \"MainScreen\";\n if (dataSuccess) Log.d(TAG, \"Created AGH_IM_DATA folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_DATA Folder\");\n if (modelSuccess) Log.d(TAG, \"Successfully created AGH_IM_MODEL folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_MODEL Folder\");\n\n }", "@Test\n public void addModelData() {\n new FactoryInitializer()\n .initialize(\n ((tr, ev, is, np, md) -> new ResNetConv2DFactory(tr,ev,is,np,md).addModelData(new ArrayList<>()))\n );\n }", "public void train(SieveDocuments trainingInfo) {\r\n\t\t// no training\r\n\t}", "void addToModel(Model model, int numGenerated) throws Exception {\n addToModel(model, generateEventList(numGenerated));\n }", "public okhttp3.Call createModelCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = model;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public ApiResponse<ModelApiResponse> addTrainingDataWithHttpInfo(String workspaceId, String modelId, TrainingData trainingData) throws ApiException {\n okhttp3.Call localVarCall = addTrainingDataValidateBeforeCall(workspaceId, modelId, trainingData, null);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n return localVarApiClient.execute(localVarCall, localVarReturnType);\n }", "void add( ModelObject modelObject, Long id );", "public void train()\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n System.out.println(\"Start Training ..\");\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Training Text %..\");\n\t\t\ttrainText();\n\n\t\t\tSystem.out.println(\"Training Complex %..\");\n\t\t\ttrainCombined();\n\n\t\t\tSystem.out.println(\"Training Feature %..\");\n\t\t\ttrainFeatures();\n\n\t\t\tSystem.out.println(\"Training Lexicon %..\");\n\t\t\t//trainLexicon();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "DataModel createDataModel();", "public static void createAllModels() throws IOException, InterruptedException {\n ConsoleLogger.printHeader(\"Creating models\");\n List<String> modelsToCreate = new ArrayList<>(FileHelper.loadAllFilesInPath(MODELS_PATH).values());\n final CountDownLatch createModelsLatch = new CountDownLatch(1);\n\n // Call API to create the models. For each async operation, once the operation is completed successfully, a latch is counted down.\n client.createModels(modelsToCreate)\n .doOnNext(listOfModelData -> listOfModelData.forEach(\n modelData -> ConsoleLogger.printSuccess(\"Created model: \" + modelData.getModelId())\n ))\n .doOnError(IGNORE_CONFLICT_ERROR)\n .doOnTerminate(createModelsLatch::countDown)\n .subscribe();\n\n // Wait until the latch count reaches zero, signifying that the async calls have completed successfully.\n createModelsLatch.await(MAX_WAIT_TIME_ASYNC_OPERATIONS_IN_SECONDS, TimeUnit.SECONDS);\n }", "TrainingTest createTrainingTest();", "private void createNewDynamicModel(){\n\t\tDynamicModel dModel = new DynamicModel(currentView.getViewModel().getName());\r\n\r\n\t\t// Add the new graph to the view\r\n\t\tint modelWidth = DynamicModelView.minimumWidth; \r\n\t\tint modelHeight = DynamicModelView.minimumHeight; \r\n\t\tint viewHeight = currentView.getHeight();\r\n\t\tint pad = 8;\r\n\t\tcurrentView.addModelView(new DynamicModelView(new EntityViewConfig(pad, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t viewHeight - (modelHeight + pad), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelWidth, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelHeight, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t EntityViewConfig.Type.DYNAMIC_MODEL), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdModel, this, currentView));\r\n\t\tcurrentView.repaint();\r\n\t}", "public boolean spawnNewTrain(String trainName, short trainId) {\n\t\t// check that the trainId and Name are unique\n\t\ttrains.add(new Train(trainId, trainName));\n\t\treturn true;\n\t}", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "public void train (String trainingCollection) throws IOException {\n\t\tDocumentCollection trainCol = new DocumentCollection(trainingCollection);\n\t\ttrainCol.open();\n\t\tfor (int i=0; i<trainCol.size(); i++) {\n\t\t\tExternalDocument doc = trainCol.get(i);\n\t\t\ttrain (doc);\n\t\t}\n\t}", "public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }", "@Override\n\tpublic void addTrainInfo(Training training) {\n\t\ttraining.settDate(new Date());\n\t\ttrainingMapper.insert(training);\n\t}", "public void addToModel(Object object, StsModel model)\n\t{\n\t}", "private void setTrainingData() throws IOException {\r\n\t\ttrainIdBodyMap = readInIdBodiesMap(new File(TRAIN_BODIES_CSV_LOCATION));\r\n\t\ttrainStances = readStances(new File(TRAIN_STANCES_CSV_LOCATION));\r\n\r\n\t}", "public void addTrainingData(String value,String label);", "public void saveModel(ModelClass model) throws StorageIOException {\n try {\n Dao<ModelDB, String> modelDao = this.databaseHelper.getDao(ModelDB.class);\n\n ModelDB modelEntity = classToDB(model);\n modelDao.createOrUpdate(modelEntity);\n \n } catch (SQLException e) {\n throw new StorageIOException(\"Failed to save model\", e);\n }\n }", "public void train() {\n\t\tfor (int i = 0; i < numberOfIterations; i++) {\n\t\t\t// for each training record\n\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\t// calculate inputs and outputs\n\t\t\t\tforwardCalculation(records.get(j).input);\n\t\t\t\t// compute errors, update weights and thetas\n\t\t\t\tbackwardCalculation(records.get(j).output);\n\t\t\t}\n//\t\t\tpostprocessOutputs();\n\t\t}\n\t}", "public void addModel(SimpleModel model) {\n Preconditions.checkState(!registered);\n Preconditions.checkNotNull(model.getFullName());\n Preconditions.checkArgument(!models.containsKey(Ascii.toLowerCase(model.getFullName())));\n Preconditions.checkArgument(!modelsById.containsKey(model.getId()));\n String fullName = model.getFullName();\n models.put(Ascii.toLowerCase(fullName), model);\n modelsById.put(model.getId(), model);\n }", "public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}", "private static native boolean train_0(long nativeObj, long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj);", "public void TrainDataset(){\n\t\ttry{\n\t\t\t//Testing delegate method\n\t\t\tMessageController.logToConsole(\"Hey, I'm from train button\");\n\t\t\t\n\t\t\t//Pass in the real training dataset\n\t\t\tfindSuitableK(new String[]{\"Hello\", \"World\"});\n\t\t\t\n\t\t\t//Pass in the 'k' and 'query string'\n\t\t\tfindKNN(2, \"anything\");\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tthrow ex;\n\t\t}\n\t\tfinally{\n\t\t\t\n\t\t}\n\t}", "public void fit(ArrayList trainData) {\n this.trainingData = trainData;\n }", "@Override\n\tpublic Trainning_system save(Trainning_system trainning_system) {\n\t\treturn trainningSystemServiceImpl.save(trainning_system);\n\t}", "Training obtainTrainingById(Long trainingId);", "private synchronized void downloadModel(String modelName) {\n final FirebaseCustomRemoteModel remoteModel =\n new FirebaseCustomRemoteModel\n .Builder(modelName)\n .build();\n FirebaseModelDownloadConditions conditions =\n new FirebaseModelDownloadConditions.Builder()\n .requireWifi()\n .build();\n final FirebaseModelManager firebaseModelManager = FirebaseModelManager.getInstance();\n firebaseModelManager\n .download(remoteModel, conditions)\n .continueWithTask(task ->\n firebaseModelManager.getLatestModelFile(remoteModel)\n )\n .continueWith(executorService, (Continuation<File, Void>) task -> {\n // Initialize a text classifier instance with the model\n File modelFile = task.getResult();\n\n // TODO 6: Initialize a TextClassifier with the downloaded model\n textClassifier = NLClassifier.createFromFile(modelFile);\n\n // Enable predict button\n predictButton.setEnabled(true);\n return null;\n })\n .addOnFailureListener(e -> {\n Log.e(TAG, \"Failed to download and initialize the model. \", e);\n Toast.makeText(\n MainActivity.this,\n \"Model download failed, please check your connection.\",\n Toast.LENGTH_LONG)\n .show();\n predictButton.setEnabled(false);\n });\n }", "public void addTrainingInitial(TrainingInitial ti) {\n\n //the new User's id\n Integer id = null;\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.saveOrUpdate(ti);\n tx.commit();\n\n\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n\n }", "public void startTrainingMode() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void loadModel(File model_file) throws IOException, ClassNotFoundException{\n\t\t// Load Model From File\n\t\tSystem.out.println(\"Loading Training Model. Please wait.\");\n\t\tFileInputStream fileIn = new FileInputStream(model_file);\n\t\tObjectInputStream objIn = new ObjectInputStream(fileIn); \n\t\tmClassifier = (LMClassifier<NGramProcessLM, MultivariateEstimator>) objIn.readObject();\n\t\tobjIn.close();\n\t\tisTrained = true;\n\t\tSystem.out.println(\"Loading Model. Complete.\");\n\t}", "public TrainingGroupDto createTrainingGroup(TrainingGroupDto trainDataObj,UserDto userDataObj) throws UIException, SQLException {\r\n\t\tTrainingGroupDto trainData=trainImplObj.createTrainingGroup(trainDataObj,userDataObj);\r\n\t\treturn trainData;\r\n\t}", "private void initializeModel() {\n\t\tmodel = new Model();\n\n\t\t// load up playersave\n\t\ttry {\n\t\t\tFileInputStream save = new FileInputStream(\"playersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(save);\n\t\t\tmodel = ((Model) in.readObject());\n\t\t\tin.close();\n\t\t\tsave.close();\n\t\t\tSystem.out.println(\"playersave found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"playersave file not found, starting new game\");\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"playersave not found\");\n\t\t\tc.printStackTrace();\n\t\t}\n\t\t\n\t\t// load up customlevels\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"buildersave.ser\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tmodel.importCustomLevels(((ArrayList<LevelModel>) in.readObject()));\n\t\t\tin.close();\n\t\t\tfileIn.close();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> found. Loading file...\");\n\t\t}catch(IOException i) {\n\t\t\t//i.printStackTrace();\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> file not found, starting new game\");\n\t\t\treturn;\n\t\t}catch(ClassNotFoundException c) {\n\t\t\tSystem.out.println(\"Builder ArrayList<LevelModel> not found\");\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "public boolean save(Data model);", "protected void AddTrain(Integer TrainID) {\n\t\tthis.TrainsPresent.add(TrainID);\n\t}", "public boolean addNewModel(SVMmodel newModel) {\n\n boolean canAdd = true;\n\n for(SVMmodel model : svmModels.values()) {\n if(model.containsTheSounds( true, newModel.getSounds())) {\n canAdd = false;\n }\n }\n\n if(canAdd) {\n svmModels.put(newModel.getName(), newModel);\n }\n\n return canAdd;\n }", "void applyForTraining(int studentId, int trainingId) throws ServiceException;", "@Override\n\tpublic void trainLocal() throws Exception {\n\t\tdouble [][] input = parameters.getInput();\n\t\tdouble [][] result = ann.getResults(parameters);\n\t\tif (state == preTraining) {//in this case, it is running in the pre-training mode.\n\t\t\tinput = newInput;\n\t\t\tresult = newInput;\n\t\t}\n\t\terr = 0; \n\t\tfor (int i = 0; i < mb; i++) {\t\n\t\t\tif (pos > input.length - 1) {\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\terr = err + ann.runEpoch(input[pos], pos, result[pos], parameters);\n\t\t\tpos++;\n\t\t}\n\t}", "public <T> T createModel(T referenceModel) throws CreateModelException {\n return createModel(referenceModel, true);\n }", "public boolean saveOrUpdate(Data model);", "public ModelApiResponse createModel(String workspaceId, Model model) throws ApiException {\n ApiResponse<ModelApiResponse> localVarResp = createModelWithHttpInfo(workspaceId, model);\n return localVarResp.getData();\n }", "public void loadModel(int modelId) {\n \t\tif(this.openGLModelConfiguration != null) {\r\n \t\t\tthis.fireOnModelDataEvent(this.openGLModelConfiguration, false);\r\n \t\t} else {\r\n \t\t\tcacheManager.readModelAsync(modelId, this);\r\n \t\t}\r\n \t}", "public void saveModel(File model_file) throws Exception{\n\t\t// Write model to file\n\t\t//System.out.println(mClassifier.getClass());\n\t\tSystem.out.println(\"Saving Trained Model. Please wait.\");\n\t\tif(mClassifier instanceof DynamicLMClassifier){\n\t\t\tFileOutputStream fileOut = new FileOutputStream(model_file);\n\t ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n\t ((DynamicLMClassifier<NGramProcessLM>) mClassifier).compileTo(objOut);\n\t objOut.close();\n\t System.out.println(\"Saving Trained Model. Complete.\");\n\t\t}else{\n\t\t\tthrow new Exception(\"Cannot compile a non dynamic traning set\");\n\t\t}\n\t}", "private void runOnlineModel() {\n myScenario.setProbe(myProbe);\n myScenario.setSynchronizationMode(mySrcSelector);\n try {\n myScenario.resync();\n myScenario.run();\n } catch (SynchronizationException e) {\n System.out.println(e);\n } catch (ModelException e) {\n System.out.println(e);\n }\n }", "ScenarioModel loadScenarioModel() throws ModelSerializationException, ModelConversionException;", "@ModelAttribute\n public void addAttributes(Model model) {\n model.addAttribute(\"trainDto\", new TrainDto());\n model.addAttribute(\"passengerTrainDto\", new PassengerTrainDto());\n }", "public void train() throws Exception;", "@RequestMapping(method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\t@Transactional\r\n\tpublic Object create(@RequestBody Model model) {\r\n\t\ttry {\r\n\t\t\tgetService().create(model);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Create exception for \" + model, e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean add(SysFile model);", "public ResponseEntity<JsonResponse<Object>> addTrainingDetailsPost(TrainingCreationRestModel training) {\n\t\tlogger.info(\"Method : addjobMaster starts\");\n\n\t\tBoolean validity = true;\n\t\tJsonResponse<Object> resp = new JsonResponse<Object>();\n\t\tresp.setMessage(\"\");\n\t\tresp.setCode(\"\");\n\t\tif (training.getTrainingName() == null || training.getTrainingName() == \"\") {\n\t\t\tresp.setMessage(\"Training Name Required\");\n\t\t\tvalidity = false;\n\t\t} else if (training.getTrainingType() == null || training.getTrainingType() == \"\") {\n\t\t\tresp.setMessage(\"Training Type Required\");\n\t\t\tvalidity = false;\n\t\t} else if (training.getTrainingCriteria() == null || training.getTrainingCriteria() == \"\") {\n\t\t\tresp.setMessage(\"training criteria Required\");\n\t\t\tvalidity = false;\n\t\t} else if (training.getTrainingDesc() == null || training.getTrainingDesc() == \"\") {\n\t\t\tresp.setMessage(\"training description Required\");\n\t\t\tvalidity = false;\n\t\t}\n\t\tif (validity)\n\t\t\ttry {\n\n\t\t\t\tString values = GenerateTrainingCreationParameter.getAddTrainingParam(training);\n\n\t\t\t\tif (training.getTrainingId() != null && training.getTrainingId() != \"\") {\n\n\t\t\t\t\tem.createNamedStoredProcedureQuery(\"trainingCreation\").setParameter(\"actionType\", \"modifyTraining\")\n\t\t\t\t\t\t\t.setParameter(\"actionValue\", values).execute();\n\t\t\t\t} else {\n\n\t\t\t\t\tem.createNamedStoredProcedureQuery(\"trainingCreation\")\n\t\t\t\t\t\t\t.setParameter(\"actionType\", \"addTrainingLeave\").setParameter(\"actionValue\", values)\n\t\t\t\t\t\t\t.execute();\n\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\ttry {\n\t\t\t\t\tString[] err = serverDao.errorProcedureCall(e);\n\t\t\t\t\tresp.setCode(err[0]);\n\t\t\t\t\tresp.setMessage(err[1]);\n\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\tResponseEntity<JsonResponse<Object>> response = new ResponseEntity<JsonResponse<Object>>(resp,\n\t\t\t\tHttpStatus.CREATED);\n\n\t\tlogger.info(\"Method : addjobMaster ends\");\n\t\treturn response;\n\t}", "public Model createByUserModel(int id, Model model) {\n User user = userService.get(id);\n Set<Project> projects = user.getProjects();\n model.addAttribute(\"user\", user);\n model.addAttribute(\"myProjects\", projects);\n return model;\n }", "public JsonNode insert(String resourcePath, String model, JsonNode jsonNode) {\n\t\tNitrite db = nitriteDbConnection.getConnection(resourcePath, model);\n\t\tNitriteCollection collection = db.getCollection(model);\n\t\tDocument doc = getDocument(jsonNode);\n\t\tcollection.insert(doc);\n\t\treturn getJsonNode(doc);\n\t}", "private void initializeGameModel() {\n mGameModel = new GameModel();\n mGameModel.setId(mGameWaitModel.getId());\n mGameModel.setGameMaster(getPlayerModel(true));\n mGameModel.setGameSlave(getPlayerModel(false));\n mGameModel.setGenerateNewQuestion(true);\n mGameModel.setDidGameEnd(false);\n LOGD(TAG, \"Game Model initialized\");\n }", "@Override\n public void modelStarted(ModelEvent me)\n {\n save(me.getSource(), _startDirectory);\n }", "public JSONObject create(final String model,\n final String datasetId, JSONObject args, Integer waitTime,\n Integer retries) {\n\n if (model == null || model.length() == 0 ||\n !(model.matches(MODEL_RE) || \n model.matches(ENSEMBLE_RE) || \n model.matches(LOGISTICREGRESSION_RE) || \n model.matches(LINEARREGRESSION_RE) || \n model.matches(DEEPNET_RE) ||\n model.matches(FUSION_RE))) {\n logger.info(\"Wrong model, ensemble, logisticregression, \"\n \t\t+ \"linearregression or deepnet or fusion id\");\n return null;\n }\n \n if (datasetId == null || datasetId.length() == 0\n || !datasetId.matches(DATASET_RE)) {\n logger.info(\"Wrong dataset id\");\n return null;\n }\n\n try {\n \t\tif (model.matches(MODEL_RE)) {\n \t\t\twaitForResource(model, \"modelIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(ENSEMBLE_RE)) {\n \t\t\twaitForResource(model, \"ensembleIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(LOGISTICREGRESSION_RE)) {\n \t\t\twaitForResource(model, \"logisticRegressionIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(LINEARREGRESSION_RE)) {\n \t\t\twaitForResource(model, \"linearRegressionIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(DEEPNET_RE)) {\n \t\t\twaitForResource(model, \"deepnetIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(FUSION_RE)) {\n \t\t\twaitForResource(model, \"fusionIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\twaitForResource(datasetId, \"datasetIsReady\", waitTime, retries);\n \n\n JSONObject requestObject = new JSONObject();\n if (args != null) {\n requestObject = args;\n }\n\n if (model.matches(MODEL_RE)) {\n requestObject.put(\"model\", model);\n }\n if (model.matches(ENSEMBLE_RE)) {\n requestObject.put(\"ensemble\", model);\n }\n if (model.matches(LOGISTICREGRESSION_RE)) {\n requestObject.put(\"logisticregression\", model);\n }\n if (model.matches(LINEARREGRESSION_RE)) {\n requestObject.put(\"linearregression\", model);\n }\n if (model.matches(DEEPNET_RE)) {\n requestObject.put(\"deepnet\", model);\n }\n if (model.matches(FUSION_RE)) {\n requestObject.put(\"fusion\", model);\n }\n requestObject.put(\"dataset\", datasetId);\n\n return createResource(resourceUrl,\n \t\trequestObject.toJSONString());\n } catch (Throwable e) {\n logger.error(\"Error creating batch prediction\");\n return null;\n }\n }", "public static boolean createModelingProject(String projectName,\n\t\t\tURI location, IProgressMonitor monitor) throws CoreException {\n\t\tIProject newProject = ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t.getProject(projectName);\n\t\t// if project exists not, then create one\n\t\tif (!newProject.exists()) {\n\t\t\tURI projectLocation = location;\n\t\t\t// Set description\n\t\t\tIProjectDescription desc = newProject.getWorkspace()\n\t\t\t\t\t.newProjectDescription(newProject.getName());\n\t\t\tif (location != null\n\t\t\t\t\t&& ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t\t\t\t.getLocationURI().equals(location)) {\n\t\t\t\tprojectLocation = null;\n\t\t\t}\n\t\t\tdesc.setLocationURI(projectLocation);\n\t\t\ttry {\n\t\t\t\tnewProject.create(desc, null);\n\t\t\t\tif (!newProject.isOpen()) {\n\t\t\t\t\tnewProject.open(null);\n\t\t\t\t}\n\t\t\t} catch (CoreException e) {\n\t\t\t\tLOGGER.error(\"\", e);\n\t\t\t}\n\t\t}\n\n\t\taddNature(newProject);\n\n\t\t// our basic folder structure\n\n\t\t// models\n\t\tIFolder modelFolder = createFolder(\n\t\t\t\tMessages.CreationFunctions_folder_title_models, newProject);\n\t\t// properties\n\t\tcreateFolder(\".properties\", newProject);\n\n\t\tif (ModelPreferencePage.getFolderPreference()) {\n\n\t\t\t// one folder for every registered model\n\t\t\tfor (String folderName : ModelRegistry.getInstance()\n\t\t\t\t\t.getAllModelNames()) {\n\t\t\t\tcreateFolder(folderName, modelFolder);\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\n public ImportModelResult importModel(ImportModelRequest request) {\n request = beforeClientExecution(request);\n return executeImportModel(request);\n }", "public void runModel(){\n\t\tcurrentView.getDynamicModelView().getModel().setProgressMonitor(progressMonitor);\r\n\t\tnew Thread(currentView.getDynamicModelView().getModel()).start();\r\n\r\n\t\tsetStatusBarText(\"Ready\");\r\n\t}", "public void saveModel() {\n\t}", "@WorkerThread\n public abstract void saveToDb(NetworkModel fetchedModel);", "public abstract void fit(BinaryData trainingData);", "GameModel createGameModel(GameModel gameModel);", "DataGenModel()\n {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult result = mFacePlus.train(groupid_long, TRAIN_TYPE.all );\n\t\t\t\tif(result.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + result.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsessionId = result.data+\"\";\n\t\t\t\t Log.e(TAG,sessionId);\n\t\t\t}", "private void train() throws IOException {\r\n\r\n // Set Listeners, to see results of evaluation during training process and testing\r\n vgg16Transfer.setListeners(new ScoreIterationListener(100));\r\n trainWriter.write(\"\\n Train model....\");\r\n System.out.println(\"\\n Train model....\");\r\n int iterationsCounter = 0;\r\n // Go through all data \"epochs\" - number of times\r\n for(int n = 0; n < epochs; n++) {\r\n System.out.println(String.format(\"Epoch %d started training\", n + 1));\r\n trainWriter.write(String.format(\"Epoch %d started training\", n + 1));\r\n\r\n //Reset training iterator to the new epoch\r\n trainIterator.reset();\r\n // Go through all data once, till it's end\r\n while (trainIterator.hasNext()) {\r\n iterationsCounter++;\r\n trainingData = trainIterator.next();\r\n normalizer.fit(trainingData);\r\n vgg16Transfer.fit(trainingData);\r\n System.out.println(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n\r\n }\r\n System.out.println(String.format(\"Epoch %d finished training\", n + 1));\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n // Get results and check them\r\n Evaluation eval = new Evaluation(numLabels);\r\n testIterator.reset();\r\n while(testIterator.hasNext()) {\r\n testData = testIterator.next();\r\n normalizer.fit(testData);\r\n INDArray features = testData.getFeatures();\r\n INDArray labels = testData.getLabels();\r\n INDArray predicted = vgg16Transfer.outputSingle(features);\r\n eval.eval(labels, predicted);\r\n }\r\n System.out.println(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n System.out.println(eval.stats());\r\n System.out.println(eval.confusionToString());\r\n trainWriter.write(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n trainWriter.write(eval.stats());\r\n trainWriter.write(eval.confusionToString());\r\n }\r\n System.out.println(\"\\n *** Training finished! *** \");\r\n trainWriter.write(\"\\n *** Training finished! *** \");\r\n }", "public Train createTrain(String id, String number, int time, Train copiedTrain) {\r\n // create new train with the same data\r\n Train train = copiedTrain.getTrainDiagram().createTrain(id);\r\n train.setNumber(number);\r\n train.setType(copiedTrain.getType());\r\n train.setDescription(copiedTrain.getDescription());\r\n train.setTopSpeed(copiedTrain.getTopSpeed());\r\n train.setAttributes(new Attributes(copiedTrain.getAttributes()));\r\n\r\n // create copy of time intervals\r\n for (TimeInterval copiedInterval : copiedTrain.getTimeIntervalList()) {\r\n TimeInterval interval = new TimeInterval(IdGenerator.getInstance().getId(), copiedInterval);\r\n // redirect to a new train\r\n interval.setTrain(train);\r\n\r\n // add interval\r\n train.addInterval(interval);\r\n }\r\n\r\n // move to new time\r\n train.move(time);\r\n\r\n return train;\r\n }", "public void addModel(IAnimatorModel newModel) {\r\n this.model = newModel;\r\n }", "public IObserver train(IContext context) throws ThinklabException;", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call adminTrainModelAsyncValidateBeforeCall(String token, String applicationId, String modelModule, String documentsTag, String modelName, String shortName, String description, Integer ttl, List<String> allowedApplicationIds, Boolean allowAllApplications, List<String> tags, String executeAfterId, String callbackUrl, Object modelParams, TrainBody trainBody, final ApiCallback _callback) throws ApiException {\n if (token == null) {\n throw new ApiException(\"Missing the required parameter 'token' when calling adminTrainModelAsync(Async)\");\n }\n \n // verify the required parameter 'applicationId' is set\n if (applicationId == null) {\n throw new ApiException(\"Missing the required parameter 'applicationId' when calling adminTrainModelAsync(Async)\");\n }\n \n // verify the required parameter 'modelModule' is set\n if (modelModule == null) {\n throw new ApiException(\"Missing the required parameter 'modelModule' when calling adminTrainModelAsync(Async)\");\n }\n \n // verify the required parameter 'documentsTag' is set\n if (documentsTag == null) {\n throw new ApiException(\"Missing the required parameter 'documentsTag' when calling adminTrainModelAsync(Async)\");\n }\n \n\n okhttp3.Call localVarCall = adminTrainModelAsyncCall(token, applicationId, modelModule, documentsTag, modelName, shortName, description, ttl, allowedApplicationIds, allowAllApplications, tags, executeAfterId, callbackUrl, modelParams, trainBody, _callback);\n return localVarCall;\n\n }" ]
[ "0.5886645", "0.5773784", "0.57472664", "0.5679258", "0.560424", "0.55676234", "0.55201447", "0.55049175", "0.5360046", "0.53436273", "0.532814", "0.52802664", "0.5245269", "0.5225813", "0.52180433", "0.52164215", "0.51958984", "0.5186439", "0.5176003", "0.5171653", "0.514283", "0.5139415", "0.51250845", "0.5111077", "0.5085377", "0.5081633", "0.506461", "0.5004552", "0.4927283", "0.48842043", "0.48761877", "0.48377642", "0.48242658", "0.48116285", "0.48036033", "0.4802083", "0.47888252", "0.47888252", "0.47888252", "0.47888252", "0.47888252", "0.47888252", "0.47888252", "0.4784547", "0.47804603", "0.47632328", "0.47581822", "0.47468498", "0.47361436", "0.4731231", "0.47180423", "0.471471", "0.4697607", "0.4693359", "0.46893895", "0.46775323", "0.46628934", "0.46547017", "0.46449035", "0.46218488", "0.4612478", "0.46060055", "0.45878544", "0.45878527", "0.45779708", "0.4575782", "0.45720598", "0.45621505", "0.4552041", "0.4550807", "0.45492074", "0.45481858", "0.45435318", "0.45333624", "0.453155", "0.45292586", "0.45195955", "0.45137817", "0.4513468", "0.44996488", "0.44618738", "0.4461441", "0.4461001", "0.44453955", "0.44377846", "0.44241694", "0.44212", "0.44211704", "0.4419838", "0.44069624", "0.43948114", "0.4390731", "0.43824598", "0.43782175", "0.43724567", "0.43721232", "0.4370921", "0.43708688", "0.4370205", "0.4368119" ]
0.65540636
0
Build call for createModel
public okhttp3.Call createModelCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException { Object localVarPostBody = model; // create path and map variables String localVarPath = "/workspaces/{workspaceId}/models" .replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "apiAuth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Build_Model() {\n\n }", "public void buildModel() {\n }", "public void buildModel(){\r\n\t\t\r\n\t\tsuper.buildModel();\r\n\t\t\r\n\t}", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "void create(Model model) throws Exception;", "public boolean buildModel() {\n \treturn buildModel(false, false);\n }", "public DynamicModelPart build() {\n return this.rotateModelPart(this.rotation).addCuboids();\n }", "ZenModel createZenModel();", "public M create(P model);", "public boolean create(ModelObject obj);", "public abstract JPAMethodContext build() throws ODataJPAModelException, ODataJPARuntimeException;", "public void build() {\r\n // TODO\r\n }", "private void setupModel() {\n\n //Chooses which model gets prepared\n switch (id) {\n case 2:\n singlePackage = new Node();\n activeNode = singlePackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_solo)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 3:\n multiPackage = new Node();\n activeNode = multiPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_multi_new)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 4:\n wagonPackage = new Node();\n activeNode = wagonPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_car_new)\n .build().thenAccept(a -> activeRenderable = a)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n default:\n mailbox = new Node();\n activeNode = mailbox;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.mailbox)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n }\n }", "public DriverForCreate build() {\r\n return driverForCreate;\r\n }", "public abstract DankSubmissionRequest build();", "DataModel createDataModel();", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}", "DataGenModel()\n {\n }", "public Device createObject(String brand, String model, Integer price, String photo, String date);", "public Entity build();", "public TargetGeneratorModel()\n {\n }", "public XMLModel002Builder() {\n }", "DomainModel createDomainModel();", "public abstract Object build();", "EisModel createEisModel();", "public void createModelFromAlloy(){\n\t\t// Get signatures list\n\t\tSafeList<Sig> sigs = module.getAllSigs();\n\t\t// Check if the list is empty\n\t\tif(sigs.isEmpty()) assertMessage(\"Error in create Model FromAlloy: no sig found!\");\n\t\t// Generate java class source file for one top-level sig at a time\n\t\tfor(int i = 0; i<sigs.size(); i++) {\n\t\t\tSig aSig = sigs.get(i);\n\t\t\tif (!aSig.isTopLevel()) continue;\n\t\t\tif(!aSig.builtin){ // User-defined sig\n\t\t\t\tif(aSig.isSubsig != null){\n\t\t\t\t\tPrimSig pSig = (PrimSig) aSig;\n\t\t\t\t\trecursiveGenerate(null, pSig);\t\n\t\t\t\t} else assertMessage(\"TODO: Dealt with subset sig\");\n\t\t\t}\n\t\t\telse assertMessage(\"TODO: Dealt with built-in sig\");\n\t\t}\n\t}", "public hu.blackbelt.epsilon.runtime.model.test1.data.DataModel build() {\n final hu.blackbelt.epsilon.runtime.model.test1.data.DataModel _newInstance = hu.blackbelt.epsilon.runtime.model.test1.data.DataFactory.eINSTANCE.createDataModel();\n if (m_featureNameSet) {\n _newInstance.setName(m_name);\n }\n if (m_featureEntitySet) {\n _newInstance.getEntity().addAll(m_entity);\n } else {\n if (!m_featureEntityBuilder.isEmpty()) {\n for (hu.blackbelt.epsilon.runtime.model.test1.data.util.builder.IDataBuilder<? extends hu.blackbelt.epsilon.runtime.model.test1.data.Entity> builder : m_featureEntityBuilder) {\n _newInstance.getEntity().add(builder.build());\n }\n }\n }\n return _newInstance;\n }", "@FunctionalInterface\n public interface Builder {\n BuildingModel build(int x, int y, int angle, int floor);\n }", "GoalModel createGoalModel();", "@Override\n public void buildView(IModelForm modelForm) {\n FormSection inputSection = modelForm.addSection(\"Input\");\n inputSection.addEntityListField(_inputGrids, new Grid3dTimeDepthSpecification());\n inputSection.addEntityComboField(_velocityVolume, new VelocityVolumeSpecification());\n inputSection.addEntityComboField(_aoi, AreaOfInterest.class).showActiveFieldToggle(_aoiFlag);\n\n // Build the conversion section.\n FormSection parameterSection = modelForm.addSection(\"Conversion\");\n parameterSection.addRadioGroupField(_conversionMethod, Method.values());\n\n // Build the output section.\n FormSection outputSection = modelForm.addSection(\"Output\");\n outputSection.addTextField(_outputGridSuffix);\n }", "private Builder() {\n super(org.ga4gh.models.CallSet.SCHEMA$);\n }", "public Boolean buildModel(DaoStage activeStage) {\n\n // if no previous model, create locus, actor, prop lists\n if (activeStage.getLocusList().locii.size() == 0) {\n // create actor list mirroring locus list\n List<String> actorList = new ArrayList<>();\n activeStage.setActorList(actorList);\n // create stage locus list mirroring locus list\n List<String> propList = new ArrayList<>();\n activeStage.setPropList(propList);\n List<Integer> propFgColorList = new ArrayList<>();\n activeStage.setPropFgColorList(propFgColorList);\n List<Integer> propBgColorList = new ArrayList<>();\n activeStage.setPropBgColorList(propBgColorList);\n\n // create prop list\n DaoLocusList daoLocusList = new DaoLocusList();\n activeStage.setLocusList(daoLocusList);\n // establish ring max id list\n Integer ring = 0;\n Integer ringId = 0;\n List<Integer> ringMaxId = new ArrayList<>();\n ringMaxId.add(0);\n\n // seed 1st locus at 0,0\n DaoLocus origin = new DaoLocus();\n // mirror locus list add with actor & prop\n mirrorLociiAdd(origin, daoLocusList, actorList, propList, propFgColorList, propBgColorList);\n // set nickname, seed vert\n origin.setNickname(setLocusName(ring, ringMaxId.get(ring)));\n origin.setVertX(RING_CENTER_X);\n origin.setVertY(RING_CENTER_Y);\n origin.setVertZ(RING_CENTER_Z);\n Log.d(TAG, origin.toString() + \" at origin.\");\n\n // populate 1st ring around origin\n ++ring; // 1st\n ringId = populateLocii(ring, ringMaxId.get(ring - 1), daoLocusList, origin, actorList,\n propList, propFgColorList, propBgColorList);\n ringMaxId.add(ringId);\n\n // populate next ring by expanding around each locus in previous ring\n while (ring < activeStage.getRingSize()) {\n ++ring;\n // for each locus in previous ring\n Integer locusIndex = ringMaxId.get(ring - 2) + 1;\n ringId = ringMaxId.get(ring - 1);\n while (locusIndex < ringMaxId.get(ring - 1) + 1) {\n origin = daoLocusList.locii.get(locusIndex);\n ringId = populateLocii(ring, ringId, daoLocusList, origin, actorList,\n propList, propFgColorList, propBgColorList);\n ++locusIndex;\n }\n ringMaxId.add(ringId);\n }\n // create bounding rect with min/max inverted\n setBoundingRect(new RectF(RING_MAX_X, RING_MAX_Y, RING_MIN_X, RING_MIN_Y));\n // create bounding rect\n initBoundingRect(activeStage);\n }\n else if (activeStage.getPropFgColorList() == null ||\n activeStage.getPropBgColorList() == null ||\n activeStage.getPropFgColorList().size() != activeStage.getPropList().size() ||\n activeStage.getPropBgColorList().size() != activeStage.getPropList().size()) {\n Log.e(TAG, \"BuildModel finds depopulated FG,BG Color Lists...repairing...\");\n List<Integer> propFgColorList = new ArrayList<>();\n activeStage.setPropFgColorList(propFgColorList);\n List<Integer> propBgColorList = new ArrayList<>();\n activeStage.setPropBgColorList(propBgColorList);\n // for each prop\n for (int i = 0; i < activeStage.getPropList().size(); i++) {\n // if prop defined\n if (!activeStage.getPropList().get(i).equals(DaoDefs.INIT_STRING_MARKER)) {\n Log.d(TAG, \"buildModel repairing prop(\" + i + \") \" + activeStage.getPropList().get(i));\n if (activeStage.getPropList().get(i).equals(DaoActor.ACTOR_MONIKER_FORBIDDEN)) {\n propFgColorList.add(DaoStage.STAGE_BG_COLOR);\n propBgColorList.add(DaoStage.STAGE_BG_COLOR);\n } else if (activeStage.getPropList().get(i).equals(DaoActor.ACTOR_MONIKER_MIRROR)) {\n String actorMoniker = activeStage.getActorList().get(i);\n if (!actorMoniker.equals(DaoDefs.INIT_STRING_MARKER)) {\n DaoActor daoActor = (DaoActor) getRepoProvider().getDalActor().getDaoRepo().get(actorMoniker);\n if (daoActor != null) {\n propFgColorList.add(daoActor.getForeColor());\n propBgColorList.add(DaoStage.STAGE_BG_COLOR);\n Log.d(TAG,\"buildModel adds mirror for actor \" + daoActor.getMoniker() + \" at \" + i);\n }\n else {\n // add empty fg/bg color\n propFgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n propBgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n }\n }\n }\n }\n else {\n String actorMoniker = activeStage.getActorList().get(i);\n if (!actorMoniker.equals(DaoDefs.INIT_STRING_MARKER)) {\n DaoActor daoActor = (DaoActor) getRepoProvider().getDalActor().getDaoRepo().get(actorMoniker);\n if (daoActor != null) {\n activeStage.getPropList().set(i, DaoActor.ACTOR_MONIKER_MIRROR);\n propFgColorList.add(daoActor.getForeColor());\n propBgColorList.add(DaoStage.STAGE_BG_COLOR);\n Log.d(TAG,\"buildModel adds mirror for actor \" + daoActor.getMoniker() + \" at \" + i);\n }\n else {\n // add empty fg/bg color\n propFgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n propBgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n }\n }\n else {\n // add empty fg/bg color\n propFgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n propBgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n }\n }\n }\n }\n return true;\n }", "GradleBuild create();", "RoomModel createRoomModel(RoomModel roomModel);", "abstract Object build();", "Object build();", "public void createModel() {\n\t\tmyShop = ShopFactory.eINSTANCE.createShop();\n\n\t\tfinal Country dk = ShopFactory.eINSTANCE.createCountry();\n\t\tdk.setName(\"Denmark\");\n\t\tdk.setAbbreviation(\"DK\");\n\t\tmyShop.getCountries().add(dk);\n\n\t\tfinal Country se = ShopFactory.eINSTANCE.createCountry();\n\t\tse.setName(\"Sweden\");\n\t\tse.setAbbreviation(\"SE\");\n\t\tmyShop.getCountries().add(se);\n\n\t\tfinal Contact a = ShopFactory.eINSTANCE.createContact();\n\t\ta.setName(\"a\");\n\t\ta.setCity(\"A\");\n\t\ta.setCountry(dk);\n\t\tmyShop.getContacts().add(a);\n\n\t\tfinal Contact b = ShopFactory.eINSTANCE.createContact();\n\t\tb.setName(\"b\");\n\t\tb.setCity(\"A\");\n\t\tb.setCountry(se);\n\t\tmyShop.getContacts().add(b);\n\t}", "CsticModel createInstanceOfCsticModel();", "@Override\n\t\tpublic Track build() {\n\t\t\treturn of(\n\t\t\t\t_name,\n\t\t\t\t_comment,\n\t\t\t\t_description,\n\t\t\t\t_source,\n\t\t\t\t_links,\n\t\t\t\t_number,\n\t\t\t\t_type,\n\t\t\t\t_extensions,\n\t\t\t\t_segments\n\t\t\t);\n\t\t}", "public void construct(){\n\t\tbuilder.buildPart1();\n\t\tbuilder.buildPart2();\n\t\tbuilder.retrieveResult();\n\t}", "public void build() {\n\t\tgenerate();\n\t\tstoreAns();\n\t\t// display();\n\t}", "public PhoneCall build() {\n return new PhoneCall(caller, callee, startTime, endTime);\n }", "abstract T build();", "SystemParamModel createSystemParamModel();", "TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Test name\");\n testEntity.setCheck(true);\n testEntity.setDateCreated(new Date(System.currentTimeMillis()));\n testEntity.setDescription(\"description\");\n\n Specialization specialization = new Specialization();\n specialization.setName(\"Frontend\");\n specialization.setLevel(\"Senior\");\n specialization.setYears(10);\n\n testEntity.setSpecialization(specialization);\n\n return testEntity;\n }", "CreationData creationData();", "public void doExecute() {\n\t\tparent.requestChange(new ModelChangeRequest(this.getClass(), parent,\n\t\t\t\t\"create\") {\n\t\t\t@Override\n\t\t\tprotected void _execute() throws Exception {\n\t\t\t\ttry {\n\t\t\t\t\tCompositeEntity parentModel = (CompositeEntity) parent;\n\t\t\t\t\tString componentName = null;\n\t\t\t\t\tif (model == null) {\n\t\t\t\t\t\tcomponentName = ModelUtils.findUniqueName(parentModel,\n\t\t\t\t\t\t\t\t\t\t clazz,\n\t\t\t\t\t\t\t\t\t\t name.equalsIgnoreCase(\"INPUT\") ? DEFAULT_INPUT_PORT : DEFAULT_OUTPUT_PORT,\n\t\t\t\t\t\t\t\t\t\t name);\n\t\t\t\t\t\tcomponentName = ModelUtils.getLegalName(componentName);\n\t\t\t\t\t\tClass constructorClazz = CompositeEntity.class;\n\t\t\t\t\t\tif (clazz.getSimpleName().equals(\"TypedIOPort\")) {\n\t\t\t\t\t\t\tconstructorClazz = ComponentEntity.class;\n\t\t\t\t\t\t} else if (clazz.getSimpleName().equals(\n\t\t\t\t\t\t\t\t\"TextAttribute\")) {\n\t\t\t\t\t\t\tconstructorClazz = NamedObj.class;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (clazz.getSimpleName().equals(\"Vertex\")) {\n\t\t\t\t\t\t\tTypedIORelation rel = new TypedIORelation(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tchild = new Vertex(rel, \"Vertex\");\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tConstructor constructor = clazz.getConstructor(\n\t\t\t\t\t\t\t\t\tconstructorClazz, String.class);\n\n\t\t\t\t\t\t\tchild = (NamedObj) constructor.newInstance(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tif (child instanceof TypedIOPort) {\n\t\t\t\t\t\t\t\tboolean isInput = name\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"INPUT\");\n\t\t\t\t\t\t\t\t((TypedIOPort) child).setInput(isInput);\n\t\t\t\t\t\t\t\t((TypedIOPort) child).setOutput(!isInput);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (model instanceof TypedIOPort) {\n\t\t\t\t\t\t\tname = ((TypedIOPort) model).isInput() ? DEFAULT_INPUT_PORT\n\t\t\t\t\t\t\t\t\t: DEFAULT_OUTPUT_PORT;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcomponentName = ModelUtils.findUniqueName(parentModel, model.getClass(), name, name);\n\t\t\t\t\t\tcomponentName = ModelUtils.getLegalName(componentName);\n\t\t\t\t\t\tif (model instanceof Vertex) {\n\t\t\t\t\t\t\tTypedIORelation rel = new TypedIORelation(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tchild = new Vertex(rel, \"Vertex\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchild = (NamedObj) model\n\t\t\t\t\t\t\t\t\t.clone(((CompositeEntity) parentModel)\n\t\t\t\t\t\t\t\t\t\t\t.workspace());\n\t\t\t\t\t\t\tchild.setName(componentName);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tComponentUtility.setContainer(child, parentModel);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcreateDefaultValues(child);\n\t\t\t\t\t\n\t\t\t\t\tif (location != null) {\n\t\t\t\t\t\tModelUtils.setLocation(child, location);\n\t\t\t\t\t}\n\t\t\t\t\tsetChild(child);\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tgetLogger().error(\"Unable to create component\", e);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\t}", "private CreateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\n\tpublic void createAction(Model m) {\n\t\t\n\t}", "FlowRule build();", "CsticGroupModel createInstanceOfCsticGroupModel();", "For createFor();", "public String build() {\n\treturn prefixes.toString() + \" \\n CONSTRUCT { \" + variables.toString()\n\t\t+ \" } WHERE { \" + wheres.toString() + \" }\";\n }", "@NonNull\n @MainThread\n protected abstract LiveData<ApiResponse<RequestType>> createCall();", "public void create(){}", "private Builder() {\n super(com.autodesk.ws.avro.Call.SCHEMA$);\n }", "public NewMemberRequest build() {\r\n return newMemberRequest;\r\n }", "public PredictRequest build() {\n\n\t\t\tcheckArgument(!Strings.isNullOrEmpty(url), \"url is required\");\n\t\t\tcheckArgument(!Strings.isNullOrEmpty(service), \"service name is required\");\n\t\t\tcheckArgument(data != null, \"data is required\");\n\n\t\t\tPredictRequest request = new PredictRequest();\n\t\t\trequest.baseURL = url;\n\t\t\tJsonObject requestData = new JsonObject();\n\t\t\trequestData.addProperty(\"service\", service);\n\n\t\t\tJsonObject paramsObj = new JsonObject();\n\t\t\tif (input != null)\n\t\t\t\tparamsObj.add(\"input\", input);\n\t\t\tif (output != null)\n\t\t\t\tparamsObj.add(\"output\", output);\n\t\t\tif (mllibParams != null)\n\t\t\t\tparamsObj.add(\"mllib\", mllibParams);\n\n\t\t\tif (!paramsObj.isJsonNull()) {\n\t\t\t\trequestData.add(\"parameters\", paramsObj);\n\t\t\t}\n\n\t\t\trequestData.add(\"data\", data);\n\n\t\t\trequest.data = requestData;\n\t\t\treturn request;\n\t\t}", "@Override\n protected Professional generateCreateRequest() {\n return new Professional().withId(FIRST_ID).withFirstName(FIRST_NAME).withLastName(LAST_NAME)\n .withCompanyName(COMPANY_NAME);\n }", "private ColumnDefinitionModel createModel()\r\n {\r\n ColumnDefinitionModel model = new ColumnDefinitionModel();\r\n\r\n List<String> columnNames = Arrays.asList(ColumnHeaders.TIME.toString(), ColumnHeaders.LAT.toString(),\r\n ColumnHeaders.LON.toString(), ColumnHeaders.NAME.toString(), ColumnHeaders.NAME2.toString());\r\n\r\n CSVParseParameters parameters = new CSVParseParameters();\r\n parameters.setColumnNames(columnNames);\r\n\r\n parameters.setColumnsToIgnore(New.<Integer>list(4));\r\n\r\n SpecialColumn timeColumn = new SpecialColumn();\r\n timeColumn.setColumnIndex(0);\r\n timeColumn.setColumnType(ColumnType.TIMESTAMP);\r\n timeColumn.setFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\r\n\r\n SpecialColumn latColumn = new SpecialColumn();\r\n latColumn.setColumnIndex(1);\r\n latColumn.setColumnType(ColumnType.LAT);\r\n latColumn.setFormat(\"Decimal\");\r\n\r\n SpecialColumn lonColumn = new SpecialColumn();\r\n lonColumn.setColumnIndex(2);\r\n lonColumn.setColumnType(ColumnType.LON);\r\n lonColumn.setFormat(\"Decimal\");\r\n\r\n parameters.getSpecialColumns().add(timeColumn);\r\n parameters.getSpecialColumns().add(latColumn);\r\n parameters.getSpecialColumns().add(lonColumn);\r\n\r\n model.setSelectedParameters(parameters);\r\n\r\n return model;\r\n }", "T2 build();", "InstanceModel createInstanceOfInstanceModel();", "@Override\n public MusicOperation build() {\n MusicOperation m = new MusicModel(this.tempo);\n listNotes.forEach(n -> m.addNote(n));\n return m;\n }", "public abstract void build(ClassifierData<U> inputData);", "WithCreate withCreationData(CreationData creationData);", "T build();", "T build();", "Make createMake();", "private void buildModel() {\n\t\trabbitSpace = new RabbitsGrassSimulationSpace(xSize, ySize);\n\n\t\trabbitSpace.spreadGrass(initGrass);\n\n\t\tfor (int i = 0; i < numRabbits && i < xSize * ySize; i++) {\n\t\t\taddNewRabbit();\n\t\t}\n\n\t\tfor (int i = 0; i < rabbitList.size(); i++) {\n\t\t\tRabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n\t\t\trabbit.report();\n\t\t}\n\t}", "public Object build();", "GameModel createGameModel(GameModel gameModel);", "public void buildModel() {\n space = new RabbitsGrassSimulationSpace(gridSize);\n space.setModel(this);\n space.spreadGrass(numInitGrass);\n\n for (int i = 0; i < numInitRabbits; i++) {\n addNewRandomRabbit();\n }\n }", "protected Phone createPhone(Models model)\n {\n Phone phone = null;\n PhoneComponentFactory componentFactory = new TurkeyComponentFactory();\n\n switch(model){\n case MaximumEffort:\n phone = new MaximumEffortModel(componentFactory);\n phone.setName(\"Turkey - MaximumEffort Model\");\n break;\n case IflasDeluxe:\n phone = new IflasDeluxeModel(componentFactory);\n phone.setName(\"Turkey - IflasDeluxe Model\");\n break;\n case I_I_Aman_Iflas:\n phone = new I_I_Aman_IflasModel(componentFactory);\n phone.setName(\"Turkey - I-I-Aman-Iflas Model\");\n break;\n }\n System.out.println(\"-> Phone model is: \" + phone.getName());\n\n return phone;\n }", "void generateWriteParam2ContentValues(Builder methodBuilder, SQLiteModelMethod method, String paramName, TypeName paramType, ModelProperty property);", "public Model() {\n\t}", "public Model() {\n\t}", "private DataModelBuilder() {\n }", "public final CompletableFuture<CreateResponse> create(\n\t\t\tFunction<CreateRequest.Builder, ObjectBuilder<CreateRequest>> fn) throws IOException {\n\t\treturn create(fn.apply(new CreateRequest.Builder()).build());\n\t}", "public ModelService(ModelService source) {\n if (source.Id != null) {\n this.Id = new String(source.Id);\n }\n if (source.Cluster != null) {\n this.Cluster = new String(source.Cluster);\n }\n if (source.Name != null) {\n this.Name = new String(source.Name);\n }\n if (source.Runtime != null) {\n this.Runtime = new String(source.Runtime);\n }\n if (source.ModelUri != null) {\n this.ModelUri = new String(source.ModelUri);\n }\n if (source.Cpu != null) {\n this.Cpu = new Long(source.Cpu);\n }\n if (source.Memory != null) {\n this.Memory = new Long(source.Memory);\n }\n if (source.Gpu != null) {\n this.Gpu = new Long(source.Gpu);\n }\n if (source.GpuMemory != null) {\n this.GpuMemory = new Long(source.GpuMemory);\n }\n if (source.CreateTime != null) {\n this.CreateTime = new String(source.CreateTime);\n }\n if (source.UpdateTime != null) {\n this.UpdateTime = new String(source.UpdateTime);\n }\n if (source.ScaleMode != null) {\n this.ScaleMode = new String(source.ScaleMode);\n }\n if (source.Scaler != null) {\n this.Scaler = new Scaler(source.Scaler);\n }\n if (source.Status != null) {\n this.Status = new ServiceStatus(source.Status);\n }\n if (source.AccessToken != null) {\n this.AccessToken = new String(source.AccessToken);\n }\n if (source.ConfigId != null) {\n this.ConfigId = new String(source.ConfigId);\n }\n if (source.ConfigName != null) {\n this.ConfigName = new String(source.ConfigName);\n }\n if (source.ServeSeconds != null) {\n this.ServeSeconds = new Long(source.ServeSeconds);\n }\n if (source.ConfigVersion != null) {\n this.ConfigVersion = new String(source.ConfigVersion);\n }\n if (source.ResourceGroupId != null) {\n this.ResourceGroupId = new String(source.ResourceGroupId);\n }\n if (source.Exposes != null) {\n this.Exposes = new ExposeInfo[source.Exposes.length];\n for (int i = 0; i < source.Exposes.length; i++) {\n this.Exposes[i] = new ExposeInfo(source.Exposes[i]);\n }\n }\n if (source.Region != null) {\n this.Region = new String(source.Region);\n }\n if (source.ResourceGroupName != null) {\n this.ResourceGroupName = new String(source.ResourceGroupName);\n }\n if (source.Description != null) {\n this.Description = new String(source.Description);\n }\n if (source.GpuType != null) {\n this.GpuType = new String(source.GpuType);\n }\n if (source.LogTopicId != null) {\n this.LogTopicId = new String(source.LogTopicId);\n }\n }", "@Override\n public void build() {\n\n // Create the missive\n this.createMissive();\n }", "public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }", "public Product build() {\n Product product = new Product();\n product.product_id = this.product_id;\n product.product_name = this.product_name;\n product.price = this.price;\n product.in_stock = this.in_stock;\n product.amount = this.amount;\n product.ordered_amount = this.ordered_amount;\n product.order_price = this.order_price;\n\n return product;\n }", "public Model createByUserModel(int id, Model model) {\n User user = userService.get(id);\n Set<Project> projects = user.getProjects();\n model.addAttribute(\"user\", user);\n model.addAttribute(\"myProjects\", projects);\n return model;\n }", "@Override\r\n\tpublic BuilderResponse call() throws Exception {\n\t\tint createsSubmitted = 0;\r\n\t\tint pendingCreates = 0;\r\n\t\t// Walk over the source list\r\n\t\tMap<MigratableObjectType, Set<String>> batchesToCreate = new HashMap<MigratableObjectType, Set<String>>();\r\n\t\tfor(MigratableObjectData source: sourceList){\r\n\t\t\t// Is this entity already in the destination?\r\n\t\t\tif(!destMap.containsKey(source.getId())){\r\n\t\t\t\t// We can only add this entity if its dependencies are in the destination\r\n\t\t\t\tif(JobUtil.dependenciesFulfilled(source, destMap.keySet())) {\r\n\t\t\t\t\tMigratableObjectType objectType = source.getId().getType();\r\n\t\t\t\t\tSet<String> batchToCreate = batchesToCreate.get(objectType);\r\n\t\t\t\t\tif (batchToCreate==null) {\r\n\t\t\t\t\t\tbatchToCreate = new HashSet<String>();\r\n\t\t\t\t\t\tbatchesToCreate.put(objectType, batchToCreate);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbatchToCreate.add(source.getId().getId());\r\n\t\t\t\t\tcreatesSubmitted++;\r\n\t\t\t\t\tif(batchToCreate.size() >= this.batchSize){\r\n\t\t\t\t\t\tJob createJob = new Job(batchToCreate, objectType, Type.CREATE);\r\n\t\t\t\t\t\tthis.queue.add(createJob);\r\n\t\t\t\t\t\tbatchesToCreate.remove(objectType);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t// This will get picked up in a future round.\r\n\t\t\t\t\tpendingCreates++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Submit any creates left over\r\n\t\tfor (MigratableObjectType objectType : batchesToCreate.keySet()) {\r\n\t\t\tSet<String> batchToCreate = batchesToCreate.get(objectType);\r\n\t\t\tif(!batchToCreate.isEmpty()){\r\n\t\t\t\tJob createJob = new Job(batchToCreate, objectType, Type.CREATE);\r\n\t\t\t\tthis.queue.add(createJob);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbatchesToCreate.clear();\r\n\t\t// Report the results.\r\n\t\treturn new BuilderResponse(createsSubmitted, pendingCreates);\r\n\t}", "@RequestMapping(method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\t@Transactional\r\n\tpublic Object create(@RequestBody Model model) {\r\n\t\ttry {\r\n\t\t\tgetService().create(model);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Create exception for \" + model, e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "public DynamicModelPart buildUsingSeeds() {\n return this.rotateModelPart(this.rotation).addCuboidsUsingSeeds();\n }", "protected EObject createInitialModel() {\r\n \t\tReqIF root = reqif10Factory.createReqIF();\r\n \r\n \t\tReqIFHeader header = reqif10Factory.createReqIFHeader();\r\n \t\troot.setTheHeader(header);\r\n \r\n \t\t// Setting the time gets more and more complicated...\r\n \t\ttry {\r\n \t\t\tGregorianCalendar cal = new GregorianCalendar();\r\n \t\t\tcal.setTime(new Date());\r\n \t\t\theader.setCreationTime(DatatypeFactory.newInstance()\r\n \t\t\t\t\t.newXMLGregorianCalendar(cal));\r\n \t\t} catch (DatatypeConfigurationException e) {\r\n \t\t\tthrow new RuntimeException(e);\r\n \t\t}\r\n \r\n \t\theader.setSourceToolId(\"ProR (http://pror.org)\");\r\n //\t\theader.setAuthor(System.getProperty(\"user.name\"));\r\n \r\n \t\tReqIFContent content = reqif10Factory.createReqIFContent();\r\n \t\troot.setCoreContent(content);\r\n \r\n \t\t// Add a DatatypeDefinition\r\n \t\tDatatypeDefinitionString ddString = reqif10Factory\r\n \t\t\t\t.createDatatypeDefinitionString();\r\n \t\tddString.setLongName(\"T_String32k\");\r\n \t\tddString.setMaxLength(new BigInteger(\"32000\"));\r\n \t\tcontent.getDatatypes().add(ddString);\r\n \r\n \t\t// Add a Specification\r\n \t\tSpecification spec = reqif10Factory.createSpecification();\r\n \t\tspec.setLongName(\"Specification Document\");\r\n \t\tcontent.getSpecifications().add(spec);\r\n \r\n \t\t// Add a SpecType\r\n \t\tSpecObjectType specType = reqif10Factory.createSpecObjectType();\r\n \t\tspecType.setLongName(\"Requirement Type\");\r\n \t\tcontent.getSpecTypes().add(specType);\r\n \r\n \t\t// Add an AttributeDefinition\r\n \t\tAttributeDefinitionString ad = reqif10Factory\r\n \t\t\t\t.createAttributeDefinitionString();\r\n \t\tad.setType(ddString);\r\n \t\tad.setLongName(\"Description\");\r\n \t\tspecType.getSpecAttributes().add(ad);\r\n \r\n \t\t// Configure the Specification View\r\n \t\tProrToolExtension extension = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createProrToolExtension();\r\n \t\troot.getToolExtensions().add(extension);\r\n \t\tProrSpecViewConfiguration prorSpecViewConfiguration = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createProrSpecViewConfiguration();\r\n \t\textension.getSpecViewConfigurations().add(prorSpecViewConfiguration);\r\n \t\tprorSpecViewConfiguration.setSpecification(spec);\r\n \t\tColumn col = ConfigurationFactory.eINSTANCE.createColumn();\r\n \t\tcol.setLabel(\"Description\");\r\n \t\tcol.setWidth(400);\r\n \t\tprorSpecViewConfiguration.getColumns().add(col);\r\n \r\n \t\tColumn leftHeaderColumn = ConfigFactory.eINSTANCE.createColumn();\r\n \t\tleftHeaderColumn\r\n \t\t\t\t.setWidth(ConfigurationUtil.DEFAULT_LEFT_HEADER_COLUMN_WIDTH);\r\n \t\tleftHeaderColumn\r\n \t\t\t\t.setLabel(ConfigurationUtil.DEFAULT_LEFT_HEADER_COLUMN_NAME);\r\n \t\tprorSpecViewConfiguration.setLeftHeaderColumn(leftHeaderColumn);\r\n \r\n \t\t// Configure the Label configuration\r\n \t\tProrGeneralConfiguration generalConfig = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createProrGeneralConfiguration();\r\n \t\tLabelConfiguration labelConfig = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createLabelConfiguration();\r\n \t\tlabelConfig.getDefaultLabel().add(\"Description\");\r\n \t\tgeneralConfig.setLabelConfiguration(labelConfig);\r\n \t\textension.setGeneralConfiguration(generalConfig);\r\n \r\n \t\t// Create one Requirement\r\n \t\tSpecObject specObject = reqif10Factory.createSpecObject();\r\n \t\tspecObject.setType(specType);\r\n \t\tcontent.getSpecObjects().add(specObject);\r\n \t\tAttributeValueString value = reqif10Factory.createAttributeValueString();\r\n \t\tvalue.setTheValue(\"Start editing here.\");\r\n \t\tvalue.setDefinition(ad);\r\n \t\tspecObject.getValues().add(value);\r\n \r\n \t\t// Add the requirement to the Specification\r\n \t\tSpecHierarchy specHierarchy = reqif10Factory.createSpecHierarchy();\r\n \t\tspec.getChildren().add(specHierarchy);\r\n \t\tspecHierarchy.setObject(specObject);\t\r\n \t\treturn root;\r\n \t}", "public <T> T createModel(T referenceModel) throws CreateModelException {\n return createModel(referenceModel, true);\n }", "@Override\n\tpublic void create() {\n\n\t}", "public ModelInfo generateInfo() { \n ModelInfo info = new ModelInfo();\n \n // Store basic info\n info.author = Author;\n info.citation = Citation;\n info.description = Description;\n info.property = Property;\n info.training = Model.TrainingStats.NumberTested + \" entries: \" + TrainingSet;\n info.notes = Notes;\n info.trainTime = new SimpleDateFormat(\"dMMMyy HH:mm z\").format(Model.getTrainTime());\n \n // Store units or class names\n if (Model instanceof AbstractClassifier) {\n info.classifier = true;\n info.units = \"\";\n AbstractClassifier clfr = (AbstractClassifier) Model;\n boolean started = false;\n for (String name : clfr.getClassNames()) {\n if (started) {\n info.units += \";\";\n }\n info.units += name;\n started = true;\n }\n } else {\n info.classifier = false;\n info.units = Units;\n }\n \n // Store names of models\n info.dataType = Dataset.printDescription(true);\n info.modelType = Model.printDescription(true);\n \n // Store validation performance data\n info.valMethod = Model.getValidationMethod();\n if (Model.isValidated()) {\n info.valScore = Model.ValidationStats.getStatistics();\n }\n \n return info;\n }", "private Model(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void create() {\n\t\t\n\t}", "public ISvnModel buildSvnModel() {\r\n VssModel vssModel = buildVssModel();\r\n if (incrementalWarning)\r\n LOG.warn(\"unsupported operations(delete,rename,share,branch) detected in project, incremental dump can be broken\");\r\n VssTransform tr = new VssTransform(this);\r\n SvnModel svnModel = tr.transform(vssModel);\r\n LOG.info(\"Svn model has been created\");\r\n LOG.info(\"total number of revisions in svn model: \" + svnModel.getRevisions().size());\r\n return svnModel;\r\n }" ]
[ "0.7225402", "0.7108561", "0.6381432", "0.63314676", "0.63314676", "0.63314676", "0.63314676", "0.63314676", "0.63314676", "0.63314676", "0.6179146", "0.58920944", "0.57371986", "0.5660615", "0.56603396", "0.55587757", "0.55421525", "0.55336225", "0.55090666", "0.5456042", "0.54194456", "0.5392358", "0.5390378", "0.53819984", "0.537673", "0.5367875", "0.5353319", "0.5350229", "0.5332462", "0.5326985", "0.53170913", "0.53066605", "0.5290194", "0.528829", "0.5286955", "0.5286323", "0.5271693", "0.52602535", "0.52567184", "0.5250777", "0.5250096", "0.5247423", "0.52291876", "0.52091736", "0.5197143", "0.5192412", "0.51919657", "0.5186907", "0.5182393", "0.5178359", "0.5177147", "0.51751685", "0.5174077", "0.51706266", "0.5157627", "0.5155381", "0.5148197", "0.5142514", "0.51417637", "0.5140132", "0.5139674", "0.51251435", "0.51001054", "0.50987613", "0.50883365", "0.5080485", "0.5074883", "0.5072961", "0.5068603", "0.50605243", "0.50545913", "0.50500107", "0.5046719", "0.5046719", "0.50443333", "0.5027169", "0.5023805", "0.50190985", "0.501772", "0.50147814", "0.5007536", "0.5005043", "0.5005043", "0.49979904", "0.49968952", "0.4979589", "0.4978257", "0.4975885", "0.49633095", "0.49623063", "0.49555725", "0.49534088", "0.49531582", "0.49512005", "0.49480242", "0.49433646", "0.49425164", "0.494224", "0.49215513", "0.49156997", "0.49144953" ]
0.0
-1
verify the required parameter 'workspaceId' is set
@SuppressWarnings("rawtypes") private okhttp3.Call createModelValidateBeforeCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException { if (workspaceId == null) { throw new ApiException("Missing the required parameter 'workspaceId' when calling createModel(Async)"); } // verify the required parameter 'model' is set if (model == null) { throw new ApiException("Missing the required parameter 'model' when calling createModel(Async)"); } okhttp3.Call localVarCall = createModelCall(workspaceId, model, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }", "public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }", "@Test\r\n \tpublic void testProjectID() {\n \t\tassertNull(localProject.getGlobalProjectId());\r\n \t}", "public String getWorkspaceId() {\n return workspaceId;\n }", "public String getWorkspaceId() {\n return this.workspaceId;\n }", "public UUID getWorkspaceId() {\n return workspaceId;\n }", "@Test\n\tpublic void getProjectByIdInvalid() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.getProjectById(7L);\n\t}", "@Test\n\tpublic void updateProjectsInvalidId() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.updateProject(7L, project);\n\t}", "@Test\n public void checkExistentWidgetAndParameter() throws Exception {\n\n driver = WidgetUtils.OpenWidgetEditMode(driver, wait, baseUrl, widgetName);\n\n //Step 3 - Check if the parameter exist in 'Settings'\n //Move to the iframe\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='solutionNavigatorAndContentPanel']/div[4]/table/tbody/tr[2]/td/div/div/table/tbody/tr/td/iframe\")));\n WebElement frameCDEDashboard = driver.findElement(By.xpath(\"//div[@id='solutionNavigatorAndContentPanel']/div[4]/table/tbody/tr[2]/td/div/div/table/tbody/tr/td/iframe\"));\n driver.switchTo().frame(frameCDEDashboard);\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='layoutPanelButton']\")));\n assertTrue(driver.findElement(By.xpath(\"//div[@class='layoutPanelButton']\")).isEnabled());\n //Press 'Settings'\n driver.findElement(By.xpath(\"//div[@id='headerLinks']/div[5]/a\")).click();\n wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.xpath(\"//div[@id='popup']\")));\n assertNotNull(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/input\")));\n //The parameter MUST be equal to the one set\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@id='widgetParameters']/div/span\")));\n assertEquals(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/span\")).getText(), paramName);\n //Press on the check box\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@id='widgetParameters']/div/input\")));\n assertTrue(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/input\")).isSelected());\n //Press button 'Cancel'\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='popupbuttons']/button[@id='popup_state0_buttonCancel']\")));\n driver.findElement(By.xpath(\"//div[@class='popupbuttons']/button[@id='popup_state0_buttonCancel']\")).click();\n\n\n //Step 4 - Click on Component Panel and check if the widget is listed\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='componentsPanelButton']\")));\n driver.findElement(By.xpath(\"//div[@class='componentsPanelButton']\")).click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/h3/span\")));\n driver.findElement(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/h3/span\")).click();\n //Getting the element where the widget created is displayed\n WebElement listOfWidgets = driver.findElement(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/div\"));\n //Check if the widget created is listed\n WebElement theWidgetCreated = listOfWidgets.findElement(By.xpath(\"//a[@class='tooltip' and contains(text(),'\" + widgetName + \"')]\"));\n assertNotNull(theWidgetCreated);\n assertEquals(theWidgetCreated.getText(), widgetName);\n\n\n //Step 5 - Click in the widget created and check if the widget is add at Components column and Properties\n theWidgetCreated.click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//table[@id='table-cdfdd-components-components']/tbody/tr[4]/td\")));\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//table[@id='table-cdfdd-components-properties']/tbody/tr[2]/td\")));\n assertEquals(driver.findElement(\n By.xpath(\"//table[@id='table-cdfdd-components-components']/tbody/tr[4]/td\")).getText(),\n widgetName + \" Widget\");\n assertEquals(driver.findElement(\n By.xpath(\"//table[@id='table-cdfdd-components-properties']/tbody/tr[2]/td\")).getText(),\n \"Parameter \" + paramName);\n }", "public void setWorkspace( Integer workspace ) {\n this.workspace = workspace;\n }", "public void setWorkspace(String workspace) {\n this.workspace = workspace;\n }", "protected static Workspace getWorkspace(String workspaceId)\n throws AnaplanAPIException {\n if (workspaceId == null || workspaceId.isEmpty()) {\n LOG.error(\"A workspace ID must be provided\");\n return null;\n }\n Workspace result = null;\n\n if (!noValidateWorkspace) {\n try {\n result = getService().getWorkspace(workspaceId);\n } catch (WorkspaceNotFoundException | UnknownAuthenticationException ignored) {\n }\n }\n if (result == null) {\n WorkspaceData data = new WorkspaceData();\n data.setId(workspaceId);\n try {\n result = new Workspace(getService(), data);\n } catch (UnknownAuthenticationException ignored) {\n }\n }\n return result;\n }", "public BaseMsg verifyProjectInfo(long projectId);", "private boolean assertIdAndVarName() {\r\n\t\tfinal boolean isValidId = assertNotEmpty(cmpCfg.getId(),\r\n\t\t\t\tYValidationAspekt.VIEW_ID_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValidVar = assertNotEmpty(cmpCfg.getVariableName(),\r\n\t\t\t\tYValidationAspekt.VIEW_VAR_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValid = isValidId && isValidVar;\r\n\t\treturn isValid;\r\n\r\n\t}", "private void validatePathParameters(final Integer datacenterId) throws NotFoundException\n {\n if (!service.isAssignedTo(datacenterId, RemoteServiceType.NODE_COLLECTOR))\n {\n throw new NotFoundException(APIError.NOT_ASSIGNED_REMOTE_SERVICE_DATACENTER);\n }\n }", "public void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public boolean isIdExist(int projectId) throws EmployeeManagementException;", "boolean canAccess(String workspaceName) throws NoSuchWorkspaceException, RepositoryException;", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "@Test\n\tpublic void deleteProjectsInvalidID() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.deleteProject(7L);\n\t}", "@Test\n public void testBuildWithValidParametersReturnsProjectExportParametersInstance() {\n // Arrange\n testling.setProjectName(\"validProjectName\")\n .setProjectExportPath(\"validProjectExportPath\");\n\n // Assert\n ProjectExportParameters parameters = testling.build();\n\n // Act\n assertThat(\"Expect not null.\", parameters, is(notNullValue()));\n }", "@Test\n\tpublic void testBuildWithValidParametersReturnsProjectExportParametersInstance() {\n\t\t// Arrange\n\t\ttestling.setProjectName(\"validProjectName\")\n\t\t\t\t.setProjectExportPath(\"validProjectExportPath\");\n\n\t\t// Assert\n\t\tProjectExportParameters parameters = testling.build();\n\n\t\t// Act\n\t\tassertThat(\"Expect not null.\", parameters, is(notNullValue()));\n\t}", "public void testPropFindForNonExistingWorkspace() throws Exception\n {\n String file = TestUtils.getFileName();\n\n ContainerResponse response =\n service(WebDAVMethods.PROPFIND, getPathWS() + \"_\" + file, \"\", null, null);\n assertEquals(HTTPStatus.CONFLICT, response.getStatus());\n }", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "public interface WorkspaceContext {\n\n\n /**\n * Retorna a representação do workspace.\n *\n * @return\n */\n WorkspaceRepresentation getWorkspace();\n\n /**\n * Define o projeto de trabalho.\n *\n * @param projectRepresentation\n */\n void setWorkingProject(ProjectRepresentation projectRepresentation);\n\n\n /**\n * Retorna o projeto de trabalho.\n *\n * @return\n */\n ProjectRepresentation getWorkingProject();\n}", "protected void addWorkspace( String workspaceName ) {\n }", "@Reference\n public void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public void testGetProjectPhasesLong_NotExist() throws Exception {\n Project project = persistence.getProjectPhases(33245);\n assertNull(\"Should return null.\", project);\n }", "protected void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "@Test\n\tpublic void query_for_build_project_is_scoped_to_BuildProject() {\n\t\tEnvironmentContext cx = null;\n\t\ttry {\n\t\t\tcx = new EnvironmentContext();\n\t\t} catch (Exception e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t// And a new repository with that connection\n\t\tBuildProjectRepository repository = new BuildProjectRepositoryApiClient(cx);\n\t\t// When I build the query for story statuses\n\t\tQuery query = repository.buildQueryForAllBuildProjects();\n\t\t// Then the asset type is BuildProject\n\t\tassertEquals(\"BuildProject\", query.getAssetType().getToken());\n\t}", "private void checkAuthSessionId() {\n val auth = config.getString(\"authSessionId\");\n\n checkArgument(auth.length() > 10, \"auth string (sessionId) length is less than or equal to 10!\");\n }", "private void validateGetIdPInputValues(String resourceId) throws IdentityProviderManagementException {\n\n if (StringUtils.isEmpty(resourceId)) {\n String data = \"Invalid argument: Identity Provider resource ID value is empty\";\n throw IdPManagementUtil.handleClientException(IdPManagementConstants.ErrorMessage\n .ERROR_CODE_IDP_GET_REQUEST_INVALID, data);\n }\n }", "public boolean checkSelf() {\n\t\tboolean ok = true;\n\t\tif (controller == null) {\n\t\t\tSystem.err.println(\"CRParameters :: controller not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (scenario.length() == 0 && controller.getWorld().getHasScenarios()) {\n\t\t\tSystem.err.println(\"CRParameters :: scenario not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (reportFolderName.length() == 0) {\n\t\t\tSystem.err.println(\"CRParameters :: report folder not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (trialDuration <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: trial duration not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfRuns <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of runs not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfTrials <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of trials not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\treturn ok;\n\t}", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "public FormValidation doCheckExecutionParameters(@QueryParameter String value, @QueryParameter String agentId) {\n if (StringUtils.isEmpty(value) && StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n JsonObject executionParams = null;\n try {\n executionParams = SerializationHelper.fromJson(value, JsonObject.class);\n\n // In case the value parameter is empty\n if (executionParams == null)\n return FormValidation.ok();\n\n } catch (JsonSyntaxException e) {\n return FormValidation.error(\"Invalid JSON object\");\n }\n\n // In case the user did not select agent from the dropdown and/or in the JSON object, return ok.\n if ((executionParams.get(\"agentId\") != null && StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString())) || StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n // In case the user has selected the same agentId in the dropdown and in the JSON object, no need to show a warning\n if ((executionParams.get(\"agentId\") != null && StringUtils.equals(executionParams.get(\"agentId\").getAsString(), agentId)))\n return FormValidation.ok();\n\n // In case the user has selected two different agents in the dropdown and in the JSON object, show warning\n if (executionParams.get(\"agentId\") != null &&\n !StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString()) &&\n !StringUtils.isEmpty(agentId))\n return FormValidation.warning(\"You've selected an agent and specified a different one in executionParameters. The job will be executed on the selected agent.\");\n\n return FormValidation.ok();\n }", "protected void removeWorkspace( String workspaceName ) {\n }", "public boolean isSetRunId() {\n return this.runId != null;\n }", "@Test\n public void testErrorMsgWhenProjectNameIsEmpty() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String testAccount = \"Account2\";\n createProject.setAccountDropDown(testAccount);\n createProject.clickCreateProject();\n\n //Then\n String expectedMessage = \"Enter a name for your project\";\n String actualMessage = createProject.getProjectTitleMessage();\n softAssert.assertEquals(expectedMessage, actualMessage);\n softAssert.assertEquals(createProject.getProjectNameTextFieldColor(), RED_COLOR);\n softAssert.assertAll();\n }", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "public void setStagingWorkspaceId(Long stagingWorkspaceId) {\n this.stagingWorkspaceId = stagingWorkspaceId;\n }", "@Override\n public String validNameProject(String name, Integer project_Oid) {\n return null;\n }", "public String getWorkspaceName() {\n return workspaceName;\n }", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorWorkspaceNull() {\n PlannedActivity plannedActivity = new PlannedActivity(0,\n new Site(\"factory\", \"area\"), new Typology(\"typology\"),\n \"desctiption\", 0, true, 1, new Procedure(\"name\", \"smp\"), null);\n\n }", "@Test\n public void testWithActiveRunNoRunName() {\n MlflowContext mlflow = setupMlflowContext();\n mlflow.setExperimentId(\"123\");\n when(mockClient.createRun(any(CreateRun.class)))\n .thenReturn(RunInfo.newBuilder().setRunId(\"test-id\").build());\n mlflow.withActiveRun(activeRun -> {\n Assert.assertEquals(activeRun.getId(), \"test-id\");\n });\n verify(mockClient).createRun(any(CreateRun.class));\n verify(mockClient).setTerminated(any(), any());\n }", "@Test\n public void getComputerBuildByIdentifier() {\n Iterable<ComputerBuild> computerBuilds = computerBuildService.getAllComputerBuildsFromUser(USER_NAME_TO_TEST_OWNERSHIP_ENDPOINTS);\n ComputerBuild retrievedBuild = computerBuilds.iterator().next();\n assertNotNull(retrievedBuild);\n\n ComputerBuild foundBuild = computerBuildService.getComputerBuildByBuildIdentifier(retrievedBuild.getBuildIdentifier());\n\n assertNotNull(foundBuild);\n assertEquals(retrievedBuild.getBuildIdentifier(), foundBuild.getBuildIdentifier());\n assertEquals(retrievedBuild.getUser().getUsername(), foundBuild.getUser().getUsername());\n\n }", "public void test_61843() {\n \t\t// create the project and manually give it a settings file\n \t\tfinal String qualifier = getUniqueString();\n \t\tfinal IProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tIFile settingsFile = getFileInWorkspace(project, qualifier);\n \n \t\t// write some property values in the settings file\n \t\tProperties properties = new Properties();\n \t\tproperties.put(\"key\", \"value\");\n \t\tOutputStream output = null;\n \t\ttry {\n \t\t\tFile file = settingsFile.getLocation().toFile();\n \t\t\tfile.getParentFile().mkdirs();\n \t\t\toutput = new BufferedOutputStream(new FileOutputStream(file));\n \t\t\tproperties.store(output, null);\n \t\t} catch (FileNotFoundException e) {\n \t\t\tfail(\"1.0\", e);\n \t\t} catch (IOException e) {\n \t\t\tfail(\"1.1\", e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (output != null)\n \t\t\t\t\toutput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\t// ignore\n \t\t\t}\n \t\t}\n \n \t\t// add a log listener to ensure that no errors are reported silently\n \t\tILogListener logListener = new ILogListener() {\n \t\t\tpublic void logging(IStatus status, String plugin) {\n \t\t\t\tThrowable exception = status.getException();\n \t\t\t\tif (exception == null || !(exception instanceof CoreException))\n \t\t\t\t\treturn;\n \t\t\t\tif (IResourceStatus.WORKSPACE_LOCKED == ((CoreException) exception).getStatus().getCode())\n \t\t\t\t\tfail(\"3.0\");\n \t\t\t}\n \t\t};\n \n \t\t// listener to react to changes in the workspace\n \t\tIResourceChangeListener rclistener = new IResourceChangeListener() {\n \t\t\tpublic void resourceChanged(IResourceChangeEvent event) {\n \t\t\t\tnew ProjectScope(project).getNode(qualifier);\n \t\t\t}\n \t\t};\n \n \t\t// add the listeners\n \t\tPlatform.addLogListener(logListener);\n \t\tgetWorkspace().addResourceChangeListener(rclistener, IResourceChangeEvent.POST_CHANGE);\n \n \t\ttry {\n \t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"4.0\", e);\n \t\t} finally {\n \t\t\tPlatform.removeLogListener(logListener);\n \t\t\tgetWorkspace().removeResourceChangeListener(rclistener);\n \t\t}\n \t}", "@Test\n public void testValidToken() {\n try {\n int coachId = authBO.getUserIdAndValidateToken(\"thisisaworkingtoken\");\n Assert.assertTrue(coachId == 1);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "String checkIfProjectExists(String projectKey, String projectName);", "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 }", "@Override\r\n protected CommandStatus<StclContext, PStcl> verifyContext(CommandContext<StclContext, PStcl> cmdContext, PStcl self) {\n _name = getParameter(cmdContext, 1, null);\r\n if (StringUtils.isEmpty(_name)) {\r\n return error(cmdContext, self, Status.NO_NAME_DEFINED, \"no name to copy directory\");\r\n }\r\n\r\n // other verification\r\n return super.verifyContext(cmdContext, self);\r\n }", "@Test\n public void test_access_to_modify_team_success() {\n try {\n Assert.assertTrue(authBO.hasAccessToModifyTeam(1, 1));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "private boolean configurationInWorkspace(URL url) {\n \t\treturn true;\n \t}", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExists() {\n assertThrows(NotFoundException.class, () -> projectService.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Test\n public void testNoCoverageId() throws Exception {\n MockHttpServletResponse response = getAsServletResponse(\"wcs?service=WCS&version=2.0.1&request=GetCoverage\");\n checkOws20Exception(response, 400, \"MissingParameterValue\", \"coverageId\");\n }", "void verifyOrCreateReport(String reportId);", "public void testGetProjectByNameDoesNotExist() throws Exception {\r\n ProjectServiceRemote projectService = lookupProjectServiceRemoteWithUserRole();\r\n\r\n // 1 is the user id\r\n try {\r\n projectService.getProjectByName(\"xxxxx\", 1);\r\n fail(\"ProjectNotFoundFault expected.\");\r\n } catch (ProjectNotFoundFault e) {\r\n // expected\r\n }\r\n }", "@Test\n public void testFailureWithoutObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, \"\", 400);\n }", "private boolean ensureWorkspaceExists(String name, Credentials credentials) {\r\n\t\tSession sess = null;\r\n\t\ttry {\r\n\t\t\tsess = repository.login(credentials);\r\n\t\t\tString[] wsnames = sess.getWorkspace()\r\n\t\t\t\t\t.getAccessibleWorkspaceNames();\r\n\t\t\tif (inArr(name, wsnames)) {\r\n\t\t\t\t// workspace exists\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tlog.info(\" Creating Repository workspace \" + name);\r\n\t\t\t\tsess.getWorkspace().createWorkspace(name);\r\n\t\t\t}\r\n\t\t} catch (LoginException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t} catch (RepositoryException e) {\r\n\t\t\t// ugly check, we are getting something like workspace 'wsname'\r\n\t\t\t// already exists.\r\n\t\t\tif (e.getMessage().indexOf(\"already exists\") > 0) {\r\n\t\t\t\t// ignore exteption\r\n\t\t\t} else {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif (sess != null) {\r\n\t\t\t\tsess.logout();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Test\n public void allWorkspacesTest() throws ApiException {\n List<Workspace> response = api.allWorkspaces();\n\n // TODO: test validations\n }", "@Test\n public void testFailureWithNonexistantObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, reqFactory.createIdApiRequest(Types.PACKAGE).execute(hc), 404);\n }", "void checkStationId(int lineCount, String testStationId) {\n if (!stationId.equals(testStationId)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Station Id does not match previous station record \" +\n stationId + \": \" + testStationId);\n } // if (!stationId.equals(station.getStationId(\"\")))\n }", "public String getWorkspace() {\n return workspace;\n }", "protected void verifyRequestInputModelNone( String apiName)\n {\n // Given...\n OpenAPI api = readApi( apiName);\n\n // When...\n SystemInputDef inputDef = TcasesOpenApi.getRequestInputModel( api);\n\n // Then...\n assertThat( apiName + \" input model\", inputDef, is( nullValue()));\n }", "@Test\n public void testNeighborSystemId() throws Exception {\n isisNeighbor.setNeighborSystemId(systemId);\n result1 = isisNeighbor.neighborSystemId();\n assertThat(result1, is(systemId));\n }", "void commit(String workspace);", "protected void validateCredentials() throws BittrexApiException {\n String humanMessage = \"Please check environment variables or VM options\";\n if (Strings.isNullOrEmpty(this.getApiKey()))\n throw new BittrexApiException(\"Missing BITTREX_API_KEY. \" + humanMessage);\n if (Strings.isNullOrEmpty(this.getSecretKey()))\n throw new BittrexApiException(\"Missing BITTREX_SECRET_KEY. \" + humanMessage);\n }", "@Test\n\tpublic void testGetBuildVersion() {\n\t\tString buildVersion = rmitAnalyticsModel.getBuildVersion();\n\t\tAssert.assertNotNull(buildVersion);\n\t\tAssert.assertTrue(buildVersion.isEmpty());\n\t}", "@Test\n public void enableDebuggerTest() {\n String customerId = null;\n // Void response = api.enableDebugger(customerId);\n\n // TODO: test validations\n }", "public void checkParameters() {\n }", "public Workspace getWorkspace() {\n return workspace;\n }", "private void verifyWorkspace(long[][][] ids) {\n ArrayList<Long> allScreens = LauncherModel.loadWorkspaceScreensDb(getMockContext());\n assertEquals(ids.length, allScreens.size());\n int total = 0;\n\n for (int i = 0; i < ids.length; i++) {\n long screenId = allScreens.get(i);\n for (int y = 0; y < ids[i].length; y++) {\n for (int x = 0; x < ids[i][y].length; x++) {\n long id = ids[i][y][x];\n\n Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI,\n new String[]{LauncherSettings.Favorites._ID},\n \"container=-100 and screen=\" + screenId +\n \" and cellX=\" + x + \" and cellY=\" + y, null, null, null);\n if (id == -1) {\n assertEquals(0, c.getCount());\n } else {\n assertEquals(1, c.getCount());\n c.moveToNext();\n assertEquals(id, c.getLong(0));\n total++;\n }\n c.close();\n }\n }\n }\n\n // Verify that not other entry exist in the DB.\n Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI,\n new String[]{LauncherSettings.Favorites._ID},\n \"container=-100\", null, null, null);\n assertEquals(total, c.getCount());\n c.close();\n }", "@Override\r\n\tpublic Workspace getWorkspace() {\n\t\treturn null;\r\n\t}", "@Test\n public void postTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.postTemplateProgrammerProject(request);\n\n // TODO: test validations\n }", "private void validateITResource() {\n // TODO Auto-generated method stub\n \n }", "public static boolean isValidDivisionId(int divisionId) {\n return divisionId > 0 || divisionId == DIVISION_TEST || divisionId == DIVISION_GLOBAL;\n }", "private void assert_validPID(int pid) throws IllegalArgumentException{\n\t\tif(!validPID(pid)){\n\t\t\tthrow new IllegalArgumentException(\"Tried to get a property from layer '\"+ name\n\t\t\t\t\t+\"' with an invalid property ID: \"+pid);\n\t\t}\n\t}", "private boolean checkInstanceLocation(boolean show_login,\n final boolean force_prompt,\n URL default_workspace, String username, String password,\n Map<String, Object> parameters)\n {\n // Was \"-data @none\" specified on command line?\n final Location instanceLoc = Platform.getInstanceLocation();\n\n if (instanceLoc == null)\n {\n MessageDialog.openError(null,\n \"No workspace\", //$NON-NLS-1$\n \"Cannot run without a workspace\"); //$NON-NLS-1$\n return false;\n }\n\n // -data \"/some/path\" was provided...\n if (instanceLoc.isSet())\n {\n try\n { // Lock\n if (instanceLoc.lock())\n return true;\n // Two possibilities:\n // 1. directory is already in use\n // 2. directory could not be created\n final File ws_dir = new File(instanceLoc.getURL().getFile());\n if (ws_dir.exists())\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_InUseErrorTitle,\n NLS.bind(org.csstudio.platform.workspace.Messages.Workspace_InUseError,\n ws_dir.getCanonicalPath()));\n else\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_DirectoryErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_DirectoryError);\n }\n catch (IOException ex)\n {\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_LockErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_LockError\n + ex.getMessage());\n }\n return false;\n }\n\n // -data @noDefault or -data not specified, prompt and set\n if (default_workspace == null)\n default_workspace = instanceLoc.getDefault();\n\n final WorkspaceInfo workspace_info =\n new WorkspaceInfo(default_workspace, !force_prompt);\n\n // Prompt in any case? Or did user decide to be asked again?\n boolean show_Workspace = force_prompt | workspace_info.getShowDialog();\n\n //if no user name provided, display last login user.\n if(username == null)\n username = WorkspaceIndependentStore.readLastLoginUser();\n\n //initialize startupHelper\n StartupHelper startupHelper = new StartupHelper(null, force_prompt,\n workspace_info, username, password, show_login, show_Workspace);\n\n while (true)\n {\n startupHelper.setShow_Login(show_login);\n startupHelper.setShow_Workspace(show_Workspace);\n\n if (show_Workspace || show_login)\n {\n if (! startupHelper.openStartupDialog())\n return false; // canceled\n\n //get user name and password from startup dialog\n if(show_login) {\n username = startupHelper.getUserName();\n password = startupHelper.getPassword();\n }\n }\n // In case of errors, we will have to ask the workspace,\n // but don't bother to ask user name and password again.\n show_Workspace = true;\n show_login = false;\n\n try\n {\n // the operation will fail if the url is not a valid\n // instance data area, so other checking is unneeded\n URL workspaceUrl = new URL(\"file:\" + workspace_info.getSelectedWorkspace()); //$NON-NLS-1$\n if (instanceLoc.set(workspaceUrl, true)) // set & lock\n {\n workspace_info.writePersistedData();\n parameters.put(WORKSPACE, workspaceUrl);\n return true;\n }\n }\n catch (Exception ex)\n {\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_GenericErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_GenericError + ex.getMessage());\n return false;\n }\n // by this point it has been determined that the workspace is\n // already in use -- force the user to choose again\n show_login = false;\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_InUseErrorTitle,\n NLS.bind(org.csstudio.platform.workspace.Messages.Workspace_InUseError,\n workspace_info.getSelectedWorkspace()));\n }\n }", "@Test\n void testNonEmptyConstructor() {\n assertNotNull(isLockedRequest2);\n assertTrue(isLockedRequest2.getToken().equals(token)\n && isLockedRequest2.getId() == id);\n }", "@Then(\"^Validate customer id is created$\")\r\n\tpublic void validate_customer_id_is_created() throws Throwable {\n\t\tAssert.assertTrue(response.jsonPath().get(\"id\").equals(new PropertFileReader().getTempData(\"custId\")));\r\n\t\t\r\n\t}", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExistsMockVersion() {\n assertThrows(NotFoundException.class, () -> projectServiceMock.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Override\r\n\tpublic void testInvalidId() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testInvalidId();\r\n\t\t}\r\n\t}", "public Workspace build() {\n if (properties == null) {\n properties = new HashMap<>();\n }\n if (workspaceId == null || workspaceStage == null) {\n throw new MissingRequiredFieldsException(\"Workspace requires id and stage\");\n }\n return new Workspace(\n workspaceId,\n displayName,\n description,\n spendProfileId,\n properties,\n workspaceStage,\n gcpCloudContext);\n }", "@Test\n public void given_devEnvironmentWithPathVariable_when_callEndPointUpdateStudent_then_returnStatus200() throws Exception {\n\n Mockito.when(studentRepo.findById(ArgumentMatchers.anyLong()))\n .thenReturn(Optional.of(STUDENT));\n\n RequestBuilder request = MockMvcRequestBuilders\n .delete(\"/students/1\")\n .accept(MediaType.APPLICATION_JSON_VALUE)\n .contentType(MediaType.APPLICATION_JSON_VALUE);\n\n mockMvc.perform(request)\n .andExpect(status().isOk())\n .andDo(MockMvcResultHandlers.print())\n .andReturn();\n\n }", "@Test\r\n\tpublic void Test_ID() {\r\n\t\tResponse resp = given().\r\n\t\t\t\tparam(\"nasa_id\", \"PIA12235\").\r\n\t\t\t\twhen().\r\n\t\t\t\tget(endpoint);\r\n\t\t\t\tSystem.out.println(resp.getStatusCode());\r\n\t\t\t\tAssert.assertEquals(resp.getStatusCode(), 200);\r\n\t}", "@Test(expected = CopilotServiceInitializationException.class)\n public void testCheckNullForInjectedValueFailure() {\n Helper.checkNullForInjectedValue(null, \"obj\");\n }", "@Test\n public void commandIdTest() {\n // TODO: test commandId\n }", "static void checkId(final long id, final String paramName) {\r\n if (id <= 0) {\r\n throw new IllegalArgumentException(\"The '\" + paramName\r\n + \"' should be above 0.\");\r\n }\r\n }", "public Long getStagingWorkspaceId() {\n return stagingWorkspaceId;\n }", "public void requirePatientId() {\n hasPatientIdParam = true;\n }", "@Override\n\tpublic boolean hasParameter(String id) {\n\t\treturn false;\n\t}", "@Test\n public void cityNotNull()\n {\n assertNotNull(_city);\n }", "@When(\"^I enter valid credentia ls$\")\n public void iEnterValidCredentials() throws Throwable {\n throw new PendingException();\n }", "private void checkLegal(int glId)\n {\n if (glId == GL2.GL_POLYGON_MODE || glId == GL2.GL_COLOR_MATERIAL_PARAMETER)\n return;\n if (GLState.TEXTURE_GROUP <= glId && glId < GLState.TEXTURE_GROUP + GLState.TEXTURE_GROUP_SIZE)\n return;\n throw new IllegalArgumentException(\"GLStateComponentII: unknown glId: \" + glId);\n }", "@Test\n\tpublic void testValidateSurveyIds() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyIds(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\tfor(String simpleValidList : ParameterSets.getSimpleValidLists()) {\n\t\t\t\ttry {\n\t\t\t\t\tSurveyResponseValidators.validateSurveyIds(simpleValidList);\n\t\t\t\t}\n\t\t\t\tcatch(ValidationException e) {\n\t\t\t\t\tfail(\"A valid list failed validation.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test\n public void putTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.putTemplateProgrammerProject(request);\n\n // TODO: test validations\n }", "public void validate(String id, String pw) throws RemoteException;", "public void testCheckinProjectFlags() {\n String[] sTestCmdLine = { \"soscmd\", \"-command\", \"CheckInProject\",\n \"-recursive\", \"-server\", SOS_SERVER_PATH, \"-name\", SOS_USERNAME,\n \"-password\", \"\", \"-database\", VSS_SERVER_PATH , \"-project\",\n \"$\"+VSS_PROJECT_PATH, \"\", \"\", \"-soshome\", SOS_HOME, \"-workdir\",\n project.getBaseDir().getAbsolutePath(), \"-log\", SRC_COMMENT, };\n\n // Set up a SOSCheckin task\n sosCheckin.setProject(project);\n sosCheckin.setVssServerPath(VSS_SERVER_PATH);\n sosCheckin.setSosServerPath(SOS_SERVER_PATH);\n sosCheckin.setProjectPath(VSS_PROJECT_PATH);\n sosCheckin.setComment(SRC_COMMENT);\n sosCheckin.setUsername(SOS_USERNAME);\n sosCheckin.setSosHome(SOS_HOME);\n sosCheckin.setNoCache(true);\n sosCheckin.setNoCompress(false);\n sosCheckin.setVerbose(false);\n sosCheckin.setRecursive(true);\n\n commandline = sosCheckin.buildCmdLine();\n String[] sGeneratedCmdLine = commandline.getCommandline();\n\n int i = 0;\n while (i < sTestCmdLine.length) {\n try {\n assertEquals(\"CheckInProject arg # \" + String.valueOf(i),\n sTestCmdLine[i],\n sGeneratedCmdLine[i]);\n i++;\n } catch (ArrayIndexOutOfBoundsException aioob) {\n fail(\"CheckInProject missing arg\");\n }\n\n }\n if (sGeneratedCmdLine.length > sTestCmdLine.length) {\n // We have extra elements\n fail(\"CheckInProject extra args\");\n }\n }", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {listProjects} integration test with mandatory parameters.\")\n public void testListProjectsWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:listProjects\");\n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_listProjects_mandatory.json\");\n \n connectorProperties.setProperty(\"projectId\", esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0)\n .getString(\"id\"));\n \n final String apiEndPoint = apiRequestUrl + \"/projects\";\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"page\"), apiRestResponse.getBody().getString(\"page\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"pageSize\"), apiRestResponse.getBody().getString(\n \"pageSize\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0).getString(\"id\"),\n apiRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0).getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"totalItems\"), apiRestResponse.getBody().getString(\n \"totalItems\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONArray(\"items\").length(), apiRestResponse.getBody()\n .getJSONArray(\"items\").length());\n \n }" ]
[ "0.65769523", "0.63816416", "0.6199737", "0.59761405", "0.59368694", "0.5839368", "0.5567419", "0.54488504", "0.527746", "0.52685773", "0.5195171", "0.5161648", "0.51206905", "0.5089432", "0.50643146", "0.5059629", "0.5057854", "0.50335026", "0.4998055", "0.49727345", "0.4972389", "0.4957315", "0.49191728", "0.49184918", "0.49053478", "0.4905189", "0.48878652", "0.4878646", "0.48585176", "0.4847079", "0.4847079", "0.48303923", "0.48077723", "0.48058602", "0.48047128", "0.47996646", "0.47980225", "0.476472", "0.47630438", "0.47508025", "0.475032", "0.47500163", "0.47444096", "0.47344425", "0.47063488", "0.47047442", "0.47029513", "0.46958926", "0.46956486", "0.46882787", "0.4683544", "0.46657544", "0.4664292", "0.46636048", "0.46620858", "0.46541545", "0.4652064", "0.46444118", "0.4639281", "0.46384007", "0.46342343", "0.463301", "0.46284482", "0.462082", "0.46169397", "0.4613154", "0.46030325", "0.4596472", "0.4596067", "0.45866662", "0.45730188", "0.45692503", "0.456808", "0.45570433", "0.45542634", "0.4546817", "0.45377353", "0.45351306", "0.45342433", "0.4521675", "0.45205203", "0.451869", "0.4512759", "0.45110384", "0.45107248", "0.45095125", "0.45081636", "0.4507399", "0.45012647", "0.4495072", "0.4487303", "0.44853508", "0.44851595", "0.44843093", "0.44791296", "0.4477723", "0.44771564", "0.44756317", "0.4470055", "0.44677323", "0.44676253" ]
0.0
-1
Create a new model in the workspace Create a new model in the workspace identified in the workspaceId path paramter.
public ModelApiResponse createModel(String workspaceId, Model model) throws ApiException { ApiResponse<ModelApiResponse> localVarResp = createModelWithHttpInfo(workspaceId, model); return localVarResp.getData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void create(Model model) throws Exception;", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "public <T> T createModel(T referenceModel) throws CreateModelException {\n return createModel(referenceModel, true);\n }", "public okhttp3.Call createModelAsync(String workspaceId, Model model, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public Model createByUserModel(int id, Model model) {\n User user = userService.get(id);\n Set<Project> projects = user.getProjects();\n model.addAttribute(\"user\", user);\n model.addAttribute(\"myProjects\", projects);\n return model;\n }", "public static boolean createModelingProject(String projectName,\n\t\t\tURI location, IProgressMonitor monitor) throws CoreException {\n\t\tIProject newProject = ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t.getProject(projectName);\n\t\t// if project exists not, then create one\n\t\tif (!newProject.exists()) {\n\t\t\tURI projectLocation = location;\n\t\t\t// Set description\n\t\t\tIProjectDescription desc = newProject.getWorkspace()\n\t\t\t\t\t.newProjectDescription(newProject.getName());\n\t\t\tif (location != null\n\t\t\t\t\t&& ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t\t\t\t.getLocationURI().equals(location)) {\n\t\t\t\tprojectLocation = null;\n\t\t\t}\n\t\t\tdesc.setLocationURI(projectLocation);\n\t\t\ttry {\n\t\t\t\tnewProject.create(desc, null);\n\t\t\t\tif (!newProject.isOpen()) {\n\t\t\t\t\tnewProject.open(null);\n\t\t\t\t}\n\t\t\t} catch (CoreException e) {\n\t\t\t\tLOGGER.error(\"\", e);\n\t\t\t}\n\t\t}\n\n\t\taddNature(newProject);\n\n\t\t// our basic folder structure\n\n\t\t// models\n\t\tIFolder modelFolder = createFolder(\n\t\t\t\tMessages.CreationFunctions_folder_title_models, newProject);\n\t\t// properties\n\t\tcreateFolder(\".properties\", newProject);\n\n\t\tif (ModelPreferencePage.getFolderPreference()) {\n\n\t\t\t// one folder for every registered model\n\t\t\tfor (String folderName : ModelRegistry.getInstance()\n\t\t\t\t\t.getAllModelNames()) {\n\t\t\t\tcreateFolder(folderName, modelFolder);\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}", "public WorkingMemory createInferredModel(IRI modelId) {\n\t\tSet<Statement> statements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(getModelAbox(modelId))).asJava();\n\t\tSet<Triple> triples = statements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet());\n\t\ttry {\n\t\t\t// Using model's ontology IRI so that a spurious different ontology declaration triple isn't added\n\t\t\tOWLOntology schemaOntology = OWLManager.createOWLOntologyManager().createOntology(getOntology().getRBoxAxioms(Imports.INCLUDED), modelId);\n\t\t\tSet<Statement> schemaStatements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(schemaOntology)).asJava();\n\t\t\ttriples.addAll(schemaStatements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet()));\n\t\t} catch (OWLOntologyCreationException e) {\n\t\t\tLOG.error(\"Couldn't add rbox statements to data model.\", e);\n\t\t}\n\t\treturn getRuleEngine().processTriples(JavaConverters.asScalaSetConverter(triples).asScala());\n\t}", "public okhttp3.Call createModelCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = model;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "RoomModel createRoomModel(RoomModel roomModel);", "public SSModel createSSObject() {\n\t\tSSModel ssModel = new SSModel();\n\t\tssModel.create(mol);\n\t\t\n\t\treturn ssModel;\n\t}", "private void createNewDynamicModel(){\n\t\tDynamicModel dModel = new DynamicModel(currentView.getViewModel().getName());\r\n\r\n\t\t// Add the new graph to the view\r\n\t\tint modelWidth = DynamicModelView.minimumWidth; \r\n\t\tint modelHeight = DynamicModelView.minimumHeight; \r\n\t\tint viewHeight = currentView.getHeight();\r\n\t\tint pad = 8;\r\n\t\tcurrentView.addModelView(new DynamicModelView(new EntityViewConfig(pad, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t viewHeight - (modelHeight + pad), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelWidth, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelHeight, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t EntityViewConfig.Type.DYNAMIC_MODEL), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdModel, this, currentView));\r\n\t\tcurrentView.repaint();\r\n\t}", "public ModelContainer importModel(String modelData) throws OWLOntologyCreationException {\n\t\t// load data from String\n\t\tfinal OWLOntologyManager manager = graph.getManager();\n\t\tfinal OWLOntologyDocumentSource documentSource = new StringDocumentSource(modelData);\n\t\tOWLOntology modelOntology;\n\t\tfinal Set<OWLParserFactory> originalFactories = removeOBOParserFactories(manager);\n\t\ttry {\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tcatch (OWLOntologyAlreadyExistsException e) {\n\t\t\t// exception is thrown if there is an ontology with the same ID already in memory \n\t\t\tOWLOntologyID id = e.getOntologyID();\n\t\t\tIRI existingModelId = id.getOntologyIRI().orNull();\n\n\t\t\t// remove the existing memory model\n\t\t\tunlinkModel(existingModelId);\n\n\t\t\t// try loading the import version (again)\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tfinally {\n\t\t\tresetOBOParserFactories(manager, originalFactories);\n\t\t}\n\t\t\n\t\t// try to extract modelId\n\t\tIRI modelId = null;\n\t\tOptional<IRI> ontologyIRI = modelOntology.getOntologyID().getOntologyIRI();\n\t\tif (ontologyIRI.isPresent()) {\n\t\t\tmodelId = ontologyIRI.get();\n\t\t}\n\t\tif (modelId == null) {\n\t\t\tthrow new OWLOntologyCreationException(\"Could not extract the modelId from the given model\");\n\t\t}\n\t\t// paranoia check\n\t\tModelContainer existingModel = modelMap.get(modelId);\n\t\tif (existingModel != null) {\n\t\t\tunlinkModel(modelId);\n\t\t}\n\t\t\n\t\t// add to internal model\n\t\tModelContainer newModel = addModel(modelId, modelOntology);\n\t\t\n\t\t// update imports\n\t\tupdateImports(newModel);\n\t\t\n\t\treturn newModel;\n\t}", "protected static Model getModel(String workspaceId, String modelId)\n throws AnaplanAPIException {\n Workspace workspace = getWorkspace(workspaceId);\n if (workspace == null) {\n return null;\n }\n if (modelId == null || modelId.isEmpty()) {\n LOG.error(\"A model ID must be provided\");\n return null;\n }\n Model model = null;\n\n if (!noValidateModel) {\n for (Model m : workspace.getModels()) {\n if (modelId.equals(m.getId()) || modelId.equalsIgnoreCase(m.getName())) {\n model = m;\n break;\n }\n }\n }\n if (model == null) {\n ModelData data = new ModelData(modelId, \"\");\n model = new Model(workspace, data);\n model.setCurrentWorkspaceId(workspaceId);\n }\n return model;\n }", "springfox.documentation.schema.Model create(ModelContext context);", "public static void createInstance(Model model, Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "GameModel createGameModel(GameModel gameModel);", "public Model createModel(ModelNode modelNode) {\n \tif (modelNode == null)\n \t\tthrow new NullPointerException();\n return new ModelImpl(modelNode);\n }", "public boolean create(ModelObject obj);", "public void addModel(Model aModel, OpenSimContext context) throws IOException {\n OpenSimContext dContext = context==null?new OpenSimContext(aModel.initSystem(), aModel):context;\n models.add(aModel);\n mapModelsToContexts.put(aModel, dContext);\n SingleModelGuiElements newModelGuiElements = new SingleModelGuiElements(aModel);\n mapModelsToGuiElements.put(aModel, newModelGuiElements);\n setChanged();\n ModelEvent evnt = new ModelEvent(aModel, ModelEvent.Operation.Open);\n notifyObservers(evnt); \n setCurrentModel(aModel, false);\n //ExplorerTopComponent.addFinalEdit();\n }", "public M create(P model);", "public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }", "UserModel createUserModel(UserModel userModel);", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call createModelValidateBeforeCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling createModel(Async)\");\n }\n \n // verify the required parameter 'model' is set\n if (model == null) {\n throw new ApiException(\"Missing the required parameter 'model' when calling createModel(Async)\");\n }\n \n\n okhttp3.Call localVarCall = createModelCall(workspaceId, model, _callback);\n return localVarCall;\n\n }", "public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }", "@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }", "protected void addWorkspace( String workspaceName ) {\n }", "EisModel createEisModel();", "DomainModel createDomainModel();", "@RequestMapping(method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\t@Transactional\r\n\tpublic Object create(@RequestBody Model model) {\r\n\t\ttry {\r\n\t\t\tgetService().create(model);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Create exception for \" + model, e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public ApiResponse<ModelApiResponse> createModelWithHttpInfo(String workspaceId, Model model) throws ApiException {\n okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, null);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n return localVarApiClient.execute(localVarCall, localVarReturnType);\n }", "public static IssueModel createIssueModel(String projectId) throws Exception, IOException {\n try (ContactCenterInsightsClient client = ContactCenterInsightsClient.create()) {\n // Construct a parent resource.\n LocationName parent = LocationName.of(projectId, \"us-central1\");\n\n // Construct an issue model.\n IssueModel issueModel =\n IssueModel.newBuilder()\n .setDisplayName(\"my-model\")\n .setInputDataConfig(\n IssueModel.InputDataConfig.newBuilder().setFilter(\"medium=\\\"CHAT\\\"\").build())\n .build();\n\n // Call the Insights client to create an issue model.\n IssueModel response = client.createIssueModelAsync(parent, issueModel).get();\n System.out.printf(\"Created %s%n\", response.getName());\n return response;\n }\n }", "private void createDataModelFolders() {\n\n File dataFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_DATA\");\n File modelFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_MODEL\");\n\n boolean dataSuccess = true;\n boolean modelSuccess = true;\n if (!dataFolder.exists()) {\n try {\n dataSuccess = dataFolder.mkdirs();\n } catch (SecurityException e) {\n dataSuccess = false;\n }\n }\n\n if (!modelFolder.exists()) {\n try {\n modelSuccess = modelFolder.mkdirs();\n } catch (SecurityException e) {\n modelSuccess = false;\n }\n }\n\n String TAG = \"MainScreen\";\n if (dataSuccess) Log.d(TAG, \"Created AGH_IM_DATA folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_DATA Folder\");\n if (modelSuccess) Log.d(TAG, \"Successfully created AGH_IM_MODEL folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_MODEL Folder\");\n\n }", "DataModel createDataModel();", "public static Model createModel(RepositoryConnection connection, Resource context)\n { \n Graph graph = new GraphRepository(connection, context) ;\n return ModelFactory.createModelForGraph(graph) ;\n }", "public IDfSysObject createNewObject(String repositoryObjectName,\r\n\t\t\tString fileLocation, String repositoryPath,String newObjectId) throws Exception {\r\n\t\tIDfSysObject sysObject = null;\r\n\t\ttry{\r\n\t\t\tlogger.info(\"repositoryObjectName\"+repositoryObjectName);\r\n\t\t\tif(newObjectId != null && !newObjectId.equals(\"\")){\r\n\t\t\t\t// This is delta migration. object id is maintained since work flow may be triggered on document\r\n\t\t\t\tsysObject = (IDfSysObject) getDocumemtumSession().getObject(new DfId(newObjectId));\r\n\t\t\t\tif( sysObject==null) throw new Exception(\"Object does not exist in the repository\");\r\n\t\t\t\tsysObject.checkout();\r\n\t\t\t\tlogger.info(\"checked out successfully\" );\r\n\t\t\t\tIDfCheckinOperation cio = clientx.getCheckinOperation();\r\n\t\t\t\tcio.setCheckinVersion(IDfCheckinOperation.SAME_VERSION);\r\n\t\t\t\tIDfCheckinNode node = (IDfCheckinNode) cio.add(sysObject);\r\n\t\t\t\tnode.setFilePath(fileLocation);\r\n\t\t\t\tcio.setSession(getDocumemtumSession());\r\n\t\t\t\tnode.setKeepLocalFile(true);\r\n\t\t\t\tif (!cio.execute())\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new Exception(\"Checkin failed.\");\r\n\t\t\t\t}\r\n\t\t\t\tlogger.info(\"checked in successfully\" );\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tlogger.info(\"before get Path\");\r\n\t\t\t\tIDfFormatRecognizer oFormatRec = clientx.getFormatRecognizer(getDocumemtumSession(),fileLocation,null);\r\n\t\t\t\tString fileFormatName = oFormatRec.getDefaultSuggestedFileFormat();\r\n\t\t\t\tlogger.info(\"after get Path\");\r\n\t\t\t\tsysObject =(IDfSysObject) getDocumemtumSession().newObject(repositoryObjectName);\r\n\t\t\t\tsysObject.setPath(fileLocation,fileFormatName,0,null);\r\n\t\t\t\tsysObject.link(repositoryPath);\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.severe(\"Errro in createNewObject\"+e);\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t return sysObject;\r\n\t}", "public void save(final IPath path) throws IOException {\r\n\t\t// This sets the model as contents in a new resource when using save as.\r\n\t\ttry {\r\n\t\t\tresource = resourceSet.getResource(URI.createPlatformResourceURI(\r\n\t\t\t\t\tpath.toString(), true), true);\r\n\t\t} catch (final Exception e) {\r\n\t\t\t// FIXME eigentlich sollte getResource schon eine Resource erzeugen\r\n\t\t\tresource = resourceSet.createResource(URI\r\n\t\t\t\t\t.createPlatformResourceURI(path.toString(), true));\r\n\t\t\tAssert.isTrue(false, \"Unerwartete Codeausführung.\");\r\n\t\t}\r\n\t\trecursiveSetNamesIfUnset(models);\r\n\t\tresource.getContents().clear();\r\n\t\tresource.getContents().addAll(models);\r\n\t\tfinal Map<String, Boolean> options = new HashMap<String, Boolean>();\r\n\t\toptions.put(XMLResource.OPTION_DECLARE_XML, Boolean.TRUE);\r\n\t\tresource.save(options);\r\n\t}", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "public void saveModel(String filePath) {\n\n\t\tFile parentFile = new File(filePath).getParentFile();\n\t\tif (parentFile != null && !parentFile.exists()) {\n\t\t\tparentFile.mkdirs();\n\t\t}\n\n\t\ttry {\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(filePath));\n\t\t\toos.writeObject(new HMMModel(pi, A, B));\n\t\t\toos.close();\n\t\t\tSystem.out.println(\"Model saved.\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n\tpublic edu.weather.servicebuilder.model.Weather createWeather(\n\t\tlong weatherId) {\n\t\treturn _weatherLocalService.createWeather(weatherId);\n\t}", "protected abstract IModel<T> createModel(T object);", "public ModelingExercise createModelingExercise(Long courseId, Long exerciseId) {\n ZonedDateTime pastTimestamp = ZonedDateTime.now().minusDays(5);\n ZonedDateTime futureTimestamp = ZonedDateTime.now().plusDays(5);\n ZonedDateTime futureFutureTimestamp = ZonedDateTime.now().plusDays(8);\n\n Course course1 = ModelFactory.generateCourse(courseId, pastTimestamp, futureTimestamp, new HashSet<>(), \"tumuser\", \"tutor\", \"instructor\");\n ModelingExercise modelingExercise = ModelFactory.generateModelingExercise(pastTimestamp, futureTimestamp, futureFutureTimestamp, DiagramType.ClassDiagram, course1);\n modelingExercise.setGradingInstructions(\"Grading instructions\");\n modelingExercise.getCategories().add(\"Modeling\");\n modelingExercise.setId(exerciseId);\n course1.addExercises(modelingExercise);\n\n return modelingExercise;\n }", "public ModelingExercise createModelingExercise(Long courseId) {\n return createModelingExercise(courseId, null);\n }", "public void createProject(Project newProject);", "GoalModel createGoalModel();", "public void saveModel() {\n\t}", "public com.inikah.slayer.model.MMCity create(long cityId);", "public void addModel(Model aModel) throws IOException {\n addModel(aModel, null);\n }", "public static void createInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "@Override\n\tpublic HomeModel create(HomeModel model) {\n\t\treturn null;\n\t}", "private void createModel() {\n model = new Node(\"Enemy\"+enemyCounter);\n Box b = new Box(.5f, 2, .5f);\n Geometry bg = new Geometry(\"Box\", b);\n Material bm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n Sphere sphere = new Sphere(32, 32, 1.5f, false, false);\n Geometry sg = new Geometry(\"Sphere\", sphere);\n Material sm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n bm.setColor(\"Color\", ColorRGBA.Blue);\n sm.setColor(\"Color\", ColorRGBA.Red);\n bg.setMaterial(bm); \n sg.setMaterial(sm);\n model.attachChild(bg);\n model.attachChild(sg);\n sg.setLocalTranslation(0,2.5f,0);\n \n attachChild(model);\n }", "private void createWorkSpace() {\n\t\tif(promptForWorkSpaceName() != null){\n\t\t\tmyWorkSpaceListener.createWorkSpace(promptForWorkSpaceName());\n\t\t}\n\t}", "@Test\n public void test_create_scenario() {\n try {\n TestData X = new TestData(\"project2.opt\");\n String new_name = \"new_scenario\";\n X.project.create_scenario(new_name);\n assertNotNull(X.project.get_scenario_with_name(new_name));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "public void saveModel() {\n\n }", "SystemParamModel createSystemParamModel();", "public void save() {\n\t\t// Register the XMI resource factory for the .xmi extension\n\t\tResource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;\n\t\tMap<String, Object> m = reg.getExtensionToFactoryMap();\n\t\tm.put(\"xmi\", new XMIResourceFactoryImpl());\n\n\t\t// Obtain a new resource set\n\t\tResourceSet resSet = new ResourceSetImpl();\n\n\t\t// Create a resource\n\t\tResource resource = resSet.createResource(this.targetURI);\n\n\t\t// Get the first model element and cast it to the right type\n\t\tresource.getContents().add(targetRootBlock);\n\n\t\t// Now save the content.\n\t\tMap<String, Object> options = new HashMap<String, Object>();\n\t\toptions.put(XMIResource.OPTION_ENCODING, \"UTF-8\");\n\t\ttry {\n\t\t\tresource.save(options);\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"IOException when trying to save to \" + this.targetURI);\n\t\t}\n\n\t\tif (LOGGER.isInfoEnabled()) {\n\t\t\tLOGGER.info(\"Saved Shapes model to \" + this.targetURI);\n\t\t}\n\t}", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "@GetMapping(\"/add\")\r\n\tpublic String newSave(Model model) {\r\n\t\tmodel.addAttribute(\"trainee\", new Trainee());\r\n\t\treturn \"add-trainee\";\r\n\t}", "boolean add(SysFile model);", "InstanceModel createInstanceOfInstanceModel();", "Build_Model() {\n\n }", "public static int addModel(String fileName) {\n\t\tString path = NEW_MODEL + fileName;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return 400;\n\t\treturn response.statusCode();\n\t}", "public JsonNode insert(String resourcePath, String model, JsonNode jsonNode) {\n\t\tNitrite db = nitriteDbConnection.getConnection(resourcePath, model);\n\t\tNitriteCollection collection = db.getCollection(model);\n\t\tDocument doc = getDocument(jsonNode);\n\t\tcollection.insert(doc);\n\t\treturn getJsonNode(doc);\n\t}", "private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n\t\tVehicle vehicle = new Vehicle(make, model, weight, engineSize, numberOfDoors, isImport);\n\t\treturn vehicle;\t\t\n\t}", "HdbdtiModel createHdbdtiModel();", "ZenModel createZenModel();", "public void createModel() {\n\t\tmyShop = ShopFactory.eINSTANCE.createShop();\n\n\t\tfinal Country dk = ShopFactory.eINSTANCE.createCountry();\n\t\tdk.setName(\"Denmark\");\n\t\tdk.setAbbreviation(\"DK\");\n\t\tmyShop.getCountries().add(dk);\n\n\t\tfinal Country se = ShopFactory.eINSTANCE.createCountry();\n\t\tse.setName(\"Sweden\");\n\t\tse.setAbbreviation(\"SE\");\n\t\tmyShop.getCountries().add(se);\n\n\t\tfinal Contact a = ShopFactory.eINSTANCE.createContact();\n\t\ta.setName(\"a\");\n\t\ta.setCity(\"A\");\n\t\ta.setCountry(dk);\n\t\tmyShop.getContacts().add(a);\n\n\t\tfinal Contact b = ShopFactory.eINSTANCE.createContact();\n\t\tb.setName(\"b\");\n\t\tb.setCity(\"A\");\n\t\tb.setCountry(se);\n\t\tmyShop.getContacts().add(b);\n\t}", "IFMLModel createIFMLModel();", "public void saveModel(ModelClass model) throws StorageIOException {\n try {\n Dao<ModelDB, String> modelDao = this.databaseHelper.getDao(ModelDB.class);\n\n ModelDB modelEntity = classToDB(model);\n modelDao.createOrUpdate(modelEntity);\n \n } catch (SQLException e) {\n throw new StorageIOException(\"Failed to save model\", e);\n }\n }", "public Participacao createParticipacao(Participacao model) {\n return participacaoRepository.save(model);\n}", "public Workspace build() {\n if (properties == null) {\n properties = new HashMap<>();\n }\n if (workspaceId == null || workspaceStage == null) {\n throw new MissingRequiredFieldsException(\"Workspace requires id and stage\");\n }\n return new Workspace(\n workspaceId,\n displayName,\n description,\n spendProfileId,\n properties,\n workspaceStage,\n gcpCloudContext);\n }", "@RequestMapping(value = \"/staff/programcreate\")\n\tpublic String redirectToProgramCreate(Model model) {\n\t\tProgram program = new Program();\n\t\tmodel.addAttribute(\"program\", program);\n\t\treturn \"staff/programcreate\";\n\t}", "public com.huqiwen.demo.book.model.Books create(long bookId);", "@POST\r\n public Response createResearchObject()\r\n throws BadRequestException, IllegalArgumentException, UriBuilderException, ConflictException,\r\n DigitalLibraryException, NotFoundException {\r\n LOGGER.debug(String.format(\"%s\\t\\tInit create RO\", new DateTime().toString()));\r\n String researchObjectId = request.getHeader(Constants.SLUG_HEADER);\r\n if (researchObjectId == null || researchObjectId.isEmpty()) {\r\n throw new BadRequestException(\"Research object ID is null or empty\");\r\n }\r\n URI uri = uriInfo.getAbsolutePathBuilder().path(researchObjectId).path(\"/\").build();\r\n ResearchObject researchObject = ResearchObject.findByUri(uri);\r\n if (researchObject != null) {\r\n throw new ConflictException(\"RO already exists\");\r\n }\r\n researchObject = new ResearchObject(uri);\r\n URI researchObjectURI = ROSRService.createResearchObject(researchObject);\r\n LOGGER.debug(String.format(\"%s\\t\\tRO created\", new DateTime().toString()));\r\n \r\n RDFFormat format = RDFFormat.forMIMEType(request.getHeader(Constants.ACCEPT_HEADER), RDFFormat.RDFXML);\r\n InputStream manifest = ROSRService.SMS.get().getNamedGraph(researchObject.getManifestUri(), format);\r\n ContentDisposition cd = ContentDisposition.type(format.getDefaultMIMEType())\r\n .fileName(ResearchObject.MANIFEST_PATH).build();\r\n \r\n LOGGER.debug(String.format(\"%s\\t\\tReturning\", new DateTime().toString()));\r\n return Response.created(researchObjectURI).entity(manifest).header(\"Content-disposition\", cd).build();\r\n }", "public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }", "public T createModel(Cursor cursor, String id);", "@Test\r\n void testCreate() {\r\n assertNotNull(model);\r\n }", "public void openModel() {\r\n \t\tisReleased = true;\r\n \t\tif (checkForSave(\"<html>Save changes before opening a saved model?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\tJMODELModel tmpmodel = new JMODELModel();\r\n \t\tint state = modelLoader.loadModel(tmpmodel, mainWindow);\r\n \t\tif (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {\r\n \t\t\tresetMouseState();\r\n \t\t\t// Avoid checkForSave again...\r\n \t\t\tif (model != null) {\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t}\r\n \t\t\tnewModel();\r\n \t\t\t// At this point loading was successful, so substitutes old model\r\n \t\t\t// with loaded one\r\n \t\t\tmodel = tmpmodel;\r\n \t\t\tthis.populateGraph();\r\n \t\t\tsetSelect.setEnabled(true);\r\n \t\t\tcomponentBar.clickButton(setSelect);\r\n \t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t// Removes selection\r\n \t\t\tgraph.clearSelection();\r\n \t\t\t// If model contains results, enable Results Window\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\tif (model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\tthis.setResultsWindow(new PAResultsWindow(model.getParametricAnalysisModel(), (PAResultsModel) model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthis.setResultsWindow(new ResultsWindow(model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tmodel.resetSaveState();\r\n \t\t\tSystem.gc();\r\n \t\t} else if (state == ModelLoader.FAILURE) {\r\n \t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t}\r\n \t\t// Shows warnings if any\r\n \t\tif (state == ModelLoader.WARNING) {\r\n \t\t\tnew WarningWindow(modelLoader.getLastWarnings(), mainWindow, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show();\r\n \t\t}\r\n \r\n \t}", "protected void addContentModel(WorkflowDefinitionConversion conversion, String processId) {\n\t\tM2Model model = new M2Model();\n\t\tmodel.setName(AlfrescoConversionUtil.getQualifiedName(processId, \n\t\t\t\tCONTENT_MODEL_UNQUALIFIED_NAME));\n\t\t\n\t\tM2Namespace namespace = AlfrescoConversionUtil.createNamespace(processId);\n\t\tmodel.getNamespaces().add(namespace);\n\t\t\n\t\t\n\t\t// Import required alfresco models\n\t\tmodel.getImports().add(DICTIONARY_NAMESPACE);\n\t\tmodel.getImports().add(CONTENT_NAMESPACE);\n\t\tmodel.getImports().add(BPM_NAMESPACE);\n\t\t\n\t\t// Store model in the conversion artifacts to be accessed later\n\t\tAlfrescoConversionUtil.storeContentModel(model, conversion);\n\t\tAlfrescoConversionUtil.storeModelNamespacePrefix(namespace.getPrefix(), conversion);\n }", "@PostMapping\n public ResponseEntity<Project> createNewProject(@Valid @RequestBody Project project) {\n\n Project project1 = projectService.saveOrUpdateProject(project);\n return new ResponseEntity<Project>(project1, HttpStatus.CREATED);\n }", "private IProject createNewProject() {\r\n\t\tif (newProject != null) {\r\n\t\t\treturn newProject;\r\n\t\t}\r\n\r\n\t\t// get a project handle\r\n\t\tfinal IProject newProjectHandle = mainPage.getProjectHandle();\r\n\r\n\t\t// get a project descriptor\r\n\t\tURI location = mainPage.getLocationURI();\r\n\r\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\r\n\t\tfinal IProjectDescription description = workspace.newProjectDescription(newProjectHandle.getName());\r\n\t\tdescription.setLocationURI(location);\r\n\r\n\t\tlog.info(\"Project name: \" + newProjectHandle.getName());\r\n\t\t//log.info(\"Location: \" + location.toString());\r\n\t\t\r\n\t\t// create the new project operation\r\n\t\tIRunnableWithProgress op = new IRunnableWithProgress() {\r\n\t\t\tpublic void run(IProgressMonitor monitor)\r\n\t\t\t\t\tthrows InvocationTargetException {\r\n\t\t\t\tCreateProjectOperation op = new CreateProjectOperation(description, ResourceMessages.NewProject_windowTitle);\r\n\t\t\t\ttry {\r\n\t\t\t\t\top.execute(monitor, WorkspaceUndoUtil.getUIInfoAdapter(getShell()));\r\n\t\t\t\t} catch (ExecutionException e) {\r\n\t\t\t\t\tthrow new InvocationTargetException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// run the new project creation operation\r\n\t\ttry {\r\n\t\t\tgetContainer().run(true, true, op);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t} catch (InvocationTargetException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tnewProject = newProjectHandle;\r\n\r\n\t\treturn newProject;\r\n\t}", "public void setModelId(long modelId);", "public Base save(Base model) throws IOException {\n\t\tif (model.getID().equals(\"\")) {\n\t\t\treturn Core.create(model, getHttpMethodExecutor());\n\t\t} else {\n\t\t\treturn Core.update(model, getHttpMethodExecutor());\n\t\t}\n\n\t}", "public WorkspaceController() {\n this.workspace = new Workspace();\n pom = new ProcedureOutputManager(workspace);\t//*****\n }", "public void saveToFile(File file, Model model) throws IOException;", "@RequestMapping(value = { \"/new\"}, method = RequestMethod.GET)\n\tpublic String newEntity(ModelMap model) {\n\t\tENTITY entity = createEntity();\n\n\t\tmodel.addAttribute(\"entity\", entity);\n\t\tmodel.addAttribute(\"edit\", false);\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn viewBaseLocation + \"/form\";\n\t}", "public void createNoteEditModel() {\n \t\tif (this.mNoteItemModel == null)\n \t\t\tthis.mNoteItemModel = new NoteItemModel(this.getContext());\n \t\tthis.status = STATUS_CREATE;\n \t}", "public void create(){}", "public ModelOfCar saveModel(ModelOfCar modelOfCar) {\n\t\tModelOfCar existingModel = repository.findByName(modelOfCar.getName());\n\t\tif (existingModel == null)\n\t\t\treturn repository.save(modelOfCar);\n\t\telse\n\t\t\t{\n\t\t\tLOGGER.error(\"Spring Boot informerar mig om att ett fel har inträffat. Model finns i tabell\");\n\t\t\tthrow new OurCustomExceptions(\"Model finns i tabell\");}\n\n\t}", "public ResponseEntityUserModel createNewUser (UserModel model) throws ApiException {\n Object postBody = model;\n byte[] postBinaryBody = null;\n\n // verify the required parameter 'model' is set\n if (model == null) {\n throw new ApiException(400, \"Missing the required parameter 'model' when calling createNewUser\");\n }\n\n // create path and map variables\n String path = API_VERSION + \"/users\";\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>();\n Map<String, String> headerParams = new HashMap<String, String>();\n Map<String, Object> formParams = new HashMap<String, Object>();\n\n final String[] accepts = { \"application/json\" };\n\n final String accept = apiClient.selectHeaderAccept(accepts);\n\n final String[] contentTypes = { };\n\n final String contentType = apiClient.selectHeaderContentType(contentTypes);\n\n String[] authNames = getAuthNames();\n\n TypeRef returnType = new TypeRef<ResponseEntityUserModel>() { };\n\n return apiClient.invokeAPI(path, \"POST\", queryParams, postBody, postBinaryBody, headerParams, formParams, accept, contentType, authNames, returnType);\n }", "public static void createAllModels() throws IOException, InterruptedException {\n ConsoleLogger.printHeader(\"Creating models\");\n List<String> modelsToCreate = new ArrayList<>(FileHelper.loadAllFilesInPath(MODELS_PATH).values());\n final CountDownLatch createModelsLatch = new CountDownLatch(1);\n\n // Call API to create the models. For each async operation, once the operation is completed successfully, a latch is counted down.\n client.createModels(modelsToCreate)\n .doOnNext(listOfModelData -> listOfModelData.forEach(\n modelData -> ConsoleLogger.printSuccess(\"Created model: \" + modelData.getModelId())\n ))\n .doOnError(IGNORE_CONFLICT_ERROR)\n .doOnTerminate(createModelsLatch::countDown)\n .subscribe();\n\n // Wait until the latch count reaches zero, signifying that the async calls have completed successfully.\n createModelsLatch.await(MAX_WAIT_TIME_ASYNC_OPERATIONS_IN_SECONDS, TimeUnit.SECONDS);\n }", "void saveDocument(SingleDocumentModel model, Path newPath);", "protected Phone createPhone(Models model)\n {\n Phone phone = null;\n PhoneComponentFactory componentFactory = new TurkeyComponentFactory();\n\n switch(model){\n case MaximumEffort:\n phone = new MaximumEffortModel(componentFactory);\n phone.setName(\"Turkey - MaximumEffort Model\");\n break;\n case IflasDeluxe:\n phone = new IflasDeluxeModel(componentFactory);\n phone.setName(\"Turkey - IflasDeluxe Model\");\n break;\n case I_I_Aman_Iflas:\n phone = new I_I_Aman_IflasModel(componentFactory);\n phone.setName(\"Turkey - I-I-Aman-Iflas Model\");\n break;\n }\n System.out.println(\"-> Phone model is: \" + phone.getName());\n\n return phone;\n }", "GameScoreModel createGameScoreModel(GameScoreModel gameScoreModel);" ]
[ "0.6144958", "0.60603565", "0.60603565", "0.60603565", "0.60603565", "0.60603565", "0.60603565", "0.60603565", "0.57156277", "0.5669984", "0.56559426", "0.5617657", "0.56148636", "0.5553444", "0.5531478", "0.54093367", "0.5394779", "0.5387829", "0.53766656", "0.5374657", "0.53479004", "0.5341653", "0.5330624", "0.53070956", "0.5302203", "0.52899015", "0.5188382", "0.51284444", "0.5067248", "0.5049886", "0.5045953", "0.5022402", "0.49979725", "0.4990475", "0.49811706", "0.49745482", "0.49656346", "0.4964239", "0.49616233", "0.49459276", "0.49447596", "0.49428532", "0.49270052", "0.4916251", "0.49144316", "0.48893496", "0.48725864", "0.48679498", "0.48578578", "0.4857204", "0.48561284", "0.4845005", "0.4842136", "0.4813861", "0.48038635", "0.47896782", "0.47766265", "0.47734168", "0.47646806", "0.47603223", "0.47600496", "0.47595018", "0.47579303", "0.47561797", "0.47553587", "0.47478122", "0.47440672", "0.47402984", "0.47331667", "0.47289893", "0.47250056", "0.47249368", "0.47015044", "0.4699978", "0.4694649", "0.46880254", "0.4686835", "0.46644968", "0.46607307", "0.46509847", "0.46507022", "0.46474805", "0.46472052", "0.46435618", "0.4636978", "0.4628531", "0.46224737", "0.4621124", "0.46145195", "0.46130255", "0.4602971", "0.45983696", "0.45977783", "0.45924145", "0.4590439", "0.4564959", "0.45647982", "0.4564184", "0.45591283", "0.45585626" ]
0.5194778
26
Create a new model in the workspace Create a new model in the workspace identified in the workspaceId path paramter.
public ApiResponse<ModelApiResponse> createModelWithHttpInfo(String workspaceId, Model model) throws ApiException { okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, null); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void create(Model model) throws Exception;", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "public <T> T createModel(T referenceModel) throws CreateModelException {\n return createModel(referenceModel, true);\n }", "public okhttp3.Call createModelAsync(String workspaceId, Model model, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public Model createByUserModel(int id, Model model) {\n User user = userService.get(id);\n Set<Project> projects = user.getProjects();\n model.addAttribute(\"user\", user);\n model.addAttribute(\"myProjects\", projects);\n return model;\n }", "public static boolean createModelingProject(String projectName,\n\t\t\tURI location, IProgressMonitor monitor) throws CoreException {\n\t\tIProject newProject = ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t.getProject(projectName);\n\t\t// if project exists not, then create one\n\t\tif (!newProject.exists()) {\n\t\t\tURI projectLocation = location;\n\t\t\t// Set description\n\t\t\tIProjectDescription desc = newProject.getWorkspace()\n\t\t\t\t\t.newProjectDescription(newProject.getName());\n\t\t\tif (location != null\n\t\t\t\t\t&& ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t\t\t\t.getLocationURI().equals(location)) {\n\t\t\t\tprojectLocation = null;\n\t\t\t}\n\t\t\tdesc.setLocationURI(projectLocation);\n\t\t\ttry {\n\t\t\t\tnewProject.create(desc, null);\n\t\t\t\tif (!newProject.isOpen()) {\n\t\t\t\t\tnewProject.open(null);\n\t\t\t\t}\n\t\t\t} catch (CoreException e) {\n\t\t\t\tLOGGER.error(\"\", e);\n\t\t\t}\n\t\t}\n\n\t\taddNature(newProject);\n\n\t\t// our basic folder structure\n\n\t\t// models\n\t\tIFolder modelFolder = createFolder(\n\t\t\t\tMessages.CreationFunctions_folder_title_models, newProject);\n\t\t// properties\n\t\tcreateFolder(\".properties\", newProject);\n\n\t\tif (ModelPreferencePage.getFolderPreference()) {\n\n\t\t\t// one folder for every registered model\n\t\t\tfor (String folderName : ModelRegistry.getInstance()\n\t\t\t\t\t.getAllModelNames()) {\n\t\t\t\tcreateFolder(folderName, modelFolder);\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}", "public WorkingMemory createInferredModel(IRI modelId) {\n\t\tSet<Statement> statements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(getModelAbox(modelId))).asJava();\n\t\tSet<Triple> triples = statements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet());\n\t\ttry {\n\t\t\t// Using model's ontology IRI so that a spurious different ontology declaration triple isn't added\n\t\t\tOWLOntology schemaOntology = OWLManager.createOWLOntologyManager().createOntology(getOntology().getRBoxAxioms(Imports.INCLUDED), modelId);\n\t\t\tSet<Statement> schemaStatements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(schemaOntology)).asJava();\n\t\t\ttriples.addAll(schemaStatements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet()));\n\t\t} catch (OWLOntologyCreationException e) {\n\t\t\tLOG.error(\"Couldn't add rbox statements to data model.\", e);\n\t\t}\n\t\treturn getRuleEngine().processTriples(JavaConverters.asScalaSetConverter(triples).asScala());\n\t}", "public okhttp3.Call createModelCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = model;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "RoomModel createRoomModel(RoomModel roomModel);", "public SSModel createSSObject() {\n\t\tSSModel ssModel = new SSModel();\n\t\tssModel.create(mol);\n\t\t\n\t\treturn ssModel;\n\t}", "private void createNewDynamicModel(){\n\t\tDynamicModel dModel = new DynamicModel(currentView.getViewModel().getName());\r\n\r\n\t\t// Add the new graph to the view\r\n\t\tint modelWidth = DynamicModelView.minimumWidth; \r\n\t\tint modelHeight = DynamicModelView.minimumHeight; \r\n\t\tint viewHeight = currentView.getHeight();\r\n\t\tint pad = 8;\r\n\t\tcurrentView.addModelView(new DynamicModelView(new EntityViewConfig(pad, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t viewHeight - (modelHeight + pad), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelWidth, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelHeight, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t EntityViewConfig.Type.DYNAMIC_MODEL), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdModel, this, currentView));\r\n\t\tcurrentView.repaint();\r\n\t}", "public ModelContainer importModel(String modelData) throws OWLOntologyCreationException {\n\t\t// load data from String\n\t\tfinal OWLOntologyManager manager = graph.getManager();\n\t\tfinal OWLOntologyDocumentSource documentSource = new StringDocumentSource(modelData);\n\t\tOWLOntology modelOntology;\n\t\tfinal Set<OWLParserFactory> originalFactories = removeOBOParserFactories(manager);\n\t\ttry {\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tcatch (OWLOntologyAlreadyExistsException e) {\n\t\t\t// exception is thrown if there is an ontology with the same ID already in memory \n\t\t\tOWLOntologyID id = e.getOntologyID();\n\t\t\tIRI existingModelId = id.getOntologyIRI().orNull();\n\n\t\t\t// remove the existing memory model\n\t\t\tunlinkModel(existingModelId);\n\n\t\t\t// try loading the import version (again)\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tfinally {\n\t\t\tresetOBOParserFactories(manager, originalFactories);\n\t\t}\n\t\t\n\t\t// try to extract modelId\n\t\tIRI modelId = null;\n\t\tOptional<IRI> ontologyIRI = modelOntology.getOntologyID().getOntologyIRI();\n\t\tif (ontologyIRI.isPresent()) {\n\t\t\tmodelId = ontologyIRI.get();\n\t\t}\n\t\tif (modelId == null) {\n\t\t\tthrow new OWLOntologyCreationException(\"Could not extract the modelId from the given model\");\n\t\t}\n\t\t// paranoia check\n\t\tModelContainer existingModel = modelMap.get(modelId);\n\t\tif (existingModel != null) {\n\t\t\tunlinkModel(modelId);\n\t\t}\n\t\t\n\t\t// add to internal model\n\t\tModelContainer newModel = addModel(modelId, modelOntology);\n\t\t\n\t\t// update imports\n\t\tupdateImports(newModel);\n\t\t\n\t\treturn newModel;\n\t}", "protected static Model getModel(String workspaceId, String modelId)\n throws AnaplanAPIException {\n Workspace workspace = getWorkspace(workspaceId);\n if (workspace == null) {\n return null;\n }\n if (modelId == null || modelId.isEmpty()) {\n LOG.error(\"A model ID must be provided\");\n return null;\n }\n Model model = null;\n\n if (!noValidateModel) {\n for (Model m : workspace.getModels()) {\n if (modelId.equals(m.getId()) || modelId.equalsIgnoreCase(m.getName())) {\n model = m;\n break;\n }\n }\n }\n if (model == null) {\n ModelData data = new ModelData(modelId, \"\");\n model = new Model(workspace, data);\n model.setCurrentWorkspaceId(workspaceId);\n }\n return model;\n }", "springfox.documentation.schema.Model create(ModelContext context);", "public static void createInstance(Model model, Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "GameModel createGameModel(GameModel gameModel);", "public Model createModel(ModelNode modelNode) {\n \tif (modelNode == null)\n \t\tthrow new NullPointerException();\n return new ModelImpl(modelNode);\n }", "public boolean create(ModelObject obj);", "public void addModel(Model aModel, OpenSimContext context) throws IOException {\n OpenSimContext dContext = context==null?new OpenSimContext(aModel.initSystem(), aModel):context;\n models.add(aModel);\n mapModelsToContexts.put(aModel, dContext);\n SingleModelGuiElements newModelGuiElements = new SingleModelGuiElements(aModel);\n mapModelsToGuiElements.put(aModel, newModelGuiElements);\n setChanged();\n ModelEvent evnt = new ModelEvent(aModel, ModelEvent.Operation.Open);\n notifyObservers(evnt); \n setCurrentModel(aModel, false);\n //ExplorerTopComponent.addFinalEdit();\n }", "public ModelApiResponse createModel(String workspaceId, Model model) throws ApiException {\n ApiResponse<ModelApiResponse> localVarResp = createModelWithHttpInfo(workspaceId, model);\n return localVarResp.getData();\n }", "public M create(P model);", "public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }", "UserModel createUserModel(UserModel userModel);", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call createModelValidateBeforeCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling createModel(Async)\");\n }\n \n // verify the required parameter 'model' is set\n if (model == null) {\n throw new ApiException(\"Missing the required parameter 'model' when calling createModel(Async)\");\n }\n \n\n okhttp3.Call localVarCall = createModelCall(workspaceId, model, _callback);\n return localVarCall;\n\n }", "public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }", "@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }", "protected void addWorkspace( String workspaceName ) {\n }", "EisModel createEisModel();", "DomainModel createDomainModel();", "@RequestMapping(method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\t@Transactional\r\n\tpublic Object create(@RequestBody Model model) {\r\n\t\ttry {\r\n\t\t\tgetService().create(model);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Create exception for \" + model, e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static IssueModel createIssueModel(String projectId) throws Exception, IOException {\n try (ContactCenterInsightsClient client = ContactCenterInsightsClient.create()) {\n // Construct a parent resource.\n LocationName parent = LocationName.of(projectId, \"us-central1\");\n\n // Construct an issue model.\n IssueModel issueModel =\n IssueModel.newBuilder()\n .setDisplayName(\"my-model\")\n .setInputDataConfig(\n IssueModel.InputDataConfig.newBuilder().setFilter(\"medium=\\\"CHAT\\\"\").build())\n .build();\n\n // Call the Insights client to create an issue model.\n IssueModel response = client.createIssueModelAsync(parent, issueModel).get();\n System.out.printf(\"Created %s%n\", response.getName());\n return response;\n }\n }", "private void createDataModelFolders() {\n\n File dataFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_DATA\");\n File modelFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_MODEL\");\n\n boolean dataSuccess = true;\n boolean modelSuccess = true;\n if (!dataFolder.exists()) {\n try {\n dataSuccess = dataFolder.mkdirs();\n } catch (SecurityException e) {\n dataSuccess = false;\n }\n }\n\n if (!modelFolder.exists()) {\n try {\n modelSuccess = modelFolder.mkdirs();\n } catch (SecurityException e) {\n modelSuccess = false;\n }\n }\n\n String TAG = \"MainScreen\";\n if (dataSuccess) Log.d(TAG, \"Created AGH_IM_DATA folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_DATA Folder\");\n if (modelSuccess) Log.d(TAG, \"Successfully created AGH_IM_MODEL folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_MODEL Folder\");\n\n }", "DataModel createDataModel();", "public static Model createModel(RepositoryConnection connection, Resource context)\n { \n Graph graph = new GraphRepository(connection, context) ;\n return ModelFactory.createModelForGraph(graph) ;\n }", "public IDfSysObject createNewObject(String repositoryObjectName,\r\n\t\t\tString fileLocation, String repositoryPath,String newObjectId) throws Exception {\r\n\t\tIDfSysObject sysObject = null;\r\n\t\ttry{\r\n\t\t\tlogger.info(\"repositoryObjectName\"+repositoryObjectName);\r\n\t\t\tif(newObjectId != null && !newObjectId.equals(\"\")){\r\n\t\t\t\t// This is delta migration. object id is maintained since work flow may be triggered on document\r\n\t\t\t\tsysObject = (IDfSysObject) getDocumemtumSession().getObject(new DfId(newObjectId));\r\n\t\t\t\tif( sysObject==null) throw new Exception(\"Object does not exist in the repository\");\r\n\t\t\t\tsysObject.checkout();\r\n\t\t\t\tlogger.info(\"checked out successfully\" );\r\n\t\t\t\tIDfCheckinOperation cio = clientx.getCheckinOperation();\r\n\t\t\t\tcio.setCheckinVersion(IDfCheckinOperation.SAME_VERSION);\r\n\t\t\t\tIDfCheckinNode node = (IDfCheckinNode) cio.add(sysObject);\r\n\t\t\t\tnode.setFilePath(fileLocation);\r\n\t\t\t\tcio.setSession(getDocumemtumSession());\r\n\t\t\t\tnode.setKeepLocalFile(true);\r\n\t\t\t\tif (!cio.execute())\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new Exception(\"Checkin failed.\");\r\n\t\t\t\t}\r\n\t\t\t\tlogger.info(\"checked in successfully\" );\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tlogger.info(\"before get Path\");\r\n\t\t\t\tIDfFormatRecognizer oFormatRec = clientx.getFormatRecognizer(getDocumemtumSession(),fileLocation,null);\r\n\t\t\t\tString fileFormatName = oFormatRec.getDefaultSuggestedFileFormat();\r\n\t\t\t\tlogger.info(\"after get Path\");\r\n\t\t\t\tsysObject =(IDfSysObject) getDocumemtumSession().newObject(repositoryObjectName);\r\n\t\t\t\tsysObject.setPath(fileLocation,fileFormatName,0,null);\r\n\t\t\t\tsysObject.link(repositoryPath);\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.severe(\"Errro in createNewObject\"+e);\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t return sysObject;\r\n\t}", "public void save(final IPath path) throws IOException {\r\n\t\t// This sets the model as contents in a new resource when using save as.\r\n\t\ttry {\r\n\t\t\tresource = resourceSet.getResource(URI.createPlatformResourceURI(\r\n\t\t\t\t\tpath.toString(), true), true);\r\n\t\t} catch (final Exception e) {\r\n\t\t\t// FIXME eigentlich sollte getResource schon eine Resource erzeugen\r\n\t\t\tresource = resourceSet.createResource(URI\r\n\t\t\t\t\t.createPlatformResourceURI(path.toString(), true));\r\n\t\t\tAssert.isTrue(false, \"Unerwartete Codeausführung.\");\r\n\t\t}\r\n\t\trecursiveSetNamesIfUnset(models);\r\n\t\tresource.getContents().clear();\r\n\t\tresource.getContents().addAll(models);\r\n\t\tfinal Map<String, Boolean> options = new HashMap<String, Boolean>();\r\n\t\toptions.put(XMLResource.OPTION_DECLARE_XML, Boolean.TRUE);\r\n\t\tresource.save(options);\r\n\t}", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "public void saveModel(String filePath) {\n\n\t\tFile parentFile = new File(filePath).getParentFile();\n\t\tif (parentFile != null && !parentFile.exists()) {\n\t\t\tparentFile.mkdirs();\n\t\t}\n\n\t\ttry {\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(filePath));\n\t\t\toos.writeObject(new HMMModel(pi, A, B));\n\t\t\toos.close();\n\t\t\tSystem.out.println(\"Model saved.\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n\tpublic edu.weather.servicebuilder.model.Weather createWeather(\n\t\tlong weatherId) {\n\t\treturn _weatherLocalService.createWeather(weatherId);\n\t}", "protected abstract IModel<T> createModel(T object);", "public ModelingExercise createModelingExercise(Long courseId, Long exerciseId) {\n ZonedDateTime pastTimestamp = ZonedDateTime.now().minusDays(5);\n ZonedDateTime futureTimestamp = ZonedDateTime.now().plusDays(5);\n ZonedDateTime futureFutureTimestamp = ZonedDateTime.now().plusDays(8);\n\n Course course1 = ModelFactory.generateCourse(courseId, pastTimestamp, futureTimestamp, new HashSet<>(), \"tumuser\", \"tutor\", \"instructor\");\n ModelingExercise modelingExercise = ModelFactory.generateModelingExercise(pastTimestamp, futureTimestamp, futureFutureTimestamp, DiagramType.ClassDiagram, course1);\n modelingExercise.setGradingInstructions(\"Grading instructions\");\n modelingExercise.getCategories().add(\"Modeling\");\n modelingExercise.setId(exerciseId);\n course1.addExercises(modelingExercise);\n\n return modelingExercise;\n }", "GoalModel createGoalModel();", "public void createProject(Project newProject);", "public ModelingExercise createModelingExercise(Long courseId) {\n return createModelingExercise(courseId, null);\n }", "public void saveModel() {\n\t}", "public com.inikah.slayer.model.MMCity create(long cityId);", "public void addModel(Model aModel) throws IOException {\n addModel(aModel, null);\n }", "public static void createInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "@Override\n\tpublic HomeModel create(HomeModel model) {\n\t\treturn null;\n\t}", "private void createModel() {\n model = new Node(\"Enemy\"+enemyCounter);\n Box b = new Box(.5f, 2, .5f);\n Geometry bg = new Geometry(\"Box\", b);\n Material bm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n Sphere sphere = new Sphere(32, 32, 1.5f, false, false);\n Geometry sg = new Geometry(\"Sphere\", sphere);\n Material sm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n bm.setColor(\"Color\", ColorRGBA.Blue);\n sm.setColor(\"Color\", ColorRGBA.Red);\n bg.setMaterial(bm); \n sg.setMaterial(sm);\n model.attachChild(bg);\n model.attachChild(sg);\n sg.setLocalTranslation(0,2.5f,0);\n \n attachChild(model);\n }", "private void createWorkSpace() {\n\t\tif(promptForWorkSpaceName() != null){\n\t\t\tmyWorkSpaceListener.createWorkSpace(promptForWorkSpaceName());\n\t\t}\n\t}", "@Test\n public void test_create_scenario() {\n try {\n TestData X = new TestData(\"project2.opt\");\n String new_name = \"new_scenario\";\n X.project.create_scenario(new_name);\n assertNotNull(X.project.get_scenario_with_name(new_name));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "SystemParamModel createSystemParamModel();", "public void saveModel() {\n\n }", "public void save() {\n\t\t// Register the XMI resource factory for the .xmi extension\n\t\tResource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;\n\t\tMap<String, Object> m = reg.getExtensionToFactoryMap();\n\t\tm.put(\"xmi\", new XMIResourceFactoryImpl());\n\n\t\t// Obtain a new resource set\n\t\tResourceSet resSet = new ResourceSetImpl();\n\n\t\t// Create a resource\n\t\tResource resource = resSet.createResource(this.targetURI);\n\n\t\t// Get the first model element and cast it to the right type\n\t\tresource.getContents().add(targetRootBlock);\n\n\t\t// Now save the content.\n\t\tMap<String, Object> options = new HashMap<String, Object>();\n\t\toptions.put(XMIResource.OPTION_ENCODING, \"UTF-8\");\n\t\ttry {\n\t\t\tresource.save(options);\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"IOException when trying to save to \" + this.targetURI);\n\t\t}\n\n\t\tif (LOGGER.isInfoEnabled()) {\n\t\t\tLOGGER.info(\"Saved Shapes model to \" + this.targetURI);\n\t\t}\n\t}", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "@GetMapping(\"/add\")\r\n\tpublic String newSave(Model model) {\r\n\t\tmodel.addAttribute(\"trainee\", new Trainee());\r\n\t\treturn \"add-trainee\";\r\n\t}", "boolean add(SysFile model);", "InstanceModel createInstanceOfInstanceModel();", "Build_Model() {\n\n }", "public static int addModel(String fileName) {\n\t\tString path = NEW_MODEL + fileName;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return 400;\n\t\treturn response.statusCode();\n\t}", "public JsonNode insert(String resourcePath, String model, JsonNode jsonNode) {\n\t\tNitrite db = nitriteDbConnection.getConnection(resourcePath, model);\n\t\tNitriteCollection collection = db.getCollection(model);\n\t\tDocument doc = getDocument(jsonNode);\n\t\tcollection.insert(doc);\n\t\treturn getJsonNode(doc);\n\t}", "private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n\t\tVehicle vehicle = new Vehicle(make, model, weight, engineSize, numberOfDoors, isImport);\n\t\treturn vehicle;\t\t\n\t}", "ZenModel createZenModel();", "HdbdtiModel createHdbdtiModel();", "public void createModel() {\n\t\tmyShop = ShopFactory.eINSTANCE.createShop();\n\n\t\tfinal Country dk = ShopFactory.eINSTANCE.createCountry();\n\t\tdk.setName(\"Denmark\");\n\t\tdk.setAbbreviation(\"DK\");\n\t\tmyShop.getCountries().add(dk);\n\n\t\tfinal Country se = ShopFactory.eINSTANCE.createCountry();\n\t\tse.setName(\"Sweden\");\n\t\tse.setAbbreviation(\"SE\");\n\t\tmyShop.getCountries().add(se);\n\n\t\tfinal Contact a = ShopFactory.eINSTANCE.createContact();\n\t\ta.setName(\"a\");\n\t\ta.setCity(\"A\");\n\t\ta.setCountry(dk);\n\t\tmyShop.getContacts().add(a);\n\n\t\tfinal Contact b = ShopFactory.eINSTANCE.createContact();\n\t\tb.setName(\"b\");\n\t\tb.setCity(\"A\");\n\t\tb.setCountry(se);\n\t\tmyShop.getContacts().add(b);\n\t}", "IFMLModel createIFMLModel();", "public void saveModel(ModelClass model) throws StorageIOException {\n try {\n Dao<ModelDB, String> modelDao = this.databaseHelper.getDao(ModelDB.class);\n\n ModelDB modelEntity = classToDB(model);\n modelDao.createOrUpdate(modelEntity);\n \n } catch (SQLException e) {\n throw new StorageIOException(\"Failed to save model\", e);\n }\n }", "public Participacao createParticipacao(Participacao model) {\n return participacaoRepository.save(model);\n}", "public Workspace build() {\n if (properties == null) {\n properties = new HashMap<>();\n }\n if (workspaceId == null || workspaceStage == null) {\n throw new MissingRequiredFieldsException(\"Workspace requires id and stage\");\n }\n return new Workspace(\n workspaceId,\n displayName,\n description,\n spendProfileId,\n properties,\n workspaceStage,\n gcpCloudContext);\n }", "@RequestMapping(value = \"/staff/programcreate\")\n\tpublic String redirectToProgramCreate(Model model) {\n\t\tProgram program = new Program();\n\t\tmodel.addAttribute(\"program\", program);\n\t\treturn \"staff/programcreate\";\n\t}", "public com.huqiwen.demo.book.model.Books create(long bookId);", "@POST\r\n public Response createResearchObject()\r\n throws BadRequestException, IllegalArgumentException, UriBuilderException, ConflictException,\r\n DigitalLibraryException, NotFoundException {\r\n LOGGER.debug(String.format(\"%s\\t\\tInit create RO\", new DateTime().toString()));\r\n String researchObjectId = request.getHeader(Constants.SLUG_HEADER);\r\n if (researchObjectId == null || researchObjectId.isEmpty()) {\r\n throw new BadRequestException(\"Research object ID is null or empty\");\r\n }\r\n URI uri = uriInfo.getAbsolutePathBuilder().path(researchObjectId).path(\"/\").build();\r\n ResearchObject researchObject = ResearchObject.findByUri(uri);\r\n if (researchObject != null) {\r\n throw new ConflictException(\"RO already exists\");\r\n }\r\n researchObject = new ResearchObject(uri);\r\n URI researchObjectURI = ROSRService.createResearchObject(researchObject);\r\n LOGGER.debug(String.format(\"%s\\t\\tRO created\", new DateTime().toString()));\r\n \r\n RDFFormat format = RDFFormat.forMIMEType(request.getHeader(Constants.ACCEPT_HEADER), RDFFormat.RDFXML);\r\n InputStream manifest = ROSRService.SMS.get().getNamedGraph(researchObject.getManifestUri(), format);\r\n ContentDisposition cd = ContentDisposition.type(format.getDefaultMIMEType())\r\n .fileName(ResearchObject.MANIFEST_PATH).build();\r\n \r\n LOGGER.debug(String.format(\"%s\\t\\tReturning\", new DateTime().toString()));\r\n return Response.created(researchObjectURI).entity(manifest).header(\"Content-disposition\", cd).build();\r\n }", "@Test\r\n void testCreate() {\r\n assertNotNull(model);\r\n }", "public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }", "public T createModel(Cursor cursor, String id);", "public void openModel() {\r\n \t\tisReleased = true;\r\n \t\tif (checkForSave(\"<html>Save changes before opening a saved model?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\tJMODELModel tmpmodel = new JMODELModel();\r\n \t\tint state = modelLoader.loadModel(tmpmodel, mainWindow);\r\n \t\tif (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {\r\n \t\t\tresetMouseState();\r\n \t\t\t// Avoid checkForSave again...\r\n \t\t\tif (model != null) {\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t}\r\n \t\t\tnewModel();\r\n \t\t\t// At this point loading was successful, so substitutes old model\r\n \t\t\t// with loaded one\r\n \t\t\tmodel = tmpmodel;\r\n \t\t\tthis.populateGraph();\r\n \t\t\tsetSelect.setEnabled(true);\r\n \t\t\tcomponentBar.clickButton(setSelect);\r\n \t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t// Removes selection\r\n \t\t\tgraph.clearSelection();\r\n \t\t\t// If model contains results, enable Results Window\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\tif (model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\tthis.setResultsWindow(new PAResultsWindow(model.getParametricAnalysisModel(), (PAResultsModel) model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthis.setResultsWindow(new ResultsWindow(model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tmodel.resetSaveState();\r\n \t\t\tSystem.gc();\r\n \t\t} else if (state == ModelLoader.FAILURE) {\r\n \t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t}\r\n \t\t// Shows warnings if any\r\n \t\tif (state == ModelLoader.WARNING) {\r\n \t\t\tnew WarningWindow(modelLoader.getLastWarnings(), mainWindow, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show();\r\n \t\t}\r\n \r\n \t}", "protected void addContentModel(WorkflowDefinitionConversion conversion, String processId) {\n\t\tM2Model model = new M2Model();\n\t\tmodel.setName(AlfrescoConversionUtil.getQualifiedName(processId, \n\t\t\t\tCONTENT_MODEL_UNQUALIFIED_NAME));\n\t\t\n\t\tM2Namespace namespace = AlfrescoConversionUtil.createNamespace(processId);\n\t\tmodel.getNamespaces().add(namespace);\n\t\t\n\t\t\n\t\t// Import required alfresco models\n\t\tmodel.getImports().add(DICTIONARY_NAMESPACE);\n\t\tmodel.getImports().add(CONTENT_NAMESPACE);\n\t\tmodel.getImports().add(BPM_NAMESPACE);\n\t\t\n\t\t// Store model in the conversion artifacts to be accessed later\n\t\tAlfrescoConversionUtil.storeContentModel(model, conversion);\n\t\tAlfrescoConversionUtil.storeModelNamespacePrefix(namespace.getPrefix(), conversion);\n }", "@PostMapping\n public ResponseEntity<Project> createNewProject(@Valid @RequestBody Project project) {\n\n Project project1 = projectService.saveOrUpdateProject(project);\n return new ResponseEntity<Project>(project1, HttpStatus.CREATED);\n }", "private IProject createNewProject() {\r\n\t\tif (newProject != null) {\r\n\t\t\treturn newProject;\r\n\t\t}\r\n\r\n\t\t// get a project handle\r\n\t\tfinal IProject newProjectHandle = mainPage.getProjectHandle();\r\n\r\n\t\t// get a project descriptor\r\n\t\tURI location = mainPage.getLocationURI();\r\n\r\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\r\n\t\tfinal IProjectDescription description = workspace.newProjectDescription(newProjectHandle.getName());\r\n\t\tdescription.setLocationURI(location);\r\n\r\n\t\tlog.info(\"Project name: \" + newProjectHandle.getName());\r\n\t\t//log.info(\"Location: \" + location.toString());\r\n\t\t\r\n\t\t// create the new project operation\r\n\t\tIRunnableWithProgress op = new IRunnableWithProgress() {\r\n\t\t\tpublic void run(IProgressMonitor monitor)\r\n\t\t\t\t\tthrows InvocationTargetException {\r\n\t\t\t\tCreateProjectOperation op = new CreateProjectOperation(description, ResourceMessages.NewProject_windowTitle);\r\n\t\t\t\ttry {\r\n\t\t\t\t\top.execute(monitor, WorkspaceUndoUtil.getUIInfoAdapter(getShell()));\r\n\t\t\t\t} catch (ExecutionException e) {\r\n\t\t\t\t\tthrow new InvocationTargetException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// run the new project creation operation\r\n\t\ttry {\r\n\t\t\tgetContainer().run(true, true, op);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t} catch (InvocationTargetException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tnewProject = newProjectHandle;\r\n\r\n\t\treturn newProject;\r\n\t}", "public void setModelId(long modelId);", "public Base save(Base model) throws IOException {\n\t\tif (model.getID().equals(\"\")) {\n\t\t\treturn Core.create(model, getHttpMethodExecutor());\n\t\t} else {\n\t\t\treturn Core.update(model, getHttpMethodExecutor());\n\t\t}\n\n\t}", "public WorkspaceController() {\n this.workspace = new Workspace();\n pom = new ProcedureOutputManager(workspace);\t//*****\n }", "public void saveToFile(File file, Model model) throws IOException;", "@RequestMapping(value = { \"/new\"}, method = RequestMethod.GET)\n\tpublic String newEntity(ModelMap model) {\n\t\tENTITY entity = createEntity();\n\n\t\tmodel.addAttribute(\"entity\", entity);\n\t\tmodel.addAttribute(\"edit\", false);\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn viewBaseLocation + \"/form\";\n\t}", "public void createNoteEditModel() {\n \t\tif (this.mNoteItemModel == null)\n \t\t\tthis.mNoteItemModel = new NoteItemModel(this.getContext());\n \t\tthis.status = STATUS_CREATE;\n \t}", "public void create(){}", "public ModelOfCar saveModel(ModelOfCar modelOfCar) {\n\t\tModelOfCar existingModel = repository.findByName(modelOfCar.getName());\n\t\tif (existingModel == null)\n\t\t\treturn repository.save(modelOfCar);\n\t\telse\n\t\t\t{\n\t\t\tLOGGER.error(\"Spring Boot informerar mig om att ett fel har inträffat. Model finns i tabell\");\n\t\t\tthrow new OurCustomExceptions(\"Model finns i tabell\");}\n\n\t}", "public static void createAllModels() throws IOException, InterruptedException {\n ConsoleLogger.printHeader(\"Creating models\");\n List<String> modelsToCreate = new ArrayList<>(FileHelper.loadAllFilesInPath(MODELS_PATH).values());\n final CountDownLatch createModelsLatch = new CountDownLatch(1);\n\n // Call API to create the models. For each async operation, once the operation is completed successfully, a latch is counted down.\n client.createModels(modelsToCreate)\n .doOnNext(listOfModelData -> listOfModelData.forEach(\n modelData -> ConsoleLogger.printSuccess(\"Created model: \" + modelData.getModelId())\n ))\n .doOnError(IGNORE_CONFLICT_ERROR)\n .doOnTerminate(createModelsLatch::countDown)\n .subscribe();\n\n // Wait until the latch count reaches zero, signifying that the async calls have completed successfully.\n createModelsLatch.await(MAX_WAIT_TIME_ASYNC_OPERATIONS_IN_SECONDS, TimeUnit.SECONDS);\n }", "void saveDocument(SingleDocumentModel model, Path newPath);", "public ResponseEntityUserModel createNewUser (UserModel model) throws ApiException {\n Object postBody = model;\n byte[] postBinaryBody = null;\n\n // verify the required parameter 'model' is set\n if (model == null) {\n throw new ApiException(400, \"Missing the required parameter 'model' when calling createNewUser\");\n }\n\n // create path and map variables\n String path = API_VERSION + \"/users\";\n\n // query params\n List<Pair> queryParams = new ArrayList<Pair>();\n Map<String, String> headerParams = new HashMap<String, String>();\n Map<String, Object> formParams = new HashMap<String, Object>();\n\n final String[] accepts = { \"application/json\" };\n\n final String accept = apiClient.selectHeaderAccept(accepts);\n\n final String[] contentTypes = { };\n\n final String contentType = apiClient.selectHeaderContentType(contentTypes);\n\n String[] authNames = getAuthNames();\n\n TypeRef returnType = new TypeRef<ResponseEntityUserModel>() { };\n\n return apiClient.invokeAPI(path, \"POST\", queryParams, postBody, postBinaryBody, headerParams, formParams, accept, contentType, authNames, returnType);\n }", "protected Phone createPhone(Models model)\n {\n Phone phone = null;\n PhoneComponentFactory componentFactory = new TurkeyComponentFactory();\n\n switch(model){\n case MaximumEffort:\n phone = new MaximumEffortModel(componentFactory);\n phone.setName(\"Turkey - MaximumEffort Model\");\n break;\n case IflasDeluxe:\n phone = new IflasDeluxeModel(componentFactory);\n phone.setName(\"Turkey - IflasDeluxe Model\");\n break;\n case I_I_Aman_Iflas:\n phone = new I_I_Aman_IflasModel(componentFactory);\n phone.setName(\"Turkey - I-I-Aman-Iflas Model\");\n break;\n }\n System.out.println(\"-> Phone model is: \" + phone.getName());\n\n return phone;\n }", "GameScoreModel createGameScoreModel(GameScoreModel gameScoreModel);" ]
[ "0.6147311", "0.60625845", "0.60625845", "0.60625845", "0.60625845", "0.60625845", "0.60625845", "0.60625845", "0.57166845", "0.5670537", "0.5656197", "0.5618679", "0.56167257", "0.55516386", "0.5531513", "0.5410468", "0.539747", "0.5388131", "0.53776264", "0.5374237", "0.5349111", "0.5343556", "0.53321147", "0.5307801", "0.53019536", "0.5290135", "0.51953423", "0.5190242", "0.5129423", "0.5068329", "0.5050509", "0.5047587", "0.50230247", "0.49980754", "0.49924427", "0.49826145", "0.49760458", "0.49648646", "0.49636388", "0.49470708", "0.49460465", "0.49426028", "0.49305516", "0.4918096", "0.49162456", "0.48871723", "0.4873513", "0.48658627", "0.485742", "0.48568386", "0.48557", "0.484667", "0.48420325", "0.48149398", "0.480578", "0.4791855", "0.47785363", "0.4774367", "0.47661662", "0.47623864", "0.47618413", "0.47612122", "0.47599748", "0.47580308", "0.47571275", "0.47492626", "0.4744954", "0.47417137", "0.4733357", "0.47302002", "0.47268552", "0.4725238", "0.4703207", "0.47014993", "0.46964654", "0.468912", "0.46867543", "0.46655798", "0.46602735", "0.4651575", "0.4649367", "0.46480015", "0.46465725", "0.46454006", "0.46368638", "0.4629235", "0.46216294", "0.4619894", "0.4615792", "0.46144035", "0.46051902", "0.4599071", "0.4598387", "0.4594409", "0.4590856", "0.4566466", "0.45657647", "0.45649388", "0.45599365", "0.45598546" ]
0.4966068
37
Create a new model in the workspace (asynchronously) Create a new model in the workspace identified in the workspaceId path paramter.
public okhttp3.Call createModelAsync(String workspaceId, Model model, final ApiCallback<ModelApiResponse> _callback) throws ApiException { okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, _callback); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void create(Model model) throws Exception;", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "public static void createAllModels() throws IOException, InterruptedException {\n ConsoleLogger.printHeader(\"Creating models\");\n List<String> modelsToCreate = new ArrayList<>(FileHelper.loadAllFilesInPath(MODELS_PATH).values());\n final CountDownLatch createModelsLatch = new CountDownLatch(1);\n\n // Call API to create the models. For each async operation, once the operation is completed successfully, a latch is counted down.\n client.createModels(modelsToCreate)\n .doOnNext(listOfModelData -> listOfModelData.forEach(\n modelData -> ConsoleLogger.printSuccess(\"Created model: \" + modelData.getModelId())\n ))\n .doOnError(IGNORE_CONFLICT_ERROR)\n .doOnTerminate(createModelsLatch::countDown)\n .subscribe();\n\n // Wait until the latch count reaches zero, signifying that the async calls have completed successfully.\n createModelsLatch.await(MAX_WAIT_TIME_ASYNC_OPERATIONS_IN_SECONDS, TimeUnit.SECONDS);\n }", "public <T> T createModel(T referenceModel) throws CreateModelException {\n return createModel(referenceModel, true);\n }", "public WorkingMemory createInferredModel(IRI modelId) {\n\t\tSet<Statement> statements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(getModelAbox(modelId))).asJava();\n\t\tSet<Triple> triples = statements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet());\n\t\ttry {\n\t\t\t// Using model's ontology IRI so that a spurious different ontology declaration triple isn't added\n\t\t\tOWLOntology schemaOntology = OWLManager.createOWLOntologyManager().createOntology(getOntology().getRBoxAxioms(Imports.INCLUDED), modelId);\n\t\t\tSet<Statement> schemaStatements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(schemaOntology)).asJava();\n\t\t\ttriples.addAll(schemaStatements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet()));\n\t\t} catch (OWLOntologyCreationException e) {\n\t\t\tLOG.error(\"Couldn't add rbox statements to data model.\", e);\n\t\t}\n\t\treturn getRuleEngine().processTriples(JavaConverters.asScalaSetConverter(triples).asScala());\n\t}", "@RequestMapping(method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\t@Transactional\r\n\tpublic Object create(@RequestBody Model model) {\r\n\t\ttry {\r\n\t\t\tgetService().create(model);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Create exception for \" + model, e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public okhttp3.Call createModelCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = model;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public static boolean createModelingProject(String projectName,\n\t\t\tURI location, IProgressMonitor monitor) throws CoreException {\n\t\tIProject newProject = ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t.getProject(projectName);\n\t\t// if project exists not, then create one\n\t\tif (!newProject.exists()) {\n\t\t\tURI projectLocation = location;\n\t\t\t// Set description\n\t\t\tIProjectDescription desc = newProject.getWorkspace()\n\t\t\t\t\t.newProjectDescription(newProject.getName());\n\t\t\tif (location != null\n\t\t\t\t\t&& ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t\t\t\t.getLocationURI().equals(location)) {\n\t\t\t\tprojectLocation = null;\n\t\t\t}\n\t\t\tdesc.setLocationURI(projectLocation);\n\t\t\ttry {\n\t\t\t\tnewProject.create(desc, null);\n\t\t\t\tif (!newProject.isOpen()) {\n\t\t\t\t\tnewProject.open(null);\n\t\t\t\t}\n\t\t\t} catch (CoreException e) {\n\t\t\t\tLOGGER.error(\"\", e);\n\t\t\t}\n\t\t}\n\n\t\taddNature(newProject);\n\n\t\t// our basic folder structure\n\n\t\t// models\n\t\tIFolder modelFolder = createFolder(\n\t\t\t\tMessages.CreationFunctions_folder_title_models, newProject);\n\t\t// properties\n\t\tcreateFolder(\".properties\", newProject);\n\n\t\tif (ModelPreferencePage.getFolderPreference()) {\n\n\t\t\t// one folder for every registered model\n\t\t\tfor (String folderName : ModelRegistry.getInstance()\n\t\t\t\t\t.getAllModelNames()) {\n\t\t\t\tcreateFolder(folderName, modelFolder);\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public static void createInstance(Model model, Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "public Model createByUserModel(int id, Model model) {\n User user = userService.get(id);\n Set<Project> projects = user.getProjects();\n model.addAttribute(\"user\", user);\n model.addAttribute(\"myProjects\", projects);\n return model;\n }", "RoomModel createRoomModel(RoomModel roomModel);", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call createModelValidateBeforeCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling createModel(Async)\");\n }\n \n // verify the required parameter 'model' is set\n if (model == null) {\n throw new ApiException(\"Missing the required parameter 'model' when calling createModel(Async)\");\n }\n \n\n okhttp3.Call localVarCall = createModelCall(workspaceId, model, _callback);\n return localVarCall;\n\n }", "private void createNewDynamicModel(){\n\t\tDynamicModel dModel = new DynamicModel(currentView.getViewModel().getName());\r\n\r\n\t\t// Add the new graph to the view\r\n\t\tint modelWidth = DynamicModelView.minimumWidth; \r\n\t\tint modelHeight = DynamicModelView.minimumHeight; \r\n\t\tint viewHeight = currentView.getHeight();\r\n\t\tint pad = 8;\r\n\t\tcurrentView.addModelView(new DynamicModelView(new EntityViewConfig(pad, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t viewHeight - (modelHeight + pad), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelWidth, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelHeight, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t EntityViewConfig.Type.DYNAMIC_MODEL), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdModel, this, currentView));\r\n\t\tcurrentView.repaint();\r\n\t}", "public boolean create(ModelObject obj);", "public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}", "private void createDataModelFolders() {\n\n File dataFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_DATA\");\n File modelFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_MODEL\");\n\n boolean dataSuccess = true;\n boolean modelSuccess = true;\n if (!dataFolder.exists()) {\n try {\n dataSuccess = dataFolder.mkdirs();\n } catch (SecurityException e) {\n dataSuccess = false;\n }\n }\n\n if (!modelFolder.exists()) {\n try {\n modelSuccess = modelFolder.mkdirs();\n } catch (SecurityException e) {\n modelSuccess = false;\n }\n }\n\n String TAG = \"MainScreen\";\n if (dataSuccess) Log.d(TAG, \"Created AGH_IM_DATA folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_DATA Folder\");\n if (modelSuccess) Log.d(TAG, \"Successfully created AGH_IM_MODEL folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_MODEL Folder\");\n\n }", "public void addModel(Model aModel, OpenSimContext context) throws IOException {\n OpenSimContext dContext = context==null?new OpenSimContext(aModel.initSystem(), aModel):context;\n models.add(aModel);\n mapModelsToContexts.put(aModel, dContext);\n SingleModelGuiElements newModelGuiElements = new SingleModelGuiElements(aModel);\n mapModelsToGuiElements.put(aModel, newModelGuiElements);\n setChanged();\n ModelEvent evnt = new ModelEvent(aModel, ModelEvent.Operation.Open);\n notifyObservers(evnt); \n setCurrentModel(aModel, false);\n //ExplorerTopComponent.addFinalEdit();\n }", "public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }", "private void createWorkSpace() {\n\t\tif(promptForWorkSpaceName() != null){\n\t\t\tmyWorkSpaceListener.createWorkSpace(promptForWorkSpaceName());\n\t\t}\n\t}", "public ModelContainer importModel(String modelData) throws OWLOntologyCreationException {\n\t\t// load data from String\n\t\tfinal OWLOntologyManager manager = graph.getManager();\n\t\tfinal OWLOntologyDocumentSource documentSource = new StringDocumentSource(modelData);\n\t\tOWLOntology modelOntology;\n\t\tfinal Set<OWLParserFactory> originalFactories = removeOBOParserFactories(manager);\n\t\ttry {\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tcatch (OWLOntologyAlreadyExistsException e) {\n\t\t\t// exception is thrown if there is an ontology with the same ID already in memory \n\t\t\tOWLOntologyID id = e.getOntologyID();\n\t\t\tIRI existingModelId = id.getOntologyIRI().orNull();\n\n\t\t\t// remove the existing memory model\n\t\t\tunlinkModel(existingModelId);\n\n\t\t\t// try loading the import version (again)\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tfinally {\n\t\t\tresetOBOParserFactories(manager, originalFactories);\n\t\t}\n\t\t\n\t\t// try to extract modelId\n\t\tIRI modelId = null;\n\t\tOptional<IRI> ontologyIRI = modelOntology.getOntologyID().getOntologyIRI();\n\t\tif (ontologyIRI.isPresent()) {\n\t\t\tmodelId = ontologyIRI.get();\n\t\t}\n\t\tif (modelId == null) {\n\t\t\tthrow new OWLOntologyCreationException(\"Could not extract the modelId from the given model\");\n\t\t}\n\t\t// paranoia check\n\t\tModelContainer existingModel = modelMap.get(modelId);\n\t\tif (existingModel != null) {\n\t\t\tunlinkModel(modelId);\n\t\t}\n\t\t\n\t\t// add to internal model\n\t\tModelContainer newModel = addModel(modelId, modelOntology);\n\t\t\n\t\t// update imports\n\t\tupdateImports(newModel);\n\t\t\n\t\treturn newModel;\n\t}", "java.util.concurrent.Future<CreateSolNetworkInstanceResult> createSolNetworkInstanceAsync(CreateSolNetworkInstanceRequest createSolNetworkInstanceRequest);", "public JsonNode insert(String resourcePath, String model, JsonNode jsonNode) {\n\t\tNitrite db = nitriteDbConnection.getConnection(resourcePath, model);\n\t\tNitriteCollection collection = db.getCollection(model);\n\t\tDocument doc = getDocument(jsonNode);\n\t\tcollection.insert(doc);\n\t\treturn getJsonNode(doc);\n\t}", "public SSModel createSSObject() {\n\t\tSSModel ssModel = new SSModel();\n\t\tssModel.create(mol);\n\t\t\n\t\treturn ssModel;\n\t}", "public void runModel(){\n\t\tcurrentView.getDynamicModelView().getModel().setProgressMonitor(progressMonitor);\r\n\t\tnew Thread(currentView.getDynamicModelView().getModel()).start();\r\n\r\n\t\tsetStatusBarText(\"Ready\");\r\n\t}", "GameModel createGameModel(GameModel gameModel);", "UserModel createUserModel(UserModel userModel);", "Build_Model() {\n\n }", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "public Participacao createParticipacao(Participacao model) {\n return participacaoRepository.save(model);\n}", "public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }", "public final CompletableFuture<CreateResponse> create(\n\t\t\tFunction<CreateRequest.Builder, ObjectBuilder<CreateRequest>> fn) throws IOException {\n\t\treturn create(fn.apply(new CreateRequest.Builder()).build());\n\t}", "@POST\r\n public Response createResearchObject()\r\n throws BadRequestException, IllegalArgumentException, UriBuilderException, ConflictException,\r\n DigitalLibraryException, NotFoundException {\r\n LOGGER.debug(String.format(\"%s\\t\\tInit create RO\", new DateTime().toString()));\r\n String researchObjectId = request.getHeader(Constants.SLUG_HEADER);\r\n if (researchObjectId == null || researchObjectId.isEmpty()) {\r\n throw new BadRequestException(\"Research object ID is null or empty\");\r\n }\r\n URI uri = uriInfo.getAbsolutePathBuilder().path(researchObjectId).path(\"/\").build();\r\n ResearchObject researchObject = ResearchObject.findByUri(uri);\r\n if (researchObject != null) {\r\n throw new ConflictException(\"RO already exists\");\r\n }\r\n researchObject = new ResearchObject(uri);\r\n URI researchObjectURI = ROSRService.createResearchObject(researchObject);\r\n LOGGER.debug(String.format(\"%s\\t\\tRO created\", new DateTime().toString()));\r\n \r\n RDFFormat format = RDFFormat.forMIMEType(request.getHeader(Constants.ACCEPT_HEADER), RDFFormat.RDFXML);\r\n InputStream manifest = ROSRService.SMS.get().getNamedGraph(researchObject.getManifestUri(), format);\r\n ContentDisposition cd = ContentDisposition.type(format.getDefaultMIMEType())\r\n .fileName(ResearchObject.MANIFEST_PATH).build();\r\n \r\n LOGGER.debug(String.format(\"%s\\t\\tReturning\", new DateTime().toString()));\r\n return Response.created(researchObjectURI).entity(manifest).header(\"Content-disposition\", cd).build();\r\n }", "@Override\n public void run() throws SmartServiceException {\n UserProfile author = us.getUser(smartServiceCtx.getUsername());\n String username = author.getUsername();\n\n // Create a filename based on the user's name and MadLib title.\n String userFullName = author.getFirstName() + \" \" + author.getLastName();\n String docName = username + \" \" + madlib.getTitle();\n\n if (LOG.isDebugEnabled()) {\n LOG.debug(String.format(\"Creating new document in folder %d with name %s and ext %s\", saveIn, docName,\n DOC_EXTENSION));\n }\n // Instantiate a new Document object with the necessary metadata\n Document newDoc = new Document(saveIn, docName, DOC_EXTENSION);\n try {\n // Creates a new document in the Appian engine. At this point the document is empty.\n // Content.UNIQUE_NONE specifies that we don't need to worry about document name uniqueness\n ContentOutputStream madlibOS = cs.upload(newDoc, Content.UNIQUE_NONE);\n\n // Save the id of the new document as our smartservice output\n madlibDoc = madlibOS.getContentId();\n\n // Write the madlib text and some footer information to the new document file on disk\n PrintWriter pw = new PrintWriter(madlibOS);\n pw.println(AppianMadLibUtil.createMadLibText(madlib));\n pw.println(\"By \" + userFullName);\n pw.println(\"Created \" + new Date());\n pw.close();\n\n } catch (PrivilegeException e) {\n LOG.error(\n String.format(\"User %s did not have permission to write to folder [id=%d]\", username, saveIn), e);\n throw createException(e, \"error.exception.permission\", smartServiceCtx.getUsername(), saveIn);\n } catch (Exception e) {\n LOG.error(\n String.format(\"Unexpected error creating new doc in folder [id=%d] as user %s\", saveIn, username), e);\n throw createException(e, \"error.exception.unknown\", smartServiceCtx.getUsername(), saveIn);\n }\n }", "public static void createInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "public Base save(Base model) throws IOException {\n\t\tif (model.getID().equals(\"\")) {\n\t\t\treturn Core.create(model, getHttpMethodExecutor());\n\t\t} else {\n\t\t\treturn Core.update(model, getHttpMethodExecutor());\n\t\t}\n\n\t}", "DataModel createDataModel();", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifierObject = ObjectClassifier.create(context.getAssets(), TYPE_MODEL, LABEL_TYPE, INPUT_SIZE_TYPE);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "public void saveAndCreateNew() throws Exception {\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tgetControl(\"saveAndCreateNew\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t}", "java.util.concurrent.Future<CreateDataIntegrationResult> createDataIntegrationAsync(CreateDataIntegrationRequest createDataIntegrationRequest);", "public Model createModel(ModelNode modelNode) {\n \tif (modelNode == null)\n \t\tthrow new NullPointerException();\n return new ModelImpl(modelNode);\n }", "public M create(P model);", "public okhttp3.Call trainModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = trainModelValidateBeforeCall(workspaceId, modelId, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public ApiResponse<ModelApiResponse> createModelWithHttpInfo(String workspaceId, Model model) throws ApiException {\n okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, null);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n return localVarApiClient.execute(localVarCall, localVarReturnType);\n }", "public boolean create(final TaskModel taskModel) {\n GeneratedKeyHolder keyHolder = new GeneratedKeyHolder();\n\n int affected = jdbcTemplate.update(\n new PreparedStatementCreator() {\n @Override\n public PreparedStatement createPreparedStatement(Connection con) throws SQLException {\n PreparedStatement ps = con.prepareStatement(\n \"insert into \" + TABLE_NAME + \" (\" + COL_TASK_NAME + \",\" + COL_NODE_ID + \",\" + COL_POOL_ID + \") values (?, ?, ?)\",\n Statement.RETURN_GENERATED_KEYS // specify to populate the generated key holder\n );\n ps.setString(1, taskModel.taskName.name());\n ps.setLong(2, taskModel.nodeId);\n ps.setString(3, taskModel.poolId);\n return ps;\n }\n },\n keyHolder\n );\n\n // keep data integrity - fetch the last insert id and update the model\n taskModel.id = keyHolder.getKey().longValue();\n\n return affected > 0;\n }", "public void doExecute() {\n\t\tparent.requestChange(new ModelChangeRequest(this.getClass(), parent,\n\t\t\t\t\"create\") {\n\t\t\t@Override\n\t\t\tprotected void _execute() throws Exception {\n\t\t\t\ttry {\n\t\t\t\t\tCompositeEntity parentModel = (CompositeEntity) parent;\n\t\t\t\t\tString componentName = null;\n\t\t\t\t\tif (model == null) {\n\t\t\t\t\t\tcomponentName = ModelUtils.findUniqueName(parentModel,\n\t\t\t\t\t\t\t\t\t\t clazz,\n\t\t\t\t\t\t\t\t\t\t name.equalsIgnoreCase(\"INPUT\") ? DEFAULT_INPUT_PORT : DEFAULT_OUTPUT_PORT,\n\t\t\t\t\t\t\t\t\t\t name);\n\t\t\t\t\t\tcomponentName = ModelUtils.getLegalName(componentName);\n\t\t\t\t\t\tClass constructorClazz = CompositeEntity.class;\n\t\t\t\t\t\tif (clazz.getSimpleName().equals(\"TypedIOPort\")) {\n\t\t\t\t\t\t\tconstructorClazz = ComponentEntity.class;\n\t\t\t\t\t\t} else if (clazz.getSimpleName().equals(\n\t\t\t\t\t\t\t\t\"TextAttribute\")) {\n\t\t\t\t\t\t\tconstructorClazz = NamedObj.class;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (clazz.getSimpleName().equals(\"Vertex\")) {\n\t\t\t\t\t\t\tTypedIORelation rel = new TypedIORelation(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tchild = new Vertex(rel, \"Vertex\");\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tConstructor constructor = clazz.getConstructor(\n\t\t\t\t\t\t\t\t\tconstructorClazz, String.class);\n\n\t\t\t\t\t\t\tchild = (NamedObj) constructor.newInstance(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tif (child instanceof TypedIOPort) {\n\t\t\t\t\t\t\t\tboolean isInput = name\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"INPUT\");\n\t\t\t\t\t\t\t\t((TypedIOPort) child).setInput(isInput);\n\t\t\t\t\t\t\t\t((TypedIOPort) child).setOutput(!isInput);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (model instanceof TypedIOPort) {\n\t\t\t\t\t\t\tname = ((TypedIOPort) model).isInput() ? DEFAULT_INPUT_PORT\n\t\t\t\t\t\t\t\t\t: DEFAULT_OUTPUT_PORT;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcomponentName = ModelUtils.findUniqueName(parentModel, model.getClass(), name, name);\n\t\t\t\t\t\tcomponentName = ModelUtils.getLegalName(componentName);\n\t\t\t\t\t\tif (model instanceof Vertex) {\n\t\t\t\t\t\t\tTypedIORelation rel = new TypedIORelation(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tchild = new Vertex(rel, \"Vertex\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchild = (NamedObj) model\n\t\t\t\t\t\t\t\t\t.clone(((CompositeEntity) parentModel)\n\t\t\t\t\t\t\t\t\t\t\t.workspace());\n\t\t\t\t\t\t\tchild.setName(componentName);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tComponentUtility.setContainer(child, parentModel);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcreateDefaultValues(child);\n\t\t\t\t\t\n\t\t\t\t\tif (location != null) {\n\t\t\t\t\t\tModelUtils.setLocation(child, location);\n\t\t\t\t\t}\n\t\t\t\t\tsetChild(child);\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tgetLogger().error(\"Unable to create component\", e);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\t}", "protected abstract IModel<T> createModel(T object);", "public void saveModel() {\n\n }", "protected static Model getModel(String workspaceId, String modelId)\n throws AnaplanAPIException {\n Workspace workspace = getWorkspace(workspaceId);\n if (workspace == null) {\n return null;\n }\n if (modelId == null || modelId.isEmpty()) {\n LOG.error(\"A model ID must be provided\");\n return null;\n }\n Model model = null;\n\n if (!noValidateModel) {\n for (Model m : workspace.getModels()) {\n if (modelId.equals(m.getId()) || modelId.equalsIgnoreCase(m.getName())) {\n model = m;\n break;\n }\n }\n }\n if (model == null) {\n ModelData data = new ModelData(modelId, \"\");\n model = new Model(workspace, data);\n model.setCurrentWorkspaceId(workspaceId);\n }\n return model;\n }", "@ServiceMethod(returns = ReturnType.SINGLE)\n void start(String resourceGroupName, String workspaceName, String computeName);", "@ServiceMethod(returns = ReturnType.SINGLE)\n void start(String resourceGroupName, String workspaceName, String computeName, Context context);", "public com.inikah.slayer.model.MMCity create(long cityId);", "public void addModel(Model aModel) throws IOException {\n addModel(aModel, null);\n }", "private void createFolder(String name, String path, Long id) {\n VMDirectory newDir = new VMDirectory();\n newDir.setName(name);\n editResourceService.createDir(id, name, new AsyncCallback<Long>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.say(caught.getMessage());\n }\n\n @Override\n public void onSuccess(Long result) {\n createCallbackFile(fileTreeNodeFactory.findTreeNode(tree, id), newDir, result, true);\n folderPath_idMap.put(path, result);\n fileTreeNodeFactory.refresh(editorTabSet, tree, tabRegs);\n treeGrid.sort();\n treeGrid.redraw();\n }\n });\n }", "public RepositoryArtifact createProject(RepositoryConnector connector, String rootFolderId, String projectName, String processDefinitionXml) {\r\n RepositoryArtifact result = null;\r\n try {\r\n ZipInputStream projectTemplateInputStream = new ZipInputStream(getProjectTemplate());\r\n ZipEntry zipEntry = null;\r\n \r\n String rootSubstitution = null;\r\n \r\n while ((zipEntry = projectTemplateInputStream.getNextEntry()) != null) {\r\n String zipName = zipEntry.getName();\r\n if (zipName.endsWith(\"/\")) {\r\n zipName = zipName.substring(0, zipName.length() - 1);\r\n }\r\n String path = \"\";\r\n String name = zipName;\r\n if (zipName.contains(\"/\")) {\r\n path = zipName.substring(0, zipName.lastIndexOf(\"/\"));\r\n name = zipName.substring(zipName.lastIndexOf(\"/\") + 1);\r\n }\r\n if (\"\".equals(path)) {\r\n // root folder is named after the project, not like the\r\n // template\r\n // folder name\r\n rootSubstitution = name;\r\n name = projectName;\r\n } else {\r\n // rename the root folder in all other paths as well\r\n path = path.replace(rootSubstitution, projectName);\r\n }\r\n String absolutePath = rootFolderId + \"/\" + path;\r\n boolean isBpmnModel = false;\r\n if (zipEntry.isDirectory()) {\r\n connector.createFolder(absolutePath, name);\r\n } else {\r\n Content content = new Content();\r\n \r\n if (\"template.bpmn20.xml\".equals(name)) {\r\n // This file shall be replaced with the process\r\n // definition\r\n content.setValue(processDefinitionXml);\r\n name = projectName + \".bpmn20.xml\";\r\n isBpmnModel = true;\r\n log.log(Level.INFO, \"Create processdefinition from Signavio process model \" + projectName);\r\n } else {\r\n byte[] bytes = IoUtil.readInputStream(projectTemplateInputStream, \"ZIP entry '\" + zipName + \"'\");\r\n String txtContent = new String(bytes).replaceAll(REPLACE_STRING, projectName).replaceAll(\"@@ACTIVITI.HOME@@\", ACTIVITI_HOME_PATH);\r\n content.setValue(txtContent);\r\n }\r\n log.log(Level.INFO, \"Create new artifact from zip entry '\" + zipEntry.getName() + \"' in folder '\" + absolutePath + \"' with name '\" + name + \"'\");\r\n RepositoryArtifact artifact = connector.createArtifact(absolutePath, name, null, content);\r\n if (isBpmnModel) {\r\n result = artifact;\r\n }\r\n }\r\n projectTemplateInputStream.closeEntry();\r\n }\r\n projectTemplateInputStream.close();\r\n } catch (IOException ex) {\r\n throw new RepositoryException(\"Couldn't create maven project due to IO errors\", ex);\r\n }\r\n return result;\r\n }", "public static int addModel(String fileName) {\n\t\tString path = NEW_MODEL + fileName;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return 400;\n\t\treturn response.statusCode();\n\t}", "public void addNewProject(final String name) {\n Project p = new Project(name);\n ApplicationWideData.addNewProject(p);\n\n Callback<Response> responseCallback = new Callback<Response>() {\n @Override\n public void success(Response response, Response response2) {\n context.refreshLists();\n }\n\n @Override\n public void failure(RetrofitError error) {\n Log.e(\"RetrofitError\", \"Actions: AddNewProject: \"+error.getMessage());\n }\n };\n\n// boolean success = LocalDataSaver.addProject(p);\n// if (success) {\n// Toast.makeText(context, \"Successful adding of new project: \" + name + \" to local database\", Toast.LENGTH_LONG).show();\n// }\n if (!ApplicationWideData.getManualSync()) {\n service.addNewProject(p, userID, responseCallback);\n }\n else{\n LocalDataSaver.addNewSelectable(p, \"Project\");\n context.refreshLists();\n }\n LocalDataSaver.saveProject(p);\n Log.wtf(\"Added project\", \"to added table\");\n\n\n Log.wtf(\"Size of added table\", LocalDataRetriver.getAllAdded().size() + \"\");\n\n }", "@TaskAction\n public void createProject()\n throws IOException {\n String projectName = getProjectName();\n\n // Get the output directory\n String outputDir = \"build/\";\n String projectFolderPath = outputDir + PROJECT_PREFIX + PROJECT_PREFIX_INTEGRATION + projectName;\n Path outputPath = getProject().mkdir(new File(projectFolderPath)).toPath();\n\n // Build the project\n new ProjectBuilder(projectName, outputPath, getProject()).build();\n }", "public void saveModel() {\n\t}", "springfox.documentation.schema.Model create(ModelContext context);", "DomainModel createDomainModel();", "public void modelNew(Model m)\n {\n\tmodelStop();\n\tmanim = new GenerationsAnimator(m.generations());\n\tmanim.scale(width,height);\n\tclearToBack();\n\tmodelStep();\n\t//modelStart();\n\tStatusBar.setStatus(\"Ready\");\n\n\tif (cListener != null)\n\t cListener.setButtonState(true);\n }", "@Test\n public void createNewComputerBuildSuccess() {\n ComputerBuild computerBuild = createComputerBuild(SAMPLE_BUDGET_COMPUTER_BUILD_NAME, SAMPLE_BUDGET_COMPUTER_BUILD_DESCRIPTION);\n LoginRequest loginRequest = new LoginRequest(ANOTHER_USER_NAME_TO_CREATE_NEW_USER, USER_PASSWORD);\n\n loginAndCreateBuild(computerBuild, loginRequest, SAMPLE_BUDGET_COMPUTER_BUILD_NAME, SAMPLE_BUDGET_COMPUTER_BUILD_DESCRIPTION);\n }", "java.util.concurrent.Future<CreateApplicationResult> createApplicationAsync(CreateApplicationRequest createApplicationRequest);", "@WorkerThread\n public abstract void saveToDb(NetworkModel fetchedModel);", "private void createModel() {\n model = new Node(\"Enemy\"+enemyCounter);\n Box b = new Box(.5f, 2, .5f);\n Geometry bg = new Geometry(\"Box\", b);\n Material bm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n Sphere sphere = new Sphere(32, 32, 1.5f, false, false);\n Geometry sg = new Geometry(\"Sphere\", sphere);\n Material sm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n bm.setColor(\"Color\", ColorRGBA.Blue);\n sm.setColor(\"Color\", ColorRGBA.Red);\n bg.setMaterial(bm); \n sg.setMaterial(sm);\n model.attachChild(bg);\n model.attachChild(sg);\n sg.setLocalTranslation(0,2.5f,0);\n \n attachChild(model);\n }", "@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }", "@GetMapping(value=\"/create/city={cityName}\", produces=\"text/plain\")\n public String createCity(Model model){\n \tUserCityModel userCityModel = new UserCityModel();\n \tuserCityModel.setName(\"delhi\");\n \tweatherService.createCity(userCityModel);\n \t\n \treturn \"success\";\n }", "public void saveModel(String filePath) {\n\n\t\tFile parentFile = new File(filePath).getParentFile();\n\t\tif (parentFile != null && !parentFile.exists()) {\n\t\t\tparentFile.mkdirs();\n\t\t}\n\n\t\ttry {\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(filePath));\n\t\t\toos.writeObject(new HMMModel(pi, A, B));\n\t\t\toos.close();\n\t\t\tSystem.out.println(\"Model saved.\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public Workspace build() {\n if (properties == null) {\n properties = new HashMap<>();\n }\n if (workspaceId == null || workspaceStage == null) {\n throw new MissingRequiredFieldsException(\"Workspace requires id and stage\");\n }\n return new Workspace(\n workspaceId,\n displayName,\n description,\n spendProfileId,\n properties,\n workspaceStage,\n gcpCloudContext);\n }", "public static IssueModel createIssueModel(String projectId) throws Exception, IOException {\n try (ContactCenterInsightsClient client = ContactCenterInsightsClient.create()) {\n // Construct a parent resource.\n LocationName parent = LocationName.of(projectId, \"us-central1\");\n\n // Construct an issue model.\n IssueModel issueModel =\n IssueModel.newBuilder()\n .setDisplayName(\"my-model\")\n .setInputDataConfig(\n IssueModel.InputDataConfig.newBuilder().setFilter(\"medium=\\\"CHAT\\\"\").build())\n .build();\n\n // Call the Insights client to create an issue model.\n IssueModel response = client.createIssueModelAsync(parent, issueModel).get();\n System.out.printf(\"Created %s%n\", response.getName());\n return response;\n }\n }", "public T createModel(Cursor cursor, String id);", "@Override\r\n \tpublic boolean performFinish() {\r\n \t\ttry {\r\n \t\t\t// Remember the file.\r\n \t\t\t//\r\n \t\t\tfinal IFile modelFile = getModelFile();\r\n \r\n \t\t\t// Do the work within an operation.\r\n \t\t\t//\r\n \t\t\tWorkspaceModifyOperation operation =\r\n \t\t\t\tnew WorkspaceModifyOperation() {\r\n \t\t\t\t\t@Override\r\n \t\t\t\t\tprotected void execute(IProgressMonitor progressMonitor) {\r\n \t\t\t\t\t\ttry {\r\n \t\t\t\t\t\t\t// Create a resource set\r\n \t\t\t\t\t\t\t//\r\n\t\t\t\t\t\t\tReqIFResourceSetImpl resourceSet = new ReqIFResourceSetImpl();\r\n\r\n\t\t\t\t\t\t\t// (mj) Sollte nicht notwendig sein, übernommmen von Mark's Unit Test\r\n\t\t\t\t\t\t\tresourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(\"reqif\", new ReqIFResourceFactoryImpl());\r\n\t\t\t\t\t\t\tresourceSet.getPackageRegistry().put(ReqIF10Package.eNS_URI, ReqIF10Package.eINSTANCE);\r\n \r\n \t\t\t\t\t\t\t// Get the URI of the model file.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tURI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true);\r\n \r\n \t\t\t\t\t\t\t// Create a resource for this file.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tResource resource = resourceSet.createResource(fileURI);\r\n \r\n \t\t\t\t\t\t\t// Add the initial model object to the contents.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tEObject rootObject = createInitialModel();\r\n \t\t\t\t\t\t\tif (rootObject != null) {\r\n \t\t\t\t\t\t\t\tresource.getContents().add(rootObject);\r\n \t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t\t// Save the contents of the resource to the file system.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tMap<Object, Object> options = new HashMap<Object, Object>();\r\n \t\t\t\t\t\t\t// Always use UTF-8 encoding\r\n \t\t\t\t\t\t\t// options.put(XMLResource.OPTION_ENCODING,\r\n \t\t\t\t\t\t\t// initialObjectCreationPage.getEncoding());\r\n \t\t\t\t\t\t\toptions.put(XMLResource.OPTION_ENCODING, \"UTF-8\");\r\n\t\t\t\t\t\t\tresource.save(null);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tcatch (Exception exception) {\r\n \t\t\t\t\t\t\tReqif10EditorPlugin.INSTANCE.log(exception);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tfinally {\r\n \t\t\t\t\t\t\tprogressMonitor.done();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t};\r\n \r\n \t\t\tgetContainer().run(false, false, operation);\r\n \r\n \t\t\t// Select the new file resource in the current view.\r\n \t\t\t//\r\n \t\t\tIWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow();\r\n \t\t\tIWorkbenchPage page = workbenchWindow.getActivePage();\r\n \t\t\tfinal IWorkbenchPart activePart = page.getActivePart();\r\n \t\t\tif (activePart instanceof ISetSelectionTarget) {\r\n \t\t\t\tfinal ISelection targetSelection = new StructuredSelection(modelFile);\r\n \t\t\t\tgetShell().getDisplay().asyncExec\r\n \t\t\t\t\t(new Runnable() {\r\n \t\t\t\t\t\t public void run() {\r\n \t\t\t\t\t\t\t ((ISetSelectionTarget)activePart).selectReveal(targetSelection);\r\n \t\t\t\t\t\t }\r\n \t\t\t\t\t });\r\n \t\t\t}\r\n \r\n \t\t\t// Open an editor on the new file.\r\n \t\t\t//\r\n \t\t\ttry {\r\n \t\t\t\tpage.openEditor\r\n \t\t\t\t\t(new FileEditorInput(modelFile),\r\n \t\t\t\t\t workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId());\t\t\t\t\t \t \r\n \t\t\t}\r\n \t\t\tcatch (PartInitException exception) {\r\n \t\t\t\tMessageDialog.openError(workbenchWindow.getShell(), Reqif10EditorPlugin.INSTANCE.getString(\"_UI_OpenEditorError_label\"), exception.getMessage());\r\n \t\t\t\treturn false;\r\n \t\t\t}\r\n \r\n \t\t\treturn true;\r\n \t\t}\r\n \t\tcatch (Exception exception) {\r\n \t\t\tReqif10EditorPlugin.INSTANCE.log(exception);\r\n \t\t\treturn false;\r\n \t\t}\r\n \t}", "public void newProjectAction() throws IOException {\n\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_NewProjectDialog.fxml\");\n\t\tdialog.initOwner(newProject.getScene().getWindow());\n\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\tif (result.isPresent()) {\n\t\t\tlogger.trace(\"dialog 'new project' result: {}\", result::get);\n\t\t\tprojectsObservable.add(result.get());\n\t\t}\n\t}", "public JSONObject create(final String model,\n final String datasetId, JSONObject args, Integer waitTime,\n Integer retries) {\n\n if (model == null || model.length() == 0 ||\n !(model.matches(MODEL_RE) || \n model.matches(ENSEMBLE_RE) || \n model.matches(LOGISTICREGRESSION_RE) || \n model.matches(LINEARREGRESSION_RE) || \n model.matches(DEEPNET_RE) ||\n model.matches(FUSION_RE))) {\n logger.info(\"Wrong model, ensemble, logisticregression, \"\n \t\t+ \"linearregression or deepnet or fusion id\");\n return null;\n }\n \n if (datasetId == null || datasetId.length() == 0\n || !datasetId.matches(DATASET_RE)) {\n logger.info(\"Wrong dataset id\");\n return null;\n }\n\n try {\n \t\tif (model.matches(MODEL_RE)) {\n \t\t\twaitForResource(model, \"modelIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(ENSEMBLE_RE)) {\n \t\t\twaitForResource(model, \"ensembleIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(LOGISTICREGRESSION_RE)) {\n \t\t\twaitForResource(model, \"logisticRegressionIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(LINEARREGRESSION_RE)) {\n \t\t\twaitForResource(model, \"linearRegressionIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(DEEPNET_RE)) {\n \t\t\twaitForResource(model, \"deepnetIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(FUSION_RE)) {\n \t\t\twaitForResource(model, \"fusionIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\twaitForResource(datasetId, \"datasetIsReady\", waitTime, retries);\n \n\n JSONObject requestObject = new JSONObject();\n if (args != null) {\n requestObject = args;\n }\n\n if (model.matches(MODEL_RE)) {\n requestObject.put(\"model\", model);\n }\n if (model.matches(ENSEMBLE_RE)) {\n requestObject.put(\"ensemble\", model);\n }\n if (model.matches(LOGISTICREGRESSION_RE)) {\n requestObject.put(\"logisticregression\", model);\n }\n if (model.matches(LINEARREGRESSION_RE)) {\n requestObject.put(\"linearregression\", model);\n }\n if (model.matches(DEEPNET_RE)) {\n requestObject.put(\"deepnet\", model);\n }\n if (model.matches(FUSION_RE)) {\n requestObject.put(\"fusion\", model);\n }\n requestObject.put(\"dataset\", datasetId);\n\n return createResource(resourceUrl,\n \t\trequestObject.toJSONString());\n } catch (Throwable e) {\n logger.error(\"Error creating batch prediction\");\n return null;\n }\n }", "public void createDiscretionaryTask(\n String caseFolderPath,\n String discretionaryTaskSymbolicName,\n String TOS) throws Exception {\n UserContext old = UserContext.get();\n CaseMgmtContext oldCmc = null;\n Subject sub = Subject.getSubject(AccessController.getContext());\n String ceURI = null;\n\n try {\n ceURI = filenet.vw.server.Configuration.GetCEURI(null, null);\n Connection connection = Factory.Connection.getConnection(ceURI);\n\n // setting up user context\n UserContext uc = new UserContext();\n uc.pushSubject(sub);\n UserContext.set(uc);\n\n EntireNetwork entireNetwork = Factory.EntireNetwork.fetchInstance(connection, null);\n\n if (entireNetwork == null) {\n Exception e = new Exception(\"Cannot log in to \" + ceURI);\n logException(e);\n }\n\n // retrieve target object store\n Domain domain = entireNetwork.get_LocalDomain();\n ObjectStore targetOS = (ObjectStore) domain.fetchObject(\n ClassNames.OBJECT_STORE,\n TOS,\n null);\n\n // setting up CaseMmgtContext for Case API\n SimpleVWSessionCache vwSessCache = new SimpleVWSessionCache();\n CaseMgmtContext cmc = new CaseMgmtContext(vwSessCache, new SimpleP8ConnectionCache());\n oldCmc = CaseMgmtContext.set(cmc);\n\n ObjectStoreReference targetOsRef = new ObjectStoreReference(targetOS);\n\n // retrieve case folder\n Folder folder = Factory.Folder.fetchInstance(targetOsRef.getFetchlessCEObject(),\n caseFolderPath,\n null);\n\n // retrieve case using GUID\n Id caseId = folder.get_Id();\n Case cs = Case.getFetchlessInstance(targetOsRef, caseId);\n\n // retrieve case type name\n CaseType caseType = cs.getCaseType();\n\n // create discretionary task\n Task task = Task.createPendingInstance(discretionaryTaskSymbolicName, cs);\n task.setName(discretionaryTaskSymbolicName);\n\n // retrieve case type info to determine if initializing launch step is required\n TaskType tt = caseType.getDiscretionaryTaskType(discretionaryTaskSymbolicName);\n if (tt.isLaunchInfoRequired() == true) {\n // launch step is required\n task.initializeNewLaunchStep();\n }\n\n task.save(RefreshMode.REFRESH);\n } catch (Exception e) {\n logException(e);\n } finally {\n if (oldCmc != null) {\n CaseMgmtContext.set(oldCmc);\n }\n\n if (old != null) {\n UserContext.set(old);\n }\n }\n }", "public void create(){}", "public OpenSimContext createContext(Model aModel, boolean force) {\n OpenSimContext context = mapModelsToContexts.get(aModel);\n if (context ==null || force){\n OpenSimContext newContext;\n try {\n newContext = new OpenSimContext(aModel.initSystem(), aModel);\n } catch (IOException ex) {\n ErrorDialog.displayExceptionDialog(ex);\n return null;\n }\n mapModelsToContexts.put(aModel, newContext);\n context = newContext;\n }\n return context;\n }", "private synchronized void downloadModel(String modelName) {\n final FirebaseCustomRemoteModel remoteModel =\n new FirebaseCustomRemoteModel\n .Builder(modelName)\n .build();\n FirebaseModelDownloadConditions conditions =\n new FirebaseModelDownloadConditions.Builder()\n .requireWifi()\n .build();\n final FirebaseModelManager firebaseModelManager = FirebaseModelManager.getInstance();\n firebaseModelManager\n .download(remoteModel, conditions)\n .continueWithTask(task ->\n firebaseModelManager.getLatestModelFile(remoteModel)\n )\n .continueWith(executorService, (Continuation<File, Void>) task -> {\n // Initialize a text classifier instance with the model\n File modelFile = task.getResult();\n\n // TODO 6: Initialize a TextClassifier with the downloaded model\n textClassifier = NLClassifier.createFromFile(modelFile);\n\n // Enable predict button\n predictButton.setEnabled(true);\n return null;\n })\n .addOnFailureListener(e -> {\n Log.e(TAG, \"Failed to download and initialize the model. \", e);\n Toast.makeText(\n MainActivity.this,\n \"Model download failed, please check your connection.\",\n Toast.LENGTH_LONG)\n .show();\n predictButton.setEnabled(false);\n });\n }", "public okhttp3.Call addTrainingDataAsync(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = addTrainingDataValidateBeforeCall(workspaceId, modelId, trainingData, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public static void saveStory(StoryModel storyModel){\n try {\n File file = new File(getFilePath(storyModel.getStoryId()));\n file.createNewFile();\n FileOutputStream fos;\n fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(storyModel);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void save() {\n\t\t// Register the XMI resource factory for the .xmi extension\n\t\tResource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;\n\t\tMap<String, Object> m = reg.getExtensionToFactoryMap();\n\t\tm.put(\"xmi\", new XMIResourceFactoryImpl());\n\n\t\t// Obtain a new resource set\n\t\tResourceSet resSet = new ResourceSetImpl();\n\n\t\t// Create a resource\n\t\tResource resource = resSet.createResource(this.targetURI);\n\n\t\t// Get the first model element and cast it to the right type\n\t\tresource.getContents().add(targetRootBlock);\n\n\t\t// Now save the content.\n\t\tMap<String, Object> options = new HashMap<String, Object>();\n\t\toptions.put(XMIResource.OPTION_ENCODING, \"UTF-8\");\n\t\ttry {\n\t\t\tresource.save(options);\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"IOException when trying to save to \" + this.targetURI);\n\t\t}\n\n\t\tif (LOGGER.isInfoEnabled()) {\n\t\t\tLOGGER.info(\"Saved Shapes model to \" + this.targetURI);\n\t\t}\n\t}", "@ApiMethod(\n \t\tname = \"createProject\", \n \t\tpath = \"createProject\", \n \t\thttpMethod = HttpMethod.POST)\n public Project createProject(final ProjectForm projectForm) {\n\n final Key<Project> projectKey = factory().allocateId(Project.class);\n final long projectId = projectKey.getId();\n final Queue queue = QueueFactory.getDefaultQueue();\n \n // Start transactions\n Project project = ofy().transact(new Work<Project>(){\n \t@Override\n \tpublic Project run(){\n \t\tProject project = new Project(projectId, projectForm);\n ofy().save().entities(project).now();\n \n return project;\n \t}\n }); \n return project;\n }", "@PostMapping\n public ResponseEntity<Project> createNewProject(@Valid @RequestBody Project project) {\n\n Project project1 = projectService.saveOrUpdateProject(project);\n return new ResponseEntity<Project>(project1, HttpStatus.CREATED);\n }", "private Response performDT_training(String model_name, String data) {\n \tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MMM-yyyy_HmsS\");\n \tJSONObject summary = new JSONObject();\n \t\n \tif(model_name.trim().length()< 1) {\n \t\tmodel_name = \"DTree_Model_\" + sdf.format(Calendar.getInstance().getTime());\n \t}\n \t\n \t// check if the model name is already present\n \tif(utilObj.isModelNameUnique(model_name)) {\n \t\tsummary = new JSONObject();\n \t\tsummary.put(\"Error\", \"Duplicate model name : \" + model_name);\n \t\tlog.error(\"Duplicate model name\");\n \t\treturn Response.status(200).entity(summary.toString()).build();\n \t}\n \t\n \tlog.info(String.format(\"model_Name: %s\", model_name ));\n \tString modelFilePath = Util.CurrentDir+\"/models/\"+model_name;\n \t\n \ttry {\n\n \t\t// write the data to the disk\n \t\tfinal String inputFileName = \"TrainData_DT_\" + sdf.format(Calendar.getInstance().getTime()) + \".csv\";\n \t\tfinal String inputFilePath = Util.CurrentDir+\"/\"+Util.DataDir+\"/\"+inputFileName;\n \t\tFileWriter writer = new FileWriter(inputFilePath);\n \t\twriter.write(data);\n \t\twriter.flush();\n \t\twriter.close();\n \t\tlog.info(\"File created : \" + inputFilePath);\n \t\t\n \t\tString cmd = String.format(\"Rscript \"+Util.CurrentDir+\"/Rscripts/DTTraining.R %s %s \",inputFilePath, model_name);\n \t\tlog.info(cmd);\n\t \tProcess pr = Runtime.getRuntime().exec(cmd);\n\t\t\t\n\t\t\tBufferedReader results = new BufferedReader(new InputStreamReader(pr.getInputStream()));\n\t\t\tString line = null;\n\t\t\t\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\twhile((line=results.readLine()) != null) {\n\t\t\t\tbuf.append(line);\n\t\t\t\tif(line.trim().isEmpty()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine().trim();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tsummary.put(\"summary\", line);\n\t\t\t\t} \n\t\t\t\telse if(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tJSONArray Psplits = new JSONArray();\t\t\t\t\t\n\t\t\t\t\twhile(!line.trim().equalsIgnoreCase(\"Surrogate splits:\")) {\n\t\t\t\t\t\tString s[] = line.split(\"\\t\");\n\t\t\t\t\t\tfor(String s1 : s) {\n\t\t\t\t\t\t\tSystem.out.println(s1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tJSONArray splitCols = new JSONArray(s);\n\t\t\t\t\t\tline = results.readLine();\n\t\t\t\t\t\tbuf.append(line);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\tsummary.put(\"model_name\", model_name + \".RData\");\n\t\t\t\tsummary.put(\"InputFile\", inputFileName);\n\t\t\t\tsummary.put(\"CommandName\", \"Rscripts/DTTraining.R\");\n\t\t\t}\n\t\t\tsummary.put(\"raw\", buf.toString());\n\t\t\t\n\t\t\t// format the summary json as params { [key : val] }\n\t\t\tJSONArray finalSummary = new JSONArray();\n\t\t\tIterator<String> keys = summary.keySet().iterator();\n\t\t\twhile(keys.hasNext()) {\n\t\t\t\tJSONObject row = new JSONObject();\n\t\t\t\trow.put(\"attribute\", keys.next());\n\t\t\t\trow.put(\"value\", summary.get(row.getString(\"attribute\")));\n\t\t\t\tfinalSummary.put(row);\n\t\t\t}\n\t\t\treturn Response.status(200).entity(new JSONObject().put(\"summary\", finalSummary).toString()).build();\n\t\t\t\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n\t\t\n \treturn Response.status(200).entity(summary.toString()).build();\n }", "protected void addWorkspace( String workspaceName ) {\n }", "public okhttp3.Call activateModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = activateModelValidateBeforeCall(workspaceId, modelId, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "@Override\r\n public String create(final String xmlData) throws InvalidContentException, MissingAttributeValueException,\r\n SystemException, XmlCorruptedException {\r\n \r\n final ContentModelCreate contentModel = parseContentModel(xmlData);\r\n \r\n // check that the objid was not obtained from the representation\r\n contentModel.setObjid(null);\r\n \r\n contentModel.setIdProvider(getIdProvider());\r\n validate(contentModel);\r\n contentModel.persist(true);\r\n final String objid = contentModel.getObjid();\r\n final String resultContentModel;\r\n try {\r\n resultContentModel = retrieve(objid);\r\n }\r\n catch (final ResourceNotFoundException e) {\r\n final String msg =\r\n \"The Content Model with id '\" + objid + \"', which was just created, \"\r\n + \"could not be found for retrieve.\";\r\n throw new IntegritySystemException(msg, e);\r\n }\r\n fireContentModelCreated(objid, resultContentModel);\r\n return resultContentModel;\r\n }", "public JsonNode insert(String resourcePath, String model, String jsonString, MultipartFile file)\n\t\t\tthrows IOException {\n\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\tJsonNode jsonNode;\n\t\tif (jsonString == null) {\n\t\t\tjsonNode = objectMapper.createObjectNode();\n\t\t} else {\n\t\t\tjsonNode = objectMapper.readTree(jsonString);\n\t\t}\n\t\tNitrite db = nitriteDbConnection.getConnection(resourcePath, model);\n\t\tNitriteCollection collection = db.getCollection(model);\n\n\t\tString fileName = FileService.getOriginalFileName(file);\n\t\tbyte[] content = FileService.getByteArray(file);\n\t\tif (!jsonNode.has(\"fileName\")) {\n\t\t\t((ObjectNode) jsonNode).put(\"fileName\", fileName);\n\t\t}\n\t\t((ObjectNode) jsonNode).put(\"contentType\", file.getContentType());\n\t\t((ObjectNode) jsonNode).put(\"content\", content);\n\t\t((ObjectNode) jsonNode).put(\"fileSize\", file.getSize());\n\n\t\tString modelPath = model;\n\t\tif (!resourcePath.isBlank() && !\"/\".equals(resourcePath)) {\n\t\t\tString rootPath = FileSystems.getDefault().getPath(\"\").toAbsolutePath().toString();\n\t\t\tnew File(rootPath + \"/db/\" + resourcePath).mkdirs();\n\t\t\tmodelPath = resourcePath + \"/\" + modelPath;\n\t\t}\n\t\tDocument doc = getDocument(jsonNode);\n\t\tcollection.insert(doc);\n\t\t((ObjectNode) jsonNode).put(\"uri\", \"/api/documents/download/\" + modelPath + \"?id=\" + doc.getId());\n\t\tcollection.update(doc);\n\t\treturn getJsonNode(doc);\n\t}", "@Override\n public void run() {\n LOG.info(\"ready to create a new topic model for domain: \" + domainUri);\n Optional<Resource> result = helper.getUdm().read(Resource.Type.DOMAIN).byUri(domainUri);\n\n if (!result.isPresent()){\n LOG.warn(\"Unknown domain from uri: \" + domainUri);\n return;\n }\n\n // Load domain info\n domain = result.get().asDomain();\n\n // Delete previous Topics\n helper.getUdm().find(Resource.Type.TOPIC).in(Resource.Type.DOMAIN,domain.getUri()).stream().forEach(topic -> helper.getUdm().delete(Resource.Type.TOPIC).byUri(topic));\n\n // Documents\n buildModelfor(Resource.Type.DOCUMENT);\n\n // Items\n buildModelfor(Resource.Type.ITEM);\n\n // Parts\n buildModelfor(Resource.Type.PART);\n\n }", "public void createWorkOrders() {\n Main.orderCount += 1;\n\n WorkOrder newOrder = new WorkOrder();\n\n Scanner scanner = new Scanner(System.in);\n\n System.out.println(\"Create a new Work Order:\");\n\n System.out.println(\"Enter description of work requested:\");\n\n newOrder.setDescription(scanner.nextLine());\n\n System.out.println(\"Enter your full name for our records:\");\n\n newOrder.setSenderName(scanner.nextLine());\n\n newOrder.setStatus(Status.INITIAL);\n\n newOrder.setId(Main.orderCount);\n\n //\n // mapper below\n //\n\n String workOrder = \"\";\n ObjectMapper mapper = new ObjectMapper();\n try {\n workOrder = mapper.writeValueAsString(newOrder);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n String fileTitle = newOrder.getId() + \".json\";\n\n //\n // try catch block below for filewriting\n //\n\n try {\n File file = new File(fileTitle);\n FileWriter fileWriter = new FileWriter(file);\n fileWriter.write(workOrder);\n fileWriter.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n createWorkOrders();\n }", "public void openModel() {\r\n \t\tisReleased = true;\r\n \t\tif (checkForSave(\"<html>Save changes before opening a saved model?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\tJMODELModel tmpmodel = new JMODELModel();\r\n \t\tint state = modelLoader.loadModel(tmpmodel, mainWindow);\r\n \t\tif (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {\r\n \t\t\tresetMouseState();\r\n \t\t\t// Avoid checkForSave again...\r\n \t\t\tif (model != null) {\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t}\r\n \t\t\tnewModel();\r\n \t\t\t// At this point loading was successful, so substitutes old model\r\n \t\t\t// with loaded one\r\n \t\t\tmodel = tmpmodel;\r\n \t\t\tthis.populateGraph();\r\n \t\t\tsetSelect.setEnabled(true);\r\n \t\t\tcomponentBar.clickButton(setSelect);\r\n \t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t// Removes selection\r\n \t\t\tgraph.clearSelection();\r\n \t\t\t// If model contains results, enable Results Window\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\tif (model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\tthis.setResultsWindow(new PAResultsWindow(model.getParametricAnalysisModel(), (PAResultsModel) model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthis.setResultsWindow(new ResultsWindow(model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tmodel.resetSaveState();\r\n \t\t\tSystem.gc();\r\n \t\t} else if (state == ModelLoader.FAILURE) {\r\n \t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t}\r\n \t\t// Shows warnings if any\r\n \t\tif (state == ModelLoader.WARNING) {\r\n \t\t\tnew WarningWindow(modelLoader.getLastWarnings(), mainWindow, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show();\r\n \t\t}\r\n \r\n \t}", "@Override\n\tpublic HomeModel create(HomeModel model) {\n\t\treturn null;\n\t}", "public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}", "@RequestMapping(value = \"/file\", \n\t\t\t\t\tmethod = RequestMethod.POST)\n\tpublic ResponseEntity<DriveFile> createFile(@RequestBody DriveFile driveFile) throws IOException, IllegalArgumentException, NullPointerException {\n\t\t\n\t\tFile metadata = new File();\n\t\tmetadata.setName(driveFile.getTitle());\n\t\tmetadata.setDescription(driveFile.getDescription());\n\n\t\tFile file = DriveConnection.driveService.files().create(metadata) // creamos \n\t\t .setFields(\"id, name, description\")\n\t\t .execute();\n\t\n\t\tdriveFile.setId(file.getId()); // seteamos su ID\n\t\n\t\treturn new ResponseEntity<DriveFile>(driveFile, HttpStatus.OK); // lo mostramos en la consola\n\t\t\n\t}" ]
[ "0.5906418", "0.5436468", "0.5436468", "0.5436468", "0.5436468", "0.5436468", "0.5436468", "0.5436468", "0.5349992", "0.53473353", "0.51766485", "0.5153723", "0.5145227", "0.50935906", "0.5080746", "0.5076547", "0.50020766", "0.4975827", "0.49755165", "0.49747667", "0.49512684", "0.4916992", "0.48392767", "0.48241052", "0.47846967", "0.47832915", "0.47821432", "0.472313", "0.4706657", "0.46961826", "0.46739012", "0.46422124", "0.4636143", "0.46338344", "0.46272576", "0.462484", "0.4589582", "0.45822284", "0.4581485", "0.4578038", "0.4566579", "0.4559197", "0.4552569", "0.45524666", "0.4547703", "0.45308548", "0.4528202", "0.45270607", "0.45256063", "0.4524062", "0.45198536", "0.45189583", "0.45185295", "0.4515755", "0.45016187", "0.44965297", "0.44949734", "0.44923535", "0.449217", "0.44739625", "0.4473422", "0.44723535", "0.44716576", "0.44690466", "0.44662607", "0.44655353", "0.446351", "0.4462798", "0.44598004", "0.44587234", "0.44486946", "0.44444528", "0.444198", "0.44391716", "0.44300663", "0.44239768", "0.44232497", "0.44135368", "0.44108856", "0.4408448", "0.440821", "0.44068506", "0.44061178", "0.43983942", "0.4395157", "0.43878856", "0.43837363", "0.4374647", "0.43697965", "0.43642378", "0.4357933", "0.43486562", "0.43472296", "0.4346709", "0.43379506", "0.43366948", "0.43327036", "0.4322109", "0.43203512", "0.4319381" ]
0.61511004
0
Build call for deactivateModel
public okhttp3.Call deactivateModelCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/workspaces/{workspaceId}/models/{modelId}/deactivate" .replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString())) .replaceAll("\\{" + "modelId" + "\\}", localVarApiClient.escapeString(modelId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "apiAuth" }; return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void deactivate() {\n \n }", "public void deactivate();", "@Override\n\tpublic void deactivate() {\n\t}", "@Override\r\n\tpublic void deactivate() {\n\t\t\r\n\t}", "@Override\n\tpublic void deactivate() {\n\t\t\n\t}", "public abstract void deactivate();", "void deactivate();", "public void deactivate() {\n\t\t// TODO Auto-generated method stub\n\t}", "void deactivate() {\n\t\tanimalTemplate = null;\n\t\tscope=null;\n\t\ttriggerOnID=false;\n\t\tstate = null;\n\t\tlog.debug(bundleMarker, \"deactivating...\");\n\t}", "public void deactivate() \r\n\t\t{\r\n\t\tif (isActive()) \r\n\t\t\t{\r\n\t\t\tsuper.deactivate();\r\n\t\t\t((IModelElement) getModel()).removePropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t}", "protected void deactivate(ComponentContext context) {\n TemplateModel.INSTANCE.loaders().unregisterLoader(TemplateLangModelUtility.INSTANCE, \n ProgressObserver.NO_OBSERVER);\n // this is not the official way of using DS but the official way is instable\n ExpressionParserRegistry.setExpressionParser(TemplateLangExecution.LANGUAGE, null);\n ModelInitializer.unregister(this);\n }", "void deactivate(){\n \tthis.config.clear();\n\t\tlog.debug(bundleMarker,\"deactivating...\");\n\t}", "public void deactivate() {\r\n if (isActive()) {\r\n super.deactivate();\r\n ((AModelElement) getModel()).removePropertyChangeListener(this);\r\n }\r\n }", "void deactivate(ConditionContext context);", "public void entityDeactivating() {}", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call deactivateModelValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling deactivateModel(Async)\");\n }\n \n // verify the required parameter 'modelId' is set\n if (modelId == null) {\n throw new ApiException(\"Missing the required parameter 'modelId' when calling deactivateModel(Async)\");\n }\n \n\n okhttp3.Call localVarCall = deactivateModelCall(workspaceId, modelId, _callback);\n return localVarCall;\n\n }", "public void deactivate() {\n\t\tentity.deactivateInstance(this);\n\t}", "public void deactivate() {\n\t\tactive_status = false;\n\t}", "public void deactivate() {\n log.info(\"Stopped\");\n }", "public void deactivate() {\n this.active = false;\n }", "@Override\n\tpublic void onDeactivate() {\n\t}", "void deactivate() throws ResourceActivatorException, InterruptedException, ExecutionException;", "@Override\n public void onDeactivate() {\n }", "public void deactivate(){\n state = State.invisible;\n active = false;\n }", "public void deactivate() {\n\tif (canBeActive()) {\n\t\tmActive = false;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be deactivated\");\n\t}\n}", "protected void unbindModel() {\n\n //Unbind the vao and vbo\n glDisableVertexAttribArray(0);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n }", "public okhttp3.Call deactivateModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = deactivateModelValidateBeforeCall(workspaceId, modelId, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public ExitWithoutSavingController(BuilderView builderView, JPanel parentPanel, Model model){\n\t\tthis.builderView = builderView;\n\t\tthis.parentPanel = parentPanel;\n\t\tthis.cardLayout = (CardLayout) parentPanel.getLayout();\n\t\tthis.model = model;\n\t}", "private void activationOFF() {\n switch (afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.desactivatedContents();\n break;\n case AFFICHE_USER :\n ecranUser.desactivatedContents();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.desactivatedContents();\n break;\n default: break;\n }\n }", "public void buildModel() {\n }", "@Override\n\tpublic void Deactivate(List<IBlurb> blurbs) {\n\n\t}", "@Deactivate\n protected void deactivate() {\n activated = false;\n logger.info(\"deactivate: deactivated slingId: {}, this: {}\", slingId, this);\n if (periodicPingJob != null) {\n periodicPingJob.stop();\n periodicPingJob = null;\n }\n }", "public void deactivate(String deploymentId) {\n\t\t\n\t}", "@Override\r\n\tpublic void deactivate() {\n\t\tsuper.deactivate();\r\n\t\tthis.getArtFrag().removePropertyChangeListener(this);\r\n\t}", "private void deActivateView() {\n if (!isActive()) {\n return;\n }\n setEnabled(false);\n if (editorListener != null) {\n ISelectionService service = getSite().getWorkbenchWindow()\n .getSelectionService();\n if (service != null) {\n service.removePostSelectionListener(editorListener);\n }\n FileBuffers.getTextFileBufferManager().removeFileBufferListener(\n editorListener);\n\n }\n if (textViewer != null && textViewer.getTextWidget() != null\n && !textViewer.getTextWidget().isDisposed()) {\n IDocument document = new Document(\"\");\n textViewer.setDocument(document);\n }\n if (tableControl != null && !tableControl.isDisposed()) {\n setVerifyTableItems(null);\n }\n /*\n * if(stackControl != null && !stackControl.isDisposed()){\n * stackControl.setText(\"\"); } if(lvtControl != null && !lvtControl.isDisposed()){\n * lvtControl.setText(\"\"); }\n */\n if (stackTable != null && !stackTable.isDisposed()) {\n stackTable.removeAll();\n }\n if (lvtTable != null && !lvtTable.isDisposed()) {\n lvtTable.removeAll();\n }\n if (statusControl != null && !statusControl.isDisposed()) {\n updateStatus(null, -1, -1);\n }\n currentSelection = null;\n lastDecompiledResult = null;\n javaEditor = null;\n setJavaInput(null);\n lastChildElement = null;\n setBufferIsDirty(false);\n isActive = false;\n }", "@Override\n public void modelDisconnected(ModelEvent event)\n {\n _model.removeListener(this);\n }", "void onDeactivate() {\n\t\t/* Hide the FakeToolTip that could be open in this moment */\n\t\tfakeToolTip.hide();\n\t}", "Build_Model() {\n\n }", "void updateModel() {\n updateModel(false);\n }", "@Deactivate\n\tprotected synchronized void deactivate(final ComponentContext componentContext) {\n\t\tLOGGER.info(\"Deactivating Caching Component...\");\n\t\tthis.m_cache.cleanUp();\n\t\tthis.m_cache = null;\n\t\tLOGGER.info(\"Deactivating Caching Component...Done\");\n\t}", "public void deactivate()\n\t{\n\t\t_active = false;\n\t\t_leader.setObjectHandler(null);\n\t}", "public ActionUndo(GraphModel model) {\n super(\"Undo\");\n this.model = model;\n //putValue(Action.MNEMONIC_KEY, KeyEvent.VK_E);\n setEnabled(false);\n model.addObserver(this);\n }", "@Override\r\n\t\t\tpublic void OnUnCheck(Object o) {\n\t\t\t\tSystem.out.println(\"Entered in ckFun OnUnCheck\");\r\n\t\t\t\tchecAll(getFunTbl().getModel().getData(), false);\r\n\t\t\t\tgetFunTbl().updateUI();\r\n\t\t\t}", "public void closeModel() {\n \t\tif (checkForSave(\"<html>Save changes before closing?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tresetMouseState();\r\n \r\n \t\t// clear undo history\r\n \t\tgraph.getModel().removeUndoableEditListener(undoProxy);\r\n \t\tundoProxy.discardAllEdits();\r\n \t\t// end\r\n \t\t// graph.setModel(null); //wreaks quite a bit of havoc\r\n \t\tmainWindow.removeGraph();\r\n \t\tgraph = null;\r\n \t\tcloseModel.setEnabled(false);\r\n \t\tsaveModel.setEnabled(false);\r\n \t\teditMeasures.setEnabled(false);\r\n \t\tsaveModelAs.setEnabled(false);\r\n \t\tcomponentBar.clearButtonGroupSelection(0);\r\n \t\tcomponentBar.enableButtonGroup(0, false);\r\n \t\tsetConnect.setEnabled(false);\r\n \t\tactionCopy.setEnabled(false);\r\n \t\tactionCut.setEnabled(false);\r\n \t\tactionPaste.setEnabled(false);\r\n \t\tactionDelete.setEnabled(false);\r\n \t\t// FG\r\n \t\tactionSetRight.setEnabled(false);\r\n \t\tactionRotate.setEnabled(false);\r\n \r\n \t\tsetSelect.setEnabled(false);\r\n \t\tsimulate.setEnabled(false);\r\n \t\tsolveAnalitic.setEnabled(false);\r\n \t\tsolveApp.setEnabled(false);\r\n \t\teditUserClasses.setEnabled(false);\r\n \t\teditMeasures.setEnabled(false);\r\n \t\tswitchToExactSolver.setEnabled(false);\r\n \t\t// Disables the botton to start simualtion\r\n \t\tsimulate.setEnabled(false);\r\n \t\teditSimParams.setEnabled(false);\r\n \t\teditPAParams.setEnabled(false);\r\n \t\ttakeScreenShot.setEnabled(false);\r\n \t\t// Disables show results button and measure definition\r\n \t\tshowResults.setSelected(false);\r\n \t\tshowResults.setEnabled(false);\r\n \t\tif (resultsWindow != null) {\r\n \t\t\tresultsWindow.dispose();\r\n \t\t}\r\n \t\tresultsWindow = null;\r\n \t\topenedArchive = null;\r\n \t\tmodel = new JMODELModel();\r\n \t\tmainWindow.updateTitle(null);\r\n \t\t// Free same resources by forcing a garbage collection\r\n \t\tSystem.gc();\r\n \t}", "public void DeActivate() {\n\t\t\n\t}", "void setVeilleObjetDeactivated();", "public void deactivateBreakpointView() {\n \t\tif (this.breakpointView.getActive()) {\n \t\t\tthis.breakpointView.getAddButton().removeSelectionListener(this);\n \t\t\tthis.breakpointView.setActive(false);\n \t\t}\n \t}", "@Deactivate\n protected void deactivate(ComponentContext context) {\n httpService.unregister(\"/s-ramp\");\n log.debug(\"******* Governance S-Ramp bundle is deactivated ******* \");\n }", "public Builder clearBackToBackEnabled() {\n \n backToBackEnabled_ = false;\n onChanged();\n return this;\n }", "private void actionChangedEstimatorOFF ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetFile().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetManual().setEnabled(false);\r\n\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorAlgorithmType().setEnabled(false);\r\n\t}", "@Override\n\tpublic void deactivate() {\n\t\tlocationManager.removeUpdates(this);\n\t\tmContext = null;\n\t\tlocationManager = null;\n\t\tlocationRequest = null;\n\t\tmChangedListener = null;\n\t}", "public void stopObserving() {\n if (myModel.contains(modelObserver)) {\n myModel.deleteObserver(modelObserver);\n }\n }", "@SuppressGaldrWarnings( \"Galdr:ProtectedLifecycleMethod\" )\n @OnDeactivate\n protected void onDeactivate()\n {\n }", "protected void ACTION_B_DISABLE(ActionEvent arg0) {\n\r\n\t\tL_FilterStatusBox.setText(\"Disabled (All Ports)\");\r\n\t}", "private void doAfterUpdateModel(final PhaseEvent arg0) {\n\t}", "public void deActivated() \r\n\t{\r\n\t\t\r\n\t}", "@Override\n public void onDestroy(boolean isChangingConfigurations) {\n // Destroy the model.\n getModel().onDestroy(isChangingConfigurations);\n }", "void onInvalidatedModel();", "public void buildModel(){\r\n\t\t\r\n\t\tsuper.buildModel();\r\n\t\t\r\n\t}", "@Override\n public void deactivate() {\n mListener = null;\n if (mLocationClient != null) {\n mLocationClient.stopLocation();\n mLocationClient.onDestroy();\n }\n mLocationClient = null;\n mLocationOption = null;\n }", "@Override\n\tpublic void onDeactivated() {\n\t\t\n\t}", "public void deactivate() {\n\t\tcameraNXT.enableTracking(false);\n\t}", "public void stopTrainingMode() {\n\t\t\r\n\t}", "private void unbindTexturedModel() {\n\t\tGL20.glDisableVertexAttribArray(0);\n\t\tGL20.glDisableVertexAttribArray(1);\n\t\tGL20.glDisableVertexAttribArray(2);\n\t\t\t\t\n\t\t// Then also have to unbind the VAO, instead of putting a ID in, we just put in 0\n\t\tGL30.glBindVertexArray(0);\n\t}", "@Override\n public void exit() {\n model.exit();\n }", "public void disable(){\r\n\t\tthis.activ = false;\r\n\t}", "@Override\n public void onDestroy() {\n super.onDestroy();\n handler.removeMessages(UpdateConfig.NET_MSG_GETLENTH);\n // if (mModel != null) {\n // mModel.cancelLoadData();\n // }\n if (mTask != null) {\n mTask.cancel(true);\n }\n if (mNotificationManager != null) {\n mNotificationManager.cancel(UpdateConfig.NOTIFY_DOWNLOADING_ID);\n }\n }", "@Deactivate\n protected void stop() throws Exception {\n log.info(\"Service Component is deactivated\");\n\n Map<String, ExecutionPlanRuntime> executionPlanRunTimeMap = EditorDataHolder.\n getDebugProcessorService().getExecutionPlanRunTimeMap();\n for (ExecutionPlanRuntime runtime : executionPlanRunTimeMap.values()) {\n runtime.shutdown();\n }\n EditorDataHolder.setBundleContext(null);\n serviceRegistration.unregister();\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tACTION_B_DISABLE(arg0);\r\n\t\t\t}", "private TaskResourceRep finishDeactivateTask(BlockConsistencyGroup consistencyGroup, String task) {\n URI id = consistencyGroup.getId();\n Operation op = new Operation();\n op.ready();\n op.setProgress(100);\n op.setResourceType(ResourceOperationTypeEnum.DELETE_CONSISTENCY_GROUP);\n Operation status = _dbClient.createTaskOpStatus(BlockConsistencyGroup.class, id, task, op);\n return toTask(consistencyGroup, task, status);\n }", "FilterInfo deActivateFilter(String filter_id, int revision) throws Exception;", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement);", "void selectActivityOptions(int activity_number, Model model);", "@Override\n \tpublic void deactivated(ILaunchConfigurationWorkingCopy workingCopy) {\n \t}", "void removeModelEventListener(UmlChangeListener listener, Object modelelement, String propertyName);", "@Override\n public void modelStopped(ModelEvent me)\n {\n save(me.getSource(), _stopDirectory);\n }", "public boolean deactivate() {\n this._factory.shutdown();\n return true;\n }", "@Override\r\n public void deactivate() {\n locationManager.removeUpdates(this);\r\n mContext = null;\r\n locationManager = null;\r\n locationRequest = null;\r\n mChangedListener = null;\r\n }", "public void entityDeactivated() {\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger\r\n \t\t\t.debug(\"entityDeactivated(): ending all activities\");\r\n \t\t}\r\n \t\t\r\n \t\tfor(ActivityHandle handle: activities.keySet()) {\r\n \t\t\ttry {\r\n \t\t\t\tsleeEndpoint.activityEnding(handle);\r\n \t\t\t} catch (UnrecognizedActivityException uae) {\r\n \t\t\t\tlogger.error(\"failed to indicate activity has ended\",\r\n \t\t\t\t\tuae);\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger.debug(\"entityDeactivated(): cleaning naming context\");\r\n \t\t}\r\n \t\ttry {\r\n \t\t\tcleanNamingContextBindings();\r\n \t\t} catch (NamingException e) {\r\n \t\t\tlogger.error(\"failed to clean naming context\",e);\r\n \t\t}\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger\r\n \t\t\t.debug(\"entityDeactivated() completed\");\r\n \t\t}\r\n \t}", "@RequestMapping(value = \"/accountUnblock\", method = RequestMethod.GET)\n\tpublic String accountUnblock(Model model) {\n\t\tlogger.info(\"In account unblock get method\");\n\n\t\tAccountBlockRequestData acctUnblockRequest = new AccountBlockRequestData();\n\n\t\tmodel.addAttribute(\"request\", acctUnblockRequest);\n\n\t\treturn \"account_unblock\";\n\t}", "@Override\n public void deactivateBinding(QName name, ServiceHandler handler) {\n }", "void unsetGradeModelRefs();", "public void deactivate() {\n serviceTracker.close();\n listenerSR.unregister();\n }", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String propertyName);", "public ApiResponse<ModelApiResponse> deactivateModelWithHttpInfo(String workspaceId, String modelId) throws ApiException {\n okhttp3.Call localVarCall = deactivateModelValidateBeforeCall(workspaceId, modelId, null);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n return localVarApiClient.execute(localVarCall, localVarReturnType);\n }", "public void deactivate() throws JBIException {\n count--;\n if(count != 0)\n return;\n _ode.getContext().deactivateEndpoint(_internal);\n __log.debug(\"Dectivated endpoint \" + _endpoint);\n }", "public void deactivate(int which) {\n if (isActive[which]) {\n isActive[which] = false;\n numActive--;\n } // end if\n }", "@SuppressWarnings(\"unused\")\n @Deactivate\n private void deactivate() {\n\n this.bundleContext.removeServiceListener(this);\n\n final ServiceReference[] serviceReferences;\n synchronized (this.proxies) {\n serviceReferences = this.proxies.keySet().toArray(\n new ServiceReference[this.proxies.size()]);\n }\n\n for (ServiceReference serviceReference : serviceReferences) {\n unregister(serviceReference);\n }\n\n this.bundleContext = null;\n }", "void removeModelEventListener(UmlChangeListener listener, Object modelelement, String[] propertyNames);", "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\n\t\tif(taskFetcAllComments!=null&&taskFetcAllComments.getStatus()==AsyncTask.Status.RUNNING){\n\t\t\ttaskFetcAllComments.cancel(true);\n\t\t}\n\n\t\tif(taskFetchNode!=null&&taskFetchNode.getStatus()==AsyncTask.Status.RUNNING){\n\t\t\ttaskFetchNode.cancel(true);\n\t\t}\n\n\t\tif(taskPostComment!=null&&taskPostComment.getStatus()==AsyncTask.Status.RUNNING){\n\t\t\ttaskPostComment.cancel(true);\n\t\t}\n\n\t\tif(taskPostImage!=null&&taskPostImage.getStatus()==AsyncTask.Status.RUNNING){\n\t\t\ttaskPostImage.cancel(true);\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void OnUnCheck(Object o) {\n\t\t\t\tchecAll(getProcTbl().getModel().getData(), false);\r\n\t\t\t\tgetProcTbl().updateUI();\r\n\t\t\t}", "public void onDeactivation() { }", "public boolean buildModel() {\n \treturn buildModel(false, false);\n }", "public void onDestroy() {\n if ((getChangingConfigurations() & 128) == 128 && this.f12125b != null) {\n this.f12125b.mo6021b(true);\n }\n super.onDestroy();\n }", "@Override\n\tpublic void undoCommand() {\n\t\tselectionModel.removeAllFromSelectionList();\n\t\tmodel.removeElement(device);\n\t}", "void removeModelEventListener(PropertyChangeListener listener, Object modelelement, String[] propertyNames);", "public void deactivateVarView() {\n \t\tthis.varView.getVarTree().setBackground(new Color(this.varView.getDisplay(), 231, 231, 231));\n \t\tthis.varView.getVarTree().setForeground(new Color(this.varView.getDisplay(), 151, 151, 151));\n \t}", "@Override\n\tpublic void buildModel(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Map templateModel)\n\t\t\tthrows HandlerExecutionException {\n\t\tString workflowName=request.getParameter(\"workflowName\");\n\t\tString taskName=request.getParameter(\"taskName\");\n\t\tString featureModelName=request.getParameter(\"featureModelName\");\n\t\tString userKey=request.getParameter(\"userKey\");\n\t\tString userName=request.getParameter(\"userName\");\n\t\tString userID=request.getParameter(\"userID\");\n\n\t\tString placeType=request.getParameter(\"placeType\");\n\t\t\n\t\tString stopAllocatedViewsResult=\"\";\n\t\t\n\t\tfeatureModelName=featureModelName.replace(\"?\", \" \");\n\n\t\t\n\t\tString viewDir=getServlet().getServletContext().getRealPath(\"/\")+ \"extensions/views/\"; \n\t\tString modelDir=getServlet().getInitParameter(\"modelsPath\");\n\t\tString configuredModelPath=modelDir+\"configured_models\";\n\t\n\t\t\n\t\t\tif ((placeType.compareToIgnoreCase(\"stop\")==0)) {\n\t\t\t\tString configuredFileName=Methods.getConfiguredFileName(configuredModelPath, userKey);\n\t\t\t\tSystem.out.println(configuredFileName);\n\t\t\t\tif(configuredFileName.compareToIgnoreCase(\"false\")==0){\n\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\tmessage.put(\"value\", \"The configuration file not found\");\n\t\t\t\t\tmessages.add(message);\n\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\n\t\t\t\t}else{\n\t\t\t\t\tstopAllocatedViewsResult=Methods.checkConfigurationCompletionInStopPlace(featureModelName, viewDir, modelDir, configuredModelPath, taskName, placeType, workflowName, configuredFileName, userName, userID);\n\t\t\t\t\tif(stopAllocatedViewsResult.compareToIgnoreCase(\"true\")==0){\n\t\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\t\tmessage.put(\"value\", \"Configuration status of tasks has been checked\");\n\t\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\t\tmessage.put(\"value\", \"Problem in checking of configuration status of the tasks\");\n\t\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t \n\n\t\t\t}\t\n\t\t\t\t\n\t\t\t\n\t}", "@Override\r\n \tpublic void onModelConfigFromCache(OpenGLModelConfiguration model) {\n \t\tboolean hasNewer = getCurrentTarget().getLatestModelVersion() > \r\n \t\t\t\t\t\t model.getOpenGLModel().getModelVersion();\r\n \t\tthis.fireOnModelDataEvent(model, hasNewer);\r\n \t}", "public void deactivate() {\n\t\tlog.info(\"Deactivating simple JNDI environment\");\n\t\tactivated = null;\n\t}" ]
[ "0.60144407", "0.5971747", "0.5937248", "0.5925733", "0.5906834", "0.58091843", "0.575352", "0.57095206", "0.5622869", "0.55960155", "0.5557026", "0.5546168", "0.5545725", "0.54827964", "0.543579", "0.54344696", "0.5376565", "0.5372555", "0.5333872", "0.5331779", "0.5289077", "0.5234191", "0.5205195", "0.51571697", "0.5091446", "0.5040392", "0.50322795", "0.49907735", "0.49060568", "0.48999888", "0.48995164", "0.48854393", "0.4816858", "0.48158172", "0.478595", "0.47482875", "0.47383007", "0.47211447", "0.46903497", "0.46645865", "0.46583122", "0.46185637", "0.46182188", "0.46090144", "0.4606139", "0.46036774", "0.4603217", "0.45999745", "0.4598143", "0.45945433", "0.45896247", "0.45746446", "0.45654634", "0.4563042", "0.45620587", "0.45569748", "0.45566255", "0.45536602", "0.4545997", "0.45068896", "0.4501067", "0.44909883", "0.44622293", "0.44561628", "0.44501916", "0.44481426", "0.44350097", "0.4423116", "0.4417015", "0.4411768", "0.44093627", "0.4405403", "0.4404478", "0.4399214", "0.4394452", "0.43892476", "0.4386809", "0.4369492", "0.43599695", "0.435585", "0.43545085", "0.4354491", "0.43525428", "0.4350568", "0.43468267", "0.43466723", "0.4341318", "0.433667", "0.4333765", "0.43297374", "0.4322427", "0.43171147", "0.43143243", "0.4302487", "0.42902878", "0.42897427", "0.42829636", "0.42781666", "0.4273951", "0.42701888" ]
0.47192863
38
verify the required parameter 'workspaceId' is set
@SuppressWarnings("rawtypes") private okhttp3.Call deactivateModelValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException { if (workspaceId == null) { throw new ApiException("Missing the required parameter 'workspaceId' when calling deactivateModel(Async)"); } // verify the required parameter 'modelId' is set if (modelId == null) { throw new ApiException("Missing the required parameter 'modelId' when calling deactivateModel(Async)"); } okhttp3.Call localVarCall = deactivateModelCall(workspaceId, modelId, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }", "public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }", "@Test\r\n \tpublic void testProjectID() {\n \t\tassertNull(localProject.getGlobalProjectId());\r\n \t}", "public String getWorkspaceId() {\n return workspaceId;\n }", "public String getWorkspaceId() {\n return this.workspaceId;\n }", "public UUID getWorkspaceId() {\n return workspaceId;\n }", "@Test\n\tpublic void getProjectByIdInvalid() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.getProjectById(7L);\n\t}", "@Test\n\tpublic void updateProjectsInvalidId() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.updateProject(7L, project);\n\t}", "@Test\n public void checkExistentWidgetAndParameter() throws Exception {\n\n driver = WidgetUtils.OpenWidgetEditMode(driver, wait, baseUrl, widgetName);\n\n //Step 3 - Check if the parameter exist in 'Settings'\n //Move to the iframe\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='solutionNavigatorAndContentPanel']/div[4]/table/tbody/tr[2]/td/div/div/table/tbody/tr/td/iframe\")));\n WebElement frameCDEDashboard = driver.findElement(By.xpath(\"//div[@id='solutionNavigatorAndContentPanel']/div[4]/table/tbody/tr[2]/td/div/div/table/tbody/tr/td/iframe\"));\n driver.switchTo().frame(frameCDEDashboard);\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='layoutPanelButton']\")));\n assertTrue(driver.findElement(By.xpath(\"//div[@class='layoutPanelButton']\")).isEnabled());\n //Press 'Settings'\n driver.findElement(By.xpath(\"//div[@id='headerLinks']/div[5]/a\")).click();\n wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.xpath(\"//div[@id='popup']\")));\n assertNotNull(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/input\")));\n //The parameter MUST be equal to the one set\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@id='widgetParameters']/div/span\")));\n assertEquals(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/span\")).getText(), paramName);\n //Press on the check box\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@id='widgetParameters']/div/input\")));\n assertTrue(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/input\")).isSelected());\n //Press button 'Cancel'\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='popupbuttons']/button[@id='popup_state0_buttonCancel']\")));\n driver.findElement(By.xpath(\"//div[@class='popupbuttons']/button[@id='popup_state0_buttonCancel']\")).click();\n\n\n //Step 4 - Click on Component Panel and check if the widget is listed\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='componentsPanelButton']\")));\n driver.findElement(By.xpath(\"//div[@class='componentsPanelButton']\")).click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/h3/span\")));\n driver.findElement(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/h3/span\")).click();\n //Getting the element where the widget created is displayed\n WebElement listOfWidgets = driver.findElement(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/div\"));\n //Check if the widget created is listed\n WebElement theWidgetCreated = listOfWidgets.findElement(By.xpath(\"//a[@class='tooltip' and contains(text(),'\" + widgetName + \"')]\"));\n assertNotNull(theWidgetCreated);\n assertEquals(theWidgetCreated.getText(), widgetName);\n\n\n //Step 5 - Click in the widget created and check if the widget is add at Components column and Properties\n theWidgetCreated.click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//table[@id='table-cdfdd-components-components']/tbody/tr[4]/td\")));\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//table[@id='table-cdfdd-components-properties']/tbody/tr[2]/td\")));\n assertEquals(driver.findElement(\n By.xpath(\"//table[@id='table-cdfdd-components-components']/tbody/tr[4]/td\")).getText(),\n widgetName + \" Widget\");\n assertEquals(driver.findElement(\n By.xpath(\"//table[@id='table-cdfdd-components-properties']/tbody/tr[2]/td\")).getText(),\n \"Parameter \" + paramName);\n }", "public void setWorkspace( Integer workspace ) {\n this.workspace = workspace;\n }", "public void setWorkspace(String workspace) {\n this.workspace = workspace;\n }", "protected static Workspace getWorkspace(String workspaceId)\n throws AnaplanAPIException {\n if (workspaceId == null || workspaceId.isEmpty()) {\n LOG.error(\"A workspace ID must be provided\");\n return null;\n }\n Workspace result = null;\n\n if (!noValidateWorkspace) {\n try {\n result = getService().getWorkspace(workspaceId);\n } catch (WorkspaceNotFoundException | UnknownAuthenticationException ignored) {\n }\n }\n if (result == null) {\n WorkspaceData data = new WorkspaceData();\n data.setId(workspaceId);\n try {\n result = new Workspace(getService(), data);\n } catch (UnknownAuthenticationException ignored) {\n }\n }\n return result;\n }", "public BaseMsg verifyProjectInfo(long projectId);", "private boolean assertIdAndVarName() {\r\n\t\tfinal boolean isValidId = assertNotEmpty(cmpCfg.getId(),\r\n\t\t\t\tYValidationAspekt.VIEW_ID_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValidVar = assertNotEmpty(cmpCfg.getVariableName(),\r\n\t\t\t\tYValidationAspekt.VIEW_VAR_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValid = isValidId && isValidVar;\r\n\t\treturn isValid;\r\n\r\n\t}", "private void validatePathParameters(final Integer datacenterId) throws NotFoundException\n {\n if (!service.isAssignedTo(datacenterId, RemoteServiceType.NODE_COLLECTOR))\n {\n throw new NotFoundException(APIError.NOT_ASSIGNED_REMOTE_SERVICE_DATACENTER);\n }\n }", "public void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public boolean isIdExist(int projectId) throws EmployeeManagementException;", "boolean canAccess(String workspaceName) throws NoSuchWorkspaceException, RepositoryException;", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "@Test\n\tpublic void deleteProjectsInvalidID() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.deleteProject(7L);\n\t}", "@Test\n public void testBuildWithValidParametersReturnsProjectExportParametersInstance() {\n // Arrange\n testling.setProjectName(\"validProjectName\")\n .setProjectExportPath(\"validProjectExportPath\");\n\n // Assert\n ProjectExportParameters parameters = testling.build();\n\n // Act\n assertThat(\"Expect not null.\", parameters, is(notNullValue()));\n }", "@Test\n\tpublic void testBuildWithValidParametersReturnsProjectExportParametersInstance() {\n\t\t// Arrange\n\t\ttestling.setProjectName(\"validProjectName\")\n\t\t\t\t.setProjectExportPath(\"validProjectExportPath\");\n\n\t\t// Assert\n\t\tProjectExportParameters parameters = testling.build();\n\n\t\t// Act\n\t\tassertThat(\"Expect not null.\", parameters, is(notNullValue()));\n\t}", "public void testPropFindForNonExistingWorkspace() throws Exception\n {\n String file = TestUtils.getFileName();\n\n ContainerResponse response =\n service(WebDAVMethods.PROPFIND, getPathWS() + \"_\" + file, \"\", null, null);\n assertEquals(HTTPStatus.CONFLICT, response.getStatus());\n }", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "public interface WorkspaceContext {\n\n\n /**\n * Retorna a representação do workspace.\n *\n * @return\n */\n WorkspaceRepresentation getWorkspace();\n\n /**\n * Define o projeto de trabalho.\n *\n * @param projectRepresentation\n */\n void setWorkingProject(ProjectRepresentation projectRepresentation);\n\n\n /**\n * Retorna o projeto de trabalho.\n *\n * @return\n */\n ProjectRepresentation getWorkingProject();\n}", "protected void addWorkspace( String workspaceName ) {\n }", "@Reference\n public void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public void testGetProjectPhasesLong_NotExist() throws Exception {\n Project project = persistence.getProjectPhases(33245);\n assertNull(\"Should return null.\", project);\n }", "protected void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "@Test\n\tpublic void query_for_build_project_is_scoped_to_BuildProject() {\n\t\tEnvironmentContext cx = null;\n\t\ttry {\n\t\t\tcx = new EnvironmentContext();\n\t\t} catch (Exception e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t// And a new repository with that connection\n\t\tBuildProjectRepository repository = new BuildProjectRepositoryApiClient(cx);\n\t\t// When I build the query for story statuses\n\t\tQuery query = repository.buildQueryForAllBuildProjects();\n\t\t// Then the asset type is BuildProject\n\t\tassertEquals(\"BuildProject\", query.getAssetType().getToken());\n\t}", "private void checkAuthSessionId() {\n val auth = config.getString(\"authSessionId\");\n\n checkArgument(auth.length() > 10, \"auth string (sessionId) length is less than or equal to 10!\");\n }", "private void validateGetIdPInputValues(String resourceId) throws IdentityProviderManagementException {\n\n if (StringUtils.isEmpty(resourceId)) {\n String data = \"Invalid argument: Identity Provider resource ID value is empty\";\n throw IdPManagementUtil.handleClientException(IdPManagementConstants.ErrorMessage\n .ERROR_CODE_IDP_GET_REQUEST_INVALID, data);\n }\n }", "public boolean checkSelf() {\n\t\tboolean ok = true;\n\t\tif (controller == null) {\n\t\t\tSystem.err.println(\"CRParameters :: controller not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (scenario.length() == 0 && controller.getWorld().getHasScenarios()) {\n\t\t\tSystem.err.println(\"CRParameters :: scenario not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (reportFolderName.length() == 0) {\n\t\t\tSystem.err.println(\"CRParameters :: report folder not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (trialDuration <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: trial duration not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfRuns <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of runs not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfTrials <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of trials not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\treturn ok;\n\t}", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "public FormValidation doCheckExecutionParameters(@QueryParameter String value, @QueryParameter String agentId) {\n if (StringUtils.isEmpty(value) && StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n JsonObject executionParams = null;\n try {\n executionParams = SerializationHelper.fromJson(value, JsonObject.class);\n\n // In case the value parameter is empty\n if (executionParams == null)\n return FormValidation.ok();\n\n } catch (JsonSyntaxException e) {\n return FormValidation.error(\"Invalid JSON object\");\n }\n\n // In case the user did not select agent from the dropdown and/or in the JSON object, return ok.\n if ((executionParams.get(\"agentId\") != null && StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString())) || StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n // In case the user has selected the same agentId in the dropdown and in the JSON object, no need to show a warning\n if ((executionParams.get(\"agentId\") != null && StringUtils.equals(executionParams.get(\"agentId\").getAsString(), agentId)))\n return FormValidation.ok();\n\n // In case the user has selected two different agents in the dropdown and in the JSON object, show warning\n if (executionParams.get(\"agentId\") != null &&\n !StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString()) &&\n !StringUtils.isEmpty(agentId))\n return FormValidation.warning(\"You've selected an agent and specified a different one in executionParameters. The job will be executed on the selected agent.\");\n\n return FormValidation.ok();\n }", "protected void removeWorkspace( String workspaceName ) {\n }", "public boolean isSetRunId() {\n return this.runId != null;\n }", "@Test\n public void testErrorMsgWhenProjectNameIsEmpty() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String testAccount = \"Account2\";\n createProject.setAccountDropDown(testAccount);\n createProject.clickCreateProject();\n\n //Then\n String expectedMessage = \"Enter a name for your project\";\n String actualMessage = createProject.getProjectTitleMessage();\n softAssert.assertEquals(expectedMessage, actualMessage);\n softAssert.assertEquals(createProject.getProjectNameTextFieldColor(), RED_COLOR);\n softAssert.assertAll();\n }", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "public void setStagingWorkspaceId(Long stagingWorkspaceId) {\n this.stagingWorkspaceId = stagingWorkspaceId;\n }", "@Override\n public String validNameProject(String name, Integer project_Oid) {\n return null;\n }", "public String getWorkspaceName() {\n return workspaceName;\n }", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorWorkspaceNull() {\n PlannedActivity plannedActivity = new PlannedActivity(0,\n new Site(\"factory\", \"area\"), new Typology(\"typology\"),\n \"desctiption\", 0, true, 1, new Procedure(\"name\", \"smp\"), null);\n\n }", "@Test\n public void testWithActiveRunNoRunName() {\n MlflowContext mlflow = setupMlflowContext();\n mlflow.setExperimentId(\"123\");\n when(mockClient.createRun(any(CreateRun.class)))\n .thenReturn(RunInfo.newBuilder().setRunId(\"test-id\").build());\n mlflow.withActiveRun(activeRun -> {\n Assert.assertEquals(activeRun.getId(), \"test-id\");\n });\n verify(mockClient).createRun(any(CreateRun.class));\n verify(mockClient).setTerminated(any(), any());\n }", "@Test\n public void getComputerBuildByIdentifier() {\n Iterable<ComputerBuild> computerBuilds = computerBuildService.getAllComputerBuildsFromUser(USER_NAME_TO_TEST_OWNERSHIP_ENDPOINTS);\n ComputerBuild retrievedBuild = computerBuilds.iterator().next();\n assertNotNull(retrievedBuild);\n\n ComputerBuild foundBuild = computerBuildService.getComputerBuildByBuildIdentifier(retrievedBuild.getBuildIdentifier());\n\n assertNotNull(foundBuild);\n assertEquals(retrievedBuild.getBuildIdentifier(), foundBuild.getBuildIdentifier());\n assertEquals(retrievedBuild.getUser().getUsername(), foundBuild.getUser().getUsername());\n\n }", "public void test_61843() {\n \t\t// create the project and manually give it a settings file\n \t\tfinal String qualifier = getUniqueString();\n \t\tfinal IProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tIFile settingsFile = getFileInWorkspace(project, qualifier);\n \n \t\t// write some property values in the settings file\n \t\tProperties properties = new Properties();\n \t\tproperties.put(\"key\", \"value\");\n \t\tOutputStream output = null;\n \t\ttry {\n \t\t\tFile file = settingsFile.getLocation().toFile();\n \t\t\tfile.getParentFile().mkdirs();\n \t\t\toutput = new BufferedOutputStream(new FileOutputStream(file));\n \t\t\tproperties.store(output, null);\n \t\t} catch (FileNotFoundException e) {\n \t\t\tfail(\"1.0\", e);\n \t\t} catch (IOException e) {\n \t\t\tfail(\"1.1\", e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (output != null)\n \t\t\t\t\toutput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\t// ignore\n \t\t\t}\n \t\t}\n \n \t\t// add a log listener to ensure that no errors are reported silently\n \t\tILogListener logListener = new ILogListener() {\n \t\t\tpublic void logging(IStatus status, String plugin) {\n \t\t\t\tThrowable exception = status.getException();\n \t\t\t\tif (exception == null || !(exception instanceof CoreException))\n \t\t\t\t\treturn;\n \t\t\t\tif (IResourceStatus.WORKSPACE_LOCKED == ((CoreException) exception).getStatus().getCode())\n \t\t\t\t\tfail(\"3.0\");\n \t\t\t}\n \t\t};\n \n \t\t// listener to react to changes in the workspace\n \t\tIResourceChangeListener rclistener = new IResourceChangeListener() {\n \t\t\tpublic void resourceChanged(IResourceChangeEvent event) {\n \t\t\t\tnew ProjectScope(project).getNode(qualifier);\n \t\t\t}\n \t\t};\n \n \t\t// add the listeners\n \t\tPlatform.addLogListener(logListener);\n \t\tgetWorkspace().addResourceChangeListener(rclistener, IResourceChangeEvent.POST_CHANGE);\n \n \t\ttry {\n \t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"4.0\", e);\n \t\t} finally {\n \t\t\tPlatform.removeLogListener(logListener);\n \t\t\tgetWorkspace().removeResourceChangeListener(rclistener);\n \t\t}\n \t}", "@Test\n public void testValidToken() {\n try {\n int coachId = authBO.getUserIdAndValidateToken(\"thisisaworkingtoken\");\n Assert.assertTrue(coachId == 1);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "String checkIfProjectExists(String projectKey, String projectName);", "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 }", "@Override\r\n protected CommandStatus<StclContext, PStcl> verifyContext(CommandContext<StclContext, PStcl> cmdContext, PStcl self) {\n _name = getParameter(cmdContext, 1, null);\r\n if (StringUtils.isEmpty(_name)) {\r\n return error(cmdContext, self, Status.NO_NAME_DEFINED, \"no name to copy directory\");\r\n }\r\n\r\n // other verification\r\n return super.verifyContext(cmdContext, self);\r\n }", "@Test\n public void test_access_to_modify_team_success() {\n try {\n Assert.assertTrue(authBO.hasAccessToModifyTeam(1, 1));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "private boolean configurationInWorkspace(URL url) {\n \t\treturn true;\n \t}", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExists() {\n assertThrows(NotFoundException.class, () -> projectService.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Test\n public void testNoCoverageId() throws Exception {\n MockHttpServletResponse response = getAsServletResponse(\"wcs?service=WCS&version=2.0.1&request=GetCoverage\");\n checkOws20Exception(response, 400, \"MissingParameterValue\", \"coverageId\");\n }", "void verifyOrCreateReport(String reportId);", "public void testGetProjectByNameDoesNotExist() throws Exception {\r\n ProjectServiceRemote projectService = lookupProjectServiceRemoteWithUserRole();\r\n\r\n // 1 is the user id\r\n try {\r\n projectService.getProjectByName(\"xxxxx\", 1);\r\n fail(\"ProjectNotFoundFault expected.\");\r\n } catch (ProjectNotFoundFault e) {\r\n // expected\r\n }\r\n }", "@Test\n public void testFailureWithoutObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, \"\", 400);\n }", "private boolean ensureWorkspaceExists(String name, Credentials credentials) {\r\n\t\tSession sess = null;\r\n\t\ttry {\r\n\t\t\tsess = repository.login(credentials);\r\n\t\t\tString[] wsnames = sess.getWorkspace()\r\n\t\t\t\t\t.getAccessibleWorkspaceNames();\r\n\t\t\tif (inArr(name, wsnames)) {\r\n\t\t\t\t// workspace exists\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tlog.info(\" Creating Repository workspace \" + name);\r\n\t\t\t\tsess.getWorkspace().createWorkspace(name);\r\n\t\t\t}\r\n\t\t} catch (LoginException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t} catch (RepositoryException e) {\r\n\t\t\t// ugly check, we are getting something like workspace 'wsname'\r\n\t\t\t// already exists.\r\n\t\t\tif (e.getMessage().indexOf(\"already exists\") > 0) {\r\n\t\t\t\t// ignore exteption\r\n\t\t\t} else {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif (sess != null) {\r\n\t\t\t\tsess.logout();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Test\n public void allWorkspacesTest() throws ApiException {\n List<Workspace> response = api.allWorkspaces();\n\n // TODO: test validations\n }", "@Test\n public void testFailureWithNonexistantObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, reqFactory.createIdApiRequest(Types.PACKAGE).execute(hc), 404);\n }", "void checkStationId(int lineCount, String testStationId) {\n if (!stationId.equals(testStationId)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Station Id does not match previous station record \" +\n stationId + \": \" + testStationId);\n } // if (!stationId.equals(station.getStationId(\"\")))\n }", "public String getWorkspace() {\n return workspace;\n }", "protected void verifyRequestInputModelNone( String apiName)\n {\n // Given...\n OpenAPI api = readApi( apiName);\n\n // When...\n SystemInputDef inputDef = TcasesOpenApi.getRequestInputModel( api);\n\n // Then...\n assertThat( apiName + \" input model\", inputDef, is( nullValue()));\n }", "@Test\n public void testNeighborSystemId() throws Exception {\n isisNeighbor.setNeighborSystemId(systemId);\n result1 = isisNeighbor.neighborSystemId();\n assertThat(result1, is(systemId));\n }", "void commit(String workspace);", "protected void validateCredentials() throws BittrexApiException {\n String humanMessage = \"Please check environment variables or VM options\";\n if (Strings.isNullOrEmpty(this.getApiKey()))\n throw new BittrexApiException(\"Missing BITTREX_API_KEY. \" + humanMessage);\n if (Strings.isNullOrEmpty(this.getSecretKey()))\n throw new BittrexApiException(\"Missing BITTREX_SECRET_KEY. \" + humanMessage);\n }", "@Test\n\tpublic void testGetBuildVersion() {\n\t\tString buildVersion = rmitAnalyticsModel.getBuildVersion();\n\t\tAssert.assertNotNull(buildVersion);\n\t\tAssert.assertTrue(buildVersion.isEmpty());\n\t}", "@Test\n public void enableDebuggerTest() {\n String customerId = null;\n // Void response = api.enableDebugger(customerId);\n\n // TODO: test validations\n }", "public void checkParameters() {\n }", "public Workspace getWorkspace() {\n return workspace;\n }", "private void verifyWorkspace(long[][][] ids) {\n ArrayList<Long> allScreens = LauncherModel.loadWorkspaceScreensDb(getMockContext());\n assertEquals(ids.length, allScreens.size());\n int total = 0;\n\n for (int i = 0; i < ids.length; i++) {\n long screenId = allScreens.get(i);\n for (int y = 0; y < ids[i].length; y++) {\n for (int x = 0; x < ids[i][y].length; x++) {\n long id = ids[i][y][x];\n\n Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI,\n new String[]{LauncherSettings.Favorites._ID},\n \"container=-100 and screen=\" + screenId +\n \" and cellX=\" + x + \" and cellY=\" + y, null, null, null);\n if (id == -1) {\n assertEquals(0, c.getCount());\n } else {\n assertEquals(1, c.getCount());\n c.moveToNext();\n assertEquals(id, c.getLong(0));\n total++;\n }\n c.close();\n }\n }\n }\n\n // Verify that not other entry exist in the DB.\n Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI,\n new String[]{LauncherSettings.Favorites._ID},\n \"container=-100\", null, null, null);\n assertEquals(total, c.getCount());\n c.close();\n }", "@Override\r\n\tpublic Workspace getWorkspace() {\n\t\treturn null;\r\n\t}", "@Test\n public void postTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.postTemplateProgrammerProject(request);\n\n // TODO: test validations\n }", "private void validateITResource() {\n // TODO Auto-generated method stub\n \n }", "public static boolean isValidDivisionId(int divisionId) {\n return divisionId > 0 || divisionId == DIVISION_TEST || divisionId == DIVISION_GLOBAL;\n }", "private void assert_validPID(int pid) throws IllegalArgumentException{\n\t\tif(!validPID(pid)){\n\t\t\tthrow new IllegalArgumentException(\"Tried to get a property from layer '\"+ name\n\t\t\t\t\t+\"' with an invalid property ID: \"+pid);\n\t\t}\n\t}", "private boolean checkInstanceLocation(boolean show_login,\n final boolean force_prompt,\n URL default_workspace, String username, String password,\n Map<String, Object> parameters)\n {\n // Was \"-data @none\" specified on command line?\n final Location instanceLoc = Platform.getInstanceLocation();\n\n if (instanceLoc == null)\n {\n MessageDialog.openError(null,\n \"No workspace\", //$NON-NLS-1$\n \"Cannot run without a workspace\"); //$NON-NLS-1$\n return false;\n }\n\n // -data \"/some/path\" was provided...\n if (instanceLoc.isSet())\n {\n try\n { // Lock\n if (instanceLoc.lock())\n return true;\n // Two possibilities:\n // 1. directory is already in use\n // 2. directory could not be created\n final File ws_dir = new File(instanceLoc.getURL().getFile());\n if (ws_dir.exists())\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_InUseErrorTitle,\n NLS.bind(org.csstudio.platform.workspace.Messages.Workspace_InUseError,\n ws_dir.getCanonicalPath()));\n else\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_DirectoryErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_DirectoryError);\n }\n catch (IOException ex)\n {\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_LockErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_LockError\n + ex.getMessage());\n }\n return false;\n }\n\n // -data @noDefault or -data not specified, prompt and set\n if (default_workspace == null)\n default_workspace = instanceLoc.getDefault();\n\n final WorkspaceInfo workspace_info =\n new WorkspaceInfo(default_workspace, !force_prompt);\n\n // Prompt in any case? Or did user decide to be asked again?\n boolean show_Workspace = force_prompt | workspace_info.getShowDialog();\n\n //if no user name provided, display last login user.\n if(username == null)\n username = WorkspaceIndependentStore.readLastLoginUser();\n\n //initialize startupHelper\n StartupHelper startupHelper = new StartupHelper(null, force_prompt,\n workspace_info, username, password, show_login, show_Workspace);\n\n while (true)\n {\n startupHelper.setShow_Login(show_login);\n startupHelper.setShow_Workspace(show_Workspace);\n\n if (show_Workspace || show_login)\n {\n if (! startupHelper.openStartupDialog())\n return false; // canceled\n\n //get user name and password from startup dialog\n if(show_login) {\n username = startupHelper.getUserName();\n password = startupHelper.getPassword();\n }\n }\n // In case of errors, we will have to ask the workspace,\n // but don't bother to ask user name and password again.\n show_Workspace = true;\n show_login = false;\n\n try\n {\n // the operation will fail if the url is not a valid\n // instance data area, so other checking is unneeded\n URL workspaceUrl = new URL(\"file:\" + workspace_info.getSelectedWorkspace()); //$NON-NLS-1$\n if (instanceLoc.set(workspaceUrl, true)) // set & lock\n {\n workspace_info.writePersistedData();\n parameters.put(WORKSPACE, workspaceUrl);\n return true;\n }\n }\n catch (Exception ex)\n {\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_GenericErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_GenericError + ex.getMessage());\n return false;\n }\n // by this point it has been determined that the workspace is\n // already in use -- force the user to choose again\n show_login = false;\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_InUseErrorTitle,\n NLS.bind(org.csstudio.platform.workspace.Messages.Workspace_InUseError,\n workspace_info.getSelectedWorkspace()));\n }\n }", "@Test\n void testNonEmptyConstructor() {\n assertNotNull(isLockedRequest2);\n assertTrue(isLockedRequest2.getToken().equals(token)\n && isLockedRequest2.getId() == id);\n }", "@Then(\"^Validate customer id is created$\")\r\n\tpublic void validate_customer_id_is_created() throws Throwable {\n\t\tAssert.assertTrue(response.jsonPath().get(\"id\").equals(new PropertFileReader().getTempData(\"custId\")));\r\n\t\t\r\n\t}", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExistsMockVersion() {\n assertThrows(NotFoundException.class, () -> projectServiceMock.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Override\r\n\tpublic void testInvalidId() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testInvalidId();\r\n\t\t}\r\n\t}", "public Workspace build() {\n if (properties == null) {\n properties = new HashMap<>();\n }\n if (workspaceId == null || workspaceStage == null) {\n throw new MissingRequiredFieldsException(\"Workspace requires id and stage\");\n }\n return new Workspace(\n workspaceId,\n displayName,\n description,\n spendProfileId,\n properties,\n workspaceStage,\n gcpCloudContext);\n }", "@Test\n public void given_devEnvironmentWithPathVariable_when_callEndPointUpdateStudent_then_returnStatus200() throws Exception {\n\n Mockito.when(studentRepo.findById(ArgumentMatchers.anyLong()))\n .thenReturn(Optional.of(STUDENT));\n\n RequestBuilder request = MockMvcRequestBuilders\n .delete(\"/students/1\")\n .accept(MediaType.APPLICATION_JSON_VALUE)\n .contentType(MediaType.APPLICATION_JSON_VALUE);\n\n mockMvc.perform(request)\n .andExpect(status().isOk())\n .andDo(MockMvcResultHandlers.print())\n .andReturn();\n\n }", "@Test\r\n\tpublic void Test_ID() {\r\n\t\tResponse resp = given().\r\n\t\t\t\tparam(\"nasa_id\", \"PIA12235\").\r\n\t\t\t\twhen().\r\n\t\t\t\tget(endpoint);\r\n\t\t\t\tSystem.out.println(resp.getStatusCode());\r\n\t\t\t\tAssert.assertEquals(resp.getStatusCode(), 200);\r\n\t}", "@Test(expected = CopilotServiceInitializationException.class)\n public void testCheckNullForInjectedValueFailure() {\n Helper.checkNullForInjectedValue(null, \"obj\");\n }", "@Test\n public void commandIdTest() {\n // TODO: test commandId\n }", "static void checkId(final long id, final String paramName) {\r\n if (id <= 0) {\r\n throw new IllegalArgumentException(\"The '\" + paramName\r\n + \"' should be above 0.\");\r\n }\r\n }", "public Long getStagingWorkspaceId() {\n return stagingWorkspaceId;\n }", "public void requirePatientId() {\n hasPatientIdParam = true;\n }", "@Override\n\tpublic boolean hasParameter(String id) {\n\t\treturn false;\n\t}", "@Test\n public void cityNotNull()\n {\n assertNotNull(_city);\n }", "@When(\"^I enter valid credentia ls$\")\n public void iEnterValidCredentials() throws Throwable {\n throw new PendingException();\n }", "private void checkLegal(int glId)\n {\n if (glId == GL2.GL_POLYGON_MODE || glId == GL2.GL_COLOR_MATERIAL_PARAMETER)\n return;\n if (GLState.TEXTURE_GROUP <= glId && glId < GLState.TEXTURE_GROUP + GLState.TEXTURE_GROUP_SIZE)\n return;\n throw new IllegalArgumentException(\"GLStateComponentII: unknown glId: \" + glId);\n }", "@Test\n\tpublic void testValidateSurveyIds() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyIds(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\tfor(String simpleValidList : ParameterSets.getSimpleValidLists()) {\n\t\t\t\ttry {\n\t\t\t\t\tSurveyResponseValidators.validateSurveyIds(simpleValidList);\n\t\t\t\t}\n\t\t\t\tcatch(ValidationException e) {\n\t\t\t\t\tfail(\"A valid list failed validation.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test\n public void putTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.putTemplateProgrammerProject(request);\n\n // TODO: test validations\n }", "public void validate(String id, String pw) throws RemoteException;", "public void testCheckinProjectFlags() {\n String[] sTestCmdLine = { \"soscmd\", \"-command\", \"CheckInProject\",\n \"-recursive\", \"-server\", SOS_SERVER_PATH, \"-name\", SOS_USERNAME,\n \"-password\", \"\", \"-database\", VSS_SERVER_PATH , \"-project\",\n \"$\"+VSS_PROJECT_PATH, \"\", \"\", \"-soshome\", SOS_HOME, \"-workdir\",\n project.getBaseDir().getAbsolutePath(), \"-log\", SRC_COMMENT, };\n\n // Set up a SOSCheckin task\n sosCheckin.setProject(project);\n sosCheckin.setVssServerPath(VSS_SERVER_PATH);\n sosCheckin.setSosServerPath(SOS_SERVER_PATH);\n sosCheckin.setProjectPath(VSS_PROJECT_PATH);\n sosCheckin.setComment(SRC_COMMENT);\n sosCheckin.setUsername(SOS_USERNAME);\n sosCheckin.setSosHome(SOS_HOME);\n sosCheckin.setNoCache(true);\n sosCheckin.setNoCompress(false);\n sosCheckin.setVerbose(false);\n sosCheckin.setRecursive(true);\n\n commandline = sosCheckin.buildCmdLine();\n String[] sGeneratedCmdLine = commandline.getCommandline();\n\n int i = 0;\n while (i < sTestCmdLine.length) {\n try {\n assertEquals(\"CheckInProject arg # \" + String.valueOf(i),\n sTestCmdLine[i],\n sGeneratedCmdLine[i]);\n i++;\n } catch (ArrayIndexOutOfBoundsException aioob) {\n fail(\"CheckInProject missing arg\");\n }\n\n }\n if (sGeneratedCmdLine.length > sTestCmdLine.length) {\n // We have extra elements\n fail(\"CheckInProject extra args\");\n }\n }", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {listProjects} integration test with mandatory parameters.\")\n public void testListProjectsWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:listProjects\");\n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_listProjects_mandatory.json\");\n \n connectorProperties.setProperty(\"projectId\", esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0)\n .getString(\"id\"));\n \n final String apiEndPoint = apiRequestUrl + \"/projects\";\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"page\"), apiRestResponse.getBody().getString(\"page\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"pageSize\"), apiRestResponse.getBody().getString(\n \"pageSize\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0).getString(\"id\"),\n apiRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0).getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"totalItems\"), apiRestResponse.getBody().getString(\n \"totalItems\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONArray(\"items\").length(), apiRestResponse.getBody()\n .getJSONArray(\"items\").length());\n \n }" ]
[ "0.65769523", "0.63816416", "0.6199737", "0.59761405", "0.59368694", "0.5839368", "0.5567419", "0.54488504", "0.527746", "0.52685773", "0.5195171", "0.5161648", "0.51206905", "0.5089432", "0.50643146", "0.5059629", "0.5057854", "0.50335026", "0.4998055", "0.49727345", "0.4972389", "0.4957315", "0.49191728", "0.49184918", "0.49053478", "0.4905189", "0.48878652", "0.4878646", "0.48585176", "0.4847079", "0.4847079", "0.48303923", "0.48077723", "0.48058602", "0.48047128", "0.47996646", "0.47980225", "0.476472", "0.47630438", "0.47508025", "0.475032", "0.47500163", "0.47444096", "0.47344425", "0.47063488", "0.47047442", "0.47029513", "0.46958926", "0.46956486", "0.46882787", "0.4683544", "0.46657544", "0.4664292", "0.46636048", "0.46620858", "0.46541545", "0.4652064", "0.46444118", "0.4639281", "0.46384007", "0.46342343", "0.463301", "0.46284482", "0.462082", "0.46169397", "0.4613154", "0.46030325", "0.4596472", "0.4596067", "0.45866662", "0.45730188", "0.45692503", "0.456808", "0.45570433", "0.45542634", "0.4546817", "0.45377353", "0.45351306", "0.45342433", "0.4521675", "0.45205203", "0.451869", "0.4512759", "0.45110384", "0.45107248", "0.45095125", "0.45081636", "0.4507399", "0.45012647", "0.4495072", "0.4487303", "0.44853508", "0.44851595", "0.44843093", "0.44791296", "0.4477723", "0.44771564", "0.44756317", "0.4470055", "0.44677323", "0.44676253" ]
0.0
-1
Deactivate model Deactivate model
public ModelApiResponse deactivateModel(String workspaceId, String modelId) throws ApiException { ApiResponse<ModelApiResponse> localVarResp = deactivateModelWithHttpInfo(workspaceId, modelId); return localVarResp.getData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deactivate();", "public void deactivate() {\n\t\t// TODO Auto-generated method stub\n\t}", "public void deactivate() \r\n\t\t{\r\n\t\tif (isActive()) \r\n\t\t\t{\r\n\t\t\tsuper.deactivate();\r\n\t\t\t((IModelElement) getModel()).removePropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\tpublic void deactivate() {\n\t\t\r\n\t}", "@Override\n public void deactivate() {\n \n }", "@Override\n\tpublic void deactivate() {\n\t\t\n\t}", "public void deactivate() {\r\n if (isActive()) {\r\n super.deactivate();\r\n ((AModelElement) getModel()).removePropertyChangeListener(this);\r\n }\r\n }", "public void deactivate() {\n this.active = false;\n }", "public void deactivate() {\n\t\tentity.deactivateInstance(this);\n\t}", "void deactivate();", "@Override\n\tpublic void deactivate() {\n\t}", "public void deactivate() {\n\t\tactive_status = false;\n\t}", "public abstract void deactivate();", "public void deactivate(){\n state = State.invisible;\n active = false;\n }", "void deactivate() {\n\t\tanimalTemplate = null;\n\t\tscope=null;\n\t\ttriggerOnID=false;\n\t\tstate = null;\n\t\tlog.debug(bundleMarker, \"deactivating...\");\n\t}", "public void deactivate() {\n\tif (canBeActive()) {\n\t\tmActive = false;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be deactivated\");\n\t}\n}", "public void deactivate()\n\t{\n\t\t_active = false;\n\t\t_leader.setObjectHandler(null);\n\t}", "protected void unbindModel() {\n\n //Unbind the vao and vbo\n glDisableVertexAttribArray(0);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n }", "public void DeActivate() {\n\t\t\n\t}", "public void deactivate() {\n log.info(\"Stopped\");\n }", "protected void deactivate(ComponentContext context) {\n TemplateModel.INSTANCE.loaders().unregisterLoader(TemplateLangModelUtility.INSTANCE, \n ProgressObserver.NO_OBSERVER);\n // this is not the official way of using DS but the official way is instable\n ExpressionParserRegistry.setExpressionParser(TemplateLangExecution.LANGUAGE, null);\n ModelInitializer.unregister(this);\n }", "@Override\n\tpublic void onDeactivate() {\n\t}", "void deactivate(ConditionContext context);", "@Override\n public void onDeactivate() {\n }", "void deactivate(){\n \tthis.config.clear();\n\t\tlog.debug(bundleMarker,\"deactivating...\");\n\t}", "public void deActivated() \r\n\t{\r\n\t\t\r\n\t}", "public void entityDeactivating() {}", "public void stopObserving() {\n if (myModel.contains(modelObserver)) {\n myModel.deleteObserver(modelObserver);\n }\n }", "void deactivate() throws ResourceActivatorException, InterruptedException, ExecutionException;", "@Override\n\tpublic void Deactivate(List<IBlurb> blurbs) {\n\n\t}", "private void activationOFF() {\n switch (afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.desactivatedContents();\n break;\n case AFFICHE_USER :\n ecranUser.desactivatedContents();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.desactivatedContents();\n break;\n default: break;\n }\n }", "public void deactivate(int which) {\n if (isActive[which]) {\n isActive[which] = false;\n numActive--;\n } // end if\n }", "@Override\r\n\tpublic void deactivate() {\n\t\tsuper.deactivate();\r\n\t\tthis.getArtFrag().removePropertyChangeListener(this);\r\n\t}", "@Override\n\tpublic void DeActiveAccount(String email) {\n\n\t\tUserModel userModel = findByEmail(email);\n\t\tuserModel.setActiveSwitch(\"N\");\n\t\tsaveDtls(userModel);\n\n\t}", "@Override\n public void modelDisconnected(ModelEvent event)\n {\n _model.removeListener(this);\n }", "@Override\n\tpublic void deactivate() {\n\t\tlocationManager.removeUpdates(this);\n\t\tmContext = null;\n\t\tlocationManager = null;\n\t\tlocationRequest = null;\n\t\tmChangedListener = null;\n\t}", "public void deactivate() {\n\t\tlog.info(\"Deactivating simple JNDI environment\");\n\t\tactivated = null;\n\t}", "private void deActivateView() {\n if (!isActive()) {\n return;\n }\n setEnabled(false);\n if (editorListener != null) {\n ISelectionService service = getSite().getWorkbenchWindow()\n .getSelectionService();\n if (service != null) {\n service.removePostSelectionListener(editorListener);\n }\n FileBuffers.getTextFileBufferManager().removeFileBufferListener(\n editorListener);\n\n }\n if (textViewer != null && textViewer.getTextWidget() != null\n && !textViewer.getTextWidget().isDisposed()) {\n IDocument document = new Document(\"\");\n textViewer.setDocument(document);\n }\n if (tableControl != null && !tableControl.isDisposed()) {\n setVerifyTableItems(null);\n }\n /*\n * if(stackControl != null && !stackControl.isDisposed()){\n * stackControl.setText(\"\"); } if(lvtControl != null && !lvtControl.isDisposed()){\n * lvtControl.setText(\"\"); }\n */\n if (stackTable != null && !stackTable.isDisposed()) {\n stackTable.removeAll();\n }\n if (lvtTable != null && !lvtTable.isDisposed()) {\n lvtTable.removeAll();\n }\n if (statusControl != null && !statusControl.isDisposed()) {\n updateStatus(null, -1, -1);\n }\n currentSelection = null;\n lastDecompiledResult = null;\n javaEditor = null;\n setJavaInput(null);\n lastChildElement = null;\n setBufferIsDirty(false);\n isActive = false;\n }", "@Deactivate\n protected void deactivate() {\n activated = false;\n logger.info(\"deactivate: deactivated slingId: {}, this: {}\", slingId, this);\n if (periodicPingJob != null) {\n periodicPingJob.stop();\n periodicPingJob = null;\n }\n }", "@Override\n public void deactivate() {\n mListener = null;\n if (mLocationClient != null) {\n mLocationClient.stopLocation();\n mLocationClient.onDestroy();\n }\n mLocationClient = null;\n mLocationOption = null;\n }", "private void unbindTexturedModel() {\n\t\tGL20.glDisableVertexAttribArray(0);\n\t\tGL20.glDisableVertexAttribArray(1);\n\t\tGL20.glDisableVertexAttribArray(2);\n\t\t\t\t\n\t\t// Then also have to unbind the VAO, instead of putting a ID in, we just put in 0\n\t\tGL30.glBindVertexArray(0);\n\t}", "public void deactivate() {\n serviceTracker.close();\n listenerSR.unregister();\n }", "public void deActivateButton(){\n\t\tMainActivity.resetXY();\r\n\t}", "@Deactivate\n protected void deactivate(ComponentContext context) {\n httpService.unregister(\"/s-ramp\");\n log.debug(\"******* Governance S-Ramp bundle is deactivated ******* \");\n }", "public void deactivate() {\n\t\tcameraNXT.enableTracking(false);\n\t}", "void setVeilleObjetDeactivated();", "public void desactivatePlayer() {\n\t\tthis.setEnabled(false);\n\t}", "public void disable(){\r\n\t\tthis.activ = false;\r\n\t}", "public final void deactivateAccount() {\n\t\tthis.setIsAccountLocked(true);\n\t}", "@Override\n\tprotected void deActivateBoard() {\n\t\tsuper.deActivateBoard();\n\t}", "@Override\n\tprotected void deActivateBoard() {\n\t\tsuper.deActivateBoard();\n\t}", "public void onDeactivation() { }", "@Override\r\n public void deactivate() {\n locationManager.removeUpdates(this);\r\n mContext = null;\r\n locationManager = null;\r\n locationRequest = null;\r\n mChangedListener = null;\r\n }", "void onDeactivate() {\n\t\t/* Hide the FakeToolTip that could be open in this moment */\n\t\tfakeToolTip.hide();\n\t}", "protected void desactiveBoat() {\n if (activeBoat!=null) {\n activeBoat.setActive(false);\n activeBoat.getBoatRectangle().setMouseTransparent(false);\n activeBoat.getBoatRectangle().setFill(activeBoat.getDisactiveColor());\n activeBoat=null;\n closeMsg();\n } \n }", "@Override\n\tpublic void onDeactivated() {\n\t\t\n\t}", "public void entityDeactivated() {\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger\r\n \t\t\t.debug(\"entityDeactivated(): ending all activities\");\r\n \t\t}\r\n \t\t\r\n \t\tfor(ActivityHandle handle: activities.keySet()) {\r\n \t\t\ttry {\r\n \t\t\t\tsleeEndpoint.activityEnding(handle);\r\n \t\t\t} catch (UnrecognizedActivityException uae) {\r\n \t\t\t\tlogger.error(\"failed to indicate activity has ended\",\r\n \t\t\t\t\tuae);\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger.debug(\"entityDeactivated(): cleaning naming context\");\r\n \t\t}\r\n \t\ttry {\r\n \t\t\tcleanNamingContextBindings();\r\n \t\t} catch (NamingException e) {\r\n \t\t\tlogger.error(\"failed to clean naming context\",e);\r\n \t\t}\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger\r\n \t\t\t.debug(\"entityDeactivated() completed\");\r\n \t\t}\r\n \t}", "public void deactivate () {\n\t\tif (_timer!=null) {\n\t\t\t_timer.cancel ();\n\t\t\t_timer.purge ();\n\t\t\t_timer = null;\n\t\t}\n\t}", "public void deactivateBreakpointView() {\n \t\tif (this.breakpointView.getActive()) {\n \t\t\tthis.breakpointView.getAddButton().removeSelectionListener(this);\n \t\t\tthis.breakpointView.setActive(false);\n \t\t}\n \t}", "public void modelUntangle()\n {\n\tif (manim==null) return;\n\n\tmodelStop();\n\tmanim.rewind();\n\tmanim.generations().unTangle();\n\tmanim.scale(width,height);\n\tclearToBack();\n\tmodelFlush();\n }", "public void closeModel() {\n \t\tif (checkForSave(\"<html>Save changes before closing?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tresetMouseState();\r\n \r\n \t\t// clear undo history\r\n \t\tgraph.getModel().removeUndoableEditListener(undoProxy);\r\n \t\tundoProxy.discardAllEdits();\r\n \t\t// end\r\n \t\t// graph.setModel(null); //wreaks quite a bit of havoc\r\n \t\tmainWindow.removeGraph();\r\n \t\tgraph = null;\r\n \t\tcloseModel.setEnabled(false);\r\n \t\tsaveModel.setEnabled(false);\r\n \t\teditMeasures.setEnabled(false);\r\n \t\tsaveModelAs.setEnabled(false);\r\n \t\tcomponentBar.clearButtonGroupSelection(0);\r\n \t\tcomponentBar.enableButtonGroup(0, false);\r\n \t\tsetConnect.setEnabled(false);\r\n \t\tactionCopy.setEnabled(false);\r\n \t\tactionCut.setEnabled(false);\r\n \t\tactionPaste.setEnabled(false);\r\n \t\tactionDelete.setEnabled(false);\r\n \t\t// FG\r\n \t\tactionSetRight.setEnabled(false);\r\n \t\tactionRotate.setEnabled(false);\r\n \r\n \t\tsetSelect.setEnabled(false);\r\n \t\tsimulate.setEnabled(false);\r\n \t\tsolveAnalitic.setEnabled(false);\r\n \t\tsolveApp.setEnabled(false);\r\n \t\teditUserClasses.setEnabled(false);\r\n \t\teditMeasures.setEnabled(false);\r\n \t\tswitchToExactSolver.setEnabled(false);\r\n \t\t// Disables the botton to start simualtion\r\n \t\tsimulate.setEnabled(false);\r\n \t\teditSimParams.setEnabled(false);\r\n \t\teditPAParams.setEnabled(false);\r\n \t\ttakeScreenShot.setEnabled(false);\r\n \t\t// Disables show results button and measure definition\r\n \t\tshowResults.setSelected(false);\r\n \t\tshowResults.setEnabled(false);\r\n \t\tif (resultsWindow != null) {\r\n \t\t\tresultsWindow.dispose();\r\n \t\t}\r\n \t\tresultsWindow = null;\r\n \t\topenedArchive = null;\r\n \t\tmodel = new JMODELModel();\r\n \t\tmainWindow.updateTitle(null);\r\n \t\t// Free same resources by forcing a garbage collection\r\n \t\tSystem.gc();\r\n \t}", "public void deactivate(Person user) \r\n\t{\r\n\t\tdb.user_editUser(user.getUsername(), user.getFirstName(), user.getLastName(), \r\n\t\t\t\t\t\t user.getPassword(), user.getType(), 'N');\r\n\t}", "public void stop ()\n\t{\n\t\tif (core.hasLock (frame))\n\t\t{\n\t\t\tif (model != null) model.stop();\n\t\t\tstop = true;\n\t\t}\n\t}", "public void close()\r\n {\r\n myModel.deleteObserver(this);\r\n }", "@Deactivate\n\tprotected synchronized void deactivate(final ComponentContext componentContext) {\n\t\tLOGGER.info(\"Deactivating Caching Component...\");\n\t\tthis.m_cache.cleanUp();\n\t\tthis.m_cache = null;\n\t\tLOGGER.info(\"Deactivating Caching Component...Done\");\n\t}", "public void deactivatePowerup()\r\n\t{\r\n\t\thasPowerup = false;\r\n\t\tcurrentPowerup = null;\r\n\t}", "@SuppressGaldrWarnings( \"Galdr:ProtectedLifecycleMethod\" )\n @OnDeactivate\n protected void onDeactivate()\n {\n }", "public void activate(){\n active = true;\n state = State.cleaving;\n }", "@Override\n public void onDeactivated(int i) {\n }", "public void popModelMatrix()\r\n\t{\r\n\t\tgl.glMatrixMode(GL_MODELVIEW);\r\n\t\tgl.glPopMatrix();\r\n\t}", "public void deactivate() throws JBIException {\n count--;\n if(count != 0)\n return;\n _ode.getContext().deactivateEndpoint(_internal);\n __log.debug(\"Dectivated endpoint \" + _endpoint);\n }", "public void switchModel()\n {\n \tactiveModel++;\n \tif (activeModel > 1)\n \t{\n \t\tactiveModel = 0;\n \t}\n }", "@Deactivate\n protected void stop() throws Exception {\n EventSimulatorMap.getInstance().stopAllActiveSimulations();\n log.info(\"Simulator service file component is deactivated\");\n }", "@Deactivate\n public void deactivate()\n {\n m_PluginFactoryTracker.close();\n if (m_RegistryComponent != null)\n {\n m_RegistryComponent.dispose();\n }\n }", "@SuppressWarnings(\"unused\")\n @Deactivate\n private void deactivate() {\n\n this.bundleContext.removeServiceListener(this);\n\n final ServiceReference[] serviceReferences;\n synchronized (this.proxies) {\n serviceReferences = this.proxies.keySet().toArray(\n new ServiceReference[this.proxies.size()]);\n }\n\n for (ServiceReference serviceReference : serviceReferences) {\n unregister(serviceReference);\n }\n\n this.bundleContext = null;\n }", "public void stopTrainingMode() {\n\t\t\r\n\t}", "public boolean deactivate() {\n this._factory.shutdown();\n return true;\n }", "public void deactivate() {\n\t\tSystem.out.println(\"WordReader.deactivate\");\n\t}", "void unsetGradeModelRefs();", "@DeleteMapping(value = { \"/accounts/{accountId}\" })\n\tpublic void deleteAccountActiveState(ModelMap model, @PathVariable(\"accountId\") String accountId,HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\n\t\tlog.info(CLASS_NAME + \":deactivate request has been requested for gerrit user\");\n\t\tRestTemplate restTemplate = CustomRestTemplate.restTemplate(gerritUrl, 443, userName, password);\n\t\tResponseEntity<String> gerritresponse = restTemplate.exchange(gerritUrl + \"/a/accounts/\" + accountId + \"/active\",\n\t\t\t\tHttpMethod.DELETE, null, String.class);\n\t\tHttpSession session = request.getSession(false);\n\t\tUserObject user = (UserObject) session.getAttribute(Constant.SESSION.USER);\n\t\tlog.debug(CLASS_NAME + \":deactivate user has been requested for gerritt user having account id\"+accountId);\n\t\tlog.debug(gerritresponse.getBody());\n\t\t\n\t\tAuditEvent event = new AuditEvent();\n\t\tevent.setAction(EventAction.GERRIT_USER_DEACTIVATED);\n\t\tevent.setFromUser(user.getName());\n\t\tevent.setUserId(user.getId().toString());\n\t\tevent.setDescription(user.getName() + \" deactivated gerrit user - \"+ accountId);\n\t\thistoryService.logEvent(event);\n\n\t}", "public void removeModel(SimpleModel model) {\n removeModel(model.getFullName());\n }", "public ActionUndo(GraphModel model) {\n super(\"Undo\");\n this.model = model;\n //putValue(Action.MNEMONIC_KEY, KeyEvent.VK_E);\n setEnabled(false);\n model.addObserver(this);\n }", "void updateModel() {\n updateModel(false);\n }", "public void desactivarRecursos() {\n\r\n\t}", "private void stopDeactivate(final Resource resource) throws PersistenceException {\n this.stop(resource, STATE_STOPPED_DEACTIVATED);\n }", "public abstract void deactivation(FollowMeManager manager);", "public void deactivateAbility(LevelManager lm){\n\n int prevDamage = lm.player.getDamage();\n int newDamage = prevDamage-12;\n lm.player.setDamage(newDamage);\n }", "public void destroy() {\n mTabModelSelectorTabObserver.destroy();\n TabModelFilter tabModelFilter =\n mTabModelSelector.getTabModelFilterProvider().getTabModelFilter(false);\n if (tabModelFilter != null) {\n tabModelFilter.removeObserver(mTabModelObserver);\n }\n mTabModelSelector.removeObserver(mTabModelSelectorObserver);\n }", "void deactivate(URI uri) throws WebApplicationActivationException;", "public void deactivate(String deploymentId) {\n\t\t\n\t}", "void onInvalidatedModel();", "@Override\n public void exit() {\n model.exit();\n }", "@Override\n\tpublic void onDeactivated(MainFrame main, ActionContextController nextContext) {\n\t}", "@Override\n\t@Deactivate\n\tprotected void deactivate(final ComponentContext context) {\n\t\tLOGGER.debug(\"Deactivating MongoDB Component...\");\n\t\tLOGGER.info(\"Releasing CloudApplicationClient for {}...\", APP_ID);\n\n\t\tsuper.deactivate(context);\n\n\t\tLOGGER.debug(\"Deactivating MongoDB Component... Done.\");\n\t}", "public void deactivateUser(User user) {\n activeUsers.remove(user.getUsername());\n }", "@Override\n public void onDeactivate() {\n booksLeft = 0;\n pages = new ListTag();\n }", "public void resetUpperface() {\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setRaiseBrow(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setFurrowBrow(0);\n\t}", "protected void exitEditMode(){\n editName.setEnabled(false);\n editEmail.setEnabled(false);\n saveButton.setVisibility(View.INVISIBLE);\n }", "@RequestMapping(value = \"/accountUnblock\", method = RequestMethod.GET)\n\tpublic String accountUnblock(Model model) {\n\t\tlogger.info(\"In account unblock get method\");\n\n\t\tAccountBlockRequestData acctUnblockRequest = new AccountBlockRequestData();\n\n\t\tmodel.addAttribute(\"request\", acctUnblockRequest);\n\n\t\treturn \"account_unblock\";\n\t}", "boolean getDeactivated();", "@Override\n\tprotected void deactivateFigure() {\n\t\tthis.layer.remove(getFigure());\n\t\tgetConnectionFigure().setSourceAnchor(null);\n\t\tgetConnectionFigure().setTargetAnchor(null);\n\t}" ]
[ "0.74889237", "0.7408495", "0.72584087", "0.72538906", "0.7226877", "0.7221228", "0.71988004", "0.7194278", "0.71805435", "0.71737957", "0.716515", "0.7086632", "0.7035344", "0.69768625", "0.6911112", "0.6808573", "0.67987394", "0.679558", "0.67720324", "0.67229706", "0.65804726", "0.6470528", "0.6453174", "0.64123905", "0.641181", "0.63920105", "0.6379534", "0.6277703", "0.62392855", "0.6220105", "0.61480147", "0.61367357", "0.6130173", "0.61039525", "0.60899395", "0.6076057", "0.6009482", "0.59716344", "0.5970567", "0.59682053", "0.5939723", "0.592023", "0.5912277", "0.59039706", "0.5885298", "0.5884104", "0.58293724", "0.580249", "0.5797438", "0.57827026", "0.57827026", "0.57821983", "0.57772267", "0.5732863", "0.57320493", "0.5725868", "0.5697123", "0.5649755", "0.56437236", "0.5617725", "0.56057644", "0.56045425", "0.55974597", "0.5579861", "0.5559845", "0.55456185", "0.5533775", "0.5504684", "0.55009645", "0.5495752", "0.5493569", "0.5484434", "0.5479589", "0.547317", "0.5467653", "0.5466926", "0.54620254", "0.5459782", "0.5432675", "0.5422291", "0.5412408", "0.5359688", "0.535419", "0.5343168", "0.53418434", "0.5340848", "0.53314006", "0.5319477", "0.5310643", "0.53075916", "0.5293407", "0.5290244", "0.5287175", "0.52779764", "0.5277909", "0.5276789", "0.52730066", "0.5272822", "0.52660465", "0.5254937", "0.52529526" ]
0.0
-1
Deactivate model Deactivate model
public ApiResponse<ModelApiResponse> deactivateModelWithHttpInfo(String workspaceId, String modelId) throws ApiException { okhttp3.Call localVarCall = deactivateModelValidateBeforeCall(workspaceId, modelId, null); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deactivate();", "public void deactivate() {\n\t\t// TODO Auto-generated method stub\n\t}", "public void deactivate() \r\n\t\t{\r\n\t\tif (isActive()) \r\n\t\t\t{\r\n\t\t\tsuper.deactivate();\r\n\t\t\t((IModelElement) getModel()).removePropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\tpublic void deactivate() {\n\t\t\r\n\t}", "@Override\n public void deactivate() {\n \n }", "@Override\n\tpublic void deactivate() {\n\t\t\n\t}", "public void deactivate() {\r\n if (isActive()) {\r\n super.deactivate();\r\n ((AModelElement) getModel()).removePropertyChangeListener(this);\r\n }\r\n }", "public void deactivate() {\n this.active = false;\n }", "public void deactivate() {\n\t\tentity.deactivateInstance(this);\n\t}", "void deactivate();", "@Override\n\tpublic void deactivate() {\n\t}", "public void deactivate() {\n\t\tactive_status = false;\n\t}", "public abstract void deactivate();", "public void deactivate(){\n state = State.invisible;\n active = false;\n }", "void deactivate() {\n\t\tanimalTemplate = null;\n\t\tscope=null;\n\t\ttriggerOnID=false;\n\t\tstate = null;\n\t\tlog.debug(bundleMarker, \"deactivating...\");\n\t}", "public void deactivate() {\n\tif (canBeActive()) {\n\t\tmActive = false;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be deactivated\");\n\t}\n}", "public void deactivate()\n\t{\n\t\t_active = false;\n\t\t_leader.setObjectHandler(null);\n\t}", "protected void unbindModel() {\n\n //Unbind the vao and vbo\n glDisableVertexAttribArray(0);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n }", "public void DeActivate() {\n\t\t\n\t}", "public void deactivate() {\n log.info(\"Stopped\");\n }", "protected void deactivate(ComponentContext context) {\n TemplateModel.INSTANCE.loaders().unregisterLoader(TemplateLangModelUtility.INSTANCE, \n ProgressObserver.NO_OBSERVER);\n // this is not the official way of using DS but the official way is instable\n ExpressionParserRegistry.setExpressionParser(TemplateLangExecution.LANGUAGE, null);\n ModelInitializer.unregister(this);\n }", "@Override\n\tpublic void onDeactivate() {\n\t}", "void deactivate(ConditionContext context);", "@Override\n public void onDeactivate() {\n }", "void deactivate(){\n \tthis.config.clear();\n\t\tlog.debug(bundleMarker,\"deactivating...\");\n\t}", "public void deActivated() \r\n\t{\r\n\t\t\r\n\t}", "public void entityDeactivating() {}", "public void stopObserving() {\n if (myModel.contains(modelObserver)) {\n myModel.deleteObserver(modelObserver);\n }\n }", "void deactivate() throws ResourceActivatorException, InterruptedException, ExecutionException;", "@Override\n\tpublic void Deactivate(List<IBlurb> blurbs) {\n\n\t}", "private void activationOFF() {\n switch (afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.desactivatedContents();\n break;\n case AFFICHE_USER :\n ecranUser.desactivatedContents();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.desactivatedContents();\n break;\n default: break;\n }\n }", "public void deactivate(int which) {\n if (isActive[which]) {\n isActive[which] = false;\n numActive--;\n } // end if\n }", "@Override\r\n\tpublic void deactivate() {\n\t\tsuper.deactivate();\r\n\t\tthis.getArtFrag().removePropertyChangeListener(this);\r\n\t}", "@Override\n\tpublic void DeActiveAccount(String email) {\n\n\t\tUserModel userModel = findByEmail(email);\n\t\tuserModel.setActiveSwitch(\"N\");\n\t\tsaveDtls(userModel);\n\n\t}", "@Override\n public void modelDisconnected(ModelEvent event)\n {\n _model.removeListener(this);\n }", "@Override\n\tpublic void deactivate() {\n\t\tlocationManager.removeUpdates(this);\n\t\tmContext = null;\n\t\tlocationManager = null;\n\t\tlocationRequest = null;\n\t\tmChangedListener = null;\n\t}", "public void deactivate() {\n\t\tlog.info(\"Deactivating simple JNDI environment\");\n\t\tactivated = null;\n\t}", "private void deActivateView() {\n if (!isActive()) {\n return;\n }\n setEnabled(false);\n if (editorListener != null) {\n ISelectionService service = getSite().getWorkbenchWindow()\n .getSelectionService();\n if (service != null) {\n service.removePostSelectionListener(editorListener);\n }\n FileBuffers.getTextFileBufferManager().removeFileBufferListener(\n editorListener);\n\n }\n if (textViewer != null && textViewer.getTextWidget() != null\n && !textViewer.getTextWidget().isDisposed()) {\n IDocument document = new Document(\"\");\n textViewer.setDocument(document);\n }\n if (tableControl != null && !tableControl.isDisposed()) {\n setVerifyTableItems(null);\n }\n /*\n * if(stackControl != null && !stackControl.isDisposed()){\n * stackControl.setText(\"\"); } if(lvtControl != null && !lvtControl.isDisposed()){\n * lvtControl.setText(\"\"); }\n */\n if (stackTable != null && !stackTable.isDisposed()) {\n stackTable.removeAll();\n }\n if (lvtTable != null && !lvtTable.isDisposed()) {\n lvtTable.removeAll();\n }\n if (statusControl != null && !statusControl.isDisposed()) {\n updateStatus(null, -1, -1);\n }\n currentSelection = null;\n lastDecompiledResult = null;\n javaEditor = null;\n setJavaInput(null);\n lastChildElement = null;\n setBufferIsDirty(false);\n isActive = false;\n }", "@Deactivate\n protected void deactivate() {\n activated = false;\n logger.info(\"deactivate: deactivated slingId: {}, this: {}\", slingId, this);\n if (periodicPingJob != null) {\n periodicPingJob.stop();\n periodicPingJob = null;\n }\n }", "@Override\n public void deactivate() {\n mListener = null;\n if (mLocationClient != null) {\n mLocationClient.stopLocation();\n mLocationClient.onDestroy();\n }\n mLocationClient = null;\n mLocationOption = null;\n }", "private void unbindTexturedModel() {\n\t\tGL20.glDisableVertexAttribArray(0);\n\t\tGL20.glDisableVertexAttribArray(1);\n\t\tGL20.glDisableVertexAttribArray(2);\n\t\t\t\t\n\t\t// Then also have to unbind the VAO, instead of putting a ID in, we just put in 0\n\t\tGL30.glBindVertexArray(0);\n\t}", "public void deactivate() {\n serviceTracker.close();\n listenerSR.unregister();\n }", "public void deActivateButton(){\n\t\tMainActivity.resetXY();\r\n\t}", "@Deactivate\n protected void deactivate(ComponentContext context) {\n httpService.unregister(\"/s-ramp\");\n log.debug(\"******* Governance S-Ramp bundle is deactivated ******* \");\n }", "void setVeilleObjetDeactivated();", "public void deactivate() {\n\t\tcameraNXT.enableTracking(false);\n\t}", "public void desactivatePlayer() {\n\t\tthis.setEnabled(false);\n\t}", "public void disable(){\r\n\t\tthis.activ = false;\r\n\t}", "public final void deactivateAccount() {\n\t\tthis.setIsAccountLocked(true);\n\t}", "@Override\n\tprotected void deActivateBoard() {\n\t\tsuper.deActivateBoard();\n\t}", "@Override\n\tprotected void deActivateBoard() {\n\t\tsuper.deActivateBoard();\n\t}", "public void onDeactivation() { }", "@Override\r\n public void deactivate() {\n locationManager.removeUpdates(this);\r\n mContext = null;\r\n locationManager = null;\r\n locationRequest = null;\r\n mChangedListener = null;\r\n }", "void onDeactivate() {\n\t\t/* Hide the FakeToolTip that could be open in this moment */\n\t\tfakeToolTip.hide();\n\t}", "protected void desactiveBoat() {\n if (activeBoat!=null) {\n activeBoat.setActive(false);\n activeBoat.getBoatRectangle().setMouseTransparent(false);\n activeBoat.getBoatRectangle().setFill(activeBoat.getDisactiveColor());\n activeBoat=null;\n closeMsg();\n } \n }", "@Override\n\tpublic void onDeactivated() {\n\t\t\n\t}", "public void entityDeactivated() {\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger\r\n \t\t\t.debug(\"entityDeactivated(): ending all activities\");\r\n \t\t}\r\n \t\t\r\n \t\tfor(ActivityHandle handle: activities.keySet()) {\r\n \t\t\ttry {\r\n \t\t\t\tsleeEndpoint.activityEnding(handle);\r\n \t\t\t} catch (UnrecognizedActivityException uae) {\r\n \t\t\t\tlogger.error(\"failed to indicate activity has ended\",\r\n \t\t\t\t\tuae);\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger.debug(\"entityDeactivated(): cleaning naming context\");\r\n \t\t}\r\n \t\ttry {\r\n \t\t\tcleanNamingContextBindings();\r\n \t\t} catch (NamingException e) {\r\n \t\t\tlogger.error(\"failed to clean naming context\",e);\r\n \t\t}\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger\r\n \t\t\t.debug(\"entityDeactivated() completed\");\r\n \t\t}\r\n \t}", "public void deactivate () {\n\t\tif (_timer!=null) {\n\t\t\t_timer.cancel ();\n\t\t\t_timer.purge ();\n\t\t\t_timer = null;\n\t\t}\n\t}", "public void deactivateBreakpointView() {\n \t\tif (this.breakpointView.getActive()) {\n \t\t\tthis.breakpointView.getAddButton().removeSelectionListener(this);\n \t\t\tthis.breakpointView.setActive(false);\n \t\t}\n \t}", "public void modelUntangle()\n {\n\tif (manim==null) return;\n\n\tmodelStop();\n\tmanim.rewind();\n\tmanim.generations().unTangle();\n\tmanim.scale(width,height);\n\tclearToBack();\n\tmodelFlush();\n }", "public void closeModel() {\n \t\tif (checkForSave(\"<html>Save changes before closing?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tresetMouseState();\r\n \r\n \t\t// clear undo history\r\n \t\tgraph.getModel().removeUndoableEditListener(undoProxy);\r\n \t\tundoProxy.discardAllEdits();\r\n \t\t// end\r\n \t\t// graph.setModel(null); //wreaks quite a bit of havoc\r\n \t\tmainWindow.removeGraph();\r\n \t\tgraph = null;\r\n \t\tcloseModel.setEnabled(false);\r\n \t\tsaveModel.setEnabled(false);\r\n \t\teditMeasures.setEnabled(false);\r\n \t\tsaveModelAs.setEnabled(false);\r\n \t\tcomponentBar.clearButtonGroupSelection(0);\r\n \t\tcomponentBar.enableButtonGroup(0, false);\r\n \t\tsetConnect.setEnabled(false);\r\n \t\tactionCopy.setEnabled(false);\r\n \t\tactionCut.setEnabled(false);\r\n \t\tactionPaste.setEnabled(false);\r\n \t\tactionDelete.setEnabled(false);\r\n \t\t// FG\r\n \t\tactionSetRight.setEnabled(false);\r\n \t\tactionRotate.setEnabled(false);\r\n \r\n \t\tsetSelect.setEnabled(false);\r\n \t\tsimulate.setEnabled(false);\r\n \t\tsolveAnalitic.setEnabled(false);\r\n \t\tsolveApp.setEnabled(false);\r\n \t\teditUserClasses.setEnabled(false);\r\n \t\teditMeasures.setEnabled(false);\r\n \t\tswitchToExactSolver.setEnabled(false);\r\n \t\t// Disables the botton to start simualtion\r\n \t\tsimulate.setEnabled(false);\r\n \t\teditSimParams.setEnabled(false);\r\n \t\teditPAParams.setEnabled(false);\r\n \t\ttakeScreenShot.setEnabled(false);\r\n \t\t// Disables show results button and measure definition\r\n \t\tshowResults.setSelected(false);\r\n \t\tshowResults.setEnabled(false);\r\n \t\tif (resultsWindow != null) {\r\n \t\t\tresultsWindow.dispose();\r\n \t\t}\r\n \t\tresultsWindow = null;\r\n \t\topenedArchive = null;\r\n \t\tmodel = new JMODELModel();\r\n \t\tmainWindow.updateTitle(null);\r\n \t\t// Free same resources by forcing a garbage collection\r\n \t\tSystem.gc();\r\n \t}", "public void deactivate(Person user) \r\n\t{\r\n\t\tdb.user_editUser(user.getUsername(), user.getFirstName(), user.getLastName(), \r\n\t\t\t\t\t\t user.getPassword(), user.getType(), 'N');\r\n\t}", "public void stop ()\n\t{\n\t\tif (core.hasLock (frame))\n\t\t{\n\t\t\tif (model != null) model.stop();\n\t\t\tstop = true;\n\t\t}\n\t}", "public void close()\r\n {\r\n myModel.deleteObserver(this);\r\n }", "@Deactivate\n\tprotected synchronized void deactivate(final ComponentContext componentContext) {\n\t\tLOGGER.info(\"Deactivating Caching Component...\");\n\t\tthis.m_cache.cleanUp();\n\t\tthis.m_cache = null;\n\t\tLOGGER.info(\"Deactivating Caching Component...Done\");\n\t}", "public void deactivatePowerup()\r\n\t{\r\n\t\thasPowerup = false;\r\n\t\tcurrentPowerup = null;\r\n\t}", "@SuppressGaldrWarnings( \"Galdr:ProtectedLifecycleMethod\" )\n @OnDeactivate\n protected void onDeactivate()\n {\n }", "public void activate(){\n active = true;\n state = State.cleaving;\n }", "@Override\n public void onDeactivated(int i) {\n }", "public void popModelMatrix()\r\n\t{\r\n\t\tgl.glMatrixMode(GL_MODELVIEW);\r\n\t\tgl.glPopMatrix();\r\n\t}", "public void deactivate() throws JBIException {\n count--;\n if(count != 0)\n return;\n _ode.getContext().deactivateEndpoint(_internal);\n __log.debug(\"Dectivated endpoint \" + _endpoint);\n }", "public void switchModel()\n {\n \tactiveModel++;\n \tif (activeModel > 1)\n \t{\n \t\tactiveModel = 0;\n \t}\n }", "@Deactivate\n protected void stop() throws Exception {\n EventSimulatorMap.getInstance().stopAllActiveSimulations();\n log.info(\"Simulator service file component is deactivated\");\n }", "@Deactivate\n public void deactivate()\n {\n m_PluginFactoryTracker.close();\n if (m_RegistryComponent != null)\n {\n m_RegistryComponent.dispose();\n }\n }", "public void stopTrainingMode() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n @Deactivate\n private void deactivate() {\n\n this.bundleContext.removeServiceListener(this);\n\n final ServiceReference[] serviceReferences;\n synchronized (this.proxies) {\n serviceReferences = this.proxies.keySet().toArray(\n new ServiceReference[this.proxies.size()]);\n }\n\n for (ServiceReference serviceReference : serviceReferences) {\n unregister(serviceReference);\n }\n\n this.bundleContext = null;\n }", "public boolean deactivate() {\n this._factory.shutdown();\n return true;\n }", "public void deactivate() {\n\t\tSystem.out.println(\"WordReader.deactivate\");\n\t}", "void unsetGradeModelRefs();", "@DeleteMapping(value = { \"/accounts/{accountId}\" })\n\tpublic void deleteAccountActiveState(ModelMap model, @PathVariable(\"accountId\") String accountId,HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\n\t\tlog.info(CLASS_NAME + \":deactivate request has been requested for gerrit user\");\n\t\tRestTemplate restTemplate = CustomRestTemplate.restTemplate(gerritUrl, 443, userName, password);\n\t\tResponseEntity<String> gerritresponse = restTemplate.exchange(gerritUrl + \"/a/accounts/\" + accountId + \"/active\",\n\t\t\t\tHttpMethod.DELETE, null, String.class);\n\t\tHttpSession session = request.getSession(false);\n\t\tUserObject user = (UserObject) session.getAttribute(Constant.SESSION.USER);\n\t\tlog.debug(CLASS_NAME + \":deactivate user has been requested for gerritt user having account id\"+accountId);\n\t\tlog.debug(gerritresponse.getBody());\n\t\t\n\t\tAuditEvent event = new AuditEvent();\n\t\tevent.setAction(EventAction.GERRIT_USER_DEACTIVATED);\n\t\tevent.setFromUser(user.getName());\n\t\tevent.setUserId(user.getId().toString());\n\t\tevent.setDescription(user.getName() + \" deactivated gerrit user - \"+ accountId);\n\t\thistoryService.logEvent(event);\n\n\t}", "public void removeModel(SimpleModel model) {\n removeModel(model.getFullName());\n }", "public ActionUndo(GraphModel model) {\n super(\"Undo\");\n this.model = model;\n //putValue(Action.MNEMONIC_KEY, KeyEvent.VK_E);\n setEnabled(false);\n model.addObserver(this);\n }", "void updateModel() {\n updateModel(false);\n }", "public void desactivarRecursos() {\n\r\n\t}", "private void stopDeactivate(final Resource resource) throws PersistenceException {\n this.stop(resource, STATE_STOPPED_DEACTIVATED);\n }", "public abstract void deactivation(FollowMeManager manager);", "public void deactivateAbility(LevelManager lm){\n\n int prevDamage = lm.player.getDamage();\n int newDamage = prevDamage-12;\n lm.player.setDamage(newDamage);\n }", "public void destroy() {\n mTabModelSelectorTabObserver.destroy();\n TabModelFilter tabModelFilter =\n mTabModelSelector.getTabModelFilterProvider().getTabModelFilter(false);\n if (tabModelFilter != null) {\n tabModelFilter.removeObserver(mTabModelObserver);\n }\n mTabModelSelector.removeObserver(mTabModelSelectorObserver);\n }", "void deactivate(URI uri) throws WebApplicationActivationException;", "public void deactivate(String deploymentId) {\n\t\t\n\t}", "void onInvalidatedModel();", "@Override\n public void exit() {\n model.exit();\n }", "@Override\n\tpublic void onDeactivated(MainFrame main, ActionContextController nextContext) {\n\t}", "@Override\n public void onDeactivate() {\n booksLeft = 0;\n pages = new ListTag();\n }", "@Override\n\t@Deactivate\n\tprotected void deactivate(final ComponentContext context) {\n\t\tLOGGER.debug(\"Deactivating MongoDB Component...\");\n\t\tLOGGER.info(\"Releasing CloudApplicationClient for {}...\", APP_ID);\n\n\t\tsuper.deactivate(context);\n\n\t\tLOGGER.debug(\"Deactivating MongoDB Component... Done.\");\n\t}", "public void deactivateUser(User user) {\n activeUsers.remove(user.getUsername());\n }", "public void resetUpperface() {\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setRaiseBrow(0);\n\t\tdetectionModel.getPrimaryDataModel().getExpressiveDataModel().setFurrowBrow(0);\n\t}", "protected void exitEditMode(){\n editName.setEnabled(false);\n editEmail.setEnabled(false);\n saveButton.setVisibility(View.INVISIBLE);\n }", "@RequestMapping(value = \"/accountUnblock\", method = RequestMethod.GET)\n\tpublic String accountUnblock(Model model) {\n\t\tlogger.info(\"In account unblock get method\");\n\n\t\tAccountBlockRequestData acctUnblockRequest = new AccountBlockRequestData();\n\n\t\tmodel.addAttribute(\"request\", acctUnblockRequest);\n\n\t\treturn \"account_unblock\";\n\t}", "boolean getDeactivated();", "@Override\n\tprotected void deactivateFigure() {\n\t\tthis.layer.remove(getFigure());\n\t\tgetConnectionFigure().setSourceAnchor(null);\n\t\tgetConnectionFigure().setTargetAnchor(null);\n\t}" ]
[ "0.7488916", "0.7407935", "0.72574884", "0.72535473", "0.722651", "0.7220847", "0.7198022", "0.719435", "0.7180422", "0.71739924", "0.7164818", "0.7086631", "0.7035713", "0.69773114", "0.6910932", "0.68084025", "0.67986304", "0.67951137", "0.6771981", "0.6722381", "0.6579062", "0.6469772", "0.64522386", "0.6411712", "0.64115614", "0.6391851", "0.63799435", "0.6276675", "0.62391746", "0.62191594", "0.6147925", "0.6135769", "0.61299795", "0.6102899", "0.60886097", "0.607482", "0.6008782", "0.59714705", "0.59694344", "0.5967065", "0.59390855", "0.59189546", "0.5912179", "0.59019375", "0.58851373", "0.5885068", "0.58291596", "0.58034754", "0.5796799", "0.57826203", "0.57826203", "0.57812655", "0.5775839", "0.573214", "0.573187", "0.5724832", "0.56968886", "0.5648863", "0.56424856", "0.56177175", "0.5605561", "0.5603258", "0.5597125", "0.55782866", "0.5558519", "0.5545161", "0.5533121", "0.5506623", "0.5500103", "0.5494998", "0.549271", "0.5485739", "0.54783154", "0.54717416", "0.54666245", "0.5465931", "0.5462083", "0.5459218", "0.54316765", "0.54211766", "0.54107815", "0.5359597", "0.53555334", "0.5342641", "0.5340217", "0.53399366", "0.5330602", "0.53182817", "0.5310197", "0.5306271", "0.52941585", "0.5289354", "0.5286045", "0.52768457", "0.5276395", "0.52761465", "0.5273905", "0.527296", "0.5265595", "0.5254901", "0.52531576" ]
0.0
-1
Deactivate model (asynchronously) Deactivate model
public okhttp3.Call deactivateModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException { okhttp3.Call localVarCall = deactivateModelValidateBeforeCall(workspaceId, modelId, _callback); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deactivate();", "public abstract void deactivate();", "@Override\r\n\tpublic void deactivate() {\n\t\t\r\n\t}", "public void deactivate() {\n\t\tentity.deactivateInstance(this);\n\t}", "void deactivate() throws ResourceActivatorException, InterruptedException, ExecutionException;", "@Override\n public void deactivate() {\n \n }", "@Override\n\tpublic void deactivate() {\n\t}", "void deactivate();", "@Override\n\tpublic void deactivate() {\n\t\t\n\t}", "public void deactivate() {\n\t\tactive_status = false;\n\t}", "public void deactivate() {\n\t\t// TODO Auto-generated method stub\n\t}", "public void deactivate() {\n log.info(\"Stopped\");\n }", "public void deactivate() {\n this.active = false;\n }", "void deactivate() {\n\t\tanimalTemplate = null;\n\t\tscope=null;\n\t\ttriggerOnID=false;\n\t\tstate = null;\n\t\tlog.debug(bundleMarker, \"deactivating...\");\n\t}", "public void entityDeactivating() {}", "public void deactivate() {\n\tif (canBeActive()) {\n\t\tmActive = false;\n\t} else {\n\t\tthrow new IllegalStateException(getClass().getSimpleName() + \" isn't allowed to be deactivated\");\n\t}\n}", "protected void deactivate(ComponentContext context) {\n TemplateModel.INSTANCE.loaders().unregisterLoader(TemplateLangModelUtility.INSTANCE, \n ProgressObserver.NO_OBSERVER);\n // this is not the official way of using DS but the official way is instable\n ExpressionParserRegistry.setExpressionParser(TemplateLangExecution.LANGUAGE, null);\n ModelInitializer.unregister(this);\n }", "public void DeActivate() {\n\t\t\n\t}", "@Override\n\tpublic void onDeactivate() {\n\t}", "@Override\n public void onDeactivate() {\n }", "public void deactivate() \r\n\t\t{\r\n\t\tif (isActive()) \r\n\t\t\t{\r\n\t\t\tsuper.deactivate();\r\n\t\t\t((IModelElement) getModel()).removePropertyChangeListener(this);\r\n\t\t\t}\r\n\t\t}", "public void deactivate() {\r\n if (isActive()) {\r\n super.deactivate();\r\n ((AModelElement) getModel()).removePropertyChangeListener(this);\r\n }\r\n }", "public void deactivate()\n\t{\n\t\t_active = false;\n\t\t_leader.setObjectHandler(null);\n\t}", "void deactivate(ConditionContext context);", "public void deactivate(){\n state = State.invisible;\n active = false;\n }", "protected void unbindModel() {\n\n //Unbind the vao and vbo\n glDisableVertexAttribArray(0);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n }", "@Deactivate\n protected void deactivate() {\n activated = false;\n logger.info(\"deactivate: deactivated slingId: {}, this: {}\", slingId, this);\n if (periodicPingJob != null) {\n periodicPingJob.stop();\n periodicPingJob = null;\n }\n }", "void deactivate(){\n \tthis.config.clear();\n\t\tlog.debug(bundleMarker,\"deactivating...\");\n\t}", "public void deactivate() {\n serviceTracker.close();\n listenerSR.unregister();\n }", "public void stopObserving() {\n if (myModel.contains(modelObserver)) {\n myModel.deleteObserver(modelObserver);\n }\n }", "@Override\n public void deactivate() {\n mListener = null;\n if (mLocationClient != null) {\n mLocationClient.stopLocation();\n mLocationClient.onDestroy();\n }\n mLocationClient = null;\n mLocationOption = null;\n }", "public void deActivated() \r\n\t{\r\n\t\t\r\n\t}", "public void entityDeactivated() {\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger\r\n \t\t\t.debug(\"entityDeactivated(): ending all activities\");\r\n \t\t}\r\n \t\t\r\n \t\tfor(ActivityHandle handle: activities.keySet()) {\r\n \t\t\ttry {\r\n \t\t\t\tsleeEndpoint.activityEnding(handle);\r\n \t\t\t} catch (UnrecognizedActivityException uae) {\r\n \t\t\t\tlogger.error(\"failed to indicate activity has ended\",\r\n \t\t\t\t\tuae);\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger.debug(\"entityDeactivated(): cleaning naming context\");\r\n \t\t}\r\n \t\ttry {\r\n \t\t\tcleanNamingContextBindings();\r\n \t\t} catch (NamingException e) {\r\n \t\t\tlogger.error(\"failed to clean naming context\",e);\r\n \t\t}\r\n \t\t\r\n \t\tif (logger.isDebugEnabled()) {\r\n \t\t\tlogger\r\n \t\t\t.debug(\"entityDeactivated() completed\");\r\n \t\t}\r\n \t}", "@Override\n\tpublic void deactivate() {\n\t\tlocationManager.removeUpdates(this);\n\t\tmContext = null;\n\t\tlocationManager = null;\n\t\tlocationRequest = null;\n\t\tmChangedListener = null;\n\t}", "public void onDeactivation() { }", "public boolean deactivate() {\n this._factory.shutdown();\n return true;\n }", "public void deactivate() {\n\t\tlog.info(\"Deactivating simple JNDI environment\");\n\t\tactivated = null;\n\t}", "@Override\n public void modelDisconnected(ModelEvent event)\n {\n _model.removeListener(this);\n }", "@Deactivate\n protected void stop() throws Exception {\n EventSimulatorMap.getInstance().stopAllActiveSimulations();\n log.info(\"Simulator service file component is deactivated\");\n }", "@Override\n\tpublic void DeActiveAccount(String email) {\n\n\t\tUserModel userModel = findByEmail(email);\n\t\tuserModel.setActiveSwitch(\"N\");\n\t\tsaveDtls(userModel);\n\n\t}", "@Deactivate\n protected void deactivate(ComponentContext context) {\n httpService.unregister(\"/s-ramp\");\n log.debug(\"******* Governance S-Ramp bundle is deactivated ******* \");\n }", "public void stop ()\n\t{\n\t\tif (core.hasLock (frame))\n\t\t{\n\t\t\tif (model != null) model.stop();\n\t\t\tstop = true;\n\t\t}\n\t}", "@Override\n\tpublic void Deactivate(List<IBlurb> blurbs) {\n\n\t}", "public void onUnblock();", "@Override\r\n public void deactivate() {\n locationManager.removeUpdates(this);\r\n mContext = null;\r\n locationManager = null;\r\n locationRequest = null;\r\n mChangedListener = null;\r\n }", "public final void deactivateAccount() {\n\t\tthis.setIsAccountLocked(true);\n\t}", "@Override\n\tpublic void onDeactivated() {\n\t\t\n\t}", "public void deactivate () {\n\t\tif (_timer!=null) {\n\t\t\t_timer.cancel ();\n\t\t\t_timer.purge ();\n\t\t\t_timer = null;\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n @Deactivate\n private void deactivate() {\n\n this.bundleContext.removeServiceListener(this);\n\n final ServiceReference[] serviceReferences;\n synchronized (this.proxies) {\n serviceReferences = this.proxies.keySet().toArray(\n new ServiceReference[this.proxies.size()]);\n }\n\n for (ServiceReference serviceReference : serviceReferences) {\n unregister(serviceReference);\n }\n\n this.bundleContext = null;\n }", "@SuppressGaldrWarnings( \"Galdr:ProtectedLifecycleMethod\" )\n @OnDeactivate\n protected void onDeactivate()\n {\n }", "@Override\n public void onDetach()\n {\n super.onDetach();\n mActivity = null;\n mTask.cancel(true);\n }", "private void deActivateView() {\n if (!isActive()) {\n return;\n }\n setEnabled(false);\n if (editorListener != null) {\n ISelectionService service = getSite().getWorkbenchWindow()\n .getSelectionService();\n if (service != null) {\n service.removePostSelectionListener(editorListener);\n }\n FileBuffers.getTextFileBufferManager().removeFileBufferListener(\n editorListener);\n\n }\n if (textViewer != null && textViewer.getTextWidget() != null\n && !textViewer.getTextWidget().isDisposed()) {\n IDocument document = new Document(\"\");\n textViewer.setDocument(document);\n }\n if (tableControl != null && !tableControl.isDisposed()) {\n setVerifyTableItems(null);\n }\n /*\n * if(stackControl != null && !stackControl.isDisposed()){\n * stackControl.setText(\"\"); } if(lvtControl != null && !lvtControl.isDisposed()){\n * lvtControl.setText(\"\"); }\n */\n if (stackTable != null && !stackTable.isDisposed()) {\n stackTable.removeAll();\n }\n if (lvtTable != null && !lvtTable.isDisposed()) {\n lvtTable.removeAll();\n }\n if (statusControl != null && !statusControl.isDisposed()) {\n updateStatus(null, -1, -1);\n }\n currentSelection = null;\n lastDecompiledResult = null;\n javaEditor = null;\n setJavaInput(null);\n lastChildElement = null;\n setBufferIsDirty(false);\n isActive = false;\n }", "private void unbindTexturedModel() {\n\t\tGL20.glDisableVertexAttribArray(0);\n\t\tGL20.glDisableVertexAttribArray(1);\n\t\tGL20.glDisableVertexAttribArray(2);\n\t\t\t\t\n\t\t// Then also have to unbind the VAO, instead of putting a ID in, we just put in 0\n\t\tGL30.glBindVertexArray(0);\n\t}", "public void deactivate() {\n\t\tcameraNXT.enableTracking(false);\n\t}", "@Deactivate\n\tprotected synchronized void deactivate(final ComponentContext componentContext) {\n\t\tLOGGER.info(\"Deactivating Caching Component...\");\n\t\tthis.m_cache.cleanUp();\n\t\tthis.m_cache = null;\n\t\tLOGGER.info(\"Deactivating Caching Component...Done\");\n\t}", "public void close()\r\n {\r\n myModel.deleteObserver(this);\r\n }", "@Deactivate\n public void deactivate()\n {\n try\n {\n m_ServerSocket.close();\n }\n catch (final Exception e)\n {\n m_Logging.error(e, \"Unable to close server socket\");\n }\n \n try\n {\n m_ServerSocketThread.join(THREAD_JOIN_TIMEOUT);\n }\n catch (final InterruptedException e)\n { \n m_Logging.info(\"Server socket interrupted while joining thread\");\n }\n }", "@Deactivate\n public void deactivate() {\n loggerThread.interrupt();\n }", "public void deactivate() throws JBIException {\n count--;\n if(count != 0)\n return;\n _ode.getContext().deactivateEndpoint(_internal);\n __log.debug(\"Dectivated endpoint \" + _endpoint);\n }", "public void deactivate(int which) {\n if (isActive[which]) {\n isActive[which] = false;\n numActive--;\n } // end if\n }", "private void activationOFF() {\n switch (afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.desactivatedContents();\n break;\n case AFFICHE_USER :\n ecranUser.desactivatedContents();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.desactivatedContents();\n break;\n default: break;\n }\n }", "private TaskResourceRep finishDeactivateTask(BlockConsistencyGroup consistencyGroup, String task) {\n URI id = consistencyGroup.getId();\n Operation op = new Operation();\n op.ready();\n op.setProgress(100);\n op.setResourceType(ResourceOperationTypeEnum.DELETE_CONSISTENCY_GROUP);\n Operation status = _dbClient.createTaskOpStatus(BlockConsistencyGroup.class, id, task, op);\n return toTask(consistencyGroup, task, status);\n }", "public abstract void deactivation(FollowMeManager manager);", "@DeleteMapping(value = { \"/accounts/{accountId}\" })\n\tpublic void deleteAccountActiveState(ModelMap model, @PathVariable(\"accountId\") String accountId,HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\n\t\tlog.info(CLASS_NAME + \":deactivate request has been requested for gerrit user\");\n\t\tRestTemplate restTemplate = CustomRestTemplate.restTemplate(gerritUrl, 443, userName, password);\n\t\tResponseEntity<String> gerritresponse = restTemplate.exchange(gerritUrl + \"/a/accounts/\" + accountId + \"/active\",\n\t\t\t\tHttpMethod.DELETE, null, String.class);\n\t\tHttpSession session = request.getSession(false);\n\t\tUserObject user = (UserObject) session.getAttribute(Constant.SESSION.USER);\n\t\tlog.debug(CLASS_NAME + \":deactivate user has been requested for gerritt user having account id\"+accountId);\n\t\tlog.debug(gerritresponse.getBody());\n\t\t\n\t\tAuditEvent event = new AuditEvent();\n\t\tevent.setAction(EventAction.GERRIT_USER_DEACTIVATED);\n\t\tevent.setFromUser(user.getName());\n\t\tevent.setUserId(user.getId().toString());\n\t\tevent.setDescription(user.getName() + \" deactivated gerrit user - \"+ accountId);\n\t\thistoryService.logEvent(event);\n\n\t}", "void deactivate(URI uri) throws WebApplicationActivationException;", "@Override\n\t@Deactivate\n\tprotected void deactivate(final ComponentContext context) {\n\t\tLOGGER.debug(\"Deactivating MongoDB Component...\");\n\t\tLOGGER.info(\"Releasing CloudApplicationClient for {}...\", APP_ID);\n\n\t\tsuper.deactivate(context);\n\n\t\tLOGGER.debug(\"Deactivating MongoDB Component... Done.\");\n\t}", "@Deactivate\n public void deactivate()\n {\n m_PluginFactoryTracker.close();\n if (m_RegistryComponent != null)\n {\n m_RegistryComponent.dispose();\n }\n }", "@Override\r\n\tpublic void deactivate() {\n\t\tsuper.deactivate();\r\n\t\tthis.getArtFrag().removePropertyChangeListener(this);\r\n\t}", "@Deactivate\n protected void stop() throws Exception {\n log.info(\"Service Component is deactivated\");\n\n Map<String, ExecutionPlanRuntime> executionPlanRunTimeMap = EditorDataHolder.\n getDebugProcessorService().getExecutionPlanRunTimeMap();\n for (ExecutionPlanRuntime runtime : executionPlanRunTimeMap.values()) {\n runtime.shutdown();\n }\n EditorDataHolder.setBundleContext(null);\n serviceRegistration.unregister();\n }", "public void stopTrainingMode() {\n\t\t\r\n\t}", "public void desactivatePlayer() {\n\t\tthis.setEnabled(false);\n\t}", "public void deactivatePowerup()\r\n\t{\r\n\t\thasPowerup = false;\r\n\t\tcurrentPowerup = null;\r\n\t}", "private void stopDeactivate(final Resource resource) throws PersistenceException {\n this.stop(resource, STATE_STOPPED_DEACTIVATED);\n }", "@Override\n public void onDeactivated(int i) {\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n handler.removeMessages(UpdateConfig.NET_MSG_GETLENTH);\n // if (mModel != null) {\n // mModel.cancelLoadData();\n // }\n if (mTask != null) {\n mTask.cancel(true);\n }\n if (mNotificationManager != null) {\n mNotificationManager.cancel(UpdateConfig.NOTIFY_DOWNLOADING_ID);\n }\n }", "@RequestMapping(value = \"/accountUnblock\", method = RequestMethod.GET)\n\tpublic String accountUnblock(Model model) {\n\t\tlogger.info(\"In account unblock get method\");\n\n\t\tAccountBlockRequestData acctUnblockRequest = new AccountBlockRequestData();\n\n\t\tmodel.addAttribute(\"request\", acctUnblockRequest);\n\n\t\treturn \"account_unblock\";\n\t}", "void onDeactivate() {\n\t\t/* Hide the FakeToolTip that could be open in this moment */\n\t\tfakeToolTip.hide();\n\t}", "@Override\n public void exit() {\n model.exit();\n }", "@Test(groups = {\"wso2.esb\"}, description = \"Test de-activation of Message Processor when exception is thrown \" +\n \"inside deactivate sequence.\")\n public void testMPGettingDeactivatedIfDeactivateSeqFails() throws Exception {\n SimpleHttpClient simpleHttpClient = new SimpleHttpClient();\n simpleHttpClient.doGet(proxyURL, null);\n Thread.sleep(10000);\n checkMessageProcessorState();\n }", "public void closeModel() {\n \t\tif (checkForSave(\"<html>Save changes before closing?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tresetMouseState();\r\n \r\n \t\t// clear undo history\r\n \t\tgraph.getModel().removeUndoableEditListener(undoProxy);\r\n \t\tundoProxy.discardAllEdits();\r\n \t\t// end\r\n \t\t// graph.setModel(null); //wreaks quite a bit of havoc\r\n \t\tmainWindow.removeGraph();\r\n \t\tgraph = null;\r\n \t\tcloseModel.setEnabled(false);\r\n \t\tsaveModel.setEnabled(false);\r\n \t\teditMeasures.setEnabled(false);\r\n \t\tsaveModelAs.setEnabled(false);\r\n \t\tcomponentBar.clearButtonGroupSelection(0);\r\n \t\tcomponentBar.enableButtonGroup(0, false);\r\n \t\tsetConnect.setEnabled(false);\r\n \t\tactionCopy.setEnabled(false);\r\n \t\tactionCut.setEnabled(false);\r\n \t\tactionPaste.setEnabled(false);\r\n \t\tactionDelete.setEnabled(false);\r\n \t\t// FG\r\n \t\tactionSetRight.setEnabled(false);\r\n \t\tactionRotate.setEnabled(false);\r\n \r\n \t\tsetSelect.setEnabled(false);\r\n \t\tsimulate.setEnabled(false);\r\n \t\tsolveAnalitic.setEnabled(false);\r\n \t\tsolveApp.setEnabled(false);\r\n \t\teditUserClasses.setEnabled(false);\r\n \t\teditMeasures.setEnabled(false);\r\n \t\tswitchToExactSolver.setEnabled(false);\r\n \t\t// Disables the botton to start simualtion\r\n \t\tsimulate.setEnabled(false);\r\n \t\teditSimParams.setEnabled(false);\r\n \t\teditPAParams.setEnabled(false);\r\n \t\ttakeScreenShot.setEnabled(false);\r\n \t\t// Disables show results button and measure definition\r\n \t\tshowResults.setSelected(false);\r\n \t\tshowResults.setEnabled(false);\r\n \t\tif (resultsWindow != null) {\r\n \t\t\tresultsWindow.dispose();\r\n \t\t}\r\n \t\tresultsWindow = null;\r\n \t\topenedArchive = null;\r\n \t\tmodel = new JMODELModel();\r\n \t\tmainWindow.updateTitle(null);\r\n \t\t// Free same resources by forcing a garbage collection\r\n \t\tSystem.gc();\r\n \t}", "public void disable(){\r\n\t\tthis.activ = false;\r\n\t}", "void bluetoothDeactivated();", "void detachCurrent();", "public static void onThreadDeath() {\n if(activateBypass != null) {\n try { activateBypass.invoke(null, new Object[0]); } catch (Throwable t) { t.printStackTrace(); }\n }\n\n DeferredExecution.processRemainingBuffers();\n DeferredExecution.setEndFlags();\n DeferredExecution.stopWorkerThreads();\n \n if(deactivateBypass != null) {\n try { deactivateBypass.invoke(null, new Object[0]); } catch (Throwable t) { t.printStackTrace(); }\n }\n }", "public void deActivateButton(){\n\t\tMainActivity.resetXY();\r\n\t}", "public void resume ()\n\t{\n\t\tif (model != null) run (false);\n\t}", "public void activate(){\n active = true;\n state = State.cleaving;\n }", "void onInvalidatedModel();", "@Override\n\tprotected void deActivateBoard() {\n\t\tsuper.deActivateBoard();\n\t}", "@Override\n\tprotected void deActivateBoard() {\n\t\tsuper.deActivateBoard();\n\t}", "@After\n\tpublic void cleanUp() {\n\t\tif (model != null) {\n\t\t\tmodel.release(true);\n\t\t\tloader.unloadAll();\n\t\t}\n\t}", "@Override\n public void onMachineDeactivated()\n {\n \n }", "public void subDeactivate() throws InterruptedException\n {\n m_ListenerInstance.dispose();\n \n final int ThreadWaitMs = 1000;\n m_ListenerThread.join(ThreadWaitMs);\n assert !m_ListenerThread.isAlive();\n \n cleanupMessageSender();\n \n try\n {\n m_Socket.getOutputStream().close();\n }\n catch (final IOException e)\n {\n m_Logging.warning(\"Failed to close socket output stream (%s)\", m_Socket.getRemoteSocketAddress());\n }\n\n try\n {\n m_Socket.close();\n }\n catch (final IOException e)\n {\n m_Logging.debug(\"Unable to close socket (%s), already closed? %b\", m_Socket.getRemoteSocketAddress(), \n m_Socket.isClosed());\n }\n finally\n {\n m_WakeLock.delete();\n }\n }", "protected void deactivate(ComponentContext componentContext) {\n componentContext.getBundleContext().removeBundleListener(this);\n\n if (this.initialSecurityLoader != null) {\n this.initialSecurityLoader.dispose();\n this.initialSecurityLoader = null;\n }\n }", "public void modelUntangle()\n {\n\tif (manim==null) return;\n\n\tmodelStop();\n\tmanim.rewind();\n\tmanim.generations().unTangle();\n\tmanim.scale(width,height);\n\tclearToBack();\n\tmodelFlush();\n }", "void setVeilleObjetDeactivated();", "public void disable(){\n if(criticalStop) return;\n getModel().setStatus(false);\n }", "public void decrementActiveRequestsAndDeactivate() {\n if (--this.requests == 0 && !this.active) {\n synchronized (this) {\n this.notifyAll();\n }\n }\n }", "@Override\r\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\r\n\t\tstartAsync = false;\r\n\t}", "public void stopMock() {\n isActive = false;\n }" ]
[ "0.6939408", "0.6743516", "0.67244494", "0.6708876", "0.6671752", "0.66618925", "0.6651852", "0.6649528", "0.6649002", "0.6605662", "0.65883607", "0.6506653", "0.6490883", "0.6457854", "0.641367", "0.63863945", "0.63096625", "0.62523717", "0.6251186", "0.6244423", "0.62057346", "0.61849266", "0.6162003", "0.6125655", "0.60905737", "0.6087049", "0.59862065", "0.591545", "0.590236", "0.5889975", "0.5872051", "0.5863153", "0.58152264", "0.57663906", "0.570374", "0.5676165", "0.5670333", "0.5668511", "0.5665243", "0.5654204", "0.5617187", "0.56060255", "0.56036824", "0.55301297", "0.5462508", "0.5461495", "0.5460658", "0.5439871", "0.54271173", "0.5418356", "0.54143214", "0.5408154", "0.53937584", "0.5376087", "0.53615034", "0.536125", "0.5354335", "0.53537863", "0.53144604", "0.53099185", "0.5298763", "0.52958935", "0.5284434", "0.5248888", "0.524833", "0.5238523", "0.5234152", "0.52341044", "0.5222714", "0.5216991", "0.5194933", "0.517526", "0.51692456", "0.516729", "0.5156156", "0.51542735", "0.5137866", "0.51030576", "0.50994873", "0.50931764", "0.5082755", "0.505989", "0.50596195", "0.50538176", "0.50534075", "0.50518763", "0.50356025", "0.5028996", "0.50208944", "0.50208944", "0.5012077", "0.50119114", "0.5011805", "0.50093853", "0.50070107", "0.5002324", "0.49963948", "0.4991002", "0.4989462", "0.4988921" ]
0.532665
58
Build call for deleteModel
public okhttp3.Call deleteModelCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/workspaces/{workspaceId}/models/{modelId}/delete" .replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString())) .replaceAll("\\{" + "modelId" + "\\}", localVarApiClient.escapeString(modelId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "apiAuth" }; return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean delete(ModelObject obj);", "private void actionDelete(final ImageDataModel modelData) {\r\n // Remove the item from Current List of GalleryHelperBaseOnId.class\r\n if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.LIST_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelper.imageDataModelList.remove(modelData);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewData.imageDataModelList.remove(modelData);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageDataModelList.remove(modelData);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageDataModelList.remove(modelData);\r\n }\r\n }\r\n\r\n if (SharedPref.getAlbumType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.ALBUM_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelperBaseOnId.dataModelArrayList.remove(modelData);\r\n // Remove the item from Main List of GalleryHelper.class\r\n GalleryHelper.imageFolderMap.get(nameKey).remove(modelData);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n VideoViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n AudioViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n PhotoViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n }\r\n }\r\n\r\n\r\n final String message = String.format(getString(R.string.delete_success_message));\r\n try {\r\n // method to deleting the selected file\r\n FileUtils.deleteFile(modelData.getFile());\r\n FileUtils.deleteDirectory(modelData.getFile().getParentFile());\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n // method to scan the file and update its position\r\n FileUtils.scanFile(PhotoViewActivity.this, modelData.getFile());\r\n\r\n SDKUtils.showToast(PhotoViewActivity.this, message);\r\n // notify viewpager adapter\r\n notifyAdapter();\r\n if (CustomPagerAdapter != null)\r\n CustomPagerAdapter.itemCheckInList();\r\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n \tprivate CriteriaDeleteImpl constructDeleteQuery(CriteriaBuilderImpl cb, CommonTree tree) {\n \t\tfinal CriteriaDeleteImpl q = new CriteriaDeleteImpl(this.metamodel);\n \n \t\tfinal Tree deleteDef = tree.getChild(0);\n \n \t\tfinal Tree aliasedDef = deleteDef.getChild(0);\n \t\tfinal Aliased aliased = new Aliased(aliasedDef);\n \n \t\tfinal EntityTypeImpl entity = this.getEntity(aliased.getQualified().toString());\n \t\tfinal RootImpl<?> r = (RootImpl<?>) q.from(entity);\n \t\tthis.putAlias(q, aliasedDef, aliased, r);\n \n \t\tif (tree.getChildCount() == 2) {\n \t\t\tq.where(this.constructJunction(cb, q, deleteDef.getChild(1)));\n \t\t}\n \n \t\treturn q;\n \t}", "@Override\n\tpublic boolean delete(String internalModel) {\n\t\treturn false;\n\t}", "@UpdateProvider(type = ServeInfoSqlProvider.class, method = \"deleteById\")\n int delete(ServeInfoDO model);", "int deleteByPrimaryKey(String EQP_MODEL_ID);", "public RequestDataBuilder delete() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.DELETE);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}", "private Delete() {}", "private Delete() {}", "int deleteByExample(TbComEqpModelExample example);", "@RequestMapping(\"/delete\")\n\tpublic String delete(HttpServletRequest request, Model model) {\n\t\tdao.delete(request.getParameter(\"bId\"));\n\t\treturn \"redirect:list\"; \n\t}", "public void delete()\n {\n call(\"Delete\");\n }", "@Headers({\n \t\"Content-Type:application/vnd.api+json\" \n })\n @DELETE(\"api/v2/sub_organizations/{id}.json_api\")\n Call<Meta> delete(\n @retrofit2.http.Path(\"id\") Integer id\n );", "@Override\n\tpublic void deletes(String[] ids,Integer appId,Integer modelId){\n \tpromotionDao.deletes(ids, appId, modelId);\n\t}", "public interface Delete<T extends Model> {\n\n\t/**\n\t * Executes the operation.\n\t *\n\t * @return the number of the deleted rows.\n\t * @throws OperationException if any error happen\n\t */\n\tint execute() throws OperationException;\n\n\t/**\n\t * Executes the operation. Returns <code>-1</code> if any error happen.\n\t *\n\t * @return the number of the deleted rows.\n\t */\n\tint executeSafely();\n\n\t/**\n\t * Builds a filtering expression for this operation.\n\t *\n\t * @param column a column's name from the table\n\t */\n\thandy.storage.api.ColumnCondition<DeleteOperation<T>> where(String column);\n\n\t/**\n\t * Sets a filtering expression for this operation.\n\t *\n\t * @param expression a {@link Expression} object built for this table.\n\t * @return this object\n\t * @throws IllegalArgumentException if passed expression was built for another table\n\t */\n\tDeleteOperation<T> where(Expression expression);\n\n\t/**\n\t * Limits the number of rows to delete. Use {@link #orderBy(String)} and\n\t * {@link #orderBy(String, Order)} to set a rule which rows should be\n\t * deleted first.\n\t *\n\t * @param limit mux number of items to delete\n\t * @return this object\n\t */\n\tDelete<T> limit(int limit);\n\n\t/**\n\t * Adds a column to order by during deleting. Use it only simultaneously\n\t * with {@link #limit(int)}.\n\t *\n\t * @param column column to order by\n\t * @return this object\n\t */\n\tDelete<T> orderBy(String column);\n\n\t/**\n\t * Adds a column to order by during deleting. Use it only simultaneously\n\t * with {@link #limit(int)}.\n\t *\n\t * @param column column to order by\n\t * @param order ascending or descending\n\t * @return this object\n\t */\n\tDelete<T> orderBy(String column, Order order);\n\n}", "public Expression buildDeleteExpression(DatabaseTable table, Expression mainExpression, AbstractRecord row) {\r\n //use the same expression as update\r\n return buildUpdateExpression(table, mainExpression, row, null);\r\n }", "private Delete(Builder builder) {\n super(builder);\n }", "public int delete(o dto);", "public void delete(LearningResultHasActivityPk pk) throws LearningResultHasActivityDaoException;", "public String calfordelete() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result;\r\n\t\tresult = model.calfordelete(vendorMaster);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(getText(\"Record Deleted Successfully.\"));\r\n\t\t\tvendorMaster.setVendorCode(\"\");\r\n\t\t\tvendorMaster.setVendorName(\"\");\r\n\t\t\tvendorMaster.setVendorAdd(\"\");\r\n\t\t\tvendorMaster.setVendorCon(\"\");\r\n\t\t\tvendorMaster.setVendorEmail(\"\");\r\n\t\t\tvendorMaster.setCtyId(\"\");\r\n\t\t\tvendorMaster.setStateId(\"\");\r\n\t\t\tvendorMaster.setVendorCty(\"\");\r\n\t\t\tvendorMaster.setVendorState(\"\");\r\n\t\t\tvendorMaster.setMyPage(\"\");\r\n\t\t\tvendorMaster.setHiddencode(\"\");\r\n\t\t\tvendorMaster.setShow(\"\");\r\n\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"Record can not be deleted.\");\r\n\t\t}// end of else\r\n\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\r\n\t\treturn \"success\";\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic HttpDeleteRequest<E,String> buildHttpDelete ()\n\t{\n\t\treturn new HttpDeleteRequest<E,String>((HttpBuilder<E, String>) this);\n\t}", "public void deleteOneWord(Pojo.OneWord e){ \n template.delete(e); \n}", "public void delete( final T model )\n\t{\n\t\tthis.dao.delete( model );\n\t}", "@Override\n public void onClick(View v) {\n\n CouSyncDb.getInstance(getApplicationContext()).deleteSync(bean1, new OnOperateFinish() {\n @Override\n public void onFinish(int operateType, Object result) {\n text.setText(\"delete row ID = \" + result.toString());\n }\n });\n }", "public void delete(RequestBean request) {\n\t\t\r\n\t}", "@Override\n\tpublic String deleteByCondition(Familynames con, Model m) throws Exception {\n\t\treturn null;\n\t}", "int deleteByPrimaryKey(@Param(\"serdeId\") Long serdeId, @Param(\"paramKey\") String paramKey);", "public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}", "public boolean delete(Base model) throws IOException {\n\t\treturn Core.delete(model, getHttpMethodExecutor());\n\t}", "private DeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void delete(KanjiDto dto, final CallBackListener<Boolean> callBack) {\n ContentResolver cr = mContext.getContentResolver();\n DaoAsyncQueryHandler queryHandler = new DaoAsyncQueryHandler(cr);\n\n String selection =\"id='\" + dto.kid + \"'\";\n queryHandler.setOnDeleteCompleteListener(new DaoAsyncQueryHandler.OnDeleteCompleteListener() {\n @Override\n public void onDeleteComplete(int i, int i1) {\n callBack.onSuccess(null);\n }\n });\n\n queryHandler.startDelete(0, null, KanjiContentProvider.KANJI_URI, selection, null);\n }", "@DELETE\n public void delete() {\n }", "public DeleteItemOutcome deleteItem(KeyAttribute ... primaryKeyComponents);", "public String assembleDelete(String tableName, String whereClauseStr) {\n\t\tStringBuilder buffer = new StringBuilder();\n\t\tbuffer.append(\"delete from \");\n\t\tbuffer.append(tableName + \" where \");\n\t\tbuffer.append(\" \" + whereClauseStr + \";\"); // with the \";\"\n\t\tDebug.println(\"Newly generated delete is \" + buffer.toString());\n\t\treturn buffer.toString();\n\t}", "@Override\n\t@Action(\"delete\")\n\t@LogInfo(optType=\"删除\")\n\tpublic String delete() throws Exception {\n\t\ttry {\n\t\t\tString str=sampleManager.deleteEntity(deleteIds);\n\t\t\tStruts2Utils.getRequest().setAttribute(LogInfo.MESSAGE_ATTRIBUTE, \"删除数据:单号:\"+str);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\trenderText(\"删除失败:\" + e.getMessage());\n\t\t\tlog.error(\"删除数据信息失败\",e);\n\t\t}\n\t\treturn null;\n\t}", "public interface Delable extends Entity {\n\n @PofM(who = P.A)\n default boolean delete() {\n ECCalculator ecc = new ECCalculator(this);\n\n TableId tableId = new TableId(this.getSchemaName(), this.getTableName());\n List<String> whereFields = ecc.getKeyFields();\n Where where = new Where(new Equal(tableId, whereFields.get(0)));\n whereFields.subList(1, whereFields.size()).forEach(f -> where.addExpression(true, new Equal(tableId, f)));\n\n PreparedSQL delete = new Delete(tableId).where(where);\n return DB.instance().preparedExecute(delete.toPreparedSql(), 1, ecc.getValuesInOrder(whereFields));\n }\n\n}", "int deleteByExample(MVoucherDTOCriteria example);", "int deleteByExample(NjProductTaticsRelationExample example);", "public int deleteOrderRequest(OrderEntity orderEntity);", "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "public String getCommandName() {\r\n return \"batchDelete\";\r\n }", "@Override\n\tpublic boolean delete(Patient model) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean deleteOperacionDetalle(\n\t\t\tT012_OperacionDetalle operacionDetalleModel) {\n\t\treturn false;\n\t}", "public com.google.protobuf.Empty deleteDevice(org.thethingsnetwork.management.proto.HandlerOuterClass.DeviceIdentifier request);", "@Override\n\tpublic void delete(ComplitedOrderInfo arg0) {\n\t\t\n\t}", "@Override\n\tpublic String deleteByCondition(Familybranch con, Model m) throws Exception {\n\t\treturn null;\n\t}", "public String delete() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result = model.delete(vendorMaster);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(\"Record Deleted Successfully.\");\r\n\t\t\treset();\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"This record is referenced in other resources.So can't delete.\");\r\n\t\t\treset();\r\n\t\t}// end of else\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\t\tgetNavigationPanel(1); \r\n\t\treturn \"success\";\r\n\t}", "@RequestMapping(value = \"/deleteComittee.do\")\n\t\tpublic String deleteComittee(HttpServletRequest request, HttpServletResponse response,Model model) throws IOException {\n\t\t\tSystem.out.println(\"get\");\n\t\t\tString sSeq = request.getParameter(\"sSeq\");\n\t\t\tSystem.out.println(sSeq);\n\t\t\t\n\t\t\tMap <String,String> hm4 = new HashMap();\n\t\t\thm4.put (\"sSeq\",sSeq);\n\n\t\t\tint i= comitteeListService.deleteComittee(hm4);\n\t\t\t\n\t\t Map<String,Object> map = new HashMap<String,Object>();\n\t\t map.put(\"result\",i);\n\t\t \n\t\t model.addAllAttributes(map);\n\n\t\t return \"jsonView\";\n\t\t}", "int deleteByExample(MWeixinCodeDTOCriteria example);", "public void delete(Contract entity) {\n\r\n\t}", "private static MenuItem createTableViewDeleteMenuItem(SongManager model,\n MusicPlayerManager musicPlayerManager,\n DatabaseManager databaseManager,\n List<Song> selectedSongs) {\n MenuItem delete = new MenuItem(DELETE);\n\n delete.setOnAction((event) -> {\n List<File> filesToDelete = new ArrayList<>();\n for (Song item: selectedSongs) {\n filesToDelete.add(item.getFile());\n }\n UserInterfaceUtils.deleteFileAction(model, musicPlayerManager, databaseManager, filesToDelete);\n });\n\n return delete;\n }", "@Override\r\n\tpublic void fireModelDeleteProduct(String msg) {\n\t\t\r\n\t}", "int deleteByExample(MedicalOrdersExecutePlanExample example);", "public ResponseTranslator delete() {\n setMethod(\"DELETE\");\n return doRequest();\n }", "int deleteByExample(MEsShoppingCartDTOCriteria example);", "public DeleteBuilder delete() {\n return new DeleteBuilder(this);\n }", "public void delete(E model) {\n\t\tgetHibernateTemplate().delete(model);\r\n\t}", "int delete(String tableName, String selectionCriteria, String[] selectionArgs);", "@Override\n\tpublic String deleteByPrimaryKey(Familybranch record, Model m) throws Exception {\n\t\treturn null;\n\t}", "int deleteByExample(cskaoyan_mall_order_goodsExample example);", "int deleteByPrimaryKey(Integer buildProcedureId);", "private DeleteAction makeDeleteAction(String input)\r\n throws MakeActionException {\r\n if (params.length == 0) {\r\n throw new MakeActionException(DeleteAction.ERR_INSUFFICIENT_ARGS);\r\n }\r\n DeleteAction da = new DeleteAction(goku);\r\n da.input = input;\r\n\r\n if (params.length == 1) {\r\n try {\r\n int id = Integer.parseInt(params[0]);\r\n da.id = id;\r\n } catch (NumberFormatException e) {\r\n da.id = null;\r\n da.title = params[0];\r\n }\r\n } else {\r\n da.title = Joiner.on(\" \").join(params);\r\n }\r\n return da;\r\n }", "@DELETE(\"posts/{id}/\")\n Call<Void> delete(@Path(\"id\") int id);", "@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}", "public void deleteCompany(Company obj);", "@Override\n\tpublic String deleteBatch(List<? extends Number> ids, Model m) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic String deleteBatch(List<? extends Number> ids, Model m) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic void delete(List<Field> entity) {\n\t\t\n\t}", "public DeleteRecord_Params() \n\t{\n\t\tbatch = null;\n\t}", "void deleteModelElement(EObject modelElement);", "int deleteByExample(ActivityHongbaoPrizeExample example);", "int deleteByExample(DashboardGoodsExample example);", "@Exclude\n public abstract void delete();", "int deleteByPrimaryKey(String depCode);", "@Delete\n void delete(Task... task);", "public abstract void delete(DataAction data, DataRequest source) throws ConnectorOperationException;", "int logicalDeleteByExample(@Param(\"example\") DashboardGoodsExample example);", "@Override\n\tpublic boolean delete(ArrayList<ModelBase> ids) throws RepositoryException {\n\t\treturn false;\n\t}", "int deleteByExample(UserOperateProjectExample example);", "@Override\n protected OperationIF delete(OperationIF operInput) {\n OperationIF operOutput = null;\n String METHOD = Thread.currentThread().getStackTrace()[1].getMethodName();\n String resourceUid = null;\n JSONObject jsonInput = null;\n\n _logger.entering(CLASS, METHOD);\n\n if (_logger.isLoggable(DEBUG_LEVEL)) {\n _logger.log(DEBUG_LEVEL, \"input=''{0}'', json=''{1}''\",\n new Object[]{operInput != null ? operInput.toString() : NULL,\n operInput.getJSON() != null ? operInput.getJSON().toString() : NULL});\n }\n\n operOutput = new Operation(OperationIF.TYPE.DELETE);\n\n jsonInput = operInput.getJSON();\n resourceUid = JSON.getString(jsonInput, ConstantsIF.UID);\n\n try {\n this.deleteImpl(resourceUid);\n } catch (Exception ex) {\n operOutput.setError(true);\n operOutput.setState(STATE.ERROR);\n operOutput.setStatus(ex.getMessage());\n }\n\n if (!operOutput.isError()) {\n operOutput.setState(STATE.SUCCESS);\n operOutput.setStatus(\"Deleted meta\");\n }\n\n if (_logger.isLoggable(DEBUG_LEVEL)) {\n _logger.log(DEBUG_LEVEL, \"output=''{0}''\",\n new Object[]{operOutput != null ? operOutput.toString() : NULL});\n }\n\n _logger.exiting(CLASS, METHOD);\n\n return operOutput;\n }", "@DefaultMessage(\"Pressing commit will delete the current record from the database\")\n @Key(\"gen.deleteMessage\")\n String gen_deleteMessage();", "org.naru.park.ParkController.CommonActionOrBuilder getDeleteSensorOrBuilder();", "public String delete1() throws Exception {\r\n\t\tString code[] = request.getParameterValues(\"hdeleteCode\");\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result = model.deletecheckedRecords(vendorMaster, code);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(getText(\"delMessage\", \"\"));\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"One or more records can't be deleted \\n as they are associated with some other records. \");\r\n\t\t}// end of else\r\n\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\t\treset();\r\n\t\tgetNavigationPanel(1);\r\n\t\treturn \"success\";\r\n\r\n\t}", "@DELETE(\"pomodorotasks\")\n Call<PomodoroTask> pomodorotasksDelete(\n @Body PomodoroTask pomodoroTask\n );", "protected void setDeleteUrl(EditingPolicyHelper policyHelper, ObjectPropertyStatement ops) {\n RequestedAction action = new DropObjectPropStmt(subjectUri, propertyUri, objectUri);\n if ( ! policyHelper.isAuthorizedAction(action) ) { \n return;\n }\n \n if (propertyUri.equals(VitroVocabulary.IND_MAIN_IMAGE)) {\n deleteUrl = ObjectPropertyTemplateModel.getImageUploadUrl(subjectUri, \"delete\");\n } else {\n ParamMap params = new ParamMap(\n \"subjectUri\", subjectUri,\n \"predicateUri\", propertyUri,\n \"objectUri\", objectUri,\n \"cmd\", \"delete\");\n \n for ( String key : data.keySet() ) {\n String value = data.get(key);\n // Remove an entry with a null value instead of letting it get passed\n // as a param with an empty value, in order to align with behavior on\n // profile page. E.g., if statement.moniker is null, a test for \n // statement.moniker?? will yield different results if null on the \n // profile page but an empty string on the deletion page.\n if (value != null) {\n params.put(\"statement_\" + key, data.get(key));\n }\n }\n \n params.put(\"templateName\", templateName);\n \n params.putAll(UrlBuilder.getModelParams(vreq));\n \n deleteUrl = UrlBuilder.getUrl(EDIT_PATH, params);\n } \n }", "private void deleteFile() {\r\n actionDelete(dataModelArrayList.get(position));\r\n }", "int deleteByExample(RepaymentPlanInfoUnExample example);", "@Override\r\n public int delete(Uri uri, String where, String[] whereArgs) {\n return 0;\r\n }", "@FormUrlEncoded\n\t@POST(\"post/delete\")\n\tCall<BasicResponse> deleteItem(\n\t\t\t\t\t@Field(\"id_content\") String idContent);", "@Override\n\tpublic void delete(ExperTypeVO expertypeVO) {\n\n\t}", "@Override\n\tpublic String deleteByPrimaryKey(Familynames record, Model m) throws Exception {\n\t\treturn null;\n\t}", "public OFMeterMod meterBuildDelete(int meterID) {\n\t\t\t// return meterBuild(OFMeterModCommand.DELETE, meterID, METER_RATE_DEFAULT,\n\t\t\t// METER_BURST_SIZE_DEFAULT, true, true);\n\t\t\treturn factory.buildMeterMod().setCommand(OFMeterModCommand.DELETE).setMeterId(meterID).build();\n\t\t}", "void delete(ServiceSegmentModel serviceSegment);", "private static ORMSQLContext buildDeleteColumnList(Object obj, com.corm.mapping.generated.Class clazz){\n\t\tString table = clazz.getColumnFamily();\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"DELETE FROM \" + table+\" where \" );\n\n\t\tSet<com.corm.mapping.generated.Column> properties = ORMPropertyListBuilder.buildDelete(obj, clazz.getName());\n\n\t\tfor(com.corm.mapping.generated.Column column: properties){\n\t\t\tString name = column.getName();\n\t\t\tbuilder.append(name).append(\"=? AND \");\t\t\t\n\t\t}\n\t\t\n\n\t\tbuilder.trimToSize();\t\t\n\n\t\tint backTrack=(properties.size() == 0)?4:0;\n\t\t\n\t\t\n\t\tString sql=builder.substring(0,builder.length() -backTrack) ;\n\t\t\n\t\treturn new ORMSQLContext(sql,properties);\n\t\t\n\t}", "protected abstract void doDelete();", "int deleteByExample(FinMonthlySnapModelExample example);", "@Override\n protected Response run(Object data) throws Exception {\n return (Response) HttpUtils.doRequest(services.createDeleteRequest(topicId)).result;\n }", "int deleteByExample(organize_infoBeanExample example);", "String getDeleteStatement(\r\n TypedKeyValue<List<String>, List<String>> fieldsAndValues,\r\n String tableName, String key);", "public Builder clearDeleteBackUp() {\n if (deleteBackUpBuilder_ == null) {\n if (msgCase_ == 12) {\n msgCase_ = 0;\n msg_ = null;\n onChanged();\n }\n } else {\n if (msgCase_ == 12) {\n msgCase_ = 0;\n msg_ = null;\n }\n deleteBackUpBuilder_.clear();\n }\n return this;\n }" ]
[ "0.6078416", "0.5823103", "0.57274634", "0.57252884", "0.56986654", "0.56957877", "0.56411123", "0.559201", "0.559201", "0.5591322", "0.5548411", "0.5508512", "0.5503476", "0.54778093", "0.5477039", "0.54687035", "0.5465178", "0.54518217", "0.54096514", "0.53865576", "0.53456897", "0.5337815", "0.5329897", "0.53043413", "0.5286487", "0.5283107", "0.52817637", "0.5267557", "0.5261398", "0.5254392", "0.5251866", "0.5240957", "0.52248627", "0.5218764", "0.5217419", "0.5214864", "0.52022153", "0.519669", "0.5185771", "0.5181678", "0.5181678", "0.5181505", "0.5169588", "0.51603985", "0.5156987", "0.51546836", "0.5152421", "0.5150502", "0.51466393", "0.5142857", "0.51381385", "0.5134869", "0.5131134", "0.5130862", "0.5124517", "0.5122091", "0.51220745", "0.5121151", "0.5111589", "0.5110738", "0.51091975", "0.5108792", "0.51031363", "0.5099997", "0.50964653", "0.5096366", "0.509459", "0.509459", "0.5090515", "0.50883406", "0.5082356", "0.5070167", "0.50647604", "0.506265", "0.5061376", "0.50579315", "0.50566727", "0.5050447", "0.50484246", "0.50478244", "0.50474846", "0.5028987", "0.5027894", "0.50274175", "0.50225204", "0.50222373", "0.50219184", "0.50162", "0.5015871", "0.50152904", "0.5013148", "0.50013757", "0.50004554", "0.5000066", "0.49918732", "0.4989939", "0.49860397", "0.49845898", "0.4981931", "0.4975901", "0.49758783" ]
0.0
-1
verify the required parameter 'workspaceId' is set
@SuppressWarnings("rawtypes") private okhttp3.Call deleteModelValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException { if (workspaceId == null) { throw new ApiException("Missing the required parameter 'workspaceId' when calling deleteModel(Async)"); } // verify the required parameter 'modelId' is set if (modelId == null) { throw new ApiException("Missing the required parameter 'modelId' when calling deleteModel(Async)"); } okhttp3.Call localVarCall = deleteModelCall(workspaceId, modelId, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }", "public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }", "@Test\r\n \tpublic void testProjectID() {\n \t\tassertNull(localProject.getGlobalProjectId());\r\n \t}", "public String getWorkspaceId() {\n return workspaceId;\n }", "public String getWorkspaceId() {\n return this.workspaceId;\n }", "public UUID getWorkspaceId() {\n return workspaceId;\n }", "@Test\n\tpublic void getProjectByIdInvalid() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.getProjectById(7L);\n\t}", "@Test\n\tpublic void updateProjectsInvalidId() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.updateProject(7L, project);\n\t}", "@Test\n public void checkExistentWidgetAndParameter() throws Exception {\n\n driver = WidgetUtils.OpenWidgetEditMode(driver, wait, baseUrl, widgetName);\n\n //Step 3 - Check if the parameter exist in 'Settings'\n //Move to the iframe\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='solutionNavigatorAndContentPanel']/div[4]/table/tbody/tr[2]/td/div/div/table/tbody/tr/td/iframe\")));\n WebElement frameCDEDashboard = driver.findElement(By.xpath(\"//div[@id='solutionNavigatorAndContentPanel']/div[4]/table/tbody/tr[2]/td/div/div/table/tbody/tr/td/iframe\"));\n driver.switchTo().frame(frameCDEDashboard);\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='layoutPanelButton']\")));\n assertTrue(driver.findElement(By.xpath(\"//div[@class='layoutPanelButton']\")).isEnabled());\n //Press 'Settings'\n driver.findElement(By.xpath(\"//div[@id='headerLinks']/div[5]/a\")).click();\n wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.xpath(\"//div[@id='popup']\")));\n assertNotNull(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/input\")));\n //The parameter MUST be equal to the one set\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@id='widgetParameters']/div/span\")));\n assertEquals(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/span\")).getText(), paramName);\n //Press on the check box\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@id='widgetParameters']/div/input\")));\n assertTrue(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/input\")).isSelected());\n //Press button 'Cancel'\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='popupbuttons']/button[@id='popup_state0_buttonCancel']\")));\n driver.findElement(By.xpath(\"//div[@class='popupbuttons']/button[@id='popup_state0_buttonCancel']\")).click();\n\n\n //Step 4 - Click on Component Panel and check if the widget is listed\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='componentsPanelButton']\")));\n driver.findElement(By.xpath(\"//div[@class='componentsPanelButton']\")).click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/h3/span\")));\n driver.findElement(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/h3/span\")).click();\n //Getting the element where the widget created is displayed\n WebElement listOfWidgets = driver.findElement(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/div\"));\n //Check if the widget created is listed\n WebElement theWidgetCreated = listOfWidgets.findElement(By.xpath(\"//a[@class='tooltip' and contains(text(),'\" + widgetName + \"')]\"));\n assertNotNull(theWidgetCreated);\n assertEquals(theWidgetCreated.getText(), widgetName);\n\n\n //Step 5 - Click in the widget created and check if the widget is add at Components column and Properties\n theWidgetCreated.click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//table[@id='table-cdfdd-components-components']/tbody/tr[4]/td\")));\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//table[@id='table-cdfdd-components-properties']/tbody/tr[2]/td\")));\n assertEquals(driver.findElement(\n By.xpath(\"//table[@id='table-cdfdd-components-components']/tbody/tr[4]/td\")).getText(),\n widgetName + \" Widget\");\n assertEquals(driver.findElement(\n By.xpath(\"//table[@id='table-cdfdd-components-properties']/tbody/tr[2]/td\")).getText(),\n \"Parameter \" + paramName);\n }", "public void setWorkspace( Integer workspace ) {\n this.workspace = workspace;\n }", "public void setWorkspace(String workspace) {\n this.workspace = workspace;\n }", "protected static Workspace getWorkspace(String workspaceId)\n throws AnaplanAPIException {\n if (workspaceId == null || workspaceId.isEmpty()) {\n LOG.error(\"A workspace ID must be provided\");\n return null;\n }\n Workspace result = null;\n\n if (!noValidateWorkspace) {\n try {\n result = getService().getWorkspace(workspaceId);\n } catch (WorkspaceNotFoundException | UnknownAuthenticationException ignored) {\n }\n }\n if (result == null) {\n WorkspaceData data = new WorkspaceData();\n data.setId(workspaceId);\n try {\n result = new Workspace(getService(), data);\n } catch (UnknownAuthenticationException ignored) {\n }\n }\n return result;\n }", "public BaseMsg verifyProjectInfo(long projectId);", "private boolean assertIdAndVarName() {\r\n\t\tfinal boolean isValidId = assertNotEmpty(cmpCfg.getId(),\r\n\t\t\t\tYValidationAspekt.VIEW_ID_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValidVar = assertNotEmpty(cmpCfg.getVariableName(),\r\n\t\t\t\tYValidationAspekt.VIEW_VAR_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValid = isValidId && isValidVar;\r\n\t\treturn isValid;\r\n\r\n\t}", "private void validatePathParameters(final Integer datacenterId) throws NotFoundException\n {\n if (!service.isAssignedTo(datacenterId, RemoteServiceType.NODE_COLLECTOR))\n {\n throw new NotFoundException(APIError.NOT_ASSIGNED_REMOTE_SERVICE_DATACENTER);\n }\n }", "public void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public boolean isIdExist(int projectId) throws EmployeeManagementException;", "boolean canAccess(String workspaceName) throws NoSuchWorkspaceException, RepositoryException;", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "@Test\n public void testBuildWithValidParametersReturnsProjectExportParametersInstance() {\n // Arrange\n testling.setProjectName(\"validProjectName\")\n .setProjectExportPath(\"validProjectExportPath\");\n\n // Assert\n ProjectExportParameters parameters = testling.build();\n\n // Act\n assertThat(\"Expect not null.\", parameters, is(notNullValue()));\n }", "@Test\n\tpublic void deleteProjectsInvalidID() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.deleteProject(7L);\n\t}", "@Test\n\tpublic void testBuildWithValidParametersReturnsProjectExportParametersInstance() {\n\t\t// Arrange\n\t\ttestling.setProjectName(\"validProjectName\")\n\t\t\t\t.setProjectExportPath(\"validProjectExportPath\");\n\n\t\t// Assert\n\t\tProjectExportParameters parameters = testling.build();\n\n\t\t// Act\n\t\tassertThat(\"Expect not null.\", parameters, is(notNullValue()));\n\t}", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "public void testPropFindForNonExistingWorkspace() throws Exception\n {\n String file = TestUtils.getFileName();\n\n ContainerResponse response =\n service(WebDAVMethods.PROPFIND, getPathWS() + \"_\" + file, \"\", null, null);\n assertEquals(HTTPStatus.CONFLICT, response.getStatus());\n }", "public interface WorkspaceContext {\n\n\n /**\n * Retorna a representação do workspace.\n *\n * @return\n */\n WorkspaceRepresentation getWorkspace();\n\n /**\n * Define o projeto de trabalho.\n *\n * @param projectRepresentation\n */\n void setWorkingProject(ProjectRepresentation projectRepresentation);\n\n\n /**\n * Retorna o projeto de trabalho.\n *\n * @return\n */\n ProjectRepresentation getWorkingProject();\n}", "protected void addWorkspace( String workspaceName ) {\n }", "@Reference\n public void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public void testGetProjectPhasesLong_NotExist() throws Exception {\n Project project = persistence.getProjectPhases(33245);\n assertNull(\"Should return null.\", project);\n }", "protected void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "@Test\n\tpublic void query_for_build_project_is_scoped_to_BuildProject() {\n\t\tEnvironmentContext cx = null;\n\t\ttry {\n\t\t\tcx = new EnvironmentContext();\n\t\t} catch (Exception e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t// And a new repository with that connection\n\t\tBuildProjectRepository repository = new BuildProjectRepositoryApiClient(cx);\n\t\t// When I build the query for story statuses\n\t\tQuery query = repository.buildQueryForAllBuildProjects();\n\t\t// Then the asset type is BuildProject\n\t\tassertEquals(\"BuildProject\", query.getAssetType().getToken());\n\t}", "private void checkAuthSessionId() {\n val auth = config.getString(\"authSessionId\");\n\n checkArgument(auth.length() > 10, \"auth string (sessionId) length is less than or equal to 10!\");\n }", "public boolean checkSelf() {\n\t\tboolean ok = true;\n\t\tif (controller == null) {\n\t\t\tSystem.err.println(\"CRParameters :: controller not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (scenario.length() == 0 && controller.getWorld().getHasScenarios()) {\n\t\t\tSystem.err.println(\"CRParameters :: scenario not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (reportFolderName.length() == 0) {\n\t\t\tSystem.err.println(\"CRParameters :: report folder not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (trialDuration <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: trial duration not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfRuns <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of runs not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfTrials <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of trials not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\treturn ok;\n\t}", "private void validateGetIdPInputValues(String resourceId) throws IdentityProviderManagementException {\n\n if (StringUtils.isEmpty(resourceId)) {\n String data = \"Invalid argument: Identity Provider resource ID value is empty\";\n throw IdPManagementUtil.handleClientException(IdPManagementConstants.ErrorMessage\n .ERROR_CODE_IDP_GET_REQUEST_INVALID, data);\n }\n }", "public FormValidation doCheckExecutionParameters(@QueryParameter String value, @QueryParameter String agentId) {\n if (StringUtils.isEmpty(value) && StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n JsonObject executionParams = null;\n try {\n executionParams = SerializationHelper.fromJson(value, JsonObject.class);\n\n // In case the value parameter is empty\n if (executionParams == null)\n return FormValidation.ok();\n\n } catch (JsonSyntaxException e) {\n return FormValidation.error(\"Invalid JSON object\");\n }\n\n // In case the user did not select agent from the dropdown and/or in the JSON object, return ok.\n if ((executionParams.get(\"agentId\") != null && StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString())) || StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n // In case the user has selected the same agentId in the dropdown and in the JSON object, no need to show a warning\n if ((executionParams.get(\"agentId\") != null && StringUtils.equals(executionParams.get(\"agentId\").getAsString(), agentId)))\n return FormValidation.ok();\n\n // In case the user has selected two different agents in the dropdown and in the JSON object, show warning\n if (executionParams.get(\"agentId\") != null &&\n !StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString()) &&\n !StringUtils.isEmpty(agentId))\n return FormValidation.warning(\"You've selected an agent and specified a different one in executionParameters. The job will be executed on the selected agent.\");\n\n return FormValidation.ok();\n }", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "protected void removeWorkspace( String workspaceName ) {\n }", "public boolean isSetRunId() {\n return this.runId != null;\n }", "@Test\n public void testErrorMsgWhenProjectNameIsEmpty() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String testAccount = \"Account2\";\n createProject.setAccountDropDown(testAccount);\n createProject.clickCreateProject();\n\n //Then\n String expectedMessage = \"Enter a name for your project\";\n String actualMessage = createProject.getProjectTitleMessage();\n softAssert.assertEquals(expectedMessage, actualMessage);\n softAssert.assertEquals(createProject.getProjectNameTextFieldColor(), RED_COLOR);\n softAssert.assertAll();\n }", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "public void setStagingWorkspaceId(Long stagingWorkspaceId) {\n this.stagingWorkspaceId = stagingWorkspaceId;\n }", "@Override\n public String validNameProject(String name, Integer project_Oid) {\n return null;\n }", "public String getWorkspaceName() {\n return workspaceName;\n }", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorWorkspaceNull() {\n PlannedActivity plannedActivity = new PlannedActivity(0,\n new Site(\"factory\", \"area\"), new Typology(\"typology\"),\n \"desctiption\", 0, true, 1, new Procedure(\"name\", \"smp\"), null);\n\n }", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test\n public void testWithActiveRunNoRunName() {\n MlflowContext mlflow = setupMlflowContext();\n mlflow.setExperimentId(\"123\");\n when(mockClient.createRun(any(CreateRun.class)))\n .thenReturn(RunInfo.newBuilder().setRunId(\"test-id\").build());\n mlflow.withActiveRun(activeRun -> {\n Assert.assertEquals(activeRun.getId(), \"test-id\");\n });\n verify(mockClient).createRun(any(CreateRun.class));\n verify(mockClient).setTerminated(any(), any());\n }", "public void test_61843() {\n \t\t// create the project and manually give it a settings file\n \t\tfinal String qualifier = getUniqueString();\n \t\tfinal IProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tIFile settingsFile = getFileInWorkspace(project, qualifier);\n \n \t\t// write some property values in the settings file\n \t\tProperties properties = new Properties();\n \t\tproperties.put(\"key\", \"value\");\n \t\tOutputStream output = null;\n \t\ttry {\n \t\t\tFile file = settingsFile.getLocation().toFile();\n \t\t\tfile.getParentFile().mkdirs();\n \t\t\toutput = new BufferedOutputStream(new FileOutputStream(file));\n \t\t\tproperties.store(output, null);\n \t\t} catch (FileNotFoundException e) {\n \t\t\tfail(\"1.0\", e);\n \t\t} catch (IOException e) {\n \t\t\tfail(\"1.1\", e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (output != null)\n \t\t\t\t\toutput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\t// ignore\n \t\t\t}\n \t\t}\n \n \t\t// add a log listener to ensure that no errors are reported silently\n \t\tILogListener logListener = new ILogListener() {\n \t\t\tpublic void logging(IStatus status, String plugin) {\n \t\t\t\tThrowable exception = status.getException();\n \t\t\t\tif (exception == null || !(exception instanceof CoreException))\n \t\t\t\t\treturn;\n \t\t\t\tif (IResourceStatus.WORKSPACE_LOCKED == ((CoreException) exception).getStatus().getCode())\n \t\t\t\t\tfail(\"3.0\");\n \t\t\t}\n \t\t};\n \n \t\t// listener to react to changes in the workspace\n \t\tIResourceChangeListener rclistener = new IResourceChangeListener() {\n \t\t\tpublic void resourceChanged(IResourceChangeEvent event) {\n \t\t\t\tnew ProjectScope(project).getNode(qualifier);\n \t\t\t}\n \t\t};\n \n \t\t// add the listeners\n \t\tPlatform.addLogListener(logListener);\n \t\tgetWorkspace().addResourceChangeListener(rclistener, IResourceChangeEvent.POST_CHANGE);\n \n \t\ttry {\n \t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"4.0\", e);\n \t\t} finally {\n \t\t\tPlatform.removeLogListener(logListener);\n \t\t\tgetWorkspace().removeResourceChangeListener(rclistener);\n \t\t}\n \t}", "@Test\n public void getComputerBuildByIdentifier() {\n Iterable<ComputerBuild> computerBuilds = computerBuildService.getAllComputerBuildsFromUser(USER_NAME_TO_TEST_OWNERSHIP_ENDPOINTS);\n ComputerBuild retrievedBuild = computerBuilds.iterator().next();\n assertNotNull(retrievedBuild);\n\n ComputerBuild foundBuild = computerBuildService.getComputerBuildByBuildIdentifier(retrievedBuild.getBuildIdentifier());\n\n assertNotNull(foundBuild);\n assertEquals(retrievedBuild.getBuildIdentifier(), foundBuild.getBuildIdentifier());\n assertEquals(retrievedBuild.getUser().getUsername(), foundBuild.getUser().getUsername());\n\n }", "@Test\n public void testValidToken() {\n try {\n int coachId = authBO.getUserIdAndValidateToken(\"thisisaworkingtoken\");\n Assert.assertTrue(coachId == 1);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "String checkIfProjectExists(String projectKey, String projectName);", "@Override\r\n protected CommandStatus<StclContext, PStcl> verifyContext(CommandContext<StclContext, PStcl> cmdContext, PStcl self) {\n _name = getParameter(cmdContext, 1, null);\r\n if (StringUtils.isEmpty(_name)) {\r\n return error(cmdContext, self, Status.NO_NAME_DEFINED, \"no name to copy directory\");\r\n }\r\n\r\n // other verification\r\n return super.verifyContext(cmdContext, self);\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 }", "@Test\n public void test_access_to_modify_team_success() {\n try {\n Assert.assertTrue(authBO.hasAccessToModifyTeam(1, 1));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "private boolean configurationInWorkspace(URL url) {\n \t\treturn true;\n \t}", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExists() {\n assertThrows(NotFoundException.class, () -> projectService.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Test\n public void testNoCoverageId() throws Exception {\n MockHttpServletResponse response = getAsServletResponse(\"wcs?service=WCS&version=2.0.1&request=GetCoverage\");\n checkOws20Exception(response, 400, \"MissingParameterValue\", \"coverageId\");\n }", "void verifyOrCreateReport(String reportId);", "public void testGetProjectByNameDoesNotExist() throws Exception {\r\n ProjectServiceRemote projectService = lookupProjectServiceRemoteWithUserRole();\r\n\r\n // 1 is the user id\r\n try {\r\n projectService.getProjectByName(\"xxxxx\", 1);\r\n fail(\"ProjectNotFoundFault expected.\");\r\n } catch (ProjectNotFoundFault e) {\r\n // expected\r\n }\r\n }", "@Test\n public void testFailureWithoutObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, \"\", 400);\n }", "private boolean ensureWorkspaceExists(String name, Credentials credentials) {\r\n\t\tSession sess = null;\r\n\t\ttry {\r\n\t\t\tsess = repository.login(credentials);\r\n\t\t\tString[] wsnames = sess.getWorkspace()\r\n\t\t\t\t\t.getAccessibleWorkspaceNames();\r\n\t\t\tif (inArr(name, wsnames)) {\r\n\t\t\t\t// workspace exists\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tlog.info(\" Creating Repository workspace \" + name);\r\n\t\t\t\tsess.getWorkspace().createWorkspace(name);\r\n\t\t\t}\r\n\t\t} catch (LoginException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t} catch (RepositoryException e) {\r\n\t\t\t// ugly check, we are getting something like workspace 'wsname'\r\n\t\t\t// already exists.\r\n\t\t\tif (e.getMessage().indexOf(\"already exists\") > 0) {\r\n\t\t\t\t// ignore exteption\r\n\t\t\t} else {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif (sess != null) {\r\n\t\t\t\tsess.logout();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Test\n public void allWorkspacesTest() throws ApiException {\n List<Workspace> response = api.allWorkspaces();\n\n // TODO: test validations\n }", "@Test\n public void testFailureWithNonexistantObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, reqFactory.createIdApiRequest(Types.PACKAGE).execute(hc), 404);\n }", "public String getWorkspace() {\n return workspace;\n }", "void checkStationId(int lineCount, String testStationId) {\n if (!stationId.equals(testStationId)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Station Id does not match previous station record \" +\n stationId + \": \" + testStationId);\n } // if (!stationId.equals(station.getStationId(\"\")))\n }", "protected void verifyRequestInputModelNone( String apiName)\n {\n // Given...\n OpenAPI api = readApi( apiName);\n\n // When...\n SystemInputDef inputDef = TcasesOpenApi.getRequestInputModel( api);\n\n // Then...\n assertThat( apiName + \" input model\", inputDef, is( nullValue()));\n }", "@Test\n public void testNeighborSystemId() throws Exception {\n isisNeighbor.setNeighborSystemId(systemId);\n result1 = isisNeighbor.neighborSystemId();\n assertThat(result1, is(systemId));\n }", "void commit(String workspace);", "protected void validateCredentials() throws BittrexApiException {\n String humanMessage = \"Please check environment variables or VM options\";\n if (Strings.isNullOrEmpty(this.getApiKey()))\n throw new BittrexApiException(\"Missing BITTREX_API_KEY. \" + humanMessage);\n if (Strings.isNullOrEmpty(this.getSecretKey()))\n throw new BittrexApiException(\"Missing BITTREX_SECRET_KEY. \" + humanMessage);\n }", "@Test\n\tpublic void testGetBuildVersion() {\n\t\tString buildVersion = rmitAnalyticsModel.getBuildVersion();\n\t\tAssert.assertNotNull(buildVersion);\n\t\tAssert.assertTrue(buildVersion.isEmpty());\n\t}", "@Test\n public void enableDebuggerTest() {\n String customerId = null;\n // Void response = api.enableDebugger(customerId);\n\n // TODO: test validations\n }", "public void checkParameters() {\n }", "public Workspace getWorkspace() {\n return workspace;\n }", "private void verifyWorkspace(long[][][] ids) {\n ArrayList<Long> allScreens = LauncherModel.loadWorkspaceScreensDb(getMockContext());\n assertEquals(ids.length, allScreens.size());\n int total = 0;\n\n for (int i = 0; i < ids.length; i++) {\n long screenId = allScreens.get(i);\n for (int y = 0; y < ids[i].length; y++) {\n for (int x = 0; x < ids[i][y].length; x++) {\n long id = ids[i][y][x];\n\n Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI,\n new String[]{LauncherSettings.Favorites._ID},\n \"container=-100 and screen=\" + screenId +\n \" and cellX=\" + x + \" and cellY=\" + y, null, null, null);\n if (id == -1) {\n assertEquals(0, c.getCount());\n } else {\n assertEquals(1, c.getCount());\n c.moveToNext();\n assertEquals(id, c.getLong(0));\n total++;\n }\n c.close();\n }\n }\n }\n\n // Verify that not other entry exist in the DB.\n Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI,\n new String[]{LauncherSettings.Favorites._ID},\n \"container=-100\", null, null, null);\n assertEquals(total, c.getCount());\n c.close();\n }", "@Override\r\n\tpublic Workspace getWorkspace() {\n\t\treturn null;\r\n\t}", "@Test\n public void postTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.postTemplateProgrammerProject(request);\n\n // TODO: test validations\n }", "private void validateITResource() {\n // TODO Auto-generated method stub\n \n }", "private void assert_validPID(int pid) throws IllegalArgumentException{\n\t\tif(!validPID(pid)){\n\t\t\tthrow new IllegalArgumentException(\"Tried to get a property from layer '\"+ name\n\t\t\t\t\t+\"' with an invalid property ID: \"+pid);\n\t\t}\n\t}", "public static boolean isValidDivisionId(int divisionId) {\n return divisionId > 0 || divisionId == DIVISION_TEST || divisionId == DIVISION_GLOBAL;\n }", "private boolean checkInstanceLocation(boolean show_login,\n final boolean force_prompt,\n URL default_workspace, String username, String password,\n Map<String, Object> parameters)\n {\n // Was \"-data @none\" specified on command line?\n final Location instanceLoc = Platform.getInstanceLocation();\n\n if (instanceLoc == null)\n {\n MessageDialog.openError(null,\n \"No workspace\", //$NON-NLS-1$\n \"Cannot run without a workspace\"); //$NON-NLS-1$\n return false;\n }\n\n // -data \"/some/path\" was provided...\n if (instanceLoc.isSet())\n {\n try\n { // Lock\n if (instanceLoc.lock())\n return true;\n // Two possibilities:\n // 1. directory is already in use\n // 2. directory could not be created\n final File ws_dir = new File(instanceLoc.getURL().getFile());\n if (ws_dir.exists())\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_InUseErrorTitle,\n NLS.bind(org.csstudio.platform.workspace.Messages.Workspace_InUseError,\n ws_dir.getCanonicalPath()));\n else\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_DirectoryErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_DirectoryError);\n }\n catch (IOException ex)\n {\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_LockErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_LockError\n + ex.getMessage());\n }\n return false;\n }\n\n // -data @noDefault or -data not specified, prompt and set\n if (default_workspace == null)\n default_workspace = instanceLoc.getDefault();\n\n final WorkspaceInfo workspace_info =\n new WorkspaceInfo(default_workspace, !force_prompt);\n\n // Prompt in any case? Or did user decide to be asked again?\n boolean show_Workspace = force_prompt | workspace_info.getShowDialog();\n\n //if no user name provided, display last login user.\n if(username == null)\n username = WorkspaceIndependentStore.readLastLoginUser();\n\n //initialize startupHelper\n StartupHelper startupHelper = new StartupHelper(null, force_prompt,\n workspace_info, username, password, show_login, show_Workspace);\n\n while (true)\n {\n startupHelper.setShow_Login(show_login);\n startupHelper.setShow_Workspace(show_Workspace);\n\n if (show_Workspace || show_login)\n {\n if (! startupHelper.openStartupDialog())\n return false; // canceled\n\n //get user name and password from startup dialog\n if(show_login) {\n username = startupHelper.getUserName();\n password = startupHelper.getPassword();\n }\n }\n // In case of errors, we will have to ask the workspace,\n // but don't bother to ask user name and password again.\n show_Workspace = true;\n show_login = false;\n\n try\n {\n // the operation will fail if the url is not a valid\n // instance data area, so other checking is unneeded\n URL workspaceUrl = new URL(\"file:\" + workspace_info.getSelectedWorkspace()); //$NON-NLS-1$\n if (instanceLoc.set(workspaceUrl, true)) // set & lock\n {\n workspace_info.writePersistedData();\n parameters.put(WORKSPACE, workspaceUrl);\n return true;\n }\n }\n catch (Exception ex)\n {\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_GenericErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_GenericError + ex.getMessage());\n return false;\n }\n // by this point it has been determined that the workspace is\n // already in use -- force the user to choose again\n show_login = false;\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_InUseErrorTitle,\n NLS.bind(org.csstudio.platform.workspace.Messages.Workspace_InUseError,\n workspace_info.getSelectedWorkspace()));\n }\n }", "@Test\n void testNonEmptyConstructor() {\n assertNotNull(isLockedRequest2);\n assertTrue(isLockedRequest2.getToken().equals(token)\n && isLockedRequest2.getId() == id);\n }", "@Then(\"^Validate customer id is created$\")\r\n\tpublic void validate_customer_id_is_created() throws Throwable {\n\t\tAssert.assertTrue(response.jsonPath().get(\"id\").equals(new PropertFileReader().getTempData(\"custId\")));\r\n\t\t\r\n\t}", "public Workspace build() {\n if (properties == null) {\n properties = new HashMap<>();\n }\n if (workspaceId == null || workspaceStage == null) {\n throw new MissingRequiredFieldsException(\"Workspace requires id and stage\");\n }\n return new Workspace(\n workspaceId,\n displayName,\n description,\n spendProfileId,\n properties,\n workspaceStage,\n gcpCloudContext);\n }", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExistsMockVersion() {\n assertThrows(NotFoundException.class, () -> projectServiceMock.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Test\n public void given_devEnvironmentWithPathVariable_when_callEndPointUpdateStudent_then_returnStatus200() throws Exception {\n\n Mockito.when(studentRepo.findById(ArgumentMatchers.anyLong()))\n .thenReturn(Optional.of(STUDENT));\n\n RequestBuilder request = MockMvcRequestBuilders\n .delete(\"/students/1\")\n .accept(MediaType.APPLICATION_JSON_VALUE)\n .contentType(MediaType.APPLICATION_JSON_VALUE);\n\n mockMvc.perform(request)\n .andExpect(status().isOk())\n .andDo(MockMvcResultHandlers.print())\n .andReturn();\n\n }", "@Test(expected = CopilotServiceInitializationException.class)\n public void testCheckNullForInjectedValueFailure() {\n Helper.checkNullForInjectedValue(null, \"obj\");\n }", "@Override\r\n\tpublic void testInvalidId() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testInvalidId();\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void Test_ID() {\r\n\t\tResponse resp = given().\r\n\t\t\t\tparam(\"nasa_id\", \"PIA12235\").\r\n\t\t\t\twhen().\r\n\t\t\t\tget(endpoint);\r\n\t\t\t\tSystem.out.println(resp.getStatusCode());\r\n\t\t\t\tAssert.assertEquals(resp.getStatusCode(), 200);\r\n\t}", "@Test\n public void commandIdTest() {\n // TODO: test commandId\n }", "static void checkId(final long id, final String paramName) {\r\n if (id <= 0) {\r\n throw new IllegalArgumentException(\"The '\" + paramName\r\n + \"' should be above 0.\");\r\n }\r\n }", "public Long getStagingWorkspaceId() {\n return stagingWorkspaceId;\n }", "public void requirePatientId() {\n hasPatientIdParam = true;\n }", "@Test\n public void cityNotNull()\n {\n assertNotNull(_city);\n }", "@Override\n\tpublic boolean hasParameter(String id) {\n\t\treturn false;\n\t}", "@When(\"^I enter valid credentia ls$\")\n public void iEnterValidCredentials() throws Throwable {\n throw new PendingException();\n }", "@Test\n public void putTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.putTemplateProgrammerProject(request);\n\n // TODO: test validations\n }", "private void checkLegal(int glId)\n {\n if (glId == GL2.GL_POLYGON_MODE || glId == GL2.GL_COLOR_MATERIAL_PARAMETER)\n return;\n if (GLState.TEXTURE_GROUP <= glId && glId < GLState.TEXTURE_GROUP + GLState.TEXTURE_GROUP_SIZE)\n return;\n throw new IllegalArgumentException(\"GLStateComponentII: unknown glId: \" + glId);\n }", "@Test\n\tpublic void testValidateSurveyIds() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyIds(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\tfor(String simpleValidList : ParameterSets.getSimpleValidLists()) {\n\t\t\t\ttry {\n\t\t\t\t\tSurveyResponseValidators.validateSurveyIds(simpleValidList);\n\t\t\t\t}\n\t\t\t\tcatch(ValidationException e) {\n\t\t\t\t\tfail(\"A valid list failed validation.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {listProjects} integration test with mandatory parameters.\")\n public void testListProjectsWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:listProjects\");\n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_listProjects_mandatory.json\");\n \n connectorProperties.setProperty(\"projectId\", esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0)\n .getString(\"id\"));\n \n final String apiEndPoint = apiRequestUrl + \"/projects\";\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"page\"), apiRestResponse.getBody().getString(\"page\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"pageSize\"), apiRestResponse.getBody().getString(\n \"pageSize\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0).getString(\"id\"),\n apiRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0).getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"totalItems\"), apiRestResponse.getBody().getString(\n \"totalItems\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONArray(\"items\").length(), apiRestResponse.getBody()\n .getJSONArray(\"items\").length());\n \n }", "public void testCheckinProjectFlags() {\n String[] sTestCmdLine = { \"soscmd\", \"-command\", \"CheckInProject\",\n \"-recursive\", \"-server\", SOS_SERVER_PATH, \"-name\", SOS_USERNAME,\n \"-password\", \"\", \"-database\", VSS_SERVER_PATH , \"-project\",\n \"$\"+VSS_PROJECT_PATH, \"\", \"\", \"-soshome\", SOS_HOME, \"-workdir\",\n project.getBaseDir().getAbsolutePath(), \"-log\", SRC_COMMENT, };\n\n // Set up a SOSCheckin task\n sosCheckin.setProject(project);\n sosCheckin.setVssServerPath(VSS_SERVER_PATH);\n sosCheckin.setSosServerPath(SOS_SERVER_PATH);\n sosCheckin.setProjectPath(VSS_PROJECT_PATH);\n sosCheckin.setComment(SRC_COMMENT);\n sosCheckin.setUsername(SOS_USERNAME);\n sosCheckin.setSosHome(SOS_HOME);\n sosCheckin.setNoCache(true);\n sosCheckin.setNoCompress(false);\n sosCheckin.setVerbose(false);\n sosCheckin.setRecursive(true);\n\n commandline = sosCheckin.buildCmdLine();\n String[] sGeneratedCmdLine = commandline.getCommandline();\n\n int i = 0;\n while (i < sTestCmdLine.length) {\n try {\n assertEquals(\"CheckInProject arg # \" + String.valueOf(i),\n sTestCmdLine[i],\n sGeneratedCmdLine[i]);\n i++;\n } catch (ArrayIndexOutOfBoundsException aioob) {\n fail(\"CheckInProject missing arg\");\n }\n\n }\n if (sGeneratedCmdLine.length > sTestCmdLine.length) {\n // We have extra elements\n fail(\"CheckInProject extra args\");\n }\n }", "public void validate(String id, String pw) throws RemoteException;" ]
[ "0.657872", "0.6380109", "0.62008697", "0.5976683", "0.59373516", "0.5839217", "0.5566827", "0.5448127", "0.52786946", "0.5269995", "0.5196387", "0.51607555", "0.51189697", "0.508889", "0.5064193", "0.50608283", "0.50554603", "0.50330585", "0.49991024", "0.49743348", "0.49724448", "0.49594417", "0.49197826", "0.491896", "0.490713", "0.49058446", "0.48890433", "0.48783642", "0.48597386", "0.48474434", "0.48474434", "0.48311138", "0.4807382", "0.48067132", "0.48052973", "0.47965625", "0.4796097", "0.4765143", "0.47617197", "0.47520408", "0.47512177", "0.47489437", "0.47447008", "0.4735933", "0.47065184", "0.4703288", "0.47021332", "0.46969104", "0.4696338", "0.46865094", "0.46826315", "0.4664571", "0.4663318", "0.4663316", "0.46628886", "0.46527684", "0.46514392", "0.46402842", "0.46398705", "0.46371534", "0.4636271", "0.46341985", "0.46269903", "0.46191534", "0.46178064", "0.4611531", "0.46016502", "0.4597162", "0.45966285", "0.45854414", "0.45712954", "0.4570018", "0.4569676", "0.45575714", "0.4556279", "0.45476666", "0.453692", "0.45338118", "0.4532829", "0.45237777", "0.45200512", "0.45170856", "0.4512562", "0.4510801", "0.45090535", "0.45079604", "0.4507515", "0.4506074", "0.44985104", "0.44932693", "0.44868118", "0.44845432", "0.448445", "0.44838086", "0.4479446", "0.44775915", "0.44773886", "0.44747898", "0.44694686", "0.44692975", "0.4468484" ]
0.0
-1
Delete model Delete model
public ModelApiResponse deleteModel(String workspaceId, String modelId) throws ApiException { ApiResponse<ModelApiResponse> localVarResp = deleteModelWithHttpInfo(workspaceId, modelId); return localVarResp.getData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean delete(ModelObject obj);", "public void delete( final T model )\n\t{\n\t\tthis.dao.delete( model );\n\t}", "public void delete(E model) {\n\t\tgetHibernateTemplate().delete(model);\r\n\t}", "int deleteByPrimaryKey(String EQP_MODEL_ID);", "@Override\n\tpublic boolean delete(Patient model) {\n\t\treturn false;\n\t}", "@RequestMapping(\"/delete\")\n\tpublic String delete(HttpServletRequest request, Model model) {\n\t\tdao.delete(request.getParameter(\"bId\"));\n\t\treturn \"redirect:list\"; \n\t}", "void deleteModelElement(EObject modelElement);", "public boolean delete(Base model) throws IOException {\n\t\treturn Core.delete(model, getHttpMethodExecutor());\n\t}", "@UpdateProvider(type = ServeInfoSqlProvider.class, method = \"deleteById\")\n int delete(ServeInfoDO model);", "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "@PostMapping(\"/delete-by-id\")\r\n public String deleteById(Model model,@RequestParam int id) {\r\n try {\r\n service.delete(id);\r\n model.addAttribute(\"msg\",\"Trainee deleted successfuly!\");\r\n }catch(Exception ex) {\r\n System.out.println(\"Error \"+ex.getMessage());\r\n model.addAttribute(\"msg\",\"No record found!\");\r\n }\r\n return \"delete\";\r\n }", "@Override\n\tpublic boolean delete(String internalModel) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}", "private Delete() {}", "private Delete() {}", "@Override\r\n\tpublic void deleteUserPredictModel(Long userPredictModelId) {\n\t\t\r\n\t}", "@Override\n\tpublic void delete(UserModel um) throws Exception {\n\t\tsf.getCurrentSession().delete(um);\n\t}", "@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }", "public void deleteModelAt(int index) {\r\n if (index < models.size()) {\r\n models.removeElementAt(index);\r\n }\r\n }", "@DELETE\n public void delete() {\n }", "public void deleteTodoById(@PathVariable(\"id\") long id, Model model) throws RecordNotFoundException {\n TodoItem todoItem = getTodoItemById(id);\n todoItemRepository.delete(todoItem);\n model.addAttribute(\"todoItems\", todoItemRepository.findAll());\n }", "public void deleteModel(int modelStorageId) throws StorageIOException {\n try {\n Dao<ModelDB, Integer> modelDao = this.databaseHelper.getDao(ModelDB.class);\n modelDao.deleteById(modelStorageId);\n } catch (SQLException e) {\n throw new StorageIOException(\"Failed to delete model\", e);\n }\n }", "public String deleteModel(Integer id) throws OurServerException {\n\t\tModelOfCar existingModel = repository.findById(id).get();\n\t\tString nameOfExistingModel = existingModel.getName();\n\t\tList<Car> existingCar = carRepository.findCarsByModelName(nameOfExistingModel);\n\n\t\tif (existingCar.isEmpty()) {\n\t\t\trepository.findById(id).get();\n\t\t\trepository.deleteById(id);\n\t\t\treturn (\"Model med id= \" + id + \" är raderad\");\n\t\t} else\n\t\t\t{\n\t\t\tthrow new OurServerException(\"Tyvärr kan model inte raderas!\");}\n\t}", "@Override\r\n public void delete(final String id) throws ContentModelNotFoundException, SystemException, LockingException,\r\n InvalidStatusException, ResourceInUseException {\r\n \r\n setContentModel(id);\r\n checkLocked();\r\n if (!(getContentModel().isPending() || getContentModel().isInRevision())) {\r\n throw new InvalidStatusException(\"Content Model must be is public status pending or \"\r\n + \"submitted in order to delete it.\");\r\n }\r\n \r\n // check if objects refer this content model\r\n if (this.tripleStoreUtility.hasReferringResource(id)) {\r\n throw new ResourceInUseException(\"The content model is referred by \"\r\n + \"an resource and can not be deleted.\");\r\n }\r\n \r\n // delete every behavior (sdef, sdep) even those from old versions\r\n this.fedoraServiceClient.deleteObject(getContentModel().getId());\r\n this.fedoraServiceClient.sync();\r\n this.tripleStoreUtility.reinitialize();\r\n fireContentModelDeleted(getContentModel().getId());\r\n }", "@Override\n\tpublic void deletes(String[] ids,Integer appId,Integer modelId){\n \tpromotionDao.deletes(ids, appId, modelId);\n\t}", "@PostMapping(\"/delete\")\r\n public String deleteForm(Model model,@RequestParam int traineeId) {\r\n try {\r\n Trainee trainee = service.findById(traineeId);\r\n model.addAttribute(\"trainee\", trainee);\r\n }catch(Exception ex) {\r\n System.out.println(\"Error \"+ex.getMessage());\r\n model.addAttribute(\"msg\",\"No record found!\");\r\n }\r\n return \"delete\";\r\n }", "@GetMapping(\"/deletePharmacist\")\n public String pharmacistFormDelete(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"deletePharmacist\";\n }", "public void delete(){\r\n\r\n }", "private void deleteModelData(boolean verbose) {\n File initialPath = getDir(MODEL_PATH, MODE_PRIVATE);\n File decompressedPath = new File(initialPath, modelName);\n\n if( decompressedPath.exists() ) {\n if( verbose )\n runOnUiThread(() -> Toast.makeText(ImageClassificationActivity.this,\n \"Deleting \"+modelName,Toast.LENGTH_SHORT).show());\n\n deleteDir(decompressedPath);\n } else {\n if( verbose )\n runOnUiThread(() -> Toast.makeText(ImageClassificationActivity.this,\n \"Nothing to delete\",Toast.LENGTH_SHORT).show());\n }\n }", "public static void deleteAllModels() {\n\n ConsoleLogger.printHeader(\"Deleting models\");\n\n // This is to ensure models are deleted in an order such that no other models are referencing it.\n List<String> models = asList(SamplesConstants.ROOM_MODEL_ID, SamplesConstants.WIFI_MODEL_ID, SamplesConstants.BUILDING_MODEL_ID, SamplesConstants.FLOOR_MODEL_ID, SamplesConstants.HVAC_MODEL_ID);\n\n // Call APIs to delete the models.\n // Note that we are blocking the async API call. This is to ensure models are deleted in an order such that no other models are referencing it.\n models\n .forEach(modelId -> {\n try {\n client.deleteModel(modelId).block();\n ConsoleLogger.printSuccess(\"Deleted model: \" + modelId);\n } catch (ErrorResponseException ex) {\n if (ex.getResponse().getStatusCode() != HTTP_NOT_FOUND) {\n ConsoleLogger.printFatal(\"Could not delete model \" + modelId + \" due to \" + ex);\n }\n }\n });\n }", "int deleteByExample(TbComEqpModelExample example);", "public void delete() \n\t\t\t\tthrows model.ConsistencyException, PersistenceException{\n //TODO Check delegation to abstract class and overwrite if necessary!\n this.getMyCONCMModelItem().delete();\n }", "public void delete() {\n\n\t}", "@GetMapping(\"/eliminar/{id}\")\n\tpublic String delete(@PathVariable Long id, Model model) {\n\t\tif (diagramaService.exists(id)) {\n\t\t\tFile file = new File(diagramaService.find(id).get().getPathArchivo());\n\t\t\tboolean val = file.delete();\n\t\t\t\n\t\t\t//No se si validaran esto asi que lo dejo asi\n\t\t\tif(val){ //si no hay ningun error al borrar el archivo, borramos de la base de datos\n\t\t\t\tdiagramaService.delete(id);\n\t\t\t} else {\n\t\t\t\t//Error al eliminar archivo\n\t\t\t}\n\t\t}\n\t\treturn \"redirect:/diagramas\";\n\t}", "public void delete() throws EntityPersistenceException {\n\n }", "public static void deleteInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\tBase.deleteInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "@DeleteMapping(name = \"delete\")\n\tpublic ResponseEntity<?> delete(@ModelAttribute Entity entity) {\n\t\tgetService().delete(entity);\n\t\treturn ResponseEntity.ok().build();\n\t}", "@Override\n\tpublic int deleteById(Integer pk) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int deleteById(Integer pk) {\n\t\treturn 0;\n\t}", "private void deleteEmployeeBooking() {\n BookingModel bookingModel1 = new BookingModel();\n try {\n bookingModel1.deleteBooking(employeeID);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public void delete(Object bo) {\r\n getPersistenceBrokerTemplate().delete(bo);\r\n }", "@Test\r\n\tpublic void testDelete() {\n\t\tint todos = modelo.getAll().size();\r\n\r\n\t\tassertTrue(modelo.delete(1));\r\n\r\n\t\t// comprobar que este borrado\r\n\t\tassertNull(modelo.getById(1));\r\n\r\n\t\t// borrar un registro que no existe\r\n\t\tassertFalse(modelo.delete(13));\r\n\t\tassertNull(modelo.getById(13));\r\n\r\n\t\tassertEquals(\"debemos tener un registro menos\", (todos - 1), modelo\r\n\t\t\t\t.getAll().size());\r\n\r\n\t}", "private void actionDelete(final ImageDataModel modelData) {\r\n // Remove the item from Current List of GalleryHelperBaseOnId.class\r\n if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.LIST_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelper.imageDataModelList.remove(modelData);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewData.imageDataModelList.remove(modelData);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageDataModelList.remove(modelData);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageDataModelList.remove(modelData);\r\n }\r\n }\r\n\r\n if (SharedPref.getAlbumType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.ALBUM_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelperBaseOnId.dataModelArrayList.remove(modelData);\r\n // Remove the item from Main List of GalleryHelper.class\r\n GalleryHelper.imageFolderMap.get(nameKey).remove(modelData);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n VideoViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n AudioViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n PhotoViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n }\r\n }\r\n\r\n\r\n final String message = String.format(getString(R.string.delete_success_message));\r\n try {\r\n // method to deleting the selected file\r\n FileUtils.deleteFile(modelData.getFile());\r\n FileUtils.deleteDirectory(modelData.getFile().getParentFile());\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n // method to scan the file and update its position\r\n FileUtils.scanFile(PhotoViewActivity.this, modelData.getFile());\r\n\r\n SDKUtils.showToast(PhotoViewActivity.this, message);\r\n // notify viewpager adapter\r\n notifyAdapter();\r\n if (CustomPagerAdapter != null)\r\n CustomPagerAdapter.itemCheckInList();\r\n }", "public JavapurchaseModel deletepurchase(JavapurchaseModel oJavapurchaseModel){\n\n \t\t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing purchase from the database*/\n oJavapurchaseModel = (JavapurchaseModel) hibernateSession.get(JavapurchaseModel.class, oJavapurchaseModel.getpurchaseId());\n\n\n /* Delete the existing purchase from the database*/\n hibernateSession.delete(oJavapurchaseModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavapurchaseModel;\n }", "@Override\n\tpublic Integer delModel(String tagID) throws BaseException {\n\t\treturn this.delete(\"Mapper.PhotoTag.deleteByID\", tagID);\n\t}", "@RequestMapping(\"/delete\")\n\tpublic String delete(Model model, int email, HttpServletRequest request) {\n\t\t\n\t\ttry {\n\t\t\ttestDao.delete(email);\n\t\t\tList<TestBean> list = new ArrayList<>();\n\t\t\tlist=testDao.findAll();\n\t\t\trequest.getSession().setAttribute(\"listUser\", list);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\treturn \"index2\";\n\t}", "@Test\n @JUnitTemporaryDatabase // Relies on specific IDs so we need a fresh database\n public void testDelete() throws Exception {\n createAndFlushServiceTypes();\n createAndFlushCategories();\n \n //Initialize the database\n ModelImporter mi = m_importer;\n String specFile = \"/tec_dump.xml.smalltest\";\n mi.importModelFromResource(new ClassPathResource(specFile));\n \n assertEquals(10, mi.getNodeDao().countAll());\n }", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "@Synchronized\r\n public void deleteTransferModel(String itemId) {\r\n databaseHandler.getWritableDatabase();\r\n databaseHandler.deleteData(\r\n TableTransferModel.TABLE_NAME, TableTransferModel.id + \"=?\",\r\n new String[]{itemId + \"\"}\r\n );\r\n }", "public void actionPerformed(ActionEvent e) {\n model.deleteRow();\n }", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "public String deleteModelByName(String name) throws OurServerException {\n\n\t\tModelOfCar gamlaModel = repository.findByName(name);\n\t\tString nameOfExistingModel = gamlaModel.getName();\n\t\tList<Car> existingCar = carRepository.findCarsByModelName(nameOfExistingModel);\n\n\t\tif (existingCar.isEmpty() || existingCar.equals(null)) {\n\n\t\t\trepository.delete(gamlaModel);\n\t\t\treturn (\"Mode \" + name + \" är raderad\");\n\t\t} else\n\t\t\t{\n\t\t\tthrow new OurServerException(\"Tyvärr kan model inte raderas!\");}\n\t}", "@Override\n\tpublic MahasiswaModel delete(String nik) throws SQLException {\n\t\tdeleteStatement.setString(1, nik);\n\t\tdeleteStatement.executeUpdate();\n\t\treturn null;\n\t}", "public String delete() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result = model.delete(vendorMaster);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(\"Record Deleted Successfully.\");\r\n\t\t\treset();\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"This record is referenced in other resources.So can't delete.\");\r\n\t\t\treset();\r\n\t\t}// end of else\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\t\tgetNavigationPanel(1); \r\n\t\treturn \"success\";\r\n\t}", "public void delete() {\n\n }", "@Override\n\tpublic int deleteByPrimaryKey(String modelid) {\n\t\treturn equipmentSetvalMapper.deleteByPrimaryKey(modelid);\n\t}", "@Override\n\tpublic void delete(Integer id) {\n\t\tgastoModel.deleteById(id);\n\t}", "@RequestMapping(value = \"/absen/hapus/{id_absen}\", method = RequestMethod.GET)\n public String viewDelete (@NotNull Authentication auth, Model model, @PathVariable(value = \"id_absen\") int id_absen, @ModelAttribute AbsenModel delete) {\n UserWeb penggunaLogin = (UserWeb)auth.getPrincipal();\n if (penggunaLogin.getUsername().equalsIgnoreCase(null)) {\n return \"redirect:/login\";\n }\n else if (penggunaDAO.selectPenggunaByUsername(penggunaLogin.getUsername())==null) {\n return \"redirect:/logout\";\n }\n else if (!penggunaLogin.getRole().contains(\"ROLE_EMPLOYEE\")) {\n return \"redirect:/\";\n }\n //end of check\n\n\n AbsenModel absen = absenDAO.detailAbsen(id_absen);\n model.addAttribute(\"absen\", absen);\n absenDAO.deleteAbsen(delete);\n return \"redirect:/absen/kelola/?success=Hapus\";\n }", "public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}", "private void delete() {\n\n\t}", "@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void delete(int id);", "@RequestMapping(path=\"/eliminar\", method=RequestMethod.GET)\r\n\tpublic String deleteProduct(@RequestParam(name=\"id\")int id,Model model) {\n\t\tproductoDAO.deleteProducto(id);\r\n\t\t//retornamos lista de productos\r\n\t\treturn \"redirect:/producto\";\r\n\t}", "@DELETE\n\tResponse delete();", "void delete(Entity entity);", "@Override\n\tpublic String deleteByPrimaryKey(Number id, Model m) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic String deleteByPrimaryKey(Number id, Model m) throws Exception {\n\t\treturn null;\n\t}", "void deleteEntityById(Long id);", "@Override\r\n\tpublic boolean delete(Moteur obj) {\n\t\treturn false;\r\n\t}", "public abstract boolean delete(PK id);", "public void delete(RutaPk pk) throws RutaDaoException;", "@Override\n\tpublic void delete() {\n\n\t}", "@GetMapping(\"/deleteStudent\")\n\tpublic String deleteStudent(@RequestParam(required = true) int id, Model model)\t{\n\t\t\t\t\n\t\t//Get the student\n\t\tstudentDaoImpl.deleteStudent(id);\n\t\t\n\t\t//Get a list of students from the controller\n\t\tList<Student_gra_84> students = studentDaoImpl.getAllStudents();\n\t\tmodel.addAttribute(\"studentList\", students);\n\t\n\t\tmodel.addAttribute(\"message\", \"Deleted Student: \" + id);\n\t\t\t\n\t\treturn \"showStudents\";\n\t}", "@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}", "@Override\n public void delete()\n {\n }", "@RequestMapping(value = \"/images/{title}/delete\")\n public String deleteImage(@PathVariable String title, Model model) {\n // Finding the image based upon its title\n Image image = imageService.getByTitle(title);\n // deleting the image by its title\n imageService.deleteByTitle(image);\n\n // redirecting to home once the action is complete\n return \"redirect:/home\";\n }", "public static Result delete(Long id) {\n Thing thing = Thing.find.byId(id);\n thing.delete();\n return ok();\n }", "public void delete()\n {\n call(\"Delete\");\n }", "public void delete(K id);", "@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}", "@Test\n public void delete() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Student s2 = new Student(2,221, \"Pop Ion\",\"[email protected]\",\"prof\");\n Nota n2 = new Nota(2,2,\"prof\", 3, \"cv\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repot.delete(2);\n repo.delete(2);\n repon.delete(\"22\");\n assert repo.size() == 1;\n assert repot.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }", "public void delete(LearningResultHasActivityPk pk) throws LearningResultHasActivityDaoException;", "public void delete(TipoPk pk) throws TipoDaoException;", "int deleteByExample(FinMonthlySnapModelExample example);", "@GetMapping(\"/rating/delete/{id}\")\r\n public String deleteRating(@PathVariable(\"id\") Integer id, Model model) {\r\n ratingRepository.deleteById(id);\r\n model.addAttribute(\"ratings\", ratingRepository.findAll());\r\n return \"redirect:/rating/list\";\r\n }", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Mode : {}\", id);\n modeRepository.delete(id);\n }", "public void removeModel(SimpleModel model) {\n removeModel(model.getFullName());\n }", "@Override\r\n\tpublic int deleteByPrimaryKey(Long id) {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}", "public void deleteById(String id);", "public void deleteCompany(Company obj);" ]
[ "0.7669354", "0.7668741", "0.7554458", "0.7175647", "0.7097968", "0.70418036", "0.7018637", "0.69724977", "0.67465526", "0.67054784", "0.67054784", "0.66786176", "0.66703176", "0.66638196", "0.6617057", "0.6617057", "0.66166025", "0.6615622", "0.657795", "0.6576659", "0.65674967", "0.65284055", "0.6504456", "0.6442175", "0.64398074", "0.64276814", "0.64233965", "0.6418847", "0.6410265", "0.6409589", "0.6408859", "0.64013463", "0.6398838", "0.6386652", "0.636449", "0.6361971", "0.63528675", "0.63521856", "0.634357", "0.634357", "0.63314897", "0.63259196", "0.63253796", "0.63214713", "0.6321026", "0.62983215", "0.6291533", "0.6280341", "0.62696654", "0.62696654", "0.62696654", "0.62696654", "0.62696654", "0.62696654", "0.62671256", "0.6262295", "0.62569153", "0.6255719", "0.6251507", "0.6244306", "0.6236556", "0.623532", "0.6227631", "0.62091804", "0.62088454", "0.6206226", "0.6160438", "0.61594945", "0.61535054", "0.6143423", "0.6142275", "0.6136815", "0.6136815", "0.6128226", "0.6124931", "0.6124173", "0.6114681", "0.6109967", "0.6097874", "0.60944635", "0.6094318", "0.6094057", "0.6091724", "0.6089248", "0.6088474", "0.6087494", "0.6082546", "0.6082147", "0.6081202", "0.6080875", "0.60797834", "0.6074201", "0.6074201", "0.6074201", "0.60662943", "0.6065388", "0.60626477", "0.60574305", "0.60529953", "0.6052905", "0.6050873" ]
0.0
-1
Delete model Delete model
public ApiResponse<ModelApiResponse> deleteModelWithHttpInfo(String workspaceId, String modelId) throws ApiException { okhttp3.Call localVarCall = deleteModelValidateBeforeCall(workspaceId, modelId, null); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean delete(ModelObject obj);", "public void delete( final T model )\n\t{\n\t\tthis.dao.delete( model );\n\t}", "public void delete(E model) {\n\t\tgetHibernateTemplate().delete(model);\r\n\t}", "int deleteByPrimaryKey(String EQP_MODEL_ID);", "@Override\n\tpublic boolean delete(Patient model) {\n\t\treturn false;\n\t}", "@RequestMapping(\"/delete\")\n\tpublic String delete(HttpServletRequest request, Model model) {\n\t\tdao.delete(request.getParameter(\"bId\"));\n\t\treturn \"redirect:list\"; \n\t}", "void deleteModelElement(EObject modelElement);", "public boolean delete(Base model) throws IOException {\n\t\treturn Core.delete(model, getHttpMethodExecutor());\n\t}", "@UpdateProvider(type = ServeInfoSqlProvider.class, method = \"deleteById\")\n int delete(ServeInfoDO model);", "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "@PostMapping(\"/delete-by-id\")\r\n public String deleteById(Model model,@RequestParam int id) {\r\n try {\r\n service.delete(id);\r\n model.addAttribute(\"msg\",\"Trainee deleted successfuly!\");\r\n }catch(Exception ex) {\r\n System.out.println(\"Error \"+ex.getMessage());\r\n model.addAttribute(\"msg\",\"No record found!\");\r\n }\r\n return \"delete\";\r\n }", "@Override\n\tpublic boolean delete(String internalModel) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}", "private Delete() {}", "private Delete() {}", "@Override\r\n\tpublic void deleteUserPredictModel(Long userPredictModelId) {\n\t\t\r\n\t}", "@Override\n\tpublic void delete(UserModel um) throws Exception {\n\t\tsf.getCurrentSession().delete(um);\n\t}", "@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }", "public void deleteModelAt(int index) {\r\n if (index < models.size()) {\r\n models.removeElementAt(index);\r\n }\r\n }", "@DELETE\n public void delete() {\n }", "public void deleteTodoById(@PathVariable(\"id\") long id, Model model) throws RecordNotFoundException {\n TodoItem todoItem = getTodoItemById(id);\n todoItemRepository.delete(todoItem);\n model.addAttribute(\"todoItems\", todoItemRepository.findAll());\n }", "public void deleteModel(int modelStorageId) throws StorageIOException {\n try {\n Dao<ModelDB, Integer> modelDao = this.databaseHelper.getDao(ModelDB.class);\n modelDao.deleteById(modelStorageId);\n } catch (SQLException e) {\n throw new StorageIOException(\"Failed to delete model\", e);\n }\n }", "public String deleteModel(Integer id) throws OurServerException {\n\t\tModelOfCar existingModel = repository.findById(id).get();\n\t\tString nameOfExistingModel = existingModel.getName();\n\t\tList<Car> existingCar = carRepository.findCarsByModelName(nameOfExistingModel);\n\n\t\tif (existingCar.isEmpty()) {\n\t\t\trepository.findById(id).get();\n\t\t\trepository.deleteById(id);\n\t\t\treturn (\"Model med id= \" + id + \" är raderad\");\n\t\t} else\n\t\t\t{\n\t\t\tthrow new OurServerException(\"Tyvärr kan model inte raderas!\");}\n\t}", "@Override\r\n public void delete(final String id) throws ContentModelNotFoundException, SystemException, LockingException,\r\n InvalidStatusException, ResourceInUseException {\r\n \r\n setContentModel(id);\r\n checkLocked();\r\n if (!(getContentModel().isPending() || getContentModel().isInRevision())) {\r\n throw new InvalidStatusException(\"Content Model must be is public status pending or \"\r\n + \"submitted in order to delete it.\");\r\n }\r\n \r\n // check if objects refer this content model\r\n if (this.tripleStoreUtility.hasReferringResource(id)) {\r\n throw new ResourceInUseException(\"The content model is referred by \"\r\n + \"an resource and can not be deleted.\");\r\n }\r\n \r\n // delete every behavior (sdef, sdep) even those from old versions\r\n this.fedoraServiceClient.deleteObject(getContentModel().getId());\r\n this.fedoraServiceClient.sync();\r\n this.tripleStoreUtility.reinitialize();\r\n fireContentModelDeleted(getContentModel().getId());\r\n }", "@Override\n\tpublic void deletes(String[] ids,Integer appId,Integer modelId){\n \tpromotionDao.deletes(ids, appId, modelId);\n\t}", "@PostMapping(\"/delete\")\r\n public String deleteForm(Model model,@RequestParam int traineeId) {\r\n try {\r\n Trainee trainee = service.findById(traineeId);\r\n model.addAttribute(\"trainee\", trainee);\r\n }catch(Exception ex) {\r\n System.out.println(\"Error \"+ex.getMessage());\r\n model.addAttribute(\"msg\",\"No record found!\");\r\n }\r\n return \"delete\";\r\n }", "@GetMapping(\"/deletePharmacist\")\n public String pharmacistFormDelete(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"deletePharmacist\";\n }", "public void delete(){\r\n\r\n }", "private void deleteModelData(boolean verbose) {\n File initialPath = getDir(MODEL_PATH, MODE_PRIVATE);\n File decompressedPath = new File(initialPath, modelName);\n\n if( decompressedPath.exists() ) {\n if( verbose )\n runOnUiThread(() -> Toast.makeText(ImageClassificationActivity.this,\n \"Deleting \"+modelName,Toast.LENGTH_SHORT).show());\n\n deleteDir(decompressedPath);\n } else {\n if( verbose )\n runOnUiThread(() -> Toast.makeText(ImageClassificationActivity.this,\n \"Nothing to delete\",Toast.LENGTH_SHORT).show());\n }\n }", "public static void deleteAllModels() {\n\n ConsoleLogger.printHeader(\"Deleting models\");\n\n // This is to ensure models are deleted in an order such that no other models are referencing it.\n List<String> models = asList(SamplesConstants.ROOM_MODEL_ID, SamplesConstants.WIFI_MODEL_ID, SamplesConstants.BUILDING_MODEL_ID, SamplesConstants.FLOOR_MODEL_ID, SamplesConstants.HVAC_MODEL_ID);\n\n // Call APIs to delete the models.\n // Note that we are blocking the async API call. This is to ensure models are deleted in an order such that no other models are referencing it.\n models\n .forEach(modelId -> {\n try {\n client.deleteModel(modelId).block();\n ConsoleLogger.printSuccess(\"Deleted model: \" + modelId);\n } catch (ErrorResponseException ex) {\n if (ex.getResponse().getStatusCode() != HTTP_NOT_FOUND) {\n ConsoleLogger.printFatal(\"Could not delete model \" + modelId + \" due to \" + ex);\n }\n }\n });\n }", "int deleteByExample(TbComEqpModelExample example);", "public void delete() \n\t\t\t\tthrows model.ConsistencyException, PersistenceException{\n //TODO Check delegation to abstract class and overwrite if necessary!\n this.getMyCONCMModelItem().delete();\n }", "public void delete() {\n\n\t}", "@GetMapping(\"/eliminar/{id}\")\n\tpublic String delete(@PathVariable Long id, Model model) {\n\t\tif (diagramaService.exists(id)) {\n\t\t\tFile file = new File(diagramaService.find(id).get().getPathArchivo());\n\t\t\tboolean val = file.delete();\n\t\t\t\n\t\t\t//No se si validaran esto asi que lo dejo asi\n\t\t\tif(val){ //si no hay ningun error al borrar el archivo, borramos de la base de datos\n\t\t\t\tdiagramaService.delete(id);\n\t\t\t} else {\n\t\t\t\t//Error al eliminar archivo\n\t\t\t}\n\t\t}\n\t\treturn \"redirect:/diagramas\";\n\t}", "public void delete() throws EntityPersistenceException {\n\n }", "public static void deleteInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\tBase.deleteInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "@DeleteMapping(name = \"delete\")\n\tpublic ResponseEntity<?> delete(@ModelAttribute Entity entity) {\n\t\tgetService().delete(entity);\n\t\treturn ResponseEntity.ok().build();\n\t}", "@Override\n\tpublic int deleteById(Integer pk) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int deleteById(Integer pk) {\n\t\treturn 0;\n\t}", "private void deleteEmployeeBooking() {\n BookingModel bookingModel1 = new BookingModel();\n try {\n bookingModel1.deleteBooking(employeeID);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public void delete(Object bo) {\r\n getPersistenceBrokerTemplate().delete(bo);\r\n }", "@Test\r\n\tpublic void testDelete() {\n\t\tint todos = modelo.getAll().size();\r\n\r\n\t\tassertTrue(modelo.delete(1));\r\n\r\n\t\t// comprobar que este borrado\r\n\t\tassertNull(modelo.getById(1));\r\n\r\n\t\t// borrar un registro que no existe\r\n\t\tassertFalse(modelo.delete(13));\r\n\t\tassertNull(modelo.getById(13));\r\n\r\n\t\tassertEquals(\"debemos tener un registro menos\", (todos - 1), modelo\r\n\t\t\t\t.getAll().size());\r\n\r\n\t}", "private void actionDelete(final ImageDataModel modelData) {\r\n // Remove the item from Current List of GalleryHelperBaseOnId.class\r\n if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.LIST_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelper.imageDataModelList.remove(modelData);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewData.imageDataModelList.remove(modelData);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageDataModelList.remove(modelData);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageDataModelList.remove(modelData);\r\n }\r\n }\r\n\r\n if (SharedPref.getAlbumType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.ALBUM_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelperBaseOnId.dataModelArrayList.remove(modelData);\r\n // Remove the item from Main List of GalleryHelper.class\r\n GalleryHelper.imageFolderMap.get(nameKey).remove(modelData);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n VideoViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n AudioViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n PhotoViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n }\r\n }\r\n\r\n\r\n final String message = String.format(getString(R.string.delete_success_message));\r\n try {\r\n // method to deleting the selected file\r\n FileUtils.deleteFile(modelData.getFile());\r\n FileUtils.deleteDirectory(modelData.getFile().getParentFile());\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n // method to scan the file and update its position\r\n FileUtils.scanFile(PhotoViewActivity.this, modelData.getFile());\r\n\r\n SDKUtils.showToast(PhotoViewActivity.this, message);\r\n // notify viewpager adapter\r\n notifyAdapter();\r\n if (CustomPagerAdapter != null)\r\n CustomPagerAdapter.itemCheckInList();\r\n }", "public JavapurchaseModel deletepurchase(JavapurchaseModel oJavapurchaseModel){\n\n \t\t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing purchase from the database*/\n oJavapurchaseModel = (JavapurchaseModel) hibernateSession.get(JavapurchaseModel.class, oJavapurchaseModel.getpurchaseId());\n\n\n /* Delete the existing purchase from the database*/\n hibernateSession.delete(oJavapurchaseModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavapurchaseModel;\n }", "@Override\n\tpublic Integer delModel(String tagID) throws BaseException {\n\t\treturn this.delete(\"Mapper.PhotoTag.deleteByID\", tagID);\n\t}", "@RequestMapping(\"/delete\")\n\tpublic String delete(Model model, int email, HttpServletRequest request) {\n\t\t\n\t\ttry {\n\t\t\ttestDao.delete(email);\n\t\t\tList<TestBean> list = new ArrayList<>();\n\t\t\tlist=testDao.findAll();\n\t\t\trequest.getSession().setAttribute(\"listUser\", list);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\treturn \"index2\";\n\t}", "@Test\n @JUnitTemporaryDatabase // Relies on specific IDs so we need a fresh database\n public void testDelete() throws Exception {\n createAndFlushServiceTypes();\n createAndFlushCategories();\n \n //Initialize the database\n ModelImporter mi = m_importer;\n String specFile = \"/tec_dump.xml.smalltest\";\n mi.importModelFromResource(new ClassPathResource(specFile));\n \n assertEquals(10, mi.getNodeDao().countAll());\n }", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "@Synchronized\r\n public void deleteTransferModel(String itemId) {\r\n databaseHandler.getWritableDatabase();\r\n databaseHandler.deleteData(\r\n TableTransferModel.TABLE_NAME, TableTransferModel.id + \"=?\",\r\n new String[]{itemId + \"\"}\r\n );\r\n }", "public void actionPerformed(ActionEvent e) {\n model.deleteRow();\n }", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "public String deleteModelByName(String name) throws OurServerException {\n\n\t\tModelOfCar gamlaModel = repository.findByName(name);\n\t\tString nameOfExistingModel = gamlaModel.getName();\n\t\tList<Car> existingCar = carRepository.findCarsByModelName(nameOfExistingModel);\n\n\t\tif (existingCar.isEmpty() || existingCar.equals(null)) {\n\n\t\t\trepository.delete(gamlaModel);\n\t\t\treturn (\"Mode \" + name + \" är raderad\");\n\t\t} else\n\t\t\t{\n\t\t\tthrow new OurServerException(\"Tyvärr kan model inte raderas!\");}\n\t}", "@Override\n\tpublic MahasiswaModel delete(String nik) throws SQLException {\n\t\tdeleteStatement.setString(1, nik);\n\t\tdeleteStatement.executeUpdate();\n\t\treturn null;\n\t}", "public String delete() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result = model.delete(vendorMaster);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(\"Record Deleted Successfully.\");\r\n\t\t\treset();\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"This record is referenced in other resources.So can't delete.\");\r\n\t\t\treset();\r\n\t\t}// end of else\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\t\tgetNavigationPanel(1); \r\n\t\treturn \"success\";\r\n\t}", "public void delete() {\n\n }", "@Override\n\tpublic int deleteByPrimaryKey(String modelid) {\n\t\treturn equipmentSetvalMapper.deleteByPrimaryKey(modelid);\n\t}", "@Override\n\tpublic void delete(Integer id) {\n\t\tgastoModel.deleteById(id);\n\t}", "@RequestMapping(value = \"/absen/hapus/{id_absen}\", method = RequestMethod.GET)\n public String viewDelete (@NotNull Authentication auth, Model model, @PathVariable(value = \"id_absen\") int id_absen, @ModelAttribute AbsenModel delete) {\n UserWeb penggunaLogin = (UserWeb)auth.getPrincipal();\n if (penggunaLogin.getUsername().equalsIgnoreCase(null)) {\n return \"redirect:/login\";\n }\n else if (penggunaDAO.selectPenggunaByUsername(penggunaLogin.getUsername())==null) {\n return \"redirect:/logout\";\n }\n else if (!penggunaLogin.getRole().contains(\"ROLE_EMPLOYEE\")) {\n return \"redirect:/\";\n }\n //end of check\n\n\n AbsenModel absen = absenDAO.detailAbsen(id_absen);\n model.addAttribute(\"absen\", absen);\n absenDAO.deleteAbsen(delete);\n return \"redirect:/absen/kelola/?success=Hapus\";\n }", "public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}", "private void delete() {\n\n\t}", "@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void delete(int id);", "@RequestMapping(path=\"/eliminar\", method=RequestMethod.GET)\r\n\tpublic String deleteProduct(@RequestParam(name=\"id\")int id,Model model) {\n\t\tproductoDAO.deleteProducto(id);\r\n\t\t//retornamos lista de productos\r\n\t\treturn \"redirect:/producto\";\r\n\t}", "@DELETE\n\tResponse delete();", "void delete(Entity entity);", "@Override\n\tpublic String deleteByPrimaryKey(Number id, Model m) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic String deleteByPrimaryKey(Number id, Model m) throws Exception {\n\t\treturn null;\n\t}", "void deleteEntityById(Long id);", "@Override\r\n\tpublic boolean delete(Moteur obj) {\n\t\treturn false;\r\n\t}", "public abstract boolean delete(PK id);", "public void delete(RutaPk pk) throws RutaDaoException;", "@Override\n\tpublic void delete() {\n\n\t}", "@GetMapping(\"/deleteStudent\")\n\tpublic String deleteStudent(@RequestParam(required = true) int id, Model model)\t{\n\t\t\t\t\n\t\t//Get the student\n\t\tstudentDaoImpl.deleteStudent(id);\n\t\t\n\t\t//Get a list of students from the controller\n\t\tList<Student_gra_84> students = studentDaoImpl.getAllStudents();\n\t\tmodel.addAttribute(\"studentList\", students);\n\t\n\t\tmodel.addAttribute(\"message\", \"Deleted Student: \" + id);\n\t\t\t\n\t\treturn \"showStudents\";\n\t}", "@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}", "@Override\n public void delete()\n {\n }", "@RequestMapping(value = \"/images/{title}/delete\")\n public String deleteImage(@PathVariable String title, Model model) {\n // Finding the image based upon its title\n Image image = imageService.getByTitle(title);\n // deleting the image by its title\n imageService.deleteByTitle(image);\n\n // redirecting to home once the action is complete\n return \"redirect:/home\";\n }", "public static Result delete(Long id) {\n Thing thing = Thing.find.byId(id);\n thing.delete();\n return ok();\n }", "public void delete()\n {\n call(\"Delete\");\n }", "public void delete(K id);", "@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}", "@Test\n public void delete() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Student s2 = new Student(2,221, \"Pop Ion\",\"[email protected]\",\"prof\");\n Nota n2 = new Nota(2,2,\"prof\", 3, \"cv\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repot.delete(2);\n repo.delete(2);\n repon.delete(\"22\");\n assert repo.size() == 1;\n assert repot.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }", "public void delete(LearningResultHasActivityPk pk) throws LearningResultHasActivityDaoException;", "public void delete(TipoPk pk) throws TipoDaoException;", "int deleteByExample(FinMonthlySnapModelExample example);", "@GetMapping(\"/rating/delete/{id}\")\r\n public String deleteRating(@PathVariable(\"id\") Integer id, Model model) {\r\n ratingRepository.deleteById(id);\r\n model.addAttribute(\"ratings\", ratingRepository.findAll());\r\n return \"redirect:/rating/list\";\r\n }", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Mode : {}\", id);\n modeRepository.delete(id);\n }", "public void removeModel(SimpleModel model) {\n removeModel(model.getFullName());\n }", "@Override\r\n\tpublic int deleteByPrimaryKey(Long id) {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}", "public void deleteById(String id);", "public void deleteCompany(Company obj);" ]
[ "0.7669354", "0.7668741", "0.7554458", "0.7175647", "0.7097968", "0.70418036", "0.7018637", "0.69724977", "0.67465526", "0.67054784", "0.67054784", "0.66786176", "0.66703176", "0.66638196", "0.6617057", "0.6617057", "0.66166025", "0.6615622", "0.657795", "0.6576659", "0.65674967", "0.65284055", "0.6504456", "0.6442175", "0.64398074", "0.64276814", "0.64233965", "0.6418847", "0.6410265", "0.6409589", "0.6408859", "0.64013463", "0.6398838", "0.6386652", "0.636449", "0.6361971", "0.63528675", "0.63521856", "0.634357", "0.634357", "0.63314897", "0.63259196", "0.63253796", "0.63214713", "0.6321026", "0.62983215", "0.6291533", "0.6280341", "0.62696654", "0.62696654", "0.62696654", "0.62696654", "0.62696654", "0.62696654", "0.62671256", "0.6262295", "0.62569153", "0.6255719", "0.6251507", "0.6244306", "0.6236556", "0.623532", "0.6227631", "0.62091804", "0.62088454", "0.6206226", "0.6160438", "0.61594945", "0.61535054", "0.6143423", "0.6142275", "0.6136815", "0.6136815", "0.6128226", "0.6124931", "0.6124173", "0.6114681", "0.6109967", "0.6097874", "0.60944635", "0.6094318", "0.6094057", "0.6091724", "0.6089248", "0.6088474", "0.6087494", "0.6082546", "0.6082147", "0.6081202", "0.6080875", "0.60797834", "0.6074201", "0.6074201", "0.6074201", "0.60662943", "0.6065388", "0.60626477", "0.60574305", "0.60529953", "0.6052905", "0.6050873" ]
0.0
-1
Delete model (asynchronously) Delete model
public okhttp3.Call deleteModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException { okhttp3.Call localVarCall = deleteModelValidateBeforeCall(workspaceId, modelId, _callback); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean delete(Base model) throws IOException {\n\t\treturn Core.delete(model, getHttpMethodExecutor());\n\t}", "@Override\n public CompletableFuture<Void> delete() {\n return delete(false);\n }", "public boolean delete(ModelObject obj);", "@Override\n public CompletableFuture<Void> deleteForcefully() {\n return delete(true);\n }", "public void delete( final T model )\n\t{\n\t\tthis.dao.delete( model );\n\t}", "public void deleteRecord() {\n\n new BackgroundDeleteTask().execute();\n }", "public static void deleteAllModels() {\n\n ConsoleLogger.printHeader(\"Deleting models\");\n\n // This is to ensure models are deleted in an order such that no other models are referencing it.\n List<String> models = asList(SamplesConstants.ROOM_MODEL_ID, SamplesConstants.WIFI_MODEL_ID, SamplesConstants.BUILDING_MODEL_ID, SamplesConstants.FLOOR_MODEL_ID, SamplesConstants.HVAC_MODEL_ID);\n\n // Call APIs to delete the models.\n // Note that we are blocking the async API call. This is to ensure models are deleted in an order such that no other models are referencing it.\n models\n .forEach(modelId -> {\n try {\n client.deleteModel(modelId).block();\n ConsoleLogger.printSuccess(\"Deleted model: \" + modelId);\n } catch (ErrorResponseException ex) {\n if (ex.getResponse().getStatusCode() != HTTP_NOT_FOUND) {\n ConsoleLogger.printFatal(\"Could not delete model \" + modelId + \" due to \" + ex);\n }\n }\n });\n }", "void delete(String id, AsyncCallback<Void> callback);", "int deleteByPrimaryKey(String EQP_MODEL_ID);", "public void delete(E model) {\n\t\tgetHibernateTemplate().delete(model);\r\n\t}", "int deleteByExample(TbComEqpModelExample example);", "void deleteTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<Void> callback );", "@ServiceMethod(returns = ReturnType.SINGLE)\n private Mono<Void> deleteAsync(\n String resourceGroupName, String vmScaleSetName, String instanceId, Context context) {\n return beginDeleteAsync(resourceGroupName, vmScaleSetName, instanceId, context)\n .last()\n .flatMap(this.client::getLroFinalResultOrError);\n }", "Future<DeleteBackendResponse> deleteBackend(\n DeleteBackendRequest request,\n AsyncHandler<DeleteBackendRequest, DeleteBackendResponse> handler);", "@Override\n\tpublic boolean delete(Patient model) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void deleteUserPredictModel(Long userPredictModelId) {\n\t\t\r\n\t}", "public Future<CtxModelObject> remove(CtxIdentifier identifier);", "@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}", "@PostMapping(\"/delete-by-id\")\r\n public String deleteById(Model model,@RequestParam int id) {\r\n try {\r\n service.delete(id);\r\n model.addAttribute(\"msg\",\"Trainee deleted successfuly!\");\r\n }catch(Exception ex) {\r\n System.out.println(\"Error \"+ex.getMessage());\r\n model.addAttribute(\"msg\",\"No record found!\");\r\n }\r\n return \"delete\";\r\n }", "@Nonnull\n public java.util.concurrent.CompletableFuture<DeviceManagementDomainJoinConnector> deleteAsync() {\n return sendAsync(HttpMethod.DELETE, null);\n }", "@Override\n\tpublic boolean delete(String internalModel) {\n\t\treturn false;\n\t}", "Boolean delete(Long id);", "void deleteModelElement(EObject modelElement);", "int deleteByExample(TaskExample example);", "@Synchronized\r\n public void cleanTransferModelRecordsPeriodically() {\r\n try {\r\n ArrayList<Long> arrayList = getTransferModelsListIds();\r\n ArrayList<String> arrayListToDelete = new ArrayList<>();\r\n if (!arrayList.isEmpty() && arrayList.size() > 20) {\r\n for (int i = 19; i < arrayList.size(); i++) {\r\n arrayListToDelete.add(arrayList.get(i) + \"\");\r\n }\r\n String[] itemIds = arrayListToDelete.toArray(new String[arrayListToDelete.size()]);\r\n if (itemIds != null && itemIds.length > 0) {\r\n databaseHandler.getWritableDatabase();\r\n databaseHandler.deleteData(TableTransferModel.TABLE_NAME, TableTransferModel.id + \"=?\", itemIds);\r\n }\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n FirebaseCrashlytics.getInstance().recordException(e);\r\n }\r\n }", "@Override\n public void delete(Long id) throws Exception {\n\n }", "int deleteByExample(DataSyncExample example);", "@UpdateProvider(type = ServeInfoSqlProvider.class, method = \"deleteById\")\n int delete(ServeInfoDO model);", "java.util.concurrent.Future<DeleteApplicationResult> deleteApplicationAsync(DeleteApplicationRequest deleteApplicationRequest);", "public void delete()\n {\n call(\"Delete\");\n }", "@Synchronized\r\n public void deleteTransferModel(String itemId) {\r\n databaseHandler.getWritableDatabase();\r\n databaseHandler.deleteData(\r\n TableTransferModel.TABLE_NAME, TableTransferModel.id + \"=?\",\r\n new String[]{itemId + \"\"}\r\n );\r\n }", "@RequestMapping(\"/delete\")\n\tpublic String delete(HttpServletRequest request, Model model) {\n\t\tdao.delete(request.getParameter(\"bId\"));\n\t\treturn \"redirect:list\"; \n\t}", "public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}", "@Delete\n Single<Integer> delete(Motivator motivator);", "public static Result delete(Long id) {\n Thing thing = Thing.find.byId(id);\n thing.delete();\n return ok();\n }", "@Delete\n void delete(Task... task);", "public void deleteAll() {\n new Thread(new DeleteAllRunnable(dao)).start();\n }", "void deleteTask(int id);", "@Nonnull\n public java.util.concurrent.CompletableFuture<UserExperienceAnalyticsAnomalyDevice> deleteAsync() {\n return sendAsync(HttpMethod.DELETE, null);\n }", "@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }", "public void delete() throws Exception\n {\n dao.delete(this);\n }", "ResponseEntity deleteById(UUID id);", "private Delete() {}", "private Delete() {}", "public void doDelete() throws Exception\r\n\t\t{\r\n\t\tmyRouteGroup.delete();\r\n\t\t}", "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "void delete(Long id) throws Throwable;", "@Override\r\n public void delete(final String id) throws ContentModelNotFoundException, SystemException, LockingException,\r\n InvalidStatusException, ResourceInUseException {\r\n \r\n setContentModel(id);\r\n checkLocked();\r\n if (!(getContentModel().isPending() || getContentModel().isInRevision())) {\r\n throw new InvalidStatusException(\"Content Model must be is public status pending or \"\r\n + \"submitted in order to delete it.\");\r\n }\r\n \r\n // check if objects refer this content model\r\n if (this.tripleStoreUtility.hasReferringResource(id)) {\r\n throw new ResourceInUseException(\"The content model is referred by \"\r\n + \"an resource and can not be deleted.\");\r\n }\r\n \r\n // delete every behavior (sdef, sdep) even those from old versions\r\n this.fedoraServiceClient.deleteObject(getContentModel().getId());\r\n this.fedoraServiceClient.sync();\r\n this.tripleStoreUtility.reinitialize();\r\n fireContentModelDeleted(getContentModel().getId());\r\n }", "@DELETE\n public void delete() {\n }", "@Override\n\tpublic void delete(UserModel um) throws Exception {\n\t\tsf.getCurrentSession().delete(um);\n\t}", "public abstract boolean delete(PK id);", "@Nonnull\n public java.util.concurrent.CompletableFuture<PersonAnnotation> deleteAsync() {\n return sendAsync(HttpMethod.DELETE, null);\n }", "public static RestTask obtainDeleteTask(String url)\n throws IOException {\n HttpURLConnection connection = createDefaultConnection(url);\n attachAuthentication(connection);\n connection.setRequestMethod(\"DELETE\");\n connection.setDoInput(true);\n\n return new RestTask(connection);\n }", "private void deletejob() {\n\t\tjob.delete(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (e==null) {\n\t\t\t\t\ttoast(\"删除成功\");\n\t\t\t\t\tUpdateJobActivity.this.finish();\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"错误:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "ApiResponse deleteEntityById(Integer id);", "private void actionDelete(final ImageDataModel modelData) {\r\n // Remove the item from Current List of GalleryHelperBaseOnId.class\r\n if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.LIST_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelper.imageDataModelList.remove(modelData);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewData.imageDataModelList.remove(modelData);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageDataModelList.remove(modelData);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageDataModelList.remove(modelData);\r\n }\r\n }\r\n\r\n if (SharedPref.getAlbumType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.ALBUM_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelperBaseOnId.dataModelArrayList.remove(modelData);\r\n // Remove the item from Main List of GalleryHelper.class\r\n GalleryHelper.imageFolderMap.get(nameKey).remove(modelData);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n VideoViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n AudioViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n PhotoViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n }\r\n }\r\n\r\n\r\n final String message = String.format(getString(R.string.delete_success_message));\r\n try {\r\n // method to deleting the selected file\r\n FileUtils.deleteFile(modelData.getFile());\r\n FileUtils.deleteDirectory(modelData.getFile().getParentFile());\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n // method to scan the file and update its position\r\n FileUtils.scanFile(PhotoViewActivity.this, modelData.getFile());\r\n\r\n SDKUtils.showToast(PhotoViewActivity.this, message);\r\n // notify viewpager adapter\r\n notifyAdapter();\r\n if (CustomPagerAdapter != null)\r\n CustomPagerAdapter.itemCheckInList();\r\n }", "@Override\n public void onSuccess(ApiResult<R> result) {\n IDBHelper dbHelper = Helpers.dBHelper();\n dbHelper.deleteEntity(CacheEntity.class, \"key = ?\", cacheEntity.getKey());\n showAsyncRunnableState(false);\n }", "public void delete(PersonEntity person) {\n new Thread(new DeleteRunnable(dao, person)).start();\n }", "private void doDeleteSong() {\n int result = dbHelper.deleteSong(selectedSong.getId());\n Log.d(TAG + \"in doDeleteSong\", \"Result > \" + result);\n\n // Check Status\n if (result == 1) {\n Toast.makeText(this, \"Successfully deleted the song\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Failed to delete the song\", Toast.LENGTH_SHORT).show();\n }\n }", "private void deleteItem()\n {\n Category categoryToDelete = dataCategories.get(dataCategories.size()-1);\n AppDatabase db = Room.databaseBuilder(getApplicationContext(),\n AppDatabase.class, \"database-name\").allowMainThreadQueries().build();\n db.categoryDao().delete(categoryToDelete);\n testDatabase();\n }", "public void deleteModelAt(int index) {\r\n if (index < models.size()) {\r\n models.removeElementAt(index);\r\n }\r\n }", "@Delete\n Single<Integer> delete(Collection<Motivator> motivators);", "protected abstract void doDelete();", "@Nonnull\n public java.util.concurrent.CompletableFuture<ManagedAppPolicy> deleteAsync() {\n return sendAsync(HttpMethod.DELETE, null);\n }", "public void delete() \n\t\t\t\tthrows model.ConsistencyException, PersistenceException{\n //TODO Check delegation to abstract class and overwrite if necessary!\n this.getMyCONCMModelItem().delete();\n }", "void delete(UUID id);", "void delete(UUID id);", "void delete(UUID id);", "void delete(UUID id);", "public static void deleteInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\tBase.deleteInstance(model, RDFS_CLASS, instanceResource);\r\n\t}", "private void deleteModelData(boolean verbose) {\n File initialPath = getDir(MODEL_PATH, MODE_PRIVATE);\n File decompressedPath = new File(initialPath, modelName);\n\n if( decompressedPath.exists() ) {\n if( verbose )\n runOnUiThread(() -> Toast.makeText(ImageClassificationActivity.this,\n \"Deleting \"+modelName,Toast.LENGTH_SHORT).show());\n\n deleteDir(decompressedPath);\n } else {\n if( verbose )\n runOnUiThread(() -> Toast.makeText(ImageClassificationActivity.this,\n \"Nothing to delete\",Toast.LENGTH_SHORT).show());\n }\n }", "private final void deleteRecipe() {\n \tnew DeleteRecipeTask().execute();\n }", "public String delete() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result = model.delete(vendorMaster);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(\"Record Deleted Successfully.\");\r\n\t\t\treset();\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"This record is referenced in other resources.So can't delete.\");\r\n\t\t\treset();\r\n\t\t}// end of else\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\t\tgetNavigationPanel(1); \r\n\t\treturn \"success\";\r\n\t}", "public final void delete( ) throws Exception\n\t{\n\t\tDatastore.getInstance( ).deleteOnServer( this );\n\t}", "boolean delete(Long id, Class<T> type);", "@Test(dependsOnMethods = \"update\")\n public void delete()throws Exception{\n repository.delete(id);\n OwnerRegion delete = repository.findOne(id);\n Assert.assertNull(delete);\n }", "public void deleteTask(Integer tid);", "public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}", "private void deleteEmployeeBooking() {\n BookingModel bookingModel1 = new BookingModel();\n try {\n bookingModel1.deleteBooking(employeeID);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "@Exclude\n public abstract void delete();", "public void delete(LearningResultHasActivityPk pk) throws LearningResultHasActivityDaoException;", "private void executeAsyncTaskDeleteContact() {\n Log.d(\"test\", \"in delete task\");\n final Uri uri = buildWebServiceUriDeleteContact();\n final JSONObject json = new JSONObject();\n try {\n Log.d(\"test\", \"putting info\");\n json.put(\"email\", mSavedState.getString(getString(R.string.keyMyEmail)));\n json.put(\"myContactID\", mContact.getID());\n json.put(\"doDelete\", \"true\");\n Log.d(\"test\", \"put all info\");\n } catch (Exception e) {\n //woopsy\n }\n new SendPostAsyncTask.Builder(uri.toString(), json)\n .onPreExecute(this::handleAccountUpdateOnPre)\n .onPostExecute(this::handleDeleteAccountOnPost)\n .onCancelled(this::handleErrorsInTask)\n .build().execute();\n }", "@Nonnull\n public java.util.concurrent.CompletableFuture<AndroidWorkProfileCertificateProfileBase> deleteAsync() {\n return sendAsync(HttpMethod.DELETE, null);\n }", "int delete(Long id);", "public boolean delete(Object obj) throws Exception;", "private void deleteFile() {\r\n actionDelete(dataModelArrayList.get(position));\r\n }", "@Test\n public void deleteId() throws Exception {\n Role role = create(new Role(\"roleName\"));\n\n //Attempt to remove from the database with delete request\n try {\n mvc.perform(MockMvcRequestBuilders.delete(\"/auth/roles/{id}\", UUIDUtil.UUIDToNumberString(role.getUuid()))\n .header(\"Authorization\", authPair[0])\n .header(\"Function\", authPair[1])\n )\n .andExpect(status().isOk());\n } catch (Exception e) {\n remove(role.getUuid());\n throw e;\n }\n\n //Check if successfully removed from database\n try {\n //Remove from database (above get function should have thrown an error if the object was no longer in the database)\n remove(role.getUuid());\n fail(\"DELETE request did not succesfully delete the object from the database\");\n } catch (ObjectNotFoundException e) {\n //Nothing because the object is no longer present in the database which is expected\n }\n }", "public void deleteModel(int modelStorageId) throws StorageIOException {\n try {\n Dao<ModelDB, Integer> modelDao = this.databaseHelper.getDao(ModelDB.class);\n modelDao.deleteById(modelStorageId);\n } catch (SQLException e) {\n throw new StorageIOException(\"Failed to delete model\", e);\n }\n }", "public void delete(K id);", "boolean delete(T entity) throws Exception;", "@Override\n\tpublic void deletes(String[] ids,Integer appId,Integer modelId){\n \tpromotionDao.deletes(ids, appId, modelId);\n\t}", "@DeleteMapping(name = \"delete\")\n\tpublic ResponseEntity<?> delete(@ModelAttribute Entity entity) {\n\t\tgetService().delete(entity);\n\t\treturn ResponseEntity.ok().build();\n\t}", "void delete(ServiceSegmentModel serviceSegment);", "private void delete() {\n\n\t}", "@Atomic\n\tpublic void delete(){\n\t\tfor(User u: getUserSet()){\n\t\t\tu.delete();\n\t\t}\n\t\tfor(Session s: getSessionSet()){\n\t\t\ts.delete();\n\t\t}\n\t\tsetRoot(null);\n\t\tdeleteDomainObject();\n\t}", "void deleteEntityById(Long id);", "public void delete(int id) \n{ \n\ttvShowRepo.deleteById(id); \n}", "public void delete() {\n\n }", "@ServiceMethod(returns = ReturnType.SINGLE)\n private PollerFlux<PollResult<Void>, Void> beginDeleteAsync(\n String resourceGroupName, String vmScaleSetName, String instanceId, Context context) {\n context = this.client.mergeContext(context);\n Mono<Response<Flux<ByteBuffer>>> mono =\n deleteWithResponseAsync(resourceGroupName, vmScaleSetName, instanceId, context);\n return this\n .client\n .<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);\n }", "java.util.concurrent.Future<DeleteDataIntegrationResult> deleteDataIntegrationAsync(DeleteDataIntegrationRequest deleteDataIntegrationRequest);" ]
[ "0.68417275", "0.67508537", "0.6725454", "0.66866034", "0.6651639", "0.66179526", "0.6337427", "0.6305941", "0.62452", "0.6224726", "0.6220069", "0.61179924", "0.5981034", "0.59488946", "0.59406775", "0.5920109", "0.5908005", "0.5886284", "0.58691806", "0.5863133", "0.5858483", "0.58426285", "0.5841749", "0.58379066", "0.5831368", "0.58312315", "0.5814683", "0.58121353", "0.57825667", "0.5774349", "0.57716465", "0.5770218", "0.57689035", "0.5756655", "0.5751177", "0.5737092", "0.5729126", "0.5727202", "0.5722254", "0.5717613", "0.5716201", "0.57001793", "0.56977755", "0.56977755", "0.56958705", "0.5692481", "0.5692481", "0.5691372", "0.56898904", "0.56867063", "0.56730086", "0.5650233", "0.564182", "0.56376344", "0.5634286", "0.5633224", "0.5627212", "0.5624516", "0.5623942", "0.562167", "0.5619585", "0.5612526", "0.56085944", "0.5603069", "0.5600938", "0.5595284", "0.5595021", "0.5595021", "0.5595021", "0.5595021", "0.5585269", "0.5577206", "0.55752814", "0.557456", "0.55688745", "0.55686903", "0.55657893", "0.5562932", "0.5558142", "0.55574197", "0.5556156", "0.55483806", "0.55436575", "0.5542833", "0.5541284", "0.5534454", "0.5531946", "0.55305487", "0.5525444", "0.552444", "0.55239874", "0.5523747", "0.5519276", "0.5517979", "0.55118895", "0.55113196", "0.5508007", "0.55071336", "0.54995", "0.5498198", "0.5497449" ]
0.0
-1
Build call for predict
public okhttp3.Call predictCall(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback _callback) throws ApiException { Object localVarPostBody = predictionRequest; // create path and map variables String localVarPath = "/workspaces/{workspaceId}/models/{modelId}/predict" .replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString())) .replaceAll("\\{" + "modelId" + "\\}", localVarApiClient.escapeString(modelId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "apiAuth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PredictorListener buildPredictor();", "public abstract int predict(double[] testingData);", "@Override\n public String predict (final ArrayList<String> values) {\n final ArrayList<Double> annExX = FloatConverter.valuesToDouble(values, attrs);\n // Get predict of ANN.\n final ArrayList<Double> output = getV(annExX);\n // Convert ANN output to raw output.\n final String target = FloatConverter.targetBackString(output, attrs);\n return target;\n }", "float predict();", "public PredictRequest build() {\n\n\t\t\tcheckArgument(!Strings.isNullOrEmpty(url), \"url is required\");\n\t\t\tcheckArgument(!Strings.isNullOrEmpty(service), \"service name is required\");\n\t\t\tcheckArgument(data != null, \"data is required\");\n\n\t\t\tPredictRequest request = new PredictRequest();\n\t\t\trequest.baseURL = url;\n\t\t\tJsonObject requestData = new JsonObject();\n\t\t\trequestData.addProperty(\"service\", service);\n\n\t\t\tJsonObject paramsObj = new JsonObject();\n\t\t\tif (input != null)\n\t\t\t\tparamsObj.add(\"input\", input);\n\t\t\tif (output != null)\n\t\t\t\tparamsObj.add(\"output\", output);\n\t\t\tif (mllibParams != null)\n\t\t\t\tparamsObj.add(\"mllib\", mllibParams);\n\n\t\t\tif (!paramsObj.isJsonNull()) {\n\t\t\t\trequestData.add(\"parameters\", paramsObj);\n\t\t\t}\n\n\t\t\trequestData.add(\"data\", data);\n\n\t\t\trequest.data = requestData;\n\t\t\treturn request;\n\t\t}", "private static native void predict_all_0(long nativeObj, long samples_nativeObj, long results_nativeObj);", "abstract Vec predict(Vec in);", "private float[] predict(float[] input) {\n float thisOutput[] = new float[1];\n\n // feed network with input of shape (1,input.length) = (1,2)\n inferenceInterface.feed(\"dense_1_input\", input, 1, input.length);\n inferenceInterface.run(new String[]{\"dense_2/Relu\"});\n inferenceInterface.fetch(\"dense_2/Relu\", thisOutput);\n\n // return prediction\n return thisOutput;\n }", "@Override\n\tpublic void predictFromPlainFile(String unlabel_file, String predict_file) {\n\t\t\n\t}", "private static native float predict_0(long nativeObj, long sample_nativeObj, boolean returnDFVal);", "@Override\r\n\tpublic int predict(double[] x, double[] posteriori) {\n\t\treturn 0;\r\n\t}", "private static native boolean train_0(long nativeObj, long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj);", "private PredictRequest() {\n\t}", "public static PredictBuilder newPredictRequest() {\n\t\treturn new PredictBuilder();\n\t}", "@Override\n\tpublic List<Double> predict(String predictionCode, String metricsId, String userId, int redmineProjectId) {\n\t\treturn null;\n\t}", "public abstract void setTrainParams(ClassificationMethod method,URL model,Map<String,Object> args) throws ClassificationException;", "static ResultEvent classify(byte[][][][] data, int version, byte[] target) throws IOException {\n if (logger.isDebugEnabled()){\n logger.debug(\"Performing prediction...\");\n }\n\n String result = API.predict(PORT, Yolo.modelName, version, data, Yolo.signatureString);\n Gson g = new Gson();\n YoloResults yoloResults = g.fromJson(result, YoloResults.class);\n\n // Output tensor dimensions of YOLO\n float[][][][] predictions = new float[data.length][19][19][425];\n for(int i=0; i<data.length; i++){\n for(int x=0; x<19; x++){\n for(int y=0; y<19; y++){\n System.arraycopy(yoloResults.predictions[i][x][y], 0, predictions[i][x][y], 0, 425);\n }\n }\n }\n\n float[] certainty = null;\n\n return new ResultEvent(Configuration.ModelName.YOLO, target, predictions, certainty);\n }", "public void Prediction() {\n System.out.println(\"\\nInput an x value: \");\n double x = inputs.nextDouble();\n double y = this.B0 + (this.B1 * x);\n System.out.println(\"The prediction made with \" + x + \" as the x value is: \" + y);\n System.out.println(\"\\nWhere y = B0 + (B1*xi) is substituted by:\\n y = \" + B0 + \" + (\" + B1 + \" * \" + x + \" )\\n\");\n }", "@Override\n public JsonObject getPrediction(String modelName,String usecaseName) throws InsightsCustomException {\n JsonObject prediction = h2oApiCommunicator.predict(modelName, usecaseName+\"_part1.hex\");\n JsonArray data = h2oApiCommunicator.getDataFrame(usecaseName+\"_part1.hex\");\n JsonObject response = new JsonObject();\n JsonArray fields = new JsonArray();\n Set<Map.Entry<String, JsonElement>> es = data.get(0).getAsJsonObject().entrySet();\n for (Iterator<Map.Entry<String, JsonElement>> it = es.iterator(); it.hasNext(); ) {\n fields.add(it.next().getKey());\n }\n if (data.size() == prediction.getAsJsonArray(\"predict\").size()) {\n \n prepareData(prediction, data, fields);\t \n response.add(\"Fields\", fields);\t \n response.add(\"Data\", data);\n return response;\n } else {\n log.error(\"Mismatch in test data and prediction: \");\n throw new InsightsCustomException(\"Mismatch in test data and prediction: \");\n }\n }", "protected abstract void evaluate(Vector target, List<Vector> predictions);", "public void prediction() {\n\t\txPriorEstimate = xPreviousEstimate;\n\t\tpPriorCovarianceError = pPreviousCovarianceError;\n\t}", "private float predict(float[][] features) {\n Tensor input = Tensor.create(features);\n float[][] output = new float[1][1];\n Tensor op_tensor = sess.runner().feed(\"input\", input).fetch(\"output\").run().get(0).expect(Float.class);\n Log.i(\"Tensor Shape\", op_tensor.shape()[0] + \", \" + op_tensor.shape()[1]);\n op_tensor.copyTo(output);\n return output[0][0];\n }", "public void TrainDataset(){\n\t\ttry{\n\t\t\t//Testing delegate method\n\t\t\tMessageController.logToConsole(\"Hey, I'm from train button\");\n\t\t\t\n\t\t\t//Pass in the real training dataset\n\t\t\tfindSuitableK(new String[]{\"Hello\", \"World\"});\n\t\t\t\n\t\t\t//Pass in the 'k' and 'query string'\n\t\t\tfindKNN(2, \"anything\");\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tthrow ex;\n\t\t}\n\t\tfinally{\n\t\t\t\n\t\t}\n\t}", "public abstract void build(ClassifierData<U> inputData);", "public interface Predictor {\n //\n // Inner interface --------------------------------------------\n //\n\n /**\n * Decission algorithm to select kernel for time series predictor.\n */\n public static interface PredictorSelectionStrategy {\n /**\n * Injects kernel to kernel-MA according to predictor internal data.\n */\n public void injectKernel(final Predictor predictor);\n\n /**\n * Maximum size of kernels\n */\n public int kernelSize();\n\n /**\n * Creates a brand new predictor.\n */\n public PredictorListener buildPredictor();\n }\n\n\n\n //\n // Interface methods -------------------------------------------\n //\n\n /**\n * Emits a single forecast based on learned values.\n */\n public double predict(final Calendar when);\n\n /**\n * Emits a forecast based on learned values.\n */\n public double[] predictVector(final Calendar when);\n\n /**\n * Memorizes several values at the same time.\n */\n public void learnVector(final Calendar when, final double[] vals);\n\n /**\n * Memorizes several values at the same time.\n */\n public void learnVector(final Calendar when, final List<Double> vals);\n\n\n /**\n * Memorizes one single value.\n */\n public void learnValue(final Calendar when, final double val);\n\n /**\n * Empties memory and predictions restoring initial state.\n */\n public void reset();\n\n /**\n * Returns the human name of the predictor.\n */\n public String toString();\n}", "public Prediction apply( double[] confidence );", "double predict(Vector w);", "public IridiumFlaresPredictorResult predict(double latitude, double longitude);", "public double train(ExampleInput input, ExampleOutput output,\n\t\t\tExampleOutput predicted);", "public PredictAndConfidence predictWithConf (final ArrayList<String> values) {\n final ArrayList<Double> annExX = FloatConverter.valuesToDouble(values, attrs);\n // Get predict of ANN.\n final ArrayList<Double> output = getV(annExX);\n // Convert ANN output to raw output.\n final PredictAndConfidence target = FloatConverter.targetBackStringWithConf(output, attrs);\n return target;\n }", "S predictScores(P preProcInputs);", "public void predict(final Bitmap bitmap) {\n new AsyncTask<Integer, Integer, Integer>() {\n\n @Override\n\n protected Integer doInBackground(Integer... params) {\n\n //Resize the image into 224 x 224\n Bitmap resized_image = ImageUtils.processBitmap(bitmap, 224);\n\n //Normalize the pixels\n floatValues = ImageUtils.normalizeBitmap(resized_image, 224, 127.5f, 1.0f);\n\n //Pass input into the tensorflow\n tf.feed(INPUT_NAME, floatValues, 1, 224, 224, 3);\n\n //compute predictions\n tf.run(new String[]{OUTPUT_NAME});\n\n //copy the output into the PREDICTIONS array\n tf.fetch(OUTPUT_NAME, PREDICTIONS);\n\n //Obtained highest prediction\n Object[] results = argmax(PREDICTIONS);\n\n\n int class_index = (Integer) results[0];\n float confidence = (Float) results[1];\n\n\n try {\n\n final String conf = String.valueOf(confidence * 100).substring(0, 5);\n\n //Convert predicted class index into actual label name\n final String label = ImageUtils.getLabel(getAssets().open(\"labels.json\"), class_index);\n\n\n //Display result on UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n progressBar.dismiss();\n resultView.setText(label + \" : \" + conf + \"%\");\n\n }\n });\n\n } catch (Exception e) {\n\n\n }\n\n\n return 0;\n }\n\n\n }.execute(0);\n\n }", "public boolean train(Mat trainData, Mat responses)\r\n {\r\n\r\n boolean retVal = train_1(nativeObj, trainData.nativeObj, responses.nativeObj);\r\n\r\n return retVal;\r\n }", "@Override\n public double predict(double[] explanatory) {\n if (explanatory == null || explanatory.length == 0) {\n throw new IllegalArgumentException(\"explanatory features must not be null or empty\");\n }\n return Activation.SIGMOID.apply(bias + Vector.dotProduct(explanatory, theta));\n }", "public double predict (org.apache.spark.mllib.linalg.Vector features) { throw new RuntimeException(); }", "public List<String> predict(List<String> sentences) {\n List<String> predictions = new ArrayList<>();\r\n for (String sentence : sentences) {\r\n predictions.add(predict(sentence));\r\n }\r\n return predictions;\r\n }", "public abstract PredictionMethod getMethod();", "public org.apache.spark.rdd.RDD<java.lang.Object> predict (org.apache.spark.rdd.RDD<org.apache.spark.mllib.linalg.Vector> features) { throw new RuntimeException(); }", "public double train(double[] X, double argValue);", "@Override\n public List<Prediction> predictWord(final String string) {\n Trace.beginSection(\"predictWord\");\n\n Trace.beginSection(\"preprocessText\");\n Log.e(TAG, \"inut_string: \" + string);\n //TODO\n\n String[] input_words = string.split(\" \");\n data_len[0] = input_words.length;\n Log.e(TAG, \"data_len: \" + data_len[0]);\n //intValues = new int[input_words.length];\n if (input_words.length < input_max_Size) {\n for (int i = 0; i < input_words.length; ++i) {\n Log.e(TAG, \"input_word: \" + input_words[i]);\n if (word_to_id.containsKey(input_words[i])) intValues[i] = word_to_id.get(input_words[i]);\n else intValues[i] = 6; //rare words, <unk> in the vocab\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n for (int i = input_words.length; i < input_max_Size; ++i) {\n intValues[i] = 0; //padding using <eos>\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n }\n else {\n Log.e(TAG, \"input out of max Size allowed!\");\n return null;\n }\n Trace.endSection();\n // Copy the input data into TensorFlow.\n Trace.beginSection(\"fillNodeFloat\");\n // TODO\n inferenceInterface.fillNodeInt(inputName, new int[] {1, input_max_Size}, intValues);\n Log.e(TAG, \"fillNodeInt success!\");\n inferenceInterface.fillNodeInt(inputName2, new int[] {1}, data_len);\n Log.e(TAG, \"fillDATA_LEN success!\");\n Trace.endSection();\n\n // Run the inference call.\n Trace.beginSection(\"runInference\");\n inferenceInterface.runInference(outputNames);\n Log.e(TAG, \"runInference success!\");\n Trace.endSection();\n\n // Copy the output Tensor back into the output array.\n Trace.beginSection(\"readNodeFloat\");\n inferenceInterface.readNodeFloat(outputName, outputs);\n Log.e(TAG, \"readNodeFloat success!\");\n Trace.endSection();\n\n // Find the best predictions.\n PriorityQueue<Prediction> pq = new PriorityQueue<Prediction>(3,\n new Comparator<Prediction>() {\n @Override\n public int compare(Prediction lhs, Prediction rhs) {\n // Intentionally reversed to put high confidence at the head of the queue.\n return Float.compare(rhs.getConfidence(), lhs.getConfidence());\n }\n });\n for (int i = 0; i < outputs.length; ++i) { //don't show i = 0 <unk>; i = 1<eos>\n if (outputs[i] > THRESHOLD) {\n pq.add(new Prediction(\"\" + i, id_to_word.get(i), outputs[i]));\n }\n }\n final ArrayList<Prediction> predictions = new ArrayList<Prediction>();\n for (int i = 0; i < Math.min(pq.size(), MAX_RESULTS); ++i) {\n predictions.add(pq.poll());\n }\n for (int i = 0; i < predictions.size(); ++i) {\n Log.e(TAG, predictions.get(i).toString());\n }\n Trace.endSection(); // \"predict word\"\n return predictions;\n }", "@Override\n public Double[] predict(Example e) {\n // check\n if (!(e.get(\"INPUT\").getValue() instanceof Double[])) {\n throw new RuntimeException(\"NeuralNetworkLearner inputs must be passed as a Double[] in the \\\"INPUT\\\" attribute\");\n }\n DataList in = new DataList((Double[]) e.get(\"INPUT\").getValue());\n // use network\n try {\n DataList out = this.network.use(in);\n return out.toArray();\n } catch (SizeDifferenceException ex) {\n throw new RuntimeException(ex);\n } catch (WrongSizeException ex) {\n throw new RuntimeException(ex);\n }\n }", "public interface ITrainingService {\n\n void train(double[][] gestures, double[][] responses, Integer numberOfResponses);\n}", "CompletionStage<Response<ByteString>> predict(final RequestContext context) {\n return Optional.ofNullable(context.pathArgs().get(\"features\"))\n .map(f -> f.split(\"-\"))\n .filter(features -> features.length == 4)\n .map(this::predict)\n .map(p -> p.thenApply(ByteString::encodeUtf8))\n .map(p -> p.thenApply(Response::forPayload))\n .orElse(CompletableFuture.completedFuture(Response.forStatus(Status.BAD_REQUEST)));\n }", "public float predict(Mat sample)\r\n {\r\n\r\n float retVal = predict_1(nativeObj, sample.nativeObj);\r\n\r\n return retVal;\r\n }", "PredictionResourceFormat.DefinitionStages.Blank define(String name);", "public abstract void fit(BinaryData trainingData);", "public int predict(int[] testingData) {\n\t\t// HIDDEN LAYER\n\t\tdouble[] hiddenActivations = new double[SIZE_HIDDEN_LAYER];\n\t\t\n\t\tfor(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden++) {\n\t\t\thiddenActivations[indexHidden] = 0;\n\t\t\tfor(int indexInput = 0; indexInput < SIZE_INPUT_LAYER; indexInput++) {\n\t\t\t\thiddenActivations[indexHidden] += weightsOfHiddenLayer[indexHidden][indexInput] * testingData[indexInput];\n\t\t\t}\t\n\t\t\thiddenActivations[indexHidden] += biasOfHiddenLayer[indexHidden];\n\t\t\thiddenActivations[indexHidden] = tanh(hiddenActivations[indexHidden]);\n\t\t}\n\t\t// OUTPUT LAYER \n\t\tdouble[] predictedLabel = new double[testingData.length];\n\n\t\tfor(int i = 0; i < SIZE_OUTPUT_LAYER; i++) {\n\t\t\tpredictedLabel[i] = 0;\n\n\t\t\tfor(int j = 0; j < SIZE_HIDDEN_LAYER; j++) {\n\t\t\t\tpredictedLabel[i] += weightsOfOutputLayer[i][j] * hiddenActivations[j];\n\t\t\t}\n\t\t\tpredictedLabel[i] += biasOfOutputLayer[i]; \n\t\t}\n\t\tsoftmax(predictedLabel);\n\t\tint solution = argmax(predictedLabel);\n\t\treturn solution;\n\t}", "@Override\r\n\tpublic void buildClassifier(Instances data) throws Exception {\n\r\n\t}", "private float predictPrueba(float features) {\n float n_epochs = num_epoch;\n float num1 = (float) Math.random();\n float output = 0; //y\n\n //First, create an input tensor:\n /*\n\n */\n\n\n //**** TEORIA *******\n //First, create an input tensor:\n //Tensor input = Tensor.create(features);\n // float[][] output = new float[1][1];\n //Then perform inference by:\n //Tensor op_tensor = sess.runner().feed(\"input\", input).fetch(\"output\").run().get(0).expect(Float.class);\n //Copy this output to a float array using:\n //op_tensor.copyTo(output);\n // values.copyTo(output);\n Tensor input = Tensor.create(features);\n Tensor op_tensor = sess.runner().feed(\"input\",input).fetch(\"output\").run().get(0).expect(Float.class);\n //para escribir en la app en W y B test\n ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").run();\n // NO VA ESTA PRUEBA ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").fetch(\"y/output\").run();\n\n Wtest.setText(\"W_inicial: \"+(Float.toString(values.get(0).floatValue())));\n Btest.setText(\"b_inicial: \"+Float.toString(values.get(1).floatValue()));\n y_mejoras_w.add(((values.get(0).floatValue())));\n x_mejoras_w.add( \"\"+(0+ num_epoch*num));\n\n y_mejoras_b.add(((values.get(1).floatValue())));\n x_mejoras_b.add( \"\"+(0+ num_epoch*num));\n\n ///\n\n // Y.setText(Float.toString(values.get(1).floatValue()));\n\n return output; ///mal\n }", "public String execute(String input) {\n Data data = Serializer.parse(input, Data.class);\n\n // Step #2: Check the discriminator\n final String discriminator = data.getDiscriminator();\n if (discriminator.equals(Discriminators.Uri.ERROR)) {\n // Return the input unchanged.\n return input;\n }\n\n // Create a series of pipes to process the training files\n ArrayList<Pipe> pipeList = new ArrayList<>();\n pipeList.add(new Input2CharSequence(\"UTF-8\"));\n // Pipes: lowercase, tokenize, remove stopwords, map to features\n pipeList.add( new CharSequenceLowercase() );\n pipeList.add( new CharSequence2TokenSequence(Pattern.compile(\"\\\\p{L}[\\\\p{L}\\\\p{P}]+\\\\p{L}\")) );\n pipeList.add( new TokenSequenceRemoveStopwords());\n pipeList.add( new TokenSequence2FeatureSequence());\n pipe = new SerialPipes(pipeList);\n\n // put the directory of files used for training through the pipes\n String directory = data.getParameter(\"directory\").toString();\n InstanceList instances = readDirectory(new File(directory));\n\n // create a topic to be trained\n int numberOfTopics = (Integer) data.getParameter(\"numTopics\");\n ParallelTopicModel topicModel = new ParallelTopicModel(numberOfTopics);\n topicModel.addInstances(instances);\n\n // train the model\n try {\n topicModel.estimate();\n } catch (IOException e){\n e.printStackTrace();\n return new Data<>(Discriminators.Uri.ERROR,\n \"Unable to train the model\").asJson();\n }\n\n // write topic keys file\n String path = data.getParameter(\"path\").toString();\n String keysName = data.getParameter(\"keysName\").toString();\n int wordsPerTopic = (Integer) data.getParameter(\"wordsPerTopic\");\n try {\n topicModel.printTopWords(new File(path + \"/\" + keysName), wordsPerTopic, false);\n } catch (IOException e) {\n e.printStackTrace();\n return new Data<>(Discriminators.Uri.ERROR,\n \"Unable to write the topic keys to \" + path + \"/\" + keysName).asJson();\n }\n\n // write the .inferencer file\n String inferencerName = data.getParameter(\"inferencerName\").toString();\n try {\n ObjectOutputStream oos =\n new ObjectOutputStream (new FileOutputStream (path + \"/\" + inferencerName));\n oos.writeObject (topicModel.getInferencer());\n oos.close();\n } catch (Exception e) {\n e.printStackTrace();\n return new Data<>(Discriminators.Uri.ERROR,\n \"Unable to write the inferencer to \" + path + \"/\" + inferencerName).asJson();\n }\n\n // Success\n return new Data<>(Discriminators.Uri.TEXT, \"Success\").asJson();\n }", "public static void main(String[] args) {\n\t\t\n\t\tPredictExample pe = new PredictExample();\n\t\tpe.testPredicate();\n\t}", "public String trainmodelandclassify(Attribute at) throws Exception {\n\t\tif(at.getAge()>=15 && at.getAge()<=25)\n\t\t\tat.setAgegroup(\"15-25\");\n\t\tif(at.getAge()>=26 && at.getAge()<=45)\n\t\t\tat.setAgegroup(\"25-45\");\n\t\tif(at.getAge()>=46 && at.getAge()<=65)\n\t\t\tat.setAgegroup(\"45-65\");\n\t\t\n\t\t\n\t\t\n\t\t//loading the training dataset\n\t\n\tDataSource source=new DataSource(\"enter the location of your .arff file for training data\");\n\tSystem.out.println(source);\n\tInstances traindataset=source.getDataSet();\n\t//setting the class index (which would be one less than the number of attributes)\n\ttraindataset.setClassIndex(traindataset.numAttributes()-1);\n\tint numclasses=traindataset.numClasses();\n for (int i = 0; i < numclasses; i++) {\n \tString classvalue=traindataset.classAttribute().value(i);\n \tSystem.out.println(classvalue);\n\t\t\n\t}\n //building the classifier\n NaiveBayes nb= new NaiveBayes();\n nb.buildClassifier(traindataset);\n System.out.println(\"model trained successfully\");\n \n //test the model\n\tDataSource testsource=new DataSource(\"enter the location of your .arff file for test data\");\n\tInstances testdataset=testsource.getDataSet();\n\t\n\tFileWriter fwriter = new FileWriter(\"enter the location of your .arff file for test data\",true); //true will append the new instance\n\tfwriter.write(System.lineSeparator());\n\tfwriter.write(at.getAgegroup()+\",\"+at.getGender()+\",\"+at.getProfession()+\",\"+\"?\");//appends the string to the file\n\tfwriter.close();\n\ttestdataset.setClassIndex(testdataset.numAttributes()-1);\n\t//looping through the test dataset and making predictions\n\tfor (int i = 0; i < testdataset.numInstances(); i++) {\n\t\tdouble classvalue=testdataset.instance(i).classValue();\n\t\tString actualclass=testdataset.classAttribute().value((int)classvalue);\n\t\tInstance instance=testdataset.instance(i);\n\t\tdouble pclassvalue=nb.classifyInstance(instance);\n\t\tString pclass=testdataset.classAttribute().value((int)pclassvalue);\n\t\tSystem.out.println(actualclass+\" \"+ pclass);\n\t\n}\n\tdouble classval=testdataset.instance(testdataset.numInstances()-1).classValue();\n\tInstance ins=testdataset.lastInstance();\n\tdouble pclassval=nb.classifyInstance(ins);\n\tString pclass=testdataset.classAttribute().value((int)pclassval);\n\tSystem.out.println(pclass);\n\t\n\treturn pclass;\n}", "public void implementPredicts(RevisionDocument doc) {\n\n\t}", "CompletionStage<String> predict(final String[] features) {\n final Iris featureData =\n new Iris(\n Option.apply(Double.parseDouble(features[0])),\n Option.apply(Double.parseDouble(features[1])),\n Option.apply(Double.parseDouble(features[2])),\n Option.apply(Double.parseDouble(features[3])),\n Option.empty());\n\n return predictor\n .predict(featureData)\n .thenApply(\n ps -> {\n return ps.stream()\n .findFirst()\n .map(Prediction::value)\n .map(idToClass::get)\n .orElseThrow(() -> new RuntimeException(\"we expect a prediction\"));\n });\n }", "private void calculatePrediction(int sensor_id){\n\t\t\n\t\tpredicted_sensor_readings[sensor_id][0] = (heta.getMatrix(sensor_id, sensor_id,0,M + number_of_sensors-1).times(getFeatureMatrix(sensor_id))).get(0, 0);\n\t\t\n\t}", "public void injectKernel(final Predictor predictor);", "@Override\n\tpublic double predict(long timestamp, SparseVector instance) {\n\t\treturn predict(instance);\n\t}", "public interface IPredictionService {\n\t\n\t\n\t/**\n\t * \n\t * Create an instance object of TestSet\n\t * \n\t * @param position\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic Instances makeTestSet(String position) throws Exception;\n\t\n\t/**\n\t * Used a particular algorithm to train the Artificial Intelligence (AI)\n\t * @throws Exception\n\t */\n\tpublic void train() throws Exception;\n\t\n\t/**\n\t * Used to classify after train\n\t * @throws Exception\n\t */\n\tpublic void classify() throws Exception;\n\n}", "private static native long CvSVM_1(long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj);", "public void setSkillPrediction(Skills skill);", "private String train(float[][][] features, float[] label, int epochs){\n org.tensorflow.Tensor x_train = Tensor.create(features);\n Tensor y_train = Tensor.create(label);\n int ctr = 0;\n while (ctr < epochs) {\n sess.runner().feed(\"input\", x_train).feed(\"target\", y_train).addTarget(\"train_op\").run();\n ctr++;\n }\n return \"Model Trained\";\n }", "public abstract Instances _getTrainingFromParams(String params);", "public void predict_all(Mat samples, Mat results)\r\n {\r\n\r\n predict_all_0(nativeObj, samples.nativeObj, results.nativeObj);\r\n\r\n return;\r\n }", "public void addTrainingData(String value,String label);", "public Skills getSkillPrediction();", "protected abstract String getPreprocessingModel(PipelineData data);", "private Prediction predictActivity(Activity activity, Posture posture, String postureFileName) throws FileNotFoundException {\n Prediction prediction;\n HMM hmm;\n HMMOperations hmmOperations = new HMMOperationsImpl();\n List<String> posturesOfInterest = Utils.activityMap.get(activity);\n String skeletonFileName = getSkeletonFile(postureFileName);\n Pair<Integer, Pair<Integer, Integer>> result;\n \n /* load HMM for the current activity */\n hmm = new HMMCalculus(Utils.HMM_DIRECTORY + activity.getName() + \".txt\");\n \n /* obtain list of past observations */\n List<Integer> observations = activityObservationsMap.get(activity);\n \n /* transform posture information into observation index*/\n int observation = posture.computeObservationIndex(posturesOfInterest);\n \n /* if the posture is misclassified then no activity is detected*/\n if (observation < 0) {\n \n int size = observations.size() + 1;\n int obs[] = new int[size], pred[] = new int[size];\n \n return new Prediction(obs, pred, 0.0);\n }\n \n /* combine the posture information with the object interaction and position information*/\n if (USE_OBJECT_RECOGNITION) {\n result = addObjectRecognitionObservation(observation,\n skeletonFileName, objectRecognition, lastPosition);\n observation = result.getFirst();\n lastPosition = result.getSecond();\n }\n \n /* add new observation to list*/\n activityObservationsMap.remove(activity);\n observations.add(observation);\n activityObservationsMap.put(activity, observations);\n \n \n \n \n /* predict */\n prediction = hmmOperations.predict(hmm,\n ArrayUtils.toPrimitive(observations.toArray(new Integer[0])));\n \n \n return prediction;\n }", "public void train() throws Exception;", "public abstract List<BindingRecord> predict(Allele allele, Collection<Peptide> peptides);", "public boolean train(Mat trainData, Mat responses, Mat varIdx, Mat sampleIdx, CvSVMParams params)\r\n {\r\n\r\n boolean retVal = train_0(nativeObj, trainData.nativeObj, responses.nativeObj, varIdx.nativeObj, sampleIdx.nativeObj, params.nativeObj);\r\n\r\n return retVal;\r\n }", "public okhttp3.Call predictAsync(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = predictValidateBeforeCall(workspaceId, modelId, predictionRequest, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "private Response performDT_training(String model_name, String data) {\n \tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MMM-yyyy_HmsS\");\n \tJSONObject summary = new JSONObject();\n \t\n \tif(model_name.trim().length()< 1) {\n \t\tmodel_name = \"DTree_Model_\" + sdf.format(Calendar.getInstance().getTime());\n \t}\n \t\n \t// check if the model name is already present\n \tif(utilObj.isModelNameUnique(model_name)) {\n \t\tsummary = new JSONObject();\n \t\tsummary.put(\"Error\", \"Duplicate model name : \" + model_name);\n \t\tlog.error(\"Duplicate model name\");\n \t\treturn Response.status(200).entity(summary.toString()).build();\n \t}\n \t\n \tlog.info(String.format(\"model_Name: %s\", model_name ));\n \tString modelFilePath = Util.CurrentDir+\"/models/\"+model_name;\n \t\n \ttry {\n\n \t\t// write the data to the disk\n \t\tfinal String inputFileName = \"TrainData_DT_\" + sdf.format(Calendar.getInstance().getTime()) + \".csv\";\n \t\tfinal String inputFilePath = Util.CurrentDir+\"/\"+Util.DataDir+\"/\"+inputFileName;\n \t\tFileWriter writer = new FileWriter(inputFilePath);\n \t\twriter.write(data);\n \t\twriter.flush();\n \t\twriter.close();\n \t\tlog.info(\"File created : \" + inputFilePath);\n \t\t\n \t\tString cmd = String.format(\"Rscript \"+Util.CurrentDir+\"/Rscripts/DTTraining.R %s %s \",inputFilePath, model_name);\n \t\tlog.info(cmd);\n\t \tProcess pr = Runtime.getRuntime().exec(cmd);\n\t\t\t\n\t\t\tBufferedReader results = new BufferedReader(new InputStreamReader(pr.getInputStream()));\n\t\t\tString line = null;\n\t\t\t\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\twhile((line=results.readLine()) != null) {\n\t\t\t\tbuf.append(line);\n\t\t\t\tif(line.trim().isEmpty()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine().trim();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tsummary.put(\"summary\", line);\n\t\t\t\t} \n\t\t\t\telse if(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tJSONArray Psplits = new JSONArray();\t\t\t\t\t\n\t\t\t\t\twhile(!line.trim().equalsIgnoreCase(\"Surrogate splits:\")) {\n\t\t\t\t\t\tString s[] = line.split(\"\\t\");\n\t\t\t\t\t\tfor(String s1 : s) {\n\t\t\t\t\t\t\tSystem.out.println(s1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tJSONArray splitCols = new JSONArray(s);\n\t\t\t\t\t\tline = results.readLine();\n\t\t\t\t\t\tbuf.append(line);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\tsummary.put(\"model_name\", model_name + \".RData\");\n\t\t\t\tsummary.put(\"InputFile\", inputFileName);\n\t\t\t\tsummary.put(\"CommandName\", \"Rscripts/DTTraining.R\");\n\t\t\t}\n\t\t\tsummary.put(\"raw\", buf.toString());\n\t\t\t\n\t\t\t// format the summary json as params { [key : val] }\n\t\t\tJSONArray finalSummary = new JSONArray();\n\t\t\tIterator<String> keys = summary.keySet().iterator();\n\t\t\twhile(keys.hasNext()) {\n\t\t\t\tJSONObject row = new JSONObject();\n\t\t\t\trow.put(\"attribute\", keys.next());\n\t\t\t\trow.put(\"value\", summary.get(row.getString(\"attribute\")));\n\t\t\t\tfinalSummary.put(row);\n\t\t\t}\n\t\t\treturn Response.status(200).entity(new JSONObject().put(\"summary\", finalSummary).toString()).build();\n\t\t\t\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n\t\t\n \treturn Response.status(200).entity(summary.toString()).build();\n }", "@Override\r\n\tpublic int predict(double[] x) {\n\t\tdouble[][] inputArray = new double[1][x.length];\r\n\t\tfor (int i = 0; i < x.length; i++) {\r\n\t\t\tinputArray[0][i] = x[i]-0.5*this.means[0][0][i]-0.5*this.means[1][0][i];\r\n\t\t}\r\n\t\tMatrix input = new Matrix(inputArray);\r\n\t\tdouble result = this.delta;\r\n\t\t// System.out.println(input.times(this.beta.get(label)).getRowDimension());\r\n\t\tresult += input.times(this.beta).get(0, 0);\r\n\t\t// System.out.println(result);\r\n\t\treturn result > 0 ? 1 : -1;\r\n\t}", "public interface PredictsService extends Service<Predicts> {\n\n}", "public interface MultiLabelClassifier extends Serializable{\n int getNumClasses();\n MultiLabel predict(Vector vector);\n default MultiLabel[] predict(MultiLabelClfDataSet dataSet){\n\n List<MultiLabel> results = IntStream.range(0,dataSet.getNumDataPoints()).parallel()\n .mapToObj(i -> predict(dataSet.getRow(i)))\n .collect(Collectors.toList());\n return results.toArray(new MultiLabel[results.size()]);\n }\n\n default void serialize(File file) throws Exception{\n File parent = file.getParentFile();\n if (!parent.exists()){\n parent.mkdirs();\n }\n try (\n FileOutputStream fileOutputStream = new FileOutputStream(file);\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(bufferedOutputStream);\n ){\n objectOutputStream.writeObject(this);\n }\n }\n\n default void serialize(String file) throws Exception{\n serialize(new File(file));\n }\n\n\n FeatureList getFeatureList();\n\n LabelTranslator getLabelTranslator();\n\n interface ClassScoreEstimator extends MultiLabelClassifier{\n double predictClassScore(Vector vector, int k);\n default double[] predictClassScores(Vector vector){\n return IntStream.range(0,getNumClasses()).mapToDouble(k -> predictClassScore(vector,k))\n .toArray();\n\n }\n }\n\n\n\n interface ClassProbEstimator extends MultiLabelClassifier{\n double[] predictClassProbs(Vector vector);\n\n /**\n * in some cases, this can be implemented more efficiently\n * @param vector\n * @param classIndex\n * @return\n */\n default double predictClassProb(Vector vector, int classIndex){\n return predictClassProbs(vector)[classIndex];\n }\n }\n\n interface AssignmentProbEstimator extends MultiLabelClassifier{\n double predictLogAssignmentProb(Vector vector, MultiLabel assignment);\n default double predictAssignmentProb(Vector vector, MultiLabel assignment){\n return Math.exp(predictLogAssignmentProb(vector, assignment));\n }\n\n /**\n * batch version\n * can be implemented more efficiently in individual classifiers\n * @param vector\n * @param assignments\n * @return\n */\n default double[] predictAssignmentProbs(Vector vector, List<MultiLabel> assignments){\n return Arrays.stream(predictLogAssignmentProbs(vector, assignments)).map(Math::exp).toArray();\n }\n\n\n default double[] predictLogAssignmentProbs(Vector vector, List<MultiLabel> assignments){\n double[] logProbs = new double[assignments.size()];\n for (int c=0;c<assignments.size();c++){\n logProbs[c] = predictLogAssignmentProb(vector, assignments.get(c));\n }\n return logProbs;\n }\n }\n\n}", "@Override\n public MLData compute(final MLData input) {\n\n if (this.model == null) {\n throw new EncogError(\n \"Can't use the SVM yet, it has not been trained, \" +\n \"and no model exists.\");\n }\n\n final MLData result = new BasicMLData(1);\n\n final svm_node[] formattedInput = makeSparse(input);\n\n final double d = svm.svm_predict(this.model, formattedInput);\n result.setData(0, d);\n\n return result;\n }", "private double predictByVoting (org.apache.spark.mllib.linalg.Vector features) { throw new RuntimeException(); }", "@Override\n public void train() {\n actual = observations.toArray();\n min_val_error = Double.MAX_VALUE;\n if (findDecayConstant)\n for (float alpha = 0f; alpha <= 1f; alpha += 0.01f)\n initializeAndTrainModel(alpha);\n else\n initializeAndTrainModel(optAlpha);\n }", "public Map<String,Double> call()\n\t\t\tthrows Exception {\n\t\tList<String> labels = new ArrayList<String>();\n\t\t\t\t\n\t\tfor (Trace<T> t : traces) {\n//\t\t\tSet<T> toAdd = new HashSet<T>();\n//\t\t\tfor (T s : t.getConstraints())\n//\t\t\t\ttoAdd.add(s);\n//\t\t\tt.setConstraints(toAdd);\n//\t\t\tfor (T c : toAdd)\n//\t\t\t\tallConstraints.add(c);\n\t\t\tif (!labels.contains(Integer.toString(t.getLabel())))\n\t\t\t\tlabels.add(Integer.toString(t.getLabel()));\n\t\t}\n\t\t\n\t\tArrayList<Attribute> attributes = new ArrayList<Attribute>();\n\t\tArrayList<String> levels = new ArrayList<String>();\n\t\tlevels.add(\"1\");\n\t\tlevels.add(\"0\");\n\t\tfor (T con : features) {\n\t\t\tAttribute a = new Attribute(con.toString());\n\t\t\tattributes.add(a);\n\t\t}\n\t\tattributes.add(new Attribute(\"label\", labels));\n\n\t\t// Crossvalidate with Weka\n\t\tInstances trainingSet = new Instances(\"TrainingSet\", attributes, traces.size());\n\t\ttrainingSet.setClassIndex(attributes.size() - 1);\n\t\tInstances testSet = new Instances(\"TrainingSet\", attributes, traces.size());\n\t\ttestSet.setClassIndex(attributes.size() - 1);\n\t\t\n\t\tfor (int t = 0; t < traces.size(); t++) {\n\t\t\tif (t % nFold != 0) {\n\t\t\t\tInstance instance = new DenseInstance(attributes.size());\n\t\t\t\tCollection<String> strings = traces.get(t).getConstraintsAsStrings();\n\t\t\t\tfor (int a = 0; a < attributes.size() - 1; a++) {\n\t\t\t\t\tif (strings.contains(attributes.get(a).name())) {\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 0);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tinstance.setValue(attributes.get(attributes.size() - 1),\n\t\t\t\t\t\tInteger.toString(traces.get(t).getLabel()));\n\t\t\t\ttrainingSet.add(instance);\n\t\t\t} else {\n\t\t\t\tInstance instance = new DenseInstance(attributes.size());\n\t\t\t\tCollection<String> strings = traces.get(t).getConstraintsAsStrings();\n\t\t\t\tfor (int a = 0; a < attributes.size() - 1; a++) {\n\t\t\t\t\tif (strings.contains(attributes.get(a).name())){\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 0);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tinstance.setValue(attributes.get(a), 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tinstance.setValue(attributes.get(attributes.size() - 1),\n\t\t\t\t\t\tInteger.toString(traces.get(t).getLabel()));\n\t\t\t\ttestSet.add(instance);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//System.out.println(\"Reasoning\");\n\t\tWekaPackageManager.loadPackages(false, true, false);\n\t\tAbstractClassifier classifier = null;\n\t\tString options = \"\";\n\t\tswitch(c){\n\t\t\tcase NB:\n\t\t\t\tclassifier = new NaiveBayes();//new LibSVM();\n\t\t\t\toptions = \"\";\n\t\t\t\tbreak;\n\t\t\tcase RandomForest:\n\t\t\t\tclassifier = new RandomForest();\n\t\t\t\toptions = \"\";\n\t\t\t\tbreak;\n\t\t\tcase SVM:\n\t\t\t\tclassifier = new LibSVM();\n\t\t\t\t//K: 0=linear, 1=polynomial, 2=radial basis, 3=sigmoid\n\t\t\t\toptions = \"-K,1,-W,\";\n\t\t\t\tfor(int i =0;i<labels.size();i++)\n\t\t\t\t\toptions+= \"1 \";\n\t\t\t\tbreak;\n\t\t}\t\t\n\t\tString[] optionsArray = options.split(\",\");\n\t\tclassifier.setOptions(optionsArray);\n\t\tclassifier.buildClassifier(trainingSet);\n\t\t\n\t\tMap<String,Double> result = new HashMap<String,Double>();\n\t\t\n\t\t//attributeScoring(trainingSet);\n\t\t//System.out.println(classifier.toSummaryString());\n\t\t//System.out.println(classifier.toString());\n\t\t\n\t\tEvaluation eTest = new Evaluation(trainingSet);\n\t\teTest.evaluateModel(classifier, testSet);\n\t\t\n\t\t//double auc = eTest.areaUnderROC(classIndex);\n\t\t//System.out.println(\"AUC: \"+auc);\n\t\tdouble accuracy = (double) eTest.correct() / (double) trainingSet.size();\n\t\tresult.put(\"accuracy\", accuracy);\n\t\treturn result;\n\t}", "public double predict(final Calendar when) {\n final int index = this.instantGenerator.generate(when);\n final double val = this.predictor.predict(when);\n this.predictedIntraday[index] = val;\n return val;\n }", "abstract void train(Matrix features, Matrix labels);", "protected Prediction(Parcel in) {\n this.tagId = in.readString();\n this._tag = in.readString();\n this.probability = in.readDouble();\n }", "@Override\n\n protected Integer doInBackground(Integer... params) {\n Bitmap resized_image = ImageUtils.processBitmap(bitmap, 224);\n\n //Normalize the pixels\n floatValues = ImageUtils.normalizeBitmap(resized_image, 224, 127.5f, 1.0f);\n\n //Pass input into the tensorflow\n tf.feed(INPUT_NAME, floatValues, 1, 224, 224, 3);\n\n //compute predictions\n tf.run(new String[]{OUTPUT_NAME});\n\n //copy the output into the PREDICTIONS array\n tf.fetch(OUTPUT_NAME, PREDICTIONS);\n\n //Obtained highest prediction\n Object[] results = argmax(PREDICTIONS);\n\n\n int class_index = (Integer) results[0];\n float confidence = (Float) results[1];\n\n\n try {\n\n final String conf = String.valueOf(confidence * 100).substring(0, 5);\n\n //Convert predicted class index into actual label name\n final String label = ImageUtils.getLabel(getAssets().open(\"labels.json\"), class_index);\n\n\n //Display result on UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n progressBar.dismiss();\n resultView.setText(label + \" : \" + conf + \"%\");\n\n }\n });\n\n } catch (Exception e) {\n\n\n }\n\n\n return 0;\n }", "public boolean train_auto(Mat trainData, Mat responses, Mat varIdx, Mat sampleIdx, CvSVMParams params)\r\n {\r\n\r\n boolean retVal = train_auto_1(nativeObj, trainData.nativeObj, responses.nativeObj, varIdx.nativeObj, sampleIdx.nativeObj, params.nativeObj);\r\n\r\n return retVal;\r\n }", "@Override protected ClarifaiResponse<List<ClarifaiOutput<Concept>>> doInBackground(Void... params) {\n final ConceptModel generalModel = App.get().clarifaiClient().getDefaultModels().foodModel();\n\n // Use this model to predict, with the image that the user just selected as the input\n return generalModel.predict()\n .withInputs(ClarifaiInput.forImage(ClarifaiImage.of(imageBytes)))\n .executeSync();\n }", "public void train ()\t{\t}", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call predictValidateBeforeCall(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling predict(Async)\");\n }\n \n // verify the required parameter 'modelId' is set\n if (modelId == null) {\n throw new ApiException(\"Missing the required parameter 'modelId' when calling predict(Async)\");\n }\n \n // verify the required parameter 'predictionRequest' is set\n if (predictionRequest == null) {\n throw new ApiException(\"Missing the required parameter 'predictionRequest' when calling predict(Async)\");\n }\n \n\n okhttp3.Call localVarCall = predictCall(workspaceId, modelId, predictionRequest, _callback);\n return localVarCall;\n\n }", "private static native boolean train_auto_0(long nativeObj, long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj, int k_fold, long Cgrid_nativeObj, long gammaGrid_nativeObj, long pGrid_nativeObj, long nuGrid_nativeObj, long coeffGrid_nativeObj, long degreeGrid_nativeObj, boolean balanced);", "public interface Aggregator {\n /**\n * Determines the final class recognized\n * @param confidence Confidence values produced by a recognizer\n * (one confidence value per class)\n * @return The final prediction given by a classifier\n */\n public Prediction apply( double[] confidence );\n\n}", "public static void main(String[] args) \n\t{\n\t\t// Konfiguration\n\t\tTraining training = new Training();\n\t\tint numberOfAttributes = 18;\n\t\tStatisticOutput statisticWriter = new StatisticOutput(\"data/statistics.txt\");\n\t\t\n\t\ttraining.printMessage(\"*** TCR-Predictor: Training ***\");\n\t\t\n\t\ttraining.printMessage(\"Datenbank von Aminosäure-Codierungen wird eingelesen\");\n\t\t// Lies die EncodingDB ein\n\t\tAAEncodingFileReader aa = new AAEncodingFileReader();\n\t\tAAEncodingDatabase db = aa.readAAEncodings(\"data/AAEncodings.txt\");\n\t\ttraining.printMessage(\"Es wurden \" + db.getEncodingDatabase().size() + \" Codierungen einglesen\");\n\t\t\n\t\ttraining.printMessage(\"Trainingsdatensatz wird eingelesen und prozessiert\");\n\t\t// Lies zunächst die gesamten Trainingsdaten ein\n\t\tExampleReader exampleReader = new ExampleReader();\n\t\t\n\t\t// Spalte das Datenset\n\t\tDataSplit dataSplit_positives = new DataSplit(exampleReader.getSequnces(\"data/positive.txt\"), 5);\n\t\tArrayList<ArrayList<String>> complete_list_positiv = dataSplit_positives.getDataSet();\n\t\t\n\t\tDataSplit dataSplit_negatives = new DataSplit(exampleReader.getSequnces(\"data/negative.txt\"), 5);\n\t\tArrayList<ArrayList<String>> complete_list_negativ = dataSplit_negatives.getDataSet();\n\t\t\n\t\t// Lege Listen für die besten Klassifizierer und deren Evaluation an\n\t\tModelCollection modelCollection = new ModelCollection();\n\t\t\n\t\t/*\n\t\t * \n\t\t * Beginne Feature Selection\n\t\t * \n\t\t */\n\t\tArrayList<String> positivesForFeatureSelection = training.concatenateLists(complete_list_positiv);\n\t\tArrayList<String> negativesForFeatureSelection = training.concatenateLists(complete_list_negativ);\n\t\t\n\t\ttraining.printMessage(\"Convertiere Daten ins Weka ARFF Format\");\t\t\n\t\t// Convertiere Daten in Wekas File Format\n\t\tARFFFileGenerator arff = new ARFFFileGenerator();\n\t\tInstances dataSet = arff.createARFFFile(positivesForFeatureSelection, negativesForFeatureSelection, db.getEncodingDatabase());\n\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\n\t\ttraining.printMessage(\"Führe Feature Selection (Filtering) aus\");\n\t\t// Beginne Feature Selection\n\t\tFeatureFilter featureFilter = new FeatureFilter();\n\t\tfeatureFilter.rankFeatures(dataSet, numberOfAttributes);\t\t\t\t\t// Wähle die x wichtigsten Features aus\n\t\tdataSet = featureFilter.getProcessedInstances();\n\t\ttraining.printMessage(\"Ausgewählte Features: \" + featureFilter.getTopResults());\n\n\t\t/*\n\t\t * Führe die äußere Evaluierung fünfmal durch und wähle das beste Modell\n\t\t */\n\t\tfor (int outer_run = 0; outer_run < 5; outer_run++)\n\t\t{\n\t\t\tstatisticWriter.writeString(\"===== Äußere Evaluation \" + (outer_run + 1) + \"/5 =====\\n\\n\");\n\t\t\t\n\t\t\t\n\t\t\tArrayList<ArrayList<String>> list_positives = new ArrayList<ArrayList<String>>();\n\t\t\tlist_positives.addAll(complete_list_positiv);\n\t\t\t\n\t\t\tArrayList<ArrayList<String>> list_negatives = new ArrayList<ArrayList<String>>();\n\t\t\tlist_negatives.addAll(complete_list_negativ);\n\t\t\t\n\t\t\t// Lege das erste Fragment beider Listen für nasted-Crossvalidation beiseite\n\t\t\tArrayList<String> outer_List_pos = new ArrayList<String>();\n\t\t\touter_List_pos.addAll(list_positives.get(outer_run));\n\t\t\tlist_positives.remove(outer_run);\n\t\t\t\n\t\t\tArrayList<String> outer_List_neg = new ArrayList<String>();\n\t\t\touter_List_neg.addAll(list_negatives.get(outer_run));\n\t\t\tlist_negatives.remove(outer_run);\n\t\t\t\n\t\t\t// Füge die verbleibende Liste zu einer Zusammen\n\t\t\tArrayList<String> inner_List_pos = training.concatenateLists(list_positives);\n\t\t\tArrayList<String> inner_List_neg = training.concatenateLists(list_negatives);\n\t\t\t\t\n\n\t\t\t/*\n\t\t\t * \n\t\t\t * Ab hier nur noch Arbeiten mit innerer Liste, die Daten zum Evaluieren bekommt Weka vorerst \n\t\t\t * nicht zu sehen!\n\t\t\t * \n\t\t\t */\n\t\t\ttraining.printMessage(\"Convertiere Daten ins Weka ARFF Format\");\t\t\n\t\t\t// Convertiere Daten in Wekas File Format\n\t\t\tarff = new ARFFFileGenerator();\n\t\t\tdataSet = arff.createARFFFile(inner_List_pos, inner_List_neg, db.getEncodingDatabase());\n\t\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\t\n\t\t\tfeatureFilter.processInstances(featureFilter.getRanking(), dataSet, numberOfAttributes); // Filtere das innere Datenset nach Vorgabe\n\t\t\tdataSet = featureFilter.getProcessedInstances();\n\t\t\t\n\t\t\ttraining.printMessage(\"Beginne Gridsearch\");\n\t\t\t// Gridsearch starten\n\t\n\t\t\t\n\t\t\t\n\t\t\tParameterOptimization optimizer = new ParameterOptimization();\n\t\t\tString logFileName = outer_run + \"_\" + numberOfAttributes;\n\t\t\tGridSearch gridSearch = optimizer.performGridSearch(dataSet, logFileName);\n\t\t\ttraining.printMessage(\"Gefundene Parameter [C, gamma]: \" + gridSearch.getValues()); // liefert unter diesen Settings 1.0 und 0.0\n\n\t\t\tSMO sMO = (SMO)gridSearch.getBestClassifier();\n\t\t\t\t\t\t\t\n\t\t\t/*\n\t\t\t * \n\t\t\t * Evaluationsbeginn \n\t\t\t *\n\t\t\t */\n\t\t\ttraining.printMessage(\"Evaluiere die Performance gegen das äußere Datenset\");\n\t\t\ttraining.printMessage(\"Transcodierung des Evaluationsdatensatzes\");\n\t\t\tarff = new ARFFFileGenerator();\n\t\t\tdataSet = arff.createARFFFile(outer_List_pos, outer_List_neg, db.getEncodingDatabase());\n\t\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\t\n\t\t\t// Führe Feature-Filtering mit den Einstellungen der GridSearch aus\n\t\t\ttraining.printMessage(\"Führe Feature Selection (Filtering) auf GridSearch-Basis aus\");\n\t\t\t// Beginne Feature Selection\n\t\t\tfeatureFilter.processInstances(featureFilter.getRanking(), dataSet, numberOfAttributes);\t // Wähle die x wichtigsten Features aus\n\t\t\tdataSet = featureFilter.getProcessedInstances();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttraining.printMessage(\"Ermittle Performance\");\n\t\t\tEvaluator eval = new Evaluator();\n\t\t\teval.classifyDataSet(sMO, dataSet);\n\t\t\ttraining.printMessage(eval.printRawData());\n\t\t\t\n\t\t\t/*\n\t\t\t * Füge das Modell und die externe Evaulation zur Sammlung hinzu\n\t\t\t */\t\t\t\n\t\t\tmodelCollection.bestClassifiers.add(sMO);\n\t\t\tmodelCollection.evalsOfBestClassifiers.add(eval);\n\t\t\tmodelCollection.listOfNumberOfAttributes.add(numberOfAttributes);\n\t\t\tmodelCollection.listOfFeatureFilters.add(featureFilter);\n\t\t\t\n\t\t\tstatisticWriter.writeString(\"Verwendete Attribute: \" + featureFilter.getTopResults());\n\t\t\tstatisticWriter.writeString(eval.printRawData());\n\t\t\t\n\t\t}\n\t\tstatisticWriter.close();\n\t\t\n\t\t// Wähle das beste aller Modelle aus\n\t\ttraining.printMessage(\"Ermittle die allgemein besten Einstellungen\");\n\t\tModelSelection modelSelection = new ModelSelection();\n\t\tmodelSelection.calculateBestModel(modelCollection);\n\t\t\n\t\ttraining.printMessage(\"Das beste Model: \");\n\t\ttraining.printMessage(modelSelection.getBestEvaluator().printRawData());\n\t\tSystem.out.println(\"------ SMO ------\");\n\t\tfor (int i = 0; i < modelSelection.getBestClassifier().getOptions().length; i++)\n\t\t{\n\t\t\tSystem.out.print(modelSelection.getBestClassifier().getOptions()[i] + \" \");\n\t\t}\n\t\tSystem.out.println(\"\\n--- Features ---\");\n\t\tSystem.out.println(modelSelection.getBestListOfFeatures().getTopResults());\n\t\t\n\t\t// Schreibe das Modell in eine Datei\n\t\ttraining.printMessage(\"Das beste Modell wird auf Festplatte geschrieben\");\n\t\ttry\n\t\t{\n\t\t\tSerializationHelper.write(\"data/bestPredictor.model\", modelSelection.getBestClassifier());\n\t\t\tSerializationHelper.write(\"data/ranking.filter\", modelSelection.getBestListOfFeatures().getRanking());\n\t\t\tSerializationHelper.write(\"data/components.i\", (modelSelection.getBestListOfFeatures().getProcessedInstances().numAttributes()-1));\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tSystem.err.println(\"Fehler beim Schreiben des Modells auf Festplatte: \" + ex);\n\t\t}\n\t}", "protected abstract void postMatLab(Object[] mlResults);", "public void buildModel() {\n }", "public CvSVM(Mat trainData, Mat responses)\r\n {\r\n\r\n super( CvSVM_2(trainData.nativeObj, responses.nativeObj) );\r\n\r\n return;\r\n }", "public double predict(double x) {\n double b1 = getSlope();\n return getIntercept(b1) + b1 * x;\n }", "@Override\n\tpublic void trainLocal() throws Exception {\n\t\tdouble [][] input = parameters.getInput();\n\t\tdouble [][] result = ann.getResults(parameters);\n\t\tif (state == preTraining) {//in this case, it is running in the pre-training mode.\n\t\t\tinput = newInput;\n\t\t\tresult = newInput;\n\t\t}\n\t\terr = 0; \n\t\tfor (int i = 0; i < mb; i++) {\t\n\t\t\tif (pos > input.length - 1) {\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\terr = err + ann.runEpoch(input[pos], pos, result[pos], parameters);\n\t\t\tpos++;\n\t\t}\n\t}", "public Framework_annotation<T> build_normal();", "private double[] computePredictionValues() {\n double[] predResponses = new double[D];\n for (int d = 0; d < D; d++) {\n double expDotProd = Math.exp(docLabelDotProds[d]);\n double docPred = expDotProd / (expDotProd + 1);\n predResponses[d] = docPred;\n }\n return predResponses;\n }", "TrainingTest createTrainingTest();", "public abstract void retrain(Call serviceCall, Response serviceResponse, CallContext messageContext);", "private double predictFromTraining(Instances training) {\n\t\tdouble predictedValue = -1;\n\t\ttry{\n\t\t\t// new forecaster\n\t WekaForecaster forecaster = new WekaForecaster();\n\n\t // Set the targets we want to forecast\n\t forecaster.setFieldsToForecast(\"count\");\n\t \n\t // Default underlying classifier is SMOreg (SVM) - we'll use\n\t // gaussian processes for regression instead\n\t forecaster.setBaseForecaster(new GaussianProcesses());\n\t forecaster.getTSLagMaker().setTimeStampField(\"date\"); // date time stamp\n\t \n\t //System.out.println(dateFormat.format(new Date()) + \" buildForecaster\");\n\t \n\t // build the model\n\t forecaster.buildForecaster(training, System.out);\n\n\t //System.out.println(dateFormat.format(new Date()) + \" primeForecaster\");\n\t \n\t forecaster.primeForecaster(training);\n\t \n\t //System.out.println(dateFormat.format(new Date()) + \" forecaster.forecast\");\n\t \n\t // forecast for 1 unit beyond the end of the\n\t // training data\n\t List<List<NumericPrediction>> forecast = forecaster.forecast(1, System.out);\n\t \n\t //System.out.println(dateFormat.format(new Date()) + \" forecast.get\");\n\t \n\t // Getting the prediction:\n\t List<NumericPrediction> predsAtStep = forecast.get(0);\n\t NumericPrediction predForTarget = predsAtStep.get(0);\n \t//System.out.print(\"\" + predForTarget.predicted() + \" \");\n \tpredictedValue = predForTarget.predicted();\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn predictedValue;\n\t}", "void setTrainData(DataModel trainData);" ]
[ "0.64997804", "0.6367399", "0.61365455", "0.61222374", "0.6117252", "0.6105843", "0.58246183", "0.57972693", "0.5754453", "0.57177985", "0.56969553", "0.5662439", "0.56135833", "0.5578794", "0.55396044", "0.5536828", "0.5523951", "0.5506289", "0.5477638", "0.5474992", "0.54640144", "0.5462487", "0.54541874", "0.543727", "0.54022956", "0.54003537", "0.5348498", "0.5328111", "0.5311229", "0.52833825", "0.5268539", "0.5264448", "0.5185149", "0.5179262", "0.5177978", "0.5149803", "0.51454026", "0.5129761", "0.5126265", "0.51201177", "0.5119781", "0.5111389", "0.51064235", "0.50896704", "0.5063688", "0.5030634", "0.5027991", "0.50218356", "0.4999199", "0.49845266", "0.49735522", "0.49717095", "0.49562317", "0.49466166", "0.49433798", "0.49287164", "0.49281567", "0.49150896", "0.49081862", "0.48991066", "0.48905873", "0.48877567", "0.4880812", "0.4863892", "0.48622853", "0.48453745", "0.4839572", "0.48357493", "0.48334804", "0.48327342", "0.48302713", "0.48228663", "0.48226583", "0.4805664", "0.48027927", "0.47931984", "0.47649807", "0.47626278", "0.47579896", "0.47517496", "0.4749651", "0.4746448", "0.47440332", "0.47422585", "0.47380254", "0.47177213", "0.4712797", "0.47058666", "0.47032955", "0.47010446", "0.46941584", "0.46885362", "0.4687156", "0.46844217", "0.4677776", "0.4673329", "0.46705827", "0.4658309", "0.46460035", "0.46455082", "0.46431735" ]
0.0
-1
verify the required parameter 'workspaceId' is set
@SuppressWarnings("rawtypes") private okhttp3.Call predictValidateBeforeCall(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback _callback) throws ApiException { if (workspaceId == null) { throw new ApiException("Missing the required parameter 'workspaceId' when calling predict(Async)"); } // verify the required parameter 'modelId' is set if (modelId == null) { throw new ApiException("Missing the required parameter 'modelId' when calling predict(Async)"); } // verify the required parameter 'predictionRequest' is set if (predictionRequest == null) { throw new ApiException("Missing the required parameter 'predictionRequest' when calling predict(Async)"); } okhttp3.Call localVarCall = predictCall(workspaceId, modelId, predictionRequest, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }", "public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }", "@Test\r\n \tpublic void testProjectID() {\n \t\tassertNull(localProject.getGlobalProjectId());\r\n \t}", "public String getWorkspaceId() {\n return workspaceId;\n }", "public String getWorkspaceId() {\n return this.workspaceId;\n }", "public UUID getWorkspaceId() {\n return workspaceId;\n }", "@Test\n\tpublic void getProjectByIdInvalid() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.getProjectById(7L);\n\t}", "@Test\n\tpublic void updateProjectsInvalidId() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.updateProject(7L, project);\n\t}", "@Test\n public void checkExistentWidgetAndParameter() throws Exception {\n\n driver = WidgetUtils.OpenWidgetEditMode(driver, wait, baseUrl, widgetName);\n\n //Step 3 - Check if the parameter exist in 'Settings'\n //Move to the iframe\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='solutionNavigatorAndContentPanel']/div[4]/table/tbody/tr[2]/td/div/div/table/tbody/tr/td/iframe\")));\n WebElement frameCDEDashboard = driver.findElement(By.xpath(\"//div[@id='solutionNavigatorAndContentPanel']/div[4]/table/tbody/tr[2]/td/div/div/table/tbody/tr/td/iframe\"));\n driver.switchTo().frame(frameCDEDashboard);\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='layoutPanelButton']\")));\n assertTrue(driver.findElement(By.xpath(\"//div[@class='layoutPanelButton']\")).isEnabled());\n //Press 'Settings'\n driver.findElement(By.xpath(\"//div[@id='headerLinks']/div[5]/a\")).click();\n wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.xpath(\"//div[@id='popup']\")));\n assertNotNull(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/input\")));\n //The parameter MUST be equal to the one set\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@id='widgetParameters']/div/span\")));\n assertEquals(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/span\")).getText(), paramName);\n //Press on the check box\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@id='widgetParameters']/div/input\")));\n assertTrue(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/input\")).isSelected());\n //Press button 'Cancel'\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='popupbuttons']/button[@id='popup_state0_buttonCancel']\")));\n driver.findElement(By.xpath(\"//div[@class='popupbuttons']/button[@id='popup_state0_buttonCancel']\")).click();\n\n\n //Step 4 - Click on Component Panel and check if the widget is listed\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='componentsPanelButton']\")));\n driver.findElement(By.xpath(\"//div[@class='componentsPanelButton']\")).click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/h3/span\")));\n driver.findElement(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/h3/span\")).click();\n //Getting the element where the widget created is displayed\n WebElement listOfWidgets = driver.findElement(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/div\"));\n //Check if the widget created is listed\n WebElement theWidgetCreated = listOfWidgets.findElement(By.xpath(\"//a[@class='tooltip' and contains(text(),'\" + widgetName + \"')]\"));\n assertNotNull(theWidgetCreated);\n assertEquals(theWidgetCreated.getText(), widgetName);\n\n\n //Step 5 - Click in the widget created and check if the widget is add at Components column and Properties\n theWidgetCreated.click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//table[@id='table-cdfdd-components-components']/tbody/tr[4]/td\")));\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//table[@id='table-cdfdd-components-properties']/tbody/tr[2]/td\")));\n assertEquals(driver.findElement(\n By.xpath(\"//table[@id='table-cdfdd-components-components']/tbody/tr[4]/td\")).getText(),\n widgetName + \" Widget\");\n assertEquals(driver.findElement(\n By.xpath(\"//table[@id='table-cdfdd-components-properties']/tbody/tr[2]/td\")).getText(),\n \"Parameter \" + paramName);\n }", "public void setWorkspace( Integer workspace ) {\n this.workspace = workspace;\n }", "public void setWorkspace(String workspace) {\n this.workspace = workspace;\n }", "protected static Workspace getWorkspace(String workspaceId)\n throws AnaplanAPIException {\n if (workspaceId == null || workspaceId.isEmpty()) {\n LOG.error(\"A workspace ID must be provided\");\n return null;\n }\n Workspace result = null;\n\n if (!noValidateWorkspace) {\n try {\n result = getService().getWorkspace(workspaceId);\n } catch (WorkspaceNotFoundException | UnknownAuthenticationException ignored) {\n }\n }\n if (result == null) {\n WorkspaceData data = new WorkspaceData();\n data.setId(workspaceId);\n try {\n result = new Workspace(getService(), data);\n } catch (UnknownAuthenticationException ignored) {\n }\n }\n return result;\n }", "public BaseMsg verifyProjectInfo(long projectId);", "private boolean assertIdAndVarName() {\r\n\t\tfinal boolean isValidId = assertNotEmpty(cmpCfg.getId(),\r\n\t\t\t\tYValidationAspekt.VIEW_ID_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValidVar = assertNotEmpty(cmpCfg.getVariableName(),\r\n\t\t\t\tYValidationAspekt.VIEW_VAR_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValid = isValidId && isValidVar;\r\n\t\treturn isValid;\r\n\r\n\t}", "private void validatePathParameters(final Integer datacenterId) throws NotFoundException\n {\n if (!service.isAssignedTo(datacenterId, RemoteServiceType.NODE_COLLECTOR))\n {\n throw new NotFoundException(APIError.NOT_ASSIGNED_REMOTE_SERVICE_DATACENTER);\n }\n }", "public void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public boolean isIdExist(int projectId) throws EmployeeManagementException;", "boolean canAccess(String workspaceName) throws NoSuchWorkspaceException, RepositoryException;", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "@Test\n\tpublic void deleteProjectsInvalidID() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.deleteProject(7L);\n\t}", "@Test\n public void testBuildWithValidParametersReturnsProjectExportParametersInstance() {\n // Arrange\n testling.setProjectName(\"validProjectName\")\n .setProjectExportPath(\"validProjectExportPath\");\n\n // Assert\n ProjectExportParameters parameters = testling.build();\n\n // Act\n assertThat(\"Expect not null.\", parameters, is(notNullValue()));\n }", "@Test\n\tpublic void testBuildWithValidParametersReturnsProjectExportParametersInstance() {\n\t\t// Arrange\n\t\ttestling.setProjectName(\"validProjectName\")\n\t\t\t\t.setProjectExportPath(\"validProjectExportPath\");\n\n\t\t// Assert\n\t\tProjectExportParameters parameters = testling.build();\n\n\t\t// Act\n\t\tassertThat(\"Expect not null.\", parameters, is(notNullValue()));\n\t}", "public void testPropFindForNonExistingWorkspace() throws Exception\n {\n String file = TestUtils.getFileName();\n\n ContainerResponse response =\n service(WebDAVMethods.PROPFIND, getPathWS() + \"_\" + file, \"\", null, null);\n assertEquals(HTTPStatus.CONFLICT, response.getStatus());\n }", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "public interface WorkspaceContext {\n\n\n /**\n * Retorna a representação do workspace.\n *\n * @return\n */\n WorkspaceRepresentation getWorkspace();\n\n /**\n * Define o projeto de trabalho.\n *\n * @param projectRepresentation\n */\n void setWorkingProject(ProjectRepresentation projectRepresentation);\n\n\n /**\n * Retorna o projeto de trabalho.\n *\n * @return\n */\n ProjectRepresentation getWorkingProject();\n}", "protected void addWorkspace( String workspaceName ) {\n }", "@Reference\n public void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public void testGetProjectPhasesLong_NotExist() throws Exception {\n Project project = persistence.getProjectPhases(33245);\n assertNull(\"Should return null.\", project);\n }", "protected void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "@Test\n\tpublic void query_for_build_project_is_scoped_to_BuildProject() {\n\t\tEnvironmentContext cx = null;\n\t\ttry {\n\t\t\tcx = new EnvironmentContext();\n\t\t} catch (Exception e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t// And a new repository with that connection\n\t\tBuildProjectRepository repository = new BuildProjectRepositoryApiClient(cx);\n\t\t// When I build the query for story statuses\n\t\tQuery query = repository.buildQueryForAllBuildProjects();\n\t\t// Then the asset type is BuildProject\n\t\tassertEquals(\"BuildProject\", query.getAssetType().getToken());\n\t}", "private void checkAuthSessionId() {\n val auth = config.getString(\"authSessionId\");\n\n checkArgument(auth.length() > 10, \"auth string (sessionId) length is less than or equal to 10!\");\n }", "public boolean checkSelf() {\n\t\tboolean ok = true;\n\t\tif (controller == null) {\n\t\t\tSystem.err.println(\"CRParameters :: controller not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (scenario.length() == 0 && controller.getWorld().getHasScenarios()) {\n\t\t\tSystem.err.println(\"CRParameters :: scenario not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (reportFolderName.length() == 0) {\n\t\t\tSystem.err.println(\"CRParameters :: report folder not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (trialDuration <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: trial duration not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfRuns <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of runs not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfTrials <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of trials not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\treturn ok;\n\t}", "private void validateGetIdPInputValues(String resourceId) throws IdentityProviderManagementException {\n\n if (StringUtils.isEmpty(resourceId)) {\n String data = \"Invalid argument: Identity Provider resource ID value is empty\";\n throw IdPManagementUtil.handleClientException(IdPManagementConstants.ErrorMessage\n .ERROR_CODE_IDP_GET_REQUEST_INVALID, data);\n }\n }", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "public FormValidation doCheckExecutionParameters(@QueryParameter String value, @QueryParameter String agentId) {\n if (StringUtils.isEmpty(value) && StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n JsonObject executionParams = null;\n try {\n executionParams = SerializationHelper.fromJson(value, JsonObject.class);\n\n // In case the value parameter is empty\n if (executionParams == null)\n return FormValidation.ok();\n\n } catch (JsonSyntaxException e) {\n return FormValidation.error(\"Invalid JSON object\");\n }\n\n // In case the user did not select agent from the dropdown and/or in the JSON object, return ok.\n if ((executionParams.get(\"agentId\") != null && StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString())) || StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n // In case the user has selected the same agentId in the dropdown and in the JSON object, no need to show a warning\n if ((executionParams.get(\"agentId\") != null && StringUtils.equals(executionParams.get(\"agentId\").getAsString(), agentId)))\n return FormValidation.ok();\n\n // In case the user has selected two different agents in the dropdown and in the JSON object, show warning\n if (executionParams.get(\"agentId\") != null &&\n !StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString()) &&\n !StringUtils.isEmpty(agentId))\n return FormValidation.warning(\"You've selected an agent and specified a different one in executionParameters. The job will be executed on the selected agent.\");\n\n return FormValidation.ok();\n }", "protected void removeWorkspace( String workspaceName ) {\n }", "public boolean isSetRunId() {\n return this.runId != null;\n }", "@Test\n public void testErrorMsgWhenProjectNameIsEmpty() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String testAccount = \"Account2\";\n createProject.setAccountDropDown(testAccount);\n createProject.clickCreateProject();\n\n //Then\n String expectedMessage = \"Enter a name for your project\";\n String actualMessage = createProject.getProjectTitleMessage();\n softAssert.assertEquals(expectedMessage, actualMessage);\n softAssert.assertEquals(createProject.getProjectNameTextFieldColor(), RED_COLOR);\n softAssert.assertAll();\n }", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "public void setStagingWorkspaceId(Long stagingWorkspaceId) {\n this.stagingWorkspaceId = stagingWorkspaceId;\n }", "@Override\n public String validNameProject(String name, Integer project_Oid) {\n return null;\n }", "public String getWorkspaceName() {\n return workspaceName;\n }", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorWorkspaceNull() {\n PlannedActivity plannedActivity = new PlannedActivity(0,\n new Site(\"factory\", \"area\"), new Typology(\"typology\"),\n \"desctiption\", 0, true, 1, new Procedure(\"name\", \"smp\"), null);\n\n }", "@Test\n public void testWithActiveRunNoRunName() {\n MlflowContext mlflow = setupMlflowContext();\n mlflow.setExperimentId(\"123\");\n when(mockClient.createRun(any(CreateRun.class)))\n .thenReturn(RunInfo.newBuilder().setRunId(\"test-id\").build());\n mlflow.withActiveRun(activeRun -> {\n Assert.assertEquals(activeRun.getId(), \"test-id\");\n });\n verify(mockClient).createRun(any(CreateRun.class));\n verify(mockClient).setTerminated(any(), any());\n }", "public void test_61843() {\n \t\t// create the project and manually give it a settings file\n \t\tfinal String qualifier = getUniqueString();\n \t\tfinal IProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tIFile settingsFile = getFileInWorkspace(project, qualifier);\n \n \t\t// write some property values in the settings file\n \t\tProperties properties = new Properties();\n \t\tproperties.put(\"key\", \"value\");\n \t\tOutputStream output = null;\n \t\ttry {\n \t\t\tFile file = settingsFile.getLocation().toFile();\n \t\t\tfile.getParentFile().mkdirs();\n \t\t\toutput = new BufferedOutputStream(new FileOutputStream(file));\n \t\t\tproperties.store(output, null);\n \t\t} catch (FileNotFoundException e) {\n \t\t\tfail(\"1.0\", e);\n \t\t} catch (IOException e) {\n \t\t\tfail(\"1.1\", e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (output != null)\n \t\t\t\t\toutput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\t// ignore\n \t\t\t}\n \t\t}\n \n \t\t// add a log listener to ensure that no errors are reported silently\n \t\tILogListener logListener = new ILogListener() {\n \t\t\tpublic void logging(IStatus status, String plugin) {\n \t\t\t\tThrowable exception = status.getException();\n \t\t\t\tif (exception == null || !(exception instanceof CoreException))\n \t\t\t\t\treturn;\n \t\t\t\tif (IResourceStatus.WORKSPACE_LOCKED == ((CoreException) exception).getStatus().getCode())\n \t\t\t\t\tfail(\"3.0\");\n \t\t\t}\n \t\t};\n \n \t\t// listener to react to changes in the workspace\n \t\tIResourceChangeListener rclistener = new IResourceChangeListener() {\n \t\t\tpublic void resourceChanged(IResourceChangeEvent event) {\n \t\t\t\tnew ProjectScope(project).getNode(qualifier);\n \t\t\t}\n \t\t};\n \n \t\t// add the listeners\n \t\tPlatform.addLogListener(logListener);\n \t\tgetWorkspace().addResourceChangeListener(rclistener, IResourceChangeEvent.POST_CHANGE);\n \n \t\ttry {\n \t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"4.0\", e);\n \t\t} finally {\n \t\t\tPlatform.removeLogListener(logListener);\n \t\t\tgetWorkspace().removeResourceChangeListener(rclistener);\n \t\t}\n \t}", "@Test\n public void getComputerBuildByIdentifier() {\n Iterable<ComputerBuild> computerBuilds = computerBuildService.getAllComputerBuildsFromUser(USER_NAME_TO_TEST_OWNERSHIP_ENDPOINTS);\n ComputerBuild retrievedBuild = computerBuilds.iterator().next();\n assertNotNull(retrievedBuild);\n\n ComputerBuild foundBuild = computerBuildService.getComputerBuildByBuildIdentifier(retrievedBuild.getBuildIdentifier());\n\n assertNotNull(foundBuild);\n assertEquals(retrievedBuild.getBuildIdentifier(), foundBuild.getBuildIdentifier());\n assertEquals(retrievedBuild.getUser().getUsername(), foundBuild.getUser().getUsername());\n\n }", "@Test\n public void testValidToken() {\n try {\n int coachId = authBO.getUserIdAndValidateToken(\"thisisaworkingtoken\");\n Assert.assertTrue(coachId == 1);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "String checkIfProjectExists(String projectKey, String projectName);", "@Test\n public void test_access_to_modify_team_success() {\n try {\n Assert.assertTrue(authBO.hasAccessToModifyTeam(1, 1));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "@Override\r\n protected CommandStatus<StclContext, PStcl> verifyContext(CommandContext<StclContext, PStcl> cmdContext, PStcl self) {\n _name = getParameter(cmdContext, 1, null);\r\n if (StringUtils.isEmpty(_name)) {\r\n return error(cmdContext, self, Status.NO_NAME_DEFINED, \"no name to copy directory\");\r\n }\r\n\r\n // other verification\r\n return super.verifyContext(cmdContext, self);\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 }", "private boolean configurationInWorkspace(URL url) {\n \t\treturn true;\n \t}", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExists() {\n assertThrows(NotFoundException.class, () -> projectService.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Test\n public void testNoCoverageId() throws Exception {\n MockHttpServletResponse response = getAsServletResponse(\"wcs?service=WCS&version=2.0.1&request=GetCoverage\");\n checkOws20Exception(response, 400, \"MissingParameterValue\", \"coverageId\");\n }", "void verifyOrCreateReport(String reportId);", "public void testGetProjectByNameDoesNotExist() throws Exception {\r\n ProjectServiceRemote projectService = lookupProjectServiceRemoteWithUserRole();\r\n\r\n // 1 is the user id\r\n try {\r\n projectService.getProjectByName(\"xxxxx\", 1);\r\n fail(\"ProjectNotFoundFault expected.\");\r\n } catch (ProjectNotFoundFault e) {\r\n // expected\r\n }\r\n }", "@Test\n public void testFailureWithoutObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, \"\", 400);\n }", "private boolean ensureWorkspaceExists(String name, Credentials credentials) {\r\n\t\tSession sess = null;\r\n\t\ttry {\r\n\t\t\tsess = repository.login(credentials);\r\n\t\t\tString[] wsnames = sess.getWorkspace()\r\n\t\t\t\t\t.getAccessibleWorkspaceNames();\r\n\t\t\tif (inArr(name, wsnames)) {\r\n\t\t\t\t// workspace exists\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tlog.info(\" Creating Repository workspace \" + name);\r\n\t\t\t\tsess.getWorkspace().createWorkspace(name);\r\n\t\t\t}\r\n\t\t} catch (LoginException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t} catch (RepositoryException e) {\r\n\t\t\t// ugly check, we are getting something like workspace 'wsname'\r\n\t\t\t// already exists.\r\n\t\t\tif (e.getMessage().indexOf(\"already exists\") > 0) {\r\n\t\t\t\t// ignore exteption\r\n\t\t\t} else {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif (sess != null) {\r\n\t\t\t\tsess.logout();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Test\n public void allWorkspacesTest() throws ApiException {\n List<Workspace> response = api.allWorkspaces();\n\n // TODO: test validations\n }", "@Test\n public void testFailureWithNonexistantObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, reqFactory.createIdApiRequest(Types.PACKAGE).execute(hc), 404);\n }", "void checkStationId(int lineCount, String testStationId) {\n if (!stationId.equals(testStationId)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Station Id does not match previous station record \" +\n stationId + \": \" + testStationId);\n } // if (!stationId.equals(station.getStationId(\"\")))\n }", "public String getWorkspace() {\n return workspace;\n }", "protected void verifyRequestInputModelNone( String apiName)\n {\n // Given...\n OpenAPI api = readApi( apiName);\n\n // When...\n SystemInputDef inputDef = TcasesOpenApi.getRequestInputModel( api);\n\n // Then...\n assertThat( apiName + \" input model\", inputDef, is( nullValue()));\n }", "@Test\n public void testNeighborSystemId() throws Exception {\n isisNeighbor.setNeighborSystemId(systemId);\n result1 = isisNeighbor.neighborSystemId();\n assertThat(result1, is(systemId));\n }", "protected void validateCredentials() throws BittrexApiException {\n String humanMessage = \"Please check environment variables or VM options\";\n if (Strings.isNullOrEmpty(this.getApiKey()))\n throw new BittrexApiException(\"Missing BITTREX_API_KEY. \" + humanMessage);\n if (Strings.isNullOrEmpty(this.getSecretKey()))\n throw new BittrexApiException(\"Missing BITTREX_SECRET_KEY. \" + humanMessage);\n }", "void commit(String workspace);", "@Test\n\tpublic void testGetBuildVersion() {\n\t\tString buildVersion = rmitAnalyticsModel.getBuildVersion();\n\t\tAssert.assertNotNull(buildVersion);\n\t\tAssert.assertTrue(buildVersion.isEmpty());\n\t}", "@Test\n public void enableDebuggerTest() {\n String customerId = null;\n // Void response = api.enableDebugger(customerId);\n\n // TODO: test validations\n }", "public Workspace getWorkspace() {\n return workspace;\n }", "public void checkParameters() {\n }", "private void verifyWorkspace(long[][][] ids) {\n ArrayList<Long> allScreens = LauncherModel.loadWorkspaceScreensDb(getMockContext());\n assertEquals(ids.length, allScreens.size());\n int total = 0;\n\n for (int i = 0; i < ids.length; i++) {\n long screenId = allScreens.get(i);\n for (int y = 0; y < ids[i].length; y++) {\n for (int x = 0; x < ids[i][y].length; x++) {\n long id = ids[i][y][x];\n\n Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI,\n new String[]{LauncherSettings.Favorites._ID},\n \"container=-100 and screen=\" + screenId +\n \" and cellX=\" + x + \" and cellY=\" + y, null, null, null);\n if (id == -1) {\n assertEquals(0, c.getCount());\n } else {\n assertEquals(1, c.getCount());\n c.moveToNext();\n assertEquals(id, c.getLong(0));\n total++;\n }\n c.close();\n }\n }\n }\n\n // Verify that not other entry exist in the DB.\n Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI,\n new String[]{LauncherSettings.Favorites._ID},\n \"container=-100\", null, null, null);\n assertEquals(total, c.getCount());\n c.close();\n }", "@Override\r\n\tpublic Workspace getWorkspace() {\n\t\treturn null;\r\n\t}", "@Test\n public void postTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.postTemplateProgrammerProject(request);\n\n // TODO: test validations\n }", "private void validateITResource() {\n // TODO Auto-generated method stub\n \n }", "public static boolean isValidDivisionId(int divisionId) {\n return divisionId > 0 || divisionId == DIVISION_TEST || divisionId == DIVISION_GLOBAL;\n }", "private void assert_validPID(int pid) throws IllegalArgumentException{\n\t\tif(!validPID(pid)){\n\t\t\tthrow new IllegalArgumentException(\"Tried to get a property from layer '\"+ name\n\t\t\t\t\t+\"' with an invalid property ID: \"+pid);\n\t\t}\n\t}", "private boolean checkInstanceLocation(boolean show_login,\n final boolean force_prompt,\n URL default_workspace, String username, String password,\n Map<String, Object> parameters)\n {\n // Was \"-data @none\" specified on command line?\n final Location instanceLoc = Platform.getInstanceLocation();\n\n if (instanceLoc == null)\n {\n MessageDialog.openError(null,\n \"No workspace\", //$NON-NLS-1$\n \"Cannot run without a workspace\"); //$NON-NLS-1$\n return false;\n }\n\n // -data \"/some/path\" was provided...\n if (instanceLoc.isSet())\n {\n try\n { // Lock\n if (instanceLoc.lock())\n return true;\n // Two possibilities:\n // 1. directory is already in use\n // 2. directory could not be created\n final File ws_dir = new File(instanceLoc.getURL().getFile());\n if (ws_dir.exists())\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_InUseErrorTitle,\n NLS.bind(org.csstudio.platform.workspace.Messages.Workspace_InUseError,\n ws_dir.getCanonicalPath()));\n else\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_DirectoryErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_DirectoryError);\n }\n catch (IOException ex)\n {\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_LockErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_LockError\n + ex.getMessage());\n }\n return false;\n }\n\n // -data @noDefault or -data not specified, prompt and set\n if (default_workspace == null)\n default_workspace = instanceLoc.getDefault();\n\n final WorkspaceInfo workspace_info =\n new WorkspaceInfo(default_workspace, !force_prompt);\n\n // Prompt in any case? Or did user decide to be asked again?\n boolean show_Workspace = force_prompt | workspace_info.getShowDialog();\n\n //if no user name provided, display last login user.\n if(username == null)\n username = WorkspaceIndependentStore.readLastLoginUser();\n\n //initialize startupHelper\n StartupHelper startupHelper = new StartupHelper(null, force_prompt,\n workspace_info, username, password, show_login, show_Workspace);\n\n while (true)\n {\n startupHelper.setShow_Login(show_login);\n startupHelper.setShow_Workspace(show_Workspace);\n\n if (show_Workspace || show_login)\n {\n if (! startupHelper.openStartupDialog())\n return false; // canceled\n\n //get user name and password from startup dialog\n if(show_login) {\n username = startupHelper.getUserName();\n password = startupHelper.getPassword();\n }\n }\n // In case of errors, we will have to ask the workspace,\n // but don't bother to ask user name and password again.\n show_Workspace = true;\n show_login = false;\n\n try\n {\n // the operation will fail if the url is not a valid\n // instance data area, so other checking is unneeded\n URL workspaceUrl = new URL(\"file:\" + workspace_info.getSelectedWorkspace()); //$NON-NLS-1$\n if (instanceLoc.set(workspaceUrl, true)) // set & lock\n {\n workspace_info.writePersistedData();\n parameters.put(WORKSPACE, workspaceUrl);\n return true;\n }\n }\n catch (Exception ex)\n {\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_GenericErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_GenericError + ex.getMessage());\n return false;\n }\n // by this point it has been determined that the workspace is\n // already in use -- force the user to choose again\n show_login = false;\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_InUseErrorTitle,\n NLS.bind(org.csstudio.platform.workspace.Messages.Workspace_InUseError,\n workspace_info.getSelectedWorkspace()));\n }\n }", "@Test\n void testNonEmptyConstructor() {\n assertNotNull(isLockedRequest2);\n assertTrue(isLockedRequest2.getToken().equals(token)\n && isLockedRequest2.getId() == id);\n }", "@Then(\"^Validate customer id is created$\")\r\n\tpublic void validate_customer_id_is_created() throws Throwable {\n\t\tAssert.assertTrue(response.jsonPath().get(\"id\").equals(new PropertFileReader().getTempData(\"custId\")));\r\n\t\t\r\n\t}", "public Workspace build() {\n if (properties == null) {\n properties = new HashMap<>();\n }\n if (workspaceId == null || workspaceStage == null) {\n throw new MissingRequiredFieldsException(\"Workspace requires id and stage\");\n }\n return new Workspace(\n workspaceId,\n displayName,\n description,\n spendProfileId,\n properties,\n workspaceStage,\n gcpCloudContext);\n }", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExistsMockVersion() {\n assertThrows(NotFoundException.class, () -> projectServiceMock.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Override\r\n\tpublic void testInvalidId() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testInvalidId();\r\n\t\t}\r\n\t}", "@Test\n public void given_devEnvironmentWithPathVariable_when_callEndPointUpdateStudent_then_returnStatus200() throws Exception {\n\n Mockito.when(studentRepo.findById(ArgumentMatchers.anyLong()))\n .thenReturn(Optional.of(STUDENT));\n\n RequestBuilder request = MockMvcRequestBuilders\n .delete(\"/students/1\")\n .accept(MediaType.APPLICATION_JSON_VALUE)\n .contentType(MediaType.APPLICATION_JSON_VALUE);\n\n mockMvc.perform(request)\n .andExpect(status().isOk())\n .andDo(MockMvcResultHandlers.print())\n .andReturn();\n\n }", "@Test\r\n\tpublic void Test_ID() {\r\n\t\tResponse resp = given().\r\n\t\t\t\tparam(\"nasa_id\", \"PIA12235\").\r\n\t\t\t\twhen().\r\n\t\t\t\tget(endpoint);\r\n\t\t\t\tSystem.out.println(resp.getStatusCode());\r\n\t\t\t\tAssert.assertEquals(resp.getStatusCode(), 200);\r\n\t}", "@Test(expected = CopilotServiceInitializationException.class)\n public void testCheckNullForInjectedValueFailure() {\n Helper.checkNullForInjectedValue(null, \"obj\");\n }", "@Test\n public void commandIdTest() {\n // TODO: test commandId\n }", "static void checkId(final long id, final String paramName) {\r\n if (id <= 0) {\r\n throw new IllegalArgumentException(\"The '\" + paramName\r\n + \"' should be above 0.\");\r\n }\r\n }", "public Long getStagingWorkspaceId() {\n return stagingWorkspaceId;\n }", "@Test\n public void cityNotNull()\n {\n assertNotNull(_city);\n }", "public void requirePatientId() {\n hasPatientIdParam = true;\n }", "@Override\n\tpublic boolean hasParameter(String id) {\n\t\treturn false;\n\t}", "@When(\"^I enter valid credentia ls$\")\n public void iEnterValidCredentials() throws Throwable {\n throw new PendingException();\n }", "private void checkLegal(int glId)\n {\n if (glId == GL2.GL_POLYGON_MODE || glId == GL2.GL_COLOR_MATERIAL_PARAMETER)\n return;\n if (GLState.TEXTURE_GROUP <= glId && glId < GLState.TEXTURE_GROUP + GLState.TEXTURE_GROUP_SIZE)\n return;\n throw new IllegalArgumentException(\"GLStateComponentII: unknown glId: \" + glId);\n }", "@Test\n\tpublic void testValidateSurveyIds() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyIds(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\tfor(String simpleValidList : ParameterSets.getSimpleValidLists()) {\n\t\t\t\ttry {\n\t\t\t\t\tSurveyResponseValidators.validateSurveyIds(simpleValidList);\n\t\t\t\t}\n\t\t\t\tcatch(ValidationException e) {\n\t\t\t\t\tfail(\"A valid list failed validation.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test\n public void putTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.putTemplateProgrammerProject(request);\n\n // TODO: test validations\n }", "public void testCheckinProjectFlags() {\n String[] sTestCmdLine = { \"soscmd\", \"-command\", \"CheckInProject\",\n \"-recursive\", \"-server\", SOS_SERVER_PATH, \"-name\", SOS_USERNAME,\n \"-password\", \"\", \"-database\", VSS_SERVER_PATH , \"-project\",\n \"$\"+VSS_PROJECT_PATH, \"\", \"\", \"-soshome\", SOS_HOME, \"-workdir\",\n project.getBaseDir().getAbsolutePath(), \"-log\", SRC_COMMENT, };\n\n // Set up a SOSCheckin task\n sosCheckin.setProject(project);\n sosCheckin.setVssServerPath(VSS_SERVER_PATH);\n sosCheckin.setSosServerPath(SOS_SERVER_PATH);\n sosCheckin.setProjectPath(VSS_PROJECT_PATH);\n sosCheckin.setComment(SRC_COMMENT);\n sosCheckin.setUsername(SOS_USERNAME);\n sosCheckin.setSosHome(SOS_HOME);\n sosCheckin.setNoCache(true);\n sosCheckin.setNoCompress(false);\n sosCheckin.setVerbose(false);\n sosCheckin.setRecursive(true);\n\n commandline = sosCheckin.buildCmdLine();\n String[] sGeneratedCmdLine = commandline.getCommandline();\n\n int i = 0;\n while (i < sTestCmdLine.length) {\n try {\n assertEquals(\"CheckInProject arg # \" + String.valueOf(i),\n sTestCmdLine[i],\n sGeneratedCmdLine[i]);\n i++;\n } catch (ArrayIndexOutOfBoundsException aioob) {\n fail(\"CheckInProject missing arg\");\n }\n\n }\n if (sGeneratedCmdLine.length > sTestCmdLine.length) {\n // We have extra elements\n fail(\"CheckInProject extra args\");\n }\n }", "public void validate(String id, String pw) throws RemoteException;", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {listProjects} integration test with mandatory parameters.\")\n public void testListProjectsWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:listProjects\");\n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_listProjects_mandatory.json\");\n \n connectorProperties.setProperty(\"projectId\", esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0)\n .getString(\"id\"));\n \n final String apiEndPoint = apiRequestUrl + \"/projects\";\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"page\"), apiRestResponse.getBody().getString(\"page\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"pageSize\"), apiRestResponse.getBody().getString(\n \"pageSize\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0).getString(\"id\"),\n apiRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0).getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"totalItems\"), apiRestResponse.getBody().getString(\n \"totalItems\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONArray(\"items\").length(), apiRestResponse.getBody()\n .getJSONArray(\"items\").length());\n \n }" ]
[ "0.6578984", "0.6380645", "0.62011063", "0.5977198", "0.59380245", "0.5839845", "0.5567125", "0.544816", "0.52776176", "0.52677304", "0.51942354", "0.516205", "0.5121242", "0.5090792", "0.50634235", "0.50583386", "0.50574636", "0.5034166", "0.4995936", "0.4972392", "0.49723262", "0.49573296", "0.49191588", "0.4918354", "0.49054942", "0.49048936", "0.4886649", "0.48794204", "0.48570976", "0.48486924", "0.48486924", "0.48308778", "0.48079875", "0.4805743", "0.48048726", "0.47980785", "0.47976282", "0.4765162", "0.47632936", "0.47518703", "0.47493088", "0.47485796", "0.47444603", "0.47357145", "0.47052163", "0.47051764", "0.47026604", "0.46970895", "0.4696536", "0.46882707", "0.4684677", "0.466351", "0.46634975", "0.46633705", "0.46630138", "0.46527985", "0.465145", "0.4642307", "0.4640025", "0.46380213", "0.4636017", "0.46344888", "0.46284893", "0.46203873", "0.4618612", "0.46117023", "0.46025905", "0.4596442", "0.45956445", "0.45863536", "0.45715305", "0.45687637", "0.45670655", "0.4558963", "0.45546597", "0.45470253", "0.45362815", "0.4535131", "0.4533155", "0.45226875", "0.45194167", "0.451874", "0.45114574", "0.45113942", "0.45096022", "0.45087627", "0.450685", "0.4506745", "0.44989336", "0.4492964", "0.44871423", "0.44836402", "0.4483347", "0.44820198", "0.44794294", "0.4478113", "0.4476193", "0.4475997", "0.44697672", "0.44692692", "0.4466805" ]
0.0
-1
Make a prediction using a model Create anew model in the workspace identified in the workspaceId path paramter.
public ModelApiResponse predict(String workspaceId, String modelId, PredictionRequest predictionRequest) throws ApiException { ApiResponse<ModelApiResponse> localVarResp = predictWithHttpInfo(workspaceId, modelId, predictionRequest); return localVarResp.getData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public okhttp3.Call predictAsync(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = predictValidateBeforeCall(workspaceId, modelId, predictionRequest, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public okhttp3.Call predictCall(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = predictionRequest;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models/{modelId}/predict\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()))\n .replaceAll(\"\\\\{\" + \"modelId\" + \"\\\\}\", localVarApiClient.escapeString(modelId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public WorkingMemory createInferredModel(IRI modelId) {\n\t\tSet<Statement> statements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(getModelAbox(modelId))).asJava();\n\t\tSet<Triple> triples = statements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet());\n\t\ttry {\n\t\t\t// Using model's ontology IRI so that a spurious different ontology declaration triple isn't added\n\t\t\tOWLOntology schemaOntology = OWLManager.createOWLOntologyManager().createOntology(getOntology().getRBoxAxioms(Imports.INCLUDED), modelId);\n\t\t\tSet<Statement> schemaStatements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(schemaOntology)).asJava();\n\t\t\ttriples.addAll(schemaStatements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet()));\n\t\t} catch (OWLOntologyCreationException e) {\n\t\t\tLOG.error(\"Couldn't add rbox statements to data model.\", e);\n\t\t}\n\t\treturn getRuleEngine().processTriples(JavaConverters.asScalaSetConverter(triples).asScala());\n\t}", "void create(Model model) throws Exception;", "public void saveModel(File model_file) throws Exception{\n\t\t// Write model to file\n\t\t//System.out.println(mClassifier.getClass());\n\t\tSystem.out.println(\"Saving Trained Model. Please wait.\");\n\t\tif(mClassifier instanceof DynamicLMClassifier){\n\t\t\tFileOutputStream fileOut = new FileOutputStream(model_file);\n\t ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n\t ((DynamicLMClassifier<NGramProcessLM>) mClassifier).compileTo(objOut);\n\t objOut.close();\n\t System.out.println(\"Saving Trained Model. Complete.\");\n\t\t}else{\n\t\t\tthrow new Exception(\"Cannot compile a non dynamic traning set\");\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n Path modelPath = Paths.get(\"saved_graph_file\");\n byte[] graph = Files.readAllBytes(modelPath);\n\n // SavedModelBundle svd = SavedModelBundle.load(\"gin_rummy_nfsp4\", \"serve\");\n // System.out.println(svd.metaGraphDef());\n\n Graph g = new Graph();\n\n g.importGraphDef(graph);\n\n // Print for tags.\n Iterator<Operation> ops = g.operations();\n while (ops.hasNext()) {\n Operation op = ops.next();\n // Types are: Add, Const, Placeholder, Sigmoid, MatMul, Identity\n if (op.type().equals(\"Placeholder\")) {\n System.out.println(\"Type: \" + op.type() + \", Name: \" + op.name() + \", NumOutput: \" + op.numOutputs());\n System.out.println(\"OUTPUT: \" + op.output(0).shape());\n }\n }\n\n //open session using imported graph\n Session sess = new Session(g);\n float[][] inputData = {{4, 3, 2, 1}};\n\n // We have to create tensor to feed it to session,\n // unlike in Python where you just pass Numpy array\n Tensor inputTensor = Tensor.create(inputData, Float.class);\n float[][] output = predict(sess, inputTensor);\n for (int i = 0; i < output[0].length; i++) {\n System.out.println(output[0][i]);\n }\n }", "private Response performDT_training(String model_name, String data) {\n \tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MMM-yyyy_HmsS\");\n \tJSONObject summary = new JSONObject();\n \t\n \tif(model_name.trim().length()< 1) {\n \t\tmodel_name = \"DTree_Model_\" + sdf.format(Calendar.getInstance().getTime());\n \t}\n \t\n \t// check if the model name is already present\n \tif(utilObj.isModelNameUnique(model_name)) {\n \t\tsummary = new JSONObject();\n \t\tsummary.put(\"Error\", \"Duplicate model name : \" + model_name);\n \t\tlog.error(\"Duplicate model name\");\n \t\treturn Response.status(200).entity(summary.toString()).build();\n \t}\n \t\n \tlog.info(String.format(\"model_Name: %s\", model_name ));\n \tString modelFilePath = Util.CurrentDir+\"/models/\"+model_name;\n \t\n \ttry {\n\n \t\t// write the data to the disk\n \t\tfinal String inputFileName = \"TrainData_DT_\" + sdf.format(Calendar.getInstance().getTime()) + \".csv\";\n \t\tfinal String inputFilePath = Util.CurrentDir+\"/\"+Util.DataDir+\"/\"+inputFileName;\n \t\tFileWriter writer = new FileWriter(inputFilePath);\n \t\twriter.write(data);\n \t\twriter.flush();\n \t\twriter.close();\n \t\tlog.info(\"File created : \" + inputFilePath);\n \t\t\n \t\tString cmd = String.format(\"Rscript \"+Util.CurrentDir+\"/Rscripts/DTTraining.R %s %s \",inputFilePath, model_name);\n \t\tlog.info(cmd);\n\t \tProcess pr = Runtime.getRuntime().exec(cmd);\n\t\t\t\n\t\t\tBufferedReader results = new BufferedReader(new InputStreamReader(pr.getInputStream()));\n\t\t\tString line = null;\n\t\t\t\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\twhile((line=results.readLine()) != null) {\n\t\t\t\tbuf.append(line);\n\t\t\t\tif(line.trim().isEmpty()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine().trim();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tsummary.put(\"summary\", line);\n\t\t\t\t} \n\t\t\t\telse if(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tJSONArray Psplits = new JSONArray();\t\t\t\t\t\n\t\t\t\t\twhile(!line.trim().equalsIgnoreCase(\"Surrogate splits:\")) {\n\t\t\t\t\t\tString s[] = line.split(\"\\t\");\n\t\t\t\t\t\tfor(String s1 : s) {\n\t\t\t\t\t\t\tSystem.out.println(s1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tJSONArray splitCols = new JSONArray(s);\n\t\t\t\t\t\tline = results.readLine();\n\t\t\t\t\t\tbuf.append(line);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\tsummary.put(\"model_name\", model_name + \".RData\");\n\t\t\t\tsummary.put(\"InputFile\", inputFileName);\n\t\t\t\tsummary.put(\"CommandName\", \"Rscripts/DTTraining.R\");\n\t\t\t}\n\t\t\tsummary.put(\"raw\", buf.toString());\n\t\t\t\n\t\t\t// format the summary json as params { [key : val] }\n\t\t\tJSONArray finalSummary = new JSONArray();\n\t\t\tIterator<String> keys = summary.keySet().iterator();\n\t\t\twhile(keys.hasNext()) {\n\t\t\t\tJSONObject row = new JSONObject();\n\t\t\t\trow.put(\"attribute\", keys.next());\n\t\t\t\trow.put(\"value\", summary.get(row.getString(\"attribute\")));\n\t\t\t\tfinalSummary.put(row);\n\t\t\t}\n\t\t\treturn Response.status(200).entity(new JSONObject().put(\"summary\", finalSummary).toString()).build();\n\t\t\t\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n\t\t\n \treturn Response.status(200).entity(summary.toString()).build();\n }", "private synchronized void downloadModel(String modelName) {\n final FirebaseCustomRemoteModel remoteModel =\n new FirebaseCustomRemoteModel\n .Builder(modelName)\n .build();\n FirebaseModelDownloadConditions conditions =\n new FirebaseModelDownloadConditions.Builder()\n .requireWifi()\n .build();\n final FirebaseModelManager firebaseModelManager = FirebaseModelManager.getInstance();\n firebaseModelManager\n .download(remoteModel, conditions)\n .continueWithTask(task ->\n firebaseModelManager.getLatestModelFile(remoteModel)\n )\n .continueWith(executorService, (Continuation<File, Void>) task -> {\n // Initialize a text classifier instance with the model\n File modelFile = task.getResult();\n\n // TODO 6: Initialize a TextClassifier with the downloaded model\n textClassifier = NLClassifier.createFromFile(modelFile);\n\n // Enable predict button\n predictButton.setEnabled(true);\n return null;\n })\n .addOnFailureListener(e -> {\n Log.e(TAG, \"Failed to download and initialize the model. \", e);\n Toast.makeText(\n MainActivity.this,\n \"Model download failed, please check your connection.\",\n Toast.LENGTH_LONG)\n .show();\n predictButton.setEnabled(false);\n });\n }", "private void createNewDynamicModel(){\n\t\tDynamicModel dModel = new DynamicModel(currentView.getViewModel().getName());\r\n\r\n\t\t// Add the new graph to the view\r\n\t\tint modelWidth = DynamicModelView.minimumWidth; \r\n\t\tint modelHeight = DynamicModelView.minimumHeight; \r\n\t\tint viewHeight = currentView.getHeight();\r\n\t\tint pad = 8;\r\n\t\tcurrentView.addModelView(new DynamicModelView(new EntityViewConfig(pad, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t viewHeight - (modelHeight + pad), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelWidth, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelHeight, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t EntityViewConfig.Type.DYNAMIC_MODEL), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdModel, this, currentView));\r\n\t\tcurrentView.repaint();\r\n\t}", "PredictionModelStatus getModelStatus(String resourceGroupName, String hubName, String predictionName);", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "GameModel createGameModel(GameModel gameModel);", "@Override\r\n\tpublic void saveUserPredictModel(UserPredictModel userPredictModel) {\n\t\tuserPredictRepo.save(userPredictModel);\r\n\t}", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifierObject = ObjectClassifier.create(context.getAssets(), TYPE_MODEL, LABEL_TYPE, INPUT_SIZE_TYPE);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_FILE,\n LABEL_FILE,\n INPUT_SIZE,\n IMAGE_MEAN,\n IMAGE_STD,\n INPUT_NAME,\n OUTPUT_NAME);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "public okhttp3.Call createModelAsync(String workspaceId, Model model, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public void saveModel(String filePath) {\n\n\t\tFile parentFile = new File(filePath).getParentFile();\n\t\tif (parentFile != null && !parentFile.exists()) {\n\t\t\tparentFile.mkdirs();\n\t\t}\n\n\t\ttry {\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(filePath));\n\t\t\toos.writeObject(new HMMModel(pi, A, B));\n\t\t\toos.close();\n\t\t\tSystem.out.println(\"Model saved.\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void train(){\n recoApp.training(idsToTest);\n }", "public void modelNew(Model m)\n {\n\tmodelStop();\n\tmanim = new GenerationsAnimator(m.generations());\n\tmanim.scale(width,height);\n\tclearToBack();\n\tmodelStep();\n\t//modelStart();\n\tStatusBar.setStatus(\"Ready\");\n\n\tif (cListener != null)\n\t cListener.setButtonState(true);\n }", "public void model() \n\t{\n\t\t\n\t\ttry \n\t\t{\n\t\t GRBEnv env = new GRBEnv();\n\t\t GRBModel model = new GRBModel(env, \"resources/students.lp\");\n\n\t\t model.optimize();\n\n\t\t int optimstatus = model.get(GRB.IntAttr.Status);\n\n\t\t if (optimstatus == GRB.Status.INF_OR_UNBD) {\n\t\t model.getEnv().set(GRB.IntParam.Presolve, 0);\n\t\t model.optimize();\n\t\t optimstatus = model.get(GRB.IntAttr.Status);\n\t\t }\n\n\t\t if (optimstatus == GRB.Status.OPTIMAL) {\n\t\t double objval = model.get(GRB.DoubleAttr.ObjVal);\n\t\t System.out.println(\"Optimal objective: \" + objval);\n\t\t } else if (optimstatus == GRB.Status.INFEASIBLE) {\n\t\t System.out.println(\"Model is infeasible\");\n\n\t\t // Compute and write out IIS\n\t\t model.computeIIS();\n\t\t model.write(\"model.ilp\");\n\t\t } else if (optimstatus == GRB.Status.UNBOUNDED) {\n\t\t System.out.println(\"Model is unbounded\");\n\t\t } else {\n\t\t System.out.println(\"Optimization was stopped with status = \"\n\t\t + optimstatus);\n\t\t }\n\n\t\t // Dispose of model and environment\n\t\t model.write(\"resources/model.sol\");\n\t\t model.dispose();\n\t\t env.dispose();\n\n\t\t } catch (GRBException e) {\n\t\t System.out.println(\"Error code: \" + e.getErrorCode() + \". \" +\n\t\t e.getMessage());\n\t\t }\n\t\t\n\t}", "public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}", "GameScoreModel createGameScoreModel(GameScoreModel gameScoreModel);", "public ModelContainer importModel(String modelData) throws OWLOntologyCreationException {\n\t\t// load data from String\n\t\tfinal OWLOntologyManager manager = graph.getManager();\n\t\tfinal OWLOntologyDocumentSource documentSource = new StringDocumentSource(modelData);\n\t\tOWLOntology modelOntology;\n\t\tfinal Set<OWLParserFactory> originalFactories = removeOBOParserFactories(manager);\n\t\ttry {\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tcatch (OWLOntologyAlreadyExistsException e) {\n\t\t\t// exception is thrown if there is an ontology with the same ID already in memory \n\t\t\tOWLOntologyID id = e.getOntologyID();\n\t\t\tIRI existingModelId = id.getOntologyIRI().orNull();\n\n\t\t\t// remove the existing memory model\n\t\t\tunlinkModel(existingModelId);\n\n\t\t\t// try loading the import version (again)\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tfinally {\n\t\t\tresetOBOParserFactories(manager, originalFactories);\n\t\t}\n\t\t\n\t\t// try to extract modelId\n\t\tIRI modelId = null;\n\t\tOptional<IRI> ontologyIRI = modelOntology.getOntologyID().getOntologyIRI();\n\t\tif (ontologyIRI.isPresent()) {\n\t\t\tmodelId = ontologyIRI.get();\n\t\t}\n\t\tif (modelId == null) {\n\t\t\tthrow new OWLOntologyCreationException(\"Could not extract the modelId from the given model\");\n\t\t}\n\t\t// paranoia check\n\t\tModelContainer existingModel = modelMap.get(modelId);\n\t\tif (existingModel != null) {\n\t\t\tunlinkModel(modelId);\n\t\t}\n\t\t\n\t\t// add to internal model\n\t\tModelContainer newModel = addModel(modelId, modelOntology);\n\t\t\n\t\t// update imports\n\t\tupdateImports(newModel);\n\t\t\n\t\treturn newModel;\n\t}", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_PATH,\n LABEL_PATH,\n INPUT_SIZE,\n QUANT);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "public M create(P model);", "protected void establishTransformationModel() {\r\n\t \r\n\t\tTransformationModel transformModel ;\r\n\t\tArrayList<TransformationStack> modelTransformStacks ;\r\n\t\t\r\n\t\t\r\n\t\t// the variables needed for the profile\r\n\t\t// targetStruc = getTargetVector();\r\n\t\tsomData = soappTransformer.getSomData() ; \r\n\t\t// soappTransformer.setSomData( somApplication.getSomData() );\r\n\t\tsomApplication.setSomData(somData) ;\r\n\t\t\r\n\t\tsomData.getVariablesLabels() ;\r\n\t\t \r\n\t\t\r\n\t\t// from here we transfer...\r\n\t\tmodelTransformStacks = soappTransformer.getTransformationModel().getVariableTransformations();\r\n\t\ttransformModel = soappTransformer.getTransformationModel() ;\r\n\t\t \r\n\t\t\r\n\t\ttransformationModelImported = true;\r\n\t}", "void modelStatus(\n String resourceGroupName, String hubName, String predictionName, PredictionModelStatusInner parameters);", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call predictValidateBeforeCall(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling predict(Async)\");\n }\n \n // verify the required parameter 'modelId' is set\n if (modelId == null) {\n throw new ApiException(\"Missing the required parameter 'modelId' when calling predict(Async)\");\n }\n \n // verify the required parameter 'predictionRequest' is set\n if (predictionRequest == null) {\n throw new ApiException(\"Missing the required parameter 'predictionRequest' when calling predict(Async)\");\n }\n \n\n okhttp3.Call localVarCall = predictCall(workspaceId, modelId, predictionRequest, _callback);\n return localVarCall;\n\n }", "GoalModel createGoalModel();", "TrainingTest createTrainingTest();", "public Object run(ModelFactory factory);", "IFMLModel createIFMLModel();", "public ApiResponse<ModelApiResponse> predictWithHttpInfo(String workspaceId, String modelId, PredictionRequest predictionRequest) throws ApiException {\n okhttp3.Call localVarCall = predictValidateBeforeCall(workspaceId, modelId, predictionRequest, null);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n return localVarApiClient.execute(localVarCall, localVarReturnType);\n }", "public void openModel() {\r\n \t\tisReleased = true;\r\n \t\tif (checkForSave(\"<html>Save changes before opening a saved model?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\tJMODELModel tmpmodel = new JMODELModel();\r\n \t\tint state = modelLoader.loadModel(tmpmodel, mainWindow);\r\n \t\tif (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {\r\n \t\t\tresetMouseState();\r\n \t\t\t// Avoid checkForSave again...\r\n \t\t\tif (model != null) {\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t}\r\n \t\t\tnewModel();\r\n \t\t\t// At this point loading was successful, so substitutes old model\r\n \t\t\t// with loaded one\r\n \t\t\tmodel = tmpmodel;\r\n \t\t\tthis.populateGraph();\r\n \t\t\tsetSelect.setEnabled(true);\r\n \t\t\tcomponentBar.clickButton(setSelect);\r\n \t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t// Removes selection\r\n \t\t\tgraph.clearSelection();\r\n \t\t\t// If model contains results, enable Results Window\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\tif (model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\tthis.setResultsWindow(new PAResultsWindow(model.getParametricAnalysisModel(), (PAResultsModel) model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthis.setResultsWindow(new ResultsWindow(model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tmodel.resetSaveState();\r\n \t\t\tSystem.gc();\r\n \t\t} else if (state == ModelLoader.FAILURE) {\r\n \t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t}\r\n \t\t// Shows warnings if any\r\n \t\tif (state == ModelLoader.WARNING) {\r\n \t\t\tnew WarningWindow(modelLoader.getLastWarnings(), mainWindow, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show();\r\n \t\t}\r\n \r\n \t}", "public void saveToFile(File file, Model model) throws IOException;", "public void save() {\n\t\t// Register the XMI resource factory for the .xmi extension\n\t\tResource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;\n\t\tMap<String, Object> m = reg.getExtensionToFactoryMap();\n\t\tm.put(\"xmi\", new XMIResourceFactoryImpl());\n\n\t\t// Obtain a new resource set\n\t\tResourceSet resSet = new ResourceSetImpl();\n\n\t\t// Create a resource\n\t\tResource resource = resSet.createResource(this.targetURI);\n\n\t\t// Get the first model element and cast it to the right type\n\t\tresource.getContents().add(targetRootBlock);\n\n\t\t// Now save the content.\n\t\tMap<String, Object> options = new HashMap<String, Object>();\n\t\toptions.put(XMIResource.OPTION_ENCODING, \"UTF-8\");\n\t\ttry {\n\t\t\tresource.save(options);\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"IOException when trying to save to \" + this.targetURI);\n\t\t}\n\n\t\tif (LOGGER.isInfoEnabled()) {\n\t\t\tLOGGER.info(\"Saved Shapes model to \" + this.targetURI);\n\t\t}\n\t}", "public void saveModel() {\n\t}", "public interface IPredictionService {\n\t\n\t\n\t/**\n\t * \n\t * Create an instance object of TestSet\n\t * \n\t * @param position\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic Instances makeTestSet(String position) throws Exception;\n\t\n\t/**\n\t * Used a particular algorithm to train the Artificial Intelligence (AI)\n\t * @throws Exception\n\t */\n\tpublic void train() throws Exception;\n\t\n\t/**\n\t * Used to classify after train\n\t * @throws Exception\n\t */\n\tpublic void classify() throws Exception;\n\n}", "@Override\r\n\tpublic void deleteUserPredictModel(Long userPredictModelId) {\n\t\t\r\n\t}", "private void runOnlineModel() {\n myScenario.setProbe(myProbe);\n myScenario.setSynchronizationMode(mySrcSelector);\n try {\n myScenario.resync();\n myScenario.run();\n } catch (SynchronizationException e) {\n System.out.println(e);\n } catch (ModelException e) {\n System.out.println(e);\n }\n }", "@Override\r\n\tpublic void updateUserPredictModel(UserPredictModel userPredictModel) {\n\t\tuserPredictRepo.save(userPredictModel);\r\n\t}", "public SModel createBlankCheckpointModel(SModelReference originalModel, @Nullable CheckpointIdentity previousCheckpoint, CheckpointIdentity step) {\n final SModelName transientModelName = createCheckpointModelName(originalModel, step);\n // I'd like to have stable model id to minimize number of changes in CP models\n int mid = originalModel.getModelId().hashCode() ^ step.getName().hashCode();\n // make sure value fits into MPS reserved range, see IntegerSModelId doc.\n mid &= 0x0FFFFFFF;\n mid |= 0x0F000000;\n final SModelReference mr = PersistenceFacade.getInstance()\n .createModelReference(myModule.getModuleReference(), new IntegerSModelId(mid),\n transientModelName.getValue());\n SModel existing = myModule.getModel(mr.getModelId());\n if (existing != null) {\n // Why it's important to forget existing model? E.g. if a model being generated has been already generated and exposed as checkpoint, and\n // was renamed since. Renamed here means change of model name, e.g. due to rename of a containing language module.\n // Besides, it doesn't hurt to drop old checkpoint in any case.\n // There were few possible ways to address MPS-26174 (rename of a module breaks x-model generation).\n // - listen to changes of original model/module and react (e.g. remove related CP models or clear all CPs altogether).\n // - drop all transients as part of rename module action (likely, most safe)\n // - respect model name when building module id value, above. Leaves duplicated, hard-to-distinguish models among checkpoints.\n // - detect there's already model with same id and forget it (least destructive, keeps other CP models in place).\n myModule.forgetModel(existing, true);\n }\n SModel checkpointModel = myModule.createTransientModel(mr);\n assert checkpointModel instanceof ModelWithAttributes;\n ((ModelWithAttributes) checkpointModel).setAttribute(GENERATION_PLAN, step.getPlan().getName());\n ((ModelWithAttributes) checkpointModel).setAttribute(CHECKPOINT, step.getName());\n if (previousCheckpoint != null) {\n ((ModelWithAttributes) checkpointModel).setAttribute(PREV_GENERATION_PLAN, previousCheckpoint.getPlan().getName());\n ((ModelWithAttributes) checkpointModel).setAttribute(PREV_CHECKPOINT, previousCheckpoint.getName());\n }\n return checkpointModel;\n }", "private void setupModel() {\n\n //Chooses which model gets prepared\n switch (id) {\n case 2:\n singlePackage = new Node();\n activeNode = singlePackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_solo)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 3:\n multiPackage = new Node();\n activeNode = multiPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_multi_new)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 4:\n wagonPackage = new Node();\n activeNode = wagonPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_car_new)\n .build().thenAccept(a -> activeRenderable = a)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n default:\n mailbox = new Node();\n activeNode = mailbox;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.mailbox)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n }\n }", "PredictionResourceFormat.DefinitionStages.Blank define(String name);", "public void launch(DataModel model) {\n //this template simple creates a UndirectedKNNAlgorithm and executes it,\n //replace as needed.\n// UndirectedKNNAlgorithm algorithm = new UndirectedKNNAlgorithm();\n// algorithm.execute();\n \n UndirectedKNNAlgorithm algorithm = new UndirectedKNNAlgorithm(model);\n algorithm.createGUIandRun(UndirectedKNNAlgorithm.ALGORITHM_NAME, \"\"); \n }", "public <T> T createModel(T referenceModel) throws CreateModelException {\n return createModel(referenceModel, true);\n }", "@Test\n public void testCreateModelVersionsForManuallyDeployedAppsWhenCreatingFailsForOneVersion() {\n List<Host> hosts = createHosts(7, \"7.0.0\");\n\n ModelFactory factory700 = createFailingModelFactory(Version.fromString(\"7.0.0\"));\n CountingModelFactory factory720 = createHostedModelFactory(Version.fromString(\"7.2.0\"), devZone);\n List<ModelFactory> modelFactories = List.of(factory700, factory720);\n\n DeployTester tester = createTester(hosts, modelFactories, devZone, Clock.systemUTC());\n // Deploy with version that does not exist on hosts, the model for this version should be created even\n // if creating 7.0.0 fails\n tester.deployApp(\"src/test/apps/hosted/\", \"7.2.0\");\n assertEquals(7, tester.getAllocatedHostsOf(tester.applicationId()).getHosts().size());\n\n // Check >0 not ==0 as the session watcher thread is running and will redeploy models in the background\n assertTrue(\"Newest model for latest major version is always included\", factory720.creationCount() > 0);\n }", "private void readModelAndTrain(boolean readExistingModel,\n\t\t\tbyte[] trainingDataFile) {\n\t\tInputStream dataIn = null;\n\t\ttry {\n\t\t\tObjectStream<DocumentSample> sampleStream = new DocumentSampleStream(\n\t\t\t\t\tnew PlainTextByLineStream(new FileInputStream(\n\t\t\t\t\t\t\tcreateModelInput(INPUT_TWEETS_ORIG_TXT)), \"UTF-8\"));\n\t\t\tsetModel(DocumentCategorizerME.train(\"en\", sampleStream,\n\t\t\t\t\tCUTOFF_FREQ, TRAINING_ITERATIONS));\n\t\t\tserialize(model);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (dataIn != null) {\n\t\t\t\ttry {\n\t\t\t\t\tdataIn.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void run() {\n\t // Create the ouput directories\n\t interfDir = new File(outDirName+\"/\"+modelName);\n\t interfDir.mkdirs();\n\t implDir = new File(outDirName+\"/\"+modelName);\n\t implDir.mkdirs();\n\t // Create the parseAll visitor interface\n\t createParseAllVisitorInterface(interfDir);\n\t // Create the parseAll visitor implementation\n\t createParseAllVisitorImplementation(implDir);\n\t // Create the evaluateAll visitor interface\n\t createEvaluateAllVisitorInterface(interfDir);\n\t // Create the evaluateAll visitor implementation\n\t createEvaluateAllVisitorImplementation(implDir);\n\t}", "public static IssueModel createIssueModel(String projectId) throws Exception, IOException {\n try (ContactCenterInsightsClient client = ContactCenterInsightsClient.create()) {\n // Construct a parent resource.\n LocationName parent = LocationName.of(projectId, \"us-central1\");\n\n // Construct an issue model.\n IssueModel issueModel =\n IssueModel.newBuilder()\n .setDisplayName(\"my-model\")\n .setInputDataConfig(\n IssueModel.InputDataConfig.newBuilder().setFilter(\"medium=\\\"CHAT\\\"\").build())\n .build();\n\n // Call the Insights client to create an issue model.\n IssueModel response = client.createIssueModelAsync(parent, issueModel).get();\n System.out.printf(\"Created %s%n\", response.getName());\n return response;\n }\n }", "@Override\n public List<Prediction> predictWord(final String string) {\n Trace.beginSection(\"predictWord\");\n\n Trace.beginSection(\"preprocessText\");\n Log.e(TAG, \"inut_string: \" + string);\n //TODO\n\n String[] input_words = string.split(\" \");\n data_len[0] = input_words.length;\n Log.e(TAG, \"data_len: \" + data_len[0]);\n //intValues = new int[input_words.length];\n if (input_words.length < input_max_Size) {\n for (int i = 0; i < input_words.length; ++i) {\n Log.e(TAG, \"input_word: \" + input_words[i]);\n if (word_to_id.containsKey(input_words[i])) intValues[i] = word_to_id.get(input_words[i]);\n else intValues[i] = 6; //rare words, <unk> in the vocab\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n for (int i = input_words.length; i < input_max_Size; ++i) {\n intValues[i] = 0; //padding using <eos>\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n }\n else {\n Log.e(TAG, \"input out of max Size allowed!\");\n return null;\n }\n Trace.endSection();\n // Copy the input data into TensorFlow.\n Trace.beginSection(\"fillNodeFloat\");\n // TODO\n inferenceInterface.fillNodeInt(inputName, new int[] {1, input_max_Size}, intValues);\n Log.e(TAG, \"fillNodeInt success!\");\n inferenceInterface.fillNodeInt(inputName2, new int[] {1}, data_len);\n Log.e(TAG, \"fillDATA_LEN success!\");\n Trace.endSection();\n\n // Run the inference call.\n Trace.beginSection(\"runInference\");\n inferenceInterface.runInference(outputNames);\n Log.e(TAG, \"runInference success!\");\n Trace.endSection();\n\n // Copy the output Tensor back into the output array.\n Trace.beginSection(\"readNodeFloat\");\n inferenceInterface.readNodeFloat(outputName, outputs);\n Log.e(TAG, \"readNodeFloat success!\");\n Trace.endSection();\n\n // Find the best predictions.\n PriorityQueue<Prediction> pq = new PriorityQueue<Prediction>(3,\n new Comparator<Prediction>() {\n @Override\n public int compare(Prediction lhs, Prediction rhs) {\n // Intentionally reversed to put high confidence at the head of the queue.\n return Float.compare(rhs.getConfidence(), lhs.getConfidence());\n }\n });\n for (int i = 0; i < outputs.length; ++i) { //don't show i = 0 <unk>; i = 1<eos>\n if (outputs[i] > THRESHOLD) {\n pq.add(new Prediction(\"\" + i, id_to_word.get(i), outputs[i]));\n }\n }\n final ArrayList<Prediction> predictions = new ArrayList<Prediction>();\n for (int i = 0; i < Math.min(pq.size(), MAX_RESULTS); ++i) {\n predictions.add(pq.poll());\n }\n for (int i = 0; i < predictions.size(); ++i) {\n Log.e(TAG, predictions.get(i).toString());\n }\n Trace.endSection(); // \"predict word\"\n return predictions;\n }", "@Override\n public JsonObject getPrediction(String modelName,String usecaseName) throws InsightsCustomException {\n JsonObject prediction = h2oApiCommunicator.predict(modelName, usecaseName+\"_part1.hex\");\n JsonArray data = h2oApiCommunicator.getDataFrame(usecaseName+\"_part1.hex\");\n JsonObject response = new JsonObject();\n JsonArray fields = new JsonArray();\n Set<Map.Entry<String, JsonElement>> es = data.get(0).getAsJsonObject().entrySet();\n for (Iterator<Map.Entry<String, JsonElement>> it = es.iterator(); it.hasNext(); ) {\n fields.add(it.next().getKey());\n }\n if (data.size() == prediction.getAsJsonArray(\"predict\").size()) {\n \n prepareData(prediction, data, fields);\t \n response.add(\"Fields\", fields);\t \n response.add(\"Data\", data);\n return response;\n } else {\n log.error(\"Mismatch in test data and prediction: \");\n throw new InsightsCustomException(\"Mismatch in test data and prediction: \");\n }\n }", "DataModel createDataModel();", "RealizationModelLocation createRealizationModelLocation();", "public void saveModel() {\n\n }", "private static native boolean train_0(long nativeObj, long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj);", "protected static Model getModel(String workspaceId, String modelId)\n throws AnaplanAPIException {\n Workspace workspace = getWorkspace(workspaceId);\n if (workspace == null) {\n return null;\n }\n if (modelId == null || modelId.isEmpty()) {\n LOG.error(\"A model ID must be provided\");\n return null;\n }\n Model model = null;\n\n if (!noValidateModel) {\n for (Model m : workspace.getModels()) {\n if (modelId.equals(m.getId()) || modelId.equalsIgnoreCase(m.getName())) {\n model = m;\n break;\n }\n }\n }\n if (model == null) {\n ModelData data = new ModelData(modelId, \"\");\n model = new Model(workspace, data);\n model.setCurrentWorkspaceId(workspaceId);\n }\n return model;\n }", "public okhttp3.Call trainModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = trainModelValidateBeforeCall(workspaceId, modelId, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public void makeModel(File file) throws IOException, TasteException{\n\t\tmodel = new FileDataModel(file);\t\n\t\t\n\t\tsim1 = new PearsonCorrelationSimilarity(model);\n\t}", "public okhttp3.Call createModelCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = model;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "void execute(PAModel cmodel) throws PAModelException;", "public void loadModel(){\n remoteModel = new FirebaseCustomRemoteModel.Builder(dis).build();\n FirebaseModelManager.getInstance().getLatestModelFile(remoteModel)\n .addOnCompleteListener(new OnCompleteListener<File>() {\n @Override\n public void onComplete(@NonNull Task<File> task) {\n File modelFile = task.getResult();\n if (modelFile != null) {\n interpreter = new Interpreter(modelFile);\n // Toast.makeText(MainActivity2.this, \"Hosted Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n runningInterpreter();\n }\n else{\n try {\n InputStream inputStream = getAssets().open(dis+\".tflite\");\n byte[] model = new byte[inputStream.available()];\n inputStream.read(model);\n ByteBuffer buffer = ByteBuffer.allocateDirect(model.length)\n .order(ByteOrder.nativeOrder());\n buffer.put(model);\n //Toast.makeText(MainActivity2.this, dis+\"Bundled Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n interpreter = new Interpreter(buffer);\n runningInterpreter();\n } catch (IOException e) {\n // File not found?\n Toast.makeText(MainActivity2.this, \"No hosted or bundled model\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n });\n }", "public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }", "public void addModel(Model aModel, OpenSimContext context) throws IOException {\n OpenSimContext dContext = context==null?new OpenSimContext(aModel.initSystem(), aModel):context;\n models.add(aModel);\n mapModelsToContexts.put(aModel, dContext);\n SingleModelGuiElements newModelGuiElements = new SingleModelGuiElements(aModel);\n mapModelsToGuiElements.put(aModel, newModelGuiElements);\n setChanged();\n ModelEvent evnt = new ModelEvent(aModel, ModelEvent.Operation.Open);\n notifyObservers(evnt); \n setCurrentModel(aModel, false);\n //ExplorerTopComponent.addFinalEdit();\n }", "public Model createByUserModel(int id, Model model) {\n User user = userService.get(id);\n Set<Project> projects = user.getProjects();\n model.addAttribute(\"user\", user);\n model.addAttribute(\"myProjects\", projects);\n return model;\n }", "public static void main(String[] args) throws Exception {\n final int numRows = 28;\n final int numColumns = 28;\n int outputNum = 10; // number of output classes\n int batchSize = 128; // batch size for each epoch\n int rngSeed = 123; // random number seed for reproducibility\n int numEpochs = 15; // number of epochs to perform\n String modelPath = \"モデルパスを入力\";\n\n //Get the DataSetIterators:\n DataSetIterator mnistTrain = new MnistDataSetIterator(batchSize, true, rngSeed);\n DataSetIterator mnistTest = new MnistDataSetIterator(batchSize, false, rngSeed);\n\n\n System.out.println(\"Build model....\");\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(rngSeed) //include a random seed for reproducibility\n // use stochastic gradient descent as an optimization algorithm\n .updater(new Nesterovs(0.006, 0.9))\n .l2(1e-4)\n .list()\n .layer(new DenseLayer.Builder() //create the first, input layer with xavier initialization\n .nIn(numRows * numColumns)\n .nOut(1000)\n .activation(Activation.RELU)\n .weightInit(WeightInit.XAVIER)\n .build())\n .layer(new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD) //create hidden layer\n .nIn(1000)\n .nOut(outputNum)\n .activation(Activation.SOFTMAX)\n .weightInit(WeightInit.XAVIER)\n .build())\n .build();\n\n\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\n model.init();\n //print the score with every 1 iteration\n UIServer uiServer = UIServer.getInstance();\n InMemoryStatsStorage statsStorage = new InMemoryStatsStorage();\n uiServer.attach(statsStorage);\n model.setListeners(new StatsListener(statsStorage),new ScoreIterationListener(1));\n\n System.out.println(\"Train model....\");\n model.fit(mnistTrain, numEpochs);\n\n\n\n\n System.out.println(\"Evaluate model....\");\n Evaluation eval = model.evaluate(mnistTest);\n System.out.println(eval.stats());\n ModelSerializer.writeModel(model, new File(modelPath), false);\n System.out.println(\"****************Example finished********************\");\n\n }", "public static void main(String[] args) {\n saveModel();\n\t}", "private void createModel() {\n model = new Node(\"Enemy\"+enemyCounter);\n Box b = new Box(.5f, 2, .5f);\n Geometry bg = new Geometry(\"Box\", b);\n Material bm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n Sphere sphere = new Sphere(32, 32, 1.5f, false, false);\n Geometry sg = new Geometry(\"Sphere\", sphere);\n Material sm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n bm.setColor(\"Color\", ColorRGBA.Blue);\n sm.setColor(\"Color\", ColorRGBA.Red);\n bg.setMaterial(bm); \n sg.setMaterial(sm);\n model.attachChild(bg);\n model.attachChild(sg);\n sg.setLocalTranslation(0,2.5f,0);\n \n attachChild(model);\n }", "@Override\r\n \tpublic boolean performFinish() {\r\n \t\ttry {\r\n \t\t\t// Remember the file.\r\n \t\t\t//\r\n \t\t\tfinal IFile modelFile = getModelFile();\r\n \r\n \t\t\t// Do the work within an operation.\r\n \t\t\t//\r\n \t\t\tWorkspaceModifyOperation operation =\r\n \t\t\t\tnew WorkspaceModifyOperation() {\r\n \t\t\t\t\t@Override\r\n \t\t\t\t\tprotected void execute(IProgressMonitor progressMonitor) {\r\n \t\t\t\t\t\ttry {\r\n \t\t\t\t\t\t\t// Create a resource set\r\n \t\t\t\t\t\t\t//\r\n\t\t\t\t\t\t\tReqIFResourceSetImpl resourceSet = new ReqIFResourceSetImpl();\r\n\r\n\t\t\t\t\t\t\t// (mj) Sollte nicht notwendig sein, übernommmen von Mark's Unit Test\r\n\t\t\t\t\t\t\tresourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(\"reqif\", new ReqIFResourceFactoryImpl());\r\n\t\t\t\t\t\t\tresourceSet.getPackageRegistry().put(ReqIF10Package.eNS_URI, ReqIF10Package.eINSTANCE);\r\n \r\n \t\t\t\t\t\t\t// Get the URI of the model file.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tURI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true);\r\n \r\n \t\t\t\t\t\t\t// Create a resource for this file.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tResource resource = resourceSet.createResource(fileURI);\r\n \r\n \t\t\t\t\t\t\t// Add the initial model object to the contents.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tEObject rootObject = createInitialModel();\r\n \t\t\t\t\t\t\tif (rootObject != null) {\r\n \t\t\t\t\t\t\t\tresource.getContents().add(rootObject);\r\n \t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t\t// Save the contents of the resource to the file system.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tMap<Object, Object> options = new HashMap<Object, Object>();\r\n \t\t\t\t\t\t\t// Always use UTF-8 encoding\r\n \t\t\t\t\t\t\t// options.put(XMLResource.OPTION_ENCODING,\r\n \t\t\t\t\t\t\t// initialObjectCreationPage.getEncoding());\r\n \t\t\t\t\t\t\toptions.put(XMLResource.OPTION_ENCODING, \"UTF-8\");\r\n\t\t\t\t\t\t\tresource.save(null);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tcatch (Exception exception) {\r\n \t\t\t\t\t\t\tReqif10EditorPlugin.INSTANCE.log(exception);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tfinally {\r\n \t\t\t\t\t\t\tprogressMonitor.done();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t};\r\n \r\n \t\t\tgetContainer().run(false, false, operation);\r\n \r\n \t\t\t// Select the new file resource in the current view.\r\n \t\t\t//\r\n \t\t\tIWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow();\r\n \t\t\tIWorkbenchPage page = workbenchWindow.getActivePage();\r\n \t\t\tfinal IWorkbenchPart activePart = page.getActivePart();\r\n \t\t\tif (activePart instanceof ISetSelectionTarget) {\r\n \t\t\t\tfinal ISelection targetSelection = new StructuredSelection(modelFile);\r\n \t\t\t\tgetShell().getDisplay().asyncExec\r\n \t\t\t\t\t(new Runnable() {\r\n \t\t\t\t\t\t public void run() {\r\n \t\t\t\t\t\t\t ((ISetSelectionTarget)activePart).selectReveal(targetSelection);\r\n \t\t\t\t\t\t }\r\n \t\t\t\t\t });\r\n \t\t\t}\r\n \r\n \t\t\t// Open an editor on the new file.\r\n \t\t\t//\r\n \t\t\ttry {\r\n \t\t\t\tpage.openEditor\r\n \t\t\t\t\t(new FileEditorInput(modelFile),\r\n \t\t\t\t\t workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId());\t\t\t\t\t \t \r\n \t\t\t}\r\n \t\t\tcatch (PartInitException exception) {\r\n \t\t\t\tMessageDialog.openError(workbenchWindow.getShell(), Reqif10EditorPlugin.INSTANCE.getString(\"_UI_OpenEditorError_label\"), exception.getMessage());\r\n \t\t\t\treturn false;\r\n \t\t\t}\r\n \r\n \t\t\treturn true;\r\n \t\t}\r\n \t\tcatch (Exception exception) {\r\n \t\t\tReqif10EditorPlugin.INSTANCE.log(exception);\r\n \t\t\treturn false;\r\n \t\t}\r\n \t}", "public static void createAllModels() throws IOException, InterruptedException {\n ConsoleLogger.printHeader(\"Creating models\");\n List<String> modelsToCreate = new ArrayList<>(FileHelper.loadAllFilesInPath(MODELS_PATH).values());\n final CountDownLatch createModelsLatch = new CountDownLatch(1);\n\n // Call API to create the models. For each async operation, once the operation is completed successfully, a latch is counted down.\n client.createModels(modelsToCreate)\n .doOnNext(listOfModelData -> listOfModelData.forEach(\n modelData -> ConsoleLogger.printSuccess(\"Created model: \" + modelData.getModelId())\n ))\n .doOnError(IGNORE_CONFLICT_ERROR)\n .doOnTerminate(createModelsLatch::countDown)\n .subscribe();\n\n // Wait until the latch count reaches zero, signifying that the async calls have completed successfully.\n createModelsLatch.await(MAX_WAIT_TIME_ASYNC_OPERATIONS_IN_SECONDS, TimeUnit.SECONDS);\n }", "public abstract Model openModel(String graphName) throws JenaProviderException;", "@Override protected ClarifaiResponse<List<ClarifaiOutput<Concept>>> doInBackground(Void... params) {\n final ConceptModel generalModel = App.get().clarifaiClient().getDefaultModels().foodModel();\n\n // Use this model to predict, with the image that the user just selected as the input\n return generalModel.predict()\n .withInputs(ClarifaiInput.forImage(ClarifaiImage.of(imageBytes)))\n .executeSync();\n }", "public static Classifier create(final AssetManager assetManager,\n final String modelFilename,\n final String labelFilename,\n final int inputSize,\n final boolean isQuantized) throws IOException {\n final TFLiteRecognitionAPIModel d = new TFLiteRecognitionAPIModel();\n\n d.labels = readLabelFile(assetManager, labelFilename);\n d.inputSize = inputSize;\n\n // NEW: Prepare GPU delegate.\n //GpuDelegate delegate = new org.tensorflow.lite.Delegate();\n //Interpreter.Options options = (new Interpreter.Options()).addDelegate(delegate);\n\n try {\n File file = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), modelFilename);\n d.tfLite = new Interpreter(file);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n d.isModelQuantized = isQuantized;\n // Pre-allocate buffers.\n int numBytesPerChannel;\n if (d.isModelQuantized) {\n numBytesPerChannel = 1; // Quantized\n } else {\n numBytesPerChannel = 4; // Floating point\n }\n d.imgData = ByteBuffer.allocateDirect(1 * d.inputSize * d.inputSize * 3 * numBytesPerChannel); ////////////////////// 3 -> 2\n d.imgData.order(ByteOrder.nativeOrder());\n d.intValues = new int[d.inputSize * d.inputSize];\n\n d.tfLite.setNumThreads(NUM_THREADS);\n d.tfoutput_recognize = new float[1][NUM_CLASSES];\n /*d.outputLocations = new float[1][NUM_DETECTIONS][4];\n d.outputClasses = new float[1][NUM_DETECTIONS];\n d.outputScores = new float[1][NUM_DETECTIONS];\n d.numDetections = new float[1];*/\n return d;\n }", "InstanceModel createInstanceOfInstanceModel();", "private static native void predict_all_0(long nativeObj, long samples_nativeObj, long results_nativeObj);", "@RequestMapping(value = \"/staff/programcreate\")\n\tpublic String redirectToProgramCreate(Model model) {\n\t\tProgram program = new Program();\n\t\tmodel.addAttribute(\"program\", program);\n\t\treturn \"staff/programcreate\";\n\t}", "public Logic(Model m){\r\n model = m;\r\n }", "public void getPredictions() throws IOException, InterruptedException{\n //splitColsDataFiles();\n for(String learner:listLearners){\n File modelsFolder = new File(\"models/\"+learner);\n File[] IPFolders = modelsFolder.listFiles();\n for (File nodeFolder : IPFolders) {\n if (nodeFolder.isDirectory()) {\n File[] filesInFolder = nodeFolder.listFiles();\n ArrayList<String> filesINFolderAL = new ArrayList<String>();\n for(int i=0;i<filesInFolder.length;i++){\n filesINFolderAL.add(filesInFolder[i].getName());\n }\n if(filesINFolderAL.contains(model) && filesINFolderAL.contains(\"data.properties\")){\n System.out.println(\"Generating data for: \" + nodeFolder.getPath());\n // read properties file\n // get indices of variables\n // paste appropriate cols in models/temp\n // change commands below with appropriate data\n Properties dataProps = loadProps(nodeFolder.getPath()+\"/data.properties\");\n ArrayList<Integer> indices = new ArrayList<Integer>();\n String featuresS = dataProps.getProperty(\"sampled_variables\");\n if(featuresS!=null){\n String[] featuresArray = featuresS.split(\" \");\n for(int i=0;i<featuresArray.length;i++){\n indices.add(i, Integer.parseInt(featuresArray[i]));\n }\n // the order of indices is important\n Collections.sort(indices);\n\n String pasteTrainTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTrainTempCommand += \" models/temp/tr_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTrainTempCommand += \" models/temp/tr_targets.csv > models/temp/tr_temp.csv\";\n System.out.println(pasteTrainTempCommand);\n Process pasteTrainTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTrainTempCommand});\n pasteTrainTemp_process.waitFor();\n\n\n String pasteTestTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTestTempCommand += \" models/temp/te_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTestTempCommand += \" models/temp/te_targets.csv > models/temp/te_temp.csv\";\n System.out.println(pasteTestTempCommand);\n Process pasteTestTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTestTempCommand});\n pasteTestTemp_process.waitFor();\n \n // Add a new case when adding a new learner\n if(learner.equals(\"gpfunction\") || learner.equals(\"ruletree\") || learner.equals(\"rulelist\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }else if(learner.equals(\"mplcs\")){// C OR C++\n String predictTrain_command = \"learners/\" + learner + \" -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"learners/\" + learner + \" -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"lccb\")){ // Python\n String predictTrain_command = \"python learners/\" + learner + \".py -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"python learners/\" + learner + \".py -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n System.out.println(predictTest_command);\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"SBBJ\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }\n \n }\n }\n }\n }\n }\n }", "EisModel createEisModel();", "public void save(final IPath path) throws IOException {\r\n\t\t// This sets the model as contents in a new resource when using save as.\r\n\t\ttry {\r\n\t\t\tresource = resourceSet.getResource(URI.createPlatformResourceURI(\r\n\t\t\t\t\tpath.toString(), true), true);\r\n\t\t} catch (final Exception e) {\r\n\t\t\t// FIXME eigentlich sollte getResource schon eine Resource erzeugen\r\n\t\t\tresource = resourceSet.createResource(URI\r\n\t\t\t\t\t.createPlatformResourceURI(path.toString(), true));\r\n\t\t\tAssert.isTrue(false, \"Unerwartete Codeausführung.\");\r\n\t\t}\r\n\t\trecursiveSetNamesIfUnset(models);\r\n\t\tresource.getContents().clear();\r\n\t\tresource.getContents().addAll(models);\r\n\t\tfinal Map<String, Boolean> options = new HashMap<String, Boolean>();\r\n\t\toptions.put(XMLResource.OPTION_DECLARE_XML, Boolean.TRUE);\r\n\t\tresource.save(options);\r\n\t}", "public final void entryRuleModel() throws RecognitionException {\n try {\n // InternalMLRegression.g:54:1: ( ruleModel EOF )\n // InternalMLRegression.g:55:1: ruleModel EOF\n {\n before(grammarAccess.getModelRule()); \n pushFollow(FOLLOW_1);\n ruleModel();\n\n state._fsp--;\n\n after(grammarAccess.getModelRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public void startTrainingMode() {\n\t\t\r\n\t}", "public void addModel(IAnimatorModel newModel) {\r\n this.model = newModel;\r\n }", "public okhttp3.Call trainModelCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models/{modelId}/train\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()))\n .replaceAll(\"\\\\{\" + \"modelId\" + \"\\\\}\", localVarApiClient.escapeString(modelId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public void runModel(){\n\t\tcurrentView.getDynamicModelView().getModel().setProgressMonitor(progressMonitor);\r\n\t\tnew Thread(currentView.getDynamicModelView().getModel()).start();\r\n\r\n\t\tsetStatusBarText(\"Ready\");\r\n\t}", "com.google.cloud.aiplatform.v1.DeployedModel getDeployedModel();", "private Model getThisModel(String name, Model model) {\n\t\t\t\n\t\t\t Model modret=ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\t\t\t String text=dbs.getModel(name);\n\t\t\t\t\n\t\t\t\t//System.out.println(\"TEXT\"+text+\"TEXT!!!\");\n\t\t\t\t if(text==null){\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t\treturn modret;\n\t\t\t\t }\n\t\t\t\t else{\n\t\t\t\t\t //read model \n\t\t\t\t\t InputStream input = new ByteArrayInputStream(text.getBytes());\n\t \n\t\t\t\t\t modret.read(input, null,\"RDF/JSON\");\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t }\n\t\t\t\t return modret;\n\t \n\t\t }", "public void saveModel(String path) {\n try\n {\n for (int i=0; i<size; i++) {\n for (int j=0; j<size; j++) {\n PerformanceResultsPair resultsPair = resultsGrid[i][j];\n String directoryName = (i > j)?\n resultsPair.getP2FirstResults().getDescription():\n resultsPair.getP1FirstResults().getDescription();\n resultsPair.saveTo(path + FileUtil.FILE_SEPARATOR() + directoryName);\n }\n }\n } catch (IOException e) {\n throw new IllegalStateException(\"Could not save the model\", e);\n }\n }", "protected abstract IModel<T> createModel(T object);", "public void saveTrainingDataToFileHybridSampling1() throws Exception {\n NGramTokenizer tokenizer = new NGramTokenizer();\r\n tokenizer.setNGramMinSize(1);\r\n tokenizer.setNGramMaxSize(1);\r\n tokenizer.setDelimiters(\"\\\\W\");\r\n\r\n //set stemmer - set english stemmer\r\n SnowballStemmer stemmer = new SnowballStemmer();\r\n stemmer.setStemmer(\"english\");\r\n\r\n //set lemmatizer\r\n StanfordCoreNLPLemmatizer scnlpl = new StanfordCoreNLPLemmatizer();\r\n\r\n //create new filter for vector transformation\r\n StringToWordVector filter = new StringToWordVector();\r\n filter.setLowerCaseTokens(true);\r\n filter.setOutputWordCounts(true);\r\n filter.setTFTransform(true);\r\n filter.setIDFTransform(true);\r\n filter.setStopwords(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\StopWordsR2.txt\")); // stop word removal given in research paper\r\n filter.setTokenizer(tokenizer);\r\n filter.setStemmer(scnlpl);\r\n\r\n System.out.println(\"Stemmer Name- \" + filter.getStemmer());\r\n\r\n InstanceQuery query = new InstanceQuery();\r\n query.setUsername(\"root\");\r\n query.setPassword(\"\");\r\n\r\n int numberOfPapers = 5;\r\n Instances[] otherArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'other'\");\r\n otherArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='other'\");\r\n otherArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='other'\");\r\n otherArticles[2] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'other'\");\r\n otherArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'other'\");\r\n otherArticles[4] = query.retrieveInstances();\r\n\r\n Instances[] crimeArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'crime'\");\r\n crimeArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='crime'\");\r\n crimeArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='crime'\");\r\n crimeArticles[2] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'crime'\");\r\n crimeArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'crime'\");\r\n crimeArticles[4] = query.retrieveInstances();\r\n\r\n FastVector attributeList = new FastVector(2);\r\n Attribute a1 = new Attribute(\"text\", (FastVector) null);\r\n FastVector classVal = new FastVector();\r\n classVal.addElement(\"crime\");\r\n classVal.addElement(\"other\");\r\n Attribute c = new Attribute(\"@@class@@\", classVal);\r\n //add class attribute and news text\r\n attributeList.addElement(a1);\r\n attributeList.addElement(c);\r\n Instances trainingData = new Instances(\"TrainingNews\", attributeList, 0);\r\n trainingData.setClassIndex(1);\r\n\r\n //up sampling using SMOTE\r\n int crimeArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < crimeArticles[i].numInstances(); j++) {\r\n\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, crimeArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, crimeArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n crimeArticlesCount++;\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n\r\n System.out.println(\"Total Number of Crime Instances: \" + crimeArticlesCount);\r\n\r\n //downsampling using ?? \r\n int otherArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < otherArticles[i].numInstances(); j++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, otherArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, otherArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n otherArticlesCount++;\r\n\r\n if (otherArticlesCount == 4872) {\r\n break;\r\n }\r\n }\r\n if (otherArticlesCount == 4872) {\r\n break;\r\n }\r\n }\r\n System.out.println(\"Total Number of Other Instances: \" + otherArticlesCount);\r\n System.out.println(\"Total num of instances= \" + trainingData.numInstances());\r\n\r\n // apply the StringToWordVector filter\r\n filter.setInputFormat(trainingData);\r\n Instances dataFiltered = Filter.useFilter(trainingData, filter);\r\n System.out.println(\"Number of Attributes after stop words removal- \" + dataFiltered.numAttributes());\r\n System.out.println(\"\\n\\nFiltered data:\\n\\n\" + dataFiltered);\r\n\r\n /**\r\n * Resamples a dataset by applying the Synthetic Minority Oversampling\r\n * TEchnique (SMOTE)\r\n * http://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node6.html\r\n * http://weka.sourceforge.net/doc.packages/SMOTE/weka/filters/supervised/instance/SMOTE.html \r\n *\r\n */\r\n SMOTE s = new SMOTE();\r\n s.setInputFormat(dataFiltered);\r\n // Specifies percentage of SMOTE instances to create.\r\n s.setPercentage(300.0);//464\r\n Instances dataBalanced = Filter.useFilter(dataFiltered, s);\r\n\r\n Random r = new Random();\r\n dataBalanced.randomize(r);\r\n\r\n ArffSaver saver = new ArffSaver();\r\n saver.setInstances(dataBalanced);\r\n saver.setFile(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataHybridRandom.arff\"));\r\n saver.writeBatch();\r\n }", "public ModelResponse execute() throws ModelException\n\t{\n\t\tassert myModel != null;\n\n\t\tif (! configured)\n\t\t{\n\t\t\tthrow new ModelException(\"Model request not configured\");\n\t\t}\n\n\t\tModel newModel = null;\n\n\t\ttry\n\t\t{\n\t\t\tnewModel = (Model) getService(Model.ROLE, myModel, getContext());\n\n\t\t\tCommand redirect = validate(newModel);\n\t\t\tModelResponse res = null;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (redirect == null)\n\t\t\t\t{\n\t\t\t\t\tres = newModel.execute(this);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tres = redirect.execute(this, createResponse());\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception ee)\n\t\t\t{\n\t\t\t\t/* Any error during the actual execute is stored */\n\t\t\t\tif (res == null)\n\t\t\t\t{\n\t\t\t\t\tres = createResponse();\n\t\t\t\t}\n\n\t\t\t\tres.addError(\"Exception during model execution\", ee);\n\t\t\t}\n\n\t\t\tif (res == null)\n\t\t\t{\n\t\t\t\tres = createResponse();\n\t\t\t}\n\n\t\t\treturn afterExecute(res, newModel.getConfiguration());\n\t\t}\n\t\tcatch (Exception ce)\n\t\t{\n\t\t\tthrow new ModelException(\"Could not run model '\" + myModel + \"' for role '\" + Model.ROLE + \"'\", ce);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tsvcDelegate.releaseServices();\n\t\t}\n\t}", "@Test\n public void testCreateNeededModelVersionsForManuallyDeployedApps() {\n List<Host> hosts = createHosts(7, \"7.0.0\");\n\n CountingModelFactory factory700 = createHostedModelFactory(Version.fromString(\"7.0.0\"), devZone);\n CountingModelFactory factory710 = createHostedModelFactory(Version.fromString(\"7.1.0\"), devZone);\n CountingModelFactory factory720 = createHostedModelFactory(Version.fromString(\"7.2.0\"), devZone);\n List<ModelFactory> modelFactories = List.of(factory700, factory710, factory720);\n\n DeployTester tester = createTester(hosts, modelFactories, devZone);\n // Deploy with version that does not exist on hosts, the model for this version should also be created\n tester.deployApp(\"src/test/apps/hosted/\", \"7.2.0\");\n assertEquals(7, tester.getAllocatedHostsOf(tester.applicationId()).getHosts().size());\n\n // Check >0 not ==0 as the session watcher thread is running and will redeploy models in the background\n // Nodes are on 7.0.0 (should be created), no nodes on 7.1.0 (should not be created), 7.2.0 should always be created\n assertTrue(factory700.creationCount() > 0);\n assertFalse(factory710.creationCount() > 0);\n assertTrue(\"Newest model for latest major version is always included\", factory720.creationCount() > 0);\n }", "public PredictorListener buildPredictor();", "public void applyModel(ScServletData data, Object model)\n {\n }" ]
[ "0.6016677", "0.5855812", "0.5716223", "0.5632831", "0.55548507", "0.54860926", "0.5459677", "0.54485756", "0.53719664", "0.53703374", "0.53341115", "0.53341115", "0.53341115", "0.53341115", "0.53341115", "0.53341115", "0.53341115", "0.5316075", "0.5213517", "0.52106255", "0.5202578", "0.51822656", "0.5171567", "0.51650786", "0.5106111", "0.5081987", "0.5071596", "0.5059047", "0.5037211", "0.5036879", "0.5035233", "0.5035111", "0.5035092", "0.5031749", "0.5011813", "0.49957544", "0.49777436", "0.49646708", "0.49199575", "0.48887694", "0.48791635", "0.4877697", "0.48775452", "0.48729387", "0.48572895", "0.4853586", "0.4849667", "0.48398998", "0.48279488", "0.48116758", "0.47769904", "0.47638035", "0.47590452", "0.47568953", "0.47530314", "0.4747982", "0.47425383", "0.47405815", "0.47380605", "0.47372928", "0.47293076", "0.47262216", "0.4721961", "0.47042274", "0.4700969", "0.46977323", "0.4695187", "0.4685726", "0.46752372", "0.4656988", "0.46544296", "0.4647246", "0.46470055", "0.46442443", "0.46347636", "0.4634523", "0.46304545", "0.46241713", "0.46210346", "0.46177962", "0.46163052", "0.46055523", "0.46005553", "0.45919085", "0.45898855", "0.4583755", "0.45816797", "0.45661", "0.45490614", "0.45463926", "0.4545795", "0.4527146", "0.45255205", "0.45242307", "0.4522046", "0.45172247", "0.4501802", "0.45008218", "0.44975087", "0.44965824" ]
0.5395559
8
Make a prediction using a model Create anew model in the workspace identified in the workspaceId path paramter.
public ApiResponse<ModelApiResponse> predictWithHttpInfo(String workspaceId, String modelId, PredictionRequest predictionRequest) throws ApiException { okhttp3.Call localVarCall = predictValidateBeforeCall(workspaceId, modelId, predictionRequest, null); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public okhttp3.Call predictAsync(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = predictValidateBeforeCall(workspaceId, modelId, predictionRequest, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public okhttp3.Call predictCall(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = predictionRequest;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models/{modelId}/predict\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()))\n .replaceAll(\"\\\\{\" + \"modelId\" + \"\\\\}\", localVarApiClient.escapeString(modelId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public WorkingMemory createInferredModel(IRI modelId) {\n\t\tSet<Statement> statements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(getModelAbox(modelId))).asJava();\n\t\tSet<Triple> triples = statements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet());\n\t\ttry {\n\t\t\t// Using model's ontology IRI so that a spurious different ontology declaration triple isn't added\n\t\t\tOWLOntology schemaOntology = OWLManager.createOWLOntologyManager().createOntology(getOntology().getRBoxAxioms(Imports.INCLUDED), modelId);\n\t\t\tSet<Statement> schemaStatements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(schemaOntology)).asJava();\n\t\t\ttriples.addAll(schemaStatements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet()));\n\t\t} catch (OWLOntologyCreationException e) {\n\t\t\tLOG.error(\"Couldn't add rbox statements to data model.\", e);\n\t\t}\n\t\treturn getRuleEngine().processTriples(JavaConverters.asScalaSetConverter(triples).asScala());\n\t}", "void create(Model model) throws Exception;", "public void saveModel(File model_file) throws Exception{\n\t\t// Write model to file\n\t\t//System.out.println(mClassifier.getClass());\n\t\tSystem.out.println(\"Saving Trained Model. Please wait.\");\n\t\tif(mClassifier instanceof DynamicLMClassifier){\n\t\t\tFileOutputStream fileOut = new FileOutputStream(model_file);\n\t ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n\t ((DynamicLMClassifier<NGramProcessLM>) mClassifier).compileTo(objOut);\n\t objOut.close();\n\t System.out.println(\"Saving Trained Model. Complete.\");\n\t\t}else{\n\t\t\tthrow new Exception(\"Cannot compile a non dynamic traning set\");\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n Path modelPath = Paths.get(\"saved_graph_file\");\n byte[] graph = Files.readAllBytes(modelPath);\n\n // SavedModelBundle svd = SavedModelBundle.load(\"gin_rummy_nfsp4\", \"serve\");\n // System.out.println(svd.metaGraphDef());\n\n Graph g = new Graph();\n\n g.importGraphDef(graph);\n\n // Print for tags.\n Iterator<Operation> ops = g.operations();\n while (ops.hasNext()) {\n Operation op = ops.next();\n // Types are: Add, Const, Placeholder, Sigmoid, MatMul, Identity\n if (op.type().equals(\"Placeholder\")) {\n System.out.println(\"Type: \" + op.type() + \", Name: \" + op.name() + \", NumOutput: \" + op.numOutputs());\n System.out.println(\"OUTPUT: \" + op.output(0).shape());\n }\n }\n\n //open session using imported graph\n Session sess = new Session(g);\n float[][] inputData = {{4, 3, 2, 1}};\n\n // We have to create tensor to feed it to session,\n // unlike in Python where you just pass Numpy array\n Tensor inputTensor = Tensor.create(inputData, Float.class);\n float[][] output = predict(sess, inputTensor);\n for (int i = 0; i < output[0].length; i++) {\n System.out.println(output[0][i]);\n }\n }", "private Response performDT_training(String model_name, String data) {\n \tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MMM-yyyy_HmsS\");\n \tJSONObject summary = new JSONObject();\n \t\n \tif(model_name.trim().length()< 1) {\n \t\tmodel_name = \"DTree_Model_\" + sdf.format(Calendar.getInstance().getTime());\n \t}\n \t\n \t// check if the model name is already present\n \tif(utilObj.isModelNameUnique(model_name)) {\n \t\tsummary = new JSONObject();\n \t\tsummary.put(\"Error\", \"Duplicate model name : \" + model_name);\n \t\tlog.error(\"Duplicate model name\");\n \t\treturn Response.status(200).entity(summary.toString()).build();\n \t}\n \t\n \tlog.info(String.format(\"model_Name: %s\", model_name ));\n \tString modelFilePath = Util.CurrentDir+\"/models/\"+model_name;\n \t\n \ttry {\n\n \t\t// write the data to the disk\n \t\tfinal String inputFileName = \"TrainData_DT_\" + sdf.format(Calendar.getInstance().getTime()) + \".csv\";\n \t\tfinal String inputFilePath = Util.CurrentDir+\"/\"+Util.DataDir+\"/\"+inputFileName;\n \t\tFileWriter writer = new FileWriter(inputFilePath);\n \t\twriter.write(data);\n \t\twriter.flush();\n \t\twriter.close();\n \t\tlog.info(\"File created : \" + inputFilePath);\n \t\t\n \t\tString cmd = String.format(\"Rscript \"+Util.CurrentDir+\"/Rscripts/DTTraining.R %s %s \",inputFilePath, model_name);\n \t\tlog.info(cmd);\n\t \tProcess pr = Runtime.getRuntime().exec(cmd);\n\t\t\t\n\t\t\tBufferedReader results = new BufferedReader(new InputStreamReader(pr.getInputStream()));\n\t\t\tString line = null;\n\t\t\t\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\twhile((line=results.readLine()) != null) {\n\t\t\t\tbuf.append(line);\n\t\t\t\tif(line.trim().isEmpty()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine().trim();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tsummary.put(\"summary\", line);\n\t\t\t\t} \n\t\t\t\telse if(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tJSONArray Psplits = new JSONArray();\t\t\t\t\t\n\t\t\t\t\twhile(!line.trim().equalsIgnoreCase(\"Surrogate splits:\")) {\n\t\t\t\t\t\tString s[] = line.split(\"\\t\");\n\t\t\t\t\t\tfor(String s1 : s) {\n\t\t\t\t\t\t\tSystem.out.println(s1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tJSONArray splitCols = new JSONArray(s);\n\t\t\t\t\t\tline = results.readLine();\n\t\t\t\t\t\tbuf.append(line);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\tsummary.put(\"model_name\", model_name + \".RData\");\n\t\t\t\tsummary.put(\"InputFile\", inputFileName);\n\t\t\t\tsummary.put(\"CommandName\", \"Rscripts/DTTraining.R\");\n\t\t\t}\n\t\t\tsummary.put(\"raw\", buf.toString());\n\t\t\t\n\t\t\t// format the summary json as params { [key : val] }\n\t\t\tJSONArray finalSummary = new JSONArray();\n\t\t\tIterator<String> keys = summary.keySet().iterator();\n\t\t\twhile(keys.hasNext()) {\n\t\t\t\tJSONObject row = new JSONObject();\n\t\t\t\trow.put(\"attribute\", keys.next());\n\t\t\t\trow.put(\"value\", summary.get(row.getString(\"attribute\")));\n\t\t\t\tfinalSummary.put(row);\n\t\t\t}\n\t\t\treturn Response.status(200).entity(new JSONObject().put(\"summary\", finalSummary).toString()).build();\n\t\t\t\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n\t\t\n \treturn Response.status(200).entity(summary.toString()).build();\n }", "private synchronized void downloadModel(String modelName) {\n final FirebaseCustomRemoteModel remoteModel =\n new FirebaseCustomRemoteModel\n .Builder(modelName)\n .build();\n FirebaseModelDownloadConditions conditions =\n new FirebaseModelDownloadConditions.Builder()\n .requireWifi()\n .build();\n final FirebaseModelManager firebaseModelManager = FirebaseModelManager.getInstance();\n firebaseModelManager\n .download(remoteModel, conditions)\n .continueWithTask(task ->\n firebaseModelManager.getLatestModelFile(remoteModel)\n )\n .continueWith(executorService, (Continuation<File, Void>) task -> {\n // Initialize a text classifier instance with the model\n File modelFile = task.getResult();\n\n // TODO 6: Initialize a TextClassifier with the downloaded model\n textClassifier = NLClassifier.createFromFile(modelFile);\n\n // Enable predict button\n predictButton.setEnabled(true);\n return null;\n })\n .addOnFailureListener(e -> {\n Log.e(TAG, \"Failed to download and initialize the model. \", e);\n Toast.makeText(\n MainActivity.this,\n \"Model download failed, please check your connection.\",\n Toast.LENGTH_LONG)\n .show();\n predictButton.setEnabled(false);\n });\n }", "public ModelApiResponse predict(String workspaceId, String modelId, PredictionRequest predictionRequest) throws ApiException {\n ApiResponse<ModelApiResponse> localVarResp = predictWithHttpInfo(workspaceId, modelId, predictionRequest);\n return localVarResp.getData();\n }", "private void createNewDynamicModel(){\n\t\tDynamicModel dModel = new DynamicModel(currentView.getViewModel().getName());\r\n\r\n\t\t// Add the new graph to the view\r\n\t\tint modelWidth = DynamicModelView.minimumWidth; \r\n\t\tint modelHeight = DynamicModelView.minimumHeight; \r\n\t\tint viewHeight = currentView.getHeight();\r\n\t\tint pad = 8;\r\n\t\tcurrentView.addModelView(new DynamicModelView(new EntityViewConfig(pad, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t viewHeight - (modelHeight + pad), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelWidth, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelHeight, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t EntityViewConfig.Type.DYNAMIC_MODEL), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdModel, this, currentView));\r\n\t\tcurrentView.repaint();\r\n\t}", "PredictionModelStatus getModelStatus(String resourceGroupName, String hubName, String predictionName);", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "GameModel createGameModel(GameModel gameModel);", "@Override\r\n\tpublic void saveUserPredictModel(UserPredictModel userPredictModel) {\n\t\tuserPredictRepo.save(userPredictModel);\r\n\t}", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifierObject = ObjectClassifier.create(context.getAssets(), TYPE_MODEL, LABEL_TYPE, INPUT_SIZE_TYPE);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_FILE,\n LABEL_FILE,\n INPUT_SIZE,\n IMAGE_MEAN,\n IMAGE_STD,\n INPUT_NAME,\n OUTPUT_NAME);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "public okhttp3.Call createModelAsync(String workspaceId, Model model, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public void saveModel(String filePath) {\n\n\t\tFile parentFile = new File(filePath).getParentFile();\n\t\tif (parentFile != null && !parentFile.exists()) {\n\t\t\tparentFile.mkdirs();\n\t\t}\n\n\t\ttry {\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(filePath));\n\t\t\toos.writeObject(new HMMModel(pi, A, B));\n\t\t\toos.close();\n\t\t\tSystem.out.println(\"Model saved.\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void train(){\n recoApp.training(idsToTest);\n }", "public void modelNew(Model m)\n {\n\tmodelStop();\n\tmanim = new GenerationsAnimator(m.generations());\n\tmanim.scale(width,height);\n\tclearToBack();\n\tmodelStep();\n\t//modelStart();\n\tStatusBar.setStatus(\"Ready\");\n\n\tif (cListener != null)\n\t cListener.setButtonState(true);\n }", "public void model() \n\t{\n\t\t\n\t\ttry \n\t\t{\n\t\t GRBEnv env = new GRBEnv();\n\t\t GRBModel model = new GRBModel(env, \"resources/students.lp\");\n\n\t\t model.optimize();\n\n\t\t int optimstatus = model.get(GRB.IntAttr.Status);\n\n\t\t if (optimstatus == GRB.Status.INF_OR_UNBD) {\n\t\t model.getEnv().set(GRB.IntParam.Presolve, 0);\n\t\t model.optimize();\n\t\t optimstatus = model.get(GRB.IntAttr.Status);\n\t\t }\n\n\t\t if (optimstatus == GRB.Status.OPTIMAL) {\n\t\t double objval = model.get(GRB.DoubleAttr.ObjVal);\n\t\t System.out.println(\"Optimal objective: \" + objval);\n\t\t } else if (optimstatus == GRB.Status.INFEASIBLE) {\n\t\t System.out.println(\"Model is infeasible\");\n\n\t\t // Compute and write out IIS\n\t\t model.computeIIS();\n\t\t model.write(\"model.ilp\");\n\t\t } else if (optimstatus == GRB.Status.UNBOUNDED) {\n\t\t System.out.println(\"Model is unbounded\");\n\t\t } else {\n\t\t System.out.println(\"Optimization was stopped with status = \"\n\t\t + optimstatus);\n\t\t }\n\n\t\t // Dispose of model and environment\n\t\t model.write(\"resources/model.sol\");\n\t\t model.dispose();\n\t\t env.dispose();\n\n\t\t } catch (GRBException e) {\n\t\t System.out.println(\"Error code: \" + e.getErrorCode() + \". \" +\n\t\t e.getMessage());\n\t\t }\n\t\t\n\t}", "public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}", "GameScoreModel createGameScoreModel(GameScoreModel gameScoreModel);", "public ModelContainer importModel(String modelData) throws OWLOntologyCreationException {\n\t\t// load data from String\n\t\tfinal OWLOntologyManager manager = graph.getManager();\n\t\tfinal OWLOntologyDocumentSource documentSource = new StringDocumentSource(modelData);\n\t\tOWLOntology modelOntology;\n\t\tfinal Set<OWLParserFactory> originalFactories = removeOBOParserFactories(manager);\n\t\ttry {\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tcatch (OWLOntologyAlreadyExistsException e) {\n\t\t\t// exception is thrown if there is an ontology with the same ID already in memory \n\t\t\tOWLOntologyID id = e.getOntologyID();\n\t\t\tIRI existingModelId = id.getOntologyIRI().orNull();\n\n\t\t\t// remove the existing memory model\n\t\t\tunlinkModel(existingModelId);\n\n\t\t\t// try loading the import version (again)\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tfinally {\n\t\t\tresetOBOParserFactories(manager, originalFactories);\n\t\t}\n\t\t\n\t\t// try to extract modelId\n\t\tIRI modelId = null;\n\t\tOptional<IRI> ontologyIRI = modelOntology.getOntologyID().getOntologyIRI();\n\t\tif (ontologyIRI.isPresent()) {\n\t\t\tmodelId = ontologyIRI.get();\n\t\t}\n\t\tif (modelId == null) {\n\t\t\tthrow new OWLOntologyCreationException(\"Could not extract the modelId from the given model\");\n\t\t}\n\t\t// paranoia check\n\t\tModelContainer existingModel = modelMap.get(modelId);\n\t\tif (existingModel != null) {\n\t\t\tunlinkModel(modelId);\n\t\t}\n\t\t\n\t\t// add to internal model\n\t\tModelContainer newModel = addModel(modelId, modelOntology);\n\t\t\n\t\t// update imports\n\t\tupdateImports(newModel);\n\t\t\n\t\treturn newModel;\n\t}", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_PATH,\n LABEL_PATH,\n INPUT_SIZE,\n QUANT);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "public M create(P model);", "protected void establishTransformationModel() {\r\n\t \r\n\t\tTransformationModel transformModel ;\r\n\t\tArrayList<TransformationStack> modelTransformStacks ;\r\n\t\t\r\n\t\t\r\n\t\t// the variables needed for the profile\r\n\t\t// targetStruc = getTargetVector();\r\n\t\tsomData = soappTransformer.getSomData() ; \r\n\t\t// soappTransformer.setSomData( somApplication.getSomData() );\r\n\t\tsomApplication.setSomData(somData) ;\r\n\t\t\r\n\t\tsomData.getVariablesLabels() ;\r\n\t\t \r\n\t\t\r\n\t\t// from here we transfer...\r\n\t\tmodelTransformStacks = soappTransformer.getTransformationModel().getVariableTransformations();\r\n\t\ttransformModel = soappTransformer.getTransformationModel() ;\r\n\t\t \r\n\t\t\r\n\t\ttransformationModelImported = true;\r\n\t}", "void modelStatus(\n String resourceGroupName, String hubName, String predictionName, PredictionModelStatusInner parameters);", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call predictValidateBeforeCall(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling predict(Async)\");\n }\n \n // verify the required parameter 'modelId' is set\n if (modelId == null) {\n throw new ApiException(\"Missing the required parameter 'modelId' when calling predict(Async)\");\n }\n \n // verify the required parameter 'predictionRequest' is set\n if (predictionRequest == null) {\n throw new ApiException(\"Missing the required parameter 'predictionRequest' when calling predict(Async)\");\n }\n \n\n okhttp3.Call localVarCall = predictCall(workspaceId, modelId, predictionRequest, _callback);\n return localVarCall;\n\n }", "GoalModel createGoalModel();", "TrainingTest createTrainingTest();", "public Object run(ModelFactory factory);", "IFMLModel createIFMLModel();", "public void openModel() {\r\n \t\tisReleased = true;\r\n \t\tif (checkForSave(\"<html>Save changes before opening a saved model?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\tJMODELModel tmpmodel = new JMODELModel();\r\n \t\tint state = modelLoader.loadModel(tmpmodel, mainWindow);\r\n \t\tif (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {\r\n \t\t\tresetMouseState();\r\n \t\t\t// Avoid checkForSave again...\r\n \t\t\tif (model != null) {\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t}\r\n \t\t\tnewModel();\r\n \t\t\t// At this point loading was successful, so substitutes old model\r\n \t\t\t// with loaded one\r\n \t\t\tmodel = tmpmodel;\r\n \t\t\tthis.populateGraph();\r\n \t\t\tsetSelect.setEnabled(true);\r\n \t\t\tcomponentBar.clickButton(setSelect);\r\n \t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t// Removes selection\r\n \t\t\tgraph.clearSelection();\r\n \t\t\t// If model contains results, enable Results Window\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\tif (model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\tthis.setResultsWindow(new PAResultsWindow(model.getParametricAnalysisModel(), (PAResultsModel) model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthis.setResultsWindow(new ResultsWindow(model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tmodel.resetSaveState();\r\n \t\t\tSystem.gc();\r\n \t\t} else if (state == ModelLoader.FAILURE) {\r\n \t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t}\r\n \t\t// Shows warnings if any\r\n \t\tif (state == ModelLoader.WARNING) {\r\n \t\t\tnew WarningWindow(modelLoader.getLastWarnings(), mainWindow, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show();\r\n \t\t}\r\n \r\n \t}", "public void saveToFile(File file, Model model) throws IOException;", "public void save() {\n\t\t// Register the XMI resource factory for the .xmi extension\n\t\tResource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;\n\t\tMap<String, Object> m = reg.getExtensionToFactoryMap();\n\t\tm.put(\"xmi\", new XMIResourceFactoryImpl());\n\n\t\t// Obtain a new resource set\n\t\tResourceSet resSet = new ResourceSetImpl();\n\n\t\t// Create a resource\n\t\tResource resource = resSet.createResource(this.targetURI);\n\n\t\t// Get the first model element and cast it to the right type\n\t\tresource.getContents().add(targetRootBlock);\n\n\t\t// Now save the content.\n\t\tMap<String, Object> options = new HashMap<String, Object>();\n\t\toptions.put(XMIResource.OPTION_ENCODING, \"UTF-8\");\n\t\ttry {\n\t\t\tresource.save(options);\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"IOException when trying to save to \" + this.targetURI);\n\t\t}\n\n\t\tif (LOGGER.isInfoEnabled()) {\n\t\t\tLOGGER.info(\"Saved Shapes model to \" + this.targetURI);\n\t\t}\n\t}", "public void saveModel() {\n\t}", "public interface IPredictionService {\n\t\n\t\n\t/**\n\t * \n\t * Create an instance object of TestSet\n\t * \n\t * @param position\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic Instances makeTestSet(String position) throws Exception;\n\t\n\t/**\n\t * Used a particular algorithm to train the Artificial Intelligence (AI)\n\t * @throws Exception\n\t */\n\tpublic void train() throws Exception;\n\t\n\t/**\n\t * Used to classify after train\n\t * @throws Exception\n\t */\n\tpublic void classify() throws Exception;\n\n}", "@Override\r\n\tpublic void deleteUserPredictModel(Long userPredictModelId) {\n\t\t\r\n\t}", "private void runOnlineModel() {\n myScenario.setProbe(myProbe);\n myScenario.setSynchronizationMode(mySrcSelector);\n try {\n myScenario.resync();\n myScenario.run();\n } catch (SynchronizationException e) {\n System.out.println(e);\n } catch (ModelException e) {\n System.out.println(e);\n }\n }", "@Override\r\n\tpublic void updateUserPredictModel(UserPredictModel userPredictModel) {\n\t\tuserPredictRepo.save(userPredictModel);\r\n\t}", "public SModel createBlankCheckpointModel(SModelReference originalModel, @Nullable CheckpointIdentity previousCheckpoint, CheckpointIdentity step) {\n final SModelName transientModelName = createCheckpointModelName(originalModel, step);\n // I'd like to have stable model id to minimize number of changes in CP models\n int mid = originalModel.getModelId().hashCode() ^ step.getName().hashCode();\n // make sure value fits into MPS reserved range, see IntegerSModelId doc.\n mid &= 0x0FFFFFFF;\n mid |= 0x0F000000;\n final SModelReference mr = PersistenceFacade.getInstance()\n .createModelReference(myModule.getModuleReference(), new IntegerSModelId(mid),\n transientModelName.getValue());\n SModel existing = myModule.getModel(mr.getModelId());\n if (existing != null) {\n // Why it's important to forget existing model? E.g. if a model being generated has been already generated and exposed as checkpoint, and\n // was renamed since. Renamed here means change of model name, e.g. due to rename of a containing language module.\n // Besides, it doesn't hurt to drop old checkpoint in any case.\n // There were few possible ways to address MPS-26174 (rename of a module breaks x-model generation).\n // - listen to changes of original model/module and react (e.g. remove related CP models or clear all CPs altogether).\n // - drop all transients as part of rename module action (likely, most safe)\n // - respect model name when building module id value, above. Leaves duplicated, hard-to-distinguish models among checkpoints.\n // - detect there's already model with same id and forget it (least destructive, keeps other CP models in place).\n myModule.forgetModel(existing, true);\n }\n SModel checkpointModel = myModule.createTransientModel(mr);\n assert checkpointModel instanceof ModelWithAttributes;\n ((ModelWithAttributes) checkpointModel).setAttribute(GENERATION_PLAN, step.getPlan().getName());\n ((ModelWithAttributes) checkpointModel).setAttribute(CHECKPOINT, step.getName());\n if (previousCheckpoint != null) {\n ((ModelWithAttributes) checkpointModel).setAttribute(PREV_GENERATION_PLAN, previousCheckpoint.getPlan().getName());\n ((ModelWithAttributes) checkpointModel).setAttribute(PREV_CHECKPOINT, previousCheckpoint.getName());\n }\n return checkpointModel;\n }", "private void setupModel() {\n\n //Chooses which model gets prepared\n switch (id) {\n case 2:\n singlePackage = new Node();\n activeNode = singlePackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_solo)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 3:\n multiPackage = new Node();\n activeNode = multiPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_multi_new)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 4:\n wagonPackage = new Node();\n activeNode = wagonPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_car_new)\n .build().thenAccept(a -> activeRenderable = a)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n default:\n mailbox = new Node();\n activeNode = mailbox;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.mailbox)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n }\n }", "PredictionResourceFormat.DefinitionStages.Blank define(String name);", "public void launch(DataModel model) {\n //this template simple creates a UndirectedKNNAlgorithm and executes it,\n //replace as needed.\n// UndirectedKNNAlgorithm algorithm = new UndirectedKNNAlgorithm();\n// algorithm.execute();\n \n UndirectedKNNAlgorithm algorithm = new UndirectedKNNAlgorithm(model);\n algorithm.createGUIandRun(UndirectedKNNAlgorithm.ALGORITHM_NAME, \"\"); \n }", "public <T> T createModel(T referenceModel) throws CreateModelException {\n return createModel(referenceModel, true);\n }", "@Test\n public void testCreateModelVersionsForManuallyDeployedAppsWhenCreatingFailsForOneVersion() {\n List<Host> hosts = createHosts(7, \"7.0.0\");\n\n ModelFactory factory700 = createFailingModelFactory(Version.fromString(\"7.0.0\"));\n CountingModelFactory factory720 = createHostedModelFactory(Version.fromString(\"7.2.0\"), devZone);\n List<ModelFactory> modelFactories = List.of(factory700, factory720);\n\n DeployTester tester = createTester(hosts, modelFactories, devZone, Clock.systemUTC());\n // Deploy with version that does not exist on hosts, the model for this version should be created even\n // if creating 7.0.0 fails\n tester.deployApp(\"src/test/apps/hosted/\", \"7.2.0\");\n assertEquals(7, tester.getAllocatedHostsOf(tester.applicationId()).getHosts().size());\n\n // Check >0 not ==0 as the session watcher thread is running and will redeploy models in the background\n assertTrue(\"Newest model for latest major version is always included\", factory720.creationCount() > 0);\n }", "private void readModelAndTrain(boolean readExistingModel,\n\t\t\tbyte[] trainingDataFile) {\n\t\tInputStream dataIn = null;\n\t\ttry {\n\t\t\tObjectStream<DocumentSample> sampleStream = new DocumentSampleStream(\n\t\t\t\t\tnew PlainTextByLineStream(new FileInputStream(\n\t\t\t\t\t\t\tcreateModelInput(INPUT_TWEETS_ORIG_TXT)), \"UTF-8\"));\n\t\t\tsetModel(DocumentCategorizerME.train(\"en\", sampleStream,\n\t\t\t\t\tCUTOFF_FREQ, TRAINING_ITERATIONS));\n\t\t\tserialize(model);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (dataIn != null) {\n\t\t\t\ttry {\n\t\t\t\t\tdataIn.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void run() {\n\t // Create the ouput directories\n\t interfDir = new File(outDirName+\"/\"+modelName);\n\t interfDir.mkdirs();\n\t implDir = new File(outDirName+\"/\"+modelName);\n\t implDir.mkdirs();\n\t // Create the parseAll visitor interface\n\t createParseAllVisitorInterface(interfDir);\n\t // Create the parseAll visitor implementation\n\t createParseAllVisitorImplementation(implDir);\n\t // Create the evaluateAll visitor interface\n\t createEvaluateAllVisitorInterface(interfDir);\n\t // Create the evaluateAll visitor implementation\n\t createEvaluateAllVisitorImplementation(implDir);\n\t}", "public static IssueModel createIssueModel(String projectId) throws Exception, IOException {\n try (ContactCenterInsightsClient client = ContactCenterInsightsClient.create()) {\n // Construct a parent resource.\n LocationName parent = LocationName.of(projectId, \"us-central1\");\n\n // Construct an issue model.\n IssueModel issueModel =\n IssueModel.newBuilder()\n .setDisplayName(\"my-model\")\n .setInputDataConfig(\n IssueModel.InputDataConfig.newBuilder().setFilter(\"medium=\\\"CHAT\\\"\").build())\n .build();\n\n // Call the Insights client to create an issue model.\n IssueModel response = client.createIssueModelAsync(parent, issueModel).get();\n System.out.printf(\"Created %s%n\", response.getName());\n return response;\n }\n }", "@Override\n public List<Prediction> predictWord(final String string) {\n Trace.beginSection(\"predictWord\");\n\n Trace.beginSection(\"preprocessText\");\n Log.e(TAG, \"inut_string: \" + string);\n //TODO\n\n String[] input_words = string.split(\" \");\n data_len[0] = input_words.length;\n Log.e(TAG, \"data_len: \" + data_len[0]);\n //intValues = new int[input_words.length];\n if (input_words.length < input_max_Size) {\n for (int i = 0; i < input_words.length; ++i) {\n Log.e(TAG, \"input_word: \" + input_words[i]);\n if (word_to_id.containsKey(input_words[i])) intValues[i] = word_to_id.get(input_words[i]);\n else intValues[i] = 6; //rare words, <unk> in the vocab\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n for (int i = input_words.length; i < input_max_Size; ++i) {\n intValues[i] = 0; //padding using <eos>\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n }\n else {\n Log.e(TAG, \"input out of max Size allowed!\");\n return null;\n }\n Trace.endSection();\n // Copy the input data into TensorFlow.\n Trace.beginSection(\"fillNodeFloat\");\n // TODO\n inferenceInterface.fillNodeInt(inputName, new int[] {1, input_max_Size}, intValues);\n Log.e(TAG, \"fillNodeInt success!\");\n inferenceInterface.fillNodeInt(inputName2, new int[] {1}, data_len);\n Log.e(TAG, \"fillDATA_LEN success!\");\n Trace.endSection();\n\n // Run the inference call.\n Trace.beginSection(\"runInference\");\n inferenceInterface.runInference(outputNames);\n Log.e(TAG, \"runInference success!\");\n Trace.endSection();\n\n // Copy the output Tensor back into the output array.\n Trace.beginSection(\"readNodeFloat\");\n inferenceInterface.readNodeFloat(outputName, outputs);\n Log.e(TAG, \"readNodeFloat success!\");\n Trace.endSection();\n\n // Find the best predictions.\n PriorityQueue<Prediction> pq = new PriorityQueue<Prediction>(3,\n new Comparator<Prediction>() {\n @Override\n public int compare(Prediction lhs, Prediction rhs) {\n // Intentionally reversed to put high confidence at the head of the queue.\n return Float.compare(rhs.getConfidence(), lhs.getConfidence());\n }\n });\n for (int i = 0; i < outputs.length; ++i) { //don't show i = 0 <unk>; i = 1<eos>\n if (outputs[i] > THRESHOLD) {\n pq.add(new Prediction(\"\" + i, id_to_word.get(i), outputs[i]));\n }\n }\n final ArrayList<Prediction> predictions = new ArrayList<Prediction>();\n for (int i = 0; i < Math.min(pq.size(), MAX_RESULTS); ++i) {\n predictions.add(pq.poll());\n }\n for (int i = 0; i < predictions.size(); ++i) {\n Log.e(TAG, predictions.get(i).toString());\n }\n Trace.endSection(); // \"predict word\"\n return predictions;\n }", "@Override\n public JsonObject getPrediction(String modelName,String usecaseName) throws InsightsCustomException {\n JsonObject prediction = h2oApiCommunicator.predict(modelName, usecaseName+\"_part1.hex\");\n JsonArray data = h2oApiCommunicator.getDataFrame(usecaseName+\"_part1.hex\");\n JsonObject response = new JsonObject();\n JsonArray fields = new JsonArray();\n Set<Map.Entry<String, JsonElement>> es = data.get(0).getAsJsonObject().entrySet();\n for (Iterator<Map.Entry<String, JsonElement>> it = es.iterator(); it.hasNext(); ) {\n fields.add(it.next().getKey());\n }\n if (data.size() == prediction.getAsJsonArray(\"predict\").size()) {\n \n prepareData(prediction, data, fields);\t \n response.add(\"Fields\", fields);\t \n response.add(\"Data\", data);\n return response;\n } else {\n log.error(\"Mismatch in test data and prediction: \");\n throw new InsightsCustomException(\"Mismatch in test data and prediction: \");\n }\n }", "DataModel createDataModel();", "RealizationModelLocation createRealizationModelLocation();", "public void saveModel() {\n\n }", "private static native boolean train_0(long nativeObj, long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj);", "protected static Model getModel(String workspaceId, String modelId)\n throws AnaplanAPIException {\n Workspace workspace = getWorkspace(workspaceId);\n if (workspace == null) {\n return null;\n }\n if (modelId == null || modelId.isEmpty()) {\n LOG.error(\"A model ID must be provided\");\n return null;\n }\n Model model = null;\n\n if (!noValidateModel) {\n for (Model m : workspace.getModels()) {\n if (modelId.equals(m.getId()) || modelId.equalsIgnoreCase(m.getName())) {\n model = m;\n break;\n }\n }\n }\n if (model == null) {\n ModelData data = new ModelData(modelId, \"\");\n model = new Model(workspace, data);\n model.setCurrentWorkspaceId(workspaceId);\n }\n return model;\n }", "public okhttp3.Call trainModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = trainModelValidateBeforeCall(workspaceId, modelId, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public void makeModel(File file) throws IOException, TasteException{\n\t\tmodel = new FileDataModel(file);\t\n\t\t\n\t\tsim1 = new PearsonCorrelationSimilarity(model);\n\t}", "public okhttp3.Call createModelCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = model;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "void execute(PAModel cmodel) throws PAModelException;", "public void loadModel(){\n remoteModel = new FirebaseCustomRemoteModel.Builder(dis).build();\n FirebaseModelManager.getInstance().getLatestModelFile(remoteModel)\n .addOnCompleteListener(new OnCompleteListener<File>() {\n @Override\n public void onComplete(@NonNull Task<File> task) {\n File modelFile = task.getResult();\n if (modelFile != null) {\n interpreter = new Interpreter(modelFile);\n // Toast.makeText(MainActivity2.this, \"Hosted Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n runningInterpreter();\n }\n else{\n try {\n InputStream inputStream = getAssets().open(dis+\".tflite\");\n byte[] model = new byte[inputStream.available()];\n inputStream.read(model);\n ByteBuffer buffer = ByteBuffer.allocateDirect(model.length)\n .order(ByteOrder.nativeOrder());\n buffer.put(model);\n //Toast.makeText(MainActivity2.this, dis+\"Bundled Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n interpreter = new Interpreter(buffer);\n runningInterpreter();\n } catch (IOException e) {\n // File not found?\n Toast.makeText(MainActivity2.this, \"No hosted or bundled model\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n });\n }", "public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }", "public void addModel(Model aModel, OpenSimContext context) throws IOException {\n OpenSimContext dContext = context==null?new OpenSimContext(aModel.initSystem(), aModel):context;\n models.add(aModel);\n mapModelsToContexts.put(aModel, dContext);\n SingleModelGuiElements newModelGuiElements = new SingleModelGuiElements(aModel);\n mapModelsToGuiElements.put(aModel, newModelGuiElements);\n setChanged();\n ModelEvent evnt = new ModelEvent(aModel, ModelEvent.Operation.Open);\n notifyObservers(evnt); \n setCurrentModel(aModel, false);\n //ExplorerTopComponent.addFinalEdit();\n }", "public Model createByUserModel(int id, Model model) {\n User user = userService.get(id);\n Set<Project> projects = user.getProjects();\n model.addAttribute(\"user\", user);\n model.addAttribute(\"myProjects\", projects);\n return model;\n }", "public static void main(String[] args) throws Exception {\n final int numRows = 28;\n final int numColumns = 28;\n int outputNum = 10; // number of output classes\n int batchSize = 128; // batch size for each epoch\n int rngSeed = 123; // random number seed for reproducibility\n int numEpochs = 15; // number of epochs to perform\n String modelPath = \"モデルパスを入力\";\n\n //Get the DataSetIterators:\n DataSetIterator mnistTrain = new MnistDataSetIterator(batchSize, true, rngSeed);\n DataSetIterator mnistTest = new MnistDataSetIterator(batchSize, false, rngSeed);\n\n\n System.out.println(\"Build model....\");\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(rngSeed) //include a random seed for reproducibility\n // use stochastic gradient descent as an optimization algorithm\n .updater(new Nesterovs(0.006, 0.9))\n .l2(1e-4)\n .list()\n .layer(new DenseLayer.Builder() //create the first, input layer with xavier initialization\n .nIn(numRows * numColumns)\n .nOut(1000)\n .activation(Activation.RELU)\n .weightInit(WeightInit.XAVIER)\n .build())\n .layer(new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD) //create hidden layer\n .nIn(1000)\n .nOut(outputNum)\n .activation(Activation.SOFTMAX)\n .weightInit(WeightInit.XAVIER)\n .build())\n .build();\n\n\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\n model.init();\n //print the score with every 1 iteration\n UIServer uiServer = UIServer.getInstance();\n InMemoryStatsStorage statsStorage = new InMemoryStatsStorage();\n uiServer.attach(statsStorage);\n model.setListeners(new StatsListener(statsStorage),new ScoreIterationListener(1));\n\n System.out.println(\"Train model....\");\n model.fit(mnistTrain, numEpochs);\n\n\n\n\n System.out.println(\"Evaluate model....\");\n Evaluation eval = model.evaluate(mnistTest);\n System.out.println(eval.stats());\n ModelSerializer.writeModel(model, new File(modelPath), false);\n System.out.println(\"****************Example finished********************\");\n\n }", "public static void main(String[] args) {\n saveModel();\n\t}", "private void createModel() {\n model = new Node(\"Enemy\"+enemyCounter);\n Box b = new Box(.5f, 2, .5f);\n Geometry bg = new Geometry(\"Box\", b);\n Material bm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n Sphere sphere = new Sphere(32, 32, 1.5f, false, false);\n Geometry sg = new Geometry(\"Sphere\", sphere);\n Material sm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n bm.setColor(\"Color\", ColorRGBA.Blue);\n sm.setColor(\"Color\", ColorRGBA.Red);\n bg.setMaterial(bm); \n sg.setMaterial(sm);\n model.attachChild(bg);\n model.attachChild(sg);\n sg.setLocalTranslation(0,2.5f,0);\n \n attachChild(model);\n }", "@Override\r\n \tpublic boolean performFinish() {\r\n \t\ttry {\r\n \t\t\t// Remember the file.\r\n \t\t\t//\r\n \t\t\tfinal IFile modelFile = getModelFile();\r\n \r\n \t\t\t// Do the work within an operation.\r\n \t\t\t//\r\n \t\t\tWorkspaceModifyOperation operation =\r\n \t\t\t\tnew WorkspaceModifyOperation() {\r\n \t\t\t\t\t@Override\r\n \t\t\t\t\tprotected void execute(IProgressMonitor progressMonitor) {\r\n \t\t\t\t\t\ttry {\r\n \t\t\t\t\t\t\t// Create a resource set\r\n \t\t\t\t\t\t\t//\r\n\t\t\t\t\t\t\tReqIFResourceSetImpl resourceSet = new ReqIFResourceSetImpl();\r\n\r\n\t\t\t\t\t\t\t// (mj) Sollte nicht notwendig sein, übernommmen von Mark's Unit Test\r\n\t\t\t\t\t\t\tresourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(\"reqif\", new ReqIFResourceFactoryImpl());\r\n\t\t\t\t\t\t\tresourceSet.getPackageRegistry().put(ReqIF10Package.eNS_URI, ReqIF10Package.eINSTANCE);\r\n \r\n \t\t\t\t\t\t\t// Get the URI of the model file.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tURI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true);\r\n \r\n \t\t\t\t\t\t\t// Create a resource for this file.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tResource resource = resourceSet.createResource(fileURI);\r\n \r\n \t\t\t\t\t\t\t// Add the initial model object to the contents.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tEObject rootObject = createInitialModel();\r\n \t\t\t\t\t\t\tif (rootObject != null) {\r\n \t\t\t\t\t\t\t\tresource.getContents().add(rootObject);\r\n \t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t\t// Save the contents of the resource to the file system.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tMap<Object, Object> options = new HashMap<Object, Object>();\r\n \t\t\t\t\t\t\t// Always use UTF-8 encoding\r\n \t\t\t\t\t\t\t// options.put(XMLResource.OPTION_ENCODING,\r\n \t\t\t\t\t\t\t// initialObjectCreationPage.getEncoding());\r\n \t\t\t\t\t\t\toptions.put(XMLResource.OPTION_ENCODING, \"UTF-8\");\r\n\t\t\t\t\t\t\tresource.save(null);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tcatch (Exception exception) {\r\n \t\t\t\t\t\t\tReqif10EditorPlugin.INSTANCE.log(exception);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tfinally {\r\n \t\t\t\t\t\t\tprogressMonitor.done();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t};\r\n \r\n \t\t\tgetContainer().run(false, false, operation);\r\n \r\n \t\t\t// Select the new file resource in the current view.\r\n \t\t\t//\r\n \t\t\tIWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow();\r\n \t\t\tIWorkbenchPage page = workbenchWindow.getActivePage();\r\n \t\t\tfinal IWorkbenchPart activePart = page.getActivePart();\r\n \t\t\tif (activePart instanceof ISetSelectionTarget) {\r\n \t\t\t\tfinal ISelection targetSelection = new StructuredSelection(modelFile);\r\n \t\t\t\tgetShell().getDisplay().asyncExec\r\n \t\t\t\t\t(new Runnable() {\r\n \t\t\t\t\t\t public void run() {\r\n \t\t\t\t\t\t\t ((ISetSelectionTarget)activePart).selectReveal(targetSelection);\r\n \t\t\t\t\t\t }\r\n \t\t\t\t\t });\r\n \t\t\t}\r\n \r\n \t\t\t// Open an editor on the new file.\r\n \t\t\t//\r\n \t\t\ttry {\r\n \t\t\t\tpage.openEditor\r\n \t\t\t\t\t(new FileEditorInput(modelFile),\r\n \t\t\t\t\t workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId());\t\t\t\t\t \t \r\n \t\t\t}\r\n \t\t\tcatch (PartInitException exception) {\r\n \t\t\t\tMessageDialog.openError(workbenchWindow.getShell(), Reqif10EditorPlugin.INSTANCE.getString(\"_UI_OpenEditorError_label\"), exception.getMessage());\r\n \t\t\t\treturn false;\r\n \t\t\t}\r\n \r\n \t\t\treturn true;\r\n \t\t}\r\n \t\tcatch (Exception exception) {\r\n \t\t\tReqif10EditorPlugin.INSTANCE.log(exception);\r\n \t\t\treturn false;\r\n \t\t}\r\n \t}", "public static void createAllModels() throws IOException, InterruptedException {\n ConsoleLogger.printHeader(\"Creating models\");\n List<String> modelsToCreate = new ArrayList<>(FileHelper.loadAllFilesInPath(MODELS_PATH).values());\n final CountDownLatch createModelsLatch = new CountDownLatch(1);\n\n // Call API to create the models. For each async operation, once the operation is completed successfully, a latch is counted down.\n client.createModels(modelsToCreate)\n .doOnNext(listOfModelData -> listOfModelData.forEach(\n modelData -> ConsoleLogger.printSuccess(\"Created model: \" + modelData.getModelId())\n ))\n .doOnError(IGNORE_CONFLICT_ERROR)\n .doOnTerminate(createModelsLatch::countDown)\n .subscribe();\n\n // Wait until the latch count reaches zero, signifying that the async calls have completed successfully.\n createModelsLatch.await(MAX_WAIT_TIME_ASYNC_OPERATIONS_IN_SECONDS, TimeUnit.SECONDS);\n }", "public abstract Model openModel(String graphName) throws JenaProviderException;", "@Override protected ClarifaiResponse<List<ClarifaiOutput<Concept>>> doInBackground(Void... params) {\n final ConceptModel generalModel = App.get().clarifaiClient().getDefaultModels().foodModel();\n\n // Use this model to predict, with the image that the user just selected as the input\n return generalModel.predict()\n .withInputs(ClarifaiInput.forImage(ClarifaiImage.of(imageBytes)))\n .executeSync();\n }", "public static Classifier create(final AssetManager assetManager,\n final String modelFilename,\n final String labelFilename,\n final int inputSize,\n final boolean isQuantized) throws IOException {\n final TFLiteRecognitionAPIModel d = new TFLiteRecognitionAPIModel();\n\n d.labels = readLabelFile(assetManager, labelFilename);\n d.inputSize = inputSize;\n\n // NEW: Prepare GPU delegate.\n //GpuDelegate delegate = new org.tensorflow.lite.Delegate();\n //Interpreter.Options options = (new Interpreter.Options()).addDelegate(delegate);\n\n try {\n File file = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), modelFilename);\n d.tfLite = new Interpreter(file);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n d.isModelQuantized = isQuantized;\n // Pre-allocate buffers.\n int numBytesPerChannel;\n if (d.isModelQuantized) {\n numBytesPerChannel = 1; // Quantized\n } else {\n numBytesPerChannel = 4; // Floating point\n }\n d.imgData = ByteBuffer.allocateDirect(1 * d.inputSize * d.inputSize * 3 * numBytesPerChannel); ////////////////////// 3 -> 2\n d.imgData.order(ByteOrder.nativeOrder());\n d.intValues = new int[d.inputSize * d.inputSize];\n\n d.tfLite.setNumThreads(NUM_THREADS);\n d.tfoutput_recognize = new float[1][NUM_CLASSES];\n /*d.outputLocations = new float[1][NUM_DETECTIONS][4];\n d.outputClasses = new float[1][NUM_DETECTIONS];\n d.outputScores = new float[1][NUM_DETECTIONS];\n d.numDetections = new float[1];*/\n return d;\n }", "InstanceModel createInstanceOfInstanceModel();", "private static native void predict_all_0(long nativeObj, long samples_nativeObj, long results_nativeObj);", "@RequestMapping(value = \"/staff/programcreate\")\n\tpublic String redirectToProgramCreate(Model model) {\n\t\tProgram program = new Program();\n\t\tmodel.addAttribute(\"program\", program);\n\t\treturn \"staff/programcreate\";\n\t}", "public Logic(Model m){\r\n model = m;\r\n }", "public void getPredictions() throws IOException, InterruptedException{\n //splitColsDataFiles();\n for(String learner:listLearners){\n File modelsFolder = new File(\"models/\"+learner);\n File[] IPFolders = modelsFolder.listFiles();\n for (File nodeFolder : IPFolders) {\n if (nodeFolder.isDirectory()) {\n File[] filesInFolder = nodeFolder.listFiles();\n ArrayList<String> filesINFolderAL = new ArrayList<String>();\n for(int i=0;i<filesInFolder.length;i++){\n filesINFolderAL.add(filesInFolder[i].getName());\n }\n if(filesINFolderAL.contains(model) && filesINFolderAL.contains(\"data.properties\")){\n System.out.println(\"Generating data for: \" + nodeFolder.getPath());\n // read properties file\n // get indices of variables\n // paste appropriate cols in models/temp\n // change commands below with appropriate data\n Properties dataProps = loadProps(nodeFolder.getPath()+\"/data.properties\");\n ArrayList<Integer> indices = new ArrayList<Integer>();\n String featuresS = dataProps.getProperty(\"sampled_variables\");\n if(featuresS!=null){\n String[] featuresArray = featuresS.split(\" \");\n for(int i=0;i<featuresArray.length;i++){\n indices.add(i, Integer.parseInt(featuresArray[i]));\n }\n // the order of indices is important\n Collections.sort(indices);\n\n String pasteTrainTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTrainTempCommand += \" models/temp/tr_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTrainTempCommand += \" models/temp/tr_targets.csv > models/temp/tr_temp.csv\";\n System.out.println(pasteTrainTempCommand);\n Process pasteTrainTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTrainTempCommand});\n pasteTrainTemp_process.waitFor();\n\n\n String pasteTestTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTestTempCommand += \" models/temp/te_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTestTempCommand += \" models/temp/te_targets.csv > models/temp/te_temp.csv\";\n System.out.println(pasteTestTempCommand);\n Process pasteTestTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTestTempCommand});\n pasteTestTemp_process.waitFor();\n \n // Add a new case when adding a new learner\n if(learner.equals(\"gpfunction\") || learner.equals(\"ruletree\") || learner.equals(\"rulelist\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }else if(learner.equals(\"mplcs\")){// C OR C++\n String predictTrain_command = \"learners/\" + learner + \" -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"learners/\" + learner + \" -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"lccb\")){ // Python\n String predictTrain_command = \"python learners/\" + learner + \".py -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"python learners/\" + learner + \".py -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n System.out.println(predictTest_command);\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"SBBJ\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }\n \n }\n }\n }\n }\n }\n }", "EisModel createEisModel();", "public void save(final IPath path) throws IOException {\r\n\t\t// This sets the model as contents in a new resource when using save as.\r\n\t\ttry {\r\n\t\t\tresource = resourceSet.getResource(URI.createPlatformResourceURI(\r\n\t\t\t\t\tpath.toString(), true), true);\r\n\t\t} catch (final Exception e) {\r\n\t\t\t// FIXME eigentlich sollte getResource schon eine Resource erzeugen\r\n\t\t\tresource = resourceSet.createResource(URI\r\n\t\t\t\t\t.createPlatformResourceURI(path.toString(), true));\r\n\t\t\tAssert.isTrue(false, \"Unerwartete Codeausführung.\");\r\n\t\t}\r\n\t\trecursiveSetNamesIfUnset(models);\r\n\t\tresource.getContents().clear();\r\n\t\tresource.getContents().addAll(models);\r\n\t\tfinal Map<String, Boolean> options = new HashMap<String, Boolean>();\r\n\t\toptions.put(XMLResource.OPTION_DECLARE_XML, Boolean.TRUE);\r\n\t\tresource.save(options);\r\n\t}", "public final void entryRuleModel() throws RecognitionException {\n try {\n // InternalMLRegression.g:54:1: ( ruleModel EOF )\n // InternalMLRegression.g:55:1: ruleModel EOF\n {\n before(grammarAccess.getModelRule()); \n pushFollow(FOLLOW_1);\n ruleModel();\n\n state._fsp--;\n\n after(grammarAccess.getModelRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public void startTrainingMode() {\n\t\t\r\n\t}", "public void addModel(IAnimatorModel newModel) {\r\n this.model = newModel;\r\n }", "public okhttp3.Call trainModelCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models/{modelId}/train\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()))\n .replaceAll(\"\\\\{\" + \"modelId\" + \"\\\\}\", localVarApiClient.escapeString(modelId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public void runModel(){\n\t\tcurrentView.getDynamicModelView().getModel().setProgressMonitor(progressMonitor);\r\n\t\tnew Thread(currentView.getDynamicModelView().getModel()).start();\r\n\r\n\t\tsetStatusBarText(\"Ready\");\r\n\t}", "com.google.cloud.aiplatform.v1.DeployedModel getDeployedModel();", "private Model getThisModel(String name, Model model) {\n\t\t\t\n\t\t\t Model modret=ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\t\t\t String text=dbs.getModel(name);\n\t\t\t\t\n\t\t\t\t//System.out.println(\"TEXT\"+text+\"TEXT!!!\");\n\t\t\t\t if(text==null){\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t\treturn modret;\n\t\t\t\t }\n\t\t\t\t else{\n\t\t\t\t\t //read model \n\t\t\t\t\t InputStream input = new ByteArrayInputStream(text.getBytes());\n\t \n\t\t\t\t\t modret.read(input, null,\"RDF/JSON\");\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t }\n\t\t\t\t return modret;\n\t \n\t\t }", "public void saveModel(String path) {\n try\n {\n for (int i=0; i<size; i++) {\n for (int j=0; j<size; j++) {\n PerformanceResultsPair resultsPair = resultsGrid[i][j];\n String directoryName = (i > j)?\n resultsPair.getP2FirstResults().getDescription():\n resultsPair.getP1FirstResults().getDescription();\n resultsPair.saveTo(path + FileUtil.FILE_SEPARATOR() + directoryName);\n }\n }\n } catch (IOException e) {\n throw new IllegalStateException(\"Could not save the model\", e);\n }\n }", "protected abstract IModel<T> createModel(T object);", "public void saveTrainingDataToFileHybridSampling1() throws Exception {\n NGramTokenizer tokenizer = new NGramTokenizer();\r\n tokenizer.setNGramMinSize(1);\r\n tokenizer.setNGramMaxSize(1);\r\n tokenizer.setDelimiters(\"\\\\W\");\r\n\r\n //set stemmer - set english stemmer\r\n SnowballStemmer stemmer = new SnowballStemmer();\r\n stemmer.setStemmer(\"english\");\r\n\r\n //set lemmatizer\r\n StanfordCoreNLPLemmatizer scnlpl = new StanfordCoreNLPLemmatizer();\r\n\r\n //create new filter for vector transformation\r\n StringToWordVector filter = new StringToWordVector();\r\n filter.setLowerCaseTokens(true);\r\n filter.setOutputWordCounts(true);\r\n filter.setTFTransform(true);\r\n filter.setIDFTransform(true);\r\n filter.setStopwords(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\StopWordsR2.txt\")); // stop word removal given in research paper\r\n filter.setTokenizer(tokenizer);\r\n filter.setStemmer(scnlpl);\r\n\r\n System.out.println(\"Stemmer Name- \" + filter.getStemmer());\r\n\r\n InstanceQuery query = new InstanceQuery();\r\n query.setUsername(\"root\");\r\n query.setPassword(\"\");\r\n\r\n int numberOfPapers = 5;\r\n Instances[] otherArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'other'\");\r\n otherArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='other'\");\r\n otherArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='other'\");\r\n otherArticles[2] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'other'\");\r\n otherArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'other'\");\r\n otherArticles[4] = query.retrieveInstances();\r\n\r\n Instances[] crimeArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'crime'\");\r\n crimeArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='crime'\");\r\n crimeArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='crime'\");\r\n crimeArticles[2] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'crime'\");\r\n crimeArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'crime'\");\r\n crimeArticles[4] = query.retrieveInstances();\r\n\r\n FastVector attributeList = new FastVector(2);\r\n Attribute a1 = new Attribute(\"text\", (FastVector) null);\r\n FastVector classVal = new FastVector();\r\n classVal.addElement(\"crime\");\r\n classVal.addElement(\"other\");\r\n Attribute c = new Attribute(\"@@class@@\", classVal);\r\n //add class attribute and news text\r\n attributeList.addElement(a1);\r\n attributeList.addElement(c);\r\n Instances trainingData = new Instances(\"TrainingNews\", attributeList, 0);\r\n trainingData.setClassIndex(1);\r\n\r\n //up sampling using SMOTE\r\n int crimeArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < crimeArticles[i].numInstances(); j++) {\r\n\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, crimeArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, crimeArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n crimeArticlesCount++;\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n\r\n System.out.println(\"Total Number of Crime Instances: \" + crimeArticlesCount);\r\n\r\n //downsampling using ?? \r\n int otherArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < otherArticles[i].numInstances(); j++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, otherArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, otherArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n otherArticlesCount++;\r\n\r\n if (otherArticlesCount == 4872) {\r\n break;\r\n }\r\n }\r\n if (otherArticlesCount == 4872) {\r\n break;\r\n }\r\n }\r\n System.out.println(\"Total Number of Other Instances: \" + otherArticlesCount);\r\n System.out.println(\"Total num of instances= \" + trainingData.numInstances());\r\n\r\n // apply the StringToWordVector filter\r\n filter.setInputFormat(trainingData);\r\n Instances dataFiltered = Filter.useFilter(trainingData, filter);\r\n System.out.println(\"Number of Attributes after stop words removal- \" + dataFiltered.numAttributes());\r\n System.out.println(\"\\n\\nFiltered data:\\n\\n\" + dataFiltered);\r\n\r\n /**\r\n * Resamples a dataset by applying the Synthetic Minority Oversampling\r\n * TEchnique (SMOTE)\r\n * http://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node6.html\r\n * http://weka.sourceforge.net/doc.packages/SMOTE/weka/filters/supervised/instance/SMOTE.html \r\n *\r\n */\r\n SMOTE s = new SMOTE();\r\n s.setInputFormat(dataFiltered);\r\n // Specifies percentage of SMOTE instances to create.\r\n s.setPercentage(300.0);//464\r\n Instances dataBalanced = Filter.useFilter(dataFiltered, s);\r\n\r\n Random r = new Random();\r\n dataBalanced.randomize(r);\r\n\r\n ArffSaver saver = new ArffSaver();\r\n saver.setInstances(dataBalanced);\r\n saver.setFile(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataHybridRandom.arff\"));\r\n saver.writeBatch();\r\n }", "public ModelResponse execute() throws ModelException\n\t{\n\t\tassert myModel != null;\n\n\t\tif (! configured)\n\t\t{\n\t\t\tthrow new ModelException(\"Model request not configured\");\n\t\t}\n\n\t\tModel newModel = null;\n\n\t\ttry\n\t\t{\n\t\t\tnewModel = (Model) getService(Model.ROLE, myModel, getContext());\n\n\t\t\tCommand redirect = validate(newModel);\n\t\t\tModelResponse res = null;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (redirect == null)\n\t\t\t\t{\n\t\t\t\t\tres = newModel.execute(this);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tres = redirect.execute(this, createResponse());\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception ee)\n\t\t\t{\n\t\t\t\t/* Any error during the actual execute is stored */\n\t\t\t\tif (res == null)\n\t\t\t\t{\n\t\t\t\t\tres = createResponse();\n\t\t\t\t}\n\n\t\t\t\tres.addError(\"Exception during model execution\", ee);\n\t\t\t}\n\n\t\t\tif (res == null)\n\t\t\t{\n\t\t\t\tres = createResponse();\n\t\t\t}\n\n\t\t\treturn afterExecute(res, newModel.getConfiguration());\n\t\t}\n\t\tcatch (Exception ce)\n\t\t{\n\t\t\tthrow new ModelException(\"Could not run model '\" + myModel + \"' for role '\" + Model.ROLE + \"'\", ce);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tsvcDelegate.releaseServices();\n\t\t}\n\t}", "@Test\n public void testCreateNeededModelVersionsForManuallyDeployedApps() {\n List<Host> hosts = createHosts(7, \"7.0.0\");\n\n CountingModelFactory factory700 = createHostedModelFactory(Version.fromString(\"7.0.0\"), devZone);\n CountingModelFactory factory710 = createHostedModelFactory(Version.fromString(\"7.1.0\"), devZone);\n CountingModelFactory factory720 = createHostedModelFactory(Version.fromString(\"7.2.0\"), devZone);\n List<ModelFactory> modelFactories = List.of(factory700, factory710, factory720);\n\n DeployTester tester = createTester(hosts, modelFactories, devZone);\n // Deploy with version that does not exist on hosts, the model for this version should also be created\n tester.deployApp(\"src/test/apps/hosted/\", \"7.2.0\");\n assertEquals(7, tester.getAllocatedHostsOf(tester.applicationId()).getHosts().size());\n\n // Check >0 not ==0 as the session watcher thread is running and will redeploy models in the background\n // Nodes are on 7.0.0 (should be created), no nodes on 7.1.0 (should not be created), 7.2.0 should always be created\n assertTrue(factory700.creationCount() > 0);\n assertFalse(factory710.creationCount() > 0);\n assertTrue(\"Newest model for latest major version is always included\", factory720.creationCount() > 0);\n }", "public PredictorListener buildPredictor();", "public void applyModel(ScServletData data, Object model)\n {\n }" ]
[ "0.6016677", "0.5855812", "0.5716223", "0.5632831", "0.55548507", "0.54860926", "0.5459677", "0.54485756", "0.5395559", "0.53719664", "0.53703374", "0.53341115", "0.53341115", "0.53341115", "0.53341115", "0.53341115", "0.53341115", "0.53341115", "0.5316075", "0.5213517", "0.52106255", "0.5202578", "0.51822656", "0.5171567", "0.51650786", "0.5106111", "0.5081987", "0.5071596", "0.5059047", "0.5037211", "0.5036879", "0.5035233", "0.5035111", "0.5035092", "0.5031749", "0.5011813", "0.49957544", "0.49777436", "0.49646708", "0.48887694", "0.48791635", "0.4877697", "0.48775452", "0.48729387", "0.48572895", "0.4853586", "0.4849667", "0.48398998", "0.48279488", "0.48116758", "0.47769904", "0.47638035", "0.47590452", "0.47568953", "0.47530314", "0.4747982", "0.47425383", "0.47405815", "0.47380605", "0.47372928", "0.47293076", "0.47262216", "0.4721961", "0.47042274", "0.4700969", "0.46977323", "0.4695187", "0.4685726", "0.46752372", "0.4656988", "0.46544296", "0.4647246", "0.46470055", "0.46442443", "0.46347636", "0.4634523", "0.46304545", "0.46241713", "0.46210346", "0.46177962", "0.46163052", "0.46055523", "0.46005553", "0.45919085", "0.45898855", "0.4583755", "0.45816797", "0.45661", "0.45490614", "0.45463926", "0.4545795", "0.4527146", "0.45255205", "0.45242307", "0.4522046", "0.45172247", "0.4501802", "0.45008218", "0.44975087", "0.44965824" ]
0.49199575
39
Make a prediction using a model (asynchronously) Create anew model in the workspace identified in the workspaceId path paramter.
public okhttp3.Call predictAsync(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback<ModelApiResponse> _callback) throws ApiException { okhttp3.Call localVarCall = predictValidateBeforeCall(workspaceId, modelId, predictionRequest, _callback); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized void downloadModel(String modelName) {\n final FirebaseCustomRemoteModel remoteModel =\n new FirebaseCustomRemoteModel\n .Builder(modelName)\n .build();\n FirebaseModelDownloadConditions conditions =\n new FirebaseModelDownloadConditions.Builder()\n .requireWifi()\n .build();\n final FirebaseModelManager firebaseModelManager = FirebaseModelManager.getInstance();\n firebaseModelManager\n .download(remoteModel, conditions)\n .continueWithTask(task ->\n firebaseModelManager.getLatestModelFile(remoteModel)\n )\n .continueWith(executorService, (Continuation<File, Void>) task -> {\n // Initialize a text classifier instance with the model\n File modelFile = task.getResult();\n\n // TODO 6: Initialize a TextClassifier with the downloaded model\n textClassifier = NLClassifier.createFromFile(modelFile);\n\n // Enable predict button\n predictButton.setEnabled(true);\n return null;\n })\n .addOnFailureListener(e -> {\n Log.e(TAG, \"Failed to download and initialize the model. \", e);\n Toast.makeText(\n MainActivity.this,\n \"Model download failed, please check your connection.\",\n Toast.LENGTH_LONG)\n .show();\n predictButton.setEnabled(false);\n });\n }", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifierObject = ObjectClassifier.create(context.getAssets(), TYPE_MODEL, LABEL_TYPE, INPUT_SIZE_TYPE);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_FILE,\n LABEL_FILE,\n INPUT_SIZE,\n IMAGE_MEAN,\n IMAGE_STD,\n INPUT_NAME,\n OUTPUT_NAME);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "private void initTensorFlowAndLoadModel() {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n try {\n classifier = TensorFlowImageClassifier.create(\n getAssets(),\n MODEL_PATH,\n LABEL_PATH,\n INPUT_SIZE,\n QUANT);\n } catch (final Exception e) {\n throw new RuntimeException(\"Error initializing TensorFlow!\", e);\n }\n }\n });\n }", "public okhttp3.Call predictCall(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = predictionRequest;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models/{modelId}/predict\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()))\n .replaceAll(\"\\\\{\" + \"modelId\" + \"\\\\}\", localVarApiClient.escapeString(modelId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public okhttp3.Call createModelAsync(String workspaceId, Model model, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = createModelValidateBeforeCall(workspaceId, model, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "private Response performDT_training(String model_name, String data) {\n \tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MMM-yyyy_HmsS\");\n \tJSONObject summary = new JSONObject();\n \t\n \tif(model_name.trim().length()< 1) {\n \t\tmodel_name = \"DTree_Model_\" + sdf.format(Calendar.getInstance().getTime());\n \t}\n \t\n \t// check if the model name is already present\n \tif(utilObj.isModelNameUnique(model_name)) {\n \t\tsummary = new JSONObject();\n \t\tsummary.put(\"Error\", \"Duplicate model name : \" + model_name);\n \t\tlog.error(\"Duplicate model name\");\n \t\treturn Response.status(200).entity(summary.toString()).build();\n \t}\n \t\n \tlog.info(String.format(\"model_Name: %s\", model_name ));\n \tString modelFilePath = Util.CurrentDir+\"/models/\"+model_name;\n \t\n \ttry {\n\n \t\t// write the data to the disk\n \t\tfinal String inputFileName = \"TrainData_DT_\" + sdf.format(Calendar.getInstance().getTime()) + \".csv\";\n \t\tfinal String inputFilePath = Util.CurrentDir+\"/\"+Util.DataDir+\"/\"+inputFileName;\n \t\tFileWriter writer = new FileWriter(inputFilePath);\n \t\twriter.write(data);\n \t\twriter.flush();\n \t\twriter.close();\n \t\tlog.info(\"File created : \" + inputFilePath);\n \t\t\n \t\tString cmd = String.format(\"Rscript \"+Util.CurrentDir+\"/Rscripts/DTTraining.R %s %s \",inputFilePath, model_name);\n \t\tlog.info(cmd);\n\t \tProcess pr = Runtime.getRuntime().exec(cmd);\n\t\t\t\n\t\t\tBufferedReader results = new BufferedReader(new InputStreamReader(pr.getInputStream()));\n\t\t\tString line = null;\n\t\t\t\n\t\t\tStringBuilder buf = new StringBuilder();\n\t\t\twhile((line=results.readLine()) != null) {\n\t\t\t\tbuf.append(line);\n\t\t\t\tif(line.trim().isEmpty()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine().trim();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tsummary.put(\"summary\", line);\n\t\t\t\t} \n\t\t\t\telse if(line.trim().equalsIgnoreCase(\"Primary splits:\")) {\n\t\t\t\t\tline = results.readLine();\n\t\t\t\t\tbuf.append(line);\n\t\t\t\t\tJSONArray Psplits = new JSONArray();\t\t\t\t\t\n\t\t\t\t\twhile(!line.trim().equalsIgnoreCase(\"Surrogate splits:\")) {\n\t\t\t\t\t\tString s[] = line.split(\"\\t\");\n\t\t\t\t\t\tfor(String s1 : s) {\n\t\t\t\t\t\t\tSystem.out.println(s1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tJSONArray splitCols = new JSONArray(s);\n\t\t\t\t\t\tline = results.readLine();\n\t\t\t\t\t\tbuf.append(line);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\tsummary.put(\"model_name\", model_name + \".RData\");\n\t\t\t\tsummary.put(\"InputFile\", inputFileName);\n\t\t\t\tsummary.put(\"CommandName\", \"Rscripts/DTTraining.R\");\n\t\t\t}\n\t\t\tsummary.put(\"raw\", buf.toString());\n\t\t\t\n\t\t\t// format the summary json as params { [key : val] }\n\t\t\tJSONArray finalSummary = new JSONArray();\n\t\t\tIterator<String> keys = summary.keySet().iterator();\n\t\t\twhile(keys.hasNext()) {\n\t\t\t\tJSONObject row = new JSONObject();\n\t\t\t\trow.put(\"attribute\", keys.next());\n\t\t\t\trow.put(\"value\", summary.get(row.getString(\"attribute\")));\n\t\t\t\tfinalSummary.put(row);\n\t\t\t}\n\t\t\treturn Response.status(200).entity(new JSONObject().put(\"summary\", finalSummary).toString()).build();\n\t\t\t\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n\t\t\n \treturn Response.status(200).entity(summary.toString()).build();\n }", "public void runModel(){\n\t\tcurrentView.getDynamicModelView().getModel().setProgressMonitor(progressMonitor);\r\n\t\tnew Thread(currentView.getDynamicModelView().getModel()).start();\r\n\r\n\t\tsetStatusBarText(\"Ready\");\r\n\t}", "private void runOnlineModel() {\n myScenario.setProbe(myProbe);\n myScenario.setSynchronizationMode(mySrcSelector);\n try {\n myScenario.resync();\n myScenario.run();\n } catch (SynchronizationException e) {\n System.out.println(e);\n } catch (ModelException e) {\n System.out.println(e);\n }\n }", "public void saveModel(File model_file) throws Exception{\n\t\t// Write model to file\n\t\t//System.out.println(mClassifier.getClass());\n\t\tSystem.out.println(\"Saving Trained Model. Please wait.\");\n\t\tif(mClassifier instanceof DynamicLMClassifier){\n\t\t\tFileOutputStream fileOut = new FileOutputStream(model_file);\n\t ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n\t ((DynamicLMClassifier<NGramProcessLM>) mClassifier).compileTo(objOut);\n\t objOut.close();\n\t System.out.println(\"Saving Trained Model. Complete.\");\n\t\t}else{\n\t\t\tthrow new Exception(\"Cannot compile a non dynamic traning set\");\n\t\t}\n\t}", "void create(Model model) throws Exception;", "public WorkingMemory createInferredModel(IRI modelId) {\n\t\tSet<Statement> statements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(getModelAbox(modelId))).asJava();\n\t\tSet<Triple> triples = statements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet());\n\t\ttry {\n\t\t\t// Using model's ontology IRI so that a spurious different ontology declaration triple isn't added\n\t\t\tOWLOntology schemaOntology = OWLManager.createOWLOntologyManager().createOntology(getOntology().getRBoxAxioms(Imports.INCLUDED), modelId);\n\t\t\tSet<Statement> schemaStatements = JavaConverters.setAsJavaSetConverter(SesameJena.ontologyAsTriples(schemaOntology)).asJava();\n\t\t\ttriples.addAll(schemaStatements.stream().map(s -> Bridge.tripleFromJena(s.asTriple())).collect(Collectors.toSet()));\n\t\t} catch (OWLOntologyCreationException e) {\n\t\t\tLOG.error(\"Couldn't add rbox statements to data model.\", e);\n\t\t}\n\t\treturn getRuleEngine().processTriples(JavaConverters.asScalaSetConverter(triples).asScala());\n\t}", "public void loadModel(){\n remoteModel = new FirebaseCustomRemoteModel.Builder(dis).build();\n FirebaseModelManager.getInstance().getLatestModelFile(remoteModel)\n .addOnCompleteListener(new OnCompleteListener<File>() {\n @Override\n public void onComplete(@NonNull Task<File> task) {\n File modelFile = task.getResult();\n if (modelFile != null) {\n interpreter = new Interpreter(modelFile);\n // Toast.makeText(MainActivity2.this, \"Hosted Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n runningInterpreter();\n }\n else{\n try {\n InputStream inputStream = getAssets().open(dis+\".tflite\");\n byte[] model = new byte[inputStream.available()];\n inputStream.read(model);\n ByteBuffer buffer = ByteBuffer.allocateDirect(model.length)\n .order(ByteOrder.nativeOrder());\n buffer.put(model);\n //Toast.makeText(MainActivity2.this, dis+\"Bundled Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n interpreter = new Interpreter(buffer);\n runningInterpreter();\n } catch (IOException e) {\n // File not found?\n Toast.makeText(MainActivity2.this, \"No hosted or bundled model\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n });\n }", "public static void main(String[] args) throws Exception {\n Path modelPath = Paths.get(\"saved_graph_file\");\n byte[] graph = Files.readAllBytes(modelPath);\n\n // SavedModelBundle svd = SavedModelBundle.load(\"gin_rummy_nfsp4\", \"serve\");\n // System.out.println(svd.metaGraphDef());\n\n Graph g = new Graph();\n\n g.importGraphDef(graph);\n\n // Print for tags.\n Iterator<Operation> ops = g.operations();\n while (ops.hasNext()) {\n Operation op = ops.next();\n // Types are: Add, Const, Placeholder, Sigmoid, MatMul, Identity\n if (op.type().equals(\"Placeholder\")) {\n System.out.println(\"Type: \" + op.type() + \", Name: \" + op.name() + \", NumOutput: \" + op.numOutputs());\n System.out.println(\"OUTPUT: \" + op.output(0).shape());\n }\n }\n\n //open session using imported graph\n Session sess = new Session(g);\n float[][] inputData = {{4, 3, 2, 1}};\n\n // We have to create tensor to feed it to session,\n // unlike in Python where you just pass Numpy array\n Tensor inputTensor = Tensor.create(inputData, Float.class);\n float[][] output = predict(sess, inputTensor);\n for (int i = 0; i < output[0].length; i++) {\n System.out.println(output[0][i]);\n }\n }", "public static void createAllModels() throws IOException, InterruptedException {\n ConsoleLogger.printHeader(\"Creating models\");\n List<String> modelsToCreate = new ArrayList<>(FileHelper.loadAllFilesInPath(MODELS_PATH).values());\n final CountDownLatch createModelsLatch = new CountDownLatch(1);\n\n // Call API to create the models. For each async operation, once the operation is completed successfully, a latch is counted down.\n client.createModels(modelsToCreate)\n .doOnNext(listOfModelData -> listOfModelData.forEach(\n modelData -> ConsoleLogger.printSuccess(\"Created model: \" + modelData.getModelId())\n ))\n .doOnError(IGNORE_CONFLICT_ERROR)\n .doOnTerminate(createModelsLatch::countDown)\n .subscribe();\n\n // Wait until the latch count reaches zero, signifying that the async calls have completed successfully.\n createModelsLatch.await(MAX_WAIT_TIME_ASYNC_OPERATIONS_IN_SECONDS, TimeUnit.SECONDS);\n }", "@Override protected ClarifaiResponse<List<ClarifaiOutput<Concept>>> doInBackground(Void... params) {\n final ConceptModel generalModel = App.get().clarifaiClient().getDefaultModels().foodModel();\n\n // Use this model to predict, with the image that the user just selected as the input\n return generalModel.predict()\n .withInputs(ClarifaiInput.forImage(ClarifaiImage.of(imageBytes)))\n .executeSync();\n }", "public void train(){\n recoApp.training(idsToTest);\n }", "PredictionModelStatus getModelStatus(String resourceGroupName, String hubName, String predictionName);", "public void predict(final Bitmap bitmap) {\n new AsyncTask<Integer, Integer, Integer>() {\n\n @Override\n\n protected Integer doInBackground(Integer... params) {\n\n //Resize the image into 224 x 224\n Bitmap resized_image = ImageUtils.processBitmap(bitmap, 224);\n\n //Normalize the pixels\n floatValues = ImageUtils.normalizeBitmap(resized_image, 224, 127.5f, 1.0f);\n\n //Pass input into the tensorflow\n tf.feed(INPUT_NAME, floatValues, 1, 224, 224, 3);\n\n //compute predictions\n tf.run(new String[]{OUTPUT_NAME});\n\n //copy the output into the PREDICTIONS array\n tf.fetch(OUTPUT_NAME, PREDICTIONS);\n\n //Obtained highest prediction\n Object[] results = argmax(PREDICTIONS);\n\n\n int class_index = (Integer) results[0];\n float confidence = (Float) results[1];\n\n\n try {\n\n final String conf = String.valueOf(confidence * 100).substring(0, 5);\n\n //Convert predicted class index into actual label name\n final String label = ImageUtils.getLabel(getAssets().open(\"labels.json\"), class_index);\n\n\n //Display result on UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n progressBar.dismiss();\n resultView.setText(label + \" : \" + conf + \"%\");\n\n }\n });\n\n } catch (Exception e) {\n\n\n }\n\n\n return 0;\n }\n\n\n }.execute(0);\n\n }", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call predictValidateBeforeCall(String workspaceId, String modelId, PredictionRequest predictionRequest, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling predict(Async)\");\n }\n \n // verify the required parameter 'modelId' is set\n if (modelId == null) {\n throw new ApiException(\"Missing the required parameter 'modelId' when calling predict(Async)\");\n }\n \n // verify the required parameter 'predictionRequest' is set\n if (predictionRequest == null) {\n throw new ApiException(\"Missing the required parameter 'predictionRequest' when calling predict(Async)\");\n }\n \n\n okhttp3.Call localVarCall = predictCall(workspaceId, modelId, predictionRequest, _callback);\n return localVarCall;\n\n }", "public void modelNew(Model m)\n {\n\tmodelStop();\n\tmanim = new GenerationsAnimator(m.generations());\n\tmanim.scale(width,height);\n\tclearToBack();\n\tmodelStep();\n\t//modelStart();\n\tStatusBar.setStatus(\"Ready\");\n\n\tif (cListener != null)\n\t cListener.setButtonState(true);\n }", "private static native boolean train_0(long nativeObj, long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj);", "@Override\r\n\tpublic void saveUserPredictModel(UserPredictModel userPredictModel) {\n\t\tuserPredictRepo.save(userPredictModel);\r\n\t}", "public okhttp3.Call trainModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = trainModelValidateBeforeCall(workspaceId, modelId, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "private void createNewDynamicModel(){\n\t\tDynamicModel dModel = new DynamicModel(currentView.getViewModel().getName());\r\n\r\n\t\t// Add the new graph to the view\r\n\t\tint modelWidth = DynamicModelView.minimumWidth; \r\n\t\tint modelHeight = DynamicModelView.minimumHeight; \r\n\t\tint viewHeight = currentView.getHeight();\r\n\t\tint pad = 8;\r\n\t\tcurrentView.addModelView(new DynamicModelView(new EntityViewConfig(pad, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t viewHeight - (modelHeight + pad), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelWidth, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelHeight, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t EntityViewConfig.Type.DYNAMIC_MODEL), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdModel, this, currentView));\r\n\t\tcurrentView.repaint();\r\n\t}", "public Object run(ModelFactory factory);", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "public void updateDataModel() {\n //this.dataModel = new TelemetryChartDataModel();\n this.dataModel.\n setModel(getStartDate(), getEndDate(), selectedProjects, telemetryName, parameters);\n Thread thread = new Thread() {\n @Override\n public void run() {\n dataModel.loadData();\n }\n };\n thread.start();\n }", "@Override\n\n protected Integer doInBackground(Integer... params) {\n Bitmap resized_image = ImageUtils.processBitmap(bitmap, 224);\n\n //Normalize the pixels\n floatValues = ImageUtils.normalizeBitmap(resized_image, 224, 127.5f, 1.0f);\n\n //Pass input into the tensorflow\n tf.feed(INPUT_NAME, floatValues, 1, 224, 224, 3);\n\n //compute predictions\n tf.run(new String[]{OUTPUT_NAME});\n\n //copy the output into the PREDICTIONS array\n tf.fetch(OUTPUT_NAME, PREDICTIONS);\n\n //Obtained highest prediction\n Object[] results = argmax(PREDICTIONS);\n\n\n int class_index = (Integer) results[0];\n float confidence = (Float) results[1];\n\n\n try {\n\n final String conf = String.valueOf(confidence * 100).substring(0, 5);\n\n //Convert predicted class index into actual label name\n final String label = ImageUtils.getLabel(getAssets().open(\"labels.json\"), class_index);\n\n\n //Display result on UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n progressBar.dismiss();\n resultView.setText(label + \" : \" + conf + \"%\");\n\n }\n });\n\n } catch (Exception e) {\n\n\n }\n\n\n return 0;\n }", "public void model() \n\t{\n\t\t\n\t\ttry \n\t\t{\n\t\t GRBEnv env = new GRBEnv();\n\t\t GRBModel model = new GRBModel(env, \"resources/students.lp\");\n\n\t\t model.optimize();\n\n\t\t int optimstatus = model.get(GRB.IntAttr.Status);\n\n\t\t if (optimstatus == GRB.Status.INF_OR_UNBD) {\n\t\t model.getEnv().set(GRB.IntParam.Presolve, 0);\n\t\t model.optimize();\n\t\t optimstatus = model.get(GRB.IntAttr.Status);\n\t\t }\n\n\t\t if (optimstatus == GRB.Status.OPTIMAL) {\n\t\t double objval = model.get(GRB.DoubleAttr.ObjVal);\n\t\t System.out.println(\"Optimal objective: \" + objval);\n\t\t } else if (optimstatus == GRB.Status.INFEASIBLE) {\n\t\t System.out.println(\"Model is infeasible\");\n\n\t\t // Compute and write out IIS\n\t\t model.computeIIS();\n\t\t model.write(\"model.ilp\");\n\t\t } else if (optimstatus == GRB.Status.UNBOUNDED) {\n\t\t System.out.println(\"Model is unbounded\");\n\t\t } else {\n\t\t System.out.println(\"Optimization was stopped with status = \"\n\t\t + optimstatus);\n\t\t }\n\n\t\t // Dispose of model and environment\n\t\t model.write(\"resources/model.sol\");\n\t\t model.dispose();\n\t\t env.dispose();\n\n\t\t } catch (GRBException e) {\n\t\t System.out.println(\"Error code: \" + e.getErrorCode() + \". \" +\n\t\t e.getMessage());\n\t\t }\n\t\t\n\t}", "public void run() {\n\t // Create the ouput directories\n\t interfDir = new File(outDirName+\"/\"+modelName);\n\t interfDir.mkdirs();\n\t implDir = new File(outDirName+\"/\"+modelName);\n\t implDir.mkdirs();\n\t // Create the parseAll visitor interface\n\t createParseAllVisitorInterface(interfDir);\n\t // Create the parseAll visitor implementation\n\t createParseAllVisitorImplementation(implDir);\n\t // Create the evaluateAll visitor interface\n\t createEvaluateAllVisitorInterface(interfDir);\n\t // Create the evaluateAll visitor implementation\n\t createEvaluateAllVisitorImplementation(implDir);\n\t}", "public void saveModel(String filePath) {\n\n\t\tFile parentFile = new File(filePath).getParentFile();\n\t\tif (parentFile != null && !parentFile.exists()) {\n\t\t\tparentFile.mkdirs();\n\t\t}\n\n\t\ttry {\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(filePath));\n\t\t\toos.writeObject(new HMMModel(pi, A, B));\n\t\t\toos.close();\n\t\t\tSystem.out.println(\"Model saved.\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public ModelApiResponse predict(String workspaceId, String modelId, PredictionRequest predictionRequest) throws ApiException {\n ApiResponse<ModelApiResponse> localVarResp = predictWithHttpInfo(workspaceId, modelId, predictionRequest);\n return localVarResp.getData();\n }", "GameModel createGameModel(GameModel gameModel);", "void modelStatus(\n String resourceGroupName, String hubName, String predictionName, PredictionModelStatusInner parameters);", "private void setupModel() {\n\n //Chooses which model gets prepared\n switch (id) {\n case 2:\n singlePackage = new Node();\n activeNode = singlePackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_solo)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 3:\n multiPackage = new Node();\n activeNode = multiPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_multi_new)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 4:\n wagonPackage = new Node();\n activeNode = wagonPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_car_new)\n .build().thenAccept(a -> activeRenderable = a)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n default:\n mailbox = new Node();\n activeNode = mailbox;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.mailbox)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n }\n }", "public void openModel() {\r\n \t\tisReleased = true;\r\n \t\tif (checkForSave(\"<html>Save changes before opening a saved model?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\tJMODELModel tmpmodel = new JMODELModel();\r\n \t\tint state = modelLoader.loadModel(tmpmodel, mainWindow);\r\n \t\tif (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {\r\n \t\t\tresetMouseState();\r\n \t\t\t// Avoid checkForSave again...\r\n \t\t\tif (model != null) {\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t}\r\n \t\t\tnewModel();\r\n \t\t\t// At this point loading was successful, so substitutes old model\r\n \t\t\t// with loaded one\r\n \t\t\tmodel = tmpmodel;\r\n \t\t\tthis.populateGraph();\r\n \t\t\tsetSelect.setEnabled(true);\r\n \t\t\tcomponentBar.clickButton(setSelect);\r\n \t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t// Removes selection\r\n \t\t\tgraph.clearSelection();\r\n \t\t\t// If model contains results, enable Results Window\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\tif (model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\tthis.setResultsWindow(new PAResultsWindow(model.getParametricAnalysisModel(), (PAResultsModel) model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthis.setResultsWindow(new ResultsWindow(model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tmodel.resetSaveState();\r\n \t\t\tSystem.gc();\r\n \t\t} else if (state == ModelLoader.FAILURE) {\r\n \t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t}\r\n \t\t// Shows warnings if any\r\n \t\tif (state == ModelLoader.WARNING) {\r\n \t\t\tnew WarningWindow(modelLoader.getLastWarnings(), mainWindow, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show();\r\n \t\t}\r\n \r\n \t}", "protected void establishTransformationModel() {\r\n\t \r\n\t\tTransformationModel transformModel ;\r\n\t\tArrayList<TransformationStack> modelTransformStacks ;\r\n\t\t\r\n\t\t\r\n\t\t// the variables needed for the profile\r\n\t\t// targetStruc = getTargetVector();\r\n\t\tsomData = soappTransformer.getSomData() ; \r\n\t\t// soappTransformer.setSomData( somApplication.getSomData() );\r\n\t\tsomApplication.setSomData(somData) ;\r\n\t\t\r\n\t\tsomData.getVariablesLabels() ;\r\n\t\t \r\n\t\t\r\n\t\t// from here we transfer...\r\n\t\tmodelTransformStacks = soappTransformer.getTransformationModel().getVariableTransformations();\r\n\t\ttransformModel = soappTransformer.getTransformationModel() ;\r\n\t\t \r\n\t\t\r\n\t\ttransformationModelImported = true;\r\n\t}", "private static native boolean train_auto_0(long nativeObj, long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj, int k_fold, long Cgrid_nativeObj, long gammaGrid_nativeObj, long pGrid_nativeObj, long nuGrid_nativeObj, long coeffGrid_nativeObj, long degreeGrid_nativeObj, boolean balanced);", "public void launch(DataModel model) {\n //this template simple creates a UndirectedKNNAlgorithm and executes it,\n //replace as needed.\n// UndirectedKNNAlgorithm algorithm = new UndirectedKNNAlgorithm();\n// algorithm.execute();\n \n UndirectedKNNAlgorithm algorithm = new UndirectedKNNAlgorithm(model);\n algorithm.createGUIandRun(UndirectedKNNAlgorithm.ALGORITHM_NAME, \"\"); \n }", "public JSONObject create(final String model,\n final String datasetId, JSONObject args, Integer waitTime,\n Integer retries) {\n\n if (model == null || model.length() == 0 ||\n !(model.matches(MODEL_RE) || \n model.matches(ENSEMBLE_RE) || \n model.matches(LOGISTICREGRESSION_RE) || \n model.matches(LINEARREGRESSION_RE) || \n model.matches(DEEPNET_RE) ||\n model.matches(FUSION_RE))) {\n logger.info(\"Wrong model, ensemble, logisticregression, \"\n \t\t+ \"linearregression or deepnet or fusion id\");\n return null;\n }\n \n if (datasetId == null || datasetId.length() == 0\n || !datasetId.matches(DATASET_RE)) {\n logger.info(\"Wrong dataset id\");\n return null;\n }\n\n try {\n \t\tif (model.matches(MODEL_RE)) {\n \t\t\twaitForResource(model, \"modelIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(ENSEMBLE_RE)) {\n \t\t\twaitForResource(model, \"ensembleIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(LOGISTICREGRESSION_RE)) {\n \t\t\twaitForResource(model, \"logisticRegressionIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(LINEARREGRESSION_RE)) {\n \t\t\twaitForResource(model, \"linearRegressionIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(DEEPNET_RE)) {\n \t\t\twaitForResource(model, \"deepnetIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\tif (model.matches(FUSION_RE)) {\n \t\t\twaitForResource(model, \"fusionIsReady\", waitTime, retries);\n \t\t}\n \t\t\n \t\twaitForResource(datasetId, \"datasetIsReady\", waitTime, retries);\n \n\n JSONObject requestObject = new JSONObject();\n if (args != null) {\n requestObject = args;\n }\n\n if (model.matches(MODEL_RE)) {\n requestObject.put(\"model\", model);\n }\n if (model.matches(ENSEMBLE_RE)) {\n requestObject.put(\"ensemble\", model);\n }\n if (model.matches(LOGISTICREGRESSION_RE)) {\n requestObject.put(\"logisticregression\", model);\n }\n if (model.matches(LINEARREGRESSION_RE)) {\n requestObject.put(\"linearregression\", model);\n }\n if (model.matches(DEEPNET_RE)) {\n requestObject.put(\"deepnet\", model);\n }\n if (model.matches(FUSION_RE)) {\n requestObject.put(\"fusion\", model);\n }\n requestObject.put(\"dataset\", datasetId);\n\n return createResource(resourceUrl,\n \t\trequestObject.toJSONString());\n } catch (Throwable e) {\n logger.error(\"Error creating batch prediction\");\n return null;\n }\n }", "private static native void predict_all_0(long nativeObj, long samples_nativeObj, long results_nativeObj);", "void execute(PAModel cmodel) throws PAModelException;", "public void getPredictions() throws IOException, InterruptedException{\n //splitColsDataFiles();\n for(String learner:listLearners){\n File modelsFolder = new File(\"models/\"+learner);\n File[] IPFolders = modelsFolder.listFiles();\n for (File nodeFolder : IPFolders) {\n if (nodeFolder.isDirectory()) {\n File[] filesInFolder = nodeFolder.listFiles();\n ArrayList<String> filesINFolderAL = new ArrayList<String>();\n for(int i=0;i<filesInFolder.length;i++){\n filesINFolderAL.add(filesInFolder[i].getName());\n }\n if(filesINFolderAL.contains(model) && filesINFolderAL.contains(\"data.properties\")){\n System.out.println(\"Generating data for: \" + nodeFolder.getPath());\n // read properties file\n // get indices of variables\n // paste appropriate cols in models/temp\n // change commands below with appropriate data\n Properties dataProps = loadProps(nodeFolder.getPath()+\"/data.properties\");\n ArrayList<Integer> indices = new ArrayList<Integer>();\n String featuresS = dataProps.getProperty(\"sampled_variables\");\n if(featuresS!=null){\n String[] featuresArray = featuresS.split(\" \");\n for(int i=0;i<featuresArray.length;i++){\n indices.add(i, Integer.parseInt(featuresArray[i]));\n }\n // the order of indices is important\n Collections.sort(indices);\n\n String pasteTrainTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTrainTempCommand += \" models/temp/tr_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTrainTempCommand += \" models/temp/tr_targets.csv > models/temp/tr_temp.csv\";\n System.out.println(pasteTrainTempCommand);\n Process pasteTrainTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTrainTempCommand});\n pasteTrainTemp_process.waitFor();\n\n\n String pasteTestTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTestTempCommand += \" models/temp/te_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTestTempCommand += \" models/temp/te_targets.csv > models/temp/te_temp.csv\";\n System.out.println(pasteTestTempCommand);\n Process pasteTestTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTestTempCommand});\n pasteTestTemp_process.waitFor();\n \n // Add a new case when adding a new learner\n if(learner.equals(\"gpfunction\") || learner.equals(\"ruletree\") || learner.equals(\"rulelist\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }else if(learner.equals(\"mplcs\")){// C OR C++\n String predictTrain_command = \"learners/\" + learner + \" -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"learners/\" + learner + \" -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"lccb\")){ // Python\n String predictTrain_command = \"python learners/\" + learner + \".py -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"python learners/\" + learner + \".py -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n System.out.println(predictTest_command);\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"SBBJ\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }\n \n }\n }\n }\n }\n }\n }", "public ModelContainer importModel(String modelData) throws OWLOntologyCreationException {\n\t\t// load data from String\n\t\tfinal OWLOntologyManager manager = graph.getManager();\n\t\tfinal OWLOntologyDocumentSource documentSource = new StringDocumentSource(modelData);\n\t\tOWLOntology modelOntology;\n\t\tfinal Set<OWLParserFactory> originalFactories = removeOBOParserFactories(manager);\n\t\ttry {\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tcatch (OWLOntologyAlreadyExistsException e) {\n\t\t\t// exception is thrown if there is an ontology with the same ID already in memory \n\t\t\tOWLOntologyID id = e.getOntologyID();\n\t\t\tIRI existingModelId = id.getOntologyIRI().orNull();\n\n\t\t\t// remove the existing memory model\n\t\t\tunlinkModel(existingModelId);\n\n\t\t\t// try loading the import version (again)\n\t\t\tmodelOntology = manager.loadOntologyFromOntologyDocument(documentSource);\n\t\t}\n\t\tfinally {\n\t\t\tresetOBOParserFactories(manager, originalFactories);\n\t\t}\n\t\t\n\t\t// try to extract modelId\n\t\tIRI modelId = null;\n\t\tOptional<IRI> ontologyIRI = modelOntology.getOntologyID().getOntologyIRI();\n\t\tif (ontologyIRI.isPresent()) {\n\t\t\tmodelId = ontologyIRI.get();\n\t\t}\n\t\tif (modelId == null) {\n\t\t\tthrow new OWLOntologyCreationException(\"Could not extract the modelId from the given model\");\n\t\t}\n\t\t// paranoia check\n\t\tModelContainer existingModel = modelMap.get(modelId);\n\t\tif (existingModel != null) {\n\t\t\tunlinkModel(modelId);\n\t\t}\n\t\t\n\t\t// add to internal model\n\t\tModelContainer newModel = addModel(modelId, modelOntology);\n\t\t\n\t\t// update imports\n\t\tupdateImports(newModel);\n\t\t\n\t\treturn newModel;\n\t}", "public ModelResponse execute() throws ModelException\n\t{\n\t\tassert myModel != null;\n\n\t\tif (! configured)\n\t\t{\n\t\t\tthrow new ModelException(\"Model request not configured\");\n\t\t}\n\n\t\tModel newModel = null;\n\n\t\ttry\n\t\t{\n\t\t\tnewModel = (Model) getService(Model.ROLE, myModel, getContext());\n\n\t\t\tCommand redirect = validate(newModel);\n\t\t\tModelResponse res = null;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (redirect == null)\n\t\t\t\t{\n\t\t\t\t\tres = newModel.execute(this);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tres = redirect.execute(this, createResponse());\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception ee)\n\t\t\t{\n\t\t\t\t/* Any error during the actual execute is stored */\n\t\t\t\tif (res == null)\n\t\t\t\t{\n\t\t\t\t\tres = createResponse();\n\t\t\t\t}\n\n\t\t\t\tres.addError(\"Exception during model execution\", ee);\n\t\t\t}\n\n\t\t\tif (res == null)\n\t\t\t{\n\t\t\t\tres = createResponse();\n\t\t\t}\n\n\t\t\treturn afterExecute(res, newModel.getConfiguration());\n\t\t}\n\t\tcatch (Exception ce)\n\t\t{\n\t\t\tthrow new ModelException(\"Could not run model '\" + myModel + \"' for role '\" + Model.ROLE + \"'\", ce);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tsvcDelegate.releaseServices();\n\t\t}\n\t}", "@Override\r\n \tpublic boolean performFinish() {\r\n \t\ttry {\r\n \t\t\t// Remember the file.\r\n \t\t\t//\r\n \t\t\tfinal IFile modelFile = getModelFile();\r\n \r\n \t\t\t// Do the work within an operation.\r\n \t\t\t//\r\n \t\t\tWorkspaceModifyOperation operation =\r\n \t\t\t\tnew WorkspaceModifyOperation() {\r\n \t\t\t\t\t@Override\r\n \t\t\t\t\tprotected void execute(IProgressMonitor progressMonitor) {\r\n \t\t\t\t\t\ttry {\r\n \t\t\t\t\t\t\t// Create a resource set\r\n \t\t\t\t\t\t\t//\r\n\t\t\t\t\t\t\tReqIFResourceSetImpl resourceSet = new ReqIFResourceSetImpl();\r\n\r\n\t\t\t\t\t\t\t// (mj) Sollte nicht notwendig sein, übernommmen von Mark's Unit Test\r\n\t\t\t\t\t\t\tresourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(\"reqif\", new ReqIFResourceFactoryImpl());\r\n\t\t\t\t\t\t\tresourceSet.getPackageRegistry().put(ReqIF10Package.eNS_URI, ReqIF10Package.eINSTANCE);\r\n \r\n \t\t\t\t\t\t\t// Get the URI of the model file.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tURI fileURI = URI.createPlatformResourceURI(modelFile.getFullPath().toString(), true);\r\n \r\n \t\t\t\t\t\t\t// Create a resource for this file.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tResource resource = resourceSet.createResource(fileURI);\r\n \r\n \t\t\t\t\t\t\t// Add the initial model object to the contents.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tEObject rootObject = createInitialModel();\r\n \t\t\t\t\t\t\tif (rootObject != null) {\r\n \t\t\t\t\t\t\t\tresource.getContents().add(rootObject);\r\n \t\t\t\t\t\t\t}\r\n \r\n \t\t\t\t\t\t\t// Save the contents of the resource to the file system.\r\n \t\t\t\t\t\t\t//\r\n \t\t\t\t\t\t\tMap<Object, Object> options = new HashMap<Object, Object>();\r\n \t\t\t\t\t\t\t// Always use UTF-8 encoding\r\n \t\t\t\t\t\t\t// options.put(XMLResource.OPTION_ENCODING,\r\n \t\t\t\t\t\t\t// initialObjectCreationPage.getEncoding());\r\n \t\t\t\t\t\t\toptions.put(XMLResource.OPTION_ENCODING, \"UTF-8\");\r\n\t\t\t\t\t\t\tresource.save(null);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tcatch (Exception exception) {\r\n \t\t\t\t\t\t\tReqif10EditorPlugin.INSTANCE.log(exception);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tfinally {\r\n \t\t\t\t\t\t\tprogressMonitor.done();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t};\r\n \r\n \t\t\tgetContainer().run(false, false, operation);\r\n \r\n \t\t\t// Select the new file resource in the current view.\r\n \t\t\t//\r\n \t\t\tIWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow();\r\n \t\t\tIWorkbenchPage page = workbenchWindow.getActivePage();\r\n \t\t\tfinal IWorkbenchPart activePart = page.getActivePart();\r\n \t\t\tif (activePart instanceof ISetSelectionTarget) {\r\n \t\t\t\tfinal ISelection targetSelection = new StructuredSelection(modelFile);\r\n \t\t\t\tgetShell().getDisplay().asyncExec\r\n \t\t\t\t\t(new Runnable() {\r\n \t\t\t\t\t\t public void run() {\r\n \t\t\t\t\t\t\t ((ISetSelectionTarget)activePart).selectReveal(targetSelection);\r\n \t\t\t\t\t\t }\r\n \t\t\t\t\t });\r\n \t\t\t}\r\n \r\n \t\t\t// Open an editor on the new file.\r\n \t\t\t//\r\n \t\t\ttry {\r\n \t\t\t\tpage.openEditor\r\n \t\t\t\t\t(new FileEditorInput(modelFile),\r\n \t\t\t\t\t workbench.getEditorRegistry().getDefaultEditor(modelFile.getFullPath().toString()).getId());\t\t\t\t\t \t \r\n \t\t\t}\r\n \t\t\tcatch (PartInitException exception) {\r\n \t\t\t\tMessageDialog.openError(workbenchWindow.getShell(), Reqif10EditorPlugin.INSTANCE.getString(\"_UI_OpenEditorError_label\"), exception.getMessage());\r\n \t\t\t\treturn false;\r\n \t\t\t}\r\n \r\n \t\t\treturn true;\r\n \t\t}\r\n \t\tcatch (Exception exception) {\r\n \t\t\tReqif10EditorPlugin.INSTANCE.log(exception);\r\n \t\t\treturn false;\r\n \t\t}\r\n \t}", "public okhttp3.Call addTrainingDataAsync(String workspaceId, String modelId, TrainingData trainingData, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = addTrainingDataValidateBeforeCall(workspaceId, modelId, trainingData, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "@Override\n public List<Prediction> predictWord(final String string) {\n Trace.beginSection(\"predictWord\");\n\n Trace.beginSection(\"preprocessText\");\n Log.e(TAG, \"inut_string: \" + string);\n //TODO\n\n String[] input_words = string.split(\" \");\n data_len[0] = input_words.length;\n Log.e(TAG, \"data_len: \" + data_len[0]);\n //intValues = new int[input_words.length];\n if (input_words.length < input_max_Size) {\n for (int i = 0; i < input_words.length; ++i) {\n Log.e(TAG, \"input_word: \" + input_words[i]);\n if (word_to_id.containsKey(input_words[i])) intValues[i] = word_to_id.get(input_words[i]);\n else intValues[i] = 6; //rare words, <unk> in the vocab\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n for (int i = input_words.length; i < input_max_Size; ++i) {\n intValues[i] = 0; //padding using <eos>\n Log.e(TAG, \"input_id: \" + intValues[i]);\n }\n }\n else {\n Log.e(TAG, \"input out of max Size allowed!\");\n return null;\n }\n Trace.endSection();\n // Copy the input data into TensorFlow.\n Trace.beginSection(\"fillNodeFloat\");\n // TODO\n inferenceInterface.fillNodeInt(inputName, new int[] {1, input_max_Size}, intValues);\n Log.e(TAG, \"fillNodeInt success!\");\n inferenceInterface.fillNodeInt(inputName2, new int[] {1}, data_len);\n Log.e(TAG, \"fillDATA_LEN success!\");\n Trace.endSection();\n\n // Run the inference call.\n Trace.beginSection(\"runInference\");\n inferenceInterface.runInference(outputNames);\n Log.e(TAG, \"runInference success!\");\n Trace.endSection();\n\n // Copy the output Tensor back into the output array.\n Trace.beginSection(\"readNodeFloat\");\n inferenceInterface.readNodeFloat(outputName, outputs);\n Log.e(TAG, \"readNodeFloat success!\");\n Trace.endSection();\n\n // Find the best predictions.\n PriorityQueue<Prediction> pq = new PriorityQueue<Prediction>(3,\n new Comparator<Prediction>() {\n @Override\n public int compare(Prediction lhs, Prediction rhs) {\n // Intentionally reversed to put high confidence at the head of the queue.\n return Float.compare(rhs.getConfidence(), lhs.getConfidence());\n }\n });\n for (int i = 0; i < outputs.length; ++i) { //don't show i = 0 <unk>; i = 1<eos>\n if (outputs[i] > THRESHOLD) {\n pq.add(new Prediction(\"\" + i, id_to_word.get(i), outputs[i]));\n }\n }\n final ArrayList<Prediction> predictions = new ArrayList<Prediction>();\n for (int i = 0; i < Math.min(pq.size(), MAX_RESULTS); ++i) {\n predictions.add(pq.poll());\n }\n for (int i = 0; i < predictions.size(); ++i) {\n Log.e(TAG, predictions.get(i).toString());\n }\n Trace.endSection(); // \"predict word\"\n return predictions;\n }", "TrainingTest createTrainingTest();", "public void run() {\n\t\t\t\t\t\tFile tempFile;\n\t\t\t\t\t\tif (tempFileStack.size() >= numberOfFiles)\n\t\t\t\t\t\t\ttempFile = (File) tempFileStack.remove(0); // pop\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\ttempFile = File.createTempFile(\n\t\t\t\t\t\t\t\t\t\t\"FM_\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ ((model.toString() == null) ? \"unnamed\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: model.toString()),\n\t\t\t\t\t\t\t\t\t\tfreemind.main.FreeMindCommon.FREEMIND_FILE_EXTENSION,\n\t\t\t\t\t\t\t\t\t\tpathToStore);\n\t\t\t\t\t\t\t\tif (filesShouldBeDeletedAfterShutdown)\n\t\t\t\t\t\t\t\t\ttempFile.deleteOnExit();\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tSystem.err\n\t\t\t\t\t\t\t\t\t\t.println(\"Error in automatic MindMapMapModel.save(): \"\n\t\t\t\t\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t\t\t\tfreemind.main.Resources.getInstance()\n\t\t\t\t\t\t\t\t\t\t.logException(e);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tmodel.saveInternal(tempFile, true /* =internal call */);\n\t\t\t\t\t\t\tmodel.getFrame()\n\t\t\t\t\t\t\t\t\t.out(Resources\n\t\t\t\t\t\t\t\t\t\t\t.getInstance()\n\t\t\t\t\t\t\t\t\t\t\t.format(\"automatically_save_message\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tnew Object[] { tempFile\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString() }));\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tSystem.err\n\t\t\t\t\t\t\t\t\t.println(\"Error in automatic MindMapMapModel.save(): \"\n\t\t\t\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t\t\tfreemind.main.Resources.getInstance().logException(\n\t\t\t\t\t\t\t\t\te);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttempFileStack.add(tempFile); // add at the back.\n\t\t\t\t\t}", "public void saveModel() {\n\t}", "@Override\n\tpublic void run() {\n\t\tfileName = \"out_\" + Program.getProgram().getFileName() + \"_\";\n\t\tint numAddStop = 0;\n\t\t//fileName = \"out_themida_\";\n\n\t\t//fileState.clearContentFile();\n\t\t//bkFile.clearContentFile();\n\t\toverallStartTime = System.currentTimeMillis();\n\t\tlong overallStartTemp = overallStartTime;\n\t\t// BE-PUM algorithm\n\t\tSystem.out.println(\"Starting On-the-fly Model Generation algorithm.\");\n\t\tprogram.getResultFileTemp().appendInLine('\\n' + program.getFileName() + '\\t');\n\t\t\n\t\t// Set up initial context\n\t\tX86TransitionRule rule = new X86TransitionRule();\n\t\tBPCFG cfg = Program.getProgram().getBPCFG();\n\t\tEnvironment env = new Environment();\n\t\t//env.getMemory().resetImportTable(program);\n\t\tAbsoluteAddress location = Program.getProgram().getEntryPoint();\n\t\tInstruction inst = Program.getProgram().getInstruction(location, env);\n\t\tList<BPPath> pathList = new ArrayList<BPPath>();\n\t\t\n\t\t// Insert start node\n\t\tBPVertex startNode = null;\n\t\tstartNode = new BPVertex(location, inst);\n\t\tstartNode.setType(0);\n\t\tcfg.insertVertex(startNode);\n\n\t\tBPState curState = null;\n\t\tBPPath path = null;\n\t\tcurState = new BPState(env, location, inst);\n\t\tpath = new BPPath(curState, new PathList(), new Formulas());\n\t\tpath.setCurrentState(curState);\n\t\tpathList.add(path);\n\n\t\t/*if (Program.getProgram().getFileName().equals(\"api_test_v2.3_lvl1.exe\") \n\t\t\t\t&& isRestored) {\n\t\t\tSystem.out.println(\"Restore State from File.\");\n\t\t\tFileProcess reFile = new FileProcess(\"data/data/restoreState.txt\");\n\t\t\tpathList = restoreState(reFile);\n\t\t\t// bkFile.clearContentFile();\n\t\t\tSystem.out.println(\"Finished restoring state!\");\n\t\t}*/\n\n\t\t// Update at first -----------------------------\n\t\tTIB.setBeUpdated(true);\n\t\tTIB.updateTIB(curState);\n\t\t// ---------------------------------------------\n\n\t\t// PHONG - 20150801 /////////////////////////////\n\t\t// Packer Detection via Header\n\t\tSystem.out.println(\"================PACKER DETECTION VIA HEADER ======================\");\n\t\tif (OTFModelGeneration.detectPacker)\n\t\t{\n\t\t\tprogram.getDetection().detectViaHeader(program);\n\t\t\tprogram.getDetection().setToLogFirst(program);\n\t\t}\n\t\tSystem.out.println(\"==================================================================\");\n\t\t/////////////////////////////////////////////////\n\t\t\n\t\tsynchronized (OTFThreadManager.getInstance()) {\n\t\t\ttry {\n\t\t\t\tOTFThreadManager.getInstance().check(this, pathList);\n\t\t\t\tOTFThreadManager.getInstance().wait();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// PHONG - 20150724\n\t\tSystem.out.println(\"================PACKER DETECTION VIA OTF======================\");\n\t\tprogram.getDetection().packedByTechniques();\n\t\tprogram.getDetection().packedByTechniquesFrequency();\n\t\tSystem.out.println(\"==============================================================\");\n\t}", "public static Classifier create(final AssetManager assetManager,\n final String modelFilename,\n final String labelFilename,\n final int inputSize,\n final boolean isQuantized) throws IOException {\n final TFLiteRecognitionAPIModel d = new TFLiteRecognitionAPIModel();\n\n d.labels = readLabelFile(assetManager, labelFilename);\n d.inputSize = inputSize;\n\n // NEW: Prepare GPU delegate.\n //GpuDelegate delegate = new org.tensorflow.lite.Delegate();\n //Interpreter.Options options = (new Interpreter.Options()).addDelegate(delegate);\n\n try {\n File file = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS), modelFilename);\n d.tfLite = new Interpreter(file);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n d.isModelQuantized = isQuantized;\n // Pre-allocate buffers.\n int numBytesPerChannel;\n if (d.isModelQuantized) {\n numBytesPerChannel = 1; // Quantized\n } else {\n numBytesPerChannel = 4; // Floating point\n }\n d.imgData = ByteBuffer.allocateDirect(1 * d.inputSize * d.inputSize * 3 * numBytesPerChannel); ////////////////////// 3 -> 2\n d.imgData.order(ByteOrder.nativeOrder());\n d.intValues = new int[d.inputSize * d.inputSize];\n\n d.tfLite.setNumThreads(NUM_THREADS);\n d.tfoutput_recognize = new float[1][NUM_CLASSES];\n /*d.outputLocations = new float[1][NUM_DETECTIONS][4];\n d.outputClasses = new float[1][NUM_DETECTIONS];\n d.outputScores = new float[1][NUM_DETECTIONS];\n d.numDetections = new float[1];*/\n return d;\n }", "@WorkerThread\n public abstract void saveToDb(NetworkModel fetchedModel);", "@Override\r\n\tpublic void updateUserPredictModel(UserPredictModel userPredictModel) {\n\t\tuserPredictRepo.save(userPredictModel);\r\n\t}", "public interface IPredictionService {\n\t\n\t\n\t/**\n\t * \n\t * Create an instance object of TestSet\n\t * \n\t * @param position\n\t * @return\n\t * @throws Exception\n\t */\n\tpublic Instances makeTestSet(String position) throws Exception;\n\t\n\t/**\n\t * Used a particular algorithm to train the Artificial Intelligence (AI)\n\t * @throws Exception\n\t */\n\tpublic void train() throws Exception;\n\t\n\t/**\n\t * Used to classify after train\n\t * @throws Exception\n\t */\n\tpublic void classify() throws Exception;\n\n}", "public void startTrainingMode() {\n\t\t\r\n\t}", "@Override\n public void processFinish(String result) {\n MyAsyncTask getGlobalModel = new MyAsyncTask(MainActivity.this, file, \"\",\"\",\"getModel\", new MyAsyncTask.AsyncResponse() {\n @Override\n public void processFinish(String result) {\n Log.i(\"Output: GetGlobalModel\", result);\n }\n });\n getGlobalModel.execute();\n Toast.makeText(MainActivity.this, \"Fetched Global Model Successfully\", Toast.LENGTH_SHORT).show();\n Log.i(\"Output: isModelUpdated\", \"Done\");\n\n }", "public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}", "public okhttp3.Call activateModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = activateModelValidateBeforeCall(workspaceId, modelId, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "public void saveModel() {\n\n }", "public void save() {\n\t\t// Register the XMI resource factory for the .xmi extension\n\t\tResource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;\n\t\tMap<String, Object> m = reg.getExtensionToFactoryMap();\n\t\tm.put(\"xmi\", new XMIResourceFactoryImpl());\n\n\t\t// Obtain a new resource set\n\t\tResourceSet resSet = new ResourceSetImpl();\n\n\t\t// Create a resource\n\t\tResource resource = resSet.createResource(this.targetURI);\n\n\t\t// Get the first model element and cast it to the right type\n\t\tresource.getContents().add(targetRootBlock);\n\n\t\t// Now save the content.\n\t\tMap<String, Object> options = new HashMap<String, Object>();\n\t\toptions.put(XMIResource.OPTION_ENCODING, \"UTF-8\");\n\t\ttry {\n\t\t\tresource.save(options);\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"IOException when trying to save to \" + this.targetURI);\n\t\t}\n\n\t\tif (LOGGER.isInfoEnabled()) {\n\t\t\tLOGGER.info(\"Saved Shapes model to \" + this.targetURI);\n\t\t}\n\t}", "public boolean train_auto(Mat trainData, Mat responses, Mat varIdx, Mat sampleIdx, CvSVMParams params)\r\n {\r\n\r\n boolean retVal = train_auto_1(nativeObj, trainData.nativeObj, responses.nativeObj, varIdx.nativeObj, sampleIdx.nativeObj, params.nativeObj);\r\n\r\n return retVal;\r\n }", "@Override\n protected String doInBackground(String... f_url) {\n Thread.currentThread().setName(\"DownloadModel\");\n File destinationZip,initialPath,decompressedPath;\n final String fileName;\n try {\n // Output stream\n initialPath = getDir(MODEL_PATH, MODE_PRIVATE);\n fileName = new File(f_url[0]).getName();\n destinationZip = new File(initialPath, new File(f_url[0]).getName());\n decompressedPath = new File(initialPath, modelName);\n\n // see if it can load the model\n runOnUiThread(() -> pDialog.setMessage(\"Loading \"+modelName));\n try {\n setStatus(ImageClassificationActivity.Status.LOADING);\n Log.i(TAG,\"before load model \"+decompressedPath.getPath());\n classifier.loadModel(decompressedPath);\n Log.d(TAG,\"loaded model \"+modelName);\n setStatus(ImageClassificationActivity.Status.IDLE);\n return null;\n } catch( IOException e ) {\n Log.w(TAG,\"Failed to load model on first attempt. Downloading\");\n Log.w(TAG,\" message = \"+e.getMessage());\n }\n\n // download the file\n downloadModelFile(destinationZip, decompressedPath, f_url[0]);\n\n } catch (IOException e) {\n Log.e(\"Error: \", e.getMessage());\n setStatus(ImageClassificationActivity.Status.ERROR);\n return null;\n }\n\n if( stopRequested ) {\n Log.i(TAG, \"Download stop requested. Cleaning up. \");\n if (destinationZip.exists() && !destinationZip.delete()) {\n Log.e(\"Error: \", \"Failed to delete \" + destinationZip.getName());\n }\n setStatus(ImageClassificationActivity.Status.WAITING);\n } else {\n // Try loading the model now that it's downloaded\n try {\n runOnUiThread(() -> pDialog.setMessage(\"Decompressing \" + fileName));\n\n Log.i(TAG, \"Decompressing \" + decompressedPath.getPath());\n setStatus(ImageClassificationActivity.Status.DECOMPRESSING);\n\n deleteModelData(false); // clean up first\n\n ZipFile zipFile = new ZipFile(destinationZip);\n zipFile.extractAll(initialPath.getAbsolutePath());\n if (!destinationZip.delete()) {\n Log.e(\"Error: \", \"Failed to delete \" + destinationZip.getName());\n }\n\n runOnUiThread(() -> pDialog.setMessage(\"Loading \" + modelName));\n setStatus(ImageClassificationActivity.Status.LOADING);\n classifier.loadModel(decompressedPath);\n setStatus(ImageClassificationActivity.Status.IDLE);\n } catch (IOException e) {\n Log.w(TAG, \"Failed to load model on second attempt.\");\n e.printStackTrace();\n setStatus(ImageClassificationActivity.Status.ERROR);\n }\n }\n\n return null;\n }", "public void train() throws Exception;", "@Override\n public JsonObject getPrediction(String modelName,String usecaseName) throws InsightsCustomException {\n JsonObject prediction = h2oApiCommunicator.predict(modelName, usecaseName+\"_part1.hex\");\n JsonArray data = h2oApiCommunicator.getDataFrame(usecaseName+\"_part1.hex\");\n JsonObject response = new JsonObject();\n JsonArray fields = new JsonArray();\n Set<Map.Entry<String, JsonElement>> es = data.get(0).getAsJsonObject().entrySet();\n for (Iterator<Map.Entry<String, JsonElement>> it = es.iterator(); it.hasNext(); ) {\n fields.add(it.next().getKey());\n }\n if (data.size() == prediction.getAsJsonArray(\"predict\").size()) {\n \n prepareData(prediction, data, fields);\t \n response.add(\"Fields\", fields);\t \n response.add(\"Data\", data);\n return response;\n } else {\n log.error(\"Mismatch in test data and prediction: \");\n throw new InsightsCustomException(\"Mismatch in test data and prediction: \");\n }\n }", "private void createDataModelFolders() {\n\n File dataFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_DATA\");\n File modelFolder = new File(Environment.getExternalStorageDirectory() + \"/AGH_IM_MODEL\");\n\n boolean dataSuccess = true;\n boolean modelSuccess = true;\n if (!dataFolder.exists()) {\n try {\n dataSuccess = dataFolder.mkdirs();\n } catch (SecurityException e) {\n dataSuccess = false;\n }\n }\n\n if (!modelFolder.exists()) {\n try {\n modelSuccess = modelFolder.mkdirs();\n } catch (SecurityException e) {\n modelSuccess = false;\n }\n }\n\n String TAG = \"MainScreen\";\n if (dataSuccess) Log.d(TAG, \"Created AGH_IM_DATA folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_DATA Folder\");\n if (modelSuccess) Log.d(TAG, \"Successfully created AGH_IM_MODEL folder\");\n else Log.d(TAG, \"Cannot create AGH_IM_MODEL Folder\");\n\n }", "public ModelResponse execute(ModelRequest req, ModelResponse res) throws ModelException;", "@Override\r\n\tpublic void deleteUserPredictModel(Long userPredictModelId) {\n\t\t\r\n\t}", "public void doExecute() {\n\t\tparent.requestChange(new ModelChangeRequest(this.getClass(), parent,\n\t\t\t\t\"create\") {\n\t\t\t@Override\n\t\t\tprotected void _execute() throws Exception {\n\t\t\t\ttry {\n\t\t\t\t\tCompositeEntity parentModel = (CompositeEntity) parent;\n\t\t\t\t\tString componentName = null;\n\t\t\t\t\tif (model == null) {\n\t\t\t\t\t\tcomponentName = ModelUtils.findUniqueName(parentModel,\n\t\t\t\t\t\t\t\t\t\t clazz,\n\t\t\t\t\t\t\t\t\t\t name.equalsIgnoreCase(\"INPUT\") ? DEFAULT_INPUT_PORT : DEFAULT_OUTPUT_PORT,\n\t\t\t\t\t\t\t\t\t\t name);\n\t\t\t\t\t\tcomponentName = ModelUtils.getLegalName(componentName);\n\t\t\t\t\t\tClass constructorClazz = CompositeEntity.class;\n\t\t\t\t\t\tif (clazz.getSimpleName().equals(\"TypedIOPort\")) {\n\t\t\t\t\t\t\tconstructorClazz = ComponentEntity.class;\n\t\t\t\t\t\t} else if (clazz.getSimpleName().equals(\n\t\t\t\t\t\t\t\t\"TextAttribute\")) {\n\t\t\t\t\t\t\tconstructorClazz = NamedObj.class;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (clazz.getSimpleName().equals(\"Vertex\")) {\n\t\t\t\t\t\t\tTypedIORelation rel = new TypedIORelation(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tchild = new Vertex(rel, \"Vertex\");\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tConstructor constructor = clazz.getConstructor(\n\t\t\t\t\t\t\t\t\tconstructorClazz, String.class);\n\n\t\t\t\t\t\t\tchild = (NamedObj) constructor.newInstance(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tif (child instanceof TypedIOPort) {\n\t\t\t\t\t\t\t\tboolean isInput = name\n\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\"INPUT\");\n\t\t\t\t\t\t\t\t((TypedIOPort) child).setInput(isInput);\n\t\t\t\t\t\t\t\t((TypedIOPort) child).setOutput(!isInput);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (model instanceof TypedIOPort) {\n\t\t\t\t\t\t\tname = ((TypedIOPort) model).isInput() ? DEFAULT_INPUT_PORT\n\t\t\t\t\t\t\t\t\t: DEFAULT_OUTPUT_PORT;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcomponentName = ModelUtils.findUniqueName(parentModel, model.getClass(), name, name);\n\t\t\t\t\t\tcomponentName = ModelUtils.getLegalName(componentName);\n\t\t\t\t\t\tif (model instanceof Vertex) {\n\t\t\t\t\t\t\tTypedIORelation rel = new TypedIORelation(\n\t\t\t\t\t\t\t\t\tparentModel, componentName);\n\t\t\t\t\t\t\tchild = new Vertex(rel, \"Vertex\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchild = (NamedObj) model\n\t\t\t\t\t\t\t\t\t.clone(((CompositeEntity) parentModel)\n\t\t\t\t\t\t\t\t\t\t\t.workspace());\n\t\t\t\t\t\t\tchild.setName(componentName);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tComponentUtility.setContainer(child, parentModel);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcreateDefaultValues(child);\n\t\t\t\t\t\n\t\t\t\t\tif (location != null) {\n\t\t\t\t\t\tModelUtils.setLocation(child, location);\n\t\t\t\t\t}\n\t\t\t\t\tsetChild(child);\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tgetLogger().error(\"Unable to create component\", e);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\t}", "public <T> T createModel(T referenceModel) throws CreateModelException {\n return createModel(referenceModel, true);\n }", "RealizationModelLocation createRealizationModelLocation();", "void deployRobot(){\n\n //Robot going down\n //Can be omitted if for test purposes\n if(!autonomonTesting) {\n while (robot.mechLiftLeft.getCurrentPosition() < robot.MAX_LIFT_POSITION &&\n robot.mechLiftRight.getCurrentPosition() < robot.MAX_LIFT_POSITION && !isStopRequested()) {\n robot.liftMovement(robot.LIFT_SPEED, false);\n }\n telemetry.addData(\"Lift Position\", robot.mechLiftLeft.getCurrentPosition());\n }\n else{\n telemetry.addLine(\"Tesint mode, without lift\");\n }\n robot.liftMovement(0, false);\n telemetry.update();\n\n\n //tensor activation\n if (tfod != null) {\n tfod.activate();\n }\n\n //moving to get in position for TensorFlow scan\n\n //out of the hook\n robot.setDrivetrainPosition(-300, \"translation\", .6);\n\n //away from the lander\n robot.setDrivetrainPosition(800, \"strafing\", .3);\n\n //back to initial\n robot.setDrivetrainPosition(300, \"translation\", .6);\n\n }", "public okhttp3.Call createModelCall(String workspaceId, Model model, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = model;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public void saveToFile(File file, Model model) throws IOException;", "private void readModelAndTrain(boolean readExistingModel,\n\t\t\tbyte[] trainingDataFile) {\n\t\tInputStream dataIn = null;\n\t\ttry {\n\t\t\tObjectStream<DocumentSample> sampleStream = new DocumentSampleStream(\n\t\t\t\t\tnew PlainTextByLineStream(new FileInputStream(\n\t\t\t\t\t\t\tcreateModelInput(INPUT_TWEETS_ORIG_TXT)), \"UTF-8\"));\n\t\t\tsetModel(DocumentCategorizerME.train(\"en\", sampleStream,\n\t\t\t\t\tCUTOFF_FREQ, TRAINING_ITERATIONS));\n\t\t\tserialize(model);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (dataIn != null) {\n\t\t\t\ttry {\n\t\t\t\t\tdataIn.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "private void initializeGameModel() {\n mGameModel = new GameModel();\n mGameModel.setId(mGameWaitModel.getId());\n mGameModel.setGameMaster(getPlayerModel(true));\n mGameModel.setGameSlave(getPlayerModel(false));\n mGameModel.setGenerateNewQuestion(true);\n mGameModel.setDidGameEnd(false);\n LOGD(TAG, \"Game Model initialized\");\n }", "public SModel createBlankCheckpointModel(SModelReference originalModel, @Nullable CheckpointIdentity previousCheckpoint, CheckpointIdentity step) {\n final SModelName transientModelName = createCheckpointModelName(originalModel, step);\n // I'd like to have stable model id to minimize number of changes in CP models\n int mid = originalModel.getModelId().hashCode() ^ step.getName().hashCode();\n // make sure value fits into MPS reserved range, see IntegerSModelId doc.\n mid &= 0x0FFFFFFF;\n mid |= 0x0F000000;\n final SModelReference mr = PersistenceFacade.getInstance()\n .createModelReference(myModule.getModuleReference(), new IntegerSModelId(mid),\n transientModelName.getValue());\n SModel existing = myModule.getModel(mr.getModelId());\n if (existing != null) {\n // Why it's important to forget existing model? E.g. if a model being generated has been already generated and exposed as checkpoint, and\n // was renamed since. Renamed here means change of model name, e.g. due to rename of a containing language module.\n // Besides, it doesn't hurt to drop old checkpoint in any case.\n // There were few possible ways to address MPS-26174 (rename of a module breaks x-model generation).\n // - listen to changes of original model/module and react (e.g. remove related CP models or clear all CPs altogether).\n // - drop all transients as part of rename module action (likely, most safe)\n // - respect model name when building module id value, above. Leaves duplicated, hard-to-distinguish models among checkpoints.\n // - detect there's already model with same id and forget it (least destructive, keeps other CP models in place).\n myModule.forgetModel(existing, true);\n }\n SModel checkpointModel = myModule.createTransientModel(mr);\n assert checkpointModel instanceof ModelWithAttributes;\n ((ModelWithAttributes) checkpointModel).setAttribute(GENERATION_PLAN, step.getPlan().getName());\n ((ModelWithAttributes) checkpointModel).setAttribute(CHECKPOINT, step.getName());\n if (previousCheckpoint != null) {\n ((ModelWithAttributes) checkpointModel).setAttribute(PREV_GENERATION_PLAN, previousCheckpoint.getPlan().getName());\n ((ModelWithAttributes) checkpointModel).setAttribute(PREV_CHECKPOINT, previousCheckpoint.getName());\n }\n return checkpointModel;\n }", "@Override\n\tpublic void trainLocal() throws Exception {\n\t\tdouble [][] input = parameters.getInput();\n\t\tdouble [][] result = ann.getResults(parameters);\n\t\tif (state == preTraining) {//in this case, it is running in the pre-training mode.\n\t\t\tinput = newInput;\n\t\t\tresult = newInput;\n\t\t}\n\t\terr = 0; \n\t\tfor (int i = 0; i < mb; i++) {\t\n\t\t\tif (pos > input.length - 1) {\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\terr = err + ann.runEpoch(input[pos], pos, result[pos], parameters);\n\t\t\tpos++;\n\t\t}\n\t}", "public void buildModel() {\n double loss_pre = Double.MAX_VALUE;\n for (int iter = 0; iter < maxIter; iter ++) {\n Long start = System.currentTimeMillis();\n if (showProgress)\n System.out.println(\"Iteration \"+(iter+1)+\" started\");\n // Update user latent vectors\n IntStream.range(0,userCount).parallel().peek(i->update_user(i)).forEach(j->{});\n /*\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n */\n if (showProgress) {\n System.out.println(\"Users updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n IntStream.range(0,itemCount).parallel().peek(i->update_item(i)).forEach(j->{});\n // Update item latent vectors\n /*\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n */\n if (showProgress) {\n System.out.println(\"Items updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n // Show loss\n if (showLoss)\n loss_pre = showLoss(iter, start, loss_pre);\n\n\n } // end for iter\n\n }", "public M create(P model);", "DataModel createDataModel();", "GoalModel createGoalModel();", "PredictionResourceFormat.DefinitionStages.Blank define(String name);", "@Override\n public void execute() {\n\n\n /* container.swerveControllerCommand =\n new SwerveControllerCommand(\n trajectory,\n drivetrain::getCurrentPose, \n DrivetrainConstants.DRIVE_KINEMATICS,\n\n // Position controllers\n new PIDController(DrivetrainConstants.P_X_Controller, 0, 0),\n new PIDController(DrivetrainConstants.P_Y_Controller, 0, 0),\n container.thetaController,\n drivetrain::setModuleStates, //Not sure about setModuleStates\n drivetrain);*/\n\n// Reset odometry to the starting pose of the trajectory.\ndrivetrain.resetOdometry(trajectory.getInitialPose());\n\n\n}", "public static void main(String[] args) throws Exception {\n final int numRows = 28;\n final int numColumns = 28;\n int outputNum = 10; // number of output classes\n int batchSize = 128; // batch size for each epoch\n int rngSeed = 123; // random number seed for reproducibility\n int numEpochs = 15; // number of epochs to perform\n String modelPath = \"モデルパスを入力\";\n\n //Get the DataSetIterators:\n DataSetIterator mnistTrain = new MnistDataSetIterator(batchSize, true, rngSeed);\n DataSetIterator mnistTest = new MnistDataSetIterator(batchSize, false, rngSeed);\n\n\n System.out.println(\"Build model....\");\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(rngSeed) //include a random seed for reproducibility\n // use stochastic gradient descent as an optimization algorithm\n .updater(new Nesterovs(0.006, 0.9))\n .l2(1e-4)\n .list()\n .layer(new DenseLayer.Builder() //create the first, input layer with xavier initialization\n .nIn(numRows * numColumns)\n .nOut(1000)\n .activation(Activation.RELU)\n .weightInit(WeightInit.XAVIER)\n .build())\n .layer(new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD) //create hidden layer\n .nIn(1000)\n .nOut(outputNum)\n .activation(Activation.SOFTMAX)\n .weightInit(WeightInit.XAVIER)\n .build())\n .build();\n\n\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\n model.init();\n //print the score with every 1 iteration\n UIServer uiServer = UIServer.getInstance();\n InMemoryStatsStorage statsStorage = new InMemoryStatsStorage();\n uiServer.attach(statsStorage);\n model.setListeners(new StatsListener(statsStorage),new ScoreIterationListener(1));\n\n System.out.println(\"Train model....\");\n model.fit(mnistTrain, numEpochs);\n\n\n\n\n System.out.println(\"Evaluate model....\");\n Evaluation eval = model.evaluate(mnistTest);\n System.out.println(eval.stats());\n ModelSerializer.writeModel(model, new File(modelPath), false);\n System.out.println(\"****************Example finished********************\");\n\n }", "private static void generate(int models) {\n\t\tIntStream.range(0, models).forEach(i -> {\n\t\t\tNetworkGenerator networkGenerator = new NetworkGenerator(capacity, dimensions, inputShape, outputShape);\n\t\t\tString code = networkGenerator.build();\n\t\t\tFileGenerator fileGenerator = new FileGenerator(String.format(\"python_model_%d.py\", i), code);\n\t\t\ttry {\n\t\t\t\tfileGenerator.generateFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"file generator failed\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t});\n\t}", "public ApiResponse<ModelApiResponse> predictWithHttpInfo(String workspaceId, String modelId, PredictionRequest predictionRequest) throws ApiException {\n okhttp3.Call localVarCall = predictValidateBeforeCall(workspaceId, modelId, predictionRequest, null);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n return localVarApiClient.execute(localVarCall, localVarReturnType);\n }", "@RequestMapping(method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\t@Transactional\r\n\tpublic Object create(@RequestBody Model model) {\r\n\t\ttry {\r\n\t\t\tgetService().create(model);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Create exception for \" + model, e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public okhttp3.Call trainModelCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/workspaces/{workspaceId}/models/{modelId}/train\"\n .replaceAll(\"\\\\{\" + \"workspaceId\" + \"\\\\}\", localVarApiClient.escapeString(workspaceId.toString()))\n .replaceAll(\"\\\\{\" + \"modelId\" + \"\\\\}\", localVarApiClient.escapeString(modelId.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, String> localVarCookieParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) {\n localVarHeaderParams.put(\"Accept\", localVarAccept);\n }\n\n final String[] localVarContentTypes = {\n \n };\n final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n String[] localVarAuthNames = new String[] { \"apiAuth\" };\n return localVarApiClient.buildCall(localVarPath, \"POST\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);\n }", "public Base save(Base model) throws IOException {\n\t\tif (model.getID().equals(\"\")) {\n\t\t\treturn Core.create(model, getHttpMethodExecutor());\n\t\t} else {\n\t\t\treturn Core.update(model, getHttpMethodExecutor());\n\t\t}\n\n\t}", "public IObserver train(IContext context) throws ThinklabException;", "public static void main(String[] args) throws Exception {\n InputStream clientCert = new FileInputStream(System.getenv(\"TEMPORAL_CLIENT_CERT\"));\n // PKCS8 client key, which should look like:\n // -----BEGIN PRIVATE KEY-----\n // ...\n // -----END PRIVATE KEY-----\n InputStream clientKey = new FileInputStream(System.getenv(\"TEMPORAL_CLIENT_KEY\"));\n // For temporal cloud this would likely be ${namespace}.tmprl.cloud:7233\n String targetEndpoint = System.getenv(\"TEMPORAL_ENDPOINT\");\n // Your registered namespace.\n String namespace = System.getenv(\"TEMPORAL_NAMESPACE\");\n // Create SSL enabled client by passing SslContext, created by SimpleSslContextBuilder.\n WorkflowServiceStubs service =\n WorkflowServiceStubs.newServiceStubs(\n WorkflowServiceStubsOptions.newBuilder()\n .setSslContext(SimpleSslContextBuilder.forPKCS8(clientCert, clientKey).build())\n .setTarget(targetEndpoint)\n .build());\n\n // Now setup and start workflow worker, which uses SSL enabled gRPC service to communicate with\n // backend.\n // client that can be used to start and signal workflows.\n WorkflowClient client =\n WorkflowClient.newInstance(\n service, WorkflowClientOptions.newBuilder().setNamespace(namespace).build());\n // worker factory that can be used to create workers for specific task queues\n WorkerFactory factory = WorkerFactory.newInstance(client);\n // Worker that listens on a task queue and hosts both workflow and activity implementations.\n factory.newWorker(TASK_QUEUE);\n // TODO now register your workflow types and activity implementations.\n // worker.registerWorkflowImplementationTypes(...);\n // worker.registerActivitiesImplementations(...);\n factory.start();\n }" ]
[ "0.6092642", "0.58520305", "0.58091486", "0.56970173", "0.56578976", "0.5565544", "0.5531188", "0.5526286", "0.53522944", "0.5319854", "0.5318981", "0.5295158", "0.5211398", "0.51754874", "0.5163502", "0.51384854", "0.5116843", "0.5114281", "0.50714236", "0.5018425", "0.49301344", "0.49247298", "0.49143738", "0.49049842", "0.48971933", "0.48693347", "0.4850733", "0.4850733", "0.4850733", "0.4850733", "0.4850733", "0.4850733", "0.4850733", "0.48484677", "0.47873867", "0.47714484", "0.47596213", "0.4754438", "0.47513455", "0.47488865", "0.47436756", "0.47361022", "0.47328082", "0.47231323", "0.47188574", "0.47178465", "0.46947178", "0.46918312", "0.4685654", "0.46767214", "0.46569493", "0.4651023", "0.46496478", "0.46348047", "0.46234357", "0.4612095", "0.46074757", "0.4584915", "0.4567175", "0.45614436", "0.45575595", "0.45488098", "0.45447445", "0.45393246", "0.4535042", "0.4530394", "0.45285043", "0.4528078", "0.45197323", "0.45133108", "0.45124012", "0.45112076", "0.45068398", "0.45015275", "0.44945696", "0.44914156", "0.4484452", "0.4482709", "0.44766754", "0.44726986", "0.44583526", "0.44562522", "0.4449418", "0.44475245", "0.44451225", "0.4438139", "0.44368517", "0.44353446", "0.44307017", "0.44301292", "0.44162807", "0.44138747", "0.44069186", "0.43987498", "0.4394043", "0.439346", "0.43932727", "0.43787244", "0.4369498", "0.43672317" ]
0.63348794
0
Build call for showModelStats
public okhttp3.Call showModelStatsCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/workspaces/{workspaceId}/models/{modelId}/stats" .replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString())) .replaceAll("\\{" + "modelId" + "\\}", localVarApiClient.escapeString(modelId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "apiAuth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildModel() {\n }", "@Override\n public Object build() {\n StatsAggregationBuilder stats = AggregationBuilders.stats(this.getName());\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"field\":\n stats.field((String)param.getValue());\n }\n }\n\n return stats;\n }", "public void buildModel(){\r\n\t\t\r\n\t\tsuper.buildModel();\r\n\t\t\r\n\t}", "@Override\n public Object build() {\n TopHitsAggregationBuilder topHitsBuilder = AggregationBuilders.topHits(this.getName());\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"size\":\n topHitsBuilder.size((int)param.getValue());\n break;\n\n case \"fetch_source\":\n topHitsBuilder.fetchSource((boolean)param.getValue());\n break;\n }\n }\n\n return topHitsBuilder;\n }", "public static void outputStatistics(StatisticsResults results)\n\t{\n\t\tLogger logger = Log.getLogger();\n\t\t\n\t\tlogger.info(\"Size/number of statements of model: \" + results.getSize() + \"\\n\"\n\t\t\t\t\t+ \"Number of different resources: \" + results.getResources() + \"\\n\"\n\t\t\t\t\t+ \"Number of different subjects: \" + results.getSubjects() + \"\\n\"\n\t\t\t\t\t+ \"Number of different predicates: \" + results.getPredicates() + \"\\n\"\n\t\t\t\t\t+ \"Number of different objects: \" + results.getObjects() + \"\\n\"\n\t\t\t\t\t+ \"Number of different object resources: \" + results.getObjectResources() + \"\\n\"\n\t\t\t\t\t+ \"Number of different literals: \" + results.getLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Total number of object resources: \" + results.getTotalObjectResources() + \"\\n\"\n\t\t\t\t\t+ \"Total number of literals: \" + results.getTotalLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Average number of outgoing links per subject: \" + results.getAvgOutgoingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of outgoing links per subject: \" + results.getMinOutgoingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of outgoing links per subject: \" + results.getMaxOutgoingLinks() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of outgoing links per subject: \" + results.getOutgoingLinks25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of outgoing links per subject: \" + results.getOutgoingLinks50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of outgoing links per subject: \" + results.getOutgoingLinks75() + \"\\n\"\n\t\t\t\t\t+ \"Average number of incoming links per object resource: \" + results.getAvgIncomingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of incoming links per object resource: \" + results.getMinIncomingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of incoming links per object resource: \" + results.getMaxIncomingLinks() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of incoming links per object resrouce: \" + results.getIncomingLinks25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of incoming links per object resource: \" + results.getIncomingLinks50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of incoming links per object resource: \" + results.getIncomingLinks75() + \"\\n\"\n\t\t\t\t\t+ \"Average number of literals per subject: \" + results.getAvgLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of literals per subject: \" + results.getMinLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of literals per subject: \" + results.getMaxLiterals() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of literals per subject: \" + results.getLiterals25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of literals per subject: \" + results.getLiterals50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of literals per subject: \" + results.getLiterals75() + \"\\n\"\n\t\t\t\t\t+ \"Average number of object resources per subject: \" + results.getAvgObjectResources() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of object resources per subject: \" + results.getMinResObjects() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of object resources per subject: \" + results.getMaxResObjects() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of object resources per subject: \" + results.getResObjects25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of object resources per subject: \" + results.getResObjects50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of object resources per subject: \" + results.getResObjects75() + \"\\n\");\n\t}", "public static StatisticsResults statistics(Model model)\n\t{\n\t\tStatisticsResults results = new StatisticsResults();\n\t\t\n\t\t// Size of the model = Number of Statements contained in the model\n\t\tlong nrStatements = model.size();\n\t\tresults.setSize(nrStatements);\n\t\t\n\t\t// Number of Resources in model\n\t\tlong resources = findAllResources(model).size();\n\t\tresults.setResources(resources);\n\t\t\n\t\t// Number of different Resources that appear as Subject in the model\n\t\tlong nrSubjects = model.listSubjects().toList().size();\n\t\tresults.setSubjects(nrSubjects);\n\t\t\n\t\t// Number of different Objects (Resources and Literals)\n\t\tList<RDFNode> objects = model.listObjects().toList();\n\t\tresults.setObjects(objects.size());\n\n\t\t// The above number of Objects does not distinguish between Resources and Literals\n\t\t// Count these Resources and Literals individually\n\t\tint resourceCounter = 0;\t\t// Number of different Resources that appear as Objects\n\t\tint literalCounter = 0;\t\t\t// Number of different Literals that appear as Objects\n\t\tfor(RDFNode o : objects)\n\t\t{\n\t\t\tif(o.isResource())\n\t\t\t{\n\t\t\t\tresourceCounter++;\n\t\t\t}\n\t\t\telse if(o.isLiteral())\n\t\t\t{\n\t\t\t\tliteralCounter++;\n\t\t\t}\n\t\t}\n\t\tresults.setObjectResources(resourceCounter);\n\t\tresults.setLiterals(literalCounter);\n\t\t\n\t\t// Average number of outgoing Links\n\t\tresults.setAvgOutgoingLinks(((double) nrStatements)/nrSubjects);\n\t\t\n\t\t// Above looked at number of different Objects\n\t\t// Now count the total number of Resources as Objects\n\t\t// and total number of Literals as Objects\n\t\t// Count number of different predicates\n\t\tHashSet<Resource> predicates = new HashSet<Resource>();\n\t\tlong nrStatementsWithResourceObject = 0;\n\t\tlong nrStatementsWithLiteralObject = 0;\n//\t\tList<Statement> statements = model.listStatements().toList();\n//\t\tfor(Statement s : statements)\n\t\tStmtIterator statements = model.listStatements();\n\t\twhile(statements.hasNext())\n\t\t{\n\t\t\tStatement s = statements.nextStatement();\n\t\t\tif(s.getObject().isResource())\n\t\t\t{\n\t\t\t\tnrStatementsWithResourceObject++;\n\t\t\t}\n\t\t\telse if(s.getObject().isLiteral())\n\t\t\t{\n\t\t\t\tnrStatementsWithLiteralObject++;\n\t\t\t}\n\t\t\tif(!predicates.contains(s.getPredicate()))\n\t\t\t{\n\t\t\t\tpredicates.add(s.getPredicate());\n\t\t\t}\n\t\t}\n\t\tresults.setAvgIncomingLinks(((double) nrStatementsWithResourceObject)/resourceCounter);\n\t\tresults.setAvgLiterals(((double) nrStatementsWithLiteralObject)/nrSubjects);\n\t\tresults.setAvgObjectResources(((double) nrStatementsWithResourceObject)/nrSubjects);\n\t\tresults.setTotalObjectResources(nrStatementsWithResourceObject);\n\t\tresults.setTotalLiterals(nrStatementsWithLiteralObject);\n\t\tresults.setPredicates(predicates.size());\n\t\t\n\t\t\n\t\t// Calculate min, max, 25%, 50% and 75% quantile for averages\n\t\tLinkedList<Integer> subjectStatementCount = new LinkedList<Integer>();\n\t\tLinkedList<Integer> subjectResObjectCount = new LinkedList<Integer>();\n\t\tLinkedList<Integer> subjectLiteralCount = new LinkedList<Integer>();\n\t\tResIterator subjects = model.listSubjects();\n\t\twhile(subjects.hasNext())\n\t\t{\n\t\t\tResource subject = subjects.nextResource();\n\t\t\tStmtIterator statementsWithSubject = model.listStatements(subject, null, (RDFNode) null);\n\t\t\tint count = 0;\n\t\t\tint countObjectIsResource = 0;\n\t\t\tint countObjectIsLiteral = 0;\n\t\t\twhile(statementsWithSubject.hasNext())\n\t\t\t{\n\t\t\t\tStatement statement = statementsWithSubject.nextStatement();\n\t\t\t\tcount++;\n\t\t\t\tif(statement.getObject().isResource())\n\t\t\t\t{\n\t\t\t\t\tcountObjectIsResource++;\n\t\t\t\t}\n\t\t\t\tif(statement.getObject().isLiteral())\n\t\t\t\t{\n\t\t\t\t\tcountObjectIsLiteral++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsubjectStatementCount.add(count);\n\t\t\tsubjectResObjectCount.add(countObjectIsResource);\n\t\t\tsubjectLiteralCount.add(countObjectIsLiteral);\n\t\t}\n\t\t\n\t\tsubjectStatementCount = sortIntList(subjectStatementCount);\n\t\tsubjectResObjectCount = sortIntList(subjectResObjectCount);\n\t\tsubjectLiteralCount = sortIntList(subjectLiteralCount);\n\t\t\n\t\tresults.setMinOutgoingLinks(subjectStatementCount.getFirst());\n\t\tresults.setMaxOutgoingLinks(subjectStatementCount.getLast());\n\t\tDouble outLinks25Index = subjectStatementCount.size()*0.25;\n\t\tresults.setOutgoingLinks25(subjectStatementCount.get(outLinks25Index.intValue()));\n\t\tDouble outLinks50Index = subjectStatementCount.size()*0.5;\n\t\tresults.setOutgoingLinks50(subjectStatementCount.get(outLinks50Index.intValue()));\n\t\tDouble outLinks75Index = subjectStatementCount.size()*0.75;\n\t\tresults.setOutgoingLinks75(subjectStatementCount.get(outLinks75Index.intValue()));\n\t\t\n\t\tresults.setMinResObjects(subjectResObjectCount.getFirst());\n\t\tresults.setMaxResObjects(subjectResObjectCount.getLast());\n\t\tDouble resObject25Index = subjectResObjectCount.size()*0.25;\n\t\tresults.setResObjects25(subjectResObjectCount.get(resObject25Index.intValue()));\n\t\tDouble resObject50Index = subjectResObjectCount.size()*0.50;\n\t\tresults.setResObjects50(subjectResObjectCount.get(resObject50Index.intValue()));\n\t\tDouble resObject75Index = subjectResObjectCount.size()*0.75;\n\t\tresults.setResObjects75(subjectResObjectCount.get(resObject75Index.intValue()));\n\t\t\n\t\tresults.setMinLiterals(subjectLiteralCount.getFirst());\n\t\tresults.setMaxLiterals(subjectLiteralCount.getLast());\n\t\tDouble literal25Index = subjectLiteralCount.size()*0.25;\n\t\tresults.setLiterals25(subjectLiteralCount.get(literal25Index.intValue()));\n\t\tDouble literal50Index = subjectLiteralCount.size()*0.50;\n\t\tresults.setLiterals50(subjectLiteralCount.get(literal50Index.intValue()));\n\t\tDouble literal75Index = subjectLiteralCount.size()*0.75;\n\t\tresults.setLiterals75(subjectLiteralCount.get(literal75Index.intValue()));\n\t\t\n\t\tLinkedList<Integer> objectStatementCount = new LinkedList<Integer>();\n\t\tNodeIterator objectsIterator = model.listObjects();\n\t\twhile(objectsIterator.hasNext())\n\t\t{\n\t\t\tRDFNode object = objectsIterator.nextNode();\n\t\t\tif(object.isResource())\n\t\t\t{\n\t\t\t\tobjectStatementCount.add(model.listStatements(null, null, object).toList().size());\n\t\t\t}\n\t\t}\n\t\t\n\t\tobjectStatementCount = sortIntList(objectStatementCount);\n\t\t\n\t\tresults.setMinIncomingLinks(objectStatementCount.getFirst());\n\t\tresults.setMaxIncomingLinks(objectStatementCount.getLast());\n\t\tDouble inLinks25Index = objectStatementCount.size()*0.25;\n\t\tresults.setIncomingLinks25(objectStatementCount.get(inLinks25Index.intValue()));\n\t\tDouble inLinks50Index = objectStatementCount.size()*0.50;\n\t\tresults.setIncomingLinks50(objectStatementCount.get(inLinks50Index.intValue()));\n\t\tDouble inLinks75Index = objectStatementCount.size()*0.75;\n\t\tresults.setIncomingLinks75(objectStatementCount.get(inLinks75Index.intValue()));\n\t\t\n\t\treturn results;\n\t}", "public PlotViewStatsAndMaths() {\n \t}", "public void printModelInfo() {\n\t\tDebug.info(\"Jay3dModel\",\n\t\t\t\t\"Obj Name: \\t\\t\" + name + \"\\n\" +\n\t\t\t\t\"V Size: \\t\\t\" + modelVertices.size() + \"\\n\" +\n\t\t\t\t\"Vt Size: \\t\\t\" + textureVertices.size() + \"\\n\" +\n\t\t\t\t\"Vn Size: \\t\\t\" + normalVertices.size() + \"\\n\" +\n\t\t\t\t\"G Size: \\t\\t\" + groups.size() + \"\\n\" +\n\t\t\t\t\"S Size: \\t\\t\" + getSegmentCount() + \"\\n\" + \n\t\t\t\t\"F Size: \\t\\t\" + ((segments.size()>0)?segments.get(0).faces.size():0) + \"\\n\");\n\t}", "Build_Model() {\n\n }", "@Override\n public String toString() {\n if (tree != null) {\n\n String s = tree.render();\n\n s += \"\\n\\nNumber of positive rules: \"\n + getMeasure(\"measureNumPositiveRules\") + \"\\n\";\n s += \"Number of conditions in positive rules: \"\n + getMeasure(\"measureNumConditionsInPositiveRules\") + \"\\n\";\n\n return s;\n } else {\n return \"No model built yet!\";\n }\n }", "public interface StatisticsView {\n\n\t/**\n\t * @param column column\n\t * @return one variable stats. The list if empty, if there is not enough data.\n\t */\n\tList<StatisticGroup> getStatistics1Var(int column);\n\n\t/**\n\t * @param column column\n\t * @return two variable stats for first and given column. The list if empty, if there is not enough data.\n\t */\n\tList<StatisticGroup> getStatistics2Var(int column);\n\n\t/**\n\t * @param column column\n\t * @return list of regression specifications. The list if empty, if there is not enough data.\n\t */\n\tList<RegressionSpecification> getRegressionSpecifications(int column);\n\n\t/**\n\t * @param column column\n\t * @param regression regression type + degree\n\t * @return regression parameters for first and given column\n\t */\n\tList<StatisticGroup> getRegression(int column, RegressionSpecification regression);\n\n\t/**\n\t * @param column column\n\t * @param regression regression type + degree\n\t * @return plot element\n\t */\n\tGeoElement plotRegression(int column, RegressionSpecification regression);\n}", "public void buildModel() {\n double loss_pre = Double.MAX_VALUE;\n for (int iter = 0; iter < maxIter; iter ++) {\n Long start = System.currentTimeMillis();\n if (showProgress)\n System.out.println(\"Iteration \"+(iter+1)+\" started\");\n // Update user latent vectors\n IntStream.range(0,userCount).parallel().peek(i->update_user(i)).forEach(j->{});\n /*\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n */\n if (showProgress) {\n System.out.println(\"Users updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n IntStream.range(0,itemCount).parallel().peek(i->update_item(i)).forEach(j->{});\n // Update item latent vectors\n /*\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n */\n if (showProgress) {\n System.out.println(\"Items updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n // Show loss\n if (showLoss)\n loss_pre = showLoss(iter, start, loss_pre);\n\n\n } // end for iter\n\n }", "public static void showStatistics(){\n\n }", "@Override\n public Object build() {\n AvgAggregationBuilder avg = AggregationBuilders.avg(this.getName());\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"field\":\n avg.field((String)param.getValue());\n /*case \"script\":\n avg.script((String)param.getValue());*/\n }\n }\n\n return avg;\n }", "private void displayStats(CheckListView<String> checkview, TextArea stats) {\n\t\tStringBuilder start = new StringBuilder();\n\t\tfor(String critter_name:checkview.getCheckModel().getCheckedItems()){\n\t\t\ttry {\n\t\t\t\tClass classTemp = Class.forName(this.getClass().getPackage().getName() + \".\" + critter_name);\n\t\t\t\tMethod m = classTemp.getMethod(\"runStats\", List.class); //Get method\n\t\t\t\tList<Critter> instances = Critter.getInstances(critter_name);\n\t\t\t\tString output = (String)m.invoke(null, instances); //Invoke with instances\n\t\t\t\tstart.append(output).append(\"\\n\");\n\t\t\t} catch (Exception e) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tstats.clear();\n\t\tstats.appendText(start.toString());\n\t}", "public void displayModelDetails() {\n System.out.println(\"Name: \" + getFirstName() + \" \" + getLastName());\n System.out.println(\"Height: \" + getHeightInFeetAndInches());\n System.out.println(\"Weight: \" + getWeight() + \" pounds\");\n String travelMessage = canTravel ? \"yep\" : \"nope\";\n System.out.println(\"Travels: \" + travelMessage);\n String smokeMessage = smokes ? \"yep\" : \"nope\";\n System.out.println(\"Smokes\" + smokeMessage);\n System.out.println(\"Hourly rate: $\" + calculatePayDollarsPerHour());\n }", "public OFMeterStatsRequest buildMeterStatsRequest() {\n\t\t\treturn factory.buildMeterStatsRequest().setMeterId(OFMeterSerializerVer13.ALL_VAL).build();\n\t\t}", "@Override\n public void buildView(IModelForm modelForm) {\n FormSection inputSection = modelForm.addSection(\"Input\");\n inputSection.addEntityListField(_inputGrids, new Grid3dTimeDepthSpecification());\n inputSection.addEntityComboField(_velocityVolume, new VelocityVolumeSpecification());\n inputSection.addEntityComboField(_aoi, AreaOfInterest.class).showActiveFieldToggle(_aoiFlag);\n\n // Build the conversion section.\n FormSection parameterSection = modelForm.addSection(\"Conversion\");\n parameterSection.addRadioGroupField(_conversionMethod, Method.values());\n\n // Build the output section.\n FormSection outputSection = modelForm.addSection(\"Output\");\n outputSection.addTextField(_outputGridSuffix);\n }", "@RequestMapping(value = \"stats\", method = RequestMethod.GET)\n\tpublic String statsGet(HttpSession session, ModelMap model){\n\t\t//Checks if user is logged in\n\t\tif(session.getAttribute(\"username\") == null){\n\t\t\tVIEW_INDEX = \"index\";\n\t\t\treturn \"redirect:/\"+VIEW_INDEX;\n\t\t}\n\n\t\tString username = (String)session.getAttribute(\"username\");\n\t\tString date = (String)session.getAttribute(\"date\");\n\n\n\t\tArrayList user = userService.findUser(username);\n\t\tString goal = (String)user.get(1);\n\t\tint id = workoutService.getIdByDate(username, date);\n\t\tArrayList<Stats> stats = statsService.getAveragePerDay(username,id,goal);\n\t\t\n\t\tmodel.addAttribute(\"stats\",stats);\n\n\t\t//If there are no stats to look at then the user is encouraged to workout more\n\t\tif(stats == null){\n\t\t\tmodel.addAttribute(\"display\",\"none\");\n\t\t\tmodel.addAttribute(\"progressHeader\",\"You have to workout more to be able to see your progress\");\n\t\t}\n\t\t//Picture is shown that shows progress as well as average weight for each day\n\t\telse{\n\t\t\tLineChartService lcs = new LineChartService();\n\t\t\tlcs.getLineChart(username, id, goal);\n\t\t\tmodel.addAttribute(\"progressHeader\",\"Average weight per day\");\n\t\t\tmodel.addAttribute(\"username\", username);\n\t\t\tmodel.addAttribute(\"display\",\"inline\");\n\n\t\t}\n\t\tVIEW_INDEX = \"stats\";\t\t\n\t\treturn VIEW_INDEX;\n\t}", "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}", "@Override\n public Object build() {\n ScriptedMetricAggregationBuilder scriptedMetric = AggregationBuilders.scriptedMetric(this.getName());\n Map<String, Object> params = new HashMap<>();\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n /*case \"init_script\":\n scriptedMetric.initScript((String)param.getValue());\n break;\n\n case \"map_script\":\n scriptedMetric.mapScript((String)param.getValue());\n break;\n\n case \"combine_script\":\n scriptedMetric.combineScript((String)param.getValue());\n break;\n\n case \"reduce_script\":\n scriptedMetric.reduceScript((String)param.getValue());\n break;*/\n\n default:\n params.put(param.getName(), param.getValue());\n break;\n }\n }\n\n if (!params.isEmpty()) {\n scriptedMetric.params(params);\n }\n\n return scriptedMetric;\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn \"Statistical output: \"\n\t\t\t\t+\"replication size = \"+this.replicationSize+\"; \"\n\t\t\t\t+\"sample size = \"+this.sampleSize+\"; \"\n\t\t\t\t+\"mean = \"+this.mean+\"; \"\n\t\t\t\t+\"std. dev. = \"+this.stDev+\"; \"\n\t\t\t\t+\"CI width (alpha = \"+this.alpha+\"; \"+this.nameOfStatisticalTest+\" ) = \"+this.CIWidth+\".\";\n\t}", "private final void updateStatistics(){\r\n\t\tstatisticsText_.setLength(0); \t//reset\r\n\t\t\r\n\t\tRegion[][] regions = Map.getInstance().getRegions();\r\n\t\tVehicle[] vehicles;\r\n\t\tVehicle vehicle;\r\n\t\tint i, j, k;\r\n\t\tint activeVehicles = 0;\r\n\t\tint travelledVehicles = 0;\r\n\t\tint wifiVehicles = 0;\r\n\t\tlong messagesCreated = 0;\r\n\t\tlong IDsChanged = 0;\r\n\t\tdouble messageForwardFailed = 0;\r\n\t\tdouble travelDistance = 0;\r\n\t\tdouble travelTime = 0;\r\n\t\tdouble speed = 0;\r\n\t\tdouble knownVehicles = 0;\r\n\t\tfor(i = 0; i < regions.length; ++i){\r\n\t\t\tfor(j = 0; j < regions[i].length; ++j){\r\n\t\t\t\tvehicles = regions[i][j].getVehicleArray();\r\n\t\t\t\tfor(k = 0; k < vehicles.length; ++k){\r\n\t\t\t\t\tvehicle = vehicles[k];\r\n\t\t\t\t\tif(vehicle.getTotalTravelTime() > 0){\r\n\t\t\t\t\t\t++travelledVehicles;\r\n\t\t\t\t\t\ttravelDistance += vehicle.getTotalTravelDistance();\r\n\t\t\t\t\t\ttravelTime += vehicle.getTotalTravelTime();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(vehicle.isActive()){\r\n\t\t\t\t\t\t++activeVehicles;\r\n\t\t\t\t\t\tspeed += vehicle.getCurSpeed();\r\n\t\t\t\t\t\tif(vehicle.isWiFiEnabled()){\r\n\t\t\t\t\t\t\t++wifiVehicles;\r\n\t\t\t\t\t\t\tmessageForwardFailed += vehicle.getKnownMessages().getFailedForwardCount();\r\n\t\t\t\t\t\t\tknownVehicles += vehicle.getKnownVehiclesList().getSize();\r\n\t\t\t\t\t\t\tIDsChanged += vehicle.getIDsChanged();\r\n\t\t\t\t\t\t\tmessagesCreated += vehicle.getMessagesCreated();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.currentTime\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(Renderer.getInstance().getTimePassed()));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.activeVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(activeVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageSpeed\")); //$NON-NLS-1$\r\n\t\tif(activeVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(speed/activeVehicles/100000*3600));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" km/h\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelDistance\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelDistance/travelledVehicles/100));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" m\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelTime\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelTime/travelledVehicles/1000));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" s\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.wifiVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(wifiVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageKnownVehicles\")); //$NON-NLS-1$\r\n\t\tif(wifiVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(knownVehicles/wifiVehicles));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.uniqueMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messagesCreated));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.failedMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messageForwardFailed));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.totalIDchanges\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(IDsChanged));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\t\r\n\t\tstatisticsTextArea_.setText(statisticsText_.toString());\r\n\t}", "public OFMeterFeaturesStatsRequest buildMeterFeaturesStatsRequest() {\n\t\t\treturn factory.buildMeterFeaturesStatsRequest().build();\n\t\t}", "private void initSummary() {\n entry = databaseHandler.getExperimentInfo(experimentNumber);\n\n // set transmission settings summary\n TextView transmissionSettingsText = findViewById(R.id.transmission_settings);\n String transmissionSettingsOverview = \"Number of messages: \" + entry.get(DatabaseHandler.NUMBER_OF_MESSAGES) +\n \"\\nTime between messages: \" + entry.get(DatabaseHandler.TIME_BETWEEN_MSGS) +\n \"\\nMessage length: \" + entry.get(DatabaseHandler.MSG_LENGTH) +\n \"\\nAuto increment: \" + entry.get(DatabaseHandler.AUTO_INCREMENT);\n transmissionSettingsText.setText(transmissionSettingsOverview);\n\n multipliers[5] = Integer.parseInt(entry.get(DatabaseHandler.NUMBER_OF_MESSAGES));\n multipliers[6] = Integer.parseInt(entry.get(DatabaseHandler.TIME_BETWEEN_MSGS));\n\n // set environment settings summary\n TextView environmentSettingsText = findViewById(R.id.environment_settings);\n String environmentSettingsOverview = \"Description: \" + entry.get(DatabaseHandler.DESCRIPTION) +\n \"\\nTarget Distance: \" + entry.get(DatabaseHandler.TARGET_DISTANCE) + \" m\" +\n \"\\nHeight of Sender: \" + entry.get(DatabaseHandler.SENDER_HEIGHT) + \" m\" +\n \"\\nHeight of Receiver: \" + entry.get(DatabaseHandler.RECEIVER_HEIGHT) + \" m\" +\n \"\\nEnvironment: \" + entry.get(DatabaseHandler.ENVIRONMENT);\n environmentSettingsText.setText(environmentSettingsOverview);\n\n // set LoRa settings summary\n TextView loraSettingsText = findViewById(R.id.lora_settings);\n arrayResourceIds = new int[]{R.array.frequency_array, R.array.bandwidth_array, R.array.SF_array, R.array.CR_array, R.array.power_array};\n String loraSettingsOverview = \"Frequencies: \" + decodeConfigByte(0, Byte.parseByte(entry.get(DatabaseHandler.FREQUENCIES))) +\n \"\\nBandwidths: \" + decodeConfigByte(1, Byte.parseByte(entry.get(DatabaseHandler.BANDWIDTHS))) +\n \"\\nSpreading factors: \" + decodeConfigByte(2, Byte.parseByte(entry.get(DatabaseHandler.SPREADING_FACTORS))) +\n \"\\nCoding rates: \" + decodeConfigByte(3, Byte.parseByte(entry.get(DatabaseHandler.CODING_RATES))) +\n \"\\nPowers: \" + decodeConfigByte(4, Byte.parseByte(entry.get(DatabaseHandler.POWERS)));\n loraSettingsText.setText(loraSettingsOverview);\n\n // set experiment duration information\n TextView experimentText = findViewById(R.id.exp);\n int totalMsgs = 1;\n duration = 1;\n iterations = 1;\n\n for (int i = 0; i < multipliers.length; i++) {\n if (i == multipliers.length - 1) {\n duration = totalMsgs * multipliers[i];\n break;\n }\n if (i < 5)\n iterations *= multipliers[i];\n totalMsgs *= multipliers[i];\n }\n duration += 5 * iterations; // add the 8 seconds between experiment iterations (hardcoded on boards)\n databaseHandler.setValueInExpInfo(Integer.toString(iterations), \"number_of_iterations\", experimentNumber);\n databaseHandler.setValueInExpInfo(Integer.toString(duration), \"duration\", experimentNumber);\n\n String experiment = \"Total messages: \" + totalMsgs +\n \"\\nIterations: \" + iterations +\n \"\\nDuration: \" + duration + \" s\";\n experimentText.setText(experiment);\n\n // initialize other stuff\n hoursEdit = findViewById(R.id.hours_edit);\n minutesEdit = findViewById(R.id.minutes_edit);\n secondsEdit = findViewById(R.id.seconds_edit);\n }", "private void callForStats() throws SQLException, ClassNotFoundException{\n\t\tString[] stats;\n\t\toutputTA.setText(\"\");\n\t\tif(custTypeCB.getSelectedIndex() == Globals.SINGLE_CUST)\n\t\t\tstats = dBConnection.getStats(Integer.parseInt(custIdTF.getText()));\n\t\telse\n\t\t\tstats = dBConnection.getStats(custTypeCB.getSelectedIndex());\n\t\t\n\t\tfor(String str : stats){\n\t if(str == null)\n\t \tcontinue;\n\t outputTA.append(str+\"\\n\");\n\t\t}\n\t}", "private UIActionStats(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void extractBatchSetupInfo(ChartInfo oInfo) throws ModelException {\n super.extractBatchSetupInfo(oInfo);\n \n int iNumSizeClasses = 0;\n float fSizeClassSize = 0;\n try { \n JTextField jField = (JTextField)DataGrapher.findNamedComponent(\n oInfo.m_jExtraOptions, NUMBER_SIZE_CLASS_NAME);\n Integer oNumSizeClasses = Integer.valueOf(jField.getText());\n jField = (JTextField)DataGrapher.findNamedComponent(oInfo.m_jExtraOptions, \n SIZE_CLASS_SIZE_NAME);\n Float oSizeClassSize = Float.valueOf(jField.getText());\n iNumSizeClasses = oNumSizeClasses.intValue();\n fSizeClassSize = oSizeClassSize.floatValue();\n }\n catch (java.lang.NumberFormatException oErr) {\n throw (new ModelException(ErrorGUI.BAD_DATA, \"Stand Table Request\", \n \"The value for number \" +\n \"of size classes or size class size is not a recognized number.\")); \n }\n\n if (iNumSizeClasses <= 0 || fSizeClassSize <= 0) {\n throw (new ModelException(ErrorGUI.BAD_DATA, \"Stand Table Request\", \n \"The values for number\" +\n \" of size classes or size class size must be greater than zero.\")); \n }\n\n m_iNumSizeClasses = iNumSizeClasses;\n m_fSizeClassSize = fSizeClassSize;\n \n JCheckBox jCheckBox = (JCheckBox)DataGrapher.findNamedComponent(\n oInfo.m_jExtraOptions, INCLUDE_LIVE_NAME);\n m_bIncludeLive = jCheckBox.isSelected();\n jCheckBox = (JCheckBox)DataGrapher.findNamedComponent(\n oInfo.m_jExtraOptions, INCLUDE_SNAGS_NAME);\n m_bIncludeSnags = jCheckBox.isSelected();\n\n //Make the size classes array\n mp_fSizeClasses = null;\n mp_fSizeClasses = new double [m_iNumSizeClasses];\n for (int i = 0; i < m_iNumSizeClasses; i++) {\n mp_fSizeClasses[i] = m_fSizeClassSize * (i + 1);\n } \n \n declareArrays();\n }", "@SuppressWarnings(\"rawtypes\")\n private okhttp3.Call showModelStatsValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException {\n if (workspaceId == null) {\n throw new ApiException(\"Missing the required parameter 'workspaceId' when calling showModelStats(Async)\");\n }\n \n // verify the required parameter 'modelId' is set\n if (modelId == null) {\n throw new ApiException(\"Missing the required parameter 'modelId' when calling showModelStats(Async)\");\n }\n \n\n okhttp3.Call localVarCall = showModelStatsCall(workspaceId, modelId, _callback);\n return localVarCall;\n\n }", "@RequestMapping(value = {\"/statistics\"}, produces = \"application/json; charset=utf8\", method = {RequestMethod.GET})\n public String showAreaStatistics(Model model) {\n List<String> sessionLabelList = new ArrayList<>();\n List<Integer> sessionCountList = new ArrayList<>();\n try {\n statisticsService.getSessionCount(sessionLabelList, sessionCountList);\n } catch (Exception e) {\n log.error(e);\n }\n\n model.addAttribute(ModelField.STATISTICS_SESSION_COUNT_LABELS.label(), sessionLabelList);\n model.addAttribute(ModelField.STATISTICS_SESSION_COUNT_VALUES.label(), sessionCountList);\n\n return \"statistics-page\";\n }", "public void showStats() {\r\n List<String> list = new ArrayList();\r\n for (int i = 1; i < 31; i++) {\r\n switch (i) {\r\n case 4:\r\n list.add(name);\r\n break;\r\n case 6:\r\n list.add(String.valueOf(stats.get(\"name\")));\r\n break;\r\n case 7:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[0]));\r\n break;\r\n case 8:\r\n list.add(\"Score\");\r\n break;\r\n case 9:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[1]));\r\n break;\r\n case 10:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[0]));\r\n break;\r\n case 11:\r\n list.add(\"Max Break\");\r\n break;\r\n case 12:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[1]));\r\n break;\r\n case 13:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[0]));\r\n break;\r\n case 14:\r\n list.add(\"Fouls\");\r\n break;\r\n case 15:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[1]));\r\n break;\r\n case 16:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[0]));\r\n break;\r\n case 17:\r\n list.add(\"Misses\");\r\n break;\r\n case 18:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[1]));\r\n break;\r\n case 19:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[0]));\r\n break;\r\n case 20:\r\n list.add(\"Pots\");\r\n break;\r\n case 21:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[1]));\r\n break;\r\n case 22:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[0]));\r\n break;\r\n case 23:\r\n list.add(\"Shots\");\r\n break;\r\n case 24:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[1]));\r\n break;\r\n case 25:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 26:\r\n list.add(\"Pot Percentage\");\r\n break;\r\n case 27:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n case 28:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 29:\r\n list.add(\"Safety Percentage\");\r\n break;\r\n case 30:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n default:\r\n list.add(\"\");\r\n }\r\n }\r\n\r\n GridView grid = new GridView(context);\r\n grid.setAdapter(new ArrayAdapter(context, android.R.layout.simple_list_item_1, list));\r\n grid.setNumColumns(3);\r\n\r\n new AlertDialog.Builder(context)\r\n .setNegativeButton(\"Back\", null)\r\n .setTitle(\"Match Statistics\")\r\n .setView(grid)\r\n .show();\r\n }", "@Override\n public Object build() {\n String countFilterField = null;\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"field\":\n countFilterField = (String)param.getValue();\n break;\n case \"operator\":\n operator = (BiPredicate) param.getValue();\n break;\n case \"operands\":\n operands = (List<String>)param.getValue();\n break;\n\n }\n }\n\n if (countFilterField != null) {\n String fieldName = (this.getName()+ COUNT_FIELD).replace(\".\",\"_\");\n TermsAggregationBuilder aggregation = AggregationBuilders.terms(this.getName()).field(this.getName())\n .subAggregation(PipelineAggregatorBuilders.bucketSelector(countFilterField,\n Collections.singletonMap(fieldName,\"_count\"),\n BuildFilterScript.script(fieldName, operator,operands)));\n return aggregation;\n }\n\n return this;\n }", "public ModelStructure(){\n dcModelPurposeIndexMap = new HashMap<String,Integer>();\n dcModelIndexPurposeMap = new HashMap<Integer,String>();\n dcSoaUecIndexMap = new HashMap<String,Integer>();\n dcUecIndexMap = new HashMap<String,Integer>();\n tourModeChoiceUecIndexMap = new HashMap<String,Integer>();\n stopFreqUecIndexMap = new HashMap<String,Integer>();\n stopLocUecIndexMap = new HashMap<String,Integer>();\n tripModeChoiceUecIndexMap = new HashMap<String,Integer>();\n \n segmentedPurposeIndexMap = new HashMap<String,Integer>();\n segmentedIndexPurposeMap = new HashMap<Integer,String>();\n\n primaryPurposeIndexMap = new HashMap<String,Integer>();\n primaryIndexPurposeMap = new HashMap<Integer,String>();\n primaryPurposeIndexMap.put( \"Home\", -1 );\n primaryPurposeIndexMap.put( \"Work\", -2 );\n primaryPurposeIndexMap.put( WORK_PURPOSE_NAME, WORK_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( UNIVERSITY_PURPOSE_NAME, UNIVERSITY_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( SCHOOL_PURPOSE_NAME, SCHOOL_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( ESCORT_PURPOSE_NAME, ESCORT_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( SHOPPING_PURPOSE_NAME, SHOPPING_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( OTH_MAINT_PURPOSE_NAME, OTH_MAINT_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( EAT_OUT_PURPOSE_NAME, EAT_OUT_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( SOCIAL_PURPOSE_NAME, SOCIAL_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( OTH_DISCR_PURPOSE_NAME, OTH_DISCR_PURPOSE_INDEX );\n primaryPurposeIndexMap.put( AT_WORK_PURPOSE_NAME, AT_WORK_PURPOSE_INDEX );\n primaryIndexPurposeMap.put( -1, \"Home\" );\n primaryIndexPurposeMap.put( -2, \"Work\" );\n primaryIndexPurposeMap.put( WORK_PURPOSE_INDEX, WORK_PURPOSE_NAME );\n primaryIndexPurposeMap.put( UNIVERSITY_PURPOSE_INDEX, UNIVERSITY_PURPOSE_NAME );\n primaryIndexPurposeMap.put( SCHOOL_PURPOSE_INDEX, SCHOOL_PURPOSE_NAME );\n primaryIndexPurposeMap.put( ESCORT_PURPOSE_INDEX, ESCORT_PURPOSE_NAME );\n primaryIndexPurposeMap.put( SHOPPING_PURPOSE_INDEX, SHOPPING_PURPOSE_NAME );\n primaryIndexPurposeMap.put( OTH_MAINT_PURPOSE_INDEX, OTH_MAINT_PURPOSE_NAME );\n primaryIndexPurposeMap.put( EAT_OUT_PURPOSE_INDEX, EAT_OUT_PURPOSE_NAME );\n primaryIndexPurposeMap.put( SOCIAL_PURPOSE_INDEX, SOCIAL_PURPOSE_NAME );\n primaryIndexPurposeMap.put( OTH_DISCR_PURPOSE_INDEX, OTH_DISCR_PURPOSE_NAME );\n primaryIndexPurposeMap.put( AT_WORK_PURPOSE_INDEX, AT_WORK_PURPOSE_NAME );\n }", "private void statsOutput(long startTime, long endTime ,Stat stat, int taskSize, List<Stat> listStat) {\n\n System.out.println();\n System.out.println(\" !!! END OF REQUEST !!!\");\n System.out.println();\n System.out.println(\"----------------------------------\");\n System.out.println(\" STATISTICS\");\n System.out.println(\"----------------------------------\");\n System.out.println(\"1. Number of threads: \" + taskSize);\n System.out.println(\"2. Total run time: \" + (endTime - startTime));\n System.out.println(\"3. Total request sent: \" + stat.getSentRequestsNum());\n System.out.println(\"4. Total successful request: \" + stat.getSuccessRequestsNum());\n System.out.println(\"5. Mean latency: \" + stat.getMeanLatency());\n System.out.println(\"6. Median latency: \" + stat.getMedianLatency());\n System.out.println(\"7. 95th percentile latency: \" + stat.get95thLatency());\n System.out.println(\"8. 99th percentile latency: \" + stat.get99thLatency());\n\n if(listStat!=null){\n OutputChart outputChart = new OutputChart(listStat);\n outputChart.generateChart(\"Part 1\");\n }\n\n }", "public static void display() { System.err.println(\"Train parameters: smooth=\" + smoothing + \" PA=\" + PA + \" GPA=\" + gPA + \" selSplit=\" + selectiveSplit + \" (\" + selectiveSplitCutOff + (deleteSplitters != null ? \"; deleting \" + deleteSplitters : \"\") + \")\" + \" mUnary=\" + markUnary + \" mUnaryTags=\" + markUnaryTags + \" sPPT=\" + splitPrePreT + \" tagPA=\" + tagPA + \" tagSelSplit=\" + tagSelectiveSplit + \" (\" + tagSelectiveSplitCutOff + \")\" + \" rightRec=\" + rightRec + \" leftRec=\" + leftRec + \" xOverX=\" + xOverX + \" collinsPunc=\" + collinsPunc + \" markov=\" + markovFactor + \" mOrd=\" + markovOrder + \" hSelSplit=\" + hSelSplit + \" (\" + HSEL_CUT + \")\" + \" compactGrammar=\" + compactGrammar() + \" leaveItAll=\" + leaveItAll + \" postPA=\" + postPA + \" postGPA=\" + postGPA + \" selPSplit=\" + selectivePostSplit + \" (\" + selectivePostSplitCutOff + \")\" + \" tagSelPSplit=\" + tagSelectivePostSplit + \" (\" + tagSelectivePostSplitCutOff + \")\" + \" postSplitWithBase=\" + postSplitWithBaseCategory + \" fractionBeforeUnseenCounting=\" + fractionBeforeUnseenCounting + \" openClassTypesThreshold=\" + openClassTypesThreshold); }", "@Override\n\t//Start, end, headache count, average severity, duration\n\tpublic String buildReport() {\n\t\tsetHeadacheInfo(); \n\t\tStringBuilder hsReport = new StringBuilder(); \n\t\thsReport.append(\"\\nReport Start Date: \"); \n\t\thsReport.append(getStartDate().toString() + \"\\n\"); \n\t\thsReport.append(\"Report End Date: \"); \n\t\thsReport.append(getEndDate().toString() + \"\\n\"); \n\t\thsReport.append(\"Headache Count: \"); \n\t\thsReport.append(getHeadacheList().size() + \"\\n\"); \n\t\thsReport.append(\"Average Severty: \"); \n\t\thsReport.append(getAverageSeverity() + \"\\n\"); \n\t\thsReport.append(\"Average Duration (hours): \"); \n\t\thsReport.append(getAverageDuration() + \"\\n\"); \n\t\treturn hsReport.toString(); \n\t}", "private static String newModel() {\n\n End end = new End(0,0);\n Start start = new Start(0,0);\n End end1 = new End(0,0);\n Start start1 = new Start(0,0);\n End end2 = new End(0,0);\n Start start2 = new Start(0,0);\n Start start3 = new Start(0,0);\n End end3 = new End(0,0);\n Start start4 = new Start(0,0);\n End end4 = new End(0,0);\n\n Start start5 = new Start(2,2);\n End end5 = new End(2,7);\n Start start6 = new Start(2,8);\n End end6 = new End(6,8);\n Start start7 = new Start(4,1);\n End end7 = new End(4,4);\n Start start8 = new Start(7,3);\n End end8 = new End(7,5);\n Start start9 = new Start(9,6);\n End end9 = new End(9,8);\n\n\n\n AircraftCarrier aircraftCarrier = new AircraftCarrier(\"AircraftCarrier\",5,start,end);\n Battleship battleship = new Battleship(\"Battleship\",4,start1,end1);\n Cruiser cruiser = new Cruiser(\"Cruiser\",3,start2,end2);\n Destroyer destroyer = new Destroyer(\"Destroyer\",2,start3,end3);\n Submarine submarine = new Submarine(\"Submarine\",2,start4,end4);\n\n ComputerAircraftCarrier computer_aircraftCarrier = new ComputerAircraftCarrier(\"Computer_AircraftCarrier\",5,start5,end5);\n ComputerBattleship computer_battleship = new ComputerBattleship(\"Computer_Battleship\",4,start6,end6);\n ComputerCruiser computer_cruiser = new ComputerCruiser(\"Computer_Cruiser\",3,start7,end7);\n ComputerDestroyer computer_destroyer = new ComputerDestroyer(\"Computer_Destroyer\",2,start8,end8);\n ComputerSubmarine computer_submarine = new ComputerSubmarine(\"Computer_Submarine\",2,start9,end9);\n ArrayList<Hits>playerHits = new ArrayList<Hits>();\n ArrayList<Misses>playerMisses = new ArrayList<Misses>();\n ArrayList<Misses>computerMisses = new ArrayList<Misses>();\n ArrayList<Hits>computerHits = new ArrayList<Hits>();\n\n BattleshipModel battleshipModel = new BattleshipModel(aircraftCarrier,battleship,cruiser,destroyer,submarine,\n computer_aircraftCarrier,computer_battleship,computer_cruiser,computer_destroyer,computer_submarine,\n playerHits,playerMisses,computerHits,computerMisses);\n\n Gson gson = new Gson();\n String battleshipModelWithJson = gson.toJson(battleshipModel);\n return battleshipModelWithJson;\n }", "private void cmdInfoModel() throws NoSystemException {\n MSystem system = system();\n MMVisitor v = new MMPrintVisitor(new PrintWriter(System.out, true));\n system.model().processWithVisitor(v);\n int numObjects = system.state().allObjects().size();\n System.out.println(numObjects + \" object\"\n + ((numObjects == 1) ? \"\" : \"s\") + \" total in current state.\");\n }", "public void buildDisplay() {\n ColorMap map = new ColorMap();\n\n for (int i = 1; i <= maxGrassPerCell; i++) {\n map.mapColor(i, new Color(0, Math.max(256 - i * 12, 50), 0));\n }\n map.mapColor(0, Color.white);\n\n Value2DDisplay displayMoney =\n new Value2DDisplay(space.getCurrentGrassSpace(), map);\n\n Object2DDisplay displayRabbits = new Object2DDisplay(space.getCurrentRabbitSpace());\n displayRabbits.setObjectList(rabbitList);\n\n displaySurf.addDisplayableProbeable(displayMoney, \"Grass\");\n displaySurf.addDisplayableProbeable(displayRabbits, \"Rabbits\");\n\n populationPlot.addSequence(\"Number of Rabbits\", new rabbitCount(), Color.BLUE);\n populationPlot.addSequence(\"Number of Grass\", new grassCount(), new Color(0, 150, 0));\n }", "public ArrayList<BehaviorParameterDisplay> formatDataForDisplay(TreePopulation oPop) {\n\n ArrayList<ModelData> p_oSingles = new ArrayList<ModelData>(); //single data objects\n ArrayList<ArrayList<SpeciesSpecific>> p_oSpeciesSpecific = new ArrayList<ArrayList<SpeciesSpecific>>(); //SpeciesSpecific objects - vector of vectors\n //grouped by what species they apply to\n ModelEnum oEnum;\n\n boolean[] p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n int i;\n boolean bAny;\n\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = true;\n }\n addDataObjectToDisplayArrays(mp_fDiam10ToDbhSlope, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fDiam10ToDbhIntercept, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n\n //------------------------------------------\n //Adult height-diameter function - standard\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatAdultHDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatAdultHDFunction.getValue().get(i);\n if (oEnum.getValue() == 0) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fMaxCanopyHeight, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fSlopeOfAsymptoticHeight, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Adult height-diameter function - linear\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatAdultHDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatAdultHDFunction.getValue().get(i);\n if (oEnum.getValue() == 1) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fMaxCanopyHeight, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fAdultLinearSlope, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fAdultLinearIntercept, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Adult height-diameter function - reverse linear\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatAdultHDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatAdultHDFunction.getValue().get(i);\n if (oEnum.getValue() == 2) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fMaxCanopyHeight, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fAdultReverseLinearSlope, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fAdultReverseLinearIntercept, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Sapling height-diameter function - standard\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatSaplingHDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatSaplingHDFunction.getValue().get(i);\n if (oEnum.getValue() == 0) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fMaxCanopyHeight, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fSlopeOfAsymptoticHeight, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Sapling height-diameter function - linear\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatSaplingHDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatSaplingHDFunction.getValue().get(i);\n if (oEnum.getValue() == 1) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fMaxCanopyHeight, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fSaplingLinearSlope, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fSaplingLinearIntercept, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Sapling height-diameter function - reverse linear\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatSaplingHDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatSaplingHDFunction.getValue().get(i);\n if (oEnum.getValue() == 2) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fMaxCanopyHeight, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fSaplingReverseLinearSlope, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fSaplingReverseLinearIntercept, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Sapling height-diameter function - power\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatSaplingHDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatSaplingHDFunction.getValue().get(i);\n if (oEnum.getValue() == 3) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fMaxCanopyHeight, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fPowerA, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fPowerB, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Seedling height-diameter function - standard\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatSeedlingHDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatSeedlingHDFunction.getValue().get(i);\n if (oEnum.getValue() == 0) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fSlopeOfHeightDiam10, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Seedling height-diameter function - linear\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatSeedlingHDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatSeedlingHDFunction.getValue().get(i);\n if (oEnum.getValue() == 1) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fSeedlingLinearSlope, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fSeedlingLinearIntercept, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Seedling height-diameter function - reverse linear\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatSeedlingHDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatSeedlingHDFunction.getValue().get(i);\n if (oEnum.getValue() == 2) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fSeedlingReverseLinearSlope, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fSeedlingReverseLinearIntercept, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Adult crown radius function - standard\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatAdultCRDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatAdultCRDFunction.getValue().get(i);\n if (oEnum.getValue() == 0) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fSlopeOfAsympCrownRad, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCrownRadExp, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fMaxCrownRad, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Adult crown radius function - Chapman-Richards\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatAdultCRDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatAdultCRDFunction.getValue().get(i);\n if (oEnum.getValue() == 1) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fCRCrownRadIntercept, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCRAsympCrownRad, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCRCrownRadShape1, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCRCrownRadShape2, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Adult crown radius function - non-spatial density dependent\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatAdultCRDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatAdultCRDFunction.getValue().get(i);\n if (oEnum.getValue() == 2) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCDA, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCDB, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCDC, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCDD, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCDE, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCDF, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCDG, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCDH, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCDI, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCDJ, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatExpDensDepCRD1, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatExpDensDepCRA, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatExpDensDepCRB, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatExpDensDepCRC, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatExpDensDepCRD, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatExpDensDepCRE, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatExpDensDepCRF, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Adult crown radius function - NCI\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatAdultCRDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatAdultCRDFunction.getValue().get(i);\n if (oEnum.getValue() == 3) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fNCIMaxCrownRadius, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICRAlpha, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICRBeta, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICRGamma, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICRMaxCrowdingRadius, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICRN, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICRD, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n for (i = 0; i < mp_oAllData.size(); i++) {\n ModelData oData = (ModelData) mp_oAllData.get(i);\n String sKey = oData.getDescriptor().toLowerCase();\n if (sKey.indexOf(\"nci crown radius lambda\") > -1) {\n addDataObjectToDisplayArrays(oData, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n }\n //Minimum neighbor DBH applies to all species \n boolean[] p_bApplyAll = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bApplyAll.length; i++) {\n p_bApplyAll[i] = true;\n }\n addDataObjectToDisplayArrays(mp_fNCICRMinNeighborDBH, p_oSingles, p_oSpeciesSpecific, p_bApplyAll);\n }\n\n //------------------------------------------\n //Sapling crown radius function - standard\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatSaplingCRDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatSaplingCRDFunction.getValue().get(i);\n if (oEnum.getValue() == 0) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fSlopeOfAsympCrownRad, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCrownRadExp, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fMaxCrownRad, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Sapling crown radius function - Chapman-Richards\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatSaplingCRDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatSaplingCRDFunction.getValue().get(i);\n if (oEnum.getValue() == 1) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fCRCrownRadIntercept, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCRAsympCrownRad, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCRCrownRadShape1, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCRCrownRadShape2, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Sapling crown radius function - NCI\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatSaplingCRDFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatSaplingCRDFunction.getValue().get(i);\n if (oEnum.getValue() == 3) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fNCIMaxCrownRadius, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICRAlpha, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICRBeta, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICRGamma, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICRMaxCrowdingRadius, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICRN, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICRD, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n for (i = 0; i < mp_oAllData.size(); i++) {\n ModelData oData = mp_oAllData.get(i);\n String sKey = oData.getDescriptor().toLowerCase();\n if (sKey.indexOf(\"nci crown radius lambda\") > -1) {\n addDataObjectToDisplayArrays(oData, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n }\n //Minimum neighbor DBH applies to all species \n boolean[] p_bApplyAll = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bApplyAll.length; i++) {\n p_bApplyAll[i] = true;\n }\n addDataObjectToDisplayArrays(mp_fNCICRMinNeighborDBH, p_oSingles, p_oSpeciesSpecific, p_bApplyAll);\n }\n\n //------------------------------------------\n //Adult crown depth function - standard\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatAdultCDHFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatAdultCDHFunction.getValue().get(i);\n if (oEnum.getValue() == 0) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fSlopeOfAsympCrownDpth, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCrownDepthExp, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Adult crown depth function - Chapman-Richards\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatAdultCDHFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatAdultCDHFunction.getValue().get(i);\n if (oEnum.getValue() == 1) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fCRCrownHtIntercept, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCRAsympCrownHt, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCRCrownHtShape1, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCRCrownHtShape2, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Adult crown depth function - non-spatial density dependent\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatAdultCDHFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatAdultCDHFunction.getValue().get(i);\n if (oEnum.getValue() == 2) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCRA, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCRB, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCRC, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCRD, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCRE, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCRF, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCRG, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCRH, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCRI, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatDensDepInstCRJ, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatLogDensDepCRDA, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatLogDensDepCRDB, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatLogDensDepCRDC, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatLogDensDepCRDD, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatLogDensDepCRDE, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatLogDensDepCRDF, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNonSpatLogDensDepCRDG, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Adult crown depth function - NCI\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatAdultCDHFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatAdultCDHFunction.getValue().get(i);\n if (oEnum.getValue() == 3) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fNCIMaxCrownDepth, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICDAlpha, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICDBeta, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICDGamma, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICDMaxCrowdingRadius, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICDN, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICDD, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n for (i = 0; i < mp_oAllData.size(); i++) {\n ModelData oData = mp_oAllData.get(i);\n String sKey = oData.getDescriptor().toLowerCase();\n if (sKey.indexOf(\"nci crown depth lambda\") > -1) {\n addDataObjectToDisplayArrays(oData, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n }\n //Minimum neighbor DBH applies to all species \n boolean[] p_bApplyAll = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bApplyAll.length; i++) {\n p_bApplyAll[i] = true;\n }\n addDataObjectToDisplayArrays(mp_fNCICDMinNeighborDBH, p_oSingles, p_oSpeciesSpecific, p_bApplyAll);\n }\n\n //------------------------------------------\n //Sapling crown depth function - standard\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatSaplingCDHFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatSaplingCDHFunction.getValue().get(i);\n if (oEnum.getValue() == 0) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fSlopeOfAsympCrownDpth, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCrownDepthExp, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Sapling crown depth function - Chapman-Richards\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatSaplingCDHFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatSaplingCDHFunction.getValue().get(i);\n if (oEnum.getValue() == 1) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fCRCrownHtIntercept, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCRAsympCrownHt, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCRCrownHtShape1, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fCRCrownHtShape2, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n\n //------------------------------------------\n //Sapling crown depth function - NCI\n bAny = false;\n p_bAppliesTo = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bAppliesTo.length; i++) {\n p_bAppliesTo[i] = false;\n }\n for (i = 0; i < mp_iWhatSaplingCDHFunction.getValue().size(); i++) {\n oEnum = (ModelEnum)mp_iWhatSaplingCDHFunction.getValue().get(i);\n if (oEnum.getValue() == 3) {\n p_bAppliesTo[i] = true;\n bAny = true;\n }\n }\n if (bAny) {\n addDataObjectToDisplayArrays(mp_fNCIMaxCrownDepth, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICDAlpha, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICDBeta, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICDGamma, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICDMaxCrowdingRadius, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICDN, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n addDataObjectToDisplayArrays(mp_fNCICDD, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n for (i = 0; i < mp_oAllData.size(); i++) {\n ModelData oData = mp_oAllData.get(i);\n String sKey = oData.getDescriptor().toLowerCase();\n if (sKey.indexOf(\"nci crown depth lambda\") > -1) {\n addDataObjectToDisplayArrays(oData, p_oSingles, p_oSpeciesSpecific, p_bAppliesTo);\n }\n }\n //Minimum neighbor DBH applies to all species \n boolean[] p_bApplyAll = new boolean[oPop.getNumberOfSpecies()];\n for (i = 0; i < p_bApplyAll.length; i++) {\n p_bApplyAll[i] = true;\n }\n addDataObjectToDisplayArrays(mp_fNCICDMinNeighborDBH, p_oSingles, p_oSpeciesSpecific, p_bApplyAll);\n }\n\n BehaviorParameterDisplay oDisp = formatTable(p_oSingles, p_oSpeciesSpecific, oPop);\n ArrayList<BehaviorParameterDisplay> jReturn = new ArrayList<BehaviorParameterDisplay>(1);\n jReturn.add(oDisp);\n return jReturn;\n }", "@Scheduled(fixedRate = 3600_000, initialDelay = 3600_000)\n public static void showAllStatsJob() {\n showStats(allStats, \"All stats\");\n }", "public com.google.privacy.dlp.v2.StoredInfoTypeStats.Builder getStatsBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getStatsFieldBuilder().getBuilder();\n }", "@Override\n public void update(Observable o, Object arg) {\n if (o instanceof ChartDataHolder)\n displayStatistics(((ChartDataHolder) o).getCMCSpecificStats(cmc - 1));\n }", "public QueryController(String[] args){\n // Parse Args\n QueryArgs queryArgs = new QueryArgs();\n try {\n queryArgs.parseArgs(args);\n } catch (FileNotFoundException e) {\n //e.printStackTrace();\n System.err.println(\"Invalid Arguments received. Please check your arguments passed to ./search\");\n return;\n }\n\n // Run the Term Normaliser\n TermNormalizer normalizer = new TermNormalizer();\n String[] queryTerms = normalizer.transformedStringToTerms(queryArgs.queryString);\n\n //create the model\n Model model = new Model();\n model.loadCollectionFromMap(queryArgs.mapPath);\n model.loadLexicon(queryArgs.lexiconPath);\n model.loadInvertedList(queryArgs.invlistPath);\n if(queryArgs.stopListEnabled)\n {\n model.loadStopList(queryArgs.stopListPath);\n }\n if(queryArgs.printSummary && queryArgs.collectionPath != \"\")\n {\n model.setPathToCollection(queryArgs.collectionPath);\n }\n\n\n //fetch the top results from the query module\n QueryModule queryModule = new QueryModule();\n queryModule.doQuery(queryTerms, model, queryArgs.bm25Enabled);\n List<QueryResult> topResults = queryModule.getTopResult(queryArgs.maxResults);\n\n\n\n ResultsView resultsView = new ResultsView();\n if(queryArgs.printSummary)\n {\n\n DocSummary docSummary = new DocSummary();\n for(QueryResult result:topResults)\n {\n // retrieve the actualy text from the document collection\n result.setDoc(model.getDocumentCollection().getDocumentByIndex(result.getDoc().getIndex(), true));\n\n //set the summary on the result object by fetching it from the docSummary object\n result.setSummaryNQB(docSummary.getNonQueryBiasedSummary(result.getDoc(), model.getStopListModule()));\n result.setSummaryQB(docSummary.getQueryBiasedSummary(result.getDoc(), model.getStopListModule(), Arrays.asList(queryTerms)));\n }\n resultsView.printResultsWithSummary(topResults,queryArgs.queryLabel);\n }else\n {\n resultsView.printResults(topResults,queryArgs.queryLabel);\n }\n\n }", "public ModelInfo generateInfo() { \n ModelInfo info = new ModelInfo();\n \n // Store basic info\n info.author = Author;\n info.citation = Citation;\n info.description = Description;\n info.property = Property;\n info.training = Model.TrainingStats.NumberTested + \" entries: \" + TrainingSet;\n info.notes = Notes;\n info.trainTime = new SimpleDateFormat(\"dMMMyy HH:mm z\").format(Model.getTrainTime());\n \n // Store units or class names\n if (Model instanceof AbstractClassifier) {\n info.classifier = true;\n info.units = \"\";\n AbstractClassifier clfr = (AbstractClassifier) Model;\n boolean started = false;\n for (String name : clfr.getClassNames()) {\n if (started) {\n info.units += \";\";\n }\n info.units += name;\n started = true;\n }\n } else {\n info.classifier = false;\n info.units = Units;\n }\n \n // Store names of models\n info.dataType = Dataset.printDescription(true);\n info.modelType = Model.printDescription(true);\n \n // Store validation performance data\n info.valMethod = Model.getValidationMethod();\n if (Model.isValidated()) {\n info.valScore = Model.ValidationStats.getStatistics();\n }\n \n return info;\n }", "public void statistics(){\n System.out.println(this.scoreboard.toString());\n }", "public String build() {\n\treturn prefixes.toString() + \" \\n CONSTRUCT { \" + variables.toString()\n\t\t+ \" } WHERE { \" + wheres.toString() + \" }\";\n }", "public void getResults() {\n\t\tSystem.out.println(\"|V| : \" + g.getV());\n\t\tSystem.out.println(\"|E| : \" + g.getE());\n\t\tSystem.out.println(\"Max flow : \" + g.getVertex(sink).e);\n\t\tSystem.out.println(\"Run time : \" + (System.currentTimeMillis()-timeStart) + \" ms\"+\"\\n\");\n\t}", "public StatisticsOverviewView() {\n statisticsOverviewView = this;\n }", "protected abstract String getStatistics();", "public BuildMethodSummary(ControlFlowGraph cfg) {\n this.rf = cfg.getRegisterFactory();\n this.method = cfg.getMethod();\n this.start_states = new State[cfg.getNumberOfBasicBlocks()];\n this.methodCalls = SortedArraySet.FACTORY.makeSet(HashCodeComparator.INSTANCE);\n this.callToRVN = new HashMap();\n this.callToTEN = new HashMap();\n this.passedAsParameter = NodeSet.FACTORY.makeSet();\n this.nodeCache = new HashMap();\n this.s = this.start_states[0] = new State(rf.size());\n if(TRACE_REGISTERS) System.out.println(\"Creating \" + rf.size() + \" registers for \" + method);\n jq_Type[] params = this.method.getParamTypes();\n this.param_nodes = new ParamNode[params.length];\n for (int i=0, j=0; i<params.length; ++i, ++j) {\n if (INCLUDE_PRIMITIVE_TYPES || params[i].isReferenceType()\n /*&& !params[i].isAddressType()*/\n ) {\n ParamNode paramNode = ParamNode.get(method, i, params[i]);\n param_nodes[i] = paramNode;\n setLocal(j, paramNode);\n } else if (params[i].getReferenceSize() == 8) {\n //++j;\n }\n }\n this.my_global = GlobalNode.get(this.method);\n this.sync_ops = new HashMap();\n this.castMap = new LinkedHashMap();\n this.castPredecessors = new LinkedHashSet();\n this.returned = NodeSet.FACTORY.makeSet(); this.thrown = NodeSet.FACTORY.makeSet();\n \n if (TRACE_INTRA) out.println(\"Building summary for \"+this.method);\n \n // iterate until convergence.\n List<BasicBlock> rpo_list = cfg.reversePostOrder(cfg.entry());\n for (;;) {\n Iterator<BasicBlock> rpo = rpo_list.iterator();\n this.change = false;\n while (rpo.hasNext()) {\n this.bb = rpo.next();\n this.s = start_states[bb.getID()];\n if (this.s == null) {\n continue;\n }\n this.s = this.s.copy();\n /*\n if (this.bb.isExceptionHandlerEntry()) {\n java.util.Iterator i = cfg.getExceptionHandlersMatchingEntry(this.bb);\n jq.Assert(i.hasNext());\n ExceptionHandler eh = (ExceptionHandler)i.next();\n CaughtExceptionNode n = new CaughtExceptionNode(eh);\n if (i.hasNext()) {\n Set set = NodeSet.FACTORY.makeSet(); set.add(n);\n while (i.hasNext()) {\n eh = (ExceptionHandler)i.next();\n n = new CaughtExceptionNode(eh);\n set.add(n);\n }\n s.merge(nLocals, set);\n } else {\n s.merge(nLocals, n);\n }\n }\n */\n if (TRACE_INTRA) {\n out.println(\"State at beginning of \"+this.bb+\":\" + this.bb.fullDump());\n this.s.dump(out);\n }\n this.bb.visitQuads(this);\n Iterator<BasicBlock> succs = this.bb.getSuccessors().iterator();\n while (succs.hasNext()) {\n BasicBlock succ = succs.next();\n if (this.bb.endsInRet()) {\n if (jsr_states != null) {\n State s2 = (State) jsr_states.get(succ);\n if (s2 != null) {\n JSRInfo info = cfg.getJSRInfo(this.bb);\n boolean[] changedLocals = info.changedLocals;\n mergeWithJSR(succ, s2, changedLocals);\n } else {\n if (TRACE_INTRA) out.println(\"jsr before \"+succ+\" not yet visited!\");\n }\n } else {\n if (TRACE_INTRA) out.println(\"no jsr's visited yet! was looking for jsr successor \"+succ);\n }\n } else {\n mergeWith(succ);\n }\n }\n }\n if (!this.change) break;\n }\n }", "public String toString() {\r\n String modelString =\r\n \"value=\"\r\n + getValue()\r\n + \", \"\r\n + \"extent=\"\r\n + getExtent()\r\n + \", \"\r\n + \"min=\"\r\n + getMinimum()\r\n + \", \"\r\n + \"max=\"\r\n + getMaximum()\r\n + \", \"\r\n + \"adj=\"\r\n + getValueIsAdjusting();\r\n\r\n return getClass().getName() + \"[\" + modelString + \"]\";\r\n }", "SModel getOutputModel();", "String report() {\n StringBuilder sb = new StringBuilder();\n // Header\n for (int i = 0; i < Stat.values().length; i++) {\n if (i > 0) {\n sb.append(\",\");\n }\n sb.append(Stat.values()[i].name);\n }\n // One line per job\n for (JobResult result : jobResults) {\n result.computeMetrics();\n sb.append(\"\\n\").append(result);\n }\n // Include aggregates for jobs and overall\n if (jobTypeResults.containsKey(\"ForwardChain\")) {\n jobTypeResults.get(\"ForwardChain\").computeMetrics();\n sb.append(\"\\n\").append(jobTypeResults.get(\"ForwardChain\"));\n }\n if (jobTypeResults.containsKey(\"DuplicateElimination\")) {\n jobTypeResults.get(\"DuplicateElimination\").computeMetrics();\n sb.append(\"\\n\").append(jobTypeResults.get(\"DuplicateElimination\"));\n }\n totals.computeMetrics();\n sb.append(\"\\n\").append(totals);\n return sb.toString();\n }", "public okhttp3.Call showModelStatsAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException {\n\n okhttp3.Call localVarCall = showModelStatsValidateBeforeCall(workspaceId, modelId, _callback);\n Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType();\n localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);\n return localVarCall;\n }", "void displayReport ()\n {\n\tStatFrame statTable;\n String winTitle = new String (\"Statistical Results Window\");\n\n\tif (use_xml) {\n\t try {\n\t\tVector data = new Vector (); data.add (modelReport);\n\t\tString xmlStr = XMLSerializer.serialize (data);\n\t\tstatTable = new StatFrame (winTitle, xmlStr);\n\t } catch (Exception e) {\n\t\ttrc.tell (\"displayReport\", e.getMessage ());\n\t\te.printStackTrace ();\n\t\treturn;\n\t }\n\t} else {\n statTable = new StatFrame (winTitle, modelReport);\n\t}; // if\n\n statTable.showWin ();\n\n }", "@Synchronized\n private static String showStats(Map<String, ServiceStats> stats, String title) {\n List<ServiceStats> view = new ArrayList<>();\n view.addAll(stats.values());\n view.sort((o1, o2) -> o1.getTotalTime() > o2.getTotalTime() ? 1 : -1);\n StringBuilder buff = new StringBuilder(2048);\n buff.append(\" calls min max total avg name\\n\");\n view.stream().map(s -> str(\"%9s %9s %9s %9s %9s %s\\n\",\n s.getCalls(),\n s.getMinTime(),\n s.getMaxTime(),\n s.getTotalTime(),\n s.getTotalTime() / s.getCalls(),\n s.getService().replaceAll(\"\\\\[\", \"(\").replaceAll(\"]\", \")\"))).forEach(buff::append);\n String lines = buff.toString();\n log.info(\"\\n\" + title + \" - services performance (ms): \\n{}\", lines);\n return lines;\n }", "@Override\n public Object build() {\n String filterField = null;\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"field\":\n filterField = (String)param.getValue();\n break;\n }\n }\n\n if (filterField != null) {\n ValueCountAggregationBuilder count = AggregationBuilders.count(this.getName());\n count.field(filterField);\n return count;\n }\n\n return null;\n }", "void statistics();", "public void showMetrics() {\n }", "public HealthModel() {\n healthMetrics = new ArrayList<HealthMetric>();\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n this.fetchHealthMetrics();\n }", "public abstract void showStat();", "void setModelInfo(int modelId, int chainCount);", "public String toString()\n {\n return \"Double exponential smoothing model, with smoothing constants of alpha=\"\n + alpha + \", gamma=\"\n + gamma + \", and using an independent variable of \"\n + getIndependentVariable();\n }", "public interface IOrderStatisticsView extends IBaseView {\n\n //所有订单\n void onGetStylistOrderCount(StylistOrderBean bean);\n //订单统计\n void getStylistTimeSliceOrder(List<List<OrderChartBean>> orderChartBeans);\n}", "@Override\n public String toString() {\n String title = \"\\n#\" + mokedexNo + \" \" + name + \"\\n\";\n StringBuffer outputBuffer = new StringBuffer(title.length());\n for (int i = 0; i < title.length(); i++){\n outputBuffer.append(\"-\");\n }\n String header = outputBuffer.toString();\n String levelStats = \"\\nLevel: \" + level;\n String hpStats = \"\\nHP: \" + hp;\n String attStats = \"\\nAttack: \" + attack;\n String defStats = \"\\nDefense: \" + defense;\n String cpStats = \"\\nCP: \" + cp;\n return title + header + levelStats + hpStats + attStats + defStats + cpStats + \"\\n\";\n }", "public void displayResults(ExperimentGameResultViewModel viewModel) {\n mNameIconView.setDescription(viewModel.gameName);\n mTypeIconView.setDescription(viewModel.gameType);\n mActualTimeIconView.setDescription(String.valueOf(viewModel.gameActualTime));\n mEstimatedTimeIconView.setDescription(String.valueOf(viewModel.gameEstimatedTime));\n mWasInterruptedIconView.setDescription(viewModel.wasInterrupted ? getStringByResourceId(R.string.yes) : getStringByResourceId(R.string.no));\n if (viewModel.customJsonInfo != null && !viewModel.customJsonInfo.isEmpty()) {\n mAdditionalInfoIconView.setVisibility(View.VISIBLE);\n mAdditionalInfoIconView.setDescription(viewModel.customJsonInfo);\n } else {\n mAdditionalInfoIconView.setVisibility(View.GONE);\n }\n }", "public SearchResult withStats(java.util.Map<String, FieldStats> stats) {\n setStats(stats);\n return this;\n }", "public String toString(){\n\t\tStringBuilder s = new StringBuilder(\"\");\n\t\ts.append(\"\\nMD2 Model details\\n\");\n\t\ts.append(\"\\tThere are \" + numFrames + \" key framess\\n\");\n\t\ts.append(\"\\tThere are \"+ point.length + \" points (XYZ coordinates)\\n\");\n\t\ts.append(\"\\tFor rendering there are \" + glComannd.length + \" triangle strips/fans\\n\");\n\t\ts.append(\"\\t and these have \" + glVertex.length + \" vertex definitions\\n\");\n\t\ts.append(\"\\tThere are \" + state.length + \" animation sequences\\n\");\n\t\ts.append(\"Estimated memory used \" + memUsage() + \" bytes for model excluding texture.\");\n\n\t\treturn new String(s);\n\t}", "public void statistics(){\n // calculate N\n for (int k=0 ; k<K ; ++k){\n N[k] = 0.0;\n for (int n=0 ; n<X.getN() ; ++n){\n SuperVoxel sv =X.get(n);\n N[k] = N[k] + sv.getVoxels().length*r.getEntry(n, k);\n }\n N[k] = N[k] + .000001;\n }\n\n \n // calculate xBar\n for (int k=0 ; k<K ; ++k){\n xBar[k].set(0.0);\n for (int n=0 ; n<X.getN() ; ++n){\n SuperVoxel sv = X.get(n);\n double rnk = r.getEntry(n, k);\n RealVector x = sv.getCenter().mapMultiply(rnk*sv.getVoxels().length);\n xBar[k] = xBar[k].add(x);\n }\n xBar[k].mapDivideToSelf(N[k]);\n } \n \n // calculate the S\n for (int k=0 ; k<K ; ++k){\n for (int row=0 ; row<X.getD() ; ++row){\n for (int col=0 ; col<X.getD() ; ++col){\n S[k].setEntry(row, col, 0.0);\n }\n }\n for (int n=0 ; n<X.getN() ; ++n){\n SuperVoxel sv = X.get(n);\n for (RealVector vox : sv.getVoxels()){\n RealVector del = vox.subtract(xBar[k]); \n S[k] = S[k].add(del.outerProduct(del).scalarMultiply(r.getEntry(n, k))); \n }\n }\n S[k] = S[k].scalarMultiply(1.0/N[k]);\n }\n }", "private void addStats(\n net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder builderForValue) {\n ensureStatsIsMutable();\n stats_.add(builderForValue.build());\n }", "private void buildModel() {\n\t\trabbitSpace = new RabbitsGrassSimulationSpace(xSize, ySize);\n\n\t\trabbitSpace.spreadGrass(initGrass);\n\n\t\tfor (int i = 0; i < numRabbits && i < xSize * ySize; i++) {\n\t\t\taddNewRabbit();\n\t\t}\n\n\t\tfor (int i = 0; i < rabbitList.size(); i++) {\n\t\t\tRabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n\t\t\trabbit.report();\n\t\t}\n\t}", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "@GetMapping(\"recommendation\")\n public String displaySearch(Model model) {\n List<String> searchMethods = new ArrayList<>();\n searchMethods.add(\"By City\");\n searchMethods.add(\"Near me\");\n List<Category> categoriesFromDB = categoryDao.getAllCategory();\n List<SearchHistory> recentHistories = searchHistoryDao.getRecentSearchHistory(resultNum);\n List<Recommendation> recommendations = new ArrayList<>();\n\n model.addAttribute(\"searchMethods\", searchMethods);\n model.addAttribute(\"categoriesDB\", categoriesFromDB);\n model.addAttribute(\"searchHistories\", recentHistories);\n model.addAttribute(\"recommendations\", recommendations);\n return \"recommendation\";\n }", "@Override\n public String report() {\n\n StringBuilder print = new StringBuilder();\n player.getModels().stream().sorted((p, l) -> {\n int result = p.getClass().getSimpleName().compareTo(l.getClass().getSimpleName()); // Order them by type alphabetically,\n if (result == 0) {\n result = Integer.compare(l.getHealth(), p.getHealth());// then by health descending,\n if (result == 0) {\n result = p.getUsername().compareTo(l.getUsername());\n ;// then by username alphabetically.\n }\n }\n return result;\n })\n .forEach(pl -> print.append(pl).append(System.lineSeparator()));\n\n return print.toString().trim();\n }", "private void updateHubHelps(BoundedRangeModel subModel , JLabel component) {\n DecimalFormat df = new DecimalFormat(\"#00.00\");\n float prc_current = (float)subModel.getValue() / (float)( subModel.getMaximum() - subModel.getMinimum() ) * 100f;\n float prc_total = this.hub.getWeight( this.hub.indexOf( subModel ) ) / this.hub.getTotalWeight() * 100f;\n component.setText( df.format(prc_current) + \" % of \" + df.format(prc_total) + \" %\" );\n }", "public void recalculateStats(){\n weight = .25f * (shaftMat.getParameter(\"Density\") * length + headMat.getParameter(\"Density\") * .4f);\n sharpness = headMat.getParameter(\"Malleability\") + 1f / headMat.getParameter(\"Durability\"); //Malleable objects can be sharp, as can fragile objects\n// fragility = 1f / (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n durability = (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n trueness = shaftMat.getParameter(\"Regularity\") + headMat.getParameter(\"Regularity\");\n// length = 2f;\n }", "public void makeReport()\n\t{\n\t\tif (currentStage[currentSlice-1] > 1)\n\t\t{\n\t\t\tResultsTable rt = new ResultsTable();\n\t\t\tfor (int j=0;j<popSequence.N;j++)\n\t\t\t{\n\t\t\t\tpop = popSequence.PopList[j];\n\t\t\t\tint N = pop.N;\n\t\t\t\tfor (int i=0;i<N;i++)\n\t\t\t\t{\n\t\t\t\t\trt.incrementCounter();\n\t\t\t\t\tBalloon bal;\n\t\t\t\t\tbal = (Balloon)(pop.BallList.get(i));\n\t\t\t\t\tbal.mass_geometry();\n\t\t\t\t\trt.addValue(\"X\",bal.x0);\n\t\t\t\t\trt.addValue(\"Y\",bal.y0);\n\t\t\t\t\trt.addValue(\"Z\",j);\n\t\t\t\t\trt.addValue(\"ID\",bal.id);\n\t\t\t\t\trt.addValue(\"AREA\",bal.area);\n\t\t\t\t\trt.addValue(\"Ixx\",bal.Ixx);\n\t\t\t\t\trt.addValue(\"Iyy\",bal.Iyy);\n\t\t\t\t\trt.addValue(\"Ixy\",bal.Ixy);\n\t\t\t\t\trt.addValue(\"Lx\",bal.lx);\n\t\t\t\t\trt.addValue(\"Ly\",bal.ly);\n\t\t\t\t}\n\t\t\t}\n\t\t\trt.show(\"Report\");\n\t\t\tcurrentSlice = i1.getCurrentSlice();\n\t\t\tipWallSegment = (i1.getStack()).getProcessor(i1.getCurrentSlice());\n\t\t\tpop = popSequence.PopList[currentSlice-1];\n\t\t}\n\t}", "public void buildTypeParamInfo() {\n\t\twriter.writeTypeParamInfo();\n\t}", "@Override\n public Object build() {\n CardinalityAggregationBuilder cardinality = AggregationBuilders.cardinality(this.getName());\n\n for (ParamComposite param : this.getChildren().stream()\n .filter(child -> ParamComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (ParamComposite) child).collect(Collectors.toList())) {\n switch (param.getName().toLowerCase()) {\n case \"field\":\n cardinality.field((String)param.getValue());\n break;\n\n /*case \"script\":\n cardinality.script((String)param.getValue());\n break;*/\n\n case \"precision_threshold\":\n cardinality.precisionThreshold((long)param.getValue());\n break;\n }\n }\n\n return cardinality;\n }", "@Override\n public String toString() {\n String out = \"Galaxy model \\n\";\n out+=\"Number of particles: \"+this.particles.size()+\"\\n\";\n if (this.qt!=null) {\n out += \"Total mass: \" +qt.getMass()+\"\\n\";\n out+= \"centered at: \"+qt.getCenterOfMass().toString()+\"\\n\";\n }\n return out;\n }", "@Override\n public String toString()\n {\n return \"EfficientMarkovModel of order \" + myNum;\n }", "private void renderData() {\n TextView minBatteryTextView = (TextView) this.findViewById(R.id.min_battery_tv);\n minBatteryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMinBatteryLevel(), \"%\"));\n TextView averageBatteryTextView = (TextView) this.findViewById(R.id.average_battery_tv);\n averageBatteryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageBatteryLevel(), \"%\"));\n TextView maxBatteryTextView = (TextView) this.findViewById(R.id.max_battery_tv);\n maxBatteryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMaxBatteryLevel(), \"%\"));\n\n TextView minGsmTextView = (TextView) this.findViewById(R.id.min_gsm_tv);\n minGsmTextView.setText(String.format(\"%.1f\", this.diagnosticStatistics.getMinGSMStrength()));\n TextView averageGsmTextView = (TextView) this.findViewById(R.id.average_gsm_tv);\n averageGsmTextView.setText(String.format(\"%.1f\", this.diagnosticStatistics.getAverageGSMStrength()));\n TextView maxGsmTextView = (TextView) this.findViewById(R.id.max_gsm_tv);\n maxGsmTextView.setText(String.format(\"%.1f\", this.diagnosticStatistics.getMaxGSMStrength()));\n\n TextView minStorageTextView = (TextView) this.findViewById(R.id.min_storage_tv);\n minStorageTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMinStorageUtilization(), \"%\"));\n TextView averageStorageTextView = (TextView) this.findViewById(R.id.average_storage_tv);\n averageStorageTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageStorageUtilization(), \"%\"));\n TextView maxStorageTextView = (TextView) this.findViewById(R.id.max_storage_tv);\n maxStorageTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMaxStorageUtilization(), \"%\"));\n\n TextView minMemoryTextView = (TextView) this.findViewById(R.id.min_memory_tv);\n minMemoryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMinMemoryUtilization(), \"%\"));\n TextView averageMemoryTextView = (TextView) this.findViewById(R.id.average_memory_tv);\n averageMemoryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageMemoryUtilization(), \"%\"));\n TextView maxMemoryTextView = (TextView) this.findViewById(R.id.max_memory_tv);\n maxMemoryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMaxMemoryUtilization(), \"%\"));\n\n TextView minCpuTextView = (TextView) this.findViewById(R.id.min_processor_tv);\n minCpuTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMinCPUUtilization(), \"%\"));\n TextView averageCpuTextView = (TextView) this.findViewById(R.id.average_processor_tv);\n averageCpuTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageCPUUtilization(), \"%\"));\n TextView maxProcessorTextView = (TextView) this.findViewById(R.id.max_processor_tv);\n maxProcessorTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMaxCPUUtilization(), \"%\"));\n TextView wifiAvailabilityTextView = (TextView) this.findViewById(R.id.average_wireless_tv);\n wifiAvailabilityTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageWiFIAvailability() * 100, \"%\"));\n\n }", "@Override\n public void execute() {\n\n ProfileModel profileModel = new ProfileModel(1,\"TestName\",\"TestLastName\", \"Nick\",1,new GregorianCalendar(1900,11,1),false,\n new GregorianCalendar(1925,6,11),10);\n ProfileView profileView = new ProfileView(profileModel);\n profileView.init();\n profileView.draw(new ConsoleCanvas(80,200));\n }", "public static Result showStats() {\n\t\tUser currentUser = SessionHelper.getCurrentUser(ctx());\n\t\tList<Blogger> bloggerList = Blogger.find.all();\n\t\tif(currentUser != null && currentUser.username.equals(\"blogger\")){\n\t\t\treturn ok(blog.render(bloggerList,currentUser));\n\t\t}\n\n\t\t// Null Catching\n\t\tif (currentUser == null) {\n\t\t\treturn redirect(routes.Application.index());\n\t\t}\n\t\t\n\t\tallProducts = ProductController.findProduct.where().eq(\"owner.username\", currentUser.username).findList();\n\t\t\n\t\tapplyTheStringViewForStats(currentUser);\n\t\n\t\treturn ok(statsproducts.render(currentUser, allProducts));\n\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getStatus() != null)\n sb.append(\"Status: \").append(getStatus()).append(\",\");\n if (getHits() != null)\n sb.append(\"Hits: \").append(getHits()).append(\",\");\n if (getFacets() != null)\n sb.append(\"Facets: \").append(getFacets()).append(\",\");\n if (getStats() != null)\n sb.append(\"Stats: \").append(getStats());\n sb.append(\"}\");\n return sb.toString();\n }", "public static void computeSummary() {\r\n\r\n String text = \"\\n\";\r\n\r\n //print the rank matrix\r\n\r\n text += \"\\\\begin{sidewaystable}[!htp]\\n\\\\centering\\\\scriptsize\\n\"\r\n + \"\\\\resizebox{\\\\textwidth}{!}{\\\\begin{tabular}{\\n\";\r\n text += \"|c\";\r\n for (int i = 0; i < columns; i++) {\r\n text += \"|r\";\r\n }\r\n text += \"|}\\n\\\\hline\\n\";\r\n\r\n for (int i = 0; i < columns; i++) {\r\n text += \"&(\" + (i + 1) + \") \";\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i] + \" (\" + (i + 1) + \")\";\r\n for (int j = 0; j < columns; j++) {\r\n if (i != j) {\r\n text += \"& \" + wilcoxonRanks[i][j];\r\n } else {\r\n text += \"& -\";\r\n }\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n\r\n text += \"\\n\" + \"\\\\end{tabular}}\\n\" + \"\\\\caption{Ranks computed by the Wilcoxon test}\\n\";\r\n text += \"\\n\\\\end{sidewaystable}\\n\";\r\n text += \"\\n \\\\clearpage \\n\\n\";\r\n\r\n Files.addToFile(outputSummaryFileName, text);\r\n\r\n //print the p-value matrix\r\n\r\n text = \"\\n\";\r\n\r\n text += \"\\\\begin{sidewaystable}[!htp]\\n\\\\centering\\\\scriptsize\\n\"\r\n + \"\\\\resizebox{\\\\textwidth}{!}{\\\\begin{tabular}{\\n\";\r\n text += \"|c\";\r\n for (int i = 0; i < columns; i++) {\r\n text += \"|c\";\r\n }\r\n text += \"|}\\n\\\\hline\\n\";\r\n\r\n for (int i = 0; i < columns; i++) {\r\n text += \"&(\" + (i + 1) + \") \";\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n\r\n if (rows <= 50) {\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i] + \" (\" + (i + 1) + \")\";\r\n for (int j = 0; j < columns; j++) {\r\n \r\n if (i < j) {//0.1\r\n text += \"& \" + getSymbol(i,j,exactPValues[i][j], exactPValues[j][i], 0.1) + \" \";\r\n }\r\n if (i == j) {\r\n text += \"& -\";\r\n }\r\n if (i > j) {//0.05\r\n text += \"& \" + getSymbol(i,j,exactPValues[i][j], exactPValues[j][i], 0.05) + \" \";\r\n }\r\n }\r\n \r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n } else {\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i] + \" (\" + (i + 1) + \")\";\r\n for (int j = 0; j < columns; j++) {\r\n if (i < j) {//0.1\r\n text += \"& \" + getSymbol(i,j,asymptoticPValues[i][j], asymptoticPValues[j][i], 0.1) + \" \";\r\n }\r\n if (i == j) {\r\n text += \"& -\";\r\n }\r\n if (i > j) {//0.05\r\n text += \"& \" + getSymbol(i,j,asymptoticPValues[i][j], asymptoticPValues[j][i], 0.05) + \" \";\r\n }\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n }\r\n\r\n text += \"\\n\" + \"\\\\end{tabular}}\\n\" + \"\\\\caption{Summary of the Wilcoxon test. \\\\textbullet = \"\r\n + \"the method in the row improves the method of the column. \\\\textopenbullet = \"\r\n + \"the method in the column improves the method of the row. Upper diagonal of level significance $\\\\alpha=0.9$,\"\r\n + \"Lower diagonal level of significance $\\\\alpha=0.95$}\\n\";\r\n text += \"\\n\\\\end{sidewaystable}\\n\";\r\n text += \"\\n \\\\clearpage \\n\\n\";\r\n\r\n Files.addToFile(outputSummaryFileName, text);\r\n\r\n text = \"\\n\";\r\n\r\n //print the summary table\r\n\r\n text += \"\\\\begin{table}[!htp]\\n\\\\centering\\\\scriptsize\\n\"\r\n + \"\\\\begin{tabular}{\\n\";\r\n text += \"|c|c|c|c|c|}\\n\\\\hline\\n\";\r\n text += \"&\\\\multicolumn{2}{c|}{$\\\\alpha=0.9$} & \\\\multicolumn{2}{c|}{$\\\\alpha=0.95$}\\\\\\\\\\\\hline\\n\";\r\n text += \"Method & + & $\\\\pm$ & + & $\\\\pm$ \";\r\n\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i]+\" & \"+wins90[i]+\" & \"+draw90[i]+\" & \"+wins95[i]+\" & \"+draw95[i];\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n\r\n text += \"\\n\" + \"\\\\end{tabular}\\n\" + \"\\\\caption{Wilcoxon test summary results}\\n\";\r\n text += \"\\n\\\\end{table}\\n\";\r\n text += \"\\n \\\\clearpage \\n\\n\";\r\n\r\n Files.addToFile(outputSummaryFileName, text);\r\n\r\n }", "public String getSummary() {\n/* 121 */ StringBuilder sb = new StringBuilder();\n/* 122 */ sb.append(\"FindIds exeMicros[\").append(this.executionTimeMicros).append(\"] rows[\").append(this.rowCount).append(\"] type[\").append(this.desc.getName()).append(\"] predicates[\").append(this.predicates.getLogWhereSql()).append(\"] bind[\").append(this.bindLog).append(\"]\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 128 */ return sb.toString();\n/* */ }", "public String getInfo(){\n return \"Name: \" + name + \"\\n\"\n + \"Min Range: \" + minRange + \"\\n\"\n + \"Max Range: \" + maxRange + \"\\n\"\n + \"Attack: \" + attack + \"\\n\"\n + \"Cost: \" + buildCost;\n }", "public ISvnModel buildSvnModel() {\r\n VssModel vssModel = buildVssModel();\r\n if (incrementalWarning)\r\n LOG.warn(\"unsupported operations(delete,rename,share,branch) detected in project, incremental dump can be broken\");\r\n VssTransform tr = new VssTransform(this);\r\n SvnModel svnModel = tr.transform(vssModel);\r\n LOG.info(\"Svn model has been created\");\r\n LOG.info(\"total number of revisions in svn model: \" + svnModel.getRevisions().size());\r\n return svnModel;\r\n }", "public void displayStats() {\n VisitorDAO visitorDAO = new VisitorDAO();\n Object countAllVisitors = visitorDAO.getCountAllVisitors();\n Object countNewSubscribers = visitorDAO.getCountNewSubscribersForMonth(this.simpleDateFormat.format(new Date()));\n\n this.totalSubscribersText.setText(this.totalSubscribersText.getText() + countAllVisitors.toString());\n this.newSubscribersText.setText(this.newSubscribersText.getText() + countNewSubscribers.toString());\n }", "public Builder clearStats() {\n copyOnWrite();\n instance.clearStats();\n return this;\n }", "public interface HistoryChartMvpView extends MvpView {\n\n void loadHistoryStats(List<History> productsHistory);\n\n}", "public void tickGathering(Model model)\n {\n\n }", "private void buildDisplay() {\n\t\tColorMap map = new ColorMap();\n\n\t\tfor (int i = 1; i < MAX_COLORS; i++) {\n\t\t\tmap.mapColor(i, new Color(0, (int) (i + 127), 0));\n\t\t}\n\n\t\t// When noting, it is white\n\t\tmap.mapColor(0, Color.WHITE);\n\n\t\tValue2DDisplay displayGrass = new Value2DDisplay(rabbitSpace.getGrassSpace(), map);\n\n\t\tObject2DDisplay displayRabbits = new Object2DDisplay(rabbitSpace.getRabbitSpace());\n\t\tdisplayRabbits.setObjectList(rabbitList);\n\n\t\tdisplaySurf.addDisplayable(displayGrass, \"Grass\");\n\t\tdisplaySurf.addDisplayable(displayRabbits, \"Rabbits\");\n\n\t\trabbitsAndGrassInSpace.addSequence(\"Number of Rabbits in Space\", new RabbitsInSpace());\n\t\trabbitsAndGrassInSpace.addSequence(\"Amount of Grass\", new GrassInSpace());\n\t}", "private void buildReport() {\n StringBuilder stringBuilder = new StringBuilder();\n\n // Header of report\n stringBuilder.append(\"Games\\tCPU wins\\t\"\n + \"Human wins\\tDraw avg\\tMax rounds\\n\");\n stringBuilder.append(\"=============================================\\n\");\n\n // shows the number of overall games\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the number of times the computer won\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game WHERE winner = 'CPU'\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the number of times the human player won\n stringBuilder.append(dbConnection.executeQuery(\"SELECT COUNT(game_id) FROM game WHERE winner = 'human'\", \"count\"));\n stringBuilder.append(\"\\t\");\n // shows the average number of draws per game\n stringBuilder.append((int)Float.parseFloat(dbConnection.executeQuery(\"SELECT AVG(draws) FROM game\", \"avg\")));\n stringBuilder.append(\"\\t\");\n // shows the maximum number of rounds played\n stringBuilder.append(dbConnection.executeQuery(\"SELECT MAX(rounds) FROM game\", \"max\"));\n\n // Converts stringBuilder to a String\n reportContent = stringBuilder.toString();\n }", "private void createGlobalStatsTable(int threshold) \r\n\t{\r\n\t\tTableData statsTable = new TableData(9);\r\n\r\n\t\tMap<Integer,IGlobalStats> globalStatsMap = model.getGlobalStats();\r\n\r\n\t\tfor (int key:globalStatsMap.keySet()) \r\n\t\t{\r\n\t\t\t// La global de todos los nodos tiene que heredar de SimpleGlobalStats para que se muestre\r\n\t\t\tIGlobalStats aux = globalStatsMap.get(key);\r\n\r\n\t\t\tif (!(aux instanceof SimpleGlobalStats)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tSimpleGlobalStats stats = (SimpleGlobalStats)aux;\r\n\r\n\t\t\tString obj = stats.getName(model.getMethodNames());\r\n\t\t\tif (obj==null) {\r\n\t\t\t\tint h=1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tString nodeName = Names.getDigestedName(stats.getName(model.getMethodNames()), true);\r\n\t\t\tString nodeType = stats.getTypeName();\r\n\r\n\t\t\tfloat referenceTime = stats.getAvgTotTime();\r\n\r\n\t\t\tif (referenceTime>=threshold) {\r\n\t\t\t\t// \"Name\", \"Type\", \"Count\", \"Avg. Total Time\", \"Min. Total Time\", \"Max. Total Time\", \"Avg. Ex. Time\", \"Min. Ex. Time\", \"Max. Ex. Time\" \r\n\t\t\t\tDecimalFormat dec = new DecimalFormat();\r\n\t\t\t\tdec.setMinimumFractionDigits(2);\r\n\t\t\t\tdec.setMaximumFractionDigits(2);\r\n\r\n\t\t\t\tstatsTable.addRow(stats.getId(), nodeName, nodeType, stats.getInvCount(),stats.getAvgTotTime(), stats.getMinTotTime(), stats.getMaxTotTime(), stats.getAvgExTime(),stats.getMinExTime(), stats.getMaxExTime());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tresultsTabbedPanel.setStatisticsData(statsTable);\r\n\t}", "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 execute() {\n\t\tSystem.out.println(\"==STATISTICS FOR THE RESTAURANT==\");\n\t\tSystem.out.println(\"Most used Ingredients:\");\n\t\tmanager.printIngredients();\n\t\tSystem.out.println(\"Most ordered items:\");\n\t\tmanager.printMenuItems();\n\t\tSystem.out.println(\"==END STATISTICS==\");\n\t}", "public EntyWeighStat(TransportModel model, String name) {\n\t\tthis(model, name, null);\n\t}" ]
[ "0.5781387", "0.5738897", "0.56485134", "0.5448879", "0.5324184", "0.5269172", "0.51469636", "0.5119213", "0.51155835", "0.5071663", "0.5061615", "0.5027826", "0.5000658", "0.49572116", "0.49377552", "0.49078685", "0.49044484", "0.48851177", "0.48749003", "0.48532867", "0.4843719", "0.48234358", "0.48213702", "0.479492", "0.47808003", "0.47759965", "0.47690833", "0.4764882", "0.47599235", "0.47427186", "0.47395962", "0.472501", "0.47072592", "0.47059268", "0.46948224", "0.46942997", "0.46921077", "0.46739396", "0.46716607", "0.4668921", "0.46678934", "0.46625206", "0.46490398", "0.46272564", "0.46260363", "0.46244064", "0.46143854", "0.46140584", "0.46007422", "0.45800212", "0.457809", "0.45761216", "0.45745933", "0.4571314", "0.45470002", "0.4543884", "0.45347917", "0.45287114", "0.4507877", "0.45038998", "0.45000598", "0.44929573", "0.4491273", "0.44903842", "0.44796672", "0.44739342", "0.44694087", "0.44687033", "0.44542202", "0.44485837", "0.44480744", "0.4442639", "0.44415933", "0.44388655", "0.4436316", "0.44333118", "0.44326195", "0.44323686", "0.44274348", "0.44272956", "0.44271564", "0.44223943", "0.44215298", "0.4418416", "0.4416327", "0.44160885", "0.44099668", "0.44068947", "0.44042352", "0.44013295", "0.4394999", "0.43905026", "0.4384507", "0.43784863", "0.4377843", "0.43739602", "0.43722105", "0.43639553", "0.4357605", "0.43565622" ]
0.46547773
42
verify the required parameter 'workspaceId' is set
@SuppressWarnings("rawtypes") private okhttp3.Call showModelStatsValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException { if (workspaceId == null) { throw new ApiException("Missing the required parameter 'workspaceId' when calling showModelStats(Async)"); } // verify the required parameter 'modelId' is set if (modelId == null) { throw new ApiException("Missing the required parameter 'modelId' when calling showModelStats(Async)"); } okhttp3.Call localVarCall = showModelStatsCall(workspaceId, modelId, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }", "public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }", "@Test\r\n \tpublic void testProjectID() {\n \t\tassertNull(localProject.getGlobalProjectId());\r\n \t}", "public String getWorkspaceId() {\n return workspaceId;\n }", "public String getWorkspaceId() {\n return this.workspaceId;\n }", "public UUID getWorkspaceId() {\n return workspaceId;\n }", "@Test\n\tpublic void getProjectByIdInvalid() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.getProjectById(7L);\n\t}", "@Test\n\tpublic void updateProjectsInvalidId() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.updateProject(7L, project);\n\t}", "@Test\n public void checkExistentWidgetAndParameter() throws Exception {\n\n driver = WidgetUtils.OpenWidgetEditMode(driver, wait, baseUrl, widgetName);\n\n //Step 3 - Check if the parameter exist in 'Settings'\n //Move to the iframe\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='solutionNavigatorAndContentPanel']/div[4]/table/tbody/tr[2]/td/div/div/table/tbody/tr/td/iframe\")));\n WebElement frameCDEDashboard = driver.findElement(By.xpath(\"//div[@id='solutionNavigatorAndContentPanel']/div[4]/table/tbody/tr[2]/td/div/div/table/tbody/tr/td/iframe\"));\n driver.switchTo().frame(frameCDEDashboard);\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='layoutPanelButton']\")));\n assertTrue(driver.findElement(By.xpath(\"//div[@class='layoutPanelButton']\")).isEnabled());\n //Press 'Settings'\n driver.findElement(By.xpath(\"//div[@id='headerLinks']/div[5]/a\")).click();\n wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.xpath(\"//div[@id='popup']\")));\n assertNotNull(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/input\")));\n //The parameter MUST be equal to the one set\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@id='widgetParameters']/div/span\")));\n assertEquals(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/span\")).getText(), paramName);\n //Press on the check box\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//span[@id='widgetParameters']/div/input\")));\n assertTrue(driver.findElement(By.xpath(\"//span[@id='widgetParameters']/div/input\")).isSelected());\n //Press button 'Cancel'\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='popupbuttons']/button[@id='popup_state0_buttonCancel']\")));\n driver.findElement(By.xpath(\"//div[@class='popupbuttons']/button[@id='popup_state0_buttonCancel']\")).click();\n\n\n //Step 4 - Click on Component Panel and check if the widget is listed\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@class='componentsPanelButton']\")));\n driver.findElement(By.xpath(\"//div[@class='componentsPanelButton']\")).click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/h3/span\")));\n driver.findElement(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/h3/span\")).click();\n //Getting the element where the widget created is displayed\n WebElement listOfWidgets = driver.findElement(By.xpath(\"//div[@id='cdfdd-components-palletePallete']/div[9]/div\"));\n //Check if the widget created is listed\n WebElement theWidgetCreated = listOfWidgets.findElement(By.xpath(\"//a[@class='tooltip' and contains(text(),'\" + widgetName + \"')]\"));\n assertNotNull(theWidgetCreated);\n assertEquals(theWidgetCreated.getText(), widgetName);\n\n\n //Step 5 - Click in the widget created and check if the widget is add at Components column and Properties\n theWidgetCreated.click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//table[@id='table-cdfdd-components-components']/tbody/tr[4]/td\")));\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//table[@id='table-cdfdd-components-properties']/tbody/tr[2]/td\")));\n assertEquals(driver.findElement(\n By.xpath(\"//table[@id='table-cdfdd-components-components']/tbody/tr[4]/td\")).getText(),\n widgetName + \" Widget\");\n assertEquals(driver.findElement(\n By.xpath(\"//table[@id='table-cdfdd-components-properties']/tbody/tr[2]/td\")).getText(),\n \"Parameter \" + paramName);\n }", "public void setWorkspace( Integer workspace ) {\n this.workspace = workspace;\n }", "public void setWorkspace(String workspace) {\n this.workspace = workspace;\n }", "protected static Workspace getWorkspace(String workspaceId)\n throws AnaplanAPIException {\n if (workspaceId == null || workspaceId.isEmpty()) {\n LOG.error(\"A workspace ID must be provided\");\n return null;\n }\n Workspace result = null;\n\n if (!noValidateWorkspace) {\n try {\n result = getService().getWorkspace(workspaceId);\n } catch (WorkspaceNotFoundException | UnknownAuthenticationException ignored) {\n }\n }\n if (result == null) {\n WorkspaceData data = new WorkspaceData();\n data.setId(workspaceId);\n try {\n result = new Workspace(getService(), data);\n } catch (UnknownAuthenticationException ignored) {\n }\n }\n return result;\n }", "public BaseMsg verifyProjectInfo(long projectId);", "private boolean assertIdAndVarName() {\r\n\t\tfinal boolean isValidId = assertNotEmpty(cmpCfg.getId(),\r\n\t\t\t\tYValidationAspekt.VIEW_ID_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValidVar = assertNotEmpty(cmpCfg.getVariableName(),\r\n\t\t\t\tYValidationAspekt.VIEW_VAR_NOT_SPECIFIED);\r\n\r\n\t\tfinal boolean isValid = isValidId && isValidVar;\r\n\t\treturn isValid;\r\n\r\n\t}", "private void validatePathParameters(final Integer datacenterId) throws NotFoundException\n {\n if (!service.isAssignedTo(datacenterId, RemoteServiceType.NODE_COLLECTOR))\n {\n throw new NotFoundException(APIError.NOT_ASSIGNED_REMOTE_SERVICE_DATACENTER);\n }\n }", "public void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public boolean isIdExist(int projectId) throws EmployeeManagementException;", "boolean canAccess(String workspaceName) throws NoSuchWorkspaceException, RepositoryException;", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "@Test\n\tpublic void deleteProjectsInvalidID() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.deleteProject(7L);\n\t}", "@Test\n public void testBuildWithValidParametersReturnsProjectExportParametersInstance() {\n // Arrange\n testling.setProjectName(\"validProjectName\")\n .setProjectExportPath(\"validProjectExportPath\");\n\n // Assert\n ProjectExportParameters parameters = testling.build();\n\n // Act\n assertThat(\"Expect not null.\", parameters, is(notNullValue()));\n }", "@Test\n\tpublic void testBuildWithValidParametersReturnsProjectExportParametersInstance() {\n\t\t// Arrange\n\t\ttestling.setProjectName(\"validProjectName\")\n\t\t\t\t.setProjectExportPath(\"validProjectExportPath\");\n\n\t\t// Assert\n\t\tProjectExportParameters parameters = testling.build();\n\n\t\t// Act\n\t\tassertThat(\"Expect not null.\", parameters, is(notNullValue()));\n\t}", "public void testPropFindForNonExistingWorkspace() throws Exception\n {\n String file = TestUtils.getFileName();\n\n ContainerResponse response =\n service(WebDAVMethods.PROPFIND, getPathWS() + \"_\" + file, \"\", null, null);\n assertEquals(HTTPStatus.CONFLICT, response.getStatus());\n }", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "public interface WorkspaceContext {\n\n\n /**\n * Retorna a representação do workspace.\n *\n * @return\n */\n WorkspaceRepresentation getWorkspace();\n\n /**\n * Define o projeto de trabalho.\n *\n * @param projectRepresentation\n */\n void setWorkingProject(ProjectRepresentation projectRepresentation);\n\n\n /**\n * Retorna o projeto de trabalho.\n *\n * @return\n */\n ProjectRepresentation getWorkingProject();\n}", "protected void addWorkspace( String workspaceName ) {\n }", "@Reference\n public void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public void testGetProjectPhasesLong_NotExist() throws Exception {\n Project project = persistence.getProjectPhases(33245);\n assertNull(\"Should return null.\", project);\n }", "protected void setWorkspace(Workspace workspace) {\n this.workspace = workspace;\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "@Test\n\tpublic void query_for_build_project_is_scoped_to_BuildProject() {\n\t\tEnvironmentContext cx = null;\n\t\ttry {\n\t\t\tcx = new EnvironmentContext();\n\t\t} catch (Exception e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t// And a new repository with that connection\n\t\tBuildProjectRepository repository = new BuildProjectRepositoryApiClient(cx);\n\t\t// When I build the query for story statuses\n\t\tQuery query = repository.buildQueryForAllBuildProjects();\n\t\t// Then the asset type is BuildProject\n\t\tassertEquals(\"BuildProject\", query.getAssetType().getToken());\n\t}", "private void checkAuthSessionId() {\n val auth = config.getString(\"authSessionId\");\n\n checkArgument(auth.length() > 10, \"auth string (sessionId) length is less than or equal to 10!\");\n }", "private void validateGetIdPInputValues(String resourceId) throws IdentityProviderManagementException {\n\n if (StringUtils.isEmpty(resourceId)) {\n String data = \"Invalid argument: Identity Provider resource ID value is empty\";\n throw IdPManagementUtil.handleClientException(IdPManagementConstants.ErrorMessage\n .ERROR_CODE_IDP_GET_REQUEST_INVALID, data);\n }\n }", "public boolean checkSelf() {\n\t\tboolean ok = true;\n\t\tif (controller == null) {\n\t\t\tSystem.err.println(\"CRParameters :: controller not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (scenario.length() == 0 && controller.getWorld().getHasScenarios()) {\n\t\t\tSystem.err.println(\"CRParameters :: scenario not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (reportFolderName.length() == 0) {\n\t\t\tSystem.err.println(\"CRParameters :: report folder not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (trialDuration <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: trial duration not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfRuns <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of runs not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfTrials <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of trials not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\treturn ok;\n\t}", "@Test\n\tpublic void testValidateSurveyResponseId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyResponseId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateSurveyResponseId(\"Invalid value.\");\n\t\t\t\tfail(\"The survey response ID was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\t// This may be any long value as it is simply a database ID.\n\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\tAssert.assertEquals(uuid, SurveyResponseValidators.validateSurveyResponseId(uuid.toString()));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "public FormValidation doCheckExecutionParameters(@QueryParameter String value, @QueryParameter String agentId) {\n if (StringUtils.isEmpty(value) && StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n JsonObject executionParams = null;\n try {\n executionParams = SerializationHelper.fromJson(value, JsonObject.class);\n\n // In case the value parameter is empty\n if (executionParams == null)\n return FormValidation.ok();\n\n } catch (JsonSyntaxException e) {\n return FormValidation.error(\"Invalid JSON object\");\n }\n\n // In case the user did not select agent from the dropdown and/or in the JSON object, return ok.\n if ((executionParams.get(\"agentId\") != null && StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString())) || StringUtils.isEmpty(agentId))\n return FormValidation.ok();\n\n // In case the user has selected the same agentId in the dropdown and in the JSON object, no need to show a warning\n if ((executionParams.get(\"agentId\") != null && StringUtils.equals(executionParams.get(\"agentId\").getAsString(), agentId)))\n return FormValidation.ok();\n\n // In case the user has selected two different agents in the dropdown and in the JSON object, show warning\n if (executionParams.get(\"agentId\") != null &&\n !StringUtils.isEmpty(executionParams.get(\"agentId\").getAsString()) &&\n !StringUtils.isEmpty(agentId))\n return FormValidation.warning(\"You've selected an agent and specified a different one in executionParameters. The job will be executed on the selected agent.\");\n\n return FormValidation.ok();\n }", "protected void removeWorkspace( String workspaceName ) {\n }", "public boolean isSetRunId() {\n return this.runId != null;\n }", "@Test\n public void testErrorMsgWhenProjectNameIsEmpty() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String testAccount = \"Account2\";\n createProject.setAccountDropDown(testAccount);\n createProject.clickCreateProject();\n\n //Then\n String expectedMessage = \"Enter a name for your project\";\n String actualMessage = createProject.getProjectTitleMessage();\n softAssert.assertEquals(expectedMessage, actualMessage);\n softAssert.assertEquals(createProject.getProjectNameTextFieldColor(), RED_COLOR);\n softAssert.assertAll();\n }", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "public void setStagingWorkspaceId(Long stagingWorkspaceId) {\n this.stagingWorkspaceId = stagingWorkspaceId;\n }", "@Override\n public String validNameProject(String name, Integer project_Oid) {\n return null;\n }", "public String getWorkspaceName() {\n return workspaceName;\n }", "@Test\n\tpublic void testValidateReturnId() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateReturnId(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateReturnId(\"Invalid value.\");\n\t\t\t\tfail(\"The return ID value was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\t\t\t\n\t\t\tAssert.assertEquals(true, SurveyResponseValidators.validateReturnId(\"true\"));\n\t\t\tAssert.assertEquals(false, SurveyResponseValidators.validateReturnId(\"false\"));\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorWorkspaceNull() {\n PlannedActivity plannedActivity = new PlannedActivity(0,\n new Site(\"factory\", \"area\"), new Typology(\"typology\"),\n \"desctiption\", 0, true, 1, new Procedure(\"name\", \"smp\"), null);\n\n }", "@Test\n public void testWithActiveRunNoRunName() {\n MlflowContext mlflow = setupMlflowContext();\n mlflow.setExperimentId(\"123\");\n when(mockClient.createRun(any(CreateRun.class)))\n .thenReturn(RunInfo.newBuilder().setRunId(\"test-id\").build());\n mlflow.withActiveRun(activeRun -> {\n Assert.assertEquals(activeRun.getId(), \"test-id\");\n });\n verify(mockClient).createRun(any(CreateRun.class));\n verify(mockClient).setTerminated(any(), any());\n }", "@Test\n public void getComputerBuildByIdentifier() {\n Iterable<ComputerBuild> computerBuilds = computerBuildService.getAllComputerBuildsFromUser(USER_NAME_TO_TEST_OWNERSHIP_ENDPOINTS);\n ComputerBuild retrievedBuild = computerBuilds.iterator().next();\n assertNotNull(retrievedBuild);\n\n ComputerBuild foundBuild = computerBuildService.getComputerBuildByBuildIdentifier(retrievedBuild.getBuildIdentifier());\n\n assertNotNull(foundBuild);\n assertEquals(retrievedBuild.getBuildIdentifier(), foundBuild.getBuildIdentifier());\n assertEquals(retrievedBuild.getUser().getUsername(), foundBuild.getUser().getUsername());\n\n }", "public void test_61843() {\n \t\t// create the project and manually give it a settings file\n \t\tfinal String qualifier = getUniqueString();\n \t\tfinal IProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\tIFile settingsFile = getFileInWorkspace(project, qualifier);\n \n \t\t// write some property values in the settings file\n \t\tProperties properties = new Properties();\n \t\tproperties.put(\"key\", \"value\");\n \t\tOutputStream output = null;\n \t\ttry {\n \t\t\tFile file = settingsFile.getLocation().toFile();\n \t\t\tfile.getParentFile().mkdirs();\n \t\t\toutput = new BufferedOutputStream(new FileOutputStream(file));\n \t\t\tproperties.store(output, null);\n \t\t} catch (FileNotFoundException e) {\n \t\t\tfail(\"1.0\", e);\n \t\t} catch (IOException e) {\n \t\t\tfail(\"1.1\", e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (output != null)\n \t\t\t\t\toutput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\t// ignore\n \t\t\t}\n \t\t}\n \n \t\t// add a log listener to ensure that no errors are reported silently\n \t\tILogListener logListener = new ILogListener() {\n \t\t\tpublic void logging(IStatus status, String plugin) {\n \t\t\t\tThrowable exception = status.getException();\n \t\t\t\tif (exception == null || !(exception instanceof CoreException))\n \t\t\t\t\treturn;\n \t\t\t\tif (IResourceStatus.WORKSPACE_LOCKED == ((CoreException) exception).getStatus().getCode())\n \t\t\t\t\tfail(\"3.0\");\n \t\t\t}\n \t\t};\n \n \t\t// listener to react to changes in the workspace\n \t\tIResourceChangeListener rclistener = new IResourceChangeListener() {\n \t\t\tpublic void resourceChanged(IResourceChangeEvent event) {\n \t\t\t\tnew ProjectScope(project).getNode(qualifier);\n \t\t\t}\n \t\t};\n \n \t\t// add the listeners\n \t\tPlatform.addLogListener(logListener);\n \t\tgetWorkspace().addResourceChangeListener(rclistener, IResourceChangeEvent.POST_CHANGE);\n \n \t\ttry {\n \t\t\tproject.refreshLocal(IResource.DEPTH_INFINITE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"4.0\", e);\n \t\t} finally {\n \t\t\tPlatform.removeLogListener(logListener);\n \t\t\tgetWorkspace().removeResourceChangeListener(rclistener);\n \t\t}\n \t}", "@Test\n public void testValidToken() {\n try {\n int coachId = authBO.getUserIdAndValidateToken(\"thisisaworkingtoken\");\n Assert.assertTrue(coachId == 1);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "String checkIfProjectExists(String projectKey, String projectName);", "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 }", "@Override\r\n protected CommandStatus<StclContext, PStcl> verifyContext(CommandContext<StclContext, PStcl> cmdContext, PStcl self) {\n _name = getParameter(cmdContext, 1, null);\r\n if (StringUtils.isEmpty(_name)) {\r\n return error(cmdContext, self, Status.NO_NAME_DEFINED, \"no name to copy directory\");\r\n }\r\n\r\n // other verification\r\n return super.verifyContext(cmdContext, self);\r\n }", "@Test\n public void test_access_to_modify_team_success() {\n try {\n Assert.assertTrue(authBO.hasAccessToModifyTeam(1, 1));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "private boolean configurationInWorkspace(URL url) {\n \t\treturn true;\n \t}", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExists() {\n assertThrows(NotFoundException.class, () -> projectService.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Test\n public void testNoCoverageId() throws Exception {\n MockHttpServletResponse response = getAsServletResponse(\"wcs?service=WCS&version=2.0.1&request=GetCoverage\");\n checkOws20Exception(response, 400, \"MissingParameterValue\", \"coverageId\");\n }", "void verifyOrCreateReport(String reportId);", "public void testGetProjectByNameDoesNotExist() throws Exception {\r\n ProjectServiceRemote projectService = lookupProjectServiceRemoteWithUserRole();\r\n\r\n // 1 is the user id\r\n try {\r\n projectService.getProjectByName(\"xxxxx\", 1);\r\n fail(\"ProjectNotFoundFault expected.\");\r\n } catch (ProjectNotFoundFault e) {\r\n // expected\r\n }\r\n }", "@Test\n public void testFailureWithoutObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, \"\", 400);\n }", "private boolean ensureWorkspaceExists(String name, Credentials credentials) {\r\n\t\tSession sess = null;\r\n\t\ttry {\r\n\t\t\tsess = repository.login(credentials);\r\n\t\t\tString[] wsnames = sess.getWorkspace()\r\n\t\t\t\t\t.getAccessibleWorkspaceNames();\r\n\t\t\tif (inArr(name, wsnames)) {\r\n\t\t\t\t// workspace exists\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tlog.info(\" Creating Repository workspace \" + name);\r\n\t\t\t\tsess.getWorkspace().createWorkspace(name);\r\n\t\t\t}\r\n\t\t} catch (LoginException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t} catch (RepositoryException e) {\r\n\t\t\t// ugly check, we are getting something like workspace 'wsname'\r\n\t\t\t// already exists.\r\n\t\t\tif (e.getMessage().indexOf(\"already exists\") > 0) {\r\n\t\t\t\t// ignore exteption\r\n\t\t\t} else {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif (sess != null) {\r\n\t\t\t\tsess.logout();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Test\n public void allWorkspacesTest() throws ApiException {\n List<Workspace> response = api.allWorkspaces();\n\n // TODO: test validations\n }", "@Test\n public void testFailureWithNonexistantObjectId() throws URISyntaxException, IOException {\n testCantView(adminLogin, reqFactory.createIdApiRequest(Types.PACKAGE).execute(hc), 404);\n }", "void checkStationId(int lineCount, String testStationId) {\n if (!stationId.equals(testStationId)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Station Id does not match previous station record \" +\n stationId + \": \" + testStationId);\n } // if (!stationId.equals(station.getStationId(\"\")))\n }", "public String getWorkspace() {\n return workspace;\n }", "protected void verifyRequestInputModelNone( String apiName)\n {\n // Given...\n OpenAPI api = readApi( apiName);\n\n // When...\n SystemInputDef inputDef = TcasesOpenApi.getRequestInputModel( api);\n\n // Then...\n assertThat( apiName + \" input model\", inputDef, is( nullValue()));\n }", "@Test\n public void testNeighborSystemId() throws Exception {\n isisNeighbor.setNeighborSystemId(systemId);\n result1 = isisNeighbor.neighborSystemId();\n assertThat(result1, is(systemId));\n }", "void commit(String workspace);", "protected void validateCredentials() throws BittrexApiException {\n String humanMessage = \"Please check environment variables or VM options\";\n if (Strings.isNullOrEmpty(this.getApiKey()))\n throw new BittrexApiException(\"Missing BITTREX_API_KEY. \" + humanMessage);\n if (Strings.isNullOrEmpty(this.getSecretKey()))\n throw new BittrexApiException(\"Missing BITTREX_SECRET_KEY. \" + humanMessage);\n }", "@Test\n\tpublic void testGetBuildVersion() {\n\t\tString buildVersion = rmitAnalyticsModel.getBuildVersion();\n\t\tAssert.assertNotNull(buildVersion);\n\t\tAssert.assertTrue(buildVersion.isEmpty());\n\t}", "@Test\n public void enableDebuggerTest() {\n String customerId = null;\n // Void response = api.enableDebugger(customerId);\n\n // TODO: test validations\n }", "public void checkParameters() {\n }", "public Workspace getWorkspace() {\n return workspace;\n }", "private void verifyWorkspace(long[][][] ids) {\n ArrayList<Long> allScreens = LauncherModel.loadWorkspaceScreensDb(getMockContext());\n assertEquals(ids.length, allScreens.size());\n int total = 0;\n\n for (int i = 0; i < ids.length; i++) {\n long screenId = allScreens.get(i);\n for (int y = 0; y < ids[i].length; y++) {\n for (int x = 0; x < ids[i][y].length; x++) {\n long id = ids[i][y][x];\n\n Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI,\n new String[]{LauncherSettings.Favorites._ID},\n \"container=-100 and screen=\" + screenId +\n \" and cellX=\" + x + \" and cellY=\" + y, null, null, null);\n if (id == -1) {\n assertEquals(0, c.getCount());\n } else {\n assertEquals(1, c.getCount());\n c.moveToNext();\n assertEquals(id, c.getLong(0));\n total++;\n }\n c.close();\n }\n }\n }\n\n // Verify that not other entry exist in the DB.\n Cursor c = getMockContentResolver().query(LauncherSettings.Favorites.CONTENT_URI,\n new String[]{LauncherSettings.Favorites._ID},\n \"container=-100\", null, null, null);\n assertEquals(total, c.getCount());\n c.close();\n }", "@Override\r\n\tpublic Workspace getWorkspace() {\n\t\treturn null;\r\n\t}", "@Test\n public void postTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.postTemplateProgrammerProject(request);\n\n // TODO: test validations\n }", "private void validateITResource() {\n // TODO Auto-generated method stub\n \n }", "public static boolean isValidDivisionId(int divisionId) {\n return divisionId > 0 || divisionId == DIVISION_TEST || divisionId == DIVISION_GLOBAL;\n }", "private void assert_validPID(int pid) throws IllegalArgumentException{\n\t\tif(!validPID(pid)){\n\t\t\tthrow new IllegalArgumentException(\"Tried to get a property from layer '\"+ name\n\t\t\t\t\t+\"' with an invalid property ID: \"+pid);\n\t\t}\n\t}", "private boolean checkInstanceLocation(boolean show_login,\n final boolean force_prompt,\n URL default_workspace, String username, String password,\n Map<String, Object> parameters)\n {\n // Was \"-data @none\" specified on command line?\n final Location instanceLoc = Platform.getInstanceLocation();\n\n if (instanceLoc == null)\n {\n MessageDialog.openError(null,\n \"No workspace\", //$NON-NLS-1$\n \"Cannot run without a workspace\"); //$NON-NLS-1$\n return false;\n }\n\n // -data \"/some/path\" was provided...\n if (instanceLoc.isSet())\n {\n try\n { // Lock\n if (instanceLoc.lock())\n return true;\n // Two possibilities:\n // 1. directory is already in use\n // 2. directory could not be created\n final File ws_dir = new File(instanceLoc.getURL().getFile());\n if (ws_dir.exists())\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_InUseErrorTitle,\n NLS.bind(org.csstudio.platform.workspace.Messages.Workspace_InUseError,\n ws_dir.getCanonicalPath()));\n else\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_DirectoryErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_DirectoryError);\n }\n catch (IOException ex)\n {\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_LockErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_LockError\n + ex.getMessage());\n }\n return false;\n }\n\n // -data @noDefault or -data not specified, prompt and set\n if (default_workspace == null)\n default_workspace = instanceLoc.getDefault();\n\n final WorkspaceInfo workspace_info =\n new WorkspaceInfo(default_workspace, !force_prompt);\n\n // Prompt in any case? Or did user decide to be asked again?\n boolean show_Workspace = force_prompt | workspace_info.getShowDialog();\n\n //if no user name provided, display last login user.\n if(username == null)\n username = WorkspaceIndependentStore.readLastLoginUser();\n\n //initialize startupHelper\n StartupHelper startupHelper = new StartupHelper(null, force_prompt,\n workspace_info, username, password, show_login, show_Workspace);\n\n while (true)\n {\n startupHelper.setShow_Login(show_login);\n startupHelper.setShow_Workspace(show_Workspace);\n\n if (show_Workspace || show_login)\n {\n if (! startupHelper.openStartupDialog())\n return false; // canceled\n\n //get user name and password from startup dialog\n if(show_login) {\n username = startupHelper.getUserName();\n password = startupHelper.getPassword();\n }\n }\n // In case of errors, we will have to ask the workspace,\n // but don't bother to ask user name and password again.\n show_Workspace = true;\n show_login = false;\n\n try\n {\n // the operation will fail if the url is not a valid\n // instance data area, so other checking is unneeded\n URL workspaceUrl = new URL(\"file:\" + workspace_info.getSelectedWorkspace()); //$NON-NLS-1$\n if (instanceLoc.set(workspaceUrl, true)) // set & lock\n {\n workspace_info.writePersistedData();\n parameters.put(WORKSPACE, workspaceUrl);\n return true;\n }\n }\n catch (Exception ex)\n {\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_GenericErrorTitle,\n org.csstudio.platform.workspace.Messages.Workspace_GenericError + ex.getMessage());\n return false;\n }\n // by this point it has been determined that the workspace is\n // already in use -- force the user to choose again\n show_login = false;\n MessageDialog.openError(null,\n org.csstudio.platform.workspace.Messages.Workspace_InUseErrorTitle,\n NLS.bind(org.csstudio.platform.workspace.Messages.Workspace_InUseError,\n workspace_info.getSelectedWorkspace()));\n }\n }", "@Test\n void testNonEmptyConstructor() {\n assertNotNull(isLockedRequest2);\n assertTrue(isLockedRequest2.getToken().equals(token)\n && isLockedRequest2.getId() == id);\n }", "@Then(\"^Validate customer id is created$\")\r\n\tpublic void validate_customer_id_is_created() throws Throwable {\n\t\tAssert.assertTrue(response.jsonPath().get(\"id\").equals(new PropertFileReader().getTempData(\"custId\")));\r\n\t\t\r\n\t}", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExistsMockVersion() {\n assertThrows(NotFoundException.class, () -> projectServiceMock.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Override\r\n\tpublic void testInvalidId() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testInvalidId();\r\n\t\t}\r\n\t}", "public Workspace build() {\n if (properties == null) {\n properties = new HashMap<>();\n }\n if (workspaceId == null || workspaceStage == null) {\n throw new MissingRequiredFieldsException(\"Workspace requires id and stage\");\n }\n return new Workspace(\n workspaceId,\n displayName,\n description,\n spendProfileId,\n properties,\n workspaceStage,\n gcpCloudContext);\n }", "@Test\n public void given_devEnvironmentWithPathVariable_when_callEndPointUpdateStudent_then_returnStatus200() throws Exception {\n\n Mockito.when(studentRepo.findById(ArgumentMatchers.anyLong()))\n .thenReturn(Optional.of(STUDENT));\n\n RequestBuilder request = MockMvcRequestBuilders\n .delete(\"/students/1\")\n .accept(MediaType.APPLICATION_JSON_VALUE)\n .contentType(MediaType.APPLICATION_JSON_VALUE);\n\n mockMvc.perform(request)\n .andExpect(status().isOk())\n .andDo(MockMvcResultHandlers.print())\n .andReturn();\n\n }", "@Test\r\n\tpublic void Test_ID() {\r\n\t\tResponse resp = given().\r\n\t\t\t\tparam(\"nasa_id\", \"PIA12235\").\r\n\t\t\t\twhen().\r\n\t\t\t\tget(endpoint);\r\n\t\t\t\tSystem.out.println(resp.getStatusCode());\r\n\t\t\t\tAssert.assertEquals(resp.getStatusCode(), 200);\r\n\t}", "@Test(expected = CopilotServiceInitializationException.class)\n public void testCheckNullForInjectedValueFailure() {\n Helper.checkNullForInjectedValue(null, \"obj\");\n }", "@Test\n public void commandIdTest() {\n // TODO: test commandId\n }", "static void checkId(final long id, final String paramName) {\r\n if (id <= 0) {\r\n throw new IllegalArgumentException(\"The '\" + paramName\r\n + \"' should be above 0.\");\r\n }\r\n }", "public Long getStagingWorkspaceId() {\n return stagingWorkspaceId;\n }", "public void requirePatientId() {\n hasPatientIdParam = true;\n }", "@Override\n\tpublic boolean hasParameter(String id) {\n\t\treturn false;\n\t}", "@Test\n public void cityNotNull()\n {\n assertNotNull(_city);\n }", "@When(\"^I enter valid credentia ls$\")\n public void iEnterValidCredentials() throws Throwable {\n throw new PendingException();\n }", "private void checkLegal(int glId)\n {\n if (glId == GL2.GL_POLYGON_MODE || glId == GL2.GL_COLOR_MATERIAL_PARAMETER)\n return;\n if (GLState.TEXTURE_GROUP <= glId && glId < GLState.TEXTURE_GROUP + GLState.TEXTURE_GROUP_SIZE)\n return;\n throw new IllegalArgumentException(\"GLStateComponentII: unknown glId: \" + glId);\n }", "@Test\n\tpublic void testValidateSurveyIds() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyIds(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\tfor(String simpleValidList : ParameterSets.getSimpleValidLists()) {\n\t\t\t\ttry {\n\t\t\t\t\tSurveyResponseValidators.validateSurveyIds(simpleValidList);\n\t\t\t\t}\n\t\t\t\tcatch(ValidationException e) {\n\t\t\t\t\tfail(\"A valid list failed validation.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}", "@Test\n public void putTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.putTemplateProgrammerProject(request);\n\n // TODO: test validations\n }", "public void validate(String id, String pw) throws RemoteException;", "public void testCheckinProjectFlags() {\n String[] sTestCmdLine = { \"soscmd\", \"-command\", \"CheckInProject\",\n \"-recursive\", \"-server\", SOS_SERVER_PATH, \"-name\", SOS_USERNAME,\n \"-password\", \"\", \"-database\", VSS_SERVER_PATH , \"-project\",\n \"$\"+VSS_PROJECT_PATH, \"\", \"\", \"-soshome\", SOS_HOME, \"-workdir\",\n project.getBaseDir().getAbsolutePath(), \"-log\", SRC_COMMENT, };\n\n // Set up a SOSCheckin task\n sosCheckin.setProject(project);\n sosCheckin.setVssServerPath(VSS_SERVER_PATH);\n sosCheckin.setSosServerPath(SOS_SERVER_PATH);\n sosCheckin.setProjectPath(VSS_PROJECT_PATH);\n sosCheckin.setComment(SRC_COMMENT);\n sosCheckin.setUsername(SOS_USERNAME);\n sosCheckin.setSosHome(SOS_HOME);\n sosCheckin.setNoCache(true);\n sosCheckin.setNoCompress(false);\n sosCheckin.setVerbose(false);\n sosCheckin.setRecursive(true);\n\n commandline = sosCheckin.buildCmdLine();\n String[] sGeneratedCmdLine = commandline.getCommandline();\n\n int i = 0;\n while (i < sTestCmdLine.length) {\n try {\n assertEquals(\"CheckInProject arg # \" + String.valueOf(i),\n sTestCmdLine[i],\n sGeneratedCmdLine[i]);\n i++;\n } catch (ArrayIndexOutOfBoundsException aioob) {\n fail(\"CheckInProject missing arg\");\n }\n\n }\n if (sGeneratedCmdLine.length > sTestCmdLine.length) {\n // We have extra elements\n fail(\"CheckInProject extra args\");\n }\n }", "@Test(groups = { \"wso2.esb\" }, description = \"agilezen {listProjects} integration test with mandatory parameters.\")\n public void testListProjectsWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:listProjects\");\n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_listProjects_mandatory.json\");\n \n connectorProperties.setProperty(\"projectId\", esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0)\n .getString(\"id\"));\n \n final String apiEndPoint = apiRequestUrl + \"/projects\";\n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"page\"), apiRestResponse.getBody().getString(\"page\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"pageSize\"), apiRestResponse.getBody().getString(\n \"pageSize\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0).getString(\"id\"),\n apiRestResponse.getBody().getJSONArray(\"items\").getJSONObject(0).getString(\"id\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"totalItems\"), apiRestResponse.getBody().getString(\n \"totalItems\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONArray(\"items\").length(), apiRestResponse.getBody()\n .getJSONArray(\"items\").length());\n \n }" ]
[ "0.65769523", "0.63816416", "0.6199737", "0.59761405", "0.59368694", "0.5839368", "0.5567419", "0.54488504", "0.527746", "0.52685773", "0.5195171", "0.5161648", "0.51206905", "0.5089432", "0.50643146", "0.5059629", "0.5057854", "0.50335026", "0.4998055", "0.49727345", "0.4972389", "0.4957315", "0.49191728", "0.49184918", "0.49053478", "0.4905189", "0.48878652", "0.4878646", "0.48585176", "0.4847079", "0.4847079", "0.48303923", "0.48077723", "0.48058602", "0.48047128", "0.47996646", "0.47980225", "0.476472", "0.47630438", "0.47508025", "0.475032", "0.47500163", "0.47444096", "0.47344425", "0.47063488", "0.47047442", "0.47029513", "0.46958926", "0.46956486", "0.46882787", "0.4683544", "0.46657544", "0.4664292", "0.46636048", "0.46620858", "0.46541545", "0.4652064", "0.46444118", "0.4639281", "0.46384007", "0.46342343", "0.463301", "0.46284482", "0.462082", "0.46169397", "0.4613154", "0.46030325", "0.4596472", "0.4596067", "0.45866662", "0.45730188", "0.45692503", "0.456808", "0.45570433", "0.45542634", "0.4546817", "0.45377353", "0.45351306", "0.45342433", "0.4521675", "0.45205203", "0.451869", "0.4512759", "0.45110384", "0.45107248", "0.45095125", "0.45081636", "0.4507399", "0.45012647", "0.4495072", "0.4487303", "0.44853508", "0.44851595", "0.44843093", "0.44791296", "0.4477723", "0.44771564", "0.44756317", "0.4470055", "0.44677323", "0.44676253" ]
0.0
-1
Shows model stats Shows the model score and last training time
public ModelApiResponse showModelStats(String workspaceId, String modelId) throws ApiException { ApiResponse<ModelApiResponse> localVarResp = showModelStatsWithHttpInfo(workspaceId, modelId); return localVarResp.getData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void statistics(){\n System.out.println(this.scoreboard.toString());\n }", "protected float computeModelScoreOnTraining() {\n/* 508 */ float s = computeModelScoreOnTraining(0, this.samples.size() - 1, 0);\n/* 509 */ s /= this.samples.size();\n/* 510 */ return s;\n/* */ }", "public void stats() {\n\t\tSystem.out.println(\"The score is: \" + score \n\t\t\t\t+ \"\\nNumber of Astronauts rescused: \" + rescuedAstronauts \n\t\t\t\t+ \"\\nNumber of Astronauts roaming: \" + roamingAstronauts\n\t\t\t\t+ \"\\nNumber of Aliens rescued: \" + rescuedAliens\n\t\t\t\t+ \"\\nNumber of Aliens roaming: \" + roamingAliens);\n\t}", "protected float computeModelScoreOnValidation() {\n/* 549 */ float score = computeModelScoreOnValidation(0, this.validationSamples.size() - 1);\n/* 550 */ return score / this.validationSamples.size();\n/* */ }", "public static void display() { System.err.println(\"Train parameters: smooth=\" + smoothing + \" PA=\" + PA + \" GPA=\" + gPA + \" selSplit=\" + selectiveSplit + \" (\" + selectiveSplitCutOff + (deleteSplitters != null ? \"; deleting \" + deleteSplitters : \"\") + \")\" + \" mUnary=\" + markUnary + \" mUnaryTags=\" + markUnaryTags + \" sPPT=\" + splitPrePreT + \" tagPA=\" + tagPA + \" tagSelSplit=\" + tagSelectiveSplit + \" (\" + tagSelectiveSplitCutOff + \")\" + \" rightRec=\" + rightRec + \" leftRec=\" + leftRec + \" xOverX=\" + xOverX + \" collinsPunc=\" + collinsPunc + \" markov=\" + markovFactor + \" mOrd=\" + markovOrder + \" hSelSplit=\" + hSelSplit + \" (\" + HSEL_CUT + \")\" + \" compactGrammar=\" + compactGrammar() + \" leaveItAll=\" + leaveItAll + \" postPA=\" + postPA + \" postGPA=\" + postGPA + \" selPSplit=\" + selectivePostSplit + \" (\" + selectivePostSplitCutOff + \")\" + \" tagSelPSplit=\" + tagSelectivePostSplit + \" (\" + tagSelectivePostSplitCutOff + \")\" + \" postSplitWithBase=\" + postSplitWithBaseCategory + \" fractionBeforeUnseenCounting=\" + fractionBeforeUnseenCounting + \" openClassTypesThreshold=\" + openClassTypesThreshold); }", "public void printStatus() {\n\t\tSystem.out.println(\"Current : \"+current+\"\\n\"\n\t\t\t\t+ \"Tour restant : \"+nb_rounds+\"\\n\"\n\t\t\t\t\t\t+ \"Troupe restant : \"+nb_to_train);\n\t}", "public void reportStats() {\n System.out.println(\"Number of requests: \" + (requestCount - warmUpRequests));\n System.out.println(\"Number of hits: \" + hitCount);\n System.out.println(\"hit ratio: \" + (double) hitCount / (requestCount - warmUpRequests));\n System.out.println(\"Average hit cost: \" + (double) hitCost / hitCount);\n }", "public void printStats() {\n\t\tSystem.out.println(\"============= RULEGROWTH - STATS ========\");\n\t\tSystem.out.println(\"Sequential rules count: \" + ruleCount);\n\t\tSystem.out.println(\"Total time: \" + (timeEnd - timeStart) + \" ms\");\n\t\tSystem.out.println(\"Max memory: \" + MemoryLogger.getInstance().getMaxMemory());\n\t\tSystem.out.println(\"==========================================\");\n\t}", "public void getResults() {\n\t\tSystem.out.println(\"|V| : \" + g.getV());\n\t\tSystem.out.println(\"|E| : \" + g.getE());\n\t\tSystem.out.println(\"Max flow : \" + g.getVertex(sink).e);\n\t\tSystem.out.println(\"Run time : \" + (System.currentTimeMillis()-timeStart) + \" ms\"+\"\\n\");\n\t}", "private void train() throws IOException {\r\n\r\n // Set Listeners, to see results of evaluation during training process and testing\r\n vgg16Transfer.setListeners(new ScoreIterationListener(100));\r\n trainWriter.write(\"\\n Train model....\");\r\n System.out.println(\"\\n Train model....\");\r\n int iterationsCounter = 0;\r\n // Go through all data \"epochs\" - number of times\r\n for(int n = 0; n < epochs; n++) {\r\n System.out.println(String.format(\"Epoch %d started training\", n + 1));\r\n trainWriter.write(String.format(\"Epoch %d started training\", n + 1));\r\n\r\n //Reset training iterator to the new epoch\r\n trainIterator.reset();\r\n // Go through all data once, till it's end\r\n while (trainIterator.hasNext()) {\r\n iterationsCounter++;\r\n trainingData = trainIterator.next();\r\n normalizer.fit(trainingData);\r\n vgg16Transfer.fit(trainingData);\r\n System.out.println(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n\r\n }\r\n System.out.println(String.format(\"Epoch %d finished training\", n + 1));\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n // Get results and check them\r\n Evaluation eval = new Evaluation(numLabels);\r\n testIterator.reset();\r\n while(testIterator.hasNext()) {\r\n testData = testIterator.next();\r\n normalizer.fit(testData);\r\n INDArray features = testData.getFeatures();\r\n INDArray labels = testData.getLabels();\r\n INDArray predicted = vgg16Transfer.outputSingle(features);\r\n eval.eval(labels, predicted);\r\n }\r\n System.out.println(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n System.out.println(eval.stats());\r\n System.out.println(eval.confusionToString());\r\n trainWriter.write(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n trainWriter.write(eval.stats());\r\n trainWriter.write(eval.confusionToString());\r\n }\r\n System.out.println(\"\\n *** Training finished! *** \");\r\n trainWriter.write(\"\\n *** Training finished! *** \");\r\n }", "public void buildModel() {\n double loss_pre = Double.MAX_VALUE;\n for (int iter = 0; iter < maxIter; iter ++) {\n Long start = System.currentTimeMillis();\n if (showProgress)\n System.out.println(\"Iteration \"+(iter+1)+\" started\");\n // Update user latent vectors\n IntStream.range(0,userCount).parallel().peek(i->update_user(i)).forEach(j->{});\n /*\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n */\n if (showProgress) {\n System.out.println(\"Users updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n IntStream.range(0,itemCount).parallel().peek(i->update_item(i)).forEach(j->{});\n // Update item latent vectors\n /*\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n */\n if (showProgress) {\n System.out.println(\"Items updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n // Show loss\n if (showLoss)\n loss_pre = showLoss(iter, start, loss_pre);\n\n\n } // end for iter\n\n }", "public void printModelInfo() {\n\t\tDebug.info(\"Jay3dModel\",\n\t\t\t\t\"Obj Name: \\t\\t\" + name + \"\\n\" +\n\t\t\t\t\"V Size: \\t\\t\" + modelVertices.size() + \"\\n\" +\n\t\t\t\t\"Vt Size: \\t\\t\" + textureVertices.size() + \"\\n\" +\n\t\t\t\t\"Vn Size: \\t\\t\" + normalVertices.size() + \"\\n\" +\n\t\t\t\t\"G Size: \\t\\t\" + groups.size() + \"\\n\" +\n\t\t\t\t\"S Size: \\t\\t\" + getSegmentCount() + \"\\n\" + \n\t\t\t\t\"F Size: \\t\\t\" + ((segments.size()>0)?segments.get(0).faces.size():0) + \"\\n\");\n\t}", "public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}", "public void displayModelDetails() {\n System.out.println(\"Name: \" + getFirstName() + \" \" + getLastName());\n System.out.println(\"Height: \" + getHeightInFeetAndInches());\n System.out.println(\"Weight: \" + getWeight() + \" pounds\");\n String travelMessage = canTravel ? \"yep\" : \"nope\";\n System.out.println(\"Travels: \" + travelMessage);\n String smokeMessage = smokes ? \"yep\" : \"nope\";\n System.out.println(\"Smokes\" + smokeMessage);\n System.out.println(\"Hourly rate: $\" + calculatePayDollarsPerHour());\n }", "public void printStats() {\n\t\tSystem.out.println(\"========== LCMFreq v0.96r18 - STATS ============\");\n\t\tSystem.out.println(\" Freq. itemsets count: \" + frequentCount);\n\t\tSystem.out.println(\" Total time ~: \" + (endTimestamp - startTimestamp)\n\t\t\t\t+ \" ms\");\n\t\tSystem.out.println(\" Max memory:\" + MemoryLogger.getInstance().getMaxMemory());\n\t\tSystem.out.println(\"=====================================\");\n\t}", "public void displayResults() {\r\n Preferences.debug(\" ******* FitMultiExponential ********* \\n\\n\", Preferences.DEBUG_ALGORITHM);\r\n dumpTestResults();\r\n }", "@Override\n public String toString() {\n return \"BestMean convergence stoptest\";\n }", "private static void printStats()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords found: \" + keywordHits);\r\n\t\tSystem.out.println(\"Links found: \" + SharedLink.getLinksFound());\r\n\t\tSystem.out.println(\"Pages found: \" + SharedPage.getPagesDownloaded());\r\n\t\tSystem.out.println(\"Failed downloads: \" + SharedPage.getFailedDownloads());\r\n\t\tSystem.out.println(\"Producers: \" + fetchers);\r\n\t\tSystem.out.println(\"Consumers: \" + parsers);\r\n\t}", "public void show() {\n\t\t\n\t\tSystem.out.println(\"time (tree setup) = \" + treeSetup + \" ms\");\n\t\tSystem.out.println(\"time (average search) = \" + (totalSearch/(float)countSearch) + \" ms\");\n\t\tSystem.out.println(\"time (average at) = \" + (totalAt/(float)countAt) + \" ms\");\n \t}", "public void printStatistics() {\n\t// Skriv statistiken samlad så här långt\n stats.print();\n }", "@Tutorial(showSource = true, showSignature = true, showLink = true, linkPrefix = \"src/test/java/\")\n @Override\n public void process(ProcessorContext context)\n {\n samples.add(model.likelihood.parameters.max.getValue() - observation.getValue());\n }", "public void updatePlayerModel() {\n double average = 0.0;\n for (int i = 0; i < playerModelDiff1.size(); i++) {\n average += (double) playerModelDiff1.get(i);\n }\n if ( playerModelDiff1.size() > 0 )\n average = average / playerModelDiff1.size();\n playerModel[0] = average;\n\n //Update playerModel[1] - difficulty 4\n average = 0.0;\n for (int i = 0; i < playerModelDiff4.size(); i++) {\n average += (double) playerModelDiff4.get(i);\n }\n if ( playerModelDiff4.size() > 0 )\n average = average / playerModelDiff4.size();\n playerModel[1] = average;\n\n //Update playerModel[2] - difficulty 7\n average = 0.0;\n for (int i = 0; i < playerModelDiff7.size(); i++) {\n average += (double) playerModelDiff7.get(i);\n }\n if ( playerModelDiff7.size() > 0 )\n average = average / playerModelDiff7.size();\n playerModel[2] = average;\n }", "public static void main(String[] args) throws Exception {\n final int numRows = 28;\n final int numColumns = 28;\n int outputNum = 10; // number of output classes\n int batchSize = 128; // batch size for each epoch\n int rngSeed = 123; // random number seed for reproducibility\n int numEpochs = 15; // number of epochs to perform\n String modelPath = \"モデルパスを入力\";\n\n //Get the DataSetIterators:\n DataSetIterator mnistTrain = new MnistDataSetIterator(batchSize, true, rngSeed);\n DataSetIterator mnistTest = new MnistDataSetIterator(batchSize, false, rngSeed);\n\n\n System.out.println(\"Build model....\");\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(rngSeed) //include a random seed for reproducibility\n // use stochastic gradient descent as an optimization algorithm\n .updater(new Nesterovs(0.006, 0.9))\n .l2(1e-4)\n .list()\n .layer(new DenseLayer.Builder() //create the first, input layer with xavier initialization\n .nIn(numRows * numColumns)\n .nOut(1000)\n .activation(Activation.RELU)\n .weightInit(WeightInit.XAVIER)\n .build())\n .layer(new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD) //create hidden layer\n .nIn(1000)\n .nOut(outputNum)\n .activation(Activation.SOFTMAX)\n .weightInit(WeightInit.XAVIER)\n .build())\n .build();\n\n\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\n model.init();\n //print the score with every 1 iteration\n UIServer uiServer = UIServer.getInstance();\n InMemoryStatsStorage statsStorage = new InMemoryStatsStorage();\n uiServer.attach(statsStorage);\n model.setListeners(new StatsListener(statsStorage),new ScoreIterationListener(1));\n\n System.out.println(\"Train model....\");\n model.fit(mnistTrain, numEpochs);\n\n\n\n\n System.out.println(\"Evaluate model....\");\n Evaluation eval = model.evaluate(mnistTest);\n System.out.println(eval.stats());\n ModelSerializer.writeModel(model, new File(modelPath), false);\n System.out.println(\"****************Example finished********************\");\n\n }", "private void printStats()\n\t{\n\t\t// X\n\t\tSystem.out.println(\"X:\");\n\t\tfor(int i = 0; i < xPosList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(xPosList.get(i));\n\t\t}\n\n\t\t// Y\n\t\tSystem.out.println(\"Y:\");\n\t\tfor(int i = 0; i < yPosList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(yPosList.get(i));\n\t\t}\n\n\t\t// Time\n\t\tSystem.out.println(\"Time:\");\n\t\tfor(int i = 0; i < timeList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(timeList.get(i));\n\t\t}\n\t}", "void printStats();", "public void printStats() {\n\n System.out.println(\"Number of Users Arrived: \" + numIn);\n System.out.println(\"Number of Users Exited: \" + numOut);\n System.out.println(\"Average Time Spent Waiting for Cab: \" + (totTimeWait / numIn));\n if (numOut != 0) {\n System.out.println(\"Average Time Spent Waiting and Travelling: \" + (totTime / numOut));\n }\n }", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "void statistics();", "private final void updateStatistics(){\r\n\t\tstatisticsText_.setLength(0); \t//reset\r\n\t\t\r\n\t\tRegion[][] regions = Map.getInstance().getRegions();\r\n\t\tVehicle[] vehicles;\r\n\t\tVehicle vehicle;\r\n\t\tint i, j, k;\r\n\t\tint activeVehicles = 0;\r\n\t\tint travelledVehicles = 0;\r\n\t\tint wifiVehicles = 0;\r\n\t\tlong messagesCreated = 0;\r\n\t\tlong IDsChanged = 0;\r\n\t\tdouble messageForwardFailed = 0;\r\n\t\tdouble travelDistance = 0;\r\n\t\tdouble travelTime = 0;\r\n\t\tdouble speed = 0;\r\n\t\tdouble knownVehicles = 0;\r\n\t\tfor(i = 0; i < regions.length; ++i){\r\n\t\t\tfor(j = 0; j < regions[i].length; ++j){\r\n\t\t\t\tvehicles = regions[i][j].getVehicleArray();\r\n\t\t\t\tfor(k = 0; k < vehicles.length; ++k){\r\n\t\t\t\t\tvehicle = vehicles[k];\r\n\t\t\t\t\tif(vehicle.getTotalTravelTime() > 0){\r\n\t\t\t\t\t\t++travelledVehicles;\r\n\t\t\t\t\t\ttravelDistance += vehicle.getTotalTravelDistance();\r\n\t\t\t\t\t\ttravelTime += vehicle.getTotalTravelTime();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(vehicle.isActive()){\r\n\t\t\t\t\t\t++activeVehicles;\r\n\t\t\t\t\t\tspeed += vehicle.getCurSpeed();\r\n\t\t\t\t\t\tif(vehicle.isWiFiEnabled()){\r\n\t\t\t\t\t\t\t++wifiVehicles;\r\n\t\t\t\t\t\t\tmessageForwardFailed += vehicle.getKnownMessages().getFailedForwardCount();\r\n\t\t\t\t\t\t\tknownVehicles += vehicle.getKnownVehiclesList().getSize();\r\n\t\t\t\t\t\t\tIDsChanged += vehicle.getIDsChanged();\r\n\t\t\t\t\t\t\tmessagesCreated += vehicle.getMessagesCreated();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.currentTime\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(Renderer.getInstance().getTimePassed()));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.activeVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(activeVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageSpeed\")); //$NON-NLS-1$\r\n\t\tif(activeVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(speed/activeVehicles/100000*3600));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" km/h\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelDistance\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelDistance/travelledVehicles/100));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" m\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelTime\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelTime/travelledVehicles/1000));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" s\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.wifiVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(wifiVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageKnownVehicles\")); //$NON-NLS-1$\r\n\t\tif(wifiVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(knownVehicles/wifiVehicles));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.uniqueMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messagesCreated));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.failedMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messageForwardFailed));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.totalIDchanges\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(IDsChanged));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\t\r\n\t\tstatisticsTextArea_.setText(statisticsText_.toString());\r\n\t}", "java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();", "private void test() {\n\t\tlong startTime = System.currentTimeMillis();\n\t\tBpmnModelInstance modelInstance = Bpmn.readModelFromFile(loadedFile);\n\t\tJsonEncoder jsonEncoder = new JsonEncoder(loadedFile.getName());\n\t\tBpmnBasicMetricsExtractor basicExtractor = new BpmnBasicMetricsExtractor(modelInstance, jsonEncoder);\n\t\tBpmnAdvancedMetricsExtractor advExtractor = new BpmnAdvancedMetricsExtractor(basicExtractor, jsonEncoder);\n\t\tlong loadTime = System.currentTimeMillis() - startTime;\n//\t\tSystem.out.println(\"Tempo load del file: \" + loadTime + \"ms\");\n\t\tbasicExtractor.runMetrics();\n\t\tlong basicTime = System.currentTimeMillis() - loadTime - startTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche di base: \" + basicTime + \"ms\");\n\t\tadvExtractor.runMetrics();\n\t\tlong advTime = System.currentTimeMillis() - basicTime - startTime - loadTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche avanzate: \" + advTime + \"ms\");\n\t\tjsonEncoder.exportJson();\n\t\tMySqlInterface db = new MySqlInterface();\n\t\tdb.connect();\n//\t\tdb.createTables(jsonEncoder);\n//\t\tdb.createAndInsertMetricsInfosTable();\n//\t\tdb.saveMetrics(jsonEncoder);\n//\t\tdb.closeConnection();\n\t}", "public String stats() { \r\n String stats; \r\n stats = getWins() + \" wins, \" + getLosses() + \" losses, \" \r\n + getSaves() + \" saves, \" + getEra() + \" ERA\"; \r\n return stats;\r\n }", "private void cmdInfoModel() throws NoSystemException {\n MSystem system = system();\n MMVisitor v = new MMPrintVisitor(new PrintWriter(System.out, true));\n system.model().processWithVisitor(v);\n int numObjects = system.state().allObjects().size();\n System.out.println(numObjects + \" object\"\n + ((numObjects == 1) ? \"\" : \"s\") + \" total in current state.\");\n }", "public void train(){\r\n\t\tdouble output = 0.0;\r\n\t\tList<Integer> teacher = null;\r\n\t\tdouble adjustedWeight = 0.0;\r\n\t\tdouble error = 0.0;\r\n\t\tdouble deltaK = 0.0;\r\n\r\n\t\tfor(int counter = 0; counter < maxEpoch; counter++){\r\n\t\t\tfor(Instance inst : trainingSet){\r\n\t\t\t\tcalculateOutputForInstance(inst);\r\n\t\t\t\tteacher = inst.classValues;\r\n\t\t\t\t//jk weight\r\n\t\t\t\tfor(int i = 0; i < outputNodes.size(); i++){\r\n\t\t\t\t\tNode kNode = outputNodes.get(i);\r\n\t\t\t\t\toutput = kNode.getOutput();\r\n\t\t\t\t\terror = teacher.get(i) - output;\r\n\t\t\t\t\tdeltaK = error*getReLU(kNode.getSum());\r\n\t\t\t\t\tfor(int j = 0; j < kNode.parents.size(); j++){\r\n\t\t\t\t\t\tNodeWeightPair jkWeight = kNode.parents.get(j);\r\n\t\t\t\t\t\tNode jNode = jkWeight.node;\r\n\t\t\t\t\t\tadjustedWeight = getJK(jNode, deltaK);\r\n\t\t\t\t\t\tjkWeight.weight += adjustedWeight;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//ij weight\r\n\t\t\t\tfor(int i = 0; i < hiddenNodes.size(); i++){\r\n\t\t\t\t\tNode jNode = hiddenNodes.get(i);\r\n\t\t\t\t\tif(jNode.parents == null) continue;\r\n\t\t\t\t\tfor(int j = 0; j < jNode.parents.size(); j++){\r\n\t\t\t\t\t\tNodeWeightPair ijWeight = jNode.parents.get(j);\r\n\t\t\t\t\t\tNode iNode = ijWeight.node;\r\n\t\t\t\t\t\tadjustedWeight = getIJ(iNode, jNode, teacher, i);\r\n\t\t\t\t\t\tijWeight.weight += adjustedWeight;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void showStatistics(){\n\n }", "private static void printStats(Stats stats) {\n long elapsedTime = (System.nanoTime() - startTime) / 1000000;\n System.out.println(\"Analysis completed - \" + keyCount + \" keys processed in \" + elapsedTime + \" ms\");\n getConsole().println(\"Analysis completed - \" + keyCount + \" keys processed in \" + elapsedTime + \" ms\");\n stats.print();\n }", "public static void main(String[] args) throws IOException {\n\t\tMain t = new Main();\n\t\tSystem.out.println(\"The model is trained: \");\n\t\tt.training(enTrainingDir, 0.7);\n\t\tSystem.out.println(\"Check validation in example of \\\"AB\\\":\");\n\t\tt.checkValid(\"AB\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"============= unsmoothed models =============================================================================\");\n\t\tSystem.out.print(\"Unigram: \");\n\t\tSystem.out.println(t.uni);\n\t\tSystem.out.print(\"Bigram: \");\n\t\tSystem.out.println(t.bi);\n\t\tSystem.out.print(\"Trigram: \");\n\t\tSystem.out.println(t.tri);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"============= add-one smoothed models ========================================================================\");\n\t\tSystem.out.println(\"Note: this is only one of smoothed models , not the tuning process. Because there would be too many console lines.\");\n\t\tSystem.out.println(\"Here I take add-k = 0.7 as an example.\");\n\t\tSystem.out.println(\"*************************************************************************************************************\");\n\t\tdouble k = 0.7;\n\t\tt.training(enTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tt.training(esTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tt.training(deTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tSystem.out.println(\"*************************************************************************************************************\");\n\t\tSystem.out.println(\"Then I take the classic add-k = 1.0 as an example.\");\n\t\tSystem.out.println(\"*************************************************************************************************************\");\n\t\tk = 1.0;\n\t\tt.training(enTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tt.training(esTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tt.training(deTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"===== linear interpolation smoothed models ===================================================================\");\n\t\tdouble[] lambdas_tri = new double[] {1.0 / 3, 1.0 / 3, 1.0 / 3};\n\t\tdouble[] lambdas_bi = new double[] {1.0 / 2, 1.0 / 2};\n\t\tSystem.out.println(\"First is equally weighted lambdas: \" + Arrays.toString(lambdas_tri) + \" and \" + Arrays.toString(lambdas_bi));\n\t\tt.training(enTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tt.training(esTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tt.training(deTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tSystem.out.println(\"**************************************************************************************************************\");\n\t\tlambdas_tri = new double[] {0.5, 0.3, 0.2};\n\t\tlambdas_bi = new double[] {0.7, 0.3};\n\t\tSystem.out.println(\"Then is tuned-weighted lambdas: \" + Arrays.toString(lambdas_tri) + \" and \" + Arrays.toString(lambdas_bi));\n\t\tSystem.out.println(\"Again, this is not all the tuning process. Here is only one set of lambdas.\");\n\t\tt.training(enTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tt.training(esTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tt.training(deTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"=================== Generating texts ==========================================================================\");\n\t\tSystem.out.println(\"To save console space, here I generate A to E, five sentences. Feel free to adjust parameters in code.\");\n\t\tSystem.out.println(\"***************************************************************************************************************\");\n\t\tt.training(enTrainingDir, 0.7);\n\t\tSystem.out.println(\"**************** Bi-gram generating ***************************************************************************\");\n\t\tfor (char c = 'A'; c <= 'E'; c++) {\n\t\t\tt.generateWithBigramModel(String.valueOf(c));\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Not that good huh?\");\n\t\tSystem.out.println(\"**************** Tri-gram generating *************************************************************************\");\n\t\tfor (char c = 'A'; c <= 'E'; c++) {\n\t\t\tt.generateWithBigramModel(String.valueOf(c));\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"...Seems not good as well.\");\n\t}", "protected void recordStats(Object o) {\n\t\tif (o instanceof Tutorial) {\n\t\t\t//Just record the experiment type for the tutorial mode. No need to record success or fail here\n\t\t\tSAR.code += this.experimentType;\n\t\t} else if (o instanceof PracticeDrillHuman) {\n\t\t\tSAR.code += \"PDH\" + String.valueOf(this.numOfMoves) + (currentState == GameState.H1_WON ? \"S\" : \"F\");\n\t\t} else if (o instanceof PracticeDrillAI) {\n\t\t\tSAR.code += \"A\" + String.valueOf(this.numOfMoves) + (currentState == GameState.H1_WON ? \"S\" : \"F\");\n\t\t} else if (o instanceof FinalMission) {\n\t\t\tSAR.code += \"M\" + String.valueOf(this.numOfMoves) + \"T\" + String.valueOf(this.numOfTimesAITriggered) + (currentState == GameState.H1_WON ? \"S\" : \"F\");\n\t\t}\n\t}", "private void printScore() {\r\n View.print(score);\r\n }", "public void model() \n\t{\n\t\t\n\t\ttry \n\t\t{\n\t\t GRBEnv env = new GRBEnv();\n\t\t GRBModel model = new GRBModel(env, \"resources/students.lp\");\n\n\t\t model.optimize();\n\n\t\t int optimstatus = model.get(GRB.IntAttr.Status);\n\n\t\t if (optimstatus == GRB.Status.INF_OR_UNBD) {\n\t\t model.getEnv().set(GRB.IntParam.Presolve, 0);\n\t\t model.optimize();\n\t\t optimstatus = model.get(GRB.IntAttr.Status);\n\t\t }\n\n\t\t if (optimstatus == GRB.Status.OPTIMAL) {\n\t\t double objval = model.get(GRB.DoubleAttr.ObjVal);\n\t\t System.out.println(\"Optimal objective: \" + objval);\n\t\t } else if (optimstatus == GRB.Status.INFEASIBLE) {\n\t\t System.out.println(\"Model is infeasible\");\n\n\t\t // Compute and write out IIS\n\t\t model.computeIIS();\n\t\t model.write(\"model.ilp\");\n\t\t } else if (optimstatus == GRB.Status.UNBOUNDED) {\n\t\t System.out.println(\"Model is unbounded\");\n\t\t } else {\n\t\t System.out.println(\"Optimization was stopped with status = \"\n\t\t + optimstatus);\n\t\t }\n\n\t\t // Dispose of model and environment\n\t\t model.write(\"resources/model.sol\");\n\t\t model.dispose();\n\t\t env.dispose();\n\n\t\t } catch (GRBException e) {\n\t\t System.out.println(\"Error code: \" + e.getErrorCode() + \". \" +\n\t\t e.getMessage());\n\t\t }\n\t\t\n\t}", "public void evaluate(String sampleFile, String featureDefFile, int nFold, float tvs, String modelDir, String modelFile) {\n/* 854 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 855 */ List<List<RankList>> validationData = new ArrayList<>();\n/* 856 */ List<List<RankList>> testData = new ArrayList<>();\n/* */ \n/* */ \n/* */ \n/* 860 */ List<RankList> samples = readInput(sampleFile);\n/* */ \n/* */ \n/* 863 */ int[] features = readFeature(featureDefFile);\n/* 864 */ if (features == null) {\n/* 865 */ features = FeatureManager.getFeatureFromSampleVector(samples);\n/* */ }\n/* 867 */ FeatureManager.prepareCV(samples, nFold, tvs, trainingData, validationData, testData);\n/* */ \n/* */ \n/* 870 */ if (normalize)\n/* */ {\n/* 872 */ for (int j = 0; j < nFold; j++) {\n/* */ \n/* 874 */ normalizeAll(trainingData, features);\n/* 875 */ normalizeAll(validationData, features);\n/* 876 */ normalizeAll(testData, features);\n/* */ } \n/* */ }\n/* */ \n/* 880 */ Ranker ranker = null;\n/* 881 */ double scoreOnTrain = 0.0D;\n/* 882 */ double scoreOnTest = 0.0D;\n/* 883 */ double totalScoreOnTest = 0.0D;\n/* 884 */ int totalTestSampleSize = 0;\n/* */ \n/* 886 */ double[][] scores = new double[nFold][]; int i;\n/* 887 */ for (i = 0; i < nFold; i++) {\n/* 888 */ (new double[2])[0] = 0.0D; (new double[2])[1] = 0.0D; scores[i] = new double[2];\n/* 889 */ } for (i = 0; i < nFold; i++) {\n/* */ \n/* 891 */ List<RankList> train = trainingData.get(i);\n/* 892 */ List<RankList> vali = null;\n/* 893 */ if (tvs > 0.0F)\n/* 894 */ vali = validationData.get(i); \n/* 895 */ List<RankList> test = testData.get(i);\n/* */ \n/* 897 */ RankerTrainer trainer = new RankerTrainer();\n/* 898 */ ranker = trainer.train(this.type, train, vali, features, this.trainScorer);\n/* */ \n/* 900 */ double s2 = evaluate(ranker, test);\n/* 901 */ scoreOnTrain += ranker.getScoreOnTrainingData();\n/* 902 */ scoreOnTest += s2;\n/* 903 */ totalScoreOnTest += s2 * test.size();\n/* 904 */ totalTestSampleSize += test.size();\n/* */ \n/* */ \n/* 907 */ scores[i][0] = ranker.getScoreOnTrainingData();\n/* 908 */ scores[i][1] = s2;\n/* */ \n/* */ \n/* 911 */ if (!modelDir.isEmpty()) {\n/* */ \n/* 913 */ ranker.save(FileUtils.makePathStandard(modelDir) + \"f\" + (i + 1) + \".\" + modelFile);\n/* 914 */ System.out.println(\"Fold-\" + (i + 1) + \" model saved to: \" + modelFile);\n/* */ } \n/* */ } \n/* 917 */ System.out.println(\"Summary:\");\n/* 918 */ System.out.println(this.testScorer.name() + \"\\t| Train\\t| Test\");\n/* 919 */ System.out.println(\"----------------------------------\");\n/* 920 */ for (i = 0; i < nFold; i++)\n/* 921 */ System.out.println(\"Fold \" + (i + 1) + \"\\t| \" + SimpleMath.round(scores[i][0], 4) + \"\\t| \" + SimpleMath.round(scores[i][1], 4) + \"\\t\"); \n/* 922 */ System.out.println(\"----------------------------------\");\n/* 923 */ System.out.println(\"Avg.\\t| \" + SimpleMath.round(scoreOnTrain / nFold, 4) + \"\\t| \" + SimpleMath.round(scoreOnTest / nFold, 4) + \"\\t\");\n/* 924 */ System.out.println(\"----------------------------------\");\n/* 925 */ System.out.println(\"Total\\t| \\t\\t| \" + SimpleMath.round(totalScoreOnTest / totalTestSampleSize, 4) + \"\\t\");\n/* */ }", "public void modelShow() {\n\t\tSystem.out.println(\"秀衣服\");\n\t}", "@RequestMapping(value = \"stats\", method = RequestMethod.GET)\n\tpublic String statsGet(HttpSession session, ModelMap model){\n\t\t//Checks if user is logged in\n\t\tif(session.getAttribute(\"username\") == null){\n\t\t\tVIEW_INDEX = \"index\";\n\t\t\treturn \"redirect:/\"+VIEW_INDEX;\n\t\t}\n\n\t\tString username = (String)session.getAttribute(\"username\");\n\t\tString date = (String)session.getAttribute(\"date\");\n\n\n\t\tArrayList user = userService.findUser(username);\n\t\tString goal = (String)user.get(1);\n\t\tint id = workoutService.getIdByDate(username, date);\n\t\tArrayList<Stats> stats = statsService.getAveragePerDay(username,id,goal);\n\t\t\n\t\tmodel.addAttribute(\"stats\",stats);\n\n\t\t//If there are no stats to look at then the user is encouraged to workout more\n\t\tif(stats == null){\n\t\t\tmodel.addAttribute(\"display\",\"none\");\n\t\t\tmodel.addAttribute(\"progressHeader\",\"You have to workout more to be able to see your progress\");\n\t\t}\n\t\t//Picture is shown that shows progress as well as average weight for each day\n\t\telse{\n\t\t\tLineChartService lcs = new LineChartService();\n\t\t\tlcs.getLineChart(username, id, goal);\n\t\t\tmodel.addAttribute(\"progressHeader\",\"Average weight per day\");\n\t\t\tmodel.addAttribute(\"username\", username);\n\t\t\tmodel.addAttribute(\"display\",\"inline\");\n\n\t\t}\n\t\tVIEW_INDEX = \"stats\";\t\t\n\t\treturn VIEW_INDEX;\n\t}", "org.tensorflow.proto.profiler.XStat getStats(int index);", "protected void dumpStats() {\n\t\t// Print the header.\n\t\tSystem.out.println(\"\\n\"+phCode+\" \"+minDelta+\" \"+maxDelta);\n\t\t\n\t\t// Print the data.\n\t\tSystem.out.println(\"Bias:\");\n\t\tfor(int j=0; j<bias.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,bias.get(j).minDelta,bias.get(j).maxDelta,\n\t\t\t\t\tbias.get(j).slope,bias.get(j).offset);\n\t\t}\n\t\tSystem.out.println(\"Spread:\");\n\t\tfor(int j=0; j<spread.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,spread.get(j).minDelta,spread.get(j).maxDelta,\n\t\t\t\t\tspread.get(j).slope,spread.get(j).offset);\n\t\t}\n\t\tSystem.out.println(\"Observability:\");\n\t\tfor(int j=0; j<observ.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,observ.get(j).minDelta,observ.get(j).maxDelta,\n\t\t\t\t\tobserv.get(j).slope,observ.get(j).offset);\n\t\t}\n\t}", "public final TwoClassConfusionMatrix getStats() {\n return m_stats;\n }", "private void showGameScore() {\n System.out.println(messageProvider.provideMessage(\"score\"));\n System.out.println(settings.getPlayers().get(0).getScore()\n + \" vs \" + settings.getPlayers().get(1).getScore());\n }", "@Override\r\n\tpublic Double getModel_1ztb_prop_score() {\n\t\treturn super.getModel_1ztb_prop_score();\r\n\t}", "public static void outputStatistics(StatisticsResults results)\n\t{\n\t\tLogger logger = Log.getLogger();\n\t\t\n\t\tlogger.info(\"Size/number of statements of model: \" + results.getSize() + \"\\n\"\n\t\t\t\t\t+ \"Number of different resources: \" + results.getResources() + \"\\n\"\n\t\t\t\t\t+ \"Number of different subjects: \" + results.getSubjects() + \"\\n\"\n\t\t\t\t\t+ \"Number of different predicates: \" + results.getPredicates() + \"\\n\"\n\t\t\t\t\t+ \"Number of different objects: \" + results.getObjects() + \"\\n\"\n\t\t\t\t\t+ \"Number of different object resources: \" + results.getObjectResources() + \"\\n\"\n\t\t\t\t\t+ \"Number of different literals: \" + results.getLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Total number of object resources: \" + results.getTotalObjectResources() + \"\\n\"\n\t\t\t\t\t+ \"Total number of literals: \" + results.getTotalLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Average number of outgoing links per subject: \" + results.getAvgOutgoingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of outgoing links per subject: \" + results.getMinOutgoingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of outgoing links per subject: \" + results.getMaxOutgoingLinks() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of outgoing links per subject: \" + results.getOutgoingLinks25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of outgoing links per subject: \" + results.getOutgoingLinks50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of outgoing links per subject: \" + results.getOutgoingLinks75() + \"\\n\"\n\t\t\t\t\t+ \"Average number of incoming links per object resource: \" + results.getAvgIncomingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of incoming links per object resource: \" + results.getMinIncomingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of incoming links per object resource: \" + results.getMaxIncomingLinks() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of incoming links per object resrouce: \" + results.getIncomingLinks25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of incoming links per object resource: \" + results.getIncomingLinks50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of incoming links per object resource: \" + results.getIncomingLinks75() + \"\\n\"\n\t\t\t\t\t+ \"Average number of literals per subject: \" + results.getAvgLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of literals per subject: \" + results.getMinLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of literals per subject: \" + results.getMaxLiterals() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of literals per subject: \" + results.getLiterals25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of literals per subject: \" + results.getLiterals50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of literals per subject: \" + results.getLiterals75() + \"\\n\"\n\t\t\t\t\t+ \"Average number of object resources per subject: \" + results.getAvgObjectResources() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of object resources per subject: \" + results.getMinResObjects() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of object resources per subject: \" + results.getMaxResObjects() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of object resources per subject: \" + results.getResObjects25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of object resources per subject: \" + results.getResObjects50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of object resources per subject: \" + results.getResObjects75() + \"\\n\");\n\t}", "@Override\r\n\tpublic Double getModel_churn_score() {\n\t\treturn super.getModel_churn_score();\r\n\t}", "public void printPrediction() {\n\t\tfor (int i = 0; i < testData.size(); i++) {\n\t\n\t\t\tSystem.out.print(testData.get(i) + \", Predicted label:\"\n\t\t\t\t\t+ predictLabels[i]);\n\t\t\tif (predictLabels[i] >= 20) System.out.println(\" Successful\");\n\t\t\telse System.out.println(\" Failed\");\n\t\t}\n\t}", "public String getScoreInfo() {\n return scoreInfo + \"Dependency Score=\" + dependencyScore + \" pageRank=\" + pageRank +\n \" total=\" + totalScore + \"\\n\";\n }", "public void displayStats()\n {\n if(graph == null)\n {\n clearStats();\n }\n else\n { \n pathJTextArea.setText(graph.getPathString(pathList));\n costJTextField.setText(decimal.format(graph.getPathCost(pathList)));\n timeJTextField.setText(String.valueOf(timePassed));\n }\n }", "public void saveStats() {\n this.saveStats(null);\n }", "public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}", "@RequestMapping(value = \"finalScore\")\n\tpublic String finalScore(Model model) {\n\t\treturn \"/team/finalScore\";\n\t}", "public void printStats() {\n\t\tSystem.out.println(\"QuickSort terminates!\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Duration: \" + getDuration() + \" seconds\");\n\t\tSystem.out.println(\"Comparisons: \" + this.comparisonCounter);\n\t\tSystem.out.println(\"Boundary: \" + this.b);\n\t}", "private void updateView() {\n model.inlezenHighscore();\n for (int i = 0; i < 10; i++) {\n view.getNaamLabels(i).setText(model.getNaam(i));\n view.getScoreLabels(i).setText(model.getScores(i));\n }\n }", "public String getStats() {\n String stats = \"Total running time: \" + runtime + \"\\\\\\\\\";\n int totalit = 0;\n int largestit = 0;\n int averageit = 0;\n for (Integer i : recGraphs) {\n totalit += i;\n averageit += i;\n if (i > largestit) {\n largestit = i;\n }\n }\n averageit /= recGraphs.size();\n double totalhit = 0;\n double longesthit = 0;\n double averagehit = 0;\n for (Double i : recHitTimes) {\n totalhit += i;\n averagehit += i / recHitTimes.size();\n if (i > longesthit) {\n longesthit = i;\n }\n }\n stats += \"Total iterations in step 3: \" + totalit + \"\\\\\\\\\";\n stats += \"Largest set of iterations in step 3: \" + largestit + \"\\\\\\\\\";\n stats += \"Average iterations set in step 3: \" + averageit + \"\\\\\\\\\";\n stats += \"Total hitting sets calculation time: \" + totalhit + \"\\\\\\\\\";\n stats += \"Average hitting set calculation time: \" + averagehit + \"\\\\\\\\\";\n stats += \"Longest hitting set calculation time: \" + longesthit + \"\\\\\\\\\";\n return stats;\n }", "public void printStatistics() {\r\n\t\tLog.info(\"*** Statistics of Sequence Selector ***\");\r\n\r\n\t\t// chains\r\n\t\tLog.info(String.format(\"Chains: %d\", chains.size()));\r\n\t\tLog.info(String.format(\"Executable Chains: %d\", execChains.size()));\r\n\t\tLog.info(String.format(\"Causal Executable Chains: %d\",\r\n\t\t\t\tcausalExecChains.size()));\r\n\r\n\t\t// bushes\r\n\t\tLog.info(String.format(\"Bushes: %d\", bushes.size()));\r\n\t\tLog.info(String.format(\"Executable Bushes: %d\", execBushes.size()));\r\n\t\tLog.info(String.format(\"Required Bushes: %d\", requiredExecBushes.size()));\r\n\t\tLog.info(String.format(\"Redundant Bushes: %d\",\r\n\t\t\t\tredundantExecBushes.size()));\r\n\r\n\t\t// total\r\n\t\tLog.info(String.format(\"Bushes in Chains: %d\", bushesInChains.size()));\r\n\t\tLog.info(String.format(\"Total Sequences: %d\", totalSequences.size()));\r\n\r\n\t\t// time\r\n\t\tLog.info(String.format(\"Total Time: %d ms\", stopWatch.getTime()));\r\n\t\tLog.info(String.format(\"Time per Event: %d ms\", stopWatch.getTime()\r\n\t\t\t\t/ events.size()));\r\n\t}", "@Override\n public void updateStats() {\n if (isEnglish) {\n String moves = NUM_MOVES + presenter.getNumMoves();\n String time = TIME_LEFT + presenter.getTimeLeft();\n String points = POINTS + presenter.getPoints();\n painterTextViewMoves.setText(moves);\n painterTextViewTime.setText(time);\n painterTextViewPoints.setText(points);\n } else {\n String moves = NUM_MOVES_CHINESE + presenter.getNumMoves();\n String time = TIME_LEFT_CHINESE + presenter.getTimeLeft();\n String points = POINTS_CHINESE + presenter.getPoints();\n painterTextViewTime.setText(time);\n painterTextViewMoves.setText(moves);\n painterTextViewPoints.setText(points);\n }\n }", "public static void displaySta() {\n System.out.println(\"\\n\\n\");\n System.out.println(\"average service time: \" + doAvgProcessingTime() /100 + \" milliseconds\");\n System.out.println(\"max service time: \" + maxProcessingTime /100 + \" milliseconds\");\n System.out.println(\"average turn around time \" + doAvgTurnAroundTime()/100 + \" milliseconds\");\n System.out.println(\"max turn around time \" + maxTurnAroundTime/100 + \" milliseconds\");\n System.out.println(\"average wait time \" + doAvgWaitTime()/10000 + \" milliseconds\");\n System.out.println(\"max wait time \" + maxWaitTime/10000 + \" milliseconds\");\n System.out.println(\"end time \" + endProgramTime);\n System.out.println(\"start time \" + startProgramTime);\n System.out.println(\"processor utilization: \" + doCPU_usage() + \" %\");\n System.out.println(\"Throughput: \" + doThroughPut());\n System.out.println(\"---------------------------\");\n\n\n }", "@Override\n\tpublic void printStudent() {\n\t\tSystem.out.print(\"학번\\t국어\\t영어\\t수학\\n\");\n\t\tSystem.out.println(\"=\".repeat(60));\n\t\tint nSize = scoreList.size();\n\t\tfor(int i = 0 ; i < nSize ; i++) {\n\t\t\tScoreVO vo = new ScoreVO();\n\t\t\tSystem.out.print(vo.getNum() + \"\\t\");\n\t\t\tSystem.out.print(vo.getKor() + \"\\t\");\n\t\t\tSystem.out.print(vo.getEng() + \"\\t\");\n\t\t\tSystem.out.print(vo.getMath() + \"\\n\");\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "public void showMetrics() {\n }", "public void display(){\n double avg;\n avg=getAvg();\n System.out.println(\"\\nThe Average of the times is : \"+avg+\" Milliseconds\");\n }", "public void saveStats() throws IOException {\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"learnedWords\")));\r\n out.println(wordIndex);\r\n for (Word s : masteredWords) {//write mastered words first\r\n out.println(s.toString());\r\n }\r\n for (int i = 0; i < learningWords.size(); i++) {//writes learning words next\r\n Word w = learningWords.get(i);\r\n out.println(w.toString());\r\n }\r\n out.close();\r\n }", "@Override\r\n\tpublic void showSpeed() {\n\t\tSystem.out.println(\"i can run at 100km/h\");\r\n\t}", "@Override\n public void train() {\n actual = observations.toArray();\n min_val_error = Double.MAX_VALUE;\n if (findDecayConstant)\n for (float alpha = 0f; alpha <= 1f; alpha += 0.01f)\n initializeAndTrainModel(alpha);\n else\n initializeAndTrainModel(optAlpha);\n }", "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}", "public ModelInfo generateInfo() { \n ModelInfo info = new ModelInfo();\n \n // Store basic info\n info.author = Author;\n info.citation = Citation;\n info.description = Description;\n info.property = Property;\n info.training = Model.TrainingStats.NumberTested + \" entries: \" + TrainingSet;\n info.notes = Notes;\n info.trainTime = new SimpleDateFormat(\"dMMMyy HH:mm z\").format(Model.getTrainTime());\n \n // Store units or class names\n if (Model instanceof AbstractClassifier) {\n info.classifier = true;\n info.units = \"\";\n AbstractClassifier clfr = (AbstractClassifier) Model;\n boolean started = false;\n for (String name : clfr.getClassNames()) {\n if (started) {\n info.units += \";\";\n }\n info.units += name;\n started = true;\n }\n } else {\n info.classifier = false;\n info.units = Units;\n }\n \n // Store names of models\n info.dataType = Dataset.printDescription(true);\n info.modelType = Model.printDescription(true);\n \n // Store validation performance data\n info.valMethod = Model.getValidationMethod();\n if (Model.isValidated()) {\n info.valScore = Model.ValidationStats.getStatistics();\n }\n \n return info;\n }", "public void outputStats (){\n System.out.println(\"Your sorcerer's stats:\");\n System.out.println(\"HP = \" + hp);\n System.out.println(\"Mana = \" + mana);\n System.out.println(\"Strength = \" + strength);\n System.out.println(\"Vitality = \" + vitality);\n System.out.println(\"Energy = \" + energy);\n }", "public void showTrainers(){\r\n System.out.println(\"Trainer: \"+this.lastName.toUpperCase()+\" \"+this.firstName.toUpperCase()+\" ,with subject: \"+\r\n this.subject.getStream().getTitle().toUpperCase());\r\n }", "private void updateStats()\n\t{\n\n\t\tint[] temp = simulation.getStatValue();\n\t\tfor(int i = 0; i < temp.length; i++)\n\t\t{\n\t\t\tthis.statsValues[i].setText(Integer.toString(temp[i]));\n\t\t}\n\t\t\n\t\tint[] temp2 = simulation.getNumberInEachLine();\n\t\tfor(int i = 0; i < temp2.length; i++)\n\t\t{\n\t\t\tthis.eatValues[i].setText(Integer.toString(temp2[i]));\n\t\t}\n\t}", "private void statsOutput(long startTime, long endTime ,Stat stat, int taskSize, List<Stat> listStat) {\n\n System.out.println();\n System.out.println(\" !!! END OF REQUEST !!!\");\n System.out.println();\n System.out.println(\"----------------------------------\");\n System.out.println(\" STATISTICS\");\n System.out.println(\"----------------------------------\");\n System.out.println(\"1. Number of threads: \" + taskSize);\n System.out.println(\"2. Total run time: \" + (endTime - startTime));\n System.out.println(\"3. Total request sent: \" + stat.getSentRequestsNum());\n System.out.println(\"4. Total successful request: \" + stat.getSuccessRequestsNum());\n System.out.println(\"5. Mean latency: \" + stat.getMeanLatency());\n System.out.println(\"6. Median latency: \" + stat.getMedianLatency());\n System.out.println(\"7. 95th percentile latency: \" + stat.get95thLatency());\n System.out.println(\"8. 99th percentile latency: \" + stat.get99thLatency());\n\n if(listStat!=null){\n OutputChart outputChart = new OutputChart(listStat);\n outputChart.generateChart(\"Part 1\");\n }\n\n }", "private static void compute_performances(Server server) {\n System.out.println(\"E[N]: Average number of packets in the buffer/queue: \" + round((double) runningBufferSizeCount / totalTicks));\n System.out.println(\"E[T]: Average sojourn time: \" + round((double) server.getTotalPacketDelay() / totalPackets + (double) serviceTime)\n + \"/packet\");\n System.out.println(\"P(idle): The proportion of time the server is idle: \"\n + round((double) server.getIdleServerCount() / totalTicks * 100) + \"%\");\n if (maxBufferSize >= 0) {\n System.out.println(\"P(loss): The packet loss probability: \" + round((double) droppedPacketCount / totalPackets * 100) + \"%\");\n }\n }", "protected void updateBest() {\n\t\tbestScoreView.setText(\"Best: \" + bestScore);\n\t}", "public void startTrainingMode() {\n\t\t\r\n\t}", "public String getStatistics() throws IOException{\n initiateWordCount();\n getHamStatistics(); \n getSpamStatistics();\n return printStatistics(); \n }", "@Override\n\tpublic void updateStatistics(Instance inst) {\n\t\t// Update the statistics for this node\n\t\t// number of instances passing through the node\n\t\tnodeStatistics.addToValue(0, 1);\n\t\t// sum of y values\n\t\tnodeStatistics.addToValue(1, inst.classValue());\n\t\t// sum of squared y values\n\t\tnodeStatistics.addToValue(2, inst.classValue()*inst.classValue());\n\t\t\t\t\n\t\tthis.perceptron.trainOnInstance(inst);\n\t\tif (this.predictionFunction != 1) { //Train target mean if prediction function is not Perceptron\n\t\t\tthis.targetMean.trainOnInstance(inst);\n\t\t}\n\t}", "public void run() throws Exception {\r\n\r\n\r\n LibSVM svm = new LibSVM();\r\n String svmOptions = \"-S 0 -K 2 -C 8 -G 0\"; //Final result: [1, -7 for saveTrainingDataToFileHybridSampling2 ]\r\n svm.setOptions(weka.core.Utils.splitOptions(svmOptions));\r\n System.out.println(\"SVM Type and Keranl Type= \" + svm.getSVMType() + svm.getKernelType());//1,3 best result 81%\r\n // svm.setNormalize(true);\r\n\r\n\r\n// load training data from .arff file\r\n ConverterUtils.DataSource source = new ConverterUtils.DataSource(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataUSSMOTE464Random.arff\");\r\n System.out.println(\"\\n\\nLoaded data:\\n\\n\" + source.getDataSet());\r\n Instances dataFiltered = source.getDataSet();\r\n dataFiltered.setClassIndex(0);\r\n\r\n // gridSearch(svm, dataFiltered);\r\n Evaluation evaluation = new Evaluation(dataFiltered);\r\n evaluation.crossValidateModel(svm, dataFiltered, 10, new Random(1));\r\n System.out.println(evaluation.toSummaryString());\r\n System.out.println(evaluation.weightedAreaUnderROC());\r\n double[][] confusionMatrix = evaluation.confusionMatrix();\r\n for (int i = 0; i < 2; i++) {\r\n for (int j = 0; j < 2; j++) {\r\n System.out.print(confusionMatrix[i][j] + \" \");\r\n\r\n }\r\n System.out.println();\r\n }\r\n System.out.println(\"accuracy for crime class= \" + (confusionMatrix[0][0] / (confusionMatrix[0][1] + confusionMatrix[0][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for other class= \" + (confusionMatrix[1][1] / (confusionMatrix[1][1] + confusionMatrix[1][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for crime class= \" + evaluation.truePositiveRate(0) + \"%\");\r\n System.out.println(\"accuracy for other class= \" + evaluation.truePositiveRate(1) + \"%\");\r\n\r\n\r\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 }", "public void printAnalysis(){\n System.out.println(\"Product: \" + this.getName());\n System.out.println(\"History: \" + this.history());\n System.out.println(\"Largest amount of product: \" + this.inventoryHistory.maxValue());\n System.out.println(\"Smallest amount of product: \" + this.inventoryHistory.minValue());\n System.out.println(\"Average: \" + this.inventoryHistory.average());\n }", "public final void report() {\n double err = classError();\n assert _valid : \"Trying to report status of invalid CM!\";\n\n SpeeDRFModel model = UKV.get(_SpeeDRFModelKey);\n String s =\n \" Type of random forest: classification\\n\"\n + \" Number of trees: \" + model.size() + \"\\n\"\n + \"No of variables tried at each split: \" + model.mtry + \"\\n\"\n + \" Estimate of err. rate: \" + Math.round(err * 10000) / 100 + \"% (\" + err + \")\\n\"\n + \" OOBEE: \" + (_computedOOB ? \"YES (sampling rate: \"+model.sample*100+\"%)\" : \"NO\")+ \"\\n\"\n + \" Confusion matrix:\\n\"\n + toString() + \"\\n\"\n + \" CM domain: \" + Arrays.toString(_domain) + \"\\n\"\n + \" Avg tree depth (min, max): \" + model.depth() + \"\\n\"\n + \" Avg tree leaves (min, max): \" + model.leaves() + \"\\n\"\n + \" Validated on (rows): \" + rows() + \"\\n\"\n + \" Rows skipped during validation: \" + skippedRows() + \"\\n\"\n + \" Mispredictions per tree (in rows): \" + Arrays.toString(_errorsPerTree)+\"\\n\";\n Log.info(Sys.RANDF,s);\n }", "public void train()\r\n\t{\r\n\t\tfor(int i=0; i < this.maxEpoch; i++)\r\n\t\t{\r\n\t\t\tfor(Instance temp_example: this.trainingSet)\r\n\t\t\t{\r\n\t\t\t\tdouble O = calculateOutputForInstance(temp_example);\r\n\t\t\t\tdouble T = temp_example.output;\r\n\t\t\t\tdouble err = T - O;\r\n\r\n\t\t\t\t//w_jk (hidden to output)\r\n\t\t\t\tdouble g_p_out = (outputNode.getSum() <= 0) ? 0 : 1;\r\n\t\t\t\tfor(NodeWeightPair hiddenNode: outputNode.parents)\r\n\t\t\t\t{\r\n\t\t\t\t\thiddenNode.set_deltaw_pq(this.learningRate*\r\n\t\t\t\t\t\t\thiddenNode.node.getOutput()*err*g_p_out);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//w_ij (input to hidden)\r\n\t\t\t\tint hid_count =0;\r\n\t\t\t\tfor(Node hiddenNode: hiddenNodes){\r\n\t\t\t\t\tdouble g_p_hid = (hiddenNode.getSum() <= 0) ? 0 : 1;\r\n\t\t\t\t\tif(hiddenNode.getType()==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor(NodeWeightPair inputNode: hiddenNode.parents){\r\n\t\t\t\t\t\t\tdouble a_i = inputNode.node.getOutput();\r\n\t\t\t\t\t\t\tinputNode.set_deltaw_pq\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\tthis.learningRate*\r\n\t\t\t\t\t\t\t\t\ta_i*g_p_hid*(err*\r\n\t\t\t\t\t\t\t\t\toutputNode.parents.get(hid_count).weight*\r\n\t\t\t\t\t\t\t\t\tg_p_out)\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\thid_count++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// for all w_pq, update weights\r\n\t\t\t\tfor(Node hiddenNode: hiddenNodes){\r\n\t\t\t\t\tif(hiddenNode.getType()==2){\r\n\t\t\t\t\t\tfor(NodeWeightPair inputNode: hiddenNode.parents){\r\n\t\t\t\t\t\t\tinputNode.weight += inputNode.get_deltaw_pq();\r\n\t\t\t\t\t\t\tinputNode.set_deltaw_pq(new Double (0.00));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor(NodeWeightPair hiddenNode: outputNode.parents)\r\n\t\t\t\t{\r\n\t\t\t\t\thiddenNode.weight += hiddenNode.get_deltaw_pq();\r\n\t\t\t\t\thiddenNode.set_deltaw_pq(new Double (0.00));\r\n\t\t\t\t}\r\n\r\n\t\t\t} // end of an instance \r\n\t\t} // end of an epoch\r\n\t}", "private void calculateAndShowStatistics() {\n Map<Country, Float> countryWithMinInternetUsers = findCountryWithMinInternetUsers();\n Map<Country, Float> countryWithMinLiteracyRate = findCountryWithMinLiteracyRate();\n Map<Country, Float> countryWithMaxInternetUsers = findCountryWithMaxInternetUsers();\n Map<Country, Float> countryWithMaxLiteracyRate = findCountryWithMaxLiteracyRate();\n\n // Output header\n System.out.println(\"\\nStatistics based on the data provided in the database\\n\");\n\n // Output minimums\n screenPrinter.outputMinOrMax(\"minimum\", \"amount of Internet Users\", countryWithMinInternetUsers);\n screenPrinter.outputMinOrMax(\"minimum\", \"Adult Literacy Rate\",countryWithMinLiteracyRate);\n\n // Output maximums\n screenPrinter.outputMinOrMax(\"maximum\", \"amount of Internet Users\",countryWithMaxInternetUsers);\n screenPrinter.outputMinOrMax(\"maximum\", \"Adult Literacy Rate\",countryWithMaxLiteracyRate);\n System.out.println();\n\n // Find countries that have all the data\n List<Country> countriesWithoutMissingData = findAllCountiesWithoutMissingData();\n\n // Form two separate lists with just indicators\n List<Float> listOfInternetUsersRates = getListOfInternetUsersRates(countriesWithoutMissingData);\n List<Float> listOfLiteracyRates = getListOfLiteracyRates(countriesWithoutMissingData);\n\n // Calculate the correlation coefficient\n double correlationCoefficient = calculateCorCoeff(listOfInternetUsersRates, listOfLiteracyRates);\n// double pearsonCoefficient = calculateCoeffThirdParty(listOfInternetUsersRates, listOfLiteracyRates);\n\n // output correlation coefficient\n screenPrinter.outputCorrelation(correlationCoefficient);\n }", "public void recalculateStats(){\n weight = .25f * (shaftMat.getParameter(\"Density\") * length + headMat.getParameter(\"Density\") * .4f);\n sharpness = headMat.getParameter(\"Malleability\") + 1f / headMat.getParameter(\"Durability\"); //Malleable objects can be sharp, as can fragile objects\n// fragility = 1f / (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n durability = (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n trueness = shaftMat.getParameter(\"Regularity\") + headMat.getParameter(\"Regularity\");\n// length = 2f;\n }", "@Override\n public void visualize() {\n if (this.count() > 0){\n for (int i = 0; i < this.count(); i++){\n System.out.println(i + \".- \" + this.bench.get(i).getName() + \" (ID: \" + this.bench.get(i).getId() + \")\");\n }\n } else {\n System.out.println(\"La banca está vacía.\");\n }\n\n }", "public void showAVL() {\n\n\t\tSystem.out.println(\"time (tree setup) = \" + treeSetup + \" ms\");\n\t\tSystem.out.println(\"time (average search) = \" + (totalSearch/(float)countSearch) + \" ms\");\n\t\tSystem.out.println(\"time (average at) = \" + (totalAt/(float)countAt) + \" ms\");\n \t}", "@Override\n\tpublic String toString()\n\t{\n\t\treturn \"Statistical output: \"\n\t\t\t\t+\"replication size = \"+this.replicationSize+\"; \"\n\t\t\t\t+\"sample size = \"+this.sampleSize+\"; \"\n\t\t\t\t+\"mean = \"+this.mean+\"; \"\n\t\t\t\t+\"std. dev. = \"+this.stDev+\"; \"\n\t\t\t\t+\"CI width (alpha = \"+this.alpha+\"; \"+this.nameOfStatisticalTest+\" ) = \"+this.CIWidth+\".\";\n\t}", "public void recognizeStats() {\n\n if (recognitionStats){\n setUiState(STATE_NOSTATICS);\n recognitionStats = false;\n }else{\n setUiState(STATE_STATICS);\n recognitionStats = true;\n }\n }", "public void printMetrics() {\n System.out.println(\"\\nPROG_SIZE = \" + Metrics.getProgSize() + '\\n' + \"EXEC_TIME = \" + Metrics.getExecTime() + \" ms\" + '\\n' + \"EXEC_MOVE = \" + Metrics.getExecMove() + '\\n' + \"DATA_MOVE = \" + Metrics.getDataMove() + '\\n' + \"DATA_READ = \" + Metrics.getDataRead() + '\\n' + \"DATA_WRITE = \" + Metrics.getDataWrite() + '\\n');\n }", "public void evaluate(String trainFile, double percentTrain, String testFile, String featureDefFile) {\n/* 799 */ List<RankList> train = new ArrayList<>();\n/* 800 */ List<RankList> validation = new ArrayList<>();\n/* 801 */ int[] features = prepareSplit(trainFile, featureDefFile, percentTrain, normalize, train, validation);\n/* 802 */ List<RankList> test = null;\n/* */ \n/* */ \n/* 805 */ if (!testFile.isEmpty()) {\n/* */ \n/* 807 */ test = readInput(testFile);\n/* 808 */ if (normalize) {\n/* 809 */ normalize(test, features);\n/* */ }\n/* */ } \n/* 812 */ RankerTrainer trainer = new RankerTrainer();\n/* 813 */ Ranker ranker = trainer.train(this.type, train, validation, features, this.trainScorer);\n/* */ \n/* 815 */ if (test != null) {\n/* */ \n/* 817 */ double rankScore = evaluate(ranker, test);\n/* 818 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ } \n/* 820 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 822 */ System.out.println(\"\");\n/* 823 */ ranker.save(modelFile);\n/* 824 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }", "private void calculateOverall()\n {\n ArrayList<Integer> average = new ArrayList<Integer>(1);\n ArrayList<Integer> median = new ArrayList<Integer>(1);\n ArrayList<Integer> mode = new ArrayList<Integer>();\n ArrayList<Integer> stdDev = new ArrayList<Integer>(1);\n \n int avg = 0;\n int med = 90;\n int mod = 90;\n int dev = 0;\n \n int[] modeArray = new int[100];\n \n for (int i = 0; i < 100; i++) {\n \tmodeArray[i] = 0;\n }\n \n for (Integer score : allScores) {\n \tavg += score;\n \tmodeArray[score]++;\n }\n \n for (int i = 0; i < 100; i++) {\n \tif (modeArray[i] > mod) {\n \t\tmod = modeArray[i];\n \t}\n }\n \n avg = avg / allScores.size();\n \n Collections.sort(allScores);\n med = allScores.get(allScores.size() / 2);\n \n for (Integer score : allScores) {\n \tdev += Math.pow(score - avg, 2);\n }\n dev = (int)Math.floor(Math.sqrt(dev / allScores.size()));\n\n // TODO: Perform the actual calculations here\n average.add(avg);\n median.add(med);\n mode.add(mod);\n stdDev.add(dev);\n\n this.overallAnalytics.put(\"Average\", average);\n this.overallAnalytics.put(\"Median\", median);\n this.overallAnalytics.put(\"Mode\", mode);\n this.overallAnalytics.put(\"Standard Deviation\", stdDev);\n }", "public void printStats() {\n\t\t\n\t\tif(grafo==null) {\n\t\t\t\n\t\t\tthis.createGraph();\n\t\t}\n\t\t\n\t\tConnectivityInspector <Airport, DefaultWeightedEdge> c = new ConnectivityInspector<>(grafo);\n\t\t\n\t\tSystem.out.println(c.connectedSets().size());\n\n\t}", "public TrainingStatus trainingStatus() {\n return this.trainingStatus;\n }", "double getLearningRate();", "public void trainBernoulli() {\t\t\n\t\tMap<String, Cluster> trainingDataSet = readFile(trainLabelPath, trainDataPath, \"training\");\n\t\tMap<String, Cluster> testingDataSet = readFile(testLabelPath, testDataPath, \"testing\");\n\n\t\t// do testing, if the predicted class and the gold class is not equal, increment one\n\t\tdouble error = 0;\n\n\t\tdouble documentSize = 0;\n\n\t\tSystem.out.println(\"evaluate the performance\");\n\t\tfor (int testKey = 1; testKey <= 20; testKey++) {\n\t\t\tCluster testingCluster = testingDataSet.get(Integer.toString(testKey));\n\t\t\tSystem.out.println(\"Cluster: \"+testingCluster.toString());\n\n\t\t\tfor (Document document : testingCluster.getDocuments()) {\n\t\t\t\tdocumentSize += 1; \n\t\t\t\tList<Double> classprobability = new ArrayList<Double>();\n\t\t\t\tMap<String, Integer> testDocumentWordCounts = document.getWordCount();\n\n\t\t\t\tfor (int classindex = 1; classindex <= 20; classindex++) {\n\t\t\t\t\t// used for calculating the probability\n\t\t\t\t\tCluster trainCluster = trainingDataSet.get(Integer.toString(classindex));\n\t\t\t\t\t// System.out.println(classindex + \" \" + trainCluster.mClassId);\n\t\t\t\t\tMap<String, Double> bernoulliProbability = trainCluster.bernoulliProbabilities;\n\t\t\t\t\tdouble probability = Math.log(trainCluster.getDocumentSize()/trainDocSize);\n\t\t\t\t\tfor(int index = 1; index <= voc.size(); index++ ){\n\n\t\t\t\t\t\t// judge whether this word is stop word \n\t\t\t\t\t\tboolean isStopwords = englishStopPosition.contains(index);\n\t\t\t\t\t\tif (isStopwords) continue;\n\n\t\t\t\t\t\tboolean contain = testDocumentWordCounts.containsKey(Integer.toString(index));\t\t\t\t\t\t\n\t\t\t\t\t\tif (contain) {\n\t\t\t\t\t\t\tprobability += Math.log(bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tprobability += Math.log(1 - bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// put the probability into the map for the specific class\n\t\t\t\t\tclassprobability.add(probability);\n\t\t\t\t}\n\t\t\t\tObject obj = Collections.max(classprobability);\n\t\t\t\t// System.out.println(classprobability);\n\t\t\t\tString predicte_class1 = obj.toString();\n\t\t\t\t// System.out.println(predicte_class1);\n\t\t\t\t// System.out.println(Double.parseDouble(predicte_class1));\n\t\t\t\tint index = classprobability.indexOf(Double.parseDouble(predicte_class1));\n\t\t\t\t// System.out.println(index);\n\t\t\t\tString predicte_class = Integer.toString(index + 1);\n\n\n\t\t\t\tconfusion_matrix[testKey - 1][index] += 1;\n\n\t\t\t\t// System.out.println(document.docId + \": G, \" + testKey + \"; P: \" + predicte_class);\n\t\t\t\tif (!predicte_class.equals(Integer.toString(testKey))) {\n\t\t\t\t\terror += 1;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize);\n\t\t}\n\n\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize + \" precision rate : \" + (1 - error/documentSize));\n\n\t\t// print confusion matrix\n\t\tprintConfusionMatrix(confusion_matrix);\n\t}", "public static StatisticsResults statistics(Model model)\n\t{\n\t\tStatisticsResults results = new StatisticsResults();\n\t\t\n\t\t// Size of the model = Number of Statements contained in the model\n\t\tlong nrStatements = model.size();\n\t\tresults.setSize(nrStatements);\n\t\t\n\t\t// Number of Resources in model\n\t\tlong resources = findAllResources(model).size();\n\t\tresults.setResources(resources);\n\t\t\n\t\t// Number of different Resources that appear as Subject in the model\n\t\tlong nrSubjects = model.listSubjects().toList().size();\n\t\tresults.setSubjects(nrSubjects);\n\t\t\n\t\t// Number of different Objects (Resources and Literals)\n\t\tList<RDFNode> objects = model.listObjects().toList();\n\t\tresults.setObjects(objects.size());\n\n\t\t// The above number of Objects does not distinguish between Resources and Literals\n\t\t// Count these Resources and Literals individually\n\t\tint resourceCounter = 0;\t\t// Number of different Resources that appear as Objects\n\t\tint literalCounter = 0;\t\t\t// Number of different Literals that appear as Objects\n\t\tfor(RDFNode o : objects)\n\t\t{\n\t\t\tif(o.isResource())\n\t\t\t{\n\t\t\t\tresourceCounter++;\n\t\t\t}\n\t\t\telse if(o.isLiteral())\n\t\t\t{\n\t\t\t\tliteralCounter++;\n\t\t\t}\n\t\t}\n\t\tresults.setObjectResources(resourceCounter);\n\t\tresults.setLiterals(literalCounter);\n\t\t\n\t\t// Average number of outgoing Links\n\t\tresults.setAvgOutgoingLinks(((double) nrStatements)/nrSubjects);\n\t\t\n\t\t// Above looked at number of different Objects\n\t\t// Now count the total number of Resources as Objects\n\t\t// and total number of Literals as Objects\n\t\t// Count number of different predicates\n\t\tHashSet<Resource> predicates = new HashSet<Resource>();\n\t\tlong nrStatementsWithResourceObject = 0;\n\t\tlong nrStatementsWithLiteralObject = 0;\n//\t\tList<Statement> statements = model.listStatements().toList();\n//\t\tfor(Statement s : statements)\n\t\tStmtIterator statements = model.listStatements();\n\t\twhile(statements.hasNext())\n\t\t{\n\t\t\tStatement s = statements.nextStatement();\n\t\t\tif(s.getObject().isResource())\n\t\t\t{\n\t\t\t\tnrStatementsWithResourceObject++;\n\t\t\t}\n\t\t\telse if(s.getObject().isLiteral())\n\t\t\t{\n\t\t\t\tnrStatementsWithLiteralObject++;\n\t\t\t}\n\t\t\tif(!predicates.contains(s.getPredicate()))\n\t\t\t{\n\t\t\t\tpredicates.add(s.getPredicate());\n\t\t\t}\n\t\t}\n\t\tresults.setAvgIncomingLinks(((double) nrStatementsWithResourceObject)/resourceCounter);\n\t\tresults.setAvgLiterals(((double) nrStatementsWithLiteralObject)/nrSubjects);\n\t\tresults.setAvgObjectResources(((double) nrStatementsWithResourceObject)/nrSubjects);\n\t\tresults.setTotalObjectResources(nrStatementsWithResourceObject);\n\t\tresults.setTotalLiterals(nrStatementsWithLiteralObject);\n\t\tresults.setPredicates(predicates.size());\n\t\t\n\t\t\n\t\t// Calculate min, max, 25%, 50% and 75% quantile for averages\n\t\tLinkedList<Integer> subjectStatementCount = new LinkedList<Integer>();\n\t\tLinkedList<Integer> subjectResObjectCount = new LinkedList<Integer>();\n\t\tLinkedList<Integer> subjectLiteralCount = new LinkedList<Integer>();\n\t\tResIterator subjects = model.listSubjects();\n\t\twhile(subjects.hasNext())\n\t\t{\n\t\t\tResource subject = subjects.nextResource();\n\t\t\tStmtIterator statementsWithSubject = model.listStatements(subject, null, (RDFNode) null);\n\t\t\tint count = 0;\n\t\t\tint countObjectIsResource = 0;\n\t\t\tint countObjectIsLiteral = 0;\n\t\t\twhile(statementsWithSubject.hasNext())\n\t\t\t{\n\t\t\t\tStatement statement = statementsWithSubject.nextStatement();\n\t\t\t\tcount++;\n\t\t\t\tif(statement.getObject().isResource())\n\t\t\t\t{\n\t\t\t\t\tcountObjectIsResource++;\n\t\t\t\t}\n\t\t\t\tif(statement.getObject().isLiteral())\n\t\t\t\t{\n\t\t\t\t\tcountObjectIsLiteral++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsubjectStatementCount.add(count);\n\t\t\tsubjectResObjectCount.add(countObjectIsResource);\n\t\t\tsubjectLiteralCount.add(countObjectIsLiteral);\n\t\t}\n\t\t\n\t\tsubjectStatementCount = sortIntList(subjectStatementCount);\n\t\tsubjectResObjectCount = sortIntList(subjectResObjectCount);\n\t\tsubjectLiteralCount = sortIntList(subjectLiteralCount);\n\t\t\n\t\tresults.setMinOutgoingLinks(subjectStatementCount.getFirst());\n\t\tresults.setMaxOutgoingLinks(subjectStatementCount.getLast());\n\t\tDouble outLinks25Index = subjectStatementCount.size()*0.25;\n\t\tresults.setOutgoingLinks25(subjectStatementCount.get(outLinks25Index.intValue()));\n\t\tDouble outLinks50Index = subjectStatementCount.size()*0.5;\n\t\tresults.setOutgoingLinks50(subjectStatementCount.get(outLinks50Index.intValue()));\n\t\tDouble outLinks75Index = subjectStatementCount.size()*0.75;\n\t\tresults.setOutgoingLinks75(subjectStatementCount.get(outLinks75Index.intValue()));\n\t\t\n\t\tresults.setMinResObjects(subjectResObjectCount.getFirst());\n\t\tresults.setMaxResObjects(subjectResObjectCount.getLast());\n\t\tDouble resObject25Index = subjectResObjectCount.size()*0.25;\n\t\tresults.setResObjects25(subjectResObjectCount.get(resObject25Index.intValue()));\n\t\tDouble resObject50Index = subjectResObjectCount.size()*0.50;\n\t\tresults.setResObjects50(subjectResObjectCount.get(resObject50Index.intValue()));\n\t\tDouble resObject75Index = subjectResObjectCount.size()*0.75;\n\t\tresults.setResObjects75(subjectResObjectCount.get(resObject75Index.intValue()));\n\t\t\n\t\tresults.setMinLiterals(subjectLiteralCount.getFirst());\n\t\tresults.setMaxLiterals(subjectLiteralCount.getLast());\n\t\tDouble literal25Index = subjectLiteralCount.size()*0.25;\n\t\tresults.setLiterals25(subjectLiteralCount.get(literal25Index.intValue()));\n\t\tDouble literal50Index = subjectLiteralCount.size()*0.50;\n\t\tresults.setLiterals50(subjectLiteralCount.get(literal50Index.intValue()));\n\t\tDouble literal75Index = subjectLiteralCount.size()*0.75;\n\t\tresults.setLiterals75(subjectLiteralCount.get(literal75Index.intValue()));\n\t\t\n\t\tLinkedList<Integer> objectStatementCount = new LinkedList<Integer>();\n\t\tNodeIterator objectsIterator = model.listObjects();\n\t\twhile(objectsIterator.hasNext())\n\t\t{\n\t\t\tRDFNode object = objectsIterator.nextNode();\n\t\t\tif(object.isResource())\n\t\t\t{\n\t\t\t\tobjectStatementCount.add(model.listStatements(null, null, object).toList().size());\n\t\t\t}\n\t\t}\n\t\t\n\t\tobjectStatementCount = sortIntList(objectStatementCount);\n\t\t\n\t\tresults.setMinIncomingLinks(objectStatementCount.getFirst());\n\t\tresults.setMaxIncomingLinks(objectStatementCount.getLast());\n\t\tDouble inLinks25Index = objectStatementCount.size()*0.25;\n\t\tresults.setIncomingLinks25(objectStatementCount.get(inLinks25Index.intValue()));\n\t\tDouble inLinks50Index = objectStatementCount.size()*0.50;\n\t\tresults.setIncomingLinks50(objectStatementCount.get(inLinks50Index.intValue()));\n\t\tDouble inLinks75Index = objectStatementCount.size()*0.75;\n\t\tresults.setIncomingLinks75(objectStatementCount.get(inLinks75Index.intValue()));\n\t\t\n\t\treturn results;\n\t}", "public void trainModel(List<BugReport> brs){\r\n\t\t\r\n\t\tdouble startTime = System.currentTimeMillis();\r\n\t\tthis.initializeModel(brs);\r\n\t\tthis.inferenceModel(brs);\r\n\t\tdouble endTime = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"LDA training time cost: \"+(endTime-startTime)/1000.0);\r\n\t\t\r\n\t}", "public void displayStats() {\n VisitorDAO visitorDAO = new VisitorDAO();\n Object countAllVisitors = visitorDAO.getCountAllVisitors();\n Object countNewSubscribers = visitorDAO.getCountNewSubscribersForMonth(this.simpleDateFormat.format(new Date()));\n\n this.totalSubscribersText.setText(this.totalSubscribersText.getText() + countAllVisitors.toString());\n this.newSubscribersText.setText(this.newSubscribersText.getText() + countNewSubscribers.toString());\n }", "public void updateScores() {\n\t\tscoreText.setText(\"Score: \" + ultraland.getScore());\n\t}" ]
[ "0.64425766", "0.64072675", "0.606486", "0.6048775", "0.5960552", "0.5960219", "0.5948131", "0.5870407", "0.5734422", "0.56883514", "0.56846815", "0.5666646", "0.5660924", "0.56575996", "0.5627375", "0.55897975", "0.5572806", "0.5556538", "0.5481791", "0.54722154", "0.5427127", "0.541458", "0.54104704", "0.5408986", "0.53986126", "0.5384497", "0.53842497", "0.5381008", "0.538075", "0.53407604", "0.53270715", "0.5318693", "0.5317999", "0.5309007", "0.530759", "0.53063655", "0.5304644", "0.5291862", "0.52787775", "0.5266461", "0.52426404", "0.52425563", "0.52411884", "0.5238879", "0.52298373", "0.5222378", "0.5212059", "0.5201997", "0.5198847", "0.5189326", "0.5189302", "0.5179685", "0.51781344", "0.5176582", "0.51680183", "0.5156347", "0.51440215", "0.5142886", "0.5129244", "0.5125987", "0.51084596", "0.5108239", "0.5102552", "0.5088699", "0.50830126", "0.5079967", "0.5079826", "0.5076699", "0.50762516", "0.506921", "0.50547856", "0.50535077", "0.5049145", "0.5046467", "0.50381005", "0.50378895", "0.50352883", "0.50288725", "0.5024163", "0.502191", "0.5021589", "0.501517", "0.5011443", "0.49972582", "0.49956533", "0.49822542", "0.49820644", "0.49788576", "0.49707687", "0.49683064", "0.49628204", "0.49624363", "0.49604517", "0.49578413", "0.49560368", "0.49506462", "0.4944072", "0.4942683", "0.49405634", "0.49361897", "0.4935584" ]
0.0
-1
Shows model stats Shows the model score and last training time
public ApiResponse<ModelApiResponse> showModelStatsWithHttpInfo(String workspaceId, String modelId) throws ApiException { okhttp3.Call localVarCall = showModelStatsValidateBeforeCall(workspaceId, modelId, null); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void statistics(){\n System.out.println(this.scoreboard.toString());\n }", "protected float computeModelScoreOnTraining() {\n/* 508 */ float s = computeModelScoreOnTraining(0, this.samples.size() - 1, 0);\n/* 509 */ s /= this.samples.size();\n/* 510 */ return s;\n/* */ }", "public void stats() {\n\t\tSystem.out.println(\"The score is: \" + score \n\t\t\t\t+ \"\\nNumber of Astronauts rescused: \" + rescuedAstronauts \n\t\t\t\t+ \"\\nNumber of Astronauts roaming: \" + roamingAstronauts\n\t\t\t\t+ \"\\nNumber of Aliens rescued: \" + rescuedAliens\n\t\t\t\t+ \"\\nNumber of Aliens roaming: \" + roamingAliens);\n\t}", "protected float computeModelScoreOnValidation() {\n/* 549 */ float score = computeModelScoreOnValidation(0, this.validationSamples.size() - 1);\n/* 550 */ return score / this.validationSamples.size();\n/* */ }", "public void printStatus() {\n\t\tSystem.out.println(\"Current : \"+current+\"\\n\"\n\t\t\t\t+ \"Tour restant : \"+nb_rounds+\"\\n\"\n\t\t\t\t\t\t+ \"Troupe restant : \"+nb_to_train);\n\t}", "public static void display() { System.err.println(\"Train parameters: smooth=\" + smoothing + \" PA=\" + PA + \" GPA=\" + gPA + \" selSplit=\" + selectiveSplit + \" (\" + selectiveSplitCutOff + (deleteSplitters != null ? \"; deleting \" + deleteSplitters : \"\") + \")\" + \" mUnary=\" + markUnary + \" mUnaryTags=\" + markUnaryTags + \" sPPT=\" + splitPrePreT + \" tagPA=\" + tagPA + \" tagSelSplit=\" + tagSelectiveSplit + \" (\" + tagSelectiveSplitCutOff + \")\" + \" rightRec=\" + rightRec + \" leftRec=\" + leftRec + \" xOverX=\" + xOverX + \" collinsPunc=\" + collinsPunc + \" markov=\" + markovFactor + \" mOrd=\" + markovOrder + \" hSelSplit=\" + hSelSplit + \" (\" + HSEL_CUT + \")\" + \" compactGrammar=\" + compactGrammar() + \" leaveItAll=\" + leaveItAll + \" postPA=\" + postPA + \" postGPA=\" + postGPA + \" selPSplit=\" + selectivePostSplit + \" (\" + selectivePostSplitCutOff + \")\" + \" tagSelPSplit=\" + tagSelectivePostSplit + \" (\" + tagSelectivePostSplitCutOff + \")\" + \" postSplitWithBase=\" + postSplitWithBaseCategory + \" fractionBeforeUnseenCounting=\" + fractionBeforeUnseenCounting + \" openClassTypesThreshold=\" + openClassTypesThreshold); }", "public void reportStats() {\n System.out.println(\"Number of requests: \" + (requestCount - warmUpRequests));\n System.out.println(\"Number of hits: \" + hitCount);\n System.out.println(\"hit ratio: \" + (double) hitCount / (requestCount - warmUpRequests));\n System.out.println(\"Average hit cost: \" + (double) hitCost / hitCount);\n }", "public void printStats() {\n\t\tSystem.out.println(\"============= RULEGROWTH - STATS ========\");\n\t\tSystem.out.println(\"Sequential rules count: \" + ruleCount);\n\t\tSystem.out.println(\"Total time: \" + (timeEnd - timeStart) + \" ms\");\n\t\tSystem.out.println(\"Max memory: \" + MemoryLogger.getInstance().getMaxMemory());\n\t\tSystem.out.println(\"==========================================\");\n\t}", "public void getResults() {\n\t\tSystem.out.println(\"|V| : \" + g.getV());\n\t\tSystem.out.println(\"|E| : \" + g.getE());\n\t\tSystem.out.println(\"Max flow : \" + g.getVertex(sink).e);\n\t\tSystem.out.println(\"Run time : \" + (System.currentTimeMillis()-timeStart) + \" ms\"+\"\\n\");\n\t}", "private void train() throws IOException {\r\n\r\n // Set Listeners, to see results of evaluation during training process and testing\r\n vgg16Transfer.setListeners(new ScoreIterationListener(100));\r\n trainWriter.write(\"\\n Train model....\");\r\n System.out.println(\"\\n Train model....\");\r\n int iterationsCounter = 0;\r\n // Go through all data \"epochs\" - number of times\r\n for(int n = 0; n < epochs; n++) {\r\n System.out.println(String.format(\"Epoch %d started training\", n + 1));\r\n trainWriter.write(String.format(\"Epoch %d started training\", n + 1));\r\n\r\n //Reset training iterator to the new epoch\r\n trainIterator.reset();\r\n // Go through all data once, till it's end\r\n while (trainIterator.hasNext()) {\r\n iterationsCounter++;\r\n trainingData = trainIterator.next();\r\n normalizer.fit(trainingData);\r\n vgg16Transfer.fit(trainingData);\r\n System.out.println(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n\r\n }\r\n System.out.println(String.format(\"Epoch %d finished training\", n + 1));\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n // Get results and check them\r\n Evaluation eval = new Evaluation(numLabels);\r\n testIterator.reset();\r\n while(testIterator.hasNext()) {\r\n testData = testIterator.next();\r\n normalizer.fit(testData);\r\n INDArray features = testData.getFeatures();\r\n INDArray labels = testData.getLabels();\r\n INDArray predicted = vgg16Transfer.outputSingle(features);\r\n eval.eval(labels, predicted);\r\n }\r\n System.out.println(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n System.out.println(eval.stats());\r\n System.out.println(eval.confusionToString());\r\n trainWriter.write(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n trainWriter.write(eval.stats());\r\n trainWriter.write(eval.confusionToString());\r\n }\r\n System.out.println(\"\\n *** Training finished! *** \");\r\n trainWriter.write(\"\\n *** Training finished! *** \");\r\n }", "public void buildModel() {\n double loss_pre = Double.MAX_VALUE;\n for (int iter = 0; iter < maxIter; iter ++) {\n Long start = System.currentTimeMillis();\n if (showProgress)\n System.out.println(\"Iteration \"+(iter+1)+\" started\");\n // Update user latent vectors\n IntStream.range(0,userCount).parallel().peek(i->update_user(i)).forEach(j->{});\n /*\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n */\n if (showProgress) {\n System.out.println(\"Users updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n IntStream.range(0,itemCount).parallel().peek(i->update_item(i)).forEach(j->{});\n // Update item latent vectors\n /*\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n */\n if (showProgress) {\n System.out.println(\"Items updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n // Show loss\n if (showLoss)\n loss_pre = showLoss(iter, start, loss_pre);\n\n\n } // end for iter\n\n }", "public void printModelInfo() {\n\t\tDebug.info(\"Jay3dModel\",\n\t\t\t\t\"Obj Name: \\t\\t\" + name + \"\\n\" +\n\t\t\t\t\"V Size: \\t\\t\" + modelVertices.size() + \"\\n\" +\n\t\t\t\t\"Vt Size: \\t\\t\" + textureVertices.size() + \"\\n\" +\n\t\t\t\t\"Vn Size: \\t\\t\" + normalVertices.size() + \"\\n\" +\n\t\t\t\t\"G Size: \\t\\t\" + groups.size() + \"\\n\" +\n\t\t\t\t\"S Size: \\t\\t\" + getSegmentCount() + \"\\n\" + \n\t\t\t\t\"F Size: \\t\\t\" + ((segments.size()>0)?segments.get(0).faces.size():0) + \"\\n\");\n\t}", "public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}", "public void displayModelDetails() {\n System.out.println(\"Name: \" + getFirstName() + \" \" + getLastName());\n System.out.println(\"Height: \" + getHeightInFeetAndInches());\n System.out.println(\"Weight: \" + getWeight() + \" pounds\");\n String travelMessage = canTravel ? \"yep\" : \"nope\";\n System.out.println(\"Travels: \" + travelMessage);\n String smokeMessage = smokes ? \"yep\" : \"nope\";\n System.out.println(\"Smokes\" + smokeMessage);\n System.out.println(\"Hourly rate: $\" + calculatePayDollarsPerHour());\n }", "public void printStats() {\n\t\tSystem.out.println(\"========== LCMFreq v0.96r18 - STATS ============\");\n\t\tSystem.out.println(\" Freq. itemsets count: \" + frequentCount);\n\t\tSystem.out.println(\" Total time ~: \" + (endTimestamp - startTimestamp)\n\t\t\t\t+ \" ms\");\n\t\tSystem.out.println(\" Max memory:\" + MemoryLogger.getInstance().getMaxMemory());\n\t\tSystem.out.println(\"=====================================\");\n\t}", "public void displayResults() {\r\n Preferences.debug(\" ******* FitMultiExponential ********* \\n\\n\", Preferences.DEBUG_ALGORITHM);\r\n dumpTestResults();\r\n }", "@Override\n public String toString() {\n return \"BestMean convergence stoptest\";\n }", "private static void printStats()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords found: \" + keywordHits);\r\n\t\tSystem.out.println(\"Links found: \" + SharedLink.getLinksFound());\r\n\t\tSystem.out.println(\"Pages found: \" + SharedPage.getPagesDownloaded());\r\n\t\tSystem.out.println(\"Failed downloads: \" + SharedPage.getFailedDownloads());\r\n\t\tSystem.out.println(\"Producers: \" + fetchers);\r\n\t\tSystem.out.println(\"Consumers: \" + parsers);\r\n\t}", "public void show() {\n\t\t\n\t\tSystem.out.println(\"time (tree setup) = \" + treeSetup + \" ms\");\n\t\tSystem.out.println(\"time (average search) = \" + (totalSearch/(float)countSearch) + \" ms\");\n\t\tSystem.out.println(\"time (average at) = \" + (totalAt/(float)countAt) + \" ms\");\n \t}", "public void printStatistics() {\n\t// Skriv statistiken samlad så här långt\n stats.print();\n }", "@Tutorial(showSource = true, showSignature = true, showLink = true, linkPrefix = \"src/test/java/\")\n @Override\n public void process(ProcessorContext context)\n {\n samples.add(model.likelihood.parameters.max.getValue() - observation.getValue());\n }", "public void updatePlayerModel() {\n double average = 0.0;\n for (int i = 0; i < playerModelDiff1.size(); i++) {\n average += (double) playerModelDiff1.get(i);\n }\n if ( playerModelDiff1.size() > 0 )\n average = average / playerModelDiff1.size();\n playerModel[0] = average;\n\n //Update playerModel[1] - difficulty 4\n average = 0.0;\n for (int i = 0; i < playerModelDiff4.size(); i++) {\n average += (double) playerModelDiff4.get(i);\n }\n if ( playerModelDiff4.size() > 0 )\n average = average / playerModelDiff4.size();\n playerModel[1] = average;\n\n //Update playerModel[2] - difficulty 7\n average = 0.0;\n for (int i = 0; i < playerModelDiff7.size(); i++) {\n average += (double) playerModelDiff7.get(i);\n }\n if ( playerModelDiff7.size() > 0 )\n average = average / playerModelDiff7.size();\n playerModel[2] = average;\n }", "private void printStats()\n\t{\n\t\t// X\n\t\tSystem.out.println(\"X:\");\n\t\tfor(int i = 0; i < xPosList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(xPosList.get(i));\n\t\t}\n\n\t\t// Y\n\t\tSystem.out.println(\"Y:\");\n\t\tfor(int i = 0; i < yPosList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(yPosList.get(i));\n\t\t}\n\n\t\t// Time\n\t\tSystem.out.println(\"Time:\");\n\t\tfor(int i = 0; i < timeList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(timeList.get(i));\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n final int numRows = 28;\n final int numColumns = 28;\n int outputNum = 10; // number of output classes\n int batchSize = 128; // batch size for each epoch\n int rngSeed = 123; // random number seed for reproducibility\n int numEpochs = 15; // number of epochs to perform\n String modelPath = \"モデルパスを入力\";\n\n //Get the DataSetIterators:\n DataSetIterator mnistTrain = new MnistDataSetIterator(batchSize, true, rngSeed);\n DataSetIterator mnistTest = new MnistDataSetIterator(batchSize, false, rngSeed);\n\n\n System.out.println(\"Build model....\");\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(rngSeed) //include a random seed for reproducibility\n // use stochastic gradient descent as an optimization algorithm\n .updater(new Nesterovs(0.006, 0.9))\n .l2(1e-4)\n .list()\n .layer(new DenseLayer.Builder() //create the first, input layer with xavier initialization\n .nIn(numRows * numColumns)\n .nOut(1000)\n .activation(Activation.RELU)\n .weightInit(WeightInit.XAVIER)\n .build())\n .layer(new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD) //create hidden layer\n .nIn(1000)\n .nOut(outputNum)\n .activation(Activation.SOFTMAX)\n .weightInit(WeightInit.XAVIER)\n .build())\n .build();\n\n\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\n model.init();\n //print the score with every 1 iteration\n UIServer uiServer = UIServer.getInstance();\n InMemoryStatsStorage statsStorage = new InMemoryStatsStorage();\n uiServer.attach(statsStorage);\n model.setListeners(new StatsListener(statsStorage),new ScoreIterationListener(1));\n\n System.out.println(\"Train model....\");\n model.fit(mnistTrain, numEpochs);\n\n\n\n\n System.out.println(\"Evaluate model....\");\n Evaluation eval = model.evaluate(mnistTest);\n System.out.println(eval.stats());\n ModelSerializer.writeModel(model, new File(modelPath), false);\n System.out.println(\"****************Example finished********************\");\n\n }", "void printStats();", "public void printStats() {\n\n System.out.println(\"Number of Users Arrived: \" + numIn);\n System.out.println(\"Number of Users Exited: \" + numOut);\n System.out.println(\"Average Time Spent Waiting for Cab: \" + (totTimeWait / numIn));\n if (numOut != 0) {\n System.out.println(\"Average Time Spent Waiting and Travelling: \" + (totTime / numOut));\n }\n }", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "void statistics();", "private final void updateStatistics(){\r\n\t\tstatisticsText_.setLength(0); \t//reset\r\n\t\t\r\n\t\tRegion[][] regions = Map.getInstance().getRegions();\r\n\t\tVehicle[] vehicles;\r\n\t\tVehicle vehicle;\r\n\t\tint i, j, k;\r\n\t\tint activeVehicles = 0;\r\n\t\tint travelledVehicles = 0;\r\n\t\tint wifiVehicles = 0;\r\n\t\tlong messagesCreated = 0;\r\n\t\tlong IDsChanged = 0;\r\n\t\tdouble messageForwardFailed = 0;\r\n\t\tdouble travelDistance = 0;\r\n\t\tdouble travelTime = 0;\r\n\t\tdouble speed = 0;\r\n\t\tdouble knownVehicles = 0;\r\n\t\tfor(i = 0; i < regions.length; ++i){\r\n\t\t\tfor(j = 0; j < regions[i].length; ++j){\r\n\t\t\t\tvehicles = regions[i][j].getVehicleArray();\r\n\t\t\t\tfor(k = 0; k < vehicles.length; ++k){\r\n\t\t\t\t\tvehicle = vehicles[k];\r\n\t\t\t\t\tif(vehicle.getTotalTravelTime() > 0){\r\n\t\t\t\t\t\t++travelledVehicles;\r\n\t\t\t\t\t\ttravelDistance += vehicle.getTotalTravelDistance();\r\n\t\t\t\t\t\ttravelTime += vehicle.getTotalTravelTime();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(vehicle.isActive()){\r\n\t\t\t\t\t\t++activeVehicles;\r\n\t\t\t\t\t\tspeed += vehicle.getCurSpeed();\r\n\t\t\t\t\t\tif(vehicle.isWiFiEnabled()){\r\n\t\t\t\t\t\t\t++wifiVehicles;\r\n\t\t\t\t\t\t\tmessageForwardFailed += vehicle.getKnownMessages().getFailedForwardCount();\r\n\t\t\t\t\t\t\tknownVehicles += vehicle.getKnownVehiclesList().getSize();\r\n\t\t\t\t\t\t\tIDsChanged += vehicle.getIDsChanged();\r\n\t\t\t\t\t\t\tmessagesCreated += vehicle.getMessagesCreated();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.currentTime\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(Renderer.getInstance().getTimePassed()));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.activeVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(activeVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageSpeed\")); //$NON-NLS-1$\r\n\t\tif(activeVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(speed/activeVehicles/100000*3600));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" km/h\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelDistance\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelDistance/travelledVehicles/100));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" m\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelTime\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelTime/travelledVehicles/1000));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" s\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.wifiVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(wifiVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageKnownVehicles\")); //$NON-NLS-1$\r\n\t\tif(wifiVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(knownVehicles/wifiVehicles));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.uniqueMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messagesCreated));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.failedMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messageForwardFailed));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.totalIDchanges\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(IDsChanged));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\t\r\n\t\tstatisticsTextArea_.setText(statisticsText_.toString());\r\n\t}", "java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();", "private void test() {\n\t\tlong startTime = System.currentTimeMillis();\n\t\tBpmnModelInstance modelInstance = Bpmn.readModelFromFile(loadedFile);\n\t\tJsonEncoder jsonEncoder = new JsonEncoder(loadedFile.getName());\n\t\tBpmnBasicMetricsExtractor basicExtractor = new BpmnBasicMetricsExtractor(modelInstance, jsonEncoder);\n\t\tBpmnAdvancedMetricsExtractor advExtractor = new BpmnAdvancedMetricsExtractor(basicExtractor, jsonEncoder);\n\t\tlong loadTime = System.currentTimeMillis() - startTime;\n//\t\tSystem.out.println(\"Tempo load del file: \" + loadTime + \"ms\");\n\t\tbasicExtractor.runMetrics();\n\t\tlong basicTime = System.currentTimeMillis() - loadTime - startTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche di base: \" + basicTime + \"ms\");\n\t\tadvExtractor.runMetrics();\n\t\tlong advTime = System.currentTimeMillis() - basicTime - startTime - loadTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche avanzate: \" + advTime + \"ms\");\n\t\tjsonEncoder.exportJson();\n\t\tMySqlInterface db = new MySqlInterface();\n\t\tdb.connect();\n//\t\tdb.createTables(jsonEncoder);\n//\t\tdb.createAndInsertMetricsInfosTable();\n//\t\tdb.saveMetrics(jsonEncoder);\n//\t\tdb.closeConnection();\n\t}", "public String stats() { \r\n String stats; \r\n stats = getWins() + \" wins, \" + getLosses() + \" losses, \" \r\n + getSaves() + \" saves, \" + getEra() + \" ERA\"; \r\n return stats;\r\n }", "private void cmdInfoModel() throws NoSystemException {\n MSystem system = system();\n MMVisitor v = new MMPrintVisitor(new PrintWriter(System.out, true));\n system.model().processWithVisitor(v);\n int numObjects = system.state().allObjects().size();\n System.out.println(numObjects + \" object\"\n + ((numObjects == 1) ? \"\" : \"s\") + \" total in current state.\");\n }", "public void train(){\r\n\t\tdouble output = 0.0;\r\n\t\tList<Integer> teacher = null;\r\n\t\tdouble adjustedWeight = 0.0;\r\n\t\tdouble error = 0.0;\r\n\t\tdouble deltaK = 0.0;\r\n\r\n\t\tfor(int counter = 0; counter < maxEpoch; counter++){\r\n\t\t\tfor(Instance inst : trainingSet){\r\n\t\t\t\tcalculateOutputForInstance(inst);\r\n\t\t\t\tteacher = inst.classValues;\r\n\t\t\t\t//jk weight\r\n\t\t\t\tfor(int i = 0; i < outputNodes.size(); i++){\r\n\t\t\t\t\tNode kNode = outputNodes.get(i);\r\n\t\t\t\t\toutput = kNode.getOutput();\r\n\t\t\t\t\terror = teacher.get(i) - output;\r\n\t\t\t\t\tdeltaK = error*getReLU(kNode.getSum());\r\n\t\t\t\t\tfor(int j = 0; j < kNode.parents.size(); j++){\r\n\t\t\t\t\t\tNodeWeightPair jkWeight = kNode.parents.get(j);\r\n\t\t\t\t\t\tNode jNode = jkWeight.node;\r\n\t\t\t\t\t\tadjustedWeight = getJK(jNode, deltaK);\r\n\t\t\t\t\t\tjkWeight.weight += adjustedWeight;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//ij weight\r\n\t\t\t\tfor(int i = 0; i < hiddenNodes.size(); i++){\r\n\t\t\t\t\tNode jNode = hiddenNodes.get(i);\r\n\t\t\t\t\tif(jNode.parents == null) continue;\r\n\t\t\t\t\tfor(int j = 0; j < jNode.parents.size(); j++){\r\n\t\t\t\t\t\tNodeWeightPair ijWeight = jNode.parents.get(j);\r\n\t\t\t\t\t\tNode iNode = ijWeight.node;\r\n\t\t\t\t\t\tadjustedWeight = getIJ(iNode, jNode, teacher, i);\r\n\t\t\t\t\t\tijWeight.weight += adjustedWeight;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void showStatistics(){\n\n }", "private static void printStats(Stats stats) {\n long elapsedTime = (System.nanoTime() - startTime) / 1000000;\n System.out.println(\"Analysis completed - \" + keyCount + \" keys processed in \" + elapsedTime + \" ms\");\n getConsole().println(\"Analysis completed - \" + keyCount + \" keys processed in \" + elapsedTime + \" ms\");\n stats.print();\n }", "public static void main(String[] args) throws IOException {\n\t\tMain t = new Main();\n\t\tSystem.out.println(\"The model is trained: \");\n\t\tt.training(enTrainingDir, 0.7);\n\t\tSystem.out.println(\"Check validation in example of \\\"AB\\\":\");\n\t\tt.checkValid(\"AB\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"============= unsmoothed models =============================================================================\");\n\t\tSystem.out.print(\"Unigram: \");\n\t\tSystem.out.println(t.uni);\n\t\tSystem.out.print(\"Bigram: \");\n\t\tSystem.out.println(t.bi);\n\t\tSystem.out.print(\"Trigram: \");\n\t\tSystem.out.println(t.tri);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"============= add-one smoothed models ========================================================================\");\n\t\tSystem.out.println(\"Note: this is only one of smoothed models , not the tuning process. Because there would be too many console lines.\");\n\t\tSystem.out.println(\"Here I take add-k = 0.7 as an example.\");\n\t\tSystem.out.println(\"*************************************************************************************************************\");\n\t\tdouble k = 0.7;\n\t\tt.training(enTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tt.training(esTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tt.training(deTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tSystem.out.println(\"*************************************************************************************************************\");\n\t\tSystem.out.println(\"Then I take the classic add-k = 1.0 as an example.\");\n\t\tSystem.out.println(\"*************************************************************************************************************\");\n\t\tk = 1.0;\n\t\tt.training(enTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tt.training(esTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tt.training(deTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, k, null, null);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"===== linear interpolation smoothed models ===================================================================\");\n\t\tdouble[] lambdas_tri = new double[] {1.0 / 3, 1.0 / 3, 1.0 / 3};\n\t\tdouble[] lambdas_bi = new double[] {1.0 / 2, 1.0 / 2};\n\t\tSystem.out.println(\"First is equally weighted lambdas: \" + Arrays.toString(lambdas_tri) + \" and \" + Arrays.toString(lambdas_bi));\n\t\tt.training(enTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tt.training(esTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tt.training(deTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tSystem.out.println(\"**************************************************************************************************************\");\n\t\tlambdas_tri = new double[] {0.5, 0.3, 0.2};\n\t\tlambdas_bi = new double[] {0.7, 0.3};\n\t\tSystem.out.println(\"Then is tuned-weighted lambdas: \" + Arrays.toString(lambdas_tri) + \" and \" + Arrays.toString(lambdas_bi));\n\t\tSystem.out.println(\"Again, this is not all the tuning process. Here is only one set of lambdas.\");\n\t\tt.training(enTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tt.training(esTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tt.training(deTrainingDir, 0.7);\n\t\tt.calculateScore(testDir, 0, lambdas_bi, lambdas_tri);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"=================== Generating texts ==========================================================================\");\n\t\tSystem.out.println(\"To save console space, here I generate A to E, five sentences. Feel free to adjust parameters in code.\");\n\t\tSystem.out.println(\"***************************************************************************************************************\");\n\t\tt.training(enTrainingDir, 0.7);\n\t\tSystem.out.println(\"**************** Bi-gram generating ***************************************************************************\");\n\t\tfor (char c = 'A'; c <= 'E'; c++) {\n\t\t\tt.generateWithBigramModel(String.valueOf(c));\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Not that good huh?\");\n\t\tSystem.out.println(\"**************** Tri-gram generating *************************************************************************\");\n\t\tfor (char c = 'A'; c <= 'E'; c++) {\n\t\t\tt.generateWithBigramModel(String.valueOf(c));\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"...Seems not good as well.\");\n\t}", "protected void recordStats(Object o) {\n\t\tif (o instanceof Tutorial) {\n\t\t\t//Just record the experiment type for the tutorial mode. No need to record success or fail here\n\t\t\tSAR.code += this.experimentType;\n\t\t} else if (o instanceof PracticeDrillHuman) {\n\t\t\tSAR.code += \"PDH\" + String.valueOf(this.numOfMoves) + (currentState == GameState.H1_WON ? \"S\" : \"F\");\n\t\t} else if (o instanceof PracticeDrillAI) {\n\t\t\tSAR.code += \"A\" + String.valueOf(this.numOfMoves) + (currentState == GameState.H1_WON ? \"S\" : \"F\");\n\t\t} else if (o instanceof FinalMission) {\n\t\t\tSAR.code += \"M\" + String.valueOf(this.numOfMoves) + \"T\" + String.valueOf(this.numOfTimesAITriggered) + (currentState == GameState.H1_WON ? \"S\" : \"F\");\n\t\t}\n\t}", "private void printScore() {\r\n View.print(score);\r\n }", "public void model() \n\t{\n\t\t\n\t\ttry \n\t\t{\n\t\t GRBEnv env = new GRBEnv();\n\t\t GRBModel model = new GRBModel(env, \"resources/students.lp\");\n\n\t\t model.optimize();\n\n\t\t int optimstatus = model.get(GRB.IntAttr.Status);\n\n\t\t if (optimstatus == GRB.Status.INF_OR_UNBD) {\n\t\t model.getEnv().set(GRB.IntParam.Presolve, 0);\n\t\t model.optimize();\n\t\t optimstatus = model.get(GRB.IntAttr.Status);\n\t\t }\n\n\t\t if (optimstatus == GRB.Status.OPTIMAL) {\n\t\t double objval = model.get(GRB.DoubleAttr.ObjVal);\n\t\t System.out.println(\"Optimal objective: \" + objval);\n\t\t } else if (optimstatus == GRB.Status.INFEASIBLE) {\n\t\t System.out.println(\"Model is infeasible\");\n\n\t\t // Compute and write out IIS\n\t\t model.computeIIS();\n\t\t model.write(\"model.ilp\");\n\t\t } else if (optimstatus == GRB.Status.UNBOUNDED) {\n\t\t System.out.println(\"Model is unbounded\");\n\t\t } else {\n\t\t System.out.println(\"Optimization was stopped with status = \"\n\t\t + optimstatus);\n\t\t }\n\n\t\t // Dispose of model and environment\n\t\t model.write(\"resources/model.sol\");\n\t\t model.dispose();\n\t\t env.dispose();\n\n\t\t } catch (GRBException e) {\n\t\t System.out.println(\"Error code: \" + e.getErrorCode() + \". \" +\n\t\t e.getMessage());\n\t\t }\n\t\t\n\t}", "public void evaluate(String sampleFile, String featureDefFile, int nFold, float tvs, String modelDir, String modelFile) {\n/* 854 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 855 */ List<List<RankList>> validationData = new ArrayList<>();\n/* 856 */ List<List<RankList>> testData = new ArrayList<>();\n/* */ \n/* */ \n/* */ \n/* 860 */ List<RankList> samples = readInput(sampleFile);\n/* */ \n/* */ \n/* 863 */ int[] features = readFeature(featureDefFile);\n/* 864 */ if (features == null) {\n/* 865 */ features = FeatureManager.getFeatureFromSampleVector(samples);\n/* */ }\n/* 867 */ FeatureManager.prepareCV(samples, nFold, tvs, trainingData, validationData, testData);\n/* */ \n/* */ \n/* 870 */ if (normalize)\n/* */ {\n/* 872 */ for (int j = 0; j < nFold; j++) {\n/* */ \n/* 874 */ normalizeAll(trainingData, features);\n/* 875 */ normalizeAll(validationData, features);\n/* 876 */ normalizeAll(testData, features);\n/* */ } \n/* */ }\n/* */ \n/* 880 */ Ranker ranker = null;\n/* 881 */ double scoreOnTrain = 0.0D;\n/* 882 */ double scoreOnTest = 0.0D;\n/* 883 */ double totalScoreOnTest = 0.0D;\n/* 884 */ int totalTestSampleSize = 0;\n/* */ \n/* 886 */ double[][] scores = new double[nFold][]; int i;\n/* 887 */ for (i = 0; i < nFold; i++) {\n/* 888 */ (new double[2])[0] = 0.0D; (new double[2])[1] = 0.0D; scores[i] = new double[2];\n/* 889 */ } for (i = 0; i < nFold; i++) {\n/* */ \n/* 891 */ List<RankList> train = trainingData.get(i);\n/* 892 */ List<RankList> vali = null;\n/* 893 */ if (tvs > 0.0F)\n/* 894 */ vali = validationData.get(i); \n/* 895 */ List<RankList> test = testData.get(i);\n/* */ \n/* 897 */ RankerTrainer trainer = new RankerTrainer();\n/* 898 */ ranker = trainer.train(this.type, train, vali, features, this.trainScorer);\n/* */ \n/* 900 */ double s2 = evaluate(ranker, test);\n/* 901 */ scoreOnTrain += ranker.getScoreOnTrainingData();\n/* 902 */ scoreOnTest += s2;\n/* 903 */ totalScoreOnTest += s2 * test.size();\n/* 904 */ totalTestSampleSize += test.size();\n/* */ \n/* */ \n/* 907 */ scores[i][0] = ranker.getScoreOnTrainingData();\n/* 908 */ scores[i][1] = s2;\n/* */ \n/* */ \n/* 911 */ if (!modelDir.isEmpty()) {\n/* */ \n/* 913 */ ranker.save(FileUtils.makePathStandard(modelDir) + \"f\" + (i + 1) + \".\" + modelFile);\n/* 914 */ System.out.println(\"Fold-\" + (i + 1) + \" model saved to: \" + modelFile);\n/* */ } \n/* */ } \n/* 917 */ System.out.println(\"Summary:\");\n/* 918 */ System.out.println(this.testScorer.name() + \"\\t| Train\\t| Test\");\n/* 919 */ System.out.println(\"----------------------------------\");\n/* 920 */ for (i = 0; i < nFold; i++)\n/* 921 */ System.out.println(\"Fold \" + (i + 1) + \"\\t| \" + SimpleMath.round(scores[i][0], 4) + \"\\t| \" + SimpleMath.round(scores[i][1], 4) + \"\\t\"); \n/* 922 */ System.out.println(\"----------------------------------\");\n/* 923 */ System.out.println(\"Avg.\\t| \" + SimpleMath.round(scoreOnTrain / nFold, 4) + \"\\t| \" + SimpleMath.round(scoreOnTest / nFold, 4) + \"\\t\");\n/* 924 */ System.out.println(\"----------------------------------\");\n/* 925 */ System.out.println(\"Total\\t| \\t\\t| \" + SimpleMath.round(totalScoreOnTest / totalTestSampleSize, 4) + \"\\t\");\n/* */ }", "public void modelShow() {\n\t\tSystem.out.println(\"秀衣服\");\n\t}", "@RequestMapping(value = \"stats\", method = RequestMethod.GET)\n\tpublic String statsGet(HttpSession session, ModelMap model){\n\t\t//Checks if user is logged in\n\t\tif(session.getAttribute(\"username\") == null){\n\t\t\tVIEW_INDEX = \"index\";\n\t\t\treturn \"redirect:/\"+VIEW_INDEX;\n\t\t}\n\n\t\tString username = (String)session.getAttribute(\"username\");\n\t\tString date = (String)session.getAttribute(\"date\");\n\n\n\t\tArrayList user = userService.findUser(username);\n\t\tString goal = (String)user.get(1);\n\t\tint id = workoutService.getIdByDate(username, date);\n\t\tArrayList<Stats> stats = statsService.getAveragePerDay(username,id,goal);\n\t\t\n\t\tmodel.addAttribute(\"stats\",stats);\n\n\t\t//If there are no stats to look at then the user is encouraged to workout more\n\t\tif(stats == null){\n\t\t\tmodel.addAttribute(\"display\",\"none\");\n\t\t\tmodel.addAttribute(\"progressHeader\",\"You have to workout more to be able to see your progress\");\n\t\t}\n\t\t//Picture is shown that shows progress as well as average weight for each day\n\t\telse{\n\t\t\tLineChartService lcs = new LineChartService();\n\t\t\tlcs.getLineChart(username, id, goal);\n\t\t\tmodel.addAttribute(\"progressHeader\",\"Average weight per day\");\n\t\t\tmodel.addAttribute(\"username\", username);\n\t\t\tmodel.addAttribute(\"display\",\"inline\");\n\n\t\t}\n\t\tVIEW_INDEX = \"stats\";\t\t\n\t\treturn VIEW_INDEX;\n\t}", "org.tensorflow.proto.profiler.XStat getStats(int index);", "protected void dumpStats() {\n\t\t// Print the header.\n\t\tSystem.out.println(\"\\n\"+phCode+\" \"+minDelta+\" \"+maxDelta);\n\t\t\n\t\t// Print the data.\n\t\tSystem.out.println(\"Bias:\");\n\t\tfor(int j=0; j<bias.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,bias.get(j).minDelta,bias.get(j).maxDelta,\n\t\t\t\t\tbias.get(j).slope,bias.get(j).offset);\n\t\t}\n\t\tSystem.out.println(\"Spread:\");\n\t\tfor(int j=0; j<spread.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,spread.get(j).minDelta,spread.get(j).maxDelta,\n\t\t\t\t\tspread.get(j).slope,spread.get(j).offset);\n\t\t}\n\t\tSystem.out.println(\"Observability:\");\n\t\tfor(int j=0; j<observ.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,observ.get(j).minDelta,observ.get(j).maxDelta,\n\t\t\t\t\tobserv.get(j).slope,observ.get(j).offset);\n\t\t}\n\t}", "public final TwoClassConfusionMatrix getStats() {\n return m_stats;\n }", "private void showGameScore() {\n System.out.println(messageProvider.provideMessage(\"score\"));\n System.out.println(settings.getPlayers().get(0).getScore()\n + \" vs \" + settings.getPlayers().get(1).getScore());\n }", "@Override\r\n\tpublic Double getModel_1ztb_prop_score() {\n\t\treturn super.getModel_1ztb_prop_score();\r\n\t}", "public static void outputStatistics(StatisticsResults results)\n\t{\n\t\tLogger logger = Log.getLogger();\n\t\t\n\t\tlogger.info(\"Size/number of statements of model: \" + results.getSize() + \"\\n\"\n\t\t\t\t\t+ \"Number of different resources: \" + results.getResources() + \"\\n\"\n\t\t\t\t\t+ \"Number of different subjects: \" + results.getSubjects() + \"\\n\"\n\t\t\t\t\t+ \"Number of different predicates: \" + results.getPredicates() + \"\\n\"\n\t\t\t\t\t+ \"Number of different objects: \" + results.getObjects() + \"\\n\"\n\t\t\t\t\t+ \"Number of different object resources: \" + results.getObjectResources() + \"\\n\"\n\t\t\t\t\t+ \"Number of different literals: \" + results.getLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Total number of object resources: \" + results.getTotalObjectResources() + \"\\n\"\n\t\t\t\t\t+ \"Total number of literals: \" + results.getTotalLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Average number of outgoing links per subject: \" + results.getAvgOutgoingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of outgoing links per subject: \" + results.getMinOutgoingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of outgoing links per subject: \" + results.getMaxOutgoingLinks() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of outgoing links per subject: \" + results.getOutgoingLinks25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of outgoing links per subject: \" + results.getOutgoingLinks50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of outgoing links per subject: \" + results.getOutgoingLinks75() + \"\\n\"\n\t\t\t\t\t+ \"Average number of incoming links per object resource: \" + results.getAvgIncomingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of incoming links per object resource: \" + results.getMinIncomingLinks() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of incoming links per object resource: \" + results.getMaxIncomingLinks() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of incoming links per object resrouce: \" + results.getIncomingLinks25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of incoming links per object resource: \" + results.getIncomingLinks50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of incoming links per object resource: \" + results.getIncomingLinks75() + \"\\n\"\n\t\t\t\t\t+ \"Average number of literals per subject: \" + results.getAvgLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of literals per subject: \" + results.getMinLiterals() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of literals per subject: \" + results.getMaxLiterals() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of literals per subject: \" + results.getLiterals25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of literals per subject: \" + results.getLiterals50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of literals per subject: \" + results.getLiterals75() + \"\\n\"\n\t\t\t\t\t+ \"Average number of object resources per subject: \" + results.getAvgObjectResources() + \"\\n\"\n\t\t\t\t\t+ \"Minimum number of object resources per subject: \" + results.getMinResObjects() + \"\\n\"\n\t\t\t\t\t+ \"Maximum number of object resources per subject: \" + results.getMaxResObjects() + \"\\n\"\n\t\t\t\t\t+ \"25% quantile of object resources per subject: \" + results.getResObjects25() + \"\\n\"\n\t\t\t\t\t+ \"50% quantile of object resources per subject: \" + results.getResObjects50() + \"\\n\"\n\t\t\t\t\t+ \"75% quantile of object resources per subject: \" + results.getResObjects75() + \"\\n\");\n\t}", "public void printPrediction() {\n\t\tfor (int i = 0; i < testData.size(); i++) {\n\t\n\t\t\tSystem.out.print(testData.get(i) + \", Predicted label:\"\n\t\t\t\t\t+ predictLabels[i]);\n\t\t\tif (predictLabels[i] >= 20) System.out.println(\" Successful\");\n\t\t\telse System.out.println(\" Failed\");\n\t\t}\n\t}", "@Override\r\n\tpublic Double getModel_churn_score() {\n\t\treturn super.getModel_churn_score();\r\n\t}", "public String getScoreInfo() {\n return scoreInfo + \"Dependency Score=\" + dependencyScore + \" pageRank=\" + pageRank +\n \" total=\" + totalScore + \"\\n\";\n }", "public void displayStats()\n {\n if(graph == null)\n {\n clearStats();\n }\n else\n { \n pathJTextArea.setText(graph.getPathString(pathList));\n costJTextField.setText(decimal.format(graph.getPathCost(pathList)));\n timeJTextField.setText(String.valueOf(timePassed));\n }\n }", "public void saveStats() {\n this.saveStats(null);\n }", "public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}", "@RequestMapping(value = \"finalScore\")\n\tpublic String finalScore(Model model) {\n\t\treturn \"/team/finalScore\";\n\t}", "public void printStats() {\n\t\tSystem.out.println(\"QuickSort terminates!\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Duration: \" + getDuration() + \" seconds\");\n\t\tSystem.out.println(\"Comparisons: \" + this.comparisonCounter);\n\t\tSystem.out.println(\"Boundary: \" + this.b);\n\t}", "private void updateView() {\n model.inlezenHighscore();\n for (int i = 0; i < 10; i++) {\n view.getNaamLabels(i).setText(model.getNaam(i));\n view.getScoreLabels(i).setText(model.getScores(i));\n }\n }", "public String getStats() {\n String stats = \"Total running time: \" + runtime + \"\\\\\\\\\";\n int totalit = 0;\n int largestit = 0;\n int averageit = 0;\n for (Integer i : recGraphs) {\n totalit += i;\n averageit += i;\n if (i > largestit) {\n largestit = i;\n }\n }\n averageit /= recGraphs.size();\n double totalhit = 0;\n double longesthit = 0;\n double averagehit = 0;\n for (Double i : recHitTimes) {\n totalhit += i;\n averagehit += i / recHitTimes.size();\n if (i > longesthit) {\n longesthit = i;\n }\n }\n stats += \"Total iterations in step 3: \" + totalit + \"\\\\\\\\\";\n stats += \"Largest set of iterations in step 3: \" + largestit + \"\\\\\\\\\";\n stats += \"Average iterations set in step 3: \" + averageit + \"\\\\\\\\\";\n stats += \"Total hitting sets calculation time: \" + totalhit + \"\\\\\\\\\";\n stats += \"Average hitting set calculation time: \" + averagehit + \"\\\\\\\\\";\n stats += \"Longest hitting set calculation time: \" + longesthit + \"\\\\\\\\\";\n return stats;\n }", "public void printStatistics() {\r\n\t\tLog.info(\"*** Statistics of Sequence Selector ***\");\r\n\r\n\t\t// chains\r\n\t\tLog.info(String.format(\"Chains: %d\", chains.size()));\r\n\t\tLog.info(String.format(\"Executable Chains: %d\", execChains.size()));\r\n\t\tLog.info(String.format(\"Causal Executable Chains: %d\",\r\n\t\t\t\tcausalExecChains.size()));\r\n\r\n\t\t// bushes\r\n\t\tLog.info(String.format(\"Bushes: %d\", bushes.size()));\r\n\t\tLog.info(String.format(\"Executable Bushes: %d\", execBushes.size()));\r\n\t\tLog.info(String.format(\"Required Bushes: %d\", requiredExecBushes.size()));\r\n\t\tLog.info(String.format(\"Redundant Bushes: %d\",\r\n\t\t\t\tredundantExecBushes.size()));\r\n\r\n\t\t// total\r\n\t\tLog.info(String.format(\"Bushes in Chains: %d\", bushesInChains.size()));\r\n\t\tLog.info(String.format(\"Total Sequences: %d\", totalSequences.size()));\r\n\r\n\t\t// time\r\n\t\tLog.info(String.format(\"Total Time: %d ms\", stopWatch.getTime()));\r\n\t\tLog.info(String.format(\"Time per Event: %d ms\", stopWatch.getTime()\r\n\t\t\t\t/ events.size()));\r\n\t}", "public static void displaySta() {\n System.out.println(\"\\n\\n\");\n System.out.println(\"average service time: \" + doAvgProcessingTime() /100 + \" milliseconds\");\n System.out.println(\"max service time: \" + maxProcessingTime /100 + \" milliseconds\");\n System.out.println(\"average turn around time \" + doAvgTurnAroundTime()/100 + \" milliseconds\");\n System.out.println(\"max turn around time \" + maxTurnAroundTime/100 + \" milliseconds\");\n System.out.println(\"average wait time \" + doAvgWaitTime()/10000 + \" milliseconds\");\n System.out.println(\"max wait time \" + maxWaitTime/10000 + \" milliseconds\");\n System.out.println(\"end time \" + endProgramTime);\n System.out.println(\"start time \" + startProgramTime);\n System.out.println(\"processor utilization: \" + doCPU_usage() + \" %\");\n System.out.println(\"Throughput: \" + doThroughPut());\n System.out.println(\"---------------------------\");\n\n\n }", "@Override\n public void updateStats() {\n if (isEnglish) {\n String moves = NUM_MOVES + presenter.getNumMoves();\n String time = TIME_LEFT + presenter.getTimeLeft();\n String points = POINTS + presenter.getPoints();\n painterTextViewMoves.setText(moves);\n painterTextViewTime.setText(time);\n painterTextViewPoints.setText(points);\n } else {\n String moves = NUM_MOVES_CHINESE + presenter.getNumMoves();\n String time = TIME_LEFT_CHINESE + presenter.getTimeLeft();\n String points = POINTS_CHINESE + presenter.getPoints();\n painterTextViewTime.setText(time);\n painterTextViewMoves.setText(moves);\n painterTextViewPoints.setText(points);\n }\n }", "@Override\n\tpublic void printStudent() {\n\t\tSystem.out.print(\"학번\\t국어\\t영어\\t수학\\n\");\n\t\tSystem.out.println(\"=\".repeat(60));\n\t\tint nSize = scoreList.size();\n\t\tfor(int i = 0 ; i < nSize ; i++) {\n\t\t\tScoreVO vo = new ScoreVO();\n\t\t\tSystem.out.print(vo.getNum() + \"\\t\");\n\t\t\tSystem.out.print(vo.getKor() + \"\\t\");\n\t\t\tSystem.out.print(vo.getEng() + \"\\t\");\n\t\t\tSystem.out.print(vo.getMath() + \"\\n\");\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "public void showMetrics() {\n }", "public void display(){\n double avg;\n avg=getAvg();\n System.out.println(\"\\nThe Average of the times is : \"+avg+\" Milliseconds\");\n }", "@Override\r\n\tpublic void showSpeed() {\n\t\tSystem.out.println(\"i can run at 100km/h\");\r\n\t}", "public void saveStats() throws IOException {\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"learnedWords\")));\r\n out.println(wordIndex);\r\n for (Word s : masteredWords) {//write mastered words first\r\n out.println(s.toString());\r\n }\r\n for (int i = 0; i < learningWords.size(); i++) {//writes learning words next\r\n Word w = learningWords.get(i);\r\n out.println(w.toString());\r\n }\r\n out.close();\r\n }", "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}", "@Override\n public void train() {\n actual = observations.toArray();\n min_val_error = Double.MAX_VALUE;\n if (findDecayConstant)\n for (float alpha = 0f; alpha <= 1f; alpha += 0.01f)\n initializeAndTrainModel(alpha);\n else\n initializeAndTrainModel(optAlpha);\n }", "public ModelInfo generateInfo() { \n ModelInfo info = new ModelInfo();\n \n // Store basic info\n info.author = Author;\n info.citation = Citation;\n info.description = Description;\n info.property = Property;\n info.training = Model.TrainingStats.NumberTested + \" entries: \" + TrainingSet;\n info.notes = Notes;\n info.trainTime = new SimpleDateFormat(\"dMMMyy HH:mm z\").format(Model.getTrainTime());\n \n // Store units or class names\n if (Model instanceof AbstractClassifier) {\n info.classifier = true;\n info.units = \"\";\n AbstractClassifier clfr = (AbstractClassifier) Model;\n boolean started = false;\n for (String name : clfr.getClassNames()) {\n if (started) {\n info.units += \";\";\n }\n info.units += name;\n started = true;\n }\n } else {\n info.classifier = false;\n info.units = Units;\n }\n \n // Store names of models\n info.dataType = Dataset.printDescription(true);\n info.modelType = Model.printDescription(true);\n \n // Store validation performance data\n info.valMethod = Model.getValidationMethod();\n if (Model.isValidated()) {\n info.valScore = Model.ValidationStats.getStatistics();\n }\n \n return info;\n }", "public void outputStats (){\n System.out.println(\"Your sorcerer's stats:\");\n System.out.println(\"HP = \" + hp);\n System.out.println(\"Mana = \" + mana);\n System.out.println(\"Strength = \" + strength);\n System.out.println(\"Vitality = \" + vitality);\n System.out.println(\"Energy = \" + energy);\n }", "public void showTrainers(){\r\n System.out.println(\"Trainer: \"+this.lastName.toUpperCase()+\" \"+this.firstName.toUpperCase()+\" ,with subject: \"+\r\n this.subject.getStream().getTitle().toUpperCase());\r\n }", "private void updateStats()\n\t{\n\n\t\tint[] temp = simulation.getStatValue();\n\t\tfor(int i = 0; i < temp.length; i++)\n\t\t{\n\t\t\tthis.statsValues[i].setText(Integer.toString(temp[i]));\n\t\t}\n\t\t\n\t\tint[] temp2 = simulation.getNumberInEachLine();\n\t\tfor(int i = 0; i < temp2.length; i++)\n\t\t{\n\t\t\tthis.eatValues[i].setText(Integer.toString(temp2[i]));\n\t\t}\n\t}", "private void statsOutput(long startTime, long endTime ,Stat stat, int taskSize, List<Stat> listStat) {\n\n System.out.println();\n System.out.println(\" !!! END OF REQUEST !!!\");\n System.out.println();\n System.out.println(\"----------------------------------\");\n System.out.println(\" STATISTICS\");\n System.out.println(\"----------------------------------\");\n System.out.println(\"1. Number of threads: \" + taskSize);\n System.out.println(\"2. Total run time: \" + (endTime - startTime));\n System.out.println(\"3. Total request sent: \" + stat.getSentRequestsNum());\n System.out.println(\"4. Total successful request: \" + stat.getSuccessRequestsNum());\n System.out.println(\"5. Mean latency: \" + stat.getMeanLatency());\n System.out.println(\"6. Median latency: \" + stat.getMedianLatency());\n System.out.println(\"7. 95th percentile latency: \" + stat.get95thLatency());\n System.out.println(\"8. 99th percentile latency: \" + stat.get99thLatency());\n\n if(listStat!=null){\n OutputChart outputChart = new OutputChart(listStat);\n outputChart.generateChart(\"Part 1\");\n }\n\n }", "private static void compute_performances(Server server) {\n System.out.println(\"E[N]: Average number of packets in the buffer/queue: \" + round((double) runningBufferSizeCount / totalTicks));\n System.out.println(\"E[T]: Average sojourn time: \" + round((double) server.getTotalPacketDelay() / totalPackets + (double) serviceTime)\n + \"/packet\");\n System.out.println(\"P(idle): The proportion of time the server is idle: \"\n + round((double) server.getIdleServerCount() / totalTicks * 100) + \"%\");\n if (maxBufferSize >= 0) {\n System.out.println(\"P(loss): The packet loss probability: \" + round((double) droppedPacketCount / totalPackets * 100) + \"%\");\n }\n }", "protected void updateBest() {\n\t\tbestScoreView.setText(\"Best: \" + bestScore);\n\t}", "public void startTrainingMode() {\n\t\t\r\n\t}", "public String getStatistics() throws IOException{\n initiateWordCount();\n getHamStatistics(); \n getSpamStatistics();\n return printStatistics(); \n }", "@Override\n\tpublic void updateStatistics(Instance inst) {\n\t\t// Update the statistics for this node\n\t\t// number of instances passing through the node\n\t\tnodeStatistics.addToValue(0, 1);\n\t\t// sum of y values\n\t\tnodeStatistics.addToValue(1, inst.classValue());\n\t\t// sum of squared y values\n\t\tnodeStatistics.addToValue(2, inst.classValue()*inst.classValue());\n\t\t\t\t\n\t\tthis.perceptron.trainOnInstance(inst);\n\t\tif (this.predictionFunction != 1) { //Train target mean if prediction function is not Perceptron\n\t\t\tthis.targetMean.trainOnInstance(inst);\n\t\t}\n\t}", "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 }", "public void run() throws Exception {\r\n\r\n\r\n LibSVM svm = new LibSVM();\r\n String svmOptions = \"-S 0 -K 2 -C 8 -G 0\"; //Final result: [1, -7 for saveTrainingDataToFileHybridSampling2 ]\r\n svm.setOptions(weka.core.Utils.splitOptions(svmOptions));\r\n System.out.println(\"SVM Type and Keranl Type= \" + svm.getSVMType() + svm.getKernelType());//1,3 best result 81%\r\n // svm.setNormalize(true);\r\n\r\n\r\n// load training data from .arff file\r\n ConverterUtils.DataSource source = new ConverterUtils.DataSource(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataUSSMOTE464Random.arff\");\r\n System.out.println(\"\\n\\nLoaded data:\\n\\n\" + source.getDataSet());\r\n Instances dataFiltered = source.getDataSet();\r\n dataFiltered.setClassIndex(0);\r\n\r\n // gridSearch(svm, dataFiltered);\r\n Evaluation evaluation = new Evaluation(dataFiltered);\r\n evaluation.crossValidateModel(svm, dataFiltered, 10, new Random(1));\r\n System.out.println(evaluation.toSummaryString());\r\n System.out.println(evaluation.weightedAreaUnderROC());\r\n double[][] confusionMatrix = evaluation.confusionMatrix();\r\n for (int i = 0; i < 2; i++) {\r\n for (int j = 0; j < 2; j++) {\r\n System.out.print(confusionMatrix[i][j] + \" \");\r\n\r\n }\r\n System.out.println();\r\n }\r\n System.out.println(\"accuracy for crime class= \" + (confusionMatrix[0][0] / (confusionMatrix[0][1] + confusionMatrix[0][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for other class= \" + (confusionMatrix[1][1] / (confusionMatrix[1][1] + confusionMatrix[1][0])) * 100 + \"%\");\r\n System.out.println(\"accuracy for crime class= \" + evaluation.truePositiveRate(0) + \"%\");\r\n System.out.println(\"accuracy for other class= \" + evaluation.truePositiveRate(1) + \"%\");\r\n\r\n\r\n }", "public void printAnalysis(){\n System.out.println(\"Product: \" + this.getName());\n System.out.println(\"History: \" + this.history());\n System.out.println(\"Largest amount of product: \" + this.inventoryHistory.maxValue());\n System.out.println(\"Smallest amount of product: \" + this.inventoryHistory.minValue());\n System.out.println(\"Average: \" + this.inventoryHistory.average());\n }", "public final void report() {\n double err = classError();\n assert _valid : \"Trying to report status of invalid CM!\";\n\n SpeeDRFModel model = UKV.get(_SpeeDRFModelKey);\n String s =\n \" Type of random forest: classification\\n\"\n + \" Number of trees: \" + model.size() + \"\\n\"\n + \"No of variables tried at each split: \" + model.mtry + \"\\n\"\n + \" Estimate of err. rate: \" + Math.round(err * 10000) / 100 + \"% (\" + err + \")\\n\"\n + \" OOBEE: \" + (_computedOOB ? \"YES (sampling rate: \"+model.sample*100+\"%)\" : \"NO\")+ \"\\n\"\n + \" Confusion matrix:\\n\"\n + toString() + \"\\n\"\n + \" CM domain: \" + Arrays.toString(_domain) + \"\\n\"\n + \" Avg tree depth (min, max): \" + model.depth() + \"\\n\"\n + \" Avg tree leaves (min, max): \" + model.leaves() + \"\\n\"\n + \" Validated on (rows): \" + rows() + \"\\n\"\n + \" Rows skipped during validation: \" + skippedRows() + \"\\n\"\n + \" Mispredictions per tree (in rows): \" + Arrays.toString(_errorsPerTree)+\"\\n\";\n Log.info(Sys.RANDF,s);\n }", "public void train()\r\n\t{\r\n\t\tfor(int i=0; i < this.maxEpoch; i++)\r\n\t\t{\r\n\t\t\tfor(Instance temp_example: this.trainingSet)\r\n\t\t\t{\r\n\t\t\t\tdouble O = calculateOutputForInstance(temp_example);\r\n\t\t\t\tdouble T = temp_example.output;\r\n\t\t\t\tdouble err = T - O;\r\n\r\n\t\t\t\t//w_jk (hidden to output)\r\n\t\t\t\tdouble g_p_out = (outputNode.getSum() <= 0) ? 0 : 1;\r\n\t\t\t\tfor(NodeWeightPair hiddenNode: outputNode.parents)\r\n\t\t\t\t{\r\n\t\t\t\t\thiddenNode.set_deltaw_pq(this.learningRate*\r\n\t\t\t\t\t\t\thiddenNode.node.getOutput()*err*g_p_out);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//w_ij (input to hidden)\r\n\t\t\t\tint hid_count =0;\r\n\t\t\t\tfor(Node hiddenNode: hiddenNodes){\r\n\t\t\t\t\tdouble g_p_hid = (hiddenNode.getSum() <= 0) ? 0 : 1;\r\n\t\t\t\t\tif(hiddenNode.getType()==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor(NodeWeightPair inputNode: hiddenNode.parents){\r\n\t\t\t\t\t\t\tdouble a_i = inputNode.node.getOutput();\r\n\t\t\t\t\t\t\tinputNode.set_deltaw_pq\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\tthis.learningRate*\r\n\t\t\t\t\t\t\t\t\ta_i*g_p_hid*(err*\r\n\t\t\t\t\t\t\t\t\toutputNode.parents.get(hid_count).weight*\r\n\t\t\t\t\t\t\t\t\tg_p_out)\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\thid_count++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// for all w_pq, update weights\r\n\t\t\t\tfor(Node hiddenNode: hiddenNodes){\r\n\t\t\t\t\tif(hiddenNode.getType()==2){\r\n\t\t\t\t\t\tfor(NodeWeightPair inputNode: hiddenNode.parents){\r\n\t\t\t\t\t\t\tinputNode.weight += inputNode.get_deltaw_pq();\r\n\t\t\t\t\t\t\tinputNode.set_deltaw_pq(new Double (0.00));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor(NodeWeightPair hiddenNode: outputNode.parents)\r\n\t\t\t\t{\r\n\t\t\t\t\thiddenNode.weight += hiddenNode.get_deltaw_pq();\r\n\t\t\t\t\thiddenNode.set_deltaw_pq(new Double (0.00));\r\n\t\t\t\t}\r\n\r\n\t\t\t} // end of an instance \r\n\t\t} // end of an epoch\r\n\t}", "private void calculateAndShowStatistics() {\n Map<Country, Float> countryWithMinInternetUsers = findCountryWithMinInternetUsers();\n Map<Country, Float> countryWithMinLiteracyRate = findCountryWithMinLiteracyRate();\n Map<Country, Float> countryWithMaxInternetUsers = findCountryWithMaxInternetUsers();\n Map<Country, Float> countryWithMaxLiteracyRate = findCountryWithMaxLiteracyRate();\n\n // Output header\n System.out.println(\"\\nStatistics based on the data provided in the database\\n\");\n\n // Output minimums\n screenPrinter.outputMinOrMax(\"minimum\", \"amount of Internet Users\", countryWithMinInternetUsers);\n screenPrinter.outputMinOrMax(\"minimum\", \"Adult Literacy Rate\",countryWithMinLiteracyRate);\n\n // Output maximums\n screenPrinter.outputMinOrMax(\"maximum\", \"amount of Internet Users\",countryWithMaxInternetUsers);\n screenPrinter.outputMinOrMax(\"maximum\", \"Adult Literacy Rate\",countryWithMaxLiteracyRate);\n System.out.println();\n\n // Find countries that have all the data\n List<Country> countriesWithoutMissingData = findAllCountiesWithoutMissingData();\n\n // Form two separate lists with just indicators\n List<Float> listOfInternetUsersRates = getListOfInternetUsersRates(countriesWithoutMissingData);\n List<Float> listOfLiteracyRates = getListOfLiteracyRates(countriesWithoutMissingData);\n\n // Calculate the correlation coefficient\n double correlationCoefficient = calculateCorCoeff(listOfInternetUsersRates, listOfLiteracyRates);\n// double pearsonCoefficient = calculateCoeffThirdParty(listOfInternetUsersRates, listOfLiteracyRates);\n\n // output correlation coefficient\n screenPrinter.outputCorrelation(correlationCoefficient);\n }", "@Override\n public void visualize() {\n if (this.count() > 0){\n for (int i = 0; i < this.count(); i++){\n System.out.println(i + \".- \" + this.bench.get(i).getName() + \" (ID: \" + this.bench.get(i).getId() + \")\");\n }\n } else {\n System.out.println(\"La banca está vacía.\");\n }\n\n }", "public void recalculateStats(){\n weight = .25f * (shaftMat.getParameter(\"Density\") * length + headMat.getParameter(\"Density\") * .4f);\n sharpness = headMat.getParameter(\"Malleability\") + 1f / headMat.getParameter(\"Durability\"); //Malleable objects can be sharp, as can fragile objects\n// fragility = 1f / (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n durability = (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n trueness = shaftMat.getParameter(\"Regularity\") + headMat.getParameter(\"Regularity\");\n// length = 2f;\n }", "public void showAVL() {\n\n\t\tSystem.out.println(\"time (tree setup) = \" + treeSetup + \" ms\");\n\t\tSystem.out.println(\"time (average search) = \" + (totalSearch/(float)countSearch) + \" ms\");\n\t\tSystem.out.println(\"time (average at) = \" + (totalAt/(float)countAt) + \" ms\");\n \t}", "@Override\n\tpublic String toString()\n\t{\n\t\treturn \"Statistical output: \"\n\t\t\t\t+\"replication size = \"+this.replicationSize+\"; \"\n\t\t\t\t+\"sample size = \"+this.sampleSize+\"; \"\n\t\t\t\t+\"mean = \"+this.mean+\"; \"\n\t\t\t\t+\"std. dev. = \"+this.stDev+\"; \"\n\t\t\t\t+\"CI width (alpha = \"+this.alpha+\"; \"+this.nameOfStatisticalTest+\" ) = \"+this.CIWidth+\".\";\n\t}", "public void recognizeStats() {\n\n if (recognitionStats){\n setUiState(STATE_NOSTATICS);\n recognitionStats = false;\n }else{\n setUiState(STATE_STATICS);\n recognitionStats = true;\n }\n }", "public void printMetrics() {\n System.out.println(\"\\nPROG_SIZE = \" + Metrics.getProgSize() + '\\n' + \"EXEC_TIME = \" + Metrics.getExecTime() + \" ms\" + '\\n' + \"EXEC_MOVE = \" + Metrics.getExecMove() + '\\n' + \"DATA_MOVE = \" + Metrics.getDataMove() + '\\n' + \"DATA_READ = \" + Metrics.getDataRead() + '\\n' + \"DATA_WRITE = \" + Metrics.getDataWrite() + '\\n');\n }", "public void evaluate(String trainFile, double percentTrain, String testFile, String featureDefFile) {\n/* 799 */ List<RankList> train = new ArrayList<>();\n/* 800 */ List<RankList> validation = new ArrayList<>();\n/* 801 */ int[] features = prepareSplit(trainFile, featureDefFile, percentTrain, normalize, train, validation);\n/* 802 */ List<RankList> test = null;\n/* */ \n/* */ \n/* 805 */ if (!testFile.isEmpty()) {\n/* */ \n/* 807 */ test = readInput(testFile);\n/* 808 */ if (normalize) {\n/* 809 */ normalize(test, features);\n/* */ }\n/* */ } \n/* 812 */ RankerTrainer trainer = new RankerTrainer();\n/* 813 */ Ranker ranker = trainer.train(this.type, train, validation, features, this.trainScorer);\n/* */ \n/* 815 */ if (test != null) {\n/* */ \n/* 817 */ double rankScore = evaluate(ranker, test);\n/* 818 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ } \n/* 820 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 822 */ System.out.println(\"\");\n/* 823 */ ranker.save(modelFile);\n/* 824 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }", "private void calculateOverall()\n {\n ArrayList<Integer> average = new ArrayList<Integer>(1);\n ArrayList<Integer> median = new ArrayList<Integer>(1);\n ArrayList<Integer> mode = new ArrayList<Integer>();\n ArrayList<Integer> stdDev = new ArrayList<Integer>(1);\n \n int avg = 0;\n int med = 90;\n int mod = 90;\n int dev = 0;\n \n int[] modeArray = new int[100];\n \n for (int i = 0; i < 100; i++) {\n \tmodeArray[i] = 0;\n }\n \n for (Integer score : allScores) {\n \tavg += score;\n \tmodeArray[score]++;\n }\n \n for (int i = 0; i < 100; i++) {\n \tif (modeArray[i] > mod) {\n \t\tmod = modeArray[i];\n \t}\n }\n \n avg = avg / allScores.size();\n \n Collections.sort(allScores);\n med = allScores.get(allScores.size() / 2);\n \n for (Integer score : allScores) {\n \tdev += Math.pow(score - avg, 2);\n }\n dev = (int)Math.floor(Math.sqrt(dev / allScores.size()));\n\n // TODO: Perform the actual calculations here\n average.add(avg);\n median.add(med);\n mode.add(mod);\n stdDev.add(dev);\n\n this.overallAnalytics.put(\"Average\", average);\n this.overallAnalytics.put(\"Median\", median);\n this.overallAnalytics.put(\"Mode\", mode);\n this.overallAnalytics.put(\"Standard Deviation\", stdDev);\n }", "public void printStats() {\n\t\t\n\t\tif(grafo==null) {\n\t\t\t\n\t\t\tthis.createGraph();\n\t\t}\n\t\t\n\t\tConnectivityInspector <Airport, DefaultWeightedEdge> c = new ConnectivityInspector<>(grafo);\n\t\t\n\t\tSystem.out.println(c.connectedSets().size());\n\n\t}", "public TrainingStatus trainingStatus() {\n return this.trainingStatus;\n }", "double getLearningRate();", "public void trainBernoulli() {\t\t\n\t\tMap<String, Cluster> trainingDataSet = readFile(trainLabelPath, trainDataPath, \"training\");\n\t\tMap<String, Cluster> testingDataSet = readFile(testLabelPath, testDataPath, \"testing\");\n\n\t\t// do testing, if the predicted class and the gold class is not equal, increment one\n\t\tdouble error = 0;\n\n\t\tdouble documentSize = 0;\n\n\t\tSystem.out.println(\"evaluate the performance\");\n\t\tfor (int testKey = 1; testKey <= 20; testKey++) {\n\t\t\tCluster testingCluster = testingDataSet.get(Integer.toString(testKey));\n\t\t\tSystem.out.println(\"Cluster: \"+testingCluster.toString());\n\n\t\t\tfor (Document document : testingCluster.getDocuments()) {\n\t\t\t\tdocumentSize += 1; \n\t\t\t\tList<Double> classprobability = new ArrayList<Double>();\n\t\t\t\tMap<String, Integer> testDocumentWordCounts = document.getWordCount();\n\n\t\t\t\tfor (int classindex = 1; classindex <= 20; classindex++) {\n\t\t\t\t\t// used for calculating the probability\n\t\t\t\t\tCluster trainCluster = trainingDataSet.get(Integer.toString(classindex));\n\t\t\t\t\t// System.out.println(classindex + \" \" + trainCluster.mClassId);\n\t\t\t\t\tMap<String, Double> bernoulliProbability = trainCluster.bernoulliProbabilities;\n\t\t\t\t\tdouble probability = Math.log(trainCluster.getDocumentSize()/trainDocSize);\n\t\t\t\t\tfor(int index = 1; index <= voc.size(); index++ ){\n\n\t\t\t\t\t\t// judge whether this word is stop word \n\t\t\t\t\t\tboolean isStopwords = englishStopPosition.contains(index);\n\t\t\t\t\t\tif (isStopwords) continue;\n\n\t\t\t\t\t\tboolean contain = testDocumentWordCounts.containsKey(Integer.toString(index));\t\t\t\t\t\t\n\t\t\t\t\t\tif (contain) {\n\t\t\t\t\t\t\tprobability += Math.log(bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tprobability += Math.log(1 - bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// put the probability into the map for the specific class\n\t\t\t\t\tclassprobability.add(probability);\n\t\t\t\t}\n\t\t\t\tObject obj = Collections.max(classprobability);\n\t\t\t\t// System.out.println(classprobability);\n\t\t\t\tString predicte_class1 = obj.toString();\n\t\t\t\t// System.out.println(predicte_class1);\n\t\t\t\t// System.out.println(Double.parseDouble(predicte_class1));\n\t\t\t\tint index = classprobability.indexOf(Double.parseDouble(predicte_class1));\n\t\t\t\t// System.out.println(index);\n\t\t\t\tString predicte_class = Integer.toString(index + 1);\n\n\n\t\t\t\tconfusion_matrix[testKey - 1][index] += 1;\n\n\t\t\t\t// System.out.println(document.docId + \": G, \" + testKey + \"; P: \" + predicte_class);\n\t\t\t\tif (!predicte_class.equals(Integer.toString(testKey))) {\n\t\t\t\t\terror += 1;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize);\n\t\t}\n\n\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize + \" precision rate : \" + (1 - error/documentSize));\n\n\t\t// print confusion matrix\n\t\tprintConfusionMatrix(confusion_matrix);\n\t}", "public static StatisticsResults statistics(Model model)\n\t{\n\t\tStatisticsResults results = new StatisticsResults();\n\t\t\n\t\t// Size of the model = Number of Statements contained in the model\n\t\tlong nrStatements = model.size();\n\t\tresults.setSize(nrStatements);\n\t\t\n\t\t// Number of Resources in model\n\t\tlong resources = findAllResources(model).size();\n\t\tresults.setResources(resources);\n\t\t\n\t\t// Number of different Resources that appear as Subject in the model\n\t\tlong nrSubjects = model.listSubjects().toList().size();\n\t\tresults.setSubjects(nrSubjects);\n\t\t\n\t\t// Number of different Objects (Resources and Literals)\n\t\tList<RDFNode> objects = model.listObjects().toList();\n\t\tresults.setObjects(objects.size());\n\n\t\t// The above number of Objects does not distinguish between Resources and Literals\n\t\t// Count these Resources and Literals individually\n\t\tint resourceCounter = 0;\t\t// Number of different Resources that appear as Objects\n\t\tint literalCounter = 0;\t\t\t// Number of different Literals that appear as Objects\n\t\tfor(RDFNode o : objects)\n\t\t{\n\t\t\tif(o.isResource())\n\t\t\t{\n\t\t\t\tresourceCounter++;\n\t\t\t}\n\t\t\telse if(o.isLiteral())\n\t\t\t{\n\t\t\t\tliteralCounter++;\n\t\t\t}\n\t\t}\n\t\tresults.setObjectResources(resourceCounter);\n\t\tresults.setLiterals(literalCounter);\n\t\t\n\t\t// Average number of outgoing Links\n\t\tresults.setAvgOutgoingLinks(((double) nrStatements)/nrSubjects);\n\t\t\n\t\t// Above looked at number of different Objects\n\t\t// Now count the total number of Resources as Objects\n\t\t// and total number of Literals as Objects\n\t\t// Count number of different predicates\n\t\tHashSet<Resource> predicates = new HashSet<Resource>();\n\t\tlong nrStatementsWithResourceObject = 0;\n\t\tlong nrStatementsWithLiteralObject = 0;\n//\t\tList<Statement> statements = model.listStatements().toList();\n//\t\tfor(Statement s : statements)\n\t\tStmtIterator statements = model.listStatements();\n\t\twhile(statements.hasNext())\n\t\t{\n\t\t\tStatement s = statements.nextStatement();\n\t\t\tif(s.getObject().isResource())\n\t\t\t{\n\t\t\t\tnrStatementsWithResourceObject++;\n\t\t\t}\n\t\t\telse if(s.getObject().isLiteral())\n\t\t\t{\n\t\t\t\tnrStatementsWithLiteralObject++;\n\t\t\t}\n\t\t\tif(!predicates.contains(s.getPredicate()))\n\t\t\t{\n\t\t\t\tpredicates.add(s.getPredicate());\n\t\t\t}\n\t\t}\n\t\tresults.setAvgIncomingLinks(((double) nrStatementsWithResourceObject)/resourceCounter);\n\t\tresults.setAvgLiterals(((double) nrStatementsWithLiteralObject)/nrSubjects);\n\t\tresults.setAvgObjectResources(((double) nrStatementsWithResourceObject)/nrSubjects);\n\t\tresults.setTotalObjectResources(nrStatementsWithResourceObject);\n\t\tresults.setTotalLiterals(nrStatementsWithLiteralObject);\n\t\tresults.setPredicates(predicates.size());\n\t\t\n\t\t\n\t\t// Calculate min, max, 25%, 50% and 75% quantile for averages\n\t\tLinkedList<Integer> subjectStatementCount = new LinkedList<Integer>();\n\t\tLinkedList<Integer> subjectResObjectCount = new LinkedList<Integer>();\n\t\tLinkedList<Integer> subjectLiteralCount = new LinkedList<Integer>();\n\t\tResIterator subjects = model.listSubjects();\n\t\twhile(subjects.hasNext())\n\t\t{\n\t\t\tResource subject = subjects.nextResource();\n\t\t\tStmtIterator statementsWithSubject = model.listStatements(subject, null, (RDFNode) null);\n\t\t\tint count = 0;\n\t\t\tint countObjectIsResource = 0;\n\t\t\tint countObjectIsLiteral = 0;\n\t\t\twhile(statementsWithSubject.hasNext())\n\t\t\t{\n\t\t\t\tStatement statement = statementsWithSubject.nextStatement();\n\t\t\t\tcount++;\n\t\t\t\tif(statement.getObject().isResource())\n\t\t\t\t{\n\t\t\t\t\tcountObjectIsResource++;\n\t\t\t\t}\n\t\t\t\tif(statement.getObject().isLiteral())\n\t\t\t\t{\n\t\t\t\t\tcountObjectIsLiteral++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tsubjectStatementCount.add(count);\n\t\t\tsubjectResObjectCount.add(countObjectIsResource);\n\t\t\tsubjectLiteralCount.add(countObjectIsLiteral);\n\t\t}\n\t\t\n\t\tsubjectStatementCount = sortIntList(subjectStatementCount);\n\t\tsubjectResObjectCount = sortIntList(subjectResObjectCount);\n\t\tsubjectLiteralCount = sortIntList(subjectLiteralCount);\n\t\t\n\t\tresults.setMinOutgoingLinks(subjectStatementCount.getFirst());\n\t\tresults.setMaxOutgoingLinks(subjectStatementCount.getLast());\n\t\tDouble outLinks25Index = subjectStatementCount.size()*0.25;\n\t\tresults.setOutgoingLinks25(subjectStatementCount.get(outLinks25Index.intValue()));\n\t\tDouble outLinks50Index = subjectStatementCount.size()*0.5;\n\t\tresults.setOutgoingLinks50(subjectStatementCount.get(outLinks50Index.intValue()));\n\t\tDouble outLinks75Index = subjectStatementCount.size()*0.75;\n\t\tresults.setOutgoingLinks75(subjectStatementCount.get(outLinks75Index.intValue()));\n\t\t\n\t\tresults.setMinResObjects(subjectResObjectCount.getFirst());\n\t\tresults.setMaxResObjects(subjectResObjectCount.getLast());\n\t\tDouble resObject25Index = subjectResObjectCount.size()*0.25;\n\t\tresults.setResObjects25(subjectResObjectCount.get(resObject25Index.intValue()));\n\t\tDouble resObject50Index = subjectResObjectCount.size()*0.50;\n\t\tresults.setResObjects50(subjectResObjectCount.get(resObject50Index.intValue()));\n\t\tDouble resObject75Index = subjectResObjectCount.size()*0.75;\n\t\tresults.setResObjects75(subjectResObjectCount.get(resObject75Index.intValue()));\n\t\t\n\t\tresults.setMinLiterals(subjectLiteralCount.getFirst());\n\t\tresults.setMaxLiterals(subjectLiteralCount.getLast());\n\t\tDouble literal25Index = subjectLiteralCount.size()*0.25;\n\t\tresults.setLiterals25(subjectLiteralCount.get(literal25Index.intValue()));\n\t\tDouble literal50Index = subjectLiteralCount.size()*0.50;\n\t\tresults.setLiterals50(subjectLiteralCount.get(literal50Index.intValue()));\n\t\tDouble literal75Index = subjectLiteralCount.size()*0.75;\n\t\tresults.setLiterals75(subjectLiteralCount.get(literal75Index.intValue()));\n\t\t\n\t\tLinkedList<Integer> objectStatementCount = new LinkedList<Integer>();\n\t\tNodeIterator objectsIterator = model.listObjects();\n\t\twhile(objectsIterator.hasNext())\n\t\t{\n\t\t\tRDFNode object = objectsIterator.nextNode();\n\t\t\tif(object.isResource())\n\t\t\t{\n\t\t\t\tobjectStatementCount.add(model.listStatements(null, null, object).toList().size());\n\t\t\t}\n\t\t}\n\t\t\n\t\tobjectStatementCount = sortIntList(objectStatementCount);\n\t\t\n\t\tresults.setMinIncomingLinks(objectStatementCount.getFirst());\n\t\tresults.setMaxIncomingLinks(objectStatementCount.getLast());\n\t\tDouble inLinks25Index = objectStatementCount.size()*0.25;\n\t\tresults.setIncomingLinks25(objectStatementCount.get(inLinks25Index.intValue()));\n\t\tDouble inLinks50Index = objectStatementCount.size()*0.50;\n\t\tresults.setIncomingLinks50(objectStatementCount.get(inLinks50Index.intValue()));\n\t\tDouble inLinks75Index = objectStatementCount.size()*0.75;\n\t\tresults.setIncomingLinks75(objectStatementCount.get(inLinks75Index.intValue()));\n\t\t\n\t\treturn results;\n\t}", "public void trainModel(List<BugReport> brs){\r\n\t\t\r\n\t\tdouble startTime = System.currentTimeMillis();\r\n\t\tthis.initializeModel(brs);\r\n\t\tthis.inferenceModel(brs);\r\n\t\tdouble endTime = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"LDA training time cost: \"+(endTime-startTime)/1000.0);\r\n\t\t\r\n\t}", "public void displayStats() {\n VisitorDAO visitorDAO = new VisitorDAO();\n Object countAllVisitors = visitorDAO.getCountAllVisitors();\n Object countNewSubscribers = visitorDAO.getCountNewSubscribersForMonth(this.simpleDateFormat.format(new Date()));\n\n this.totalSubscribersText.setText(this.totalSubscribersText.getText() + countAllVisitors.toString());\n this.newSubscribersText.setText(this.newSubscribersText.getText() + countNewSubscribers.toString());\n }", "public void updateScores() {\n\t\tscoreText.setText(\"Score: \" + ultraland.getScore());\n\t}" ]
[ "0.64437425", "0.6407713", "0.60655755", "0.60490453", "0.5961374", "0.596018", "0.5949516", "0.58710873", "0.5736073", "0.568764", "0.5684327", "0.56659985", "0.566184", "0.5657899", "0.56281525", "0.5591242", "0.5572937", "0.5557796", "0.54825515", "0.5472439", "0.54272467", "0.5414994", "0.5409886", "0.5409338", "0.5399352", "0.5385535", "0.5384856", "0.53821224", "0.5381875", "0.53407687", "0.53276956", "0.5319027", "0.5317281", "0.5308438", "0.5308314", "0.5306285", "0.5304372", "0.5292585", "0.52796805", "0.5265792", "0.5242671", "0.5241849", "0.52413505", "0.5238835", "0.5230413", "0.522207", "0.52130634", "0.52020794", "0.51997256", "0.51898783", "0.5189613", "0.51802045", "0.5178174", "0.5176808", "0.51693124", "0.5157673", "0.51452714", "0.5143669", "0.5129805", "0.5126743", "0.5108723", "0.5108675", "0.5103128", "0.5089047", "0.5084117", "0.50805503", "0.5080232", "0.5076936", "0.5075955", "0.5068411", "0.50555307", "0.505351", "0.50495666", "0.50469786", "0.50388825", "0.5038644", "0.5034519", "0.5029966", "0.50238615", "0.5022758", "0.5022374", "0.50163627", "0.5012063", "0.4996644", "0.49964988", "0.49823722", "0.49821872", "0.49798155", "0.497089", "0.4967923", "0.49634737", "0.49624696", "0.49622005", "0.4957863", "0.49560317", "0.49509043", "0.49444783", "0.49438548", "0.4940403", "0.49373388", "0.4936818" ]
0.0
-1