query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Returns the user ID of this job.
|
@Override
public long getUserId() {
return model.getUserId();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic Long getUserId() {\n\t\treturn user.getKey().getId();\n\t}",
"public long getUserId() {\n return instance.getUserId();\n }",
"public Long getUserId() {\n return this.user.getId();\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public String getUserId() {\r\n\t\treturn this.userid.getText();\r\n\t}",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public int getUserID() {\n return userID_;\n }",
"public long getUserID() {\r\n\t\treturn userID;\r\n\t}",
"public int getUserId() {\n return instance.getUserId();\n }",
"@Override\n\tpublic long getUserId() {\n\t\treturn _userSync.getUserId();\n\t}",
"public long getUserId() {\n return userId_;\n }",
"public long getUserId() {\n return userId_;\n }",
"public long getUserId() {\n return userId_;\n }",
"public java.lang.String getUserId() {\n return instance.getUserId();\n }",
"@Override\n\tpublic long getUserId();",
"@Override\n\tpublic long getUserId();",
"@java.lang.Override\n public long getUserId() {\n return instance.getUserId();\n }",
"public String getUserId() {\n\t\treturn _userLoginId;\n\t}",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"Long getUserId();",
"public long getUserId();",
"public long getUserId();",
"public long getUserId();",
"public long getUserId();",
"@Override\n\tpublic long getUserId() {\n\t\treturn _employee.getUserId();\n\t}",
"public Long getUserId() {\r\n\t\treturn userId;\r\n\t}",
"public java.lang.String getUserID() {\n return userID;\n }",
"public Long getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId()\r\n\t{\r\n\t\treturn userId;\r\n\t}",
"long getUserId();",
"long getUserId();",
"public Long getUserID() {\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n return getByUsername(authentication.getName()).getId();\n }",
"public String getUserId() {\n\t\t\treturn userId;\n\t\t}",
"public java.lang.String getUserID() {\n return userID;\n }",
"@Override\n\tpublic long getUserId() {\n\t\treturn _changesetEntry.getUserId();\n\t}",
"public String getUserId() {\r\n\t\treturn userId;\r\n\t}",
"public long getUserId() {\n return userId;\n }",
"public java.lang.String getUserId() {\n return userId;\n }",
"public java.lang.String getUserid() {\n return userid;\n }",
"public java.lang.String getUserId() {\n return userId_;\n }",
"public java.lang.String getUserID() {\r\n return userID;\r\n }",
"public long getUserId() {\r\n return userId;\r\n }",
"public java.lang.Long getUserId() {\n return userId;\n }",
"public int getUserId() {\r\n\t\treturn userId;\r\n\t}",
"public String getUserid() {\n\t\treturn userid;\n\t}",
"public String getUserID() {\r\n return userID;\r\n }",
"public String getUserId()\n\t{\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn _scienceApp.getUserId();\n\t}",
"public java.lang.Long getUserId() {\n return userId;\n }",
"Integer getUserId();",
"public java.lang.String getUserid() {\n return userid;\n }",
"public String getUserId() {\n if (this.isTokenValide()) {\n JWT jwt = new JWT(getToken());\n Claim claim = jwt.getClaim(\"user_id\");\n return claim.asString();\n } else {\n return \"\";\n }\n }",
"public java.lang.String getUserid() {\n return userid;\n }",
"public String getIdUser() {\n\t\treturn idUser;\n\t}"
] |
[
"0.7619021",
"0.75707775",
"0.7497865",
"0.74758935",
"0.74758935",
"0.7475837",
"0.7475837",
"0.7475837",
"0.7475837",
"0.7475837",
"0.7475837",
"0.7475837",
"0.7475837",
"0.7475837",
"0.7475837",
"0.7475837",
"0.7475837",
"0.7475837",
"0.7475837",
"0.7475837",
"0.74483216",
"0.74364185",
"0.74364185",
"0.74364185",
"0.74364185",
"0.74364185",
"0.74364185",
"0.74364185",
"0.74364185",
"0.74364185",
"0.74364185",
"0.74364185",
"0.74364185",
"0.74364185",
"0.74364185",
"0.74364185",
"0.7436126",
"0.7436126",
"0.7433028",
"0.7409799",
"0.74087775",
"0.74075174",
"0.7397512",
"0.7397512",
"0.73592246",
"0.7318606",
"0.7318606",
"0.72959167",
"0.7282105",
"0.7279289",
"0.7279289",
"0.7279289",
"0.72720397",
"0.72573054",
"0.72573054",
"0.72573054",
"0.72573054",
"0.7231909",
"0.7226598",
"0.7220054",
"0.72104746",
"0.7206269",
"0.7203958",
"0.7203958",
"0.7192006",
"0.71749115",
"0.71745306",
"0.71699643",
"0.7168957",
"0.7168451",
"0.7168303",
"0.7164958",
"0.71632105",
"0.7162597",
"0.71609",
"0.7153333",
"0.7152995",
"0.7144234",
"0.71417487",
"0.7141238",
"0.7138056",
"0.7138056",
"0.7138056",
"0.7138056",
"0.7138056",
"0.7138056",
"0.7138056",
"0.7138056",
"0.7138056",
"0.7138056",
"0.7138056",
"0.71346176",
"0.71346086",
"0.71334124",
"0.7132514",
"0.71301603",
"0.712074",
"0.7115831"
] |
0.7317178
|
49
|
Returns the user uuid of this job.
|
@Override
public String getUserUuid() {
return model.getUserUuid();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic String getUserUuid() {\n\t\treturn _changesetEntry.getUserUuid();\n\t}",
"@Override\n\tpublic String getUserUuid();",
"@Override\n\tpublic String getUserUuid();",
"@Override\n\tpublic java.lang.String getUserUuid() {\n\t\treturn _userTracker.getUserUuid();\n\t}",
"@Override\n\tpublic java.lang.String getUserUuid() {\n\t\treturn _paper.getUserUuid();\n\t}",
"@Override\n\tpublic Long getUserId() {\n\t\treturn user.getKey().getId();\n\t}",
"public String getUserId() {\r\n\t\treturn this.userid.getText();\r\n\t}",
"public static String getUserId() {\n return FirebaseAuth.getInstance().getUid();\n }",
"public java.lang.String getUserId() {\n java.lang.Object ref = userId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n userId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUserId() {\n return instance.getUserId();\n }",
"public java.lang.String getUserId() {\n java.lang.Object ref = userId_;\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 userId_ = s;\n }\n return s;\n }\n }",
"@Override\n\tpublic java.lang.String getUserUuid() {\n\t\treturn _second.getUserUuid();\n\t}",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"public String getUserId() {\n if (this.isTokenValide()) {\n JWT jwt = new JWT(getToken());\n Claim claim = jwt.getClaim(\"user_id\");\n return claim.asString();\n } else {\n return \"\";\n }\n }",
"public String getUserId() {\r\n return (String) getAttributeInternal(USERID);\r\n }",
"public long getUserId() {\n return instance.getUserId();\n }",
"public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n\tpublic long getUserId() {\n\t\treturn _userSync.getUserId();\n\t}",
"public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }",
"public java.lang.String getUserID() {\n java.lang.Object ref = userID_;\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 userID_ = s;\n return s;\n }\n }",
"public java.lang.String getUserid() {\n return userid;\n }",
"public Long getUserId() {\n return this.user.getId();\n }",
"public java.lang.String getUserId() {\n return userId_;\n }",
"public String getIdUser() {\n\t\treturn idUser;\n\t}",
"public java.lang.String getUserid() {\n return userid;\n }",
"public java.lang.String getUserid() {\n return userid;\n }",
"public java.lang.String getUserId() {\n return userId;\n }",
"public long getUserId() {\n return userId_;\n }",
"public String getIdUser() {\n\t\treturn idUser;\n\t }",
"public String getUserId() {\n\t\t\treturn userId;\n\t\t}",
"String getUserId();",
"String getUserId();",
"public long getUserId() {\n return userId_;\n }",
"public long getUserId() {\n return userId_;\n }",
"public String getUserid() {\n\t\treturn userid;\n\t}",
"public java.lang.String getUserID() {\n return userID;\n }",
"public String getUserId() {\n return userIdEditText.getText().toString();\n }",
"public String getUserId() {\r\n\t\treturn userId;\r\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"public String getUserId() {\n\t\treturn userId;\n\t}",
"@java.lang.Override\n public long getUserId() {\n return instance.getUserId();\n }",
"public java.lang.String getUserID() {\n return userID;\n }",
"public String getUser_person_uuid() {\n return user_person_uuid;\n }",
"public java.lang.String getUserId() {\r\n return userId;\r\n }",
"public String getUserId()\r\n\t{\r\n\t\treturn userId;\r\n\t}",
"public java.lang.String getUserID() {\r\n return userID;\r\n }",
"public String getUserId()\n\t{\n\t\treturn userId;\n\t}",
"public final String getUser() {\n return username;\n }",
"public String getUserId() {\n\t\treturn _userLoginId;\n\t}",
"@Override\n\tpublic String getUserId() {\n\t\treturn super.getUserId();\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn model.getUserId();\n\t}",
"public String getUserid() {\n return userid;\n }",
"public String getUserid() {\n return userid;\n }",
"public java.lang.String getUserId() {\n return localUserId;\n }",
"public java.lang.String getUserId() {\n return localUserId;\n }",
"public String getUserId() {\n\t\treturn m_userId;\n\t}",
"public com.google.protobuf.ByteString\n getUserIdBytes() {\n return instance.getUserIdBytes();\n }",
"public int getUserId() {\n return instance.getUserId();\n }",
"public String userId( ) {\n\t\treturn this.userId;\n\t}",
"public String getUserUuid() throws SystemException;",
"public String getUserUuid() throws SystemException;",
"public String getUserUuid() throws SystemException;",
"public String getUserUuid() throws SystemException;",
"@Override\n\tpublic long getUserId() {\n\t\treturn _changesetEntry.getUserId();\n\t}",
"public String getUser() {\r\n \t\treturn properties.getProperty(KEY_USER);\r\n \t}",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }",
"public String getUserId() {\n return userId;\n }"
] |
[
"0.73139626",
"0.710971",
"0.710971",
"0.7106472",
"0.6943747",
"0.69030875",
"0.6889007",
"0.6871404",
"0.6807605",
"0.68020433",
"0.67798597",
"0.6773014",
"0.6737846",
"0.6737846",
"0.6737846",
"0.6714223",
"0.6696517",
"0.66872424",
"0.6660705",
"0.6660705",
"0.66525173",
"0.6647976",
"0.66349524",
"0.6615658",
"0.6615658",
"0.66012573",
"0.659488",
"0.65863085",
"0.6578694",
"0.65713763",
"0.6571319",
"0.6563285",
"0.6555887",
"0.6541445",
"0.65299267",
"0.65252197",
"0.65252197",
"0.6513866",
"0.6513866",
"0.651187",
"0.6502976",
"0.6501268",
"0.6487574",
"0.6471684",
"0.6471684",
"0.6471684",
"0.6471684",
"0.6471684",
"0.6471684",
"0.6471684",
"0.6471684",
"0.6471684",
"0.6471684",
"0.6471684",
"0.64702713",
"0.6465232",
"0.6462755",
"0.645886",
"0.6458458",
"0.6433398",
"0.6411009",
"0.64091873",
"0.6404994",
"0.6399334",
"0.63917774",
"0.63917774",
"0.63917774",
"0.6384092",
"0.6384092",
"0.6383084",
"0.6383084",
"0.6381705",
"0.63690454",
"0.6364466",
"0.6351809",
"0.6349381",
"0.6349381",
"0.6349381",
"0.6349381",
"0.6348053",
"0.63442224",
"0.6343833",
"0.6343833",
"0.6343833",
"0.6343833",
"0.6343833",
"0.6343833",
"0.6343833",
"0.6343833",
"0.6343833",
"0.6343833",
"0.6343833",
"0.6343833",
"0.6343833",
"0.6343833",
"0.6343833",
"0.6343833",
"0.6343833"
] |
0.7505426
|
2
|
Returns the uuid of this job.
|
@Override
public String getUuid() {
return model.getUuid();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\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 jobId_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n jobId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getUuid() {\n\t\t// lazy init of UUID\n\t\tif (uuid == null) {\n\t\t\tuuid = UUID.randomUUID().toString();\n\t\t}\n\t\treturn uuid;\n\t}",
"public String getUuid() {\n\t\tif (uuid == null) {\n\t\t\tthis.uuid = getProperty(\"uuid\");\n\t\t}\n\t\treturn uuid;\n\t}",
"public String getUuid() {\n\t\treturn uuid;\n\t}",
"public java.lang.String getUuid() {\n java.lang.Object ref = uuid_;\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 uuid_ = s;\n return s;\n }\n }",
"public java.lang.String getUuid() {\n java.lang.Object ref = uuid_;\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 uuid_ = s;\n return s;\n }\n }",
"public java.lang.String getUuid() {\n java.lang.Object ref = uuid_;\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 uuid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUuid() {\n java.lang.Object ref = uuid_;\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 uuid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\r\n return uuid;\r\n }",
"public String getUuid() {\r\n return uuid;\r\n }",
"public String getUuid() {\r\n return uuid;\r\n }",
"public String getJobId();",
"public java.lang.String getUuid() {\n return uuid;\n }",
"java.lang.String getJobId();",
"public String getUuid() {\n return _uuid;\n }",
"public String getId(){\n\t\treturn uuid;\n\t}",
"public String getUuid() {\n return this.Uuid;\n }",
"@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}",
"public java.lang.String getUUID() {\n java.lang.Object ref = uUID_;\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 uUID_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUUID() {\n java.lang.Object ref = uUID_;\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 uUID_ = s;\n }\n return s;\n }\n }",
"public JobID getJobID() {\n \n \t\treturn this.environment.getJobID();\n \t}",
"String getUuid();",
"java.lang.String getUUID();",
"public String getUuid() {\n return this.uuid;\n }",
"public String getUuid()\n {\n return this.uuid;\n }",
"public String uuid() {\n return this.innerProperties() == null ? null : this.innerProperties().uuid();\n }",
"public String getUUID() {\n return uuid;\n }",
"public String getJobId() {\n\t\treturn this.jobId;\n\t}",
"com.google.protobuf.ByteString\n getJobIdBytes();",
"public String getJobId() {\n return this.jobId;\n }",
"public String getJobId() {\n return this.jobId;\n }",
"public String getJobId() {\n return this.jobId;\n }",
"@AutoEscape\n\t@Override\n\tpublic String getUuid();",
"public com.google.protobuf.ByteString\n getJobIdBytes() {\n java.lang.Object ref = jobId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n jobId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getJobIdBytes() {\n java.lang.Object ref = jobId_;\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 jobId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getJobId() {\n return jobId;\n }",
"@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}",
"@AutoEscape\n\tpublic String getUuid();",
"@AutoEscape\n\tpublic String getUuid();",
"@AutoEscape\n\tpublic String getUuid();",
"public String getJobID() {\n\t\t\treturn JobID;\n\t\t}",
"public Integer getUuid() {\n return uuid;\n }",
"public com.google.protobuf.ByteString\n getUuidBytes() {\n java.lang.Object ref = uuid_;\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 uuid_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getUuidBytes() {\n java.lang.Object ref = uuid_;\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 uuid_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public UUID executionId();",
"@Override\n\tpublic String getUuid() {\n\t\treturn null;\n\t}",
"public String getUniqueId() {\n\t\treturn m_serverName + \" - \" + m_userId + \" - \" + m_timestampMillisecs;\n\t}",
"public com.google.protobuf.ByteString\n getUuidBytes() {\n java.lang.Object ref = uuid_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n uuid_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getUuidBytes() {\n java.lang.Object ref = uuid_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n uuid_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Long getJobID() {\n return jobID;\n }",
"public String getJob() {\n return job;\n }",
"java.lang.String getWorkerId();",
"@DISPID(1)\r\n\t// = 0x1. The runtime will prefer the VTID if present\r\n\t@VTID(7)\r\n\tint jobID();",
"public com.google.protobuf.ByteString\n getUUIDBytes() {\n java.lang.Object ref = uUID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n uUID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static String getUUID() {\n\t\treturn UUID.randomUUID().toString().toUpperCase().replace(\"-\", \"\").substring(0, 5);\n\t}",
"public UUID getUuid() {\n return uuid;\n }",
"public UUID getUuid() {\n return uuid;\n }",
"public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }",
"public String getUuidPlain() {\n return uuid.replace(\"-\", \"\");\n }",
"public com.google.protobuf.ByteString\n getUUIDBytes() {\n java.lang.Object ref = uUID_;\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 uUID_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public UUID getUuid();",
"public String jobRunResourceId() {\n return this.jobRunResourceId;\n }",
"public static String getUniqueIdentifier() {\r\n UUID uuid = UUID.randomUUID();\r\n return uuid.toString();\r\n }",
"public int getJobId() ;",
"public int getJobId() {\r\n\t\treturn jobId;\r\n\t}",
"public String getJob() {\r\n\t\t\treturn job;\r\n\t\t}",
"public abstract String getUuid();",
"protected abstract String getJobSubmitId();",
"@JsonGetter(\"uuid\")\r\n public String getUuid ( ) { \r\n return this.uuid;\r\n }",
"com.google.protobuf.ByteString\n getTargetJobNameBytes();",
"@Override\n\tpublic UUID getUniqueId() {\n\t\treturn uid;\n\t}",
"com.google.protobuf.ByteString\n getUUIDBytes();",
"public String uuid(){\n\t\t String device_unique_id = Secure.getString(activity.getContentResolver(),\n\t\t Secure.ANDROID_ID);\n\t\t return device_unique_id;\n\t\t}",
"@ApiModelProperty(required = true, value = \"UUID, GUID, HASH or MultiHash that represents this object.\")\n\tpublic String getUuid() {\n\t\treturn id;\n\t}",
"public static JobID generate() {\n return new JobID();\n }",
"UUID getUniqueId();",
"public BigDecimal getJOB_ID() {\r\n return JOB_ID;\r\n }",
"public String getFullJobName() {\n return jobGroup + \".\" + jobName;\n }",
"public UUID getComponentId();",
"public String getUUID () \n\t{\n\t\treturn (String)get_Value(COLUMNNAME_UUID);\n\t}",
"public JobId job() { return Objects.requireNonNull(job, \"production revisions have no associated job\"); }",
"public java.lang.String getJobNumber() {\r\n return jobNumber;\r\n }",
"@Override\n public long getUUID() {\n return endpointHandler.getUUID();\n }",
"@DISPID(5)\r\n\t// = 0x5. The runtime will prefer the VTID if present\r\n\t@VTID(11)\r\n\tint lastInstanceJobID();",
"UUID getUUID();",
"@Override\n public String getTypeID() {\n return job_id;\n }",
"public String getJobName() {\n return this.mJob;\n }"
] |
[
"0.70453066",
"0.70227474",
"0.6954186",
"0.69322914",
"0.6783266",
"0.6743318",
"0.6743318",
"0.67277074",
"0.67277074",
"0.67095166",
"0.67095166",
"0.67095166",
"0.67095166",
"0.67095166",
"0.67095166",
"0.67095166",
"0.67095166",
"0.67095166",
"0.67095166",
"0.66993654",
"0.66993654",
"0.66993654",
"0.66558015",
"0.6654345",
"0.6647162",
"0.66375893",
"0.6636462",
"0.6628836",
"0.65855753",
"0.65819734",
"0.657393",
"0.6563551",
"0.655823",
"0.6544375",
"0.65286916",
"0.65213406",
"0.6513464",
"0.64804196",
"0.64789295",
"0.64322585",
"0.64312834",
"0.64312834",
"0.64312834",
"0.642187",
"0.6403482",
"0.6393979",
"0.63870054",
"0.63684493",
"0.63387865",
"0.63387865",
"0.63387865",
"0.63362527",
"0.632085",
"0.62957984",
"0.62957984",
"0.6283843",
"0.6244023",
"0.6220753",
"0.6218316",
"0.6218316",
"0.61765003",
"0.61635643",
"0.6155532",
"0.61510456",
"0.6141125",
"0.61181504",
"0.61164105",
"0.61164105",
"0.61152226",
"0.61128354",
"0.6103869",
"0.6067098",
"0.6057997",
"0.6047523",
"0.6047511",
"0.6034626",
"0.6031788",
"0.6015357",
"0.59979516",
"0.59906137",
"0.59904015",
"0.5988199",
"0.5963003",
"0.5960013",
"0.5958168",
"0.5954303",
"0.5947919",
"0.5943309",
"0.594024",
"0.59360784",
"0.5926667",
"0.59235007",
"0.59148586",
"0.5902325",
"0.59000593",
"0.5898326",
"0.58954704",
"0.58952415"
] |
0.64440495
|
41
|
Returns the wall time of this job.
|
@Override
public String getWallTime() {
return model.getWallTime();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public long getCurrentWallClockTime() {\n return System.currentTimeMillis() - startWallClockTime;\n }",
"public long getEndWallClockTime() {\n return endWallClockTime;\n }",
"@Override\n\tpublic String getUsedWalltime() {\n\t\treturn model.getUsedWalltime();\n\t}",
"public long wallMicros() {\n return this.wallNanos / 1000;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getWorkElapsed() {\n return (java.lang.Long)__getInternalInterface().getFieldValue(WORKELAPSED_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getWorkElapsed() {\n return (java.lang.Long)__getInternalInterface().getFieldValue(WORKELAPSED_PROP.get());\n }",
"public String getShRunAtTime() {\n\n\t\treturn shRunAtTime;\n\n\t}",
"public long getTime() {\n\t\treturn (Sys.getTime() * 1000) / Sys.getTimerResolution();\n\t}",
"public long getTime() {\r\n\t\treturn time;\r\n\t}",
"public long getTime(){\r\n\t\treturn world.getWorldTime();\r\n\t}",
"public static long time() {\n return date().getTime();\n }",
"public final long getTime () {\n return time;\n }",
"public long getTime() {\n return timeMillis;\n }",
"public static long getSystemTime( ) {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean( );\n return bean.isCurrentThreadCpuTimeSupported( ) ?\n (bean.getCurrentThreadCpuTime( ) - bean.getCurrentThreadUserTime( )) : 0L;\n\n }",
"public static long getSystemTime () {\n\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported()?\n (bean.getCurrentThreadCpuTime() - bean.getCurrentThreadUserTime()): 0L;\n }",
"public long getTime() {\n return time;\n }",
"private long getSystemTime() {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported() ? (bean.getCurrentThreadCpuTime() - bean.getCurrentThreadUserTime()) : 0L;\n }",
"public long getTime() {\r\n \treturn time;\r\n }",
"public long getTime() {\n return time_;\n }",
"public long getTime() {\n return time_;\n }",
"public long getTime() {\n return time_;\n }",
"public long getTime() {\n return time_;\n }",
"public long getTime() {\n return time_;\n }",
"public long getTime() {\n return time_;\n }",
"public static long getTime() {\n\t\treturn (Sys.getTime() * 1000) / Sys.getTimerResolution();\n\t}",
"protected void writeWallTime(Writer wr) throws IOException {\n\t\tObject walltime = getSpec().getAttribute(\"maxwalltime\");\n\t\tif (walltime != null) {\n\t\t\twr.write(\"#SBATCH --time=\"\n\t\t\t\t\t+ WallTime.normalize(walltime.toString(), \"pbs-native\")\n\t\t\t\t\t+ '\\n');\n\t\t}\n\t}",
"private long timeNow()\n {\n // The value of 3506716800000000L is the BAT as at midnight on\n // 1-Jan-1970, which is the base of the time that the system\n // gives us. It has to be adjusted for leap seconds though.\n return (System.currentTimeMillis() * 1000L) + DUTC.get() * 1000000L + 3506716800000000L;\n }",
"public static long getUserTime () {\n\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported()?\n bean.getCurrentThreadUserTime(): 0L;\n }",
"public static long getUserTime( ) {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean( );\n return bean.isCurrentThreadCpuTimeSupported( ) ?\n bean.getCurrentThreadUserTime( ) : 0L;\n }",
"public Long getTime() {\n return time;\n }",
"public long getCurrentTimeMillis() {\n return System.currentTimeMillis();\n }",
"public Long getTime() {\n if (timeEnd == null) {\n return null;\n }\n return timeEnd - timeStart;\n }",
"public long getTime() {\n return instance.getTime();\n }",
"public long getTime() {\n return instance.getTime();\n }",
"public long getTime() {\n return instance.getTime();\n }",
"public String getTime() {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tString time = dateFormat.format(cal.getTime());\n\t\t\treturn time;\n\t\t}",
"public long getTime(){\n\n formatDate(mCalendar.getTimeInMillis());\n\n return mCalendar.getTimeInMillis();\n\n }",
"public long getTime() {\n return time_;\n }",
"public long getTime() {\n return time_;\n }",
"public long getTime() {\n return instance.getTime();\n }",
"public long getTime() {\n return instance.getTime();\n }",
"public long getTime() {\n return instance.getTime();\n }",
"public long getTime() {\n return instance.getTime();\n }",
"public static long getTime() {\r\n\t\treturn System.currentTimeMillis();\r\n\t}",
"public long getPlayerTime ( ) {\n\t\treturn extract ( handle -> handle.getPlayerTime ( ) );\n\t}",
"@Override\r\n\tpublic long getTime() {\n\t\treturn this.time;\r\n\t}",
"private long getUserTime() {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported() ? bean.getCurrentThreadUserTime() : 0L;\n }",
"public Time getTime() {\n return this.time; // returns the time associated with the task\n }",
"public float getTime()\r\n\t{\r\n\t\treturn runningTime;\r\n\t}",
"public long getRunLastMillis()\n {\n return 0L;\n }",
"public long getTime() {\n return time_;\n }",
"public long getTime() {\n return time_;\n }",
"public long getTime() {\n return time_;\n }",
"public long lastTime()\r\n/* 219: */ {\r\n/* 220:412 */ return this.lastTime.get();\r\n/* 221: */ }",
"public long getTime() {\n return _time;\n }",
"public long getTime();",
"public String elapsedTime() {\n return totalWatch.toString();\n }",
"public long getStartTime();",
"public long getStartTime();",
"public long getEventTime();",
"public long getSystemStartTime() {\n return (this.systemStartTime);\n }",
"public int getSystemTime() {\n\t\treturn this.systemTime;\n\t}",
"public long getIntegrationTime() {\n\t\treturn updateTimeStamp - startTime;\n\t}",
"public long getSystemTime( ) {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean( );\n return bean.isCurrentThreadCpuTimeSupported( ) ?\n (bean.getCurrentThreadCpuTime( ) - bean.getCurrentThreadUserTime( )) : 0L;\n}",
"public long getUserTime( ) {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean( );\n return bean.isCurrentThreadCpuTimeSupported( ) ?\n bean.getCurrentThreadUserTime( ) : 0L;\n}",
"long time() {\r\n\t\treturn System.currentTimeMillis();\r\n\t}",
"long getStartTime();",
"public long getMediaTime() {\n long time = player.getMasterMediaPlayer().getMediaTime();\n return time;\n }",
"long getCurrentTime() {\n if (dm == null) {\n return -1;\n }\n return DLockService.getLockTimeStamp(dm);\n }",
"public long getThinkTime() {\n\t\treturn (thinkTime);\n\t}",
"public static long getStartTime() {\n return startTime;\n }",
"public long getPaintTime() {\n return this.paintTime;\n }",
"long getExecutionTime();",
"public double getScheduledTime() {\n return scheduledTime;\n }",
"@Override\r\n\tpublic String gettime() {\n\t\treturn user.gettime();\r\n\t}",
"public String getRunningTimeStr() {\n if (this.runningTime == null)\n return null;\n else\n return CommonRunService.getTimeStr(this.runningTime);\n }",
"public int getTime() {\n return time;\n }",
"public int getTime() {\n return time;\n }",
"public int getTime() {\n return time;\n }",
"public int getTime() {\n\t\treturn time;\n\t}",
"public int getTime() {\n\t\treturn time;\n\t}",
"public java.lang.String getFeedTime() {\n java.lang.Object ref = feedTime_;\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 feedTime_ = s;\n return s;\n }\n }",
"public int getTime() {\n\n\t\treturn time;\n\t}",
"public int getTime() {\r\n return time;\r\n }",
"public double time()\n\t{\n\t\treturn _dblTime;\n\t}",
"public double time()\n\t{\n\t\treturn _dblTime;\n\t}",
"public Long getChecktime() {\n return checktime;\n }",
"com.google.protobuf.Timestamp getSubmitTime();",
"public int getWorkRequired() {\n return time;\n }",
"public int getTime()\n {\n if (isRepeated()) return start;\n else return time;\n }",
"public int getEventTime() {\n\t\treturn scheduledTime;\n\t}",
"long getCurrentTimeMs();",
"public synchronized String getTime() {\n\t\treturn time;\n\t}",
"public double getStartTime()\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_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }",
"public double getFullTime() {\n return fullTime_;\n }",
"public Date time() {\n return _time;\n }",
"public Date time() {\n return _time;\n }",
"public String getUpdatetime() {\n\t\treturn updatetime;\n\t}",
"public String getUpdatetime() {\n\t\treturn updatetime;\n\t}",
"public Date getTimeUpdate() {\n return timeUpdate;\n }"
] |
[
"0.7395889",
"0.71618134",
"0.6974787",
"0.67946756",
"0.6437104",
"0.6420391",
"0.63785183",
"0.6326036",
"0.6256498",
"0.62558043",
"0.6214682",
"0.6195904",
"0.6185128",
"0.61822367",
"0.61740124",
"0.6166671",
"0.6161874",
"0.6158276",
"0.6153155",
"0.6153155",
"0.6153155",
"0.6153155",
"0.6153155",
"0.6153155",
"0.61497587",
"0.6149259",
"0.61359113",
"0.61350584",
"0.61322004",
"0.61254853",
"0.61130464",
"0.61057484",
"0.610556",
"0.610556",
"0.610556",
"0.6094303",
"0.6092474",
"0.60899013",
"0.60899013",
"0.60774356",
"0.60774356",
"0.60774356",
"0.60774356",
"0.6075134",
"0.6073507",
"0.60700065",
"0.60610706",
"0.605883",
"0.6051574",
"0.6048482",
"0.6046593",
"0.6046593",
"0.6046593",
"0.6039973",
"0.60235465",
"0.6019172",
"0.6007327",
"0.59963524",
"0.59963524",
"0.5993526",
"0.598607",
"0.59703434",
"0.5968974",
"0.59570634",
"0.59559",
"0.59484595",
"0.59424686",
"0.59375954",
"0.5935041",
"0.593358",
"0.5929017",
"0.59279084",
"0.5918013",
"0.59112865",
"0.5905891",
"0.5886689",
"0.5885153",
"0.5885153",
"0.5885153",
"0.58846396",
"0.58846396",
"0.58828056",
"0.5879299",
"0.58759594",
"0.58753437",
"0.58753437",
"0.5874572",
"0.5869212",
"0.5859562",
"0.5857488",
"0.58546686",
"0.5845482",
"0.5843594",
"0.58430046",
"0.5837347",
"0.58328706",
"0.58328706",
"0.5826369",
"0.5826369",
"0.58259714"
] |
0.77702624
|
0
|
Returns the working dir of this job.
|
@Override
public String getWorkingDir() {
return model.getWorkingDir();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String workingDirectory() {\n\t\treturn workingDir.getAbsolutePath();\n\t}",
"public File getWorkingDir() {\n return workingDir;\n }",
"public File getWorkingDir() {\n return workingDir;\n }",
"public File getWorkingParent()\n {\n return validatePath(ServerSettings.getInstance().getProperty(ServerSettings.WORKING_PARENT));\n }",
"public String getWorkDiretory() {\n\t\treturn workDiretory;\n\t}",
"public java.lang.String getWorkingDirectory() {\n java.lang.Object ref = workingDirectory_;\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 workingDirectory_ = s;\n return s;\n }\n }",
"public java.lang.String getWorkingDirectory() {\n java.lang.Object ref = workingDirectory_;\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 workingDirectory_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public File getWorkingDirectory()\r\n\t{\r\n\t\treturn workingDirectory;\r\n\t}",
"public static String getWorkingDirectory() {\r\n try {\r\n // get working directory as File\r\n String path = DBLIS.class.getProtectionDomain().getCodeSource()\r\n .getLocation().toURI().getPath();\r\n File folder = new File(path);\r\n folder = folder.getParentFile().getParentFile(); // 2x .getParentFile() for debug, 1x for normal\r\n\r\n // directory as String\r\n return folder.getPath() + \"/\"; // /dist/ for debug, / for normal\r\n } catch (URISyntaxException ex) {\r\n return \"./\";\r\n }\r\n }",
"public IPath getWorkingDirectory() {\n\t\treturn workingDirectory;\n\t}",
"public static String getWorkingDirectory() {\n // Since System.getProperty(\"user.dir\") and user.home etc. can be confusing\n // and I haven't quite figured out if they really are reliable on all systems,\n // I chose a little more complicated approach. This is exactly the same\n // like if a file is created relatively, like new File(\"testfile.txt\"), which\n // would be relative to the working directory.\n\n File f = new File(\".\");\n\n try {\n return addPathSeparator(f.getCanonicalPath());\n } catch (IOException e) {\n return null;\n }\n }",
"public static String getWorkingDirectory() {\n\n return System.getProperty(\"user.dir\");\n }",
"File getWorkDir() {\n return workDir;\n }",
"public Directory getWorkingDirectory() {\r\n return workingDirectory;\r\n }",
"public com.google.protobuf.ByteString\n getWorkingDirectoryBytes() {\n java.lang.Object ref = workingDirectory_;\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 workingDirectory_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public String getCurrentDirectory() {\n return (String) gemFileState.get(STATE_SYNC_DIRECTORY);\n }",
"public com.google.protobuf.ByteString\n getWorkingDirectoryBytes() {\n java.lang.Object ref = workingDirectory_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n workingDirectory_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static String findCurrentDirectory() {\n\t\tString absolutePath = new File(\"\").getAbsolutePath();\n\t return absolutePath;\n\t}",
"public synchronized static String getCurrentDirectory() {\n if (currentDirectory == null)\n currentDirectory = canon(System.getProperty(\"user.home\"));\n return currentDirectory;\n }",
"public File getExecutableWorkDir(CommonjWork work) {\r\n\t\tlogger.debug(\"IN\");\r\n\t\tFile workDir = new File(rootDir, work.getWorkName());\r\n\t\tlogger.debug(\"OUT\");\r\n\t\treturn workDir;\r\n\t}",
"public String getWorkRelativePath() {\n return getWorkRelativePath(testURL);\n }",
"public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}",
"public String getWorkDirectory(){\n String wd = \"\";\n try {\n wd = new File(\"test.txt\").getCanonicalPath().replace(\"/test.txt\",\"\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return wd;\n }",
"public File getCwd() {\n return _cwd;\n }",
"public static String getCurrentPath() {\n File file = new File(\"\");\n return file.getAbsolutePath();\n }",
"public File getExecutableWorkProjectDir(CommonjWork work) {\r\n\t\tlogger.debug(\"IN\");\r\n\t\tFile worksDir = new File(rootDir, work.getWorkName());\r\n\t\tlogger.debug(\"OUT\");\r\n\t\treturn worksDir;\r\n\t}",
"String getWorkingDirectory();",
"public File getJobFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n String filePath = prefs.get(powerdropshipDir, null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }",
"public static String getBaseDir() {\r\n Path currentRelativePath = Paths.get(System.getProperty(\"user.dir\"));\r\n return currentRelativePath.toAbsolutePath().toString();\r\n }",
"public Queue getQueueDir() {\n Queue result;\n synchronized (this.queueDir) {\n result = this.queueDir;\n }\n return result;\n }",
"public String getCurrentPath() {\n\t\treturn DataManager.getCurrentPath();\n\t}",
"public File getDirectory() {\n\t\treturn file.getParentFile();\n\t}",
"public String getCurrentProfiledir()\r\n {\r\n String res = null, aux = \"\";\r\n File dir;\r\n Vector<String> profiles = getProfiledirs();\r\n\r\n for (Enumeration<String> e = profiles.elements(); e.hasMoreElements();)\r\n {\r\n aux = e.nextElement();\r\n dir = new File(aux + File.separator + _lockFile);\r\n if (dir.exists())\r\n {\r\n res = aux + File.separator;\r\n }\r\n }\r\n return res;\r\n }",
"public String getWorkingDataFile()\n\t{\n\t return workingDataFileName;\n\t}",
"private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }",
"public String getWorkspacePath() {\n\t\tString workspacePath = userSettingsService.getUserSettings().getWorkspacePath();\n\t\treturn getAbsoluteSubDirectoryPath(workspacePath);\n\t}",
"public String getPathToSyncDir() {\n return properties.getProperty(PATH_TO_SYNC_DIR);\n }",
"public ImmutableMap<String, String> getWorkdir() {\n return workdir;\n }",
"public String getCurrentPath() {\n\t\treturn \"\";\n\t}",
"public static String getCurrentFolderPath(){\n\t\treturn currentFolderPath;\n\t}",
"public byte[] getZippedWorkDir() {\n return zippedWorkDir;\n }",
"public static String getBaseDir() {\n // 'basedir' is set by Maven Surefire. It always points to the current subproject,\n // even in reactor builds.\n String baseDir = System.getProperty(\"basedir\");\n\n // if 'basedir' is not set, try the current directory\n if (baseDir == null) {\n baseDir = System.getProperty(\"user.dir\");\n }\n return baseDir;\n }",
"public String directory () {\n\t\treturn directory;\n\t}",
"public String getInputDirectory() {\n\t\treturn (String) p.getValue(\"inputDir\");\n\t}",
"public File getBasedir()\n {\n return basedir;\n }",
"File getWorkingDirectory();",
"public String getXLSDirectory() {\n\t\treturn props.getProperty(ARGUMENT_XLS_DIRECTORY);\n\t}",
"public final String ping() {\n\t\tlog.debug(\"I'm here \\\"\" + workDir + \"\\\"\");\n\t\treturn configRootDir;\n\t}",
"public String getSourceDir() {\n\t\tif (sourceDir != null)\n\t\t\treturn sourceDir;\n\t\telse if (parent == null)\n\t\t\treturn \"./\";\n\t\telse\n\t\t\treturn parent.getSourceDir();\n\t}",
"public String getPath() {\n\t\treturn pfDir.getPath();\n\t}",
"public static String getUserDir() {\n return System.getProperty(\"user.dir\");\n }",
"public String getTargetDir() {\n\t\tif (targetDir != null)\n\t\t\treturn targetDir;\n\t\telse if (parent == null)\n\t\t\treturn \"./\";\n\t\telse\n\t\t\treturn parent.getTargetDir();\n\t}",
"public List<GitFileSystemEntry> getWorkingDirFiles() {\n return null;\n }",
"public File getGitRepoContainerDir() {\n return config.getGitReposParentDir();\n }",
"public String getConfigurationDirectory() {\n\t\treturn props.getProperty(ARGUMENT_CONFIGURATION_DIRECTORY);\n\t}",
"public java.io.File getBaseDir() {\n return baseDir;\n }",
"public String inputFileDir() {\n return inputFileDir;\n }",
"public String getShDir() {\n\n\t\treturn this.shDir;\n\n\t}",
"private Step createLocalWorkingDir() {\n return stepBuilderFactory.get(STEP_CREATE_LOCAL_WORK_DIR)\n .tasklet(createLocalWorkingDir)\n .listener(new ExecutionContextPromotionListener() {\n\n @Override\n public ExitStatus afterStep(StepExecution stepExecution) {\n ExecutionContext stepContext = stepExecution.getExecutionContext();\n ExecutionContext jobContext = stepExecution.getJobExecution().getExecutionContext();\n\n // Share local working directory with other tasks\n String stepContextKey = STEP_CREATE_LOCAL_WORK_DIR +\n Constants.PARAMETER_NAME_DELIMITER +\n CreateDirectoryTask.EnumOutParameter.NEW_DIRECTORY.getValue();\n String localWorkingDir = (String) stepContext.get(stepContextKey);\n\n // Configure export meter serial task\n String jobContextKey = STEP_CREATE_SCENARIO_METER_FILE +\n Constants.PARAMETER_NAME_DELIMITER +\n ExportMeterDataToFileTask.EnumInParameter.WORKING_DIRECTORY.getValue();\n jobContext.put(jobContextKey, localWorkingDir);\n\n // Configure export meter data task\n jobContextKey = STEP_EXPORT_METER_DATA +\n Constants.PARAMETER_NAME_DELIMITER +\n ExportMeterDataToFileTask.EnumInParameter.WORKING_DIRECTORY.getValue();\n jobContext.put(jobContextKey, localWorkingDir);\n\n // Configure copy HDFS files task\n jobContextKey = STEP_COPY_REMOTE_FILES +\n Constants.PARAMETER_NAME_DELIMITER +\n CopyFileTask.EnumInParameter.SOURCE_PATH.getValue();\n jobContext.put(jobContextKey, localWorkingDir);\n\n // Configure delete local files task\n jobContextKey = STEP_DELETE_LOCAL_WORK_DIR +\n Constants.PARAMETER_NAME_DELIMITER +\n DeleteDirectoryTask.EnumInParameter.INPUT_DIRECTORY.getValue();\n jobContext.put(jobContextKey, localWorkingDir);\n\n return null;\n }\n\n })\n .build();\n }",
"public String getProgramHomeDirName() {\n return pathsProvider.getProgramDirName();\n }",
"public String getBackupDirectory() {\n\t\treturn props.getProperty(ARGUMENT_BACKUP_DIRECTORY);\n\t}",
"public FileObject getProjectDirectory() {\n return helper.getProjectDirectory();\n }",
"public String getDir() {\n return this.dir;\n }",
"public String getProjectRootDirectory() {\r\n\t\treturn getTextValue(workspaceRootText);\r\n\t}",
"public static String getUserDir() {\r\n\t\treturn userDir;\r\n\t}",
"public Path outputDir() {\n return dir;\n }",
"public String getDir();",
"public String getBaseDirectory()\n {\n return m_baseDirectory;\n }",
"public String getDir() {\n return dir;\n }",
"String getDirectoryPath();",
"public static File getBaseDir()\n {\n return fBaseDir;\n }",
"public Path getSimulationLocation() {\n return FileManager.getSimulationDirectory(name);\n }",
"public File getBaseDirectoryPath() {\n return mBaseDirectoryPath;\n }",
"public File getBaseDir() {\n if (baseDir == null) {\n try {\n setBasedir(\".\");\n } catch (BuildException ex) {\n ex.printStackTrace();\n }\n }\n return baseDir;\n }",
"public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public String getShHarvestDir() {\n\n\t\treturn shHarvestDir;\n\n\t}",
"DirectoryProperty getWorkingDirectory();",
"public java.lang.String getCurrentPath() {\n java.lang.Object ref = currentPath_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n currentPath_ = s;\n return s;\n }\n }",
"public String getDirectory() {\n return directoryProperty().get();\n }",
"public Directory getDirectory() {\n\n\tif( _directory == null) { // If the current directory was not already parsed,\n \n \t _directory = parseDirectory(); // parse it.\n\t}\n\n\treturn _directory; // Return the current root directory.\n }",
"private String getFilePath(){\n\t\tif(directoryPath==null){\n\t\t\treturn System.getProperty(tmpDirSystemProperty);\n\t\t}\n\t\treturn directoryPath;\n\t}",
"public String getFileDirectory() {\n String storedDirectory = settings.get(\"fileDirectory\");\n \n // Default to the program files\n if (storedDirectory == null) {\n storedDirectory = System.getenv(\"ProgramFiles\");\n }\n \n return storedDirectory;\n }",
"protected File getDir() {\n return hasSubdirs ? DatanodeUtil.idToBlockDir(baseDir,\n getBlockId()) : baseDir;\n }",
"public String toString() {\r\n return fileSystem.getCurrentDirectory().toString();\r\n }",
"java.io.File getBaseDir();",
"public java.lang.String getCurrentPath() {\n java.lang.Object ref = currentPath_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n currentPath_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"Path getBaseInputDir();",
"public static File getWorkspaceDir(BundleContext context)\n {\n return new File(getTargetDir(context), \"../../\");\n }",
"public Optional<URI> getCurrentSourcePath() {\r\n return context.getAssociatedPath();\r\n }",
"public static String sActivePath() \r\n\t{\r\n\t\tString activePath = null;\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tactivePath = new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn activePath;\r\n\t}",
"public static String getOutputDir() {\n outputDir = getProperty(\"outputDir\");\n if (outputDir == null) outputDir = \"./\";\n return outputDir;\n }",
"public static String getTempDirectoryPath()\n {\n return System.getProperty( \"java.io.tmpdir\" );\n }",
"public File getProjectDirectory() {\n return this.mProjectDir;\n }",
"public static File getTemporaryDirectory() {\r\n\t\tFile dir = new File(System.getProperty(\"java.io.tmpdir\", //$NON-NLS-1$\r\n\t\t\t\tSystem.getProperty(\"user.dir\", \".\"))); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\ttry {\r\n\t\t\treturn dir.getCanonicalFile();\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn dir;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic String getDirName() {\n\t\treturn StringUtils.substringBeforeLast(getLocation(), \"/\");\n\t}",
"String getDir();",
"public String getBaseDirectoryName() {\n return mBaseDirectoryName;\n }",
"public String getTestsuiteDirectory() {\n\t\treturn props.getProperty(ARGUMENT_TESTSUITE_DIRECTORY);\n\t}",
"public static String getOutputFolder() {\n\n if ((m_sOutputFolder == null) || m_sOutputFolder.trim().equals(\"\")) {\n return System.getProperty(\"user.home\");\n }\n else {\n return m_sOutputFolder;\n }\n\n }",
"public String getSimulatorFolderLocation() {\n return simSpec.getSimulatorFolder();\n }"
] |
[
"0.8214441",
"0.7851062",
"0.7851062",
"0.7422081",
"0.7420504",
"0.73495686",
"0.73345935",
"0.72712463",
"0.72070044",
"0.70683134",
"0.70533013",
"0.7050151",
"0.7040594",
"0.70158195",
"0.70059633",
"0.6962101",
"0.6950751",
"0.68361354",
"0.68166065",
"0.6791467",
"0.67802835",
"0.67329735",
"0.6688269",
"0.66836977",
"0.6654399",
"0.65991586",
"0.65587324",
"0.65387857",
"0.6535277",
"0.6513573",
"0.6501663",
"0.6372826",
"0.6372716",
"0.6368683",
"0.63595116",
"0.63452494",
"0.63370717",
"0.6328525",
"0.6280777",
"0.6254545",
"0.6253508",
"0.6239681",
"0.623562",
"0.62088513",
"0.6191831",
"0.61739093",
"0.6158529",
"0.61482996",
"0.61458594",
"0.60787547",
"0.6061912",
"0.60509694",
"0.6038322",
"0.6027771",
"0.60267496",
"0.60213846",
"0.6019457",
"0.6005877",
"0.5992837",
"0.59805036",
"0.5964074",
"0.5955823",
"0.5941743",
"0.593928",
"0.5904251",
"0.5901746",
"0.58982366",
"0.58866656",
"0.5872906",
"0.5858953",
"0.58585477",
"0.585841",
"0.5846652",
"0.5841093",
"0.5832289",
"0.58314943",
"0.5829829",
"0.582075",
"0.5819785",
"0.5818411",
"0.58081156",
"0.5794921",
"0.5791199",
"0.57886016",
"0.57800394",
"0.5765971",
"0.5765796",
"0.5758967",
"0.57483643",
"0.57475847",
"0.57367146",
"0.57128465",
"0.5704963",
"0.56921595",
"0.56885976",
"0.56847",
"0.56844795",
"0.5673513",
"0.56719106",
"0.5668079"
] |
0.7855633
|
1
|
Returns true if this job is reserve results.
|
@Override
public boolean isReserveResults() {
return model.isReserveResults();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic boolean getReserveResults() {\n\t\treturn model.getReserveResults();\n\t}",
"public boolean isSetTotalResults()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(TOTALRESULTS$4) != null;\n }\n }",
"@Override\n\tpublic void setReserveResults(boolean reserveResults) {\n\t\tmodel.setReserveResults(reserveResults);\n\t}",
"boolean isFinished() {\n if (completeCount < reserve) {\n return false;\n }\n\n // We need to check if the last entry was used\n final OutboundQueueEntry last = queue[reserve];\n return !last.isCommitted() || last.isCompleted();\n }",
"public boolean isComplete() {\n\t\tboolean complete = false;\n\t\tcomplete = !(hasInstInQueue());\n\n\t\tfor (int i = 0; i < MemReservationTomasulo.length && complete; i++) {\n\t\t\tcomplete = !MemReservationTomasulo[i].isBusy();\n\t\t}\n\n\t\tfor (int i = 0; i < alu_rsTomasulo.length && complete; i++) {\n\t\t\tcomplete = !alu_rsTomasulo[i].isBusy();\n\t\t}\n\n\t\treturn complete;\n\t}",
"private boolean hasCapacity() {\n int used = 0 + evaluations.size() * 2;\n int available = Runtime.getRuntime().availableProcessors() * ServerRunner.getProcessorMultiplier();\n return used < available;\n }",
"public boolean isSetResults() {\n return this.results != null;\n }",
"public boolean isSetReservations() {\n return this.reservations != null;\n }",
"public boolean isAvailable(){\r\n return blockingQueue.size() < maxWorkQueueSize;\r\n }",
"boolean hasCapacity();",
"boolean hasCollectResult();",
"boolean hasBatchJob();",
"public boolean isAvailable(){\n\t\ttry{\n\t\t\tgetPrimingsInternal(\"Test\", \"ATGATGATGATGATGATGATG\");\n\t\t}\n\t\tcatch(IOException e){\n\t\t\treturn false;\n\t\t}\n\t\tcatch(InterruptedException e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isRecordsAwaitingToBeCommitted() {\n var partitionWorkRemainingCount = getNumberOfEntriesInPartitionQueues();\n return partitionWorkRemainingCount > 0;\n }",
"public boolean getHasMoreJobs() ;",
"public boolean isReserved() {\n return reserved;\n }",
"public boolean isReserved(){\n\t\treturn reserved;\n\t}",
"public boolean isOccupied(){\n \t\treturn occupiedSeconds > 0;\n \t}",
"public boolean isComplete() {\n return addedFrontWork.size() == 0 && addedBackWork.size() == 0 && sawAllDone.get();\n }",
"public boolean needsRepair() {\n if (id == 5509) {\n return false;\n }\n return inventory.contains(id + 1);\n }",
"private boolean isEmpty() {\n int ro = reserveOffset;\n if (ro >= reserve) {\n if (queue[reserve].isCommitted()) {\n ro = reserve + 1;\n } else {\n ro = reserve;\n }\n }\n\n LOG.debug(\"Effective flush/reserve offset {}/{}\", flushOffset, ro);\n return ro <= flushOffset;\n }",
"private boolean shouldApply() {\n return nextRandomInt() >= unappliedJobCutoff;\n }",
"public boolean isAbleToBeAllocated( )\r\n {\r\n // Do not allow allocation if it's too slow!\r\n if (lastTransferRateBPS < ServiceManager.sCfg.minimumAllowedTransferRate\r\n && lastTransferRateBPS > 0)\r\n {\r\n addToCandidateLog( \"Refusing candidate allocation as last transfer rate was only \" \r\n + lastTransferRateBPS + \" bps\");\r\n NLogger.debug( NLoggerNames.Download_Candidate_Allocate,\r\n \"Refusing candidate allocation as last transfer rate was only \" \r\n + lastTransferRateBPS + \" bps\");\r\n return false;\r\n }\r\n long currentTime = System.currentTimeMillis();\r\n return statusTimeout <= currentTime;\r\n }",
"public boolean reserve(int reservation) {\n int index = reservation - this.loRange;\n if (this.freeSet.get(index)) { // FREE\n this.freeSet.clear(index);\n return true;\n } else {\n return false;\n }\n }",
"protected boolean isOccupied(){\n\t\treturn occupied;\n\t}",
"boolean hasIsComplete();",
"boolean hasIsComplete();",
"public boolean isAllocated()\n\t{\n\t\tif(getQtyAllocated().signum()!=0)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}",
"boolean hasScheduling();",
"boolean hasScheduling();",
"boolean hasOccupation();",
"boolean hasOccupation();",
"boolean hasOccupation();",
"boolean hasOccupation();",
"boolean hasOccupation();",
"boolean available()\n {\n synchronized (m_lock)\n {\n return (null == m_runnable) && (!m_released);\n }\n }",
"@Override\r\n\tpublic boolean isReady() {\n\t\tResultSetDTO dto = mongoManager.fetchAndUpdateAvailableToRead(previousCollectionName);\r\n\t\t\r\n\t\tlogger.info(\"ready to start a new transaction? : [\"+(dto.isNotEmpty()?\"Yes\":\"No\")+\"], fetch size : \"+dto.getBatchRowsSize());\r\n\t\tif(dto.isNotEmpty()){\r\n\t\t\t\r\n\t\t\tnextBatchRows = dto.getBatchRows();\r\n\t\t\tcollectionName = dto.getCollectionName();\r\n\t\t\tpreviousCollectionName = collectionName;\r\n//\t\t\tlong idletime = 1 * 1000;\r\n//\t\t\tlogger.info(\"sleeping(has data)... idle time:\"+idletime+\" ms\");\r\n//\t\t\tUtils.sleep(idletime);\r\n\t\t\tlogger.debug(\"received data, prepare to sleep for a while...\");\r\n\t\t\tUtil.sleepForawhile(3 * 1000);\r\n\t\t\treturn true;\r\n\t\t} else{ //sleep while there is no data found\r\n\t\t\tlogger.warn(\"no data found, sleeping...\");\r\n\t\t\tUtil.sleepForawhile(6 * 1000);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n//\t\treturn mongoManager.getAvailableToRead(nextRead) > 0;\r\n\t}",
"boolean hasCompletePartition();",
"public boolean hasNextResults() {\n\t\tif(totalCount != null && totalCount <= currentOffset) return false;\n\t\treturn true;\n\t}",
"public boolean isOccupied() {\n return !(getLease() == null);\r\n }",
"public boolean hasFinished() {\n\t\treturn new Date(startDate.getTime() + duration).before(new Date());\n\t}",
"public abstract boolean isSearchInProgress();",
"public boolean isOccuped(){\n return this.occuped;\n }",
"public boolean isComplete()\n {\n return (getCount() >= getGoal());\n }",
"public boolean hasResult() {\n return hasResult;\n }",
"public boolean isInventoryFull()\n\t{\n\t\tif (myWorker.getLoadInInventory() >= getMyPlayer().getPlayerInfo()\n\t\t\t\t.getMaxCarryingLoadByWorker())\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public boolean isVacant() {\r\n\treturn !isOccupied() || !isAvailable();\r\n }",
"public boolean isOccupied(){\n return this.occupied;\n }",
"public boolean isOccupied() {\r\n\t\treturn isOccupied;\r\n\t}",
"public boolean isOccupied() {\r\n\t\treturn isOccupied;\r\n\t}",
"boolean isSetNumberOfResults();",
"public boolean canStartMoreUsers() {\n boolean z;\n synchronized (this.mLock) {\n z = getRunningUsersLU().size() < this.mMaxRunningUsers;\n }\n return z;\n }",
"public boolean isOccupied() {\n\t\treturn isOccupied;\n\t}",
"public boolean isOccupied() {\n\t\treturn isOccupied;\n\t}",
"public boolean hasRequests(){\n return (tradeRequests.size() > 0 || userRequests.size() > 0);\n }",
"public boolean hasJobId() {\n return result.hasJobId();\n }",
"boolean hasJobId();",
"public boolean hasScheduling() {\n return scheduling_ != null;\n }",
"public boolean hasScheduling() {\n return schedulingBuilder_ != null || scheduling_ != null;\n }",
"public boolean getCapacity() {\n\t\treturn true;\n\t\t// get information about the room and determine if we are above capacity. \n\t}",
"boolean hasWork();",
"public boolean hasWorkToDo() {\n return !this.incUpdateQueue.isEmpty();\n }",
"boolean hasParking();",
"@Override\n\tpublic boolean reserve() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n return count > maxCount;\n }",
"public boolean isGatheredAllRows() {\r\n return isFinalRowCount() && getTotalRowCount() == getActualRowCount();\r\n }",
"public boolean isComplete();",
"public boolean hasRequestedPage() {\n return getPageIdx() < getPageList().size();\n }",
"public boolean isCacheResults() {\n return cacheResults;\n }",
"public boolean wasParked() {\r\n\t\tif (wasParked == true) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean hasLimit() {\n return result.hasLimit();\n }",
"public boolean operationWaiting(){\n\t\tif (var2Set) return true; else return false;\n\t}",
"public boolean canBeConsumed() {\n return canBeConsumed;\n }",
"public boolean isAvailable() {\n return LocalTime.now().isAfter(busyEndTime);\n }",
"public boolean isSearchPerformed()\n\t{\n\t\treturn this.searchPerformed || this.recordCount() > 0;\n\t}",
"public boolean isCompleted() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) == 0 || isAborted();\r\n\r\n\t}",
"boolean isComplete();",
"boolean isComplete();",
"boolean hasFinalTallyResult();",
"public boolean requiresWaitingForMappingUpdate() {\n return currentItemState == ItemProcessingState.WAIT_FOR_MAPPING_UPDATE;\n }",
"public boolean IsOccupied() {\n\n\t\treturn occupied;\n\t}",
"public boolean isAvailable() {\n return this.isAcceptingRider && this.currentTrip == null;\n }",
"public boolean hasEnoughSpaceForExecution() {\r\n\t\tlong maxSpaceInHotfolder = Long.parseLong(props.getProperty(\"maxServerSpace\"));\r\n\t\tboolean enoughSpace = false;\r\n\t\ttry {\r\n\t\t\tenoughSpace = hotfolderManager.enoughSpaceAvailable(maxSpaceInHotfolder, inputDavUri, outputDavUri, errorDavUri);\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.error(\"Could not determine free space in hotfolder (\" + getName() + \")\", e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn enoughSpace;\t\r\n\t}",
"private boolean isWorkSearch() {\n int i = 0;\n for (Thread thread : this.threadsSaerch) {\n if (thread != null && thread.isAlive()) {\n i++;\n }\n }\n return i == 0;\n }",
"public boolean isAvailable() {\r\n\t\treturn available;\r\n\t}",
"protected boolean isAllJobsFinished() {\r\n \tIterator<Progress> jobsIterator = JobManager.iterator();\r\n \twhile (jobsIterator.hasNext()) {\r\n \t\tProgress job = jobsIterator.next();\r\n\t\t\tif (!job.isFinished()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n }",
"public boolean busyReveiced () {\n\t\t\treturn resultDetected[RESULT_INDEX_BUSY];\n\t\t}",
"public boolean hasProductsRS() {\n return productsRS_ != null;\n }",
"public boolean isAvalible() {\n return available;\n }",
"public static boolean checkResources(){\n for(Instruction i : waitingList){\n if(resourceArr[i.resourceType - 1] >= i.resourceAmount){\n return true;\n }\n }\n for(int i = 0 ; i < taskPointers.length; i ++){\n int pointerIndex = taskPointers[i];\n Task currTask = taskList.get(i);\n if(currTask.terminateTime == - 1 && (currTask.isAborted == false) && Collections.disjoint(waitingList, currTask.instructionList)){\n Instruction currInstruction = currTask.instructionList.get(pointerIndex);\n Type instructionType = currInstruction.instructionType;\n int resourceType = currInstruction.resourceType;\n if(instructionType != Type.request){\n return true;\n }else{\n if(resourceArr[currInstruction.resourceType - 1] >= currInstruction.resourceAmount){\n return true;\n }\n }\n }\n\n }\n return false;\n }",
"public boolean isSetResult() {\n return this.result != null;\n }",
"private static boolean FullRAM(String jobId){\n if(pcb.getProcessSize(jobId) <= RAMSpace()){\n return false;\n }\n else{\n return true;\n }\n }",
"public final boolean hasAllocationSize() {\n return m_allocSize > 0 ? true : false;\n }",
"public boolean isAvailable() {\n return available;\n }",
"public boolean isAvailable() {\n return available;\n }",
"public boolean isQueued() {\r\n\t\tif (vehicleState == \"queued\") {\r\n\t\t\twasQueued = true;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"boolean isBeingUsed() {\n return usageCount > 0;\n }",
"public boolean needsResend(){\n return this.getNumNetworkCopies()-this.replicationDegree<0;\n }",
"public boolean hasNext(){\n if (numPrimesReturned < totalPrimesNeeded) {\n return true;\n }\n\n return false;\n }",
"public boolean isFinished() {\n\t\tif (getRemaining() <= 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}"
] |
[
"0.74361116",
"0.64053535",
"0.63578886",
"0.6292908",
"0.6287727",
"0.61488366",
"0.61308974",
"0.6062245",
"0.60151905",
"0.6013532",
"0.60028434",
"0.5999976",
"0.59720534",
"0.5901075",
"0.588719",
"0.58779854",
"0.5877548",
"0.5872172",
"0.5844648",
"0.5827095",
"0.58270705",
"0.58230996",
"0.58200866",
"0.580066",
"0.57983243",
"0.5781099",
"0.5781099",
"0.5769223",
"0.57590777",
"0.57590777",
"0.57563734",
"0.57563734",
"0.57563734",
"0.57563734",
"0.57563734",
"0.5754068",
"0.5742139",
"0.57226956",
"0.5715934",
"0.57011586",
"0.5684556",
"0.5684486",
"0.56836665",
"0.5683332",
"0.5680179",
"0.5669026",
"0.56475186",
"0.56428194",
"0.56273013",
"0.56273013",
"0.56216973",
"0.5617848",
"0.5613885",
"0.5613885",
"0.56121886",
"0.5606057",
"0.56016916",
"0.56009614",
"0.55949384",
"0.5591602",
"0.5584438",
"0.5582877",
"0.5581886",
"0.55807066",
"0.5572522",
"0.5564587",
"0.5551675",
"0.5549378",
"0.554408",
"0.5539939",
"0.5531373",
"0.5525928",
"0.55257446",
"0.55232936",
"0.5509385",
"0.55025494",
"0.5502209",
"0.5502209",
"0.55017996",
"0.54960126",
"0.54829806",
"0.5481809",
"0.5474349",
"0.5472713",
"0.5467853",
"0.54588467",
"0.54571545",
"0.5452546",
"0.54521036",
"0.5449693",
"0.5444921",
"0.54394233",
"0.54381436",
"0.5434178",
"0.5434178",
"0.5423033",
"0.5422043",
"0.5422003",
"0.54218036",
"0.5421632"
] |
0.8266317
|
0
|
Sets the after any of this job.
|
@Override
public void setAfterAny(String afterAny) {
model.setAfterAny(afterAny);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void setAfterLast(Wrapper afterLast)\n {\n\n }",
"public void setAfterOperations(List<Operation> after){\n\n if (after == null){\n this.after = null;\n }\n else{\n if (this.after != null){\n this.after.clear();\n }\n for (Operation op : after){\n addAfterOperation(op);\n }\n }\n }",
"public void afterDone() {\n }",
"public void afterDone() {\n }",
"public void setAfterLastOperations(List<Operation> afterLast){\n\n if (afterLast == null){\n this.afterLast = null;\n }\n else{\n if (this.afterLast != null){\n this.afterLast.clear();\n }\n for (Operation op : afterLast){\n addAfterOperation(op);\n }\n }\n }",
"protected void afterJobExecution() {\n\t}",
"protected abstract void after();",
"@Override\r\n\tpublic void doAfterJob() {\n\r\n\t}",
"@After\n public void after() {\n DateTimeUtils.setCurrentMillisSystem();\n }",
"@Stub\n\tpublic void after()\n\t{\n\t\t//\n\t}",
"public void setAfterReason(String afterReason) {\r\n this.afterReason = afterReason;\r\n }",
"default void afterInvocation() {\n afterInvocation(false);\n }",
"@Override\n public void setAfterEach(Wrapper afterEach)\n {\n\n }",
"void after();",
"public void doAfter(JoinPoint jp) {\n }",
"@Override\n public void afterFinish() {\n \n }",
"@Override\n protected void after() {\n }",
"public void setAfterTime(Date afterTime) {\r\n this.afterTime = afterTime;\r\n }",
"private void addAfterRule(AroundProcesser<AggMaschineVO> processer)\r\n {\n\t \r\n\t\t\r\n\t processer.addAfterRule(new FireEventRule(\"1006\"));\r\n\t\t\r\n\t processer.addAfterRule(new WriteBusiLogRule(\"delete\"));\r\n }",
"public void setAfterMission(Integer afterMission) {\r\n this.afterMission = afterMission;\r\n }",
"public void setAfterCt(Date afterCt) {\r\n this.afterCt = afterCt;\r\n }",
"protected void runAfterStep() {}",
"public void setAfterResult(Integer afterResult) {\r\n this.afterResult = afterResult;\r\n }",
"public void setAfterId(Integer afterId) {\r\n this.afterId = afterId;\r\n }",
"public void setAfterP(Integer afterP) {\r\n this.afterP = afterP;\r\n }",
"public String getAfterReason() {\r\n return afterReason;\r\n }",
"public TestCase afterThis( Procedure callafter );",
"@Override\n protected void after()\n {\n stop();\n }",
"public void afterPropertiesSet() {\r\n\t}",
"public void afterLast() throws SQLException\n {\n m_rs.afterLast();\n }",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public void afterPropertiesSet() {\n\t}",
"public Collection<AfterComplete> getAfterCompleteOptions(){\n return afterCompleteOptions;\n }",
"void afterRun();",
"@AfterMethod\n\tpublic void end()\n\t{\n\n\t}",
"@After\r\n\tpublic void doThatEveryTime() {\n\t}",
"public After(final String theReference) {\n reference = theReference;\n syncPoints = new LinkedList<Sync>();\n }",
"protected void after( boolean successful ) throws Throwable\n {\n // do nothing\n }",
"@After\n public void after() {\n System.out.format(\"In After of %s\\n\", ExecutionProcedureJunit2.class.getName());\n }",
"@Override\r\n\tpublic void afterScript(String arg0, WebDriver arg1) {\n\t\t\r\n\t}",
"public void setAfterStore(Integer afterStore) {\r\n this.afterStore = afterStore;\r\n }",
"public void doafter() {\r\n\t\t\r\n\t\tendTme = System.currentTimeMillis();\r\n\t\tString ended = \"MethodEnded: \" + endTme;\r\n\t\tString duration = \"Duration: \" + (endTme - startTime)\r\n\t\t\t\t+ \" Milliseconds\";\r\n\t\tmethodlog += ended + duration + tendency;\r\n\t\tfinallog += methodlog;\r\n\t\t\r\n\t\tmyAnalysis.writeLogtoFile(finallog);// calls method to write to file the log of all methods.\r\n\t}",
"@After\r\n public void after() throws Exception {\r\n }",
"public void after(OUT out) {\n }",
"@Override\n public void doAfterAllAnalysed(AnalysisContext context) {\n\n }",
"void afterMethod(Object self, Method method, Method originalMethod, Object[] args) throws Throwable;",
"public void after(OUT out) {\n\n }",
"public void setAfter() {\r\n\t\t\tbasemapAfter = new HashMap<Location, SurfaceEntity>(surface.basemap);\r\n\t\t\tsurfaceAfter = new ArrayList<SurfaceFeature>(surface.features);\r\n\t\t\t\r\n\t\t\tbuildingmapAfter = new HashMap<Location, SurfaceEntity>(surface.buildingmap);\r\n\t\t\tbuildingsAfter = new ArrayList<Building>(surface.buildings);\r\n\t\t}",
"protected void runAfterIteration() {}",
"@Override\n\tpublic void afterScript(String arg0, WebDriver arg1) {\n\n\t}",
"public void setAfter(Period after) {\n to = LocalDate.now(ZoneOffset.UTC).plus(after).plusDays(1).atStartOfDay();\n }",
"public boolean isSetAfter() {\n return this.after != null;\n }",
"public void after(int seqId) {\n totalRunningRPCCounter.decrementAndGet();\n }",
"@Override\n @After\n public void after() throws Exception {\n\n // clean up the event data\n clearMxTestData();\n\n super.after();\n }",
"public void afterExecution(final Object bapiObject) {\n }",
"@Override\r\n public void afterScript(final String arg0, final WebDriver arg1) {\n\r\n }",
"@After\n public void status() {\n }",
"void PostRun() {\n }",
"public void setAfterValue(String afterValue) {\n this.afterValue = afterValue == null ? null : afterValue.trim();\n }",
"public Optional<Instant> getAfter() {\n\t\t\treturn after;\n\t\t}",
"@AfterGroup\n public void afterGroup() {\n }",
"public String getAfterValue() {\n return afterValue;\n }",
"@Override\n\tpublic void afterScript(String script, WebDriver driver) {\n\t\t\n\t}",
"public Builder withAfter(final Instant after) {\n\t\t\tthis.after = Optional.ofNullable(after);\n\t\t\treturn this;\n\t\t}",
"@AfterEach\n private void afterEachEnd()\n {\n System.out.println(\"Test Completed \" + testInfo.getDisplayName());\n System.out.println(\"After Each Clean Test........\");\n System.out.println(\"Elapsed TIme : \" + ELAPSED_TIME + \" ns\");\n LOGGER.info(\"Elapsed TIme for \" + testInfo.getDisplayName() + \" : \" + ELAPSED_TIME);\n }",
"public void finalizeJob() {\n // override to implement\n }",
"public void addAfterOperation(Operation op){\n if (op == null){\n throw new IllegalArgumentException(\"op is null\");\n }\n if (after == null){\n after = new ArrayList<>();\n }\n\n this.after.add(op);\n }",
"public void afterCompletion(boolean committed) throws EJBException,\n\t RemoteException;",
"public void afterPropertiesSet()\r\n/* 40: */ throws SchedulerException\r\n/* 41: */ {\r\n/* 42: 82 */ if (this.scheduler == null) {\r\n/* 43: 83 */ if (this.schedulerName != null) {\r\n/* 44: 84 */ this.scheduler = findScheduler(this.schedulerName);\r\n/* 45: */ } else {\r\n/* 46: 87 */ throw new IllegalStateException(\"No Scheduler specified\");\r\n/* 47: */ }\r\n/* 48: */ }\r\n/* 49: 90 */ registerListeners();\r\n/* 50: 91 */ registerJobsAndTriggers();\r\n/* 51: */ }",
"public void afterPropertiesSet() throws Exception {\n\t\t\n\t}",
"public Integer getAfterResult() {\r\n return afterResult;\r\n }",
"@Override\r\n\tprotected void doLast() {\n\t\t\r\n\t}",
"@Override\n\tpublic void setAfterOk(String afterOk) {\n\t\tmodel.setAfterOk(afterOk);\n\t}",
"private void doAfterEveryPhase(final PhaseEvent arg0) {\n\t}",
"protected abstract void doAfter(T result);",
"public Integer getAfterId() {\r\n return afterId;\r\n }",
"@AfterMethod(enabled =true)\n\tpublic void afterMethod(){\n\t\tSystem.out.println(\"In AfterMethod\");\n\t}",
"@AfterAll\n public static void afterClass() {\n System.out.println(\"After!!! **** - I am only called once!!!\");\n }",
"public void afterPropertiesSet() throws Exception {\n\t\tcalendar = Calendar.getInstance();\n\t\tcalendar.set(month, day, year);\n\t}",
"public Optional<Instant> getAfter() {\n\t\treturn after;\n\t}",
"@Override\n protected void after() {\n mDescription.addChild(\n Description.createTestDescription(\"LOGS\", \"LOGS\", new LogAnnotation(mLogs)));\n }",
"@After\n\tpublic void fechaTeste()\n\t{\n\t\tSystem.out.println(\"ESTOU FECHANDO O TESTE\");\n\t}",
"void after(final Node currentNode, final ActivityResult activityResult);",
"public Date getAfterCt() {\r\n return afterCt;\r\n }",
"@AfterMethod()\n\tpublic void afterMethod() {\n\t\textent.endTest(test);\n\t\textent.flush();\n\t}",
"@After\n\tpublic void after() {\n\t\tmovie1.setGenres(null);\n\t\tmovie1.setCast(null);\n\t\tmovie1.setDirector(null);\n\t\tmovieRepository.save(movie1);\n\t\t\n\t\tgenreRepository.delete(genre);\n\t\tmovieRepository.delete(movie1);\n\t\tartistRepository.delete(artistParaCastEDirector);\n\t}",
"@Override\r\n\t@AfterTest\r\n\tpublic void endSetting() {\n\t\tSystem.out.println(\"结束系统设置测试\");\r\n\t}",
"@Override\n public Wrapper getAfterEach()\n {\n return null;\n }",
"public Date getAfterTime() {\r\n return afterTime;\r\n }",
"@Override\n public void afterPropertiesSet() {\n }",
"public void afterDownstream() {\n }",
"@AfterClass\n\tpublic static void after() {\n\t\tXMLRetryConfigMgr.setXML_FILE(ORIG_FILE);\n\t\tHzIntegrationTestUtil.afterClass();\n\t}",
"public void afterPropertiesSet() throws Exception {\n\t}",
"public void afterPropertiesSet() throws Exception {\n\t}"
] |
[
"0.6992854",
"0.67329776",
"0.66540784",
"0.66540784",
"0.65886563",
"0.65333766",
"0.6482124",
"0.6412798",
"0.61195976",
"0.611021",
"0.6095591",
"0.6082264",
"0.6040166",
"0.6039345",
"0.5932266",
"0.59152365",
"0.59112376",
"0.5899964",
"0.58974415",
"0.5895174",
"0.5890482",
"0.5875989",
"0.58259606",
"0.5791467",
"0.5780133",
"0.57601374",
"0.5746686",
"0.5723228",
"0.57073194",
"0.5705375",
"0.5679654",
"0.5679654",
"0.5679654",
"0.5679654",
"0.5679654",
"0.5679654",
"0.5679654",
"0.5679654",
"0.5674805",
"0.5643069",
"0.564178",
"0.56214976",
"0.56146544",
"0.5599346",
"0.55741376",
"0.557342",
"0.55587786",
"0.5534903",
"0.55309755",
"0.551276",
"0.5510108",
"0.5483405",
"0.5481274",
"0.54748815",
"0.547057",
"0.5465885",
"0.54410475",
"0.54099935",
"0.53988403",
"0.53973633",
"0.53909177",
"0.5368345",
"0.5357349",
"0.53553146",
"0.5353573",
"0.53101176",
"0.5309746",
"0.52941364",
"0.5287578",
"0.52822804",
"0.52742666",
"0.5274213",
"0.5264325",
"0.52524006",
"0.5240084",
"0.52356887",
"0.52232456",
"0.5213527",
"0.52068657",
"0.5188687",
"0.5183279",
"0.51804256",
"0.5176228",
"0.5174988",
"0.51746196",
"0.5172632",
"0.5169666",
"0.5160542",
"0.51575136",
"0.51515585",
"0.514898",
"0.5141758",
"0.5141363",
"0.513492",
"0.51332223",
"0.51299953",
"0.5126163",
"0.5114799",
"0.5107247",
"0.5107247"
] |
0.6074052
|
12
|
Sets the after ok of this job.
|
@Override
public void setAfterOk(String afterOk) {
model.setAfterOk(afterOk);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void afterDone() {\n }",
"public void afterDone() {\n }",
"public void setAfterResult(Integer afterResult) {\r\n this.afterResult = afterResult;\r\n }",
"public void setAfterReason(String afterReason) {\r\n this.afterReason = afterReason;\r\n }",
"protected void after( boolean successful ) throws Throwable\n {\n // do nothing\n }",
"protected abstract void after();",
"@Override\n\tpublic String getAfterOk() {\n\t\treturn model.getAfterOk();\n\t}",
"public void markAsDone() {\n // TODO consider adding assertion here\n isDone = true;\n }",
"public final void setOk(final boolean ok) {\n this.ok = ok;\n }",
"@Override\r\n\tpublic void doAfterJob() {\n\r\n\t}",
"@Override\n public void afterFinish() {\n \n }",
"@Override\n public void setAfterLast(Wrapper afterLast)\n {\n\n }",
"public void setAfterCt(Date afterCt) {\r\n this.afterCt = afterCt;\r\n }",
"public void markAsDone() {\n this.done = true;\n }",
"public void setAfterTime(Date afterTime) {\r\n this.afterTime = afterTime;\r\n }",
"public boolean isSetAfter() {\n return this.after != null;\n }",
"public String getAfterReason() {\r\n return afterReason;\r\n }",
"public void markAsDone() {\n this.isDone = true;\n this.completed = \"1\";\n }",
"public void setAfterMission(Integer afterMission) {\r\n this.afterMission = afterMission;\r\n }",
"protected void afterJobExecution() {\n\t}",
"void after();",
"public void markAsDone() {\n isDone = true;\n }",
"public void markAsDone() {\n isDone = true;\n }",
"public void markAsDone() {\n isDone = true;\n }",
"public void markAsDone(){\n isDone = true;\n }",
"protected void markAsDone() {\n isDone = true;\n }",
"public void markAsDone() {\r\n this.isDone = true;\r\n }",
"public void markAsDone() {\n this.isDone = true;\n\n }",
"default void afterInvocation() {\n afterInvocation(false);\n }",
"public void markAsDone() {\n this.isDone = true;\n }",
"public void markAsDone() {\n this.isDone = true;\n }",
"public void markAsDone() {\n this.isDone = true;\n }",
"@Stub\n\tpublic void after()\n\t{\n\t\t//\n\t}",
"public Integer getAfterResult() {\r\n return afterResult;\r\n }",
"protected abstract void afterWait();",
"public void markDone() {\n isDone = true;\n }",
"public void setDone() {\n isDone = true;\n }",
"protected void setFinished(boolean finished) {\n this.finished = finished;\n }",
"public void setAfterP(Integer afterP) {\r\n this.afterP = afterP;\r\n }",
"public void setDone() {\n this.isDone = true;\n }",
"public void setDone() {\n this.isDone = true;\n }",
"public void setDone() {\n this.isDone = true;\n }",
"protected abstract void afterCall(final Object result);",
"protected abstract void doAfter(T result);",
"protected void runAfterStep() {}",
"public void SetDone(){\n this.isDone = true;\n }",
"public TestCase afterThis( Procedure callafter );",
"public void ok() {\n this.apply();\n }",
"public void after(OUT out) {\n }",
"@Override\r\n\t@AfterTest\r\n\tpublic void endSetting() {\n\t\tSystem.out.println(\"结束系统设置测试\");\r\n\t}",
"@Override\n public void setAfterEach(Wrapper afterEach)\n {\n\n }",
"synchronized public void jobDone(){ // l'action a été réalisée\n\t\tdone = true; // changement d'état\n\t\tthis.notifyAll(); // on notifie tout le monde\n\t}",
"public void ok() {\n btOK().push();\n }",
"public void ok() {\n this.apply();\n }",
"public void finish(boolean b) {\n\t\tisFinished = b;\n\t}",
"@Override\n protected void after()\n {\n stop();\n }",
"public void setDone(){\n this.status = \"Done\";\n }",
"public void after(OUT out) {\n\n }",
"@Override\r\n\t@AfterMethod\r\n\tpublic void quitSetting() {\n\t\toTest.quitSetting();\r\n\t\tSystem.out.println(\"end\");\r\n\t}",
"public void afterCompletion(boolean committed) throws EJBException,\n\t RemoteException;",
"@Override\n public void setFinished() {\n finishedBanking = true;\n }",
"public void setFinished(Boolean finished) {\n this.finished = finished;\n }",
"public void finish(){\n\t\tnotfinish = false;\n\t}",
"public void doAfter(JoinPoint jp) {\n }",
"public void setAfterStore(Integer afterStore) {\r\n this.afterStore = afterStore;\r\n }",
"void setOk();",
"void afterRun();",
"public void setAfterId(Integer afterId) {\r\n this.afterId = afterId;\r\n }",
"public void finalizeJob() {\n // override to implement\n }",
"void afterMethod(Object self, Method method, Method originalMethod, Object[] args) throws Throwable;",
"public void setAfterOperations(List<Operation> after){\n\n if (after == null){\n this.after = null;\n }\n else{\n if (this.after != null){\n this.after.clear();\n }\n for (Operation op : after){\n addAfterOperation(op);\n }\n }\n }",
"public abstract Task markAsDone();",
"@After\n public void after() {\n DateTimeUtils.setCurrentMillisSystem();\n }",
"public void setFinished(boolean fin) {\n finished = fin;\n }",
"public void setCompleted(){\r\n\t\tisCompleted = true;\r\n\t}",
"public void setFinished(boolean fin) {\n\t\tfinished = fin;\n\t}",
"public void markAsUndone() {\n isDone = false;\n }",
"public void setDone(boolean value) {\n this.done = value;\n }",
"public void doafter() {\r\n\t\t\r\n\t\tendTme = System.currentTimeMillis();\r\n\t\tString ended = \"MethodEnded: \" + endTme;\r\n\t\tString duration = \"Duration: \" + (endTme - startTime)\r\n\t\t\t\t+ \" Milliseconds\";\r\n\t\tmethodlog += ended + duration + tendency;\r\n\t\tfinallog += methodlog;\r\n\t\t\r\n\t\tmyAnalysis.writeLogtoFile(finallog);// calls method to write to file the log of all methods.\r\n\t}",
"@After\n public void status() {\n }",
"@AfterMethod\n\tpublic void end()\n\t{\n\n\t}",
"@Override\n\tpublic void afterInvocation(IInvokedMethod arg0, ITestResult arg1) {\n\t\tSystem.out.println(\"Test method Finish\" + arg0.getTestMethod().getQualifiedName() + \",\" + new Date());\n\t}",
"public void setDone(boolean doneIt)\n {\n notDone = doneIt;\n }",
"@AfterMethod()\n\tpublic void afterMethod() {\n\t\textent.endTest(test);\n\t\textent.flush();\n\t}",
"public void setAfterValue(String afterValue) {\n this.afterValue = afterValue == null ? null : afterValue.trim();\n }",
"@Override\n protected void after() {\n }",
"public void afterExecution(final Object bapiObject) {\n }",
"public void setToFailed() {\n if (currentStep.getCurrentPhase() != Step.Phase.FAILED) {\n changeCurrentStep(Step.Phase.FAILED);\n }\n setCompleteTime(System.currentTimeMillis());\n }",
"public void setAfterLastOperations(List<Operation> afterLast){\n\n if (afterLast == null){\n this.afterLast = null;\n }\n else{\n if (this.afterLast != null){\n this.afterLast.clear();\n }\n for (Operation op : afterLast){\n addAfterOperation(op);\n }\n }\n }",
"@Override\r\n public void updateExit() {\r\n if (((CompositeGoal) compositeGoal).allOtherGoalsComplete()) {\r\n goalCompleted = true;\r\n compositeGoal.processGoal();\r\n } else {\r\n System.out.println(\"Need to complete other goals first\");\r\n }\r\n }",
"public void setDone(boolean done) {\n \tthis.done = done;\n }",
"@Override\n\tpublic void close() {\n\t\tthis.ok = false;\n\t}",
"private void onOK() {\n OKDisposalProcess();\n }",
"@DISPID(-2147412090)\n @PropPut\n void onafterupdate(\n java.lang.Object rhs);",
"public void reasoningFinished(ReasoningResult result);",
"public void set_completed();",
"private void addAfterRule(AroundProcesser<AggMaschineVO> processer)\r\n {\n\t \r\n\t\t\r\n\t processer.addAfterRule(new FireEventRule(\"1006\"));\r\n\t\t\r\n\t processer.addAfterRule(new WriteBusiLogRule(\"delete\"));\r\n }",
"private void doFinishJob\n\t\t(long now,\n\t\t JobInfo jobinfo)\n\t\tthrows IOException\n\t\t{\n\t\tmyLog.log (now, \"Job \" + jobinfo.jobnum + \" finished\");\n\t\tdoCleanupJob (now, jobinfo);\n\t\t}",
"public void setDone(boolean done) {\n this.done = done;\n }",
"public void setCompleted(boolean flag) {\r\n completed = flag;\r\n }"
] |
[
"0.659558",
"0.659558",
"0.65272695",
"0.6137661",
"0.6083764",
"0.5943218",
"0.589885",
"0.58915764",
"0.58855855",
"0.58805317",
"0.58767635",
"0.5857395",
"0.579164",
"0.5744367",
"0.57356226",
"0.5729476",
"0.57161456",
"0.57150614",
"0.5697448",
"0.5660266",
"0.56572",
"0.56457955",
"0.56457955",
"0.56457955",
"0.5637298",
"0.5626071",
"0.5613948",
"0.5568013",
"0.55240756",
"0.55164236",
"0.55164236",
"0.55164236",
"0.54809",
"0.5465788",
"0.54473495",
"0.54392856",
"0.54200023",
"0.54150337",
"0.54051",
"0.5398602",
"0.5398602",
"0.5398602",
"0.53772557",
"0.5374362",
"0.53701293",
"0.53625315",
"0.5348978",
"0.53437155",
"0.5337973",
"0.53366",
"0.53325063",
"0.5286731",
"0.52800196",
"0.5271484",
"0.52553403",
"0.52506685",
"0.5248067",
"0.5234545",
"0.52142143",
"0.5199651",
"0.5190944",
"0.51863575",
"0.51858777",
"0.51822805",
"0.5180106",
"0.5166708",
"0.5166237",
"0.51542187",
"0.51534235",
"0.51493293",
"0.5145455",
"0.5124445",
"0.5110793",
"0.5104376",
"0.5098138",
"0.50885296",
"0.50788915",
"0.5073609",
"0.50658613",
"0.5058741",
"0.5052279",
"0.50514895",
"0.5037048",
"0.5035997",
"0.50308686",
"0.5025143",
"0.50243014",
"0.50239944",
"0.5017721",
"0.5013707",
"0.50037676",
"0.50008553",
"0.4988825",
"0.49842745",
"0.49785757",
"0.49713364",
"0.49671096",
"0.4959525",
"0.49540892",
"0.49516162"
] |
0.73543996
|
0
|
Sets the cluster ID of this job.
|
@Override
public void setClusterId(long clusterId) {
model.setClusterId(clusterId);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Builder setClusterId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n clusterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setClusterId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n clusterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setClusterId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n clusterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setClusterId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n clusterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setClusterId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n clusterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setClusterId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n clusterId_ = value;\n onChanged();\n return this;\n }",
"public void setClusterId(String id) {\n clusterId = id;\n }",
"public void setClusterId(String clusterId) {\n this.clusterId = clusterId;\n }",
"public String getClusterId() {\n return clusterId;\n }",
"public void setClusterId(String ClusterId) {\n this.ClusterId = ClusterId;\n }",
"public void setClusterIdentifier(String clusterIdentifier) {\n this.clusterIdentifier = clusterIdentifier;\n }",
"public void setCluster(String cluster) {\n this.cluster = cluster;\n }",
"public void setCluster(String cluster) {\n this.cluster = cluster;\n }",
"java.lang.String getClusterId();",
"java.lang.String getClusterId();",
"java.lang.String getClusterId();",
"java.lang.String getClusterId();",
"java.lang.String getClusterId();",
"java.lang.String getClusterId();",
"public void setPClusterId(Number value) {\n\t\tsetNumber(P_CLUSTER_ID, value);\n\t}",
"public String getClusterId() {\n return this.ClusterId;\n }",
"public String clusterId() {\n return this.clusterId;\n }",
"public java.lang.String getClusterId() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getClusterId() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getClusterId() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getClusterId() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getClusterId() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getClusterId() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@JsonProperty(\"clusterId\")\n public String getClusterId() {\n return clusterId;\n }",
"public String clusterId() {\n return this.innerProperties() == null ? null : this.innerProperties().clusterId();\n }",
"@java.lang.Override\n public java.lang.String getClusterId() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getClusterId() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getClusterId() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getClusterId() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getClusterId() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getClusterId() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = s;\n return s;\n }\n }",
"public Builder setClusterIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n clusterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setClusterIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n clusterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setClusterIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n clusterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setClusterIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n clusterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setClusterIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n clusterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setClusterIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n clusterId_ = value;\n onChanged();\n return this;\n }",
"public String getClusterIdentifier() {\n return this.clusterIdentifier;\n }",
"public void setCluster(com.tangosol.net.Cluster cluster)\n {\n __m_Cluster = cluster;\n }",
"@Override\n\tpublic long getClusterId() {\n\t\treturn model.getClusterId();\n\t}",
"public Builder setCluster(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n cluster_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setCluster(java.lang.String cluster) {\n\t\t_scienceApp.setCluster(cluster);\n\t}",
"public com.google.protobuf.ByteString\n getClusterIdBytes() {\n java.lang.Object ref = clusterId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n clusterId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getClusterIdBytes() {\n java.lang.Object ref = clusterId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n clusterId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getClusterIdBytes() {\n java.lang.Object ref = clusterId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n clusterId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getClusterIdBytes() {\n java.lang.Object ref = clusterId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n clusterId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getClusterIdBytes() {\n java.lang.Object ref = clusterId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n clusterId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getClusterIdBytes() {\n java.lang.Object ref = clusterId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n clusterId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder clearClusterId() {\n \n clusterId_ = getDefaultInstance().getClusterId();\n onChanged();\n return this;\n }",
"public Builder clearClusterId() {\n \n clusterId_ = getDefaultInstance().getClusterId();\n onChanged();\n return this;\n }",
"public Builder clearClusterId() {\n \n clusterId_ = getDefaultInstance().getClusterId();\n onChanged();\n return this;\n }",
"public Builder clearClusterId() {\n \n clusterId_ = getDefaultInstance().getClusterId();\n onChanged();\n return this;\n }",
"public Builder clearClusterId() {\n \n clusterId_ = getDefaultInstance().getClusterId();\n onChanged();\n return this;\n }",
"public Builder clearClusterId() {\n \n clusterId_ = getDefaultInstance().getClusterId();\n onChanged();\n return this;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getClusterIdBytes() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getClusterIdBytes() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getClusterIdBytes() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getClusterIdBytes() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getClusterIdBytes() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getClusterIdBytes() {\n java.lang.Object ref = clusterId_;\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 clusterId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setClusterSize(java.lang.Integer clusterSize) {\n this.clusterSize = clusterSize;\n }",
"public void setSelectedNumberOfCluster(int selectedNumberOfCluster) {\n\t\tthis.selectedNumberOfCluster = selectedNumberOfCluster;\n\t}",
"public void setClusterUuid(String clusterUuid) {\n this.clusterUuid = clusterUuid;\n }",
"public Builder setClusteringKey(\n int index, String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureClusteringKeyIsMutable();\n clusteringKey_.set(index, value);\n onChanged();\n return this;\n }",
"public String getCluster() {\n return this.cluster;\n }",
"public String getCluster() {\n return this.cluster;\n }",
"public void setClusterIndex(int clusterIndex) {\r\n this.clusterIndex = clusterIndex;\r\n updateValues(getCluster());\r\n }",
"public void setCacheClusterSize(CacheClusterSize cacheClusterSize) {\n this.cacheClusterSize = cacheClusterSize.toString();\n }",
"public Cluster(int id) {\n\t\tthis.id = id;\n\t\tthis.points = new ArrayList<>();\n\t\tthis.centroid = 0;\n memberCount = 0;\n\t}",
"com.google.protobuf.ByteString\n getClusterIdBytes();",
"com.google.protobuf.ByteString\n getClusterIdBytes();",
"com.google.protobuf.ByteString\n getClusterIdBytes();",
"com.google.protobuf.ByteString\n getClusterIdBytes();",
"com.google.protobuf.ByteString\n getClusterIdBytes();",
"com.google.protobuf.ByteString\n getClusterIdBytes();",
"public String getCloudHsmClusterId() {\n return this.cloudHsmClusterId;\n }",
"public String getClusterUuid() {\n return clusterUuid;\n }",
"public AtomixConfig setClusterConfig(final ClusterConfig cluster) {\n this.cluster = cluster;\n return this;\n }",
"public void setClusterName(java.lang.String clusterName) {\n this.clusterName = clusterName;\n }",
"public Cluster() {\n id = Long.MAX_VALUE;\n links = new HashMap<Long, Set<Link>>();\n }",
"public void setClusterName(String clusterName) {\n this.clusterName = clusterName;\n }",
"public void setIdKlinik(String idKlinik) {\n this.idKlinik = idKlinik;\r\n }",
"void setClusterContainerService(IClusterContainerServices s) {\n logger.debug(\"Cluster Service set\");\n this.clusterContainerService = s;\n }",
"public Cluster(int id) {\n this.meaning_id = id;\n this.frequency_id = id;\n this.meaning_points = new ArrayList();\n this.meaning_centroid = null;\n this.frequency_points = new ArrayList();\n this.frequency_centroid = null;\n }",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setId(java.lang.String value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"void setID(int val)\n throws RemoteException;",
"@Nullable\n public String getRemoteClusterId()\n {\n return remoteClusterId;\n }",
"public void setCloudHsmClusterId(String cloudHsmClusterId) {\n this.cloudHsmClusterId = cloudHsmClusterId;\n }",
"public void setCacheClusterSize(String cacheClusterSize) {\n this.cacheClusterSize = cacheClusterSize;\n }",
"public String getClusterArn() {\n return this.clusterArn;\n }",
"@java.lang.Override\n public java.lang.String getCluster() {\n java.lang.Object ref = cluster_;\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 cluster_ = s;\n return s;\n }\n }",
"public void setClusterColor(Color color) {\r\n if(color ==null){ //indicates removal of cluster\r\n framework.removeCluster(getArrayMappedToData(), experiment, ClusterRepository.GENE_CLUSTER);\r\n }\r\n }",
"public Builder setIsClusteringKey(boolean value) {\n\n isClusteringKey_ = value;\n onChanged();\n return this;\n }",
"@Override\r\n\tpublic void setId(final K id) {\n\t\tsuper.setId(id);\r\n\t}",
"public java.lang.String getCluster() {\n java.lang.Object ref = cluster_;\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 cluster_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }"
] |
[
"0.7534046",
"0.7534046",
"0.7534046",
"0.7534046",
"0.7534046",
"0.7534046",
"0.7509203",
"0.7408647",
"0.68274885",
"0.6740818",
"0.67386395",
"0.6611031",
"0.6611031",
"0.6556382",
"0.6556382",
"0.6556382",
"0.6556382",
"0.6556382",
"0.6556382",
"0.65505654",
"0.65458995",
"0.6495674",
"0.64413124",
"0.64413124",
"0.64413124",
"0.64413124",
"0.64413124",
"0.64413124",
"0.64407265",
"0.64004403",
"0.6371696",
"0.6371696",
"0.6371696",
"0.6371696",
"0.6371696",
"0.6371696",
"0.6330201",
"0.6330201",
"0.6330201",
"0.6330201",
"0.6330201",
"0.6330201",
"0.6299704",
"0.628862",
"0.62776756",
"0.6275345",
"0.62621075",
"0.6205036",
"0.6205036",
"0.6205036",
"0.6205036",
"0.6205036",
"0.6205036",
"0.61494803",
"0.61494803",
"0.61494803",
"0.61494803",
"0.61494803",
"0.61494803",
"0.6057384",
"0.6057384",
"0.6057384",
"0.6057384",
"0.6057384",
"0.6057384",
"0.59042954",
"0.57301825",
"0.5622921",
"0.5622909",
"0.5526192",
"0.5526192",
"0.5494157",
"0.54834795",
"0.5468377",
"0.5433935",
"0.5433935",
"0.5433935",
"0.5433935",
"0.5433935",
"0.5433935",
"0.5411204",
"0.5348691",
"0.53419286",
"0.53271985",
"0.5309942",
"0.52962375",
"0.5296017",
"0.52924836",
"0.5250678",
"0.52251256",
"0.52184665",
"0.5181907",
"0.5174509",
"0.5167783",
"0.5129104",
"0.5101453",
"0.5098633",
"0.507625",
"0.5057294",
"0.5045733"
] |
0.7348968
|
8
|
Sets the command of this job.
|
@Override
public void setCommand(String command) {
model.setCommand(command);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected void setCommand(String command)\n {\n Command = command;\n }",
"public void setCommand(String command) {\n _command = command;\n }",
"public void setCommand(String command)\n {\n this.command = command;\n }",
"public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}",
"public void setCommand(String command) {\n this.command = command;\n }",
"public void setCommand(String command) {\n this.command = command;\n }",
"@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}",
"public void setCommand(Command c) {\r\n\t\tcommand = c;\r\n\t}",
"public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }",
"public abstract void setCommand(String cmd);",
"public void setCommand(int command)\n\t{\n\t\tthis.command = command;\n\t}",
"public void setCommand(@NonNull Command<Boolean, String> command) {\n this.command = command;\n }",
"public Builder setCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n command_ = value;\n onChanged();\n return this;\n }",
"protected void setCommand(CommandManager command) {\n\tthis.command = command;\n }",
"final public void setActionCommand(String command) {\n this.command = command;\n }",
"public void setCommand(String command){\r\n commandUpdate=command;\r\n }",
"public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}",
"public void setCommandKey(String commandKey)\n\t{\n\t\tthis.commandKey = Toolbox.trim(commandKey, 1);\n\t}",
"public Builder setCmd(int value) {\n \n cmd_ = value;\n onChanged();\n return this;\n }",
"public void setActionCommand(String command) {\n this.command = command;\n }",
"public Builder setCommand(int value) {\n bitField0_ |= 0x00000004;\n command_ = value;\n onChanged();\n return this;\n }",
"public void setCommand(DockerCommand<?> command) {\n builder.command(command);\n }",
"public String getCommand() {\r\n return command;\r\n }",
"public String getCommand() {\n\n return command;\n }",
"public void updateCommand(Command command) {\n this.command = command;\n }",
"public String getCommand() {\n return this.command;\n }",
"public String getCommand() {\n return command;\n }",
"public String getCommand() {\n return command;\n }",
"public String getCommand() { return command; }",
"public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}",
"public boolean setToolCommand(String command);",
"void\t\tsetCommandOptions(String command, Strings options);",
"public String getCmd() {\r\n return cmd;\r\n }",
"private void setGoCommand() {\n myCanvas.removeCommand(myPauseCommand);\n myCanvas.removeCommand(myNewCommand);\n myCanvas.addCommand(myGoCommand);\n }",
"public Builder setCommand(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCommandIsMutable();\n command_.set(index, value);\n onChanged();\n return this;\n }",
"@Override\r\n\tpublic String getCOMMAND() {\n\t\treturn COMMAND;\r\n\t}",
"void setNewCommand() {\n myCanvas.removeCommand(myPauseCommand);\n myCanvas.removeCommand(myGoCommand);\n myCanvas.addCommand(myNewCommand);\n }",
"public String getCommand(){\n return command;\n }",
"void\t\tsetCommandPropertyValue(String command, String propertyName, String propertyValue);",
"public void setCmdOptions(final String cmdOptions)\n {\n \n this.cmdOptions = cmdOptions;\n }",
"public MethodBuilder command(String command) {\n\t\tif (!command.endsWith(\";\")) {\n\t\t\tcommand += \";\";\n\t\t}\n\t\tcommands.add(command);\n\t\treturn this;\n\t}",
"void\t\tsetCommandLabel(String command, String label);",
"public void setCommandLine(final String commandLine)\n {\n this.commandLine = commandLine;\n }",
"public void setCommand1(Command command1) {\n this.command1 = command1;\n }",
"@Override\n\tprotected String getCommand() {\n\t\treturn super.getCommand() + \" --cluster-name=\" + clusterName + \" --data-dir=\" + dataDir;\n\t}",
"public String Command() {\n\treturn command;\n }",
"private void putCommand(String cmd) {\n try {\n stream.write((cmd).getBytes(StandardCharsets.UTF_8));\n } catch (IOException | InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public ExecServiceMethodDescription command(String command) {\n if (command == null){\n throw new IllegalArgumentException(\"Command must not be null\");\n }\n this.command = command;\n return this;\n }",
"void\t\tsetCommandState(String command, boolean flag);",
"public Builder setCommandBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n command_ = value;\n onChanged();\n return this;\n }",
"public void setStartCommand(String startCommand) {\n this.startCommand = startCommand;\n }",
"public void setDelegateCmd(PmCommand delegateCmd) {\n this.delegateCmd = delegateCmd;\n }",
"public int getCommand() {\n return command_;\n }",
"private void setPauseCommand() {\n myCanvas.removeCommand(myNewCommand);\n myCanvas.removeCommand(myGoCommand);\n myCanvas.addCommand(myPauseCommand);\n }",
"public int getCommand() {\n return command_;\n }",
"public void setCommandValue(String command, int argIndex, String newValue)\n\t{\n\t\tfor(int x = 0; x < this.commands.size(); x++)\n\t\t{\n\t\t\tif(this.commands.get(x).toString().startsWith(\"#descr\") && this.commands.get(x).args.size() > argIndex)\n\t\t\t{\n\t\t\t\tif(newValue.startsWith(\"\\\"\"))\n\t\t\t\t\tthis.commands.get(x).args.set(argIndex, newValue);\n\t\t\t\telse\n\t\t\t\t\tthis.commands.get(x).args.set(argIndex, \"\\\"\" + newValue + \"\\\"\");\n\t\t\t}\n\t\t}\n\t}",
"public java.lang.String getCommand() {\n java.lang.Object ref = command_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n command_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public DefaultCommand(com.netflix.hystrix.HystrixCommand.Setter setter) {\n\t\tsuper(setter);\n\t}",
"public SystemCommandRequest(String command)\r\n\t{\r\n\t\tsetCommand(command);\r\n\t}",
"public void set(int slot, Command command) {\n commands[slot] = command;\n }",
"public int getCmd() {\n return cmd_;\n }",
"public DeleteCommand(String command) {\n super(command);\n }",
"public int getCmd() {\n return cmd_;\n }",
"public void setInitCommand (String command){\r\n //process the command \r\n initCommand = command.trim();\r\n initialize(); \r\n }",
"public java.lang.String getCommand() {\n java.lang.Object ref = command_;\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 command_ = s;\n }\n return s;\n }\n }",
"public void addCommand(Command cmd) {\n cmd.setTask(this);\n commands.add(cmd);\n }",
"void\t\tsetCommandState(String command, String state);",
"public com.google.protobuf.ByteString\n getCommandBytes() {\n java.lang.Object ref = command_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n command_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setCommandPackage(CommandPackage commandPackage) {\n this.commandPackage = commandPackage;\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n \tsetDefaultCommand(new DriveWithJoystick());\n }",
"public void setProperty(String key, Object value) {\n commandData.put(key, value);\n }",
"CommandTypes(String command) {\n this.command = command;\n }",
"public Builder setCommand(network.message.PlayerResponses.Command value) {\n if (commandBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n commandBuilder_.setMessage(value);\n }\n responseCase_ = 2;\n return this;\n }",
"public AGameCommand(Command command) {\n this.game = Game.getInstance();\n this.command = command;\n }",
"public Command() {\n this.executed = false;\n }",
"public String getCommand(){\n return getCommand(null);\n }",
"@Override\n\tpublic String getCommand() {\n\t\treturn model.getCommand();\n\t}",
"public String getOriginalCommand() {\n return command;\n }",
"public Command() {\r\n\t\t// If default, use a local one.\r\n\t\tmYCommandRegistry = LocalCommandRegistry.getGlobalRegistryStatic();\r\n\t}",
"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 }",
"public int getCommand()\n\t{\n\t\treturn this.command;\n\t}",
"public Command() {\n this.arguments = new String[0];\n }",
"final public String getActionCommand() {\n return command;\n }",
"public void addCommand(final String key, final String value) {\n this.commands.put(key, value);\n }",
"private static String getSetCommand()\n {\n String setCmd;\n String osName = System.getProperty(\"os.name\");\n\n if (osName.indexOf(\"indows\") != -1)\n {\n if (osName.indexOf(\"indows 9\") != -1)\n {\n setCmd = \"command.com /c set\";\n }\n else\n {\n setCmd = \"cmd.exe /c set\";\n }\n }\n else\n {\n setCmd = \"/usr/bin/env\";\n //should double check for all unix platforms\n }\n return setCmd;\n }",
"public void setCommand(int slot, Command onCommand, Command offCommand) {\n onCommands[slot] = onCommand;\n offCommands[slot] = offCommand;\n }",
"java.lang.String getCommand();",
"public void initDefaultCommand() {\n // Set the default command, if any, for a subsystem here. Example:\n // setDefaultCommand(new MySpecialCommand());\n }",
"public void initDefaultCommand() {\n super.setDefaultCommand(new DriveJoystick());\n }",
"public void initDefaultCommand() {\n\t\t//System.out.println(\"initDefaultCommand()\");\n\t\tJoystickControlCommand JCC = new JoystickControlCommand();\n\t\tthis.setDefaultCommand(JCC);\n\t}",
"abstract public void setParent(Command cmd);",
"Cmd(final String abbr) {\n this.abbr = abbr;\n }",
"public Builder setActionCommand(int value) {\n bitField0_ |= 0x00000010;\n actionCommand_ = value;\n onChanged();\n return this;\n }",
"public com.google.protobuf.ByteString\n getCommandBytes() {\n java.lang.Object ref = command_;\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 command_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new VelocityDriveCommand());\n }",
"public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand\r\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n setDefaultCommand(new GearPickupClampIn());\n }",
"public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand(new MySpecialCommand());\r\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }"
] |
[
"0.7489166",
"0.7462535",
"0.7323114",
"0.72960544",
"0.7289756",
"0.7272611",
"0.7256112",
"0.7220978",
"0.7163377",
"0.7159801",
"0.70155954",
"0.69741184",
"0.68987393",
"0.68886244",
"0.66701883",
"0.6582092",
"0.63491374",
"0.6333822",
"0.6304072",
"0.62667483",
"0.61614424",
"0.6160491",
"0.61160445",
"0.6107243",
"0.61066264",
"0.6081157",
"0.6079621",
"0.6079621",
"0.60198087",
"0.60196567",
"0.60133266",
"0.5912808",
"0.5867285",
"0.58543706",
"0.58050925",
"0.58040094",
"0.57922065",
"0.5791793",
"0.5768293",
"0.5751613",
"0.5751219",
"0.57412153",
"0.571511",
"0.5705405",
"0.5662018",
"0.5622161",
"0.56150335",
"0.5612802",
"0.5593877",
"0.5586388",
"0.55778116",
"0.55776376",
"0.555852",
"0.5550196",
"0.55499357",
"0.5540096",
"0.55376935",
"0.5514986",
"0.54926246",
"0.54916495",
"0.548153",
"0.54780465",
"0.54747385",
"0.5420832",
"0.540886",
"0.5394352",
"0.5377417",
"0.5373692",
"0.53692365",
"0.53661853",
"0.53627944",
"0.5357526",
"0.53558576",
"0.5348746",
"0.53401744",
"0.5336664",
"0.53289497",
"0.5328579",
"0.5314925",
"0.5313134",
"0.53072137",
"0.5301423",
"0.5300108",
"0.5297172",
"0.52965",
"0.52917606",
"0.5290941",
"0.5283376",
"0.5278686",
"0.52651113",
"0.5263872",
"0.5243189",
"0.5232757",
"0.52081853",
"0.5207127",
"0.52050483",
"0.5202736",
"0.5202246",
"0.51954335",
"0.51954335"
] |
0.70667464
|
10
|
Sets the company ID of this job.
|
@Override
public void setCompanyId(long companyId) {
model.setCompanyId(companyId);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void setCompanyId(long companyId);",
"@Override\n\tpublic void setCompanyId(long companyId);",
"@Override\n\tpublic void setCompanyId(long companyId);",
"@Override\n\tpublic void setCompanyId(long companyId);",
"@Override\n public void setCompanyId(long companyId) {\n _partido.setCompanyId(companyId);\n }",
"public void setCompanyId(long companyId) {\n this.companyId = companyId;\n }",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_changesetEntry.setCompanyId(companyId);\n\t}",
"public void setCompanyId(Integer value) {\n this.companyId = value;\n }",
"public void setCompanyId(int companyId) {\n this.companyId = companyId;\n }",
"public void setCompanyId(Long companyId) {\n this.companyId = companyId;\n }",
"public void setCompanyId(String companyId) {\r\n this.companyId = companyId;\r\n }",
"public void setCompanyId(String companyId) {\r\n this.companyId = companyId;\r\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_employee.setCompanyId(companyId);\n\t}",
"public void setCompanyId(Integer companyId) {\n this.companyId = companyId;\n }",
"public void setCompanyId(Integer companyId) {\n this.companyId = companyId;\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_scienceApp.setCompanyId(companyId);\n\t}",
"public void setCompanyId(Long companyId) {\r\n\t\tthis.companyId = companyId;\r\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_second.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_esfTournament.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_paper.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_userTracker.setCompanyId(companyId);\n\t}",
"public void setCompanyId(String companyId) {\n this.companyId = companyId == null ? null : companyId.trim();\n }",
"public void setCompanyId(String companyId) {\r\n\t\tthis.companyId = companyId;\r\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_dictData.setCompanyId(companyId);\n\t}",
"public Long getCompanyId() {\r\n\t\treturn companyId;\r\n\t}",
"public String getCompanyId() {\r\n\t\treturn companyId;\r\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_expandoColumn.setCompanyId(companyId);\n\t}",
"public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }",
"public String getCompanyId() {\r\n return companyId;\r\n }",
"public String getCompanyId() {\r\n return companyId;\r\n }",
"public void setCompany(Company aCompany) {\n company = aCompany;\n }",
"public String getCompanyId() {\n return companyId;\n }",
"public void setCompany(java.lang.Integer newCompany) {\n\tcompany = newCompany;\n}",
"public long getCompanyId() {\n return companyId;\n }",
"public void setCompany(String company) {\n this.company = company;\n }",
"public void setCompany(String company) {\r\n\t\tthis.company = company;\r\n\t}",
"public Long getCompanyId() {\n return companyId;\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_permissionType.setCompanyId(companyId);\n\t}",
"public void setCompany(String company) {\n\t\tthis.company = company;\n\t}",
"public void setCompany(String company) {\n\t\tthis.company = StringUtils.trimString( company );\n\t}",
"public Integer getCompanyId() {\n return companyId;\n }",
"public Integer getCompanyId() {\n return companyId;\n }",
"@JsonSetter(\"company_id\")\n public void setCompanyId (String value) { \n this.companyId = value;\n }",
"public Integer getCompanyId() {\n return this.companyId;\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _changesetEntry.getCompanyId();\n\t}",
"public String getCompanyId()\n {\n return companyId;\n }",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}",
"public int getCompanyId() {\n return companyId;\n }",
"public void setCompanyheaderId (java.lang.Integer companyheaderId) {\n\t\tthis.companyheaderId = companyheaderId;\n\t\tthis.hashCode = Integer.MIN_VALUE;\n\t}",
"public void setCompany(SSNewCompany iCompany) {\n this.iCompany = iCompany;\n\n iTaxRate1.setValue( iCompany.getTaxRate1() );\n iTaxRate2.setValue( iCompany.getTaxRate2() );\n iTaxRate3.setValue( iCompany.getTaxRate3() );\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _employee.getCompanyId();\n\t}",
"public void setCompanycode(java.lang.Integer newCompany) {\n\tcompanycode = newCompany;\n}",
"public void setCompany(Company company, Context context) {\n // TODO: Perform networking operations here to upload company to database\n this.company = company;\n invoiceController = new InvoiceController(context, company);\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _scienceApp.getCompanyId();\n\t}",
"public void setCompnayNum(String comnayNum) {\n this.companyNum = FileUtils.hexStringFromatByF(10, \"\");\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _dictData.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _esfTournament.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _paper.getCompanyId();\n\t}",
"public void setCompany(final String value)\n\t{\n\t\tsetCompany( getSession().getSessionContext(), value );\n\t}",
"public void setContactCompany(String contactCompany) {\n this.contactCompany = contactCompany;\n }",
"@Override\r\n\tpublic void updateCompany(Company company) throws Exception {\r\n\r\n\t\tconnectionPool = ConnectionPool.getInstance();\r\n\t\tConnection connection = connectionPool.getConnection();\r\n\r\n\t\tString sql = String.format(\"update Company set COMP_NAME= '%s',PASSWORD = '%s', EMAIL= '%s' where ID = %d\",\r\n\t\t\t\tcompany.getCompanyName(), company.getCompanyPassword(), company.getCompanyEmail(),\r\n\t\t\t\tcompany.getCompanyId());\r\n\r\n\t\ttry (PreparedStatement preparedStatement = connection.prepareStatement(sql)) {\r\n\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\r\n\t\t\tSystem.out.println(\"update Company succeeded. id which updated: \" + company.getCompanyId());\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new Exception(\"update Compnay failed. companyId: \"+ company.getCompanyId());\r\n\t\t} finally {\r\n\t\t\tconnection.close();\r\n\t\t\tconnectionPool.returnConnection(connection);\r\n\t\t}\r\n\r\n\t}",
"@Override\r\n\tpublic void setCompanyData(RentCompanyData companyData) {\n\r\n\t}",
"public Builder setCompany(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n company_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _userTracker.getCompanyId();\n\t}",
"public void setCompanyName(String companyName) {\r\n this.companyName = companyName;\r\n }",
"public void setCompanyName(String companyName) {\r\n this.companyName = companyName;\r\n }",
"public void setDocumentCompany(java.lang.String documentCompany) {\n this.documentCompany = documentCompany;\n }",
"public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);",
"public void setCompanyName(String companyName) {\n this.companyName = companyName;\n }",
"@Override\n public long getCompanyId() {\n return _partido.getCompanyId();\n }",
"public void setCompany(com.hps.july.persistence.CompanyAccessBean newCompanies) throws Exception {\n\tif (newCompanies == null) {\n\t companycode = null;\n\t companyname = \"\";\n\t}\n\telse {\n\t\tcompanycode = new Integer(newCompanies.getCompany());\n\t\tcompanyname = newCompanies.getName();\n\t}\n}",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"Company getOrCreateCompanyId(String companyID) throws Exception;",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _second.getCompanyId();\n\t}",
"public void setCompany(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, COMPANY,value);\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _expandoColumn.getCompanyId();\n\t}",
"public void setJdCompany(String jdCompany) {\r\n\t\tthis.jdCompany = jdCompany;\r\n\t}",
"void setAuditingCompany(ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData auditingCompany);",
"public void setCompanyCode(String companyCode) {\r\n this.companyCode = companyCode == null ? null : companyCode.trim();\r\n }",
"public void setCompanyCode(String companyCode) {\r\n this.companyCode = companyCode == null ? null : companyCode.trim();\r\n }",
"public void setCompanyCode(String companyCode) {\n this.companyCode = companyCode == null ? null : companyCode.trim();\n }",
"public void setCarCompany(String carCompany) {\n\t\tthis.carCompany = carCompany;\n\t}",
"public void setCompanyCd(String companyCd) {\r\n this.companyCd = companyCd;\r\n }"
] |
[
"0.7819046",
"0.7819046",
"0.7819046",
"0.7819046",
"0.7810482",
"0.78036386",
"0.7712576",
"0.7712576",
"0.7712576",
"0.7712576",
"0.7712576",
"0.76817864",
"0.7678782",
"0.7611484",
"0.7581229",
"0.7567298",
"0.7567298",
"0.7555966",
"0.7531399",
"0.7531399",
"0.74344313",
"0.73911077",
"0.73910695",
"0.7368349",
"0.73319334",
"0.7322169",
"0.7262966",
"0.7234544",
"0.7161092",
"0.70668584",
"0.7050659",
"0.69683605",
"0.6950228",
"0.68675",
"0.68675",
"0.6789149",
"0.6780039",
"0.6771226",
"0.6760909",
"0.67571867",
"0.67471445",
"0.6733531",
"0.67329234",
"0.66885054",
"0.6600424",
"0.65638644",
"0.65638644",
"0.652677",
"0.6494504",
"0.6393391",
"0.63686424",
"0.6335607",
"0.6335607",
"0.6335607",
"0.6335607",
"0.6309475",
"0.6309475",
"0.6309475",
"0.6267408",
"0.6251302",
"0.6212994",
"0.62121356",
"0.61966354",
"0.61568886",
"0.6139746",
"0.61309946",
"0.61177397",
"0.6095868",
"0.60738355",
"0.6070963",
"0.6063348",
"0.60632944",
"0.6044263",
"0.6031807",
"0.6000887",
"0.59934163",
"0.59934163",
"0.5959016",
"0.5943357",
"0.59310025",
"0.58498126",
"0.582975",
"0.5818471",
"0.5818471",
"0.5818471",
"0.5818471",
"0.5818471",
"0.5804593",
"0.5800849",
"0.5776069",
"0.57259774",
"0.57207066",
"0.5718349",
"0.56849825",
"0.56849825",
"0.5681531",
"0.5669719",
"0.5654614"
] |
0.7485027
|
22
|
Sets the complete date of this job.
|
@Override
public void setCompleteDate(Date completeDate) {
model.setCompleteDate(completeDate);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setCompletedDate(Date value) {\n this.completedDate = value;\n }",
"public void setCompleteTime(Date completeTime) {\n this.completeTime = completeTime;\n }",
"public void CompleteTask() {\n\t\tCompletionDate = new Date();\n\t}",
"public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }",
"public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }",
"public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }",
"public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }",
"@Override\n\tpublic Date getCompleteDate() {\n\t\treturn model.getCompleteDate();\n\t}",
"public void setFinishDate(Date finishDate)\r\n {\r\n m_finishDate = finishDate;\r\n }",
"public void setDate(long date) {\r\n\t\tthis.date = new Date(date);\r\n\t}",
"public void updateBDate() {\n bDate = new Date();\n }",
"public void setDate() {\n this.date = new Date();\n }",
"public void setDepartureDate(Date departureDate);",
"public void setDate(long value) {\n this.date = value;\n }",
"public void setDate(long date) {\n\t\tthis.date = date;\n\t}",
"@Override\n\tpublic void setFinishDate(Calendar finishDate) {\n\n\t}",
"public static void setDate() {\r\n\t\tDate.set(DateFormat.getDateTimeInstance(DateFormat.SHORT,\r\n\t\t\t\tDateFormat.LONG, Locale.getDefault()).format(\r\n\t\t\t\tnew java.util.Date()));\r\n\t}",
"public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"@Override\n\tprotected void setDate() {\n\n\t}",
"public void setDate(final Date date) {\n this.date = date;\n }",
"public Date getCompletionDate() {\r\n\t\treturn completionDate;\r\n\t}",
"public void SetDate(Date date);",
"public void setDate(Date date) {\n mDate = date;\n }",
"public void setDate(Date date) {\n\t\tthis._date = date;\n\t}",
"public void setDate(Date date) {\n setDate(date, null);\n }",
"private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }",
"public void setDateFilled() {\n\t\tthis.dateFilled = new Date();\n\t\tSystem.out.println(\"DF \" + dateFilled);\n\t}",
"public void setDate(Date date) {\r\n this.date = date;\r\n }",
"public Builder setDate(long value) {\n bitField0_ |= 0x00000002;\n date_ = value;\n onChanged();\n return this;\n }",
"public Date getCompletedDate() {\n return this.completedDate;\n }",
"public void setDate(Date date) {\n\t\t\n\t\tdate_ = date;\n\t}",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}",
"public void setDueDate(Date d){dueDate = d;}",
"public void setCurrentDate(String d) {\n currentDate = d;\n }",
"void setDate(Date data);",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setaBrithdate(Date aBrithdate) {\n this.aBrithdate = aBrithdate;\n }",
"public void setDate(Date newDate) {\n this.currentDate = newDate;\n }",
"public void setREQ_END_DATE(java.sql.Date value)\n {\n if ((__REQ_END_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_END_DATE)))\n {\n _isDirty = true;\n }\n __REQ_END_DATE = value;\n }",
"public void setRequestedDate(Date date) {\n requestedDate.setText(formatDate(date));\n }",
"public void setArrivalDate(Date arrivalDate);",
"@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}",
"public void xsetJobStartDate(org.apache.xmlbeans.XmlDate jobStartDate)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDate target = null;\r\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(JOBSTARTDATE$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(JOBSTARTDATE$0);\r\n }\r\n target.set(jobStartDate);\r\n }\r\n }",
"public void setToDate(Date toDate)\r\n/* 33: */ {\r\n/* 34:39 */ this.toDate = toDate;\r\n/* 35: */ }",
"public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setDate(long value) {\n validate(fields()[5], value);\n this.date = value;\n fieldSetFlags()[5] = true;\n return this;\n }",
"public void setComplete(Boolean complete){\n this.complete = complete;\n }",
"public void setComplete(boolean complete) {\n }",
"public synchronized void setComplete() {\n status = Status.COMPLETE;\n }",
"public void updateDate()\n\t{\n\t\t// Translate year, month and day into a Date object.\n\t\tmDate = new GregorianCalendar(mYear, mMonth, mDay, mHour, mMin).getTime();\n\t\t\n\t\t// Update arguments to preserve selected value on rotation.\n\t\tgetArguments().putSerializable(CrimeFragment.EXTRA_DATE, mDate);\n\t}",
"public void setDeadlineDate(Date deadlineDate) {\r\n this.deadlineDate = deadlineDate;\r\n }",
"public void setBudgetDate(Date value) {\n setAttributeInternal(BUDGETDATE, value);\n }",
"@Override\r\n\tpublic void completeMaintenance(DateTime completionDate) throws MaintenanceException {\r\n\t\tif (status == Status.AVAILABLE || status == Status.RENTED) {\r\n\t\t\tthrow new MaintenanceException(\r\n\t\t\t\t\t\"This car is being available or rented, you cannot complete maintenance right now\");\r\n\t\t}\r\n\t\tcompletionDate = new DateTime();\r\n\t\tstatus = Status.AVAILABLE;\r\n\t\tdatabaseHandle.completeMaintenance(this, DateTime.formatDateType(completionDate));\r\n\t\t;\r\n\t}",
"public Builder setSettlementDate(long value) {\n bitField0_ |= 0x00040000;\n settlementDate_ = value;\n onChanged();\n return this;\n }",
"public void setJobStartDate(java.util.Calendar jobStartDate)\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(JOBSTARTDATE$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(JOBSTARTDATE$0);\r\n }\r\n target.setCalendarValue(jobStartDate);\r\n }\r\n }",
"@Override\n\tpublic void setRequestedDate(java.util.Date requestedDate) {\n\t\t_dmGtStatus.setRequestedDate(requestedDate);\n\t}",
"public void setDATE_SETTLED(Date DATE_SETTLED) {\r\n this.DATE_SETTLED = DATE_SETTLED;\r\n }",
"public void setDate(String d) {\n\t\tdate = d;\n\t\tif (super.getPubDate() != null)\n\t\t\tsuper.setPubDate(d);\n\t\tdate = d;\n\t}",
"public Builder setBeginDate(long value) {\n bitField0_ |= 0x00000040;\n beginDate_ = value;\n\n return this;\n }",
"public void setActualFinish(Date actualFinishDate)\r\n {\r\n m_actualFinish = actualFinishDate;\r\n }",
"public void setDate(long date)\r\n/* 199: */ {\r\n/* 200:299 */ setDate(\"Date\", date);\r\n/* 201: */ }",
"@Override\n\tpublic void setStatusDate(Date statusDate) {\n\t\tmodel.setStatusDate(statusDate);\n\t}",
"public void setFreezeTimestamp(java.util.Date value);",
"public void setBaselineFinish(Date baselineFinishDate)\r\n {\r\n m_baselineFinish = baselineFinishDate;\r\n }",
"public void setEndDate(java.util.Date value);",
"public void setFinalActiveDate(Date newValue) {\n Date oldValue = _finalActiveDate;\n if (oldValue == null || !oldValue.equals(newValue)) {\n _finalActiveDate = newValue;\n firePropertyChange(FINAL_ACTIVE_DATE_PROP, oldValue, newValue);\n }\n }",
"public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n Logger.d(TAG, \"The date is null\");\n }\n }",
"public void setRequestDate(Date requestDate);",
"public void setDate(Calendar date) {\r\n\t\tthis.date = date;\r\n\t}",
"void setDate(java.lang.String date);",
"public void setDate(Calendar currentDate) {\r\n this.currentDate = currentDate;\r\n }",
"void setEndDate(Date endDate);",
"public void setComplete(boolean complete) {\n\t\t\n\t}",
"public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);",
"public Builder setEndDate(long value) {\n bitField0_ |= 0x00000080;\n endDate_ = value;\n\n return this;\n }",
"public void setCurrentDate(Date currentDate)\r\n {\r\n m_currentDate = currentDate;\r\n }",
"@Override\n\tpublic void setQueuedDate(Date queuedDate) {\n\t\tmodel.setQueuedDate(queuedDate);\n\t}",
"@Override\n\tpublic void setStatusDate(Date statusDate);",
"@Override\n\tpublic void setDateOfBirth(java.util.Date dateOfBirth) {\n\t\t_candidate.setDateOfBirth(dateOfBirth);\n\t}",
"public void setCurrentDate(String currentDate) {\n this.currentDate = currentDate;\n }",
"public CompletedTask(Task task, String date)\r\n\t{\r\n\t\tsuper(task.ID, task.description, task.priority, task.order, STATUS_COMPLETE);\r\n\t\tthis.date = date;\r\n\t}",
"public void setBEGIN_DATE(Date BEGIN_DATE) {\n this.BEGIN_DATE = BEGIN_DATE;\n }",
"public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n this.mDate = null;\n }\n }",
"public void setStartDate(java.util.Date value);",
"public void setDate(Calendar date) {\n\tthis.date = date;\n }",
"public void setDate(Calendar date)\n {\n this.date = date;\n }",
"public void setToDate(Date value) {\n setAttributeInternal(TODATE, value);\n }"
] |
[
"0.7210147",
"0.6834678",
"0.6802496",
"0.64381236",
"0.64381236",
"0.64381236",
"0.64381236",
"0.6387579",
"0.62499124",
"0.6221622",
"0.6219175",
"0.6219073",
"0.6151171",
"0.60793793",
"0.60659486",
"0.60532296",
"0.5986198",
"0.59837335",
"0.595063",
"0.595063",
"0.595063",
"0.5950595",
"0.5949303",
"0.5938501",
"0.59369415",
"0.5935945",
"0.5933629",
"0.59294045",
"0.5925689",
"0.5921635",
"0.5902406",
"0.5884071",
"0.5881384",
"0.5873875",
"0.58521324",
"0.58521324",
"0.58521324",
"0.58521324",
"0.58521324",
"0.58521324",
"0.58521324",
"0.58521324",
"0.58521324",
"0.5850169",
"0.5839017",
"0.58343136",
"0.5831313",
"0.58280283",
"0.58280283",
"0.58280283",
"0.58187896",
"0.5815426",
"0.581425",
"0.5808332",
"0.5800541",
"0.57947135",
"0.57808095",
"0.577537",
"0.57712823",
"0.5763197",
"0.5756453",
"0.57500666",
"0.57418287",
"0.57346886",
"0.572679",
"0.57211685",
"0.5719708",
"0.56975704",
"0.56955624",
"0.56887215",
"0.56832075",
"0.56738484",
"0.5672857",
"0.5672536",
"0.56711245",
"0.5668886",
"0.5655769",
"0.56550866",
"0.56510466",
"0.5648313",
"0.5631999",
"0.56294364",
"0.56271774",
"0.5611748",
"0.5600475",
"0.5598341",
"0.5585332",
"0.5582605",
"0.55716026",
"0.5571071",
"0.55650645",
"0.55629414",
"0.5561931",
"0.5559962",
"0.5557331",
"0.5553742",
"0.5550411",
"0.5543519",
"0.5538332",
"0.5535525"
] |
0.78553843
|
0
|
Sets the create date of this job.
|
@Override
public void setCreateDate(Date createDate) {
model.setCreateDate(createDate);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setCreateDate(Date date);",
"@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_changesetEntry.setCreateDate(createDate);\n\t}",
"@Override\n\tpublic void setCreateDate(Date createDate);",
"@Override\n\tpublic void setCreateDate(Date createDate);",
"void setCreateDate(final Date creationDate);",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(String value) {\n this.createDate = value;\n }",
"@Override\n public void setCreateDate(java.util.Date createDate) {\n _partido.setCreateDate(createDate);\n }",
"public void setCreateDate(Date createDate);",
"public void setCreateDate(Date createDate);",
"public void setCreateDate(Date createDate);",
"public void setCreateDate(Date createDate) {\r\n this.createDate = createDate;\r\n }",
"public void setCreateDate(Date createDate) {\r\n this.createDate = createDate;\r\n }",
"@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_esfTournament.setCreateDate(createDate);\n\t}",
"public void setCreateDate(Date createDate) { this.createDate = createDate; }",
"void setCreationDate(Date val)\n throws RemoteException;",
"public void setDateCreate(Date dateCreate) {\n this.dateCreate = dateCreate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }",
"@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_employee.setCreateDate(createDate);\n\t}",
"public void setCreateDate( Date createDate ) {\n this.createDate = createDate;\n }",
"public void setCreateDate( Date createDate ) {\n this.createDate = createDate;\n }",
"public Builder setCreateDate(String value) {\n validate(fields()[2], value);\n this.createDate = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_paper.setCreateDate(createDate);\n\t}",
"public void setCreateDate(final Date createDate) {\r\n\t\tthis.createDate = createDate;\r\n\t}",
"public void setCreateDate(Date createDate) {\r\n\t\tthis.createDate = createDate;\r\n\t}",
"public void setCreateDt(Date createDt) {\n this.createDt = createDt;\n }",
"public void setCreateDate(Timestamp createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(Date createDate) {\n\t\tthis.createDate = createDate;\n\t}",
"@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_candidate.setCreateDate(createDate);\n\t}",
"void setCreatedDate(Date createdDate);",
"public void setCreateDate(java.util.Date createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(long newVal) {\n setCreateDate(new java.util.Date(newVal));\n }",
"void setDateCreated(final Date dateCreated);",
"public void setCreate_date(Date create_date) {\n this.create_date = create_date;\n }",
"@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_scienceApp.setCreateDate(createDate);\n\t}",
"public void setCreateDt(Date createDt) {\n\t\tthis.createDt = createDt;\n\t}",
"public void setCreateDate(String createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(String createDate) {\n this.createDate = createDate;\n }",
"public void setCreateDate(java.util.Calendar createDate) {\n this.createDate = createDate;\n }",
"public void setCreationDate(Date creationDate);",
"public void setCreateDate(String createDate) {\r\n\t\tthis.createDate = createDate;\r\n\t}",
"public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }",
"public void setCreationDate(Date value)\n {\n setAttributeInternal(CREATIONDATE, value);\n }",
"@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_second.setCreateDate(createDate);\n\t}",
"public void setCreationDate(Date creationDate) {\n }",
"public void setdCreateDate(Date dCreateDate) {\r\n this.dCreateDate = dCreateDate;\r\n }",
"public void setdCreateDate(Date dCreateDate) {\r\n this.dCreateDate = dCreateDate;\r\n }",
"public void setCreateAt(Date createAt) {\n this.createAt = createAt;\n }",
"public void setCreateAt(Date createAt) {\n this.createAt = createAt;\n }",
"public void setCREATED_DATE(Date CREATED_DATE) {\r\n this.CREATED_DATE = CREATED_DATE;\r\n }",
"public void setCreatedDate(Date createdDate);",
"public void setDateCreated(Date dateCreated);",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }",
"public void setCreatedDate(Date createDate) {\n\t\tthis.createdDate = createDate;\n\t}",
"public Builder setCreateDate(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createDate_ = value;\n onChanged();\n return this;\n }",
"public void setCreationDate(Date creationDate) {\r\n this.creationDate = creationDate;\r\n }",
"public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }",
"public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }",
"public void setCreateDate(java.util.Date newVal) {\n if ((newVal != null && this.createDate != null && (newVal.compareTo(this.createDate) == 0)) || \n (newVal == null && this.createDate == null && createDate_is_initialized)) {\n return; \n } \n try {\n this.createDate = (java.util.Date)newVal.clone();\n } catch (Exception e) {\n // do nothing\n }\n\n createDate_is_modified = true; \n createDate_is_initialized = true; \n }",
"public void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }",
"public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }",
"public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }",
"public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }",
"public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }",
"public void setCreatedDate(Date value) {\n this.createdDate = value;\n }",
"public void setCreatedDate(Date value) {\n this.createdDate = value;\n }",
"public void setCreationDate(Date creationDate) {\n \n this.creationDate = creationDate;\n\n }",
"public Builder setCreationDate(long value) {\n\n creationDate_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"public void setCreationDate(Date creationDate)\r\n {\r\n m_creationDate = creationDate;\r\n }",
"public void setCreatedDate(Date value) {\n setAttributeInternal(CREATEDDATE, value);\n }"
] |
[
"0.76730865",
"0.7442652",
"0.7417502",
"0.7417502",
"0.74064296",
"0.73716193",
"0.7307997",
"0.7287018",
"0.7283154",
"0.7283154",
"0.7283154",
"0.7256375",
"0.7256375",
"0.72334063",
"0.7231326",
"0.7228305",
"0.72221524",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.7216752",
"0.71898395",
"0.7178228",
"0.7178228",
"0.7162376",
"0.71468747",
"0.7137475",
"0.7129841",
"0.70794255",
"0.7061994",
"0.70433146",
"0.69991475",
"0.697928",
"0.69735366",
"0.6963462",
"0.6946767",
"0.69358087",
"0.69208854",
"0.6906821",
"0.6894112",
"0.6894112",
"0.6883963",
"0.6856106",
"0.6828241",
"0.68267214",
"0.681792",
"0.6794372",
"0.6746928",
"0.6736538",
"0.6736538",
"0.67182505",
"0.67182505",
"0.67073494",
"0.6701456",
"0.67013645",
"0.67003983",
"0.67003983",
"0.67003983",
"0.67003983",
"0.67003983",
"0.67003983",
"0.67003983",
"0.67003983",
"0.6699182",
"0.66952163",
"0.6645044",
"0.6644659",
"0.6644659",
"0.66258687",
"0.6624207",
"0.66240245",
"0.66240245",
"0.66240245",
"0.66240245",
"0.6616564",
"0.6616564",
"0.6611605",
"0.6591988",
"0.658824",
"0.6584256"
] |
0.7163654
|
44
|
Sets the eligible time of this job.
|
@Override
public void setEligibleTime(String eligibleTime) {
model.setEligibleTime(eligibleTime);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setSettleTime(Date settleTime) {\n this.settleTime = settleTime;\n }",
"public void xsetRequestedTime(org.apache.xmlbeans.XmlDateTime requestedTime)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDateTime target = null;\n target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(REQUESTEDTIME$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlDateTime)get_store().add_element_user(REQUESTEDTIME$2);\n }\n target.set(requestedTime);\n }\n }",
"public void setTime(){\n \tDatabaseManager.getDBM().setLockedTime(cal); \n }",
"public void setREQ_END_TIME(java.sql.Time value)\n {\n if ((__REQ_END_TIME == null) != (value == null) || (value != null && ! value.equals(__REQ_END_TIME)))\n {\n _isDirty = true;\n }\n __REQ_END_TIME = value;\n }",
"public void setRequestedTime(java.util.Calendar requestedTime)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REQUESTEDTIME$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REQUESTEDTIME$2);\n }\n target.setCalendarValue(requestedTime);\n }\n }",
"public void SetEatenTime(double time) {\n\t\tEatenTime = time ;\n\t}",
"private void setTimeLimit() {\n\t\t// Set the minimum time for \"Departing Time\" spinner\n\t\t// based on current selected combo box item\n\t\tview.setModifyTimeLimit(model.getDepartTime(view\n\t\t\t\t.getModifyStationIndex()));\n\t}",
"protected void setTimeInvincible(double time){\n\t\tassert(time >= 0);\n\t\tthis.time_invincible = time;\n\t}",
"@Override\n public void setAutoTimeRequired(ComponentName who, boolean required) {\n if (!mHasFeature) {\n return;\n }\n Objects.requireNonNull(who, \"ComponentName is null\");\n final CallerIdentity caller = getCallerIdentity(who);\n\n boolean requireAutoTimeChanged = false;\n synchronized (getLockObject()) {\n Preconditions.checkCallAuthorization(!isManagedProfile(caller.getUserId()),\n \"Managed profile cannot set auto time required\");\n ActiveAdmin admin = getProfileOwnerOrDeviceOwnerLocked(caller);\n if (admin.requireAutoTime != required) {\n admin.requireAutoTime = required;\n saveSettingsLocked(caller.getUserId());\n requireAutoTimeChanged = true;\n }\n }\n // requireAutoTime is now backed by DISALLOW_CONFIG_DATE_TIME restriction, so propagate\n // updated restrictions to the framework.\n if (requireAutoTimeChanged) {\n pushUserRestrictions(caller.getUserId());\n }\n // Turn AUTO_TIME on in settings if it is required\n if (required) {\n mInjector.binderWithCleanCallingIdentity(\n () -> mInjector.settingsGlobalPutInt(Settings.Global.AUTO_TIME,\n 1 /* AUTO_TIME on */));\n }\n DevicePolicyEventLogger\n .createEvent(DevicePolicyEnums.SET_AUTO_TIME_REQUIRED)\n .setAdmin(who)\n .setBoolean(required)\n .write();\n }",
"public Cost(boolean time) {\r\n defaultCost = 5;\r\n haveSchedule = time;\r\n }",
"public void setProvisionTime(java.util.Calendar param){\n localProvisionTimeTracker = true;\n \n this.localProvisionTime=param;\n \n\n }",
"public void setCompleteTime(Date completeTime) {\n this.completeTime = completeTime;\n }",
"public void setActTime(java.lang.String param) {\r\n localActTimeTracker = param != null;\r\n\r\n this.localActTime = param;\r\n }",
"public void setAtTime(Date atTime) {\r\n this.atTime = atTime;\r\n }",
"public void setExpiryTime(java.util.Calendar param){\n localExpiryTimeTracker = true;\n \n this.localExpiryTime=param;\n \n\n }",
"public void setActivationTime(java.util.Calendar param){\n localActivationTimeTracker = true;\n \n this.localActivationTime=param;\n \n\n }",
"void setInhabitedTime(long ticks);",
"public void setExpirationTime(Date expirationTime) {\n this.expirationTime = expirationTime;\n }",
"public void setCompletionTime(double aTime)\n\t{\n\t\tif(aTime<0) //invalid\n\t\t\tthis.completionTime = 0.0;\n\t\telse \n\t\t\tthis.completionTime=aTime;\n\t}",
"public abstract void setEndTime(Date endTime);",
"public void setREQ_START_TIME(java.sql.Time value)\n {\n if ((__REQ_START_TIME == null) != (value == null) || (value != null && ! value.equals(__REQ_START_TIME)))\n {\n _isDirty = true;\n }\n __REQ_START_TIME = value;\n }",
"public void setTime(){\n Date currentDate = new Date();\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putLong(\"WAIT_TIME\", currentDate.getTime() + 1800000); //30 min\n editor.commit();\n }",
"public void setEvaluationTime(long evaluationTime) {\r\n\t\tif (evaluationTime!=this.evaluationTimePrevious) {\r\n\t\t\tthis.newEvaluationTime = true;\r\n\t\t} else {\r\n\t\t\tthis.newEvaluationTime = false;\r\n\t\t}\r\n\t\tthis.evaluationTime = evaluationTime;\r\n\t\tthis.evaluationTimePrevious = evaluationTime;\r\n\t}",
"public void setTime(Date time) {\r\n\t\tthis.time = time;\r\n\t}",
"public void setModifiyTime(Date modifiyTime) {\n this.modifiyTime = modifiyTime;\n }",
"void setTime(final int time);",
"public void setARRIVAL_AT_LOC_TIME(java.sql.Time value)\n {\n if ((__ARRIVAL_AT_LOC_TIME == null) != (value == null) || (value != null && ! value.equals(__ARRIVAL_AT_LOC_TIME)))\n {\n _isDirty = true;\n }\n __ARRIVAL_AT_LOC_TIME = value;\n }",
"public void setEffectiveTime(Date effectiveTime)\n\t{\n\t\tthis.effectiveTime = effectiveTime;\n\t}",
"public void setTime() {\r\n\t\tArrayList<String> slots = new ArrayList<String>();\r\n\t\tString inSched = getWorkHours();\r\n\t\tswitch(inSched) {\r\n\t\tcase \"6AM-3PM\":\r\n\t\t\tArrayList<String> sched1 = new ArrayList<String>(Arrays.asList(\"06AM\",\"07AM\",\"08AM\",\"09AM\",\"10AM\",\"12PM\",\"1PM\",\"2PM\"));\r\n\t\t\tslots = sched1;\r\n\t\t\tbreak;\r\n\t\tcase \"7AM-4PM\":\r\n\t\t\tArrayList<String> sched2 = new ArrayList<String>(Arrays.asList(\"07AM\",\"08AM\",\"09AM\",\"10AM\",\"11AM\",\"1PM\",\"2PM\",\"3PM\"));\r\n\t\t\tslots = sched2;\r\n\t\t\tbreak;\r\n\t\tcase \"8AM-5PM\":\r\n\t\t\tArrayList<String> sched3 = new ArrayList<String>(Arrays.asList(\"08AM\",\"09AM\",\"10AM\",\"11AM\",\"12PM\",\"2PM\",\"3PM\",\"4PM\"));\r\n\t\t\tslots = sched3;\r\n\t\t\tbreak;\r\n\t\tcase \"9AM-6PM\":\r\n\t\t\tArrayList<String> sched4 = new ArrayList<String>(Arrays.asList(\"09AM\",\"10AM\",\"11AM\",\"12PM\",\"1PM\",\"3PM\",\"4PM\",\"5PM\"));\r\n\t\t\tslots = sched4;\r\n\t\t\tbreak;\r\n\t\tcase \"10AM-7PM\":\r\n\t\t\tArrayList<String> sched5 = new ArrayList<String>(Arrays.asList(\"10AM\",\"11AM\",\"12PM\",\"1PM\",\"2PM\",\"4PM\",\"5PM\",\"6PM\"));\r\n\t\t\tslots = sched5;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tslots.add(\"No appointments available for this date.\");\r\n\t\t}\r\n\t\tthis.timeAvailable = slots;\r\n\t}",
"public void setaTime(Date aTime) {\r\n this.aTime = aTime;\r\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime( Date time ) {\n this.time = time;\n }",
"public void setMaxTime(int aMaxTime)\n{\n // Set max time\n _maxTime = aMaxTime;\n \n // If time is greater than max-time, reset time to max time\n if(getTime()>_maxTime)\n setTime(_maxTime);\n}",
"public void setTime(Time time) {\n this.time = time; // assigns the time argument value to the time attribute\n }",
"public void setTime(Date time) {\n\t\tthis.time = time;\n\t}",
"public void setEventTime(int newTime) {\n\t\tthis.scheduledTime = newTime;\n\t}",
"public void setTime(Date time) {\n this.time = new Date(time.getTime());\n }",
"public void setFreezeTimestamp(java.util.Date value);",
"public final void setTime(final Date newTime) {\n this.time = newTime;\n }",
"@Override\n\tpublic String getEligibleTime() {\n\t\treturn model.getEligibleTime();\n\t}",
"public void setRequesttime(Date requesttime) {\n this.requesttime = requesttime;\n }",
"public void setValidTime(java.util.Date validTime) {\r\n this.validTime = validTime;\r\n }",
"public void setScheduleTime(Date scheduleTime) {\n this.scheduleTime = scheduleTime;\n }",
"public void setOptTime(Date optTime) {\n\t\tthis.optTime = optTime;\n\t}",
"public void setScheduletime(Date scheduletime) {\r\n this.scheduletime = scheduletime;\r\n }",
"public void setTime(gov.ucore.ucore._2_0.TimeType time)\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.TimeType target = null;\n target = (gov.ucore.ucore._2_0.TimeType)get_store().find_element_user(TIME$2, 0);\n if (target == null)\n {\n target = (gov.ucore.ucore._2_0.TimeType)get_store().add_element_user(TIME$2);\n }\n target.set(time);\n }\n }",
"void timeSet(Integer timeOpen, Integer timeWork){\n\t\tdaysUntilStarts = timeOpen;\n\t\tdaysToRun = timeWork;\n\t}",
"public void xsetStartTime(org.landxml.schema.landXML11.GPSTime startTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.GPSTime target = null;\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().find_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().add_attribute_user(STARTTIME$22);\r\n }\r\n target.set(startTime);\r\n }\r\n }",
"protected void scheduleExpiry()\n {\n long dtExpiry = 0L;\n int cDelay = OldOldCache.this.m_cExpiryDelay;\n if (cDelay > 0)\n {\n dtExpiry = getSafeTimeMillis() + cDelay;\n }\n setExpiryMillis(dtExpiry);\n }",
"public void setEndTime(long value) {\r\n this.endTime = value;\r\n }",
"public abstract void setStartTime(Date startTime);",
"public void setTimeLimit(java.util.Collection timeLimit);",
"void setEndTime(Time endTime) {\n this.endTime = endTime;\n }",
"public void setTime(long time) {\r\n\t\tthis.time = time;\r\n\t}",
"@Override\n public void setExpiration( Date arg0)\n {\n \n }",
"public void setTime(long time) {\n this.time = time;\n }",
"public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }",
"public void setOrderFulfillTime(int currentTime) {\n\t\tString fulfilledTime = Utility.formatToTime(currentTime);\n\t\torderFulfillTime = fulfilledTime;\n\t\tif (currentTime - orderTimeInSecs <= 3600) {\n\t\t\tfeedback = 1;\n\t\t} else if (currentTime - orderTimeInSecs <= 10800) {\n\t\t\tfeedback = 0;\n\t\t} else {\n\t\t\tfeedback = -1;\n\t\t}\n\t}",
"public void setTime ( final Calendar time ) {\n this.time = time;\n }",
"public void setLifeTimeAssigned(TLifeTimeInSeconds lifetime) {\n\n\t\tthis.lifetimeAssigned = lifetime;\n\t}",
"@Override\n\tpublic void setStartTime(int t) {\n\t\t\n\t}",
"public boolean hasDesiredTime() {\n return desiredTimeBuilder_ != null || desiredTime_ != null;\n }",
"public void setEndTime(String time){endTime = time;}",
"public void setSubmitTime(Date submitTime) {\n this.submitTime = submitTime;\n }",
"public void setTime(long time) {\r\n this.time = time;\r\n }",
"public void setBlockedTime() {\r\n\t\t\tthis.blockedTime = 0;\r\n\t\t}",
"public void setRequestTime(java.util.Date requestTime) {\n this.requestTime = requestTime;\n }",
"public void setTime(long time)\n {\n this.time = time;\n\n }",
"void setEndTime(java.util.Calendar endTime);",
"public void setApplyTime(Date applyTime) {\n this.applyTime = applyTime;\n }",
"@Override\r\n\tpublic void setMyTime(MyTime myTime) {\n\t\t\r\n\t}",
"public void setOnTime(Integer onTime) {\n this.onTime = onTime;\n }",
"public void timeToCheckWorker() {\n notifyCanMove(this.getCurrentTurn().getCurrentPlayer());\n }",
"public void setTime(){\r\n \r\n }",
"public void setTimeBounds(TimeBounds timeBounds) throws java.beans.PropertyVetoException {\n\t\tif (!Matchable.areEqual(fieldTimeBounds,timeBounds) ) {\n\t\t\t// Only here to ensure it is being used correctly.\n\t\t\t// cbit.util.Assertion.assertNotNull(timeBounds);\n\t\t\tTimeBounds oldValue = fieldTimeBounds;\n\t\t\tfireVetoableChange(PROPERTY_TIME_BOUNDS, oldValue, timeBounds);\n\t\t\tfieldTimeBounds = timeBounds;\n\t\t\tfirePropertyChange(PROPERTY_TIME_BOUNDS, oldValue, timeBounds);\n\t\t}\n\t}",
"public void setValuationTime(final Instant valuationTime) {\n put(VALUATION_INSTANT_NAME, valuationTime);\n }",
"public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }",
"public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }",
"public void setAnserTime(Date anserTime) {\r\n this.anserTime = anserTime;\r\n }",
"public void setResponsetime(Date responsetime) {\n this.responsetime = responsetime;\n }",
"public void setReadyTime() {\r\n\t\t\tthis.readyTime = 0;\r\n\t\t}",
"public static void setTime(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tif (!JsonUtils.RUNNING_LOCALLY){\n\t\t\tcal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 4); //account for UTC offset because of lambda\n\t\t}\n\t\tCURRENT_TIME = formatTime(cal.getTime().toString());\n\t}",
"public synchronized void setTimeToWakeUpToFalse() {\n this.timeToWakeUp = false;\n }",
"public void setTime(int time)\n {\n this.time = time;\n start = time;\n end = time;\n }",
"public void setSemiFinalRaceTime(int time)\n\t{\n\t\tsemiFinalRaceTime = time;\n\t}",
"public void updateWaitingTime(){\n waitingTime = waitingTime - 1;\n }",
"public void setGameTime() {\n\t\tgameTime = new Date();\n\t}",
"@Override\n\tpublic void setInhabitedTime(long ticks)\n\t{\n\t\tthrow new UnimplementedOperationException();\n\t}",
"@Override\n public final void setExpiration(double expirationTime) {\n safetyHelper.setExpiration(expirationTime);\n }",
"public void setTimeLimitAction(java.lang.String timeLimitAction);",
"public void setTime(long time) {\r\n this.time.setTime(time);\r\n }",
"public boolean hasDesiredTime() {\n return desiredTime_ != null;\n }",
"public Builder setRequestTime(long value) {\n \n requestTime_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setEndTime(float t) \n\t{\n\t\t_tend = t;\n\t}"
] |
[
"0.59628415",
"0.5952331",
"0.5951223",
"0.58550894",
"0.5852084",
"0.58023024",
"0.5787915",
"0.5719069",
"0.5658428",
"0.5639137",
"0.56140804",
"0.56069154",
"0.5604504",
"0.5598978",
"0.55967206",
"0.5583528",
"0.5569638",
"0.55503774",
"0.5545624",
"0.5534841",
"0.5518168",
"0.5503956",
"0.5485863",
"0.54845464",
"0.54798365",
"0.5469599",
"0.5469495",
"0.5465516",
"0.5461518",
"0.54551136",
"0.5451223",
"0.5451223",
"0.5451223",
"0.54449415",
"0.54449415",
"0.54449415",
"0.54449415",
"0.543885",
"0.54371685",
"0.54341847",
"0.54296476",
"0.5412777",
"0.54108244",
"0.5403126",
"0.5400121",
"0.538097",
"0.53711575",
"0.5360588",
"0.5359375",
"0.53556466",
"0.5354383",
"0.5351565",
"0.5349319",
"0.5343715",
"0.53418523",
"0.5338494",
"0.53369117",
"0.53034747",
"0.5289499",
"0.5284803",
"0.5275858",
"0.5270046",
"0.52664083",
"0.52577245",
"0.5251071",
"0.5249515",
"0.52450204",
"0.5243037",
"0.5242125",
"0.52399635",
"0.52370197",
"0.5235512",
"0.5234277",
"0.52328163",
"0.5224482",
"0.52213556",
"0.5214428",
"0.52130574",
"0.520232",
"0.5199968",
"0.51953924",
"0.5187283",
"0.5186762",
"0.5186762",
"0.51779574",
"0.5174597",
"0.517284",
"0.516143",
"0.5155379",
"0.51544625",
"0.51540494",
"0.51532036",
"0.5146375",
"0.5143986",
"0.5141836",
"0.51303035",
"0.5124593",
"0.512367",
"0.51206017",
"0.5120206"
] |
0.7035608
|
0
|
Sets the environment vars of this job.
|
@Override
public void setEnvironmentVars(String environmentVars) {
model.setEnvironmentVars(environmentVars);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setEnvironment(Properties properties);",
"public void setEnvironment(Map<String, String> environment);",
"private void setupEnvironment(Execute exe) {\r\n String[] environment = env.getVariables();\r\n if (environment != null) {\r\n for (int i = 0; i < environment.length; i++) {\r\n log(\"Setting environment variable: \" + environment[i], Project.MSG_VERBOSE);\r\n }\r\n }\r\n exe.setNewenvironment(newEnvironment);\r\n exe.setEnvironment(environment);\r\n }",
"protected void setEnvironment(Map<String, String> env) {\n\t\tthis.environment = env;\n\t}",
"@Override\n\tpublic void setEnvironment(Environment environment) {\n\t\tSystem.out.println(\"call setEnvironment()...\");\n\t\tenv = environment;\n\t}",
"void setEnvironment(Environment environment) {\n this.environment = environment;\n }",
"public synchronized void setEnvironment(TestEnvironment environment) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n for (TestEnvironment.Element elem : environment.elementsUsed()) {\n // this is stunningly inefficient and should be fixed\n env = PropertyArray.put(env, elem.getKey(), elem.getValue());\n }\n }",
"public void setEnvironmentParams(String[] environmentParams)\r\n\t{\r\n\t\tthis.environmentParams = environmentParams;\r\n\t}",
"public void setEnv(byte[] name, byte[] value){\n synchronized(this){\n getEnv().put(name, value);\n }\n }",
"public void setEnvironment(Object environment) {\n this.environment = environment;\n }",
"void setEnvironment(CudaEnvironment environment);",
"void setEnvironmentFile(File environmentFile);",
"public void setCurrentEnvironment(String environment) {\n currentEnvironment = environment;\n }",
"public void setEnvironment(String environment1) {\n this.environment = environment1;\n }",
"public void setEnvironment(Environment environment) {\r\n this.environment = environment;\r\n\r\n changeServerListener = (ChangeListener<Worker.State>) (ObservableValue<? extends Worker.State> observable, Worker.State oldValue, Worker.State newValue) -> {\r\n switch (newValue) {\r\n case FAILED:\r\n System.err.println(windowsService.getException());\r\n break;\r\n case CANCELLED:\r\n break;\r\n case RUNNING:\r\n serviceField.setDisable(true);\r\n progressService.setVisible(true);\r\n break;\r\n case SUCCEEDED:\r\n this.environment.getServer().getListService().addAll(windowsService.getValue());\r\n serviceField.setItems(windowsService.getValue());\r\n serviceField.setDisable(false);\r\n progressService.setVisible(false);\r\n break;\r\n }\r\n };\r\n windowsService = new ListWindowsService(this.environment.getServer());\r\n windowsService.stateProperty().addListener(changeServerListener);\r\n nameField.setText(this.environment.getName());\r\n hostField.setText(this.environment.getIP());\r\n portField.setText(Integer.toString(this.environment.getPort()));\r\n loginField.setText(this.environment.getLogin());\r\n passwordField.setText(this.environment.getPassword());\r\n MOMPathField.setText(this.environment.getPathMOM());\r\n serverField.setValue(this.environment.getServer());\r\n serverField.valueProperty().addListener((ObservableValue<? extends Server> observable, Server oldValue, Server newValue) -> {\r\n if (newValue != null) {\r\n environment.setServer(newValue);\r\n }\r\n });\r\n\r\n serverField.valueProperty().addListener((ObservableValue<? extends Server> observable, Server oldValue, Server newValue) -> {\r\n if (newValue != null) {\r\n windowsService = new ListWindowsService(newValue);\r\n windowsService.stateProperty().addListener(changeServerListener);\r\n windowsService.restart();\r\n }\r\n });\r\n serviceField.setItems(this.environment.getServer().getListService());\r\n serviceField.setValue(this.environment.getService());\r\n if (this.environment.getServer().getName() == null) {\r\n serviceField.setDisable(true);\r\n }\r\n\r\n }",
"public void setVars() {\n\t\tif (jEdit.getPlugin(\"console.ConsolePlugin\") != null) {\n\t\t\tconsole.ConsolePlugin.setSystemShellVariableValue(\"LUAJ\", getLuaJ());\n\t\t}\n\t}",
"public void setEnvironmentFrame(final EnvironmentFrame frame) {\n\t\tmyEnvFrame = frame;\n\t}",
"@Autowired\n public void setEnvironment(Environment environment) {\n this.environment = environment;\n }",
"public void setEnvironment(Configuration config) {\n _environment = config;\n }",
"public void intServerEnv() {\n\t\tServerUtils serverUtils = new ServerUtils();\n\t\tTouchstoneParsers parsers = new TouchstoneParsers();\n\n\t\tString CONFIGFILE = psoResourcePkg + \"/configs/server.properties\";\n\t\tString testConfigFile = ServerUtils.class.getResource(CONFIGFILE).getFile();\n\n\t\tHashMap<String, HashMap<String, String>> configPropsMap = parsers.readPropsFile(new File(testConfigFile));\n\t\thostIP = (configPropsMap.get(\"URL_PARAMS\").get(\"LOCAL_ENV\").equalsIgnoreCase(\"yes\") ? \"localhost\" : serverUtils.getHostIp());\n\n\t\t// JDBC driver name and database URL\n\t\tJDBC_DRIVER=\"com.mysql.jdbc.Driver\";\n\t\tDB_URL=\"jdbc:mysql://\" + hostIP + \"/psotest\";\n\n\t\t// Database credentials\n\t\tUSERID = configPropsMap.get(\"SERVER_ENV\").get(\"USERID\");\n\t\tPASSWORD = configPropsMap.get(\"SERVER_ENV\").get(\"PASSWORD\");\n\n\t\t// Database tables:\n\t\tCLICKS_TABLE = configPropsMap.get(\"SERVER_ENV\").get(\"CLICKS_TABLE\");\n\t\tBEACON_TABLE = configPropsMap.get(\"SERVER_ENV\").get(\"BEACON_TABLE\");\n\n\t}",
"private void setEnv(final String value) {\n\n env = StringUtils.trim(value);\n }",
"private static void env (final String outFileName) throws IOException {\r\n\t\tstdout.print (\"Recoding: set\\t\");\r\n\t\tvar env = System.getenv ();\r\n\t\tvar out = new StringBuilder ();\r\n\t\tvar path = Paths.get (DIR.toString (), outFileName);\r\n\t\tenv.forEach ((key, value) -> out.append (String.format (\"%s=%s%n\", key, value)));\r\n\t\tFiles.writeString (path, out.toString ());\r\n\t\tstdout.println (\"(Done)\");\r\n\t}",
"private static void setEnvironmentVariable(String key, String value) throws NoSuchFieldException, IllegalAccessException {\n\n Map<String, String> env = System.getenv();\n Class<?> cl = env.getClass();\n\n Field field = cl.getDeclaredField(\"m\");\n field.setAccessible(true);\n\n Object obj = field.get(env);\n @SuppressWarnings(\"unchecked\")\n Map<String, String> map = (Map<String, String>) obj;\n map.put(key, value);\n\n }",
"interface WithEnvironmentVariables {\n /**\n * Specifies environmentVariables.\n * @param environmentVariables Batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS\n * @return the next update stage\n */\n Update withEnvironmentVariables(List<EnvironmentSetting> environmentVariables);\n }",
"String setEnvironmentProperty(String key, String value);",
"public void setEnv(final String value) {\n\n env = StringUtils.trim(value);\n }",
"@PostConstruct\n\tpublic void init() {\n\t\tEnvironmentUtils.setEnvironment(env);\n\t}",
"public void setEnvProperties(Map<String, String> envProperties) {\n\t\tthis.envProperties = envProperties;\n\t}",
"public final void setSamenv(java.lang.String samenv)\n\t{\n\t\tsetSamenv(getContext(), samenv);\n\t}",
"public SetEnvCommand() {\n }",
"@Override\n public void setEnvironment(Environment environment) {\n this.environment = environment;\n this.propertyResolver = new RelaxedPropertyResolver(environment, \"spring.datasource.\");\n }",
"@Before\n public void setupEnvironment() {\n TestEnvironment testEnvironment;\n switch (mode) {\n case CLUSTER:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().disableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case CLUSTER_OBJECT_REUSE:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().enableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case COLLECTION:\n new CollectionTestEnvironment().setAsContext();\n break;\n }\n }",
"public void setGameEnvironment(GameEnvironment gameEnvironment) {\r\n this.gameE = gameEnvironment;\r\n }",
"private static void loadTestEnv() {\n\n\t\tPropertyReader reader = new PropertyReader(GlobalContext.getAppDir(), Constants.FILENAME_TESTENV);\n\n\t\tTestEnv env = new TestEnv();\n\t\tenv.setDefaultHostName(reader.getProperty(Constants.DEFAULT_HOST_NAME));\n\t\tenv.setDefaultHostOS(reader.getProperty(Constants.DEFAULT_HOST_OS));\n\t\tenv.setDefaultCredentials(reader.getProperty(Constants.DEFAULT_CREDENTIALS));\n\t\tenv.setDefaultBrowser(reader.getProperty(Constants.DEFAULT_BROWSER));\n\t\tenv.setAppServer(reader.getProperty(Constants.APP_SERVER));\n\t\tenv.setDatabaseServer(reader.getProperty(Constants.DATABASE_SERVER));\n\t\tenv.setEmailReceipients(reader.getProperty(Constants.EMAIL_RECEIPIENTS));\n\t\tenv.setEmailSender(reader.getProperty(Constants.EMAIL_SENDER));\n\n\t\t// sets to global context.\n\t\tGlobalContext.setTestEnv(env);\n\t}",
"public void addToEnvironment(String key, String value) {\n\t\tthis.environment.setProperty(key, value);\n\t}",
"public static void setEnv() throws IOException {\n\t\tBuildURL.propReader = new PropertyReader(App.getResourcesFilePath() + FileSystems.getDefault().getSeparator() + App.getConfigFileRoot() + \"configuration.properties\");\n\t\tBuildURL.baseURL = propReader.readValue(\"baseURL\");\n\t\tBuildURL.domain = propReader.readValue(\"domain\");\n\t\tBuildURL.project = propReader.readValue(\"project\");\n\n\t\tif(propReader.readValue(\"login_form_required\").equalsIgnoreCase(\"Y\")){\n\t\t\tlogin_required_string = \"?login-form-required=y\";\n\t\t}else{\n\t\t\tlogin_required_string = \"\";\n\t\t}\n\t}",
"public void setEnvironmentPropertyName(String environmentPropertyName) {\n \n this.environmentPropertyName = environmentPropertyName;\n }",
"@BeforeClass(alwaysRun = true)\n public void setEnvironment() throws Exception {\n \n init(\"podio-connector-1.0.2-SNAPSHOT\");\n\n esbRequestHeadersMap = new HashMap<String, String>();\n apiRequestHeadersMap = new HashMap<String, String>();\n \n apiUrl = connectorProperties.getProperty(\"apiUrl\");\n timeOut = Long.parseLong(connectorProperties.getProperty(\"timeOut\"));\n \n esbRequestHeadersMap.put(\"Accept-Charset\", \"UTF-8\");\n \n apiRequestHeadersMap.putAll(esbRequestHeadersMap);\n apiRequestHeadersMap.put(\"Authorization\", \"Bearer \" + connectorProperties.getProperty(\"accessToken\"));\n apiRequestHeadersMap.put(\"Content-Type\", \"application/json\");\n }",
"public Builder addAllEnv(\n java.lang.Iterable<java.lang.String> values) {\n ensureEnvIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, env_);\n onChanged();\n return this;\n }",
"protected void buildEnvVars(final EnvVars env, final NSIS.NSISInstallation mi, final BuildListener listener) throws IOException, InterruptedException {\n if(mi != null) {\n mi.buildEnvVars(env);\n\n listener.getLogger().println(\"NSISDIR=\" + mi.getHome());\n env.put(\"NSISDIR\", mi.getHome());\n //env.put(\"NSISCONFDIR\", nsisConfigurationFolder);\n }\n }",
"@Override\n public void setConfiguration(Environment environment) {\n this.xmlConfigFile = environment.getProperty(\"challenges.xmlconfig\");\n this.xmlConfigSchema = environment.getProperty(\"challenges.xmlschema\");\n }",
"public void addToEnvironment(String line) {\n\t\tint equalsIndex = line.indexOf('=');\n\t\tif (equalsIndex > 0) {\n\t\t\tenvironment.setProperty(line.substring(0, equalsIndex),line.substring(equalsIndex + 1));\n\t\t}\t\t\n\t}",
"@BeforeClass(alwaysRun = true)\n public void setEnvironment() throws Exception {\n \n esbRequestHeadersMap = new HashMap<String, String>();\n \n apiRequestHeadersMap = new HashMap<String, String>();\n \n init(\"agilezen-connector-1.0.2-SNAPSHOT\");\n \n esbRequestHeadersMap.put(\"Accept\", \"application/json\");\n esbRequestHeadersMap.put(\"Content-Type\", \"application/json\");\n \n apiRequestHeadersMap.putAll(esbRequestHeadersMap);\n \n apiRequestHeadersMap.put(\"X-Zen-ApiKey\", connectorProperties.getProperty(\"apiKey\"));\n apiRequestUrl = connectorProperties.getProperty(\"apiUrl\") + \"/api/v1\";\n \n }",
"public void set(String name, String value)\n {\n envMap.put(name,name+\"=\"+StringUtil.nonNull(value));\n }",
"public void setSystemProperties() {\n Properties systemP = System.getProperties();\n Enumeration e = systemP.propertyNames();\n while (e.hasMoreElements()) {\n String propertyName = (String) e.nextElement();\n String value = systemP.getProperty(propertyName);\n this.setPropertyInternal(propertyName, value);\n }\n }",
"@Override\n\tpublic String getEnvironmentVars() {\n\t\treturn model.getEnvironmentVars();\n\t}",
"interface WithEnvironmentVariables {\n /**\n * Specifies environmentVariables.\n * @param environmentVariables Batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS\n * @return the next definition stage\n */\n WithCreate withEnvironmentVariables(List<EnvironmentSetting> environmentVariables);\n }",
"public void setClientEnv(Map<String, String> clientEnv) {\n this.clientEnv = ImmutableMap.copyOf(clientEnv);\n }",
"public String[] getEnvironmentParams()\r\n\t{\r\n\t\treturn environmentParams;\r\n\t}",
"private void setupEnvironment() {\n // Create mocks for configurations\n bgpConfig = createMock(BgpConfig.class);\n participantsConfig = createMock(SdxParticipantsConfig.class);\n\n // Create mocks for services\n coreService = new TestCoreService();\n configService = new TestNetworkConfigService();\n registry = new NetworkConfigRegistryAdapter();\n interfaceService = createMock(InterfaceService.class);\n interfaceService.addListener(anyObject(InterfaceListener.class));\n expectLastCall().anyTimes();\n intentSynchronizer = createMock(IntentSynchronizationService.class);\n }",
"public void setEnvironment(Environment oldEnvironment) {\n this.oldEnvironment = oldEnvironment;\n\n //set the old values\n editTxtName.setText(oldEnvironment.getName());\n editTxtDesc.setText(oldEnvironment.getDesc());\n editClrColor.setValue(oldEnvironment.getColor());\n }",
"public void setEnvironment(PanelEnvironment aEnvironment) \r\n\t{\r\n\t\tthis.panelEnvironment = aEnvironment;\r\n\t\tif( this.panelEnvironment == null ) {\r\n\t\t\tthis.panelEnvironment = new NullPanelEnvironment();\r\n\t\t}\r\n\t}",
"public Builder setEnv(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureEnvIsMutable();\n env_.set(index, value);\n onChanged();\n return this;\n }",
"private void setVars(String orgName, String commName, String serialNum, String reason, String insertedBy) {\n organizationName = orgName;\n commonName = commName;\n serialNumber = serialNum;\n this.reason = reason;\n this.insertedBy = insertedBy;\n }",
"public\n void setProperties(String argv[])\n {\n if (argv == null)\n return;\n\n for (int i = 0; i < argv.length; i++)\n {\n try {\n load(new StringBufferInputStream(argv[i]));\n }\n catch (IOException excp) {\n System.out.println(excp);\n }\n }\n }",
"public void addEnv(Environment.Variable var) {\r\n env.addVariable(var);\r\n }",
"File prepareEnvironment();",
"public String getEnv() {\n\n return env;\n }",
"private void initParameters() {\n jobParameters.setSessionSource(getSession(\"source\"));\n jobParameters.setSessionTarget(getSession(\"target\"));\n jobParameters.setAccessDetailsSource(getAccessDetails(\"source\"));\n jobParameters.setAccessDetailsTarget(getAccessDetails(\"target\"));\n jobParameters.setPageSize(Integer.parseInt(MigrationProperties.get(MigrationProperties.PROP_SOURCE_PAGE_SIZE)));\n jobParameters.setQuery(MigrationProperties.get(MigrationProperties.PROP_SOURCE_QUERY));\n jobParameters.setItemList(getFolderStructureItemList());\n jobParameters.setPropertyFilter(getPropertyFilter());\n jobParameters.setReplaceStringInDestinationPath(getReplaceStringArray());\n jobParameters.setNamespacePrefixMap(getNamespacePrefixList());\n jobParameters.setBatchId(getBatchId());\n jobParameters.getStopWatchTotal().start();\n jobParameters.setSuccessAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_ACTION));\n jobParameters.setErrorAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_ACTION));\n jobParameters.setSuccessFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setErrorFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setCurrentFolder(getRootFolder());\n jobParameters.setSkipDocuments(Boolean.valueOf(MigrationProperties.get(MigrationProperties.PROP_MIGRATION_COPY_FOLDERS_ONLY)));\n \n }",
"public final void setSamenv(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String samenv)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Samenv.toString(), samenv);\n\t}",
"public static Properties getEnvVars() throws Throwable {\n Process p = null;\n Properties envVars = new Properties();\n Runtime r = Runtime.getRuntime();\n String OS = System.getProperty(\"os.name\").toLowerCase();\n if (OS.indexOf(\"windows 9\") > -1) {\n p = r.exec(\"command.com /c set\");\n } else if ((OS.indexOf(\"nt\") > -1) || (OS.indexOf(\"windows 2000\") > -1)\n || (OS.indexOf(\"windows xp\") > -1)) {\n p = r.exec(\"cmd.exe /c set\");\n } else {\n // our last hope, we assume Unix\n p = r.exec(\"env\");\n }\n try (BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()))) {\n String line;\n while ((line = br.readLine()) != null) {\n int idx = line.indexOf('=');\n if (idx < 0)\n continue;\n String key = line.substring(0, idx);\n String value = (idx < line.length() - 1) ? line.substring(idx + 1) : \"\";\n envVars.setProperty(key, value);\n }\n }\n // do nothing\n return envVars;\n }",
"@Override\n\tpublic void prepare(Map<String, String> mapping) {\n\t\t\n\t\tfor (Entry<String, String> en : mapping.entrySet()) {\n\t\t\tString key = en.getKey();\n\t\t\tString value = System.getenv(en.getValue());\n\t\t\tif (value != null) {\n\t\t\t\tLOG.debug(\"Env {}: {}\", en.getValue(), redactValue(key, value));\n\t\t\t\tputParameter(key, value);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Override with system properties\n\t\t\n\t\tfor (Entry<String, String> en : mapping.entrySet()) {\n\t\t\tString key = en.getKey();\n\t\t\tString value = System.getProperty(key);\n\t\t\tif (value != null) {\n\t\t\t\tLOG.debug(\"Sys {}: {}\", key, redactValue(key, value));\n\t\t\t\tputParameter(key, value);\n\t\t\t}\n\t\t}\n }",
"@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"call afterPropertiesSet()...\");\n//\t\tadminId = env.getProperty(\"adminid\");\n//\t\tadminPw = env.getProperty(\"adminpw\");\t\t\n\t}",
"@BeforeTest\r\n\tpublic void setupenvi() throws IOException {\r\n\t\tsetup();\r\n\t\tinit();\r\n\t}",
"public void setEnvironmentName(String environmentName) {\n this.environmentName = environmentName;\n }",
"Properties getEnvironment();",
"Properties getEnvironment();",
"public void setContainerEnv(String containerEnv) {\n this.containerEnv = containerEnv == null ? null : containerEnv.trim();\n }",
"public Map<String, String> getEnvironmentVariables(\n ExecutionContext context,\n ExecutionScript script) throws InterruptedException, IOException {\n return environmentVariables;\n }",
"public void setEnvironment(final String currentEnvironmentName) {\n setConfigurationAndLog(FlexibleSearchDeploymentEnvironmentDAO.CURRENT_ENVIRONMENT_CONF, currentEnvironmentName);\n }",
"public void setGameEnvironment(GameEnvironment ge) {\n this.gameEnvironment = ge;\n }",
"public void initEnvironment(String _changeEnvToken) {\r\n\t\ttry {\r\n\t\t\tif ((this.changeEnvToken == null) || (_changeEnvToken == null) || (!this.changeEnvToken.equals(_changeEnvToken))) {\r\n\t\t\t\tlog.debug(\"New changeEnvironment token found.\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString tempPoolName = (String)this.alternatePoolNames.get(_changeEnvToken);\r\n\t\t\t\t\tlock.writeLock().lockInterruptibly();\r\n\t\t\t\t\t// specified pool-name was not found\r\n\t\t\t\t\tboolean refreshCache = true;\r\n\t\t\t\t\tif ((tempPoolName == null) || (tempPoolName.trim().length() == 0)) {\r\n\t\t\t\t\t\ttempPoolName = defaultPoolName;\r\n\t\t\t\t\t\t// if we already use the default, then skip refresh\r\n\t\t\t\t\t\tif (tempPoolName.equals(this.poolName)) {\r\n\t\t\t\t\t\t\tlog.debug(\"Default pool-name already set. Continuing to use it.\");\r\n\t\t\t\t\t\t\trefreshCache = false;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// refreshing cache to use default pool-name\r\n\t\t\t\t\t\t\tlog.warn(\"Alternate pool-name was not informed, it will be used the default pool-name.\");\r\n\t\t\t\t\t\t\tthis.poolName = defaultPoolName;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// specified pool-name was found\r\n\t\t\t\t\t\tthis.poolName = tempPoolName;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.changeEnvToken = _changeEnvToken;\r\n\t\t\t\t\tif (refreshCache) {\r\n\t\t\t\t\t\trefreshCache();\r\n\t\t\t\t\t\tloadCache();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (InterruptedException ie) {\r\n\t\t\t\t\tlog.error(ie);\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tlock.writeLock().unlock();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e);\r\n\t\t\tthrow new ConfigurationException(e);\r\n\t\t}\r\n\t}",
"private void assignCAPath()\n {\n this.caPath = CA_PATH.get(conf);\n\n if (CA_PATH_ENV.get(conf) != null) {\n String envVarTlsCAPath = System.getenv(CA_PATH_ENV.get(conf));\n if (envVarTlsCAPath != null) {\n this.caPath = envVarTlsCAPath;\n }\n }\n }",
"public void setEnvironmentData(T configuration, Environment environment) {\n\t\tthis.configuration = configuration;\n\t\tthis.environment = environment;\n\t}",
"protected void setup(){\n\n\t\tsuper.setup();\n\n\t\tfinal Object[] args = getArguments();\n\t\tif(args!=null && args[0]!=null && args[1]!=null){\n\t\t\tdeployAgent((Environment) args[0],(EntityType)args[1]);\n\t\t}else{\n\t\t\tSystem.err.println(\"Malfunction during parameter's loading of agent\"+ this.getClass().getName());\n System.exit(-1);\n }\n\t\t\n\t\t//############ PARAMS ##########\n\n\t\tthis.nbmodifsmin \t\t= 30;\t\t\t//nb modifs minimum pour renvoyer la carte\n\t\tthis.timeOut \t\t\t= 1000 * 4;\t\t//secondes pour timeout des messages (*1000 car il faut en ms)\n\t\tthis.sleepbetweenmove \t= 200;\t\t\t//in MS\n\t\tthis.nbmoverandom\t\t= 4;\t\t\t// nb random moves by default\n\t\t\n\t\t//#############################\n\t\t//setup graph\n\t\t//setupgraph();\n\t\tthis.graph = new SingleGraph(\"graphAgent\");\n\t\tinitMyGraph();\n\t\tthis.step = 0;\n\t\tthis.stepMap = new HashMap<String, Integer>();\n\t\tthis.path = new ArrayList<String>();\n\t\tthis.mailbox = new Messages(this);\n\t\tthis.lastMsg = null;\n\t\tthis.switchPath = true;\n\t\tthis.lastsender = null;\n\t\tthis.lastSentMap = new HashMap<String, Integer>(); //nbmodifs\n\t\tthis.remakepath = false; // changes to true if the map changed in a way that requires a new path\n\t\tthis.nbmoverandomoriginal = this.nbmoverandom;\n\t\t\n\t\tthis.toSendMap = new HashMap<String, Graph>(); //actual hashmap graph\n\t\t\n\t\tSystem.out.println(\"the agent \"+this.getLocalName()+ \" is started\");\n\t}",
"public static void fill(Map<String,String> in, Map<String,String> out) {\n\t\tinsert(in,ENV_APPID,out);\n\t\tinsert(in,ENV_JAR,out);\n\t\tinsert(in,ENV_JAR_PATH,out);\n\t\tinsert(in,ENV_CLASSPATH,out);\n\t\tinsert(in,ENV_NAME,out);\n\t\tinsert(in,ENV_ZK_URI,out);\n\t\tinsert(in,ENV_HDFS_URI,out);\n\t\tinsert(in,BROKER_URI,out);\n\t\tinsert(in,BROKER_ZK_URI,out);\n\t\t\n\t\t//also put the classpath in the right var:\n\t\tif(in.containsKey(ENV_CLASSPATH))\n\t\t\tout.put(\"CLASSPATH\", in.get(ENV_CLASSPATH));\n\t}",
"public void setNewenvironment(boolean newenv) {\r\n newEnvironment = newenv;\r\n }",
"private static Map<String,String> getEnvVars() {\n return new TreeMap<>(System.getenv());\n }",
"private void setSysProperties() {\n Properties sysProperties = System.getProperties();\n\n // SMTP properties\n sysProperties.put(\"mail.smtp.auth\", \"true\");\n sysProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n sysProperties.put(\"mail.smtp.host\", smtpHost);\n sysProperties.put(\"mail.smtp.port\", \"587\");\n\n //IMAP properties\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n\n // Credentials\n sysProperties.put(\"mail.user\", username);\n sysProperties.put(\"mail.password\", password);\n\n __logger.info(\"Set system properties\");\n }",
"public ProcessInfoInner withEnvironmentVariables(Map<String, String> environmentVariables) {\n this.environmentVariables = environmentVariables;\n return this;\n }",
"public Map<String, String> getEnv()\n {\n return env;\n }",
"public static void setEnvironmentProvider(EnvironmentDetector environmentDetector)\n {\n getIntern().setEnvironmentProvider(environmentDetector);\n }",
"public static void main(String[] args) {\n\t\tString osArch = SystemUtils.OS_ARCH;\n\n\t\tboolean is64 = SystemUtils.OS_ARCH.contains(\"64\");\n\t\tboolean is32 = SystemUtils.OS_ARCH.contains(\"32\");\n\n\t\tSystem.out.printf(\"osArch: '%s'\\n\", osArch);\n\t\tSystem.out.printf(\"is64: '%s'\\n\", is64);\n\t\tSystem.out.printf(\"is32: '%s'\\n\", is32);\n\n\t\tSystem.out.printf(\"Java 170 pelo menos. '%s'\\n\",\n\t\t\t\tSystemUtils.isJavaVersionAtLeast(170));\n\n\t\tString javaHome = SystemUtils.JAVA_HOME;\n\n\t\tSystem.out.printf(\"java home: '%s'\\n\", javaHome);\n\n\t\tSystem.out.println(\"==========================================================================\");\n\t\tSystem.out.println(\"env:\");\n\t\tSystem.out.println(Arrays\n\t\t\t\t.toString(System.getenv().entrySet().toArray()));\n\t\tSystem.out.println(\"--------------------------------------------------------------------------\");\n\t\tSystem.out.println(System.getenv(\"JAVA_HOME\"));\n\t\tSystem.out.println(\"==========================================================================\");\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"==========================================================================\");\n\t\tSystem.out.println(\"===================== SET RAGNA_HOME='aaaaaa' ==========================\");\n\t\tSystem.out.println(\"==========================================================================\");\n\t\tProcessBuilder pb1 = new ProcessBuilder(\"CMD.exe\", \"/C\", \"SET RAGNA_HOME='aaaaaa'\");\n\t\t\n\t\ttry {\n\t\t\tpb1.start();\n\t\t\tSystem.out.println(\"----------------------------------env--------------------------------\");\n\t\t\tSystem.out.println(Arrays\n\t\t\t\t\t.toString(pb1.environment().entrySet().toArray()));\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\n\t\tSystem.out.println(\"==========================================================================\");\n\t\tSystem.out.println(\"=========================== SET =====================================\");\n\t\tSystem.out.println(\"==========================================================================\");\n\t\t\n\t\tProcessBuilder pb = new ProcessBuilder(\"CMD.exe\", \"/C\", \"SET\");\n\n\t\ttry {\n\t\t\tpb.redirectErrorStream(true);\n\t\t\tMap<String, String> env = pb.environment();\n\t\t\tString path = env.get(\"Path\") + \";C:\\\\naved\\\\bin\";\n\t\t\tenv.put(\"Path\", path);\n\t\t\tProcess process;\n\t\t\tprocess = pb.start();\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tprocess.getInputStream()));\n\t\t\tString line;\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tSystem.out.println(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"==========================================================================\");\n\n\t\t\n\t\t\n\t\t\n\t}",
"public void setEnvironmentName(String environmentName) {\n this.environmentName = environmentName;\n }",
"@Override\n\t\tprotected void setup(Context context) throws IOException,\n\t\t\t\tInterruptedException {\n\t\t\tsuper.setup(context);\n\t\t\t\n\t\t\tConfiguration config = context.getConfiguration();\n\t\t\tPath stPath=new Path(URI.create(config.get(ComputeAvailabilitiesJob.ST_PATH)));\n\t\t\tPath RPath=new Path(URI.create(config.get(ComputeAvailabilitiesJob.R_PATH)));\n\t\t\tPath sttmpPath=new Path(URI.create(config.get(ComputeAvailabilitiesJob.TMP_ST_PATH)));\n\t\t\tPath RtmpPath=new Path(URI.create(config.get(ComputeAvailabilitiesJob.TMP_R_PATH)));\n\t\t\tcolnums=Integer.parseInt(config.get(ComputeAvailabilitiesJob.COL_NUMS));\n\t\t\tConfiguration depConf = new Configuration(config);\n\t\t\t\n\t\t\tst = new DistributedRowMatrix(stPath,\n sttmpPath,\n colnums,\n colnums);\n\t\t\tR = new DistributedRowMatrix(RPath,\n RtmpPath,\n colnums,\n colnums);\n\t\t\tR.setConf(config);\n\t\t\tst.setConf(config);\n\t\t\titeratorst=st.iterateAll();\n\t\t\titeratorR=R.iterateAll();\n\t\t\t\n\t\t}",
"public String getEnvironment() {\n return environment;\n }",
"public Map<String, String> environmentVariables() {\n return this.environmentVariables;\n }",
"@Override\n public void postEnvCall() {\n shutdown(this.getEnvironment());\n }",
"private void setupEnviroment(){\n\t\tLogUtil.i(TestCaseConstants.TAG, \"setupEnviroment start\");\n\t\tBitmap avatar = BitmapFactory.decodeResource(getInstrumentation().getContext().getResources(), TestCaseConstants.resid_avatar_default);\n\t\tfor(int i=0;i<TestCaseConstants.countOfCustomer;i++){\n\t\t\tContactUser user = new ContactUser();\n\t\t\tuser.setunique_id(i+10000L);\n\t\t\tuser.setusername(\"test\"+(10000L+i));\n\t\t\tuser.setusertype(Constants.USER);\n\t\t\tuser.setlastupdate((10000L+i));\n\t\t\tAttachmentStore.saveBitmap(avatar, StorageUtil.getWritePath(\"avatar_\"+(10000L+i), StorageType.TYPE_IMAGE), false);\n\t\t\tuser.setavatar(\"file://\"+StorageUtil.getWritePath(\"avatar_\"+(10000L+i),StorageType.TYPE_IMAGE));\n\t\t\tuser.setavatar_original(\"file://\"+StorageUtil.getWritePath(\"avatar_\"+(10000L+i),StorageType.TYPE_IMAGE));\n\t\t\tuser.setcountrycode(\"1\");\n\t\t\tuser.setcellphone(\"139117\"+(10000L+i));\n\t\t\tSamService.getInstance().getDao().update_ContactUser_db(user);\n\n\t\t\tContact customer = new Contact(i+10000L,\"test\"+(10000L+i),user.getavatar());\n\t\t\tSamService.getInstance().getDao().update_ContactList_db(customer,true);\n\t\t}\n\t\tavatar.recycle();\n\t\tLogUtil.i(TestCaseConstants.TAG, \"setupEnviroment finished\");\n\t}",
"protected void initVars() {\n prefFile = \"./server.ini\";\n mimeFile = \"./mime.ini\";\n }",
"private static String getEnvironVar(String env) {\r\n \treturn System.getenv(env);\r\n }",
"public void setGlobalVariables(GlobalVariables globalVariables);",
"public void updateEnvironment(Context context, JSONObject post) {\n try {\n post.put(Jsonkey.Environment.getKey(), isPackageInstalled(context) ? Jsonkey.NativeApp.getKey() : Jsonkey.InstantApp.getKey());\n } catch (Exception e) {\n }\n }",
"public Builder clearEnv() {\n env_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n return this;\n }",
"public Builder addEnv(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureEnvIsMutable();\n env_.add(value);\n onChanged();\n return this;\n }",
"private void setVariables(Context context){\n this.context = context != null ? context : getContext();\n mwifiAdmin = new WifiAdmin(this.context);\n }",
"@BeforeAll\n public static void configInitialization() {\n System.setProperty(\"VSAC_DRC_URL\", \"https://vsac.nlm.nih.gov/vsac\");\n System.setProperty(\"SERVER_TICKET_URL\", \"https://vsac.nlm.nih.gov/vsac/ws/Ticket\");\n System.setProperty(\"SERVER_SINGLE_VALUESET_URL\", \"https://vsac.nlm.nih.gov/vsac/ws/RetrieveValueSet?\");\n System.setProperty(\"SERVER_MULTIPLE_VALUESET_URL_NEW\", \"https://vsac.nlm.nih.gov/vsac/svs/RetrieveMultipleValueSets?\");\n System.setProperty(\"SERVICE_URL\", \"http://umlsks.nlm.nih.gov\");\n System.setProperty(\"PROFILE_SERVICE\", \"https://vsac.nlm.nih.gov/vsac/profiles\");\n System.setProperty(\"VERSION_SERVICE\", \"https://vsac.nlm.nih.gov/vsac/oid/\");\n }",
"@BeforeClass(alwaysRun = true)\n\t@Parameters(\"Environment\")\n\tpublic void startEnvironment(String sEnv) {\n\t\ttry {\n\t\t\tcs = null;\n\t\t\tal = new AppLib(cs);\n\t\t\tal.setEnvironmentInfo(sEnv);\n\t\t\tproxy = al.getHttpProxy();\n\t\t\tapi = new API();\n\t\t\tapi.setProxy(proxy);\n\t\t\tmydb = al.getMongoDbConnection();\n\t\t\tma = new MemberAPIs();\n\t\t\tmember = new TC01_FindMemberFromDB();\n\t\t\t} catch (Exception e) {\n\t\t\t\tfail(e.toString());\n\t\t\t\t}\n\t}",
"private static synchronized void setProperties(final String[] astrArgs) {\n try {\n final String strPropertiesFilename;\n\n if (Args.exists(astrArgs,\n AdaptiveReplicationTool.KEY_PROPERTIES_FILENAME)) {\n final Args args = AdaptiveReplicationTool.KEY_PROPERTIES_FILENAME\n .get(astrArgs);\n\n strPropertiesFilename = args.getArg(0);\n } else {\n strPropertiesFilename = DEFAULT_PROPERTIES_FILENAME;\n }\n setProperties(strPropertiesFilename);\n } catch (Exception excp) {\n throw new RuntimeException(excp);\n } // end try\n }",
"Environment createEnvironment();"
] |
[
"0.6944551",
"0.69156504",
"0.6803051",
"0.66602206",
"0.64663583",
"0.64593565",
"0.64491427",
"0.6419441",
"0.61822945",
"0.6180724",
"0.5988397",
"0.5981072",
"0.5866715",
"0.57662725",
"0.574716",
"0.5716116",
"0.5695236",
"0.5683795",
"0.5680435",
"0.5630704",
"0.56193906",
"0.5617679",
"0.5617264",
"0.5612574",
"0.55535007",
"0.5521157",
"0.55158037",
"0.5504283",
"0.54920626",
"0.5468316",
"0.54676116",
"0.5454839",
"0.5452845",
"0.545065",
"0.54468644",
"0.5372289",
"0.5371403",
"0.5367437",
"0.5365554",
"0.5356471",
"0.53191525",
"0.531348",
"0.5307406",
"0.52624357",
"0.525664",
"0.5251843",
"0.523319",
"0.5219025",
"0.51541793",
"0.5142682",
"0.513124",
"0.5102327",
"0.50846326",
"0.5047286",
"0.5036859",
"0.5006035",
"0.5004009",
"0.49837577",
"0.49628603",
"0.49615476",
"0.49561843",
"0.4954735",
"0.4947064",
"0.4914683",
"0.4913142",
"0.49078894",
"0.49078894",
"0.49072164",
"0.48979932",
"0.48941165",
"0.48803046",
"0.48718613",
"0.4866458",
"0.48612556",
"0.48513278",
"0.4845116",
"0.48449302",
"0.48099706",
"0.48062614",
"0.4802277",
"0.47828355",
"0.47806224",
"0.4779876",
"0.47728696",
"0.47724482",
"0.47722605",
"0.47616425",
"0.47580668",
"0.47502232",
"0.47220466",
"0.4700341",
"0.46961418",
"0.46870196",
"0.4682774",
"0.4678263",
"0.46766943",
"0.4674027",
"0.46599865",
"0.4657266",
"0.46440166"
] |
0.6633887
|
4
|
Sets the group ID of this job.
|
@Override
public void setGroupId(long groupId) {
model.setGroupId(groupId);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setGroupID(int groupID) {\n this.groupID = groupID;\n }",
"public void setGroup(String group) throws InvalidIDException {\r\n\t\tif (group == null) { return; }\r\n\r\n\t\tif (Arrays.binarySearch(Projects.GROUPS, group) < 0) {\r\n\t\t\tthrow new InvalidIDException(\"Attempt to insert an invalid group.\");\r\n\t\t}\r\n\r\n\t\tif (this.groups == null) { this.groups = new HashSet(); }\r\n\t\r\n\t\tthis.groups.add(group);\r\n\t}",
"public void setGroupID(Long newGroupID)\n {\n this.groupID = newGroupID;\n }",
"public void setGroupID(Long GroupID) {\n this.GroupID = GroupID;\n }",
"public void setGroup_id(Long group_id) {\n this.group_id = group_id;\n }",
"public void setGroup(String group) {\n if (group != null && group.trim().length() == 0) {\n throw new IllegalArgumentException(\n \"Group name cannot be an empty string.\");\n }\n\n if(group == null) {\n group = Scheduler.DEFAULT_GROUP;\n }\n\n this.group = group;\n this.key = null;\n }",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_changesetEntry.setGroupId(groupId);\n\t}",
"public void setGroup(final Group group) {\n this.group = group;\n }",
"@Override\n public void setGroupId(long groupId) {\n _partido.setGroupId(groupId);\n }",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_paper.setGroupId(groupId);\n\t}",
"void setGroupId(String groupId);",
"public void setGroupId(String newValue);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_employee.setGroupId(groupId);\n\t}",
"@Override\n\tpublic void setGroupId(long groupId);",
"@Override\n\tpublic void setGroupId(long groupId);",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_esfTournament.setGroupId(groupId);\n\t}",
"public void setGroupId(Integer groupId) {\r\n this.groupId = groupId;\r\n }",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_second.setGroupId(groupId);\n\t}",
"public void setGroupId(long groupId) {\n this.groupId = groupId;\n }",
"public void setGroupId(int groupId) {\n this.groupId = groupId;\n }",
"public void setGroupId(int groupId) {\n this.groupId = groupId;\n }",
"public void setGroupId(Integer groupId) {\n this.groupId = groupId;\n }",
"public void setGroupId(Integer groupId) {\n this.groupId = groupId;\n }",
"public void setContactsGroup()\n\t{\n\t\tUtility.ThreadSleep(1000);\n\t\tList<Long> group = new ArrayList<Long>(Arrays.asList(new Long[] {1l,2l})); //with DB Call\n\t\tthis.groupIds = group;\n\t\tLong contactGroupId = groupIds.get(0);\n\t\tSystem.out.println(\".\");\n\t}",
"public JobBuilder withIdentity(String name, String group) {\n key = new JobKey(name, group);\n return this;\n }",
"public Gateway setGroupId(java.lang.String groupId) {\n return genClient.setOther(groupId, CacheKey.groupId);\n }",
"public void setGroup(UserGroup group) {\n this.group = group;\n }",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_dictData.setGroupId(groupId);\n\t}",
"public void setGroupId( String groupId ) {\n this.groupId = groupId;\n }",
"public void setGroupId(Long groupId) {\n this.groupId = groupId;\n }",
"public void setGroupId(Integer value) {\n set(1, value);\n }",
"public void setGroup (int g) throws PPException{\n\t\t// this test is required because it is not tested in Unit_SetGroup(...)\n\t\tif (g < 0)\n\t\t\tthrow new PPException (\"setGroup -> invalid group, must be upper 0\");\n\t\telse\n\t\t\tif (PPNative.Unit_SetGroup (id, g) == -1)\n\t\t\t\tthrow new PPException (\"setGroup -> \"+PPNative.GetError());\n\t}",
"public void setGroup(entity.Group value);",
"public void setGroupId(Long groupId) {\n\t\tthis.groupId = groupId;\n\t}",
"public void setSizeGroupId(String value) {\n setAttributeInternal(SIZEGROUPID, value);\n }",
"public void setGroupId(String groupId) {\n\t\tthis.groupId = groupId == null ? null : groupId.trim();\n\t}",
"public Long getGroupID()\n {\n return groupID;\n }",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_scienceApp.setGroupId(groupId);\n\t}",
"public int getIdGroup() {\n return idGroup;\n }",
"public void setPeerGroupID(PeerGroupID gid) {\n this.gid = gid;\n incModCount();\n }",
"public void setGroupKey(String GroupKey) {\n this.GroupKey = GroupKey;\n }",
"public Long getGroup_id() {\n return group_id;\n }",
"public long getGroupId() {\n return groupId;\n }",
"public void setGroupcode(java.lang.Integer newGroup) {\n\tgroupcode = newGroup;\n}",
"public Long getGroupId() {\n return groupId;\n }",
"public Long getGroupId() {\n\t\treturn groupId;\n\t}",
"public ID getGroupID() {\n\treturn groupID;\n }",
"public int getGroupId() {\n return groupId;\n }",
"public int getGroupId() {\n return groupId;\n }",
"public int getGroupID() {\n return groupID;\n }",
"@Override\n public void setGroupSet(final boolean val) {\n groupSet = val;\n }",
"public void setGroupEnabled(int group, boolean enabled);",
"public void setGroupName(String groupName){\r\n if (this.errorInString(groupName)) {\r\n this.addErrorMessage(0, \"Group name is incorrect.\");\r\n } else {\r\n this.groupName = Validator.escapeJava(groupName);\r\n setValidData(0, true);\r\n }\r\n }",
"public Integer getGroupId() {\r\n return groupId;\r\n }",
"public void patch(Long id, GroupDto groupDto)\n\t{\n\t\tGroup group = new Group();\n\t\tif (groupDto.getName() != null) group.setName(groupDto.getName());\n\t\t\n\t\tif (groupDto.getSize() != null) group.setSize(groupDto.getSize());\n\t\t\n\t}",
"public void modifyGroup(String id) {\r\n //TODO\r\n System.out.println(\"conectado con model ---> metodo modifyGroup\");\r\n }",
"public void overrideGroup(String group) {\n this.group = group;\n }",
"public String getGroupId() {\n\t\treturn groupId;\n\t}",
"public Integer getGroupId() {\n return groupId;\n }",
"public Integer getGroupId() {\n return groupId;\n }",
"private void setGroupIndex(int value) {\n bitField0_ |= 0x00000001;\n groupIndex_ = value;\n }",
"@Override\n\tpublic void setGroupId(long groupId) {\n\t\t_permissionType.setGroupId(groupId);\n\t}",
"public boolean setGroup(int personId, int groupId) throws SQLException {\r\n\t\tContentValues args = new ContentValues();\r\n\t\targs.put(KEY_GROUP_ID, groupId);\r\n\t\treturn db.update(DATABASE_TABLE, args, KEY_PERSON_ID + \"=\" + personId,\r\n\t\t\t\tnull) > 0;\r\n\t}",
"public String getGroupId()\n {\n return groupId;\n }",
"@Override\n\tpublic void stopGroup(Integer id) {\n\t\tString hql = \"update HhGroup h set h.groupStatus = 2 where h.id = \" + id;\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\tquery.executeUpdate();\n\t}",
"public void setGroupname(java.lang.String newGroupname) {\n\tgroupname = newGroupname;\n}",
"public String getGroupId() {\n\t\treturn this.groupId;\n\t}",
"public void setName(String name) {\n internalGroup.setName(name);\n }",
"public Long getGroupID() {\n return this.GroupID;\n }",
"void updateGroup(@Nonnull UserGroup group);",
"public Group(String id) {\n super(id);\n setConstructor(SvgType.GROUP);\n }",
"public void setGroupUid(String groupUid) {\n\t\tthis.groupUid = groupUid;\n\t}",
"public void allocateGroupId(){\n\t\trecords.add(new pair(this.groupname,currentId));\n\t\tthis.groupid = currentId;\n\t\tcurrentId++;\n\t\tConnection c = null;\n\t\tStatement stmt = null;\n\t\ttry{\n\t\t\tSystem.out.println(\"group setup\");\n\t\t\tSystem.out.println(this.groupid);\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tc = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/ifoundclassmate\");\n\t\t\tc.setAutoCommit(false);\n\t\t\tstmt = c.createStatement();\n\t\t\tString sql = \"INSERT INTO GROUPS (GROUPID,GROUPNAME,DESCRIPTION) \"+\n\t\t\t\t\t\"VALUES (\" + this.groupid + \", \" + \"'\" +this.groupname + \"'\"\n\t\t\t\t\t+\" , \" + \"'\" + this.description + \"' \" + \");\" ;\n\t\t\tstmt.executeUpdate(sql);\n\t\t\t\n\t\t\tstmt.close();\n\t\t\tc.commit();\n\t\t\tc.close();\n\t\t} catch (Exception e ){\n\t\t\tSystem.out.println(e.getClass().getName() + e.getMessage() );\n\t\t\treturn;\n\t\t}\n\t\treturn;\n\t}",
"public void setSettingGroupIdForModalDlg(Long id) {\n\t\tsetEntityIdForModalDlg(id);\n\t}",
"public String groupId() {\n return this.groupId;\n }",
"public void setGroupValue(String testCaseID)\r\n\t{\r\n\t\tgroupTestID=testCaseID;\r\n\t\tgroupTestScenario=getTestScenario(testCaseID);\t\r\n\t\tLog.info(\"======== \"+groupTestID+\" : \"+groupTestScenario+\" ========\");\r\n\t}",
"public void put(Long id, GroupDto groupDto) {\n\t\tGroup group = groupMapper.toGroup(groupDto);\n\t\tgroup.setId(id);\n\t\tgroupRepository.save(group);\n\t\t\n\t}",
"public void setGroup (String format, Object ... args)\n {\n group = String.format (format, args);\n }",
"public void setGroup (String format, Object ... args)\n {\n group = String.format (format, args);\n }",
"public long getGroupId();",
"public long getGroupId();",
"public long getGroupId();",
"public long getGroupId();",
"public long getGroupId();",
"public long getGroupId();",
"public void setIdGrupo(String idGrupo) {\n\t\tthis.idGrupo = idGrupo;\n\t}",
"public long getGroup()\r\n { return group; }",
"public void setLogGroup(int aNewGroup) {\n mLogGroup = aNewGroup;\n }",
"@ApiModelProperty(value = \"Unique identifier for the group\")\n @JsonProperty(\"id\")\n public Long getId() {\n return id;\n }",
"public void setAdgroupid(Long adgroupid) {\r\n this.adgroupid = adgroupid;\r\n }",
"public void setGroupRoleId(Long groupRoleId) {\n\t\tthis.groupRoleId = groupRoleId;\n\t}",
"public void setGroupSequence(Long groupSeq) throws IllegalArgumentException\n {\n if(groupSeq == null)\n {\n if(_message.getProperties() == null)\n {\n return;\n }\n else\n {\n _message.getProperties().setGroupSequence(null);\n }\n }\n else\n {\n if(groupSeq < 0 || groupSeq > 0xFFFFFFFFL)\n {\n throw new IllegalArgumentException(\"Value '\"+groupSeq+\"' lies outside the range [0 - 2^32).\");\n }\n\n _message.setGroupSequence(groupSeq);\n }\n }"
] |
[
"0.7081918",
"0.6955477",
"0.6932693",
"0.69014585",
"0.6852215",
"0.67563784",
"0.66780156",
"0.6619902",
"0.6593351",
"0.6555423",
"0.65329254",
"0.6497138",
"0.6478629",
"0.6478629",
"0.6478629",
"0.6478629",
"0.6478629",
"0.6478629",
"0.64405096",
"0.6437366",
"0.6437366",
"0.63911676",
"0.6355574",
"0.63294405",
"0.6303054",
"0.629388",
"0.629388",
"0.62841797",
"0.62841797",
"0.6268137",
"0.6251909",
"0.62403095",
"0.6188561",
"0.61882234",
"0.61802346",
"0.61602885",
"0.6158272",
"0.6153685",
"0.6105066",
"0.60907537",
"0.60761476",
"0.6075822",
"0.6040357",
"0.6031335",
"0.6006854",
"0.5989088",
"0.59753066",
"0.5947926",
"0.5941817",
"0.588909",
"0.58877057",
"0.5846206",
"0.58285743",
"0.58173907",
"0.58173907",
"0.58077544",
"0.5806943",
"0.57855135",
"0.57817286",
"0.5760723",
"0.57462186",
"0.57373416",
"0.573364",
"0.57317734",
"0.573106",
"0.573106",
"0.57294184",
"0.57207793",
"0.5712845",
"0.566778",
"0.5646705",
"0.56177294",
"0.5617622",
"0.5615478",
"0.5601158",
"0.55802727",
"0.5578485",
"0.5569743",
"0.55518293",
"0.55447143",
"0.55432224",
"0.55091363",
"0.5476723",
"0.54765224",
"0.54765224",
"0.5445614",
"0.5445614",
"0.5445614",
"0.5445614",
"0.5445614",
"0.5445614",
"0.5426067",
"0.5404398",
"0.5402207",
"0.53996545",
"0.53802466",
"0.53601766",
"0.5355249"
] |
0.67220604
|
8
|
Sets the job ID of this job.
|
@Override
public void setJobId(long jobId) {
model.setJobId(jobId);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public JobBuilder id(int id) {\r\n job.setId(id);\r\n return this;\r\n }",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setId(java.lang.String value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public void setJobId( int jobId ) ;",
"public Job(int id) {\n this.id = id;\n }",
"public void setJobID(int jobId) {\n\t\tthis.jobsId.add(jobId);\n\t}",
"public Builder setJobId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"public JobLog setId(long id) {\n this.id = id;\n return this;\n }",
"public String getJobID() {\n\t\t\treturn JobID;\n\t\t}",
"public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);",
"public Long getJobID() {\n return jobID;\n }",
"@Override\n\tpublic void setJob(String job) {\n\t\tsuper.setJob(job);\n\t}",
"public void setJobId(int jobId) {\r\n\t\tthis.jobId = jobId;\r\n\t}",
"public void setId(Long pid) {\n this.pid = pid;\n }",
"public void setJob(String job) {\n this.job = job;\n }",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"protected void setId(long id) {\n if (this.id == -1)\n this.id = id;\n }",
"protected void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public Builder setJobIDTarget(long value) {\n bitField0_ |= 0x00000010;\n jobIDTarget_ = value;\n onChanged();\n return this;\n }",
"public void setId(final long id) {\n this.id = id;\n }",
"public final void setId(long id) {\n mId = 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(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long id){\n\t\tthis.id = id;\n\t}",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public void setId(long id) {\r\n this.id = id;\r\n }",
"public void setJob(String job) {\r\n\t\t\tthis.job = job;\r\n\t\t}",
"public void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n this.id.set(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(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 setJOB_ID(BigDecimal JOB_ID) {\r\n this.JOB_ID = JOB_ID;\r\n }",
"public void setID(long value) {\n this.id = value;\n }",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setServiceId(long value) {\n validate(fields()[2], value);\n this.serviceId = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setId(long _id)\r\n {\r\n this._id = _id;\r\n this.hashCode = Integer.MIN_VALUE;\r\n }",
"@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}",
"@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}",
"public void setId (long id)\r\n {\r\n _id = id;\r\n }",
"public void setHC_JobDataChange_ID (int HC_JobDataChange_ID);",
"public void setJob(Job job) throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(jobChannel, job.ordinal(), 2);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to set JOB for the robot\", e);\n \t\t}\n \t}",
"public void setId(int id) {\r\n this.id = id;\r\n job = acceptFreelancerBean.getJob(id); \r\n if (job!= null){\r\n fid=job.getFid();\r\n }\r\n }",
"public void setID(long id);",
"public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(java.lang.Long id) {\n this.id = id;\n }",
"public void setId(java.lang.Long id)\n\t{\n\t\tthis.id = id;\n\t}",
"public void setId(java.lang.Long id)\n\t{\n\t\tthis.id = id;\n\t}",
"public void setId(long id);",
"public void setId(long id);",
"public void setId(long id);",
"public void setId(long id);",
"public void setId (Long id) {\r\n\t\tthis.id = id;\r\n\t\tthis.hashCode = Integer.MIN_VALUE;\r\n\t}",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id) {\n\tthis.id = id;\n }",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\t\tthis.id = id;\n\t}",
"public void setId(java.lang.Long value) {\n this.id = value;\n }",
"public void setId(Long value) {\n this.id = value;\n }",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public void setId(long id) {\n\t\tgetTo(false).setId(id);\n\t}"
] |
[
"0.7282479",
"0.68161815",
"0.6710942",
"0.6656964",
"0.6564363",
"0.6452335",
"0.6365043",
"0.6342081",
"0.6290289",
"0.62719744",
"0.6263944",
"0.6256616",
"0.6224137",
"0.62035084",
"0.6183142",
"0.61656106",
"0.61656106",
"0.61656106",
"0.61628014",
"0.61626333",
"0.6150056",
"0.61405534",
"0.6137166",
"0.6136884",
"0.6136884",
"0.6136482",
"0.6136482",
"0.6136482",
"0.6136482",
"0.6136482",
"0.6136482",
"0.6136482",
"0.6135279",
"0.6134971",
"0.6134971",
"0.61262065",
"0.61240864",
"0.6118056",
"0.6118056",
"0.6118056",
"0.6118056",
"0.6109473",
"0.6109184",
"0.6109184",
"0.6109184",
"0.6109184",
"0.6109184",
"0.6088401",
"0.60873437",
"0.60695165",
"0.60527843",
"0.6050608",
"0.6050608",
"0.60492325",
"0.6042896",
"0.6037151",
"0.60360134",
"0.6020986",
"0.60198885",
"0.60198885",
"0.60198885",
"0.60198885",
"0.60198885",
"0.6017032",
"0.59997535",
"0.59997535",
"0.59937793",
"0.59937793",
"0.59937793",
"0.59937793",
"0.59859955",
"0.5975564",
"0.5975564",
"0.59704566",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.5969238",
"0.59620804",
"0.59618163",
"0.59606683",
"0.59606683",
"0.59606683",
"0.59566504"
] |
0.6421484
|
6
|
Sets the job name of this job.
|
@Override
public void setJobName(String jobName) {
model.setJobName(jobName);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setJobName(String jobName);",
"public JobBuilder name(String name) {\r\n job.setName(name);\r\n return this;\r\n }",
"public void setJobName(String jobName) {\n this.jobName = jobName;\n }",
"public void setJobName(String jobName) {\n this.jobName = jobName;\n }",
"public void setJobName(String jobName) {\n this.jobName = jobName;\n }",
"public void setJobName(String JobName) {\n this.JobName = JobName;\n }",
"public Builder setTargetJobName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n targetJobName_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setJob(String job) {\n\t\tsuper.setJob(job);\n\t}",
"public void setName(String name) {\n if (!name.isEmpty()) {\n this.name = name;\n }\n }",
"public final void setName(final String inName) {\n mName = inName;\n }",
"public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final java.lang.String name) {\n this.name = name;\n }",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"public void setName(final String name) {\n mName = name;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public final void setName(String name) {\n\t\tthis.name = name;\n\t}",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name)\n {\n checkState();\n this.name = name;\n }",
"public void setName(java.lang.String _name)\n {\n name = _name;\n }",
"public void setName(java.lang.String _name)\n {\n name = _name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(final java.lang.String name) {\r\n this._name = name;\r\n }",
"public void setName(String name) {\n \tif (name==null)\n \t\tthis.name = \"\";\n \telse\n \t\tthis.name = name;\n\t}",
"public String getJobName() {\n return jobName;\n }",
"public String getJobName() {\n return jobName;\n }",
"public void setName(String nameIn) {\n name = nameIn;\n }",
"public void setName (java.lang.String _name) {\n\t\tthis._name = _name;\n\t}",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName(java.lang.String name) {\n this.name = name;\n }",
"public void setName( final String name )\n\t{\n\t\tthis.name = name;\n\t}",
"public String getJobName() {\n return this.jobName;\n }",
"public void setName (String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\t_name = name;\r\n\t}",
"public void setName (java.lang.String name) {\r\n\t\tthis.name = name;\r\n\t}",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}",
"public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}",
"public void setName( final String name )\r\n {\r\n this.name = name;\r\n }",
"public void setName(String _name) {\n this._name = _name;\n }",
"public void setName(String name) {\n\t\tthis.name = name;\n\t\tfireChange();\n\t}",
"public void setName( java.lang.String newValue ) {\n __setCache(\"name\", newValue);\n }",
"@IcalProperty(pindex = PropertyInfoIndex.NAME,\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setName(final String val) {\n name = val;\n }",
"public void setName(String name) {\n _name = name;\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this._name = name;\r\n }",
"protected void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\n\t\tmName = name;\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}"
] |
[
"0.8390688",
"0.75413394",
"0.74714315",
"0.74714315",
"0.74714315",
"0.7290595",
"0.7158091",
"0.67002124",
"0.6658934",
"0.65987206",
"0.65595114",
"0.65595114",
"0.6556634",
"0.6556634",
"0.6556634",
"0.6556634",
"0.6552834",
"0.6541053",
"0.65359086",
"0.6524007",
"0.65210384",
"0.65196437",
"0.65196437",
"0.65196437",
"0.65196437",
"0.65128946",
"0.6507783",
"0.6507783",
"0.6500186",
"0.6500186",
"0.64952916",
"0.64793164",
"0.64793164",
"0.64719933",
"0.6467978",
"0.6460365",
"0.64589417",
"0.64589417",
"0.64499307",
"0.6433563",
"0.6432627",
"0.6432627",
"0.6432627",
"0.6432627",
"0.6432627",
"0.6432627",
"0.6432627",
"0.6432627",
"0.6432627",
"0.6432627",
"0.6429155",
"0.6423819",
"0.6422474",
"0.64211106",
"0.6414224",
"0.64073443",
"0.64073443",
"0.64017886",
"0.64017886",
"0.6399878",
"0.6395723",
"0.639203",
"0.6391823",
"0.6391608",
"0.638984",
"0.63888067",
"0.63888067",
"0.63888067",
"0.63888067",
"0.63888067",
"0.6387709",
"0.63866764",
"0.63864094",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955",
"0.63791955"
] |
0.77130514
|
1
|
Sets the job status of this job.
|
@Override
public void setJobStatus(int jobStatus) {
model.setJobStatus(jobStatus);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setJobStatus(Integer jobStatus) {\n this.jobStatus = jobStatus;\n }",
"public void setStatus(JobStatus status);",
"public void setJobStatus(String jobStatus) {\n this.jobStatus = jobStatus;\n }",
"public void setJobStatus(String jobStatus) {\n this.jobStatus = jobStatus;\n }",
"public JobBuilder status(String status) {\r\n job.setStatus(status);\r\n return this;\r\n }",
"public void setStatus(BatchStatus value) {\n this.status = value;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setJobProgress(JobProgress jobProgress) {\n this.jobProgress = jobProgress;\n }",
"void setStatus(TaskStatus status);",
"public void setStatus(JenkinsStatus status) {\n this.status = status;\n }",
"public void setJobState(int jobState) {\n this.jobState = jobState;\n }",
"public void setJob_StatusCheck(StatusCheckDataObject job_StatusCheck) {\r\n this.job_StatusCheck = job_StatusCheck;\r\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setStatus(ProcessModelStatus status) {\r\n this.status = status;\r\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"@JsonProperty(\"status\")\n public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(@NotNull Status status) {\n this.status = status;\n }",
"public synchronized void setStatus(Status stat) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n\n if (stat == null) {\n throw new IllegalArgumentException(\n \"TestResult status cannot be set to null!\");\n }\n\n // close out message section\n sections[0].setStatus(null);\n\n execStatus = stat;\n\n if (execStatus == inProgress) {\n execStatus = interrupted;\n }\n\n // verify integrity of status in all sections\n for (Section section : sections) {\n if (section.isMutable()) {\n section.setStatus(incomplete);\n }\n }\n\n props = PropertyArray.put(props, SECTIONS,\n StringArray.join(getSectionTitles()));\n props = PropertyArray.put(props, EXEC_STATUS,\n execStatus.toString());\n\n // end time now required\n // mainly for writing in the TRC for the Last Run Filter\n if (PropertyArray.get(props, END) == null) {\n props = PropertyArray.put(props, END, formatDate(new Date()));\n }\n\n // this object is now immutable\n notifyCompleted();\n }",
"public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status)\n {\n setValue(\"status\", status);\n }",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(Long Status) {\n this.Status = Status;\n }",
"public UpdateClassificationJobRequest withJobStatus(JobStatus jobStatus) {\n this.jobStatus = jobStatus.toString();\n return this;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"@IcalProperty(pindex = PropertyInfoIndex.STATUS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setStatus(final String val) {\n status = val;\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) { this.status = status; }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"public void setStatus(boolean value) {\n this.status = value;\n }",
"public void setStatus(boolean value) {\n this.status = value;\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"public void setStatus(ServiceTaskStatus status) {\n\t\tthis.status = status;\n\t}",
"public void status(boolean b) {\n status = b;\n }",
"public void setStatus(final String status) {\n this.status = status;\n }",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public void setStatus(String _status) {\n this._status = _status;\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(boolean status) {\n\tthis.status = status;\n }"
] |
[
"0.769927",
"0.76732546",
"0.76007074",
"0.76007074",
"0.7552295",
"0.6950676",
"0.67752856",
"0.67309844",
"0.6729566",
"0.67006075",
"0.6654908",
"0.66513586",
"0.66264653",
"0.6582362",
"0.6577502",
"0.65721214",
"0.65721214",
"0.65721214",
"0.65721214",
"0.65517956",
"0.6534906",
"0.6512852",
"0.6507987",
"0.649891",
"0.6456197",
"0.64490855",
"0.64441353",
"0.64441353",
"0.64422053",
"0.64395446",
"0.64395446",
"0.6437349",
"0.64363295",
"0.64363295",
"0.64363295",
"0.64363295",
"0.64363295",
"0.643103",
"0.642331",
"0.64161026",
"0.64161026",
"0.6413989",
"0.64098275",
"0.64098275",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640592",
"0.640042",
"0.640042",
"0.640042",
"0.640042",
"0.6393506",
"0.6393506",
"0.6393506",
"0.6393506",
"0.6393506",
"0.6393506",
"0.6393506",
"0.6393506",
"0.6393506",
"0.6393506",
"0.6393506",
"0.6393506",
"0.6393506",
"0.6393506",
"0.6393506",
"0.6393506",
"0.63882816",
"0.63812447",
"0.63812447",
"0.6381063",
"0.6371887",
"0.63700426",
"0.63685966",
"0.63685966",
"0.6362319",
"0.6362319",
"0.63591945",
"0.63439065",
"0.6330997",
"0.6328541",
"0.63270235",
"0.63215876",
"0.6318752"
] |
0.7699152
|
1
|
Sets the log file name of this job.
|
@Override
public void setLogFileName(String logFileName) {
model.setLogFileName(logFileName);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setLogFile(String filename) throws IOException {\n\t\tlogger.setLogfilePrefix(filename);\n\t}",
"public void setLogfile( String logfilename )\n {\n // guard\n {\n if( this.isopen() )\n {\n log.warn( \"Changing logfilename while logfile has already been opened.\" );\n }\n }\n\n this.logfilename = logfilename;\n }",
"public void setLogFile(String logFile)\r\n\t{\r\n\t\tm_logFile = logFile;\r\n\t}",
"void setLoggerConfigFileName(String fileName);",
"public void setLogFile(String logFile) {\n this.logFile = logFile;\n }",
"public void setLogFile(String logFile) {\n agentConfig.setLogFile(logFile);\n logConfigChanged();\n }",
"public void setLog(String logName) {\r\n this.delegate.setLog(logName);\r\n }",
"void setLogFile(File log);",
"public void setFileName(String name) {\r\n this.fileName = name == null ? null : name.substring(name.lastIndexOf(File.separator) + 1);\r\n }",
"public void setFileName(final String theName)\r\n {\r\n\r\n // this means we are currently in a save operation\r\n _modified = false;\r\n\r\n // store the filename\r\n _fileName = theName;\r\n\r\n // and use it as the name\r\n if (theName.equals(NewSession.DEFAULT_NAME))\r\n setName(theName);\r\n\r\n }",
"@Override\n\tpublic String getLogFileName() {\n\t\treturn model.getLogFileName();\n\t}",
"public void setFileName( String name ) {\n\tfilename = name;\n }",
"public void setFileName(final File filename) {\n fFileName = filename;\n }",
"public void setName(String filename) {\n\t\tthis.filename = filename;\n\t}",
"private String setFileName() {\n Calendar c = Calendar.getInstance();\n\n String LOG = \"\";\n\n LOG += c.get(Calendar.YEAR);\n\n if (c.get(Calendar.MONTH) < 10)\n LOG += \"0\";\n LOG += c.get(Calendar.MONTH) + 1;\n\n if (c.get(Calendar.DATE) < 10)\n LOG += \"0\";\n LOG += c.get(Calendar.DATE);\n\n if (c.get(Calendar.HOUR_OF_DAY) < 10)\n LOG += \"0\";\n LOG += c.get(Calendar.HOUR_OF_DAY);\n\n if (c.get(Calendar.MINUTE) < 10)\n LOG += \"0\";\n LOG += c.get(Calendar.MINUTE);\n\n LOG += \".csv\";\n\n return LOG;\n }",
"public void setFileName(String filename)\n\t{\n\t\tsuper.setFileName(filename);\n\t\t\n\t\t//#CM702602\n\t\t// Generate the path name of Working data File. \n\t\tworkingDataFileName = wFileName.replaceAll(\"\\\\\\\\send\\\\\\\\\", \"\\\\\\\\recv\\\\\\\\\");\n\t}",
"public void setFileName(String name)\n\t{\n\t\tfileName = name;\n\t}",
"public void setFileName(String fileName)\r\n {\r\n sFileName = fileName;\r\n }",
"void setFileName( String fileName );",
"public final void setFileName(final String fileName) {\n this.fileName = fileName;\n }",
"public void setFileName(final String fileName) {\r\n this.fileName = fileName;\r\n }",
"private void setFileName(final String fileName) {\n\t\t// almacenamos el nombre del fichero\n\t\tthis.fileName = fileName;\n\t}",
"public void SetFileName(String fileName) {\r\n\tthis.fileName = fileName;\r\n }",
"public void setFileName(String fileName) {\r\n this.fileName = fileName;\r\n }",
"public void setFileName(String fileName)\r\n\t{\r\n\t\tsettings.setFileName(fileName);\r\n\t}",
"public void setFileName(String fileName) {\n\t\tnew LabeledText(\"File name\").setText(fileName);\n\t}",
"public void setFileName(String fileName)\r\n\t{\r\n\t\tm_fileName = fileName;\r\n\t}",
"public final void setPropertyFileName(String fileName) {\n this.propertyFileName = fileName;\n }",
"public void setFileName(String fileName) {\n this.fileName = fileName;\n }",
"public void setFileName(String fileName)\r\n/* 16: */ {\r\n/* 17:49 */ this.fileName = fileName;\r\n/* 18: */ }",
"public void setFileName(final String fileName) {\n\t\tthis.fileName = fileName;\n\t}",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n fileName_ = value;\n onChanged();\n return this;\n }",
"abstract protected String getLogFileName();",
"public void setFileName(String fileName) {\r\n\t\tthis.fileName = fileName;\r\n\t}",
"public void setFileName(String fileName) {\r\n\t\tthis.fileName = fileName;\r\n\t}",
"public void setFileName(String fileName) {\n this.fileName = fileName;\n }",
"public void setFileName(String fileName) {\n this.fileName = fileName;\n }",
"public void setFileName(String fileName) {\n this.fileName = fileName;\n }",
"public void setFileName(String fileName) {\n this.fileName = fileName;\n }",
"public void setFileName(String fileName) {\n this.fileName = fileName;\n }",
"public static void setVTKLogFile(String fileName)\n { \n vtkFileOutputWindow output = new vtkFileOutputWindow();\n output.SetFileName(fileName);\n new vtkOutputWindow().SetInstance(output);\n }",
"public void setFilename(final String filename)\n {\n this.currentFile = filename; // for use with Gnu Emacs\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n fileName_ = value;\n onChanged();\n return this;\n }",
"public void setFileName(String fileName) {\n/* 39:39 */ this.fileName = fileName;\n/* 40: */ }",
"public void setFileName(String fileName) {\r\n this.fileName = fileName == null ? null : fileName.trim();\r\n }",
"public void setCurrFileName(String filename) {\n this.lblCurrProcessInformation.setText(\"Currently \"+processCaption+\" \"+filename);\n }",
"void setJobName(String jobName);",
"public void setName(String name)\n {\n if (name == null || DefaultFileHandler.sanitizeFilename(name, getLogger()).isEmpty())\n {\n throw new NullPointerException(\"Custom deployable name cannot be null or empty\");\n }\n this.name = name;\n }",
"public void setFileName(String fileName) {\n this.fileName = fileName == null ? null : fileName.trim();\n }",
"public void setFileName(String fileName) {\n this.fileName = fileName == null ? null : fileName.trim();\n }",
"public void setFileName(String fileName) {\n this.fileName = fileName == null ? null : fileName.trim();\n }",
"public static void setFilename(String filename) {\n DownloadManager.filename = filename;\n }",
"public String getInputLogFilename() {\n return inputLogFilename;\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }",
"public void setPropertyFileName(String propertyfileName)\r\n\t{\r\n\t\t// propertyfileName = propertyFileName;\r\n\t\tpropertyFileName = propertyfileName;\r\n\t}",
"public void setFileName(String fileName)\n\t{\n\t\tthis.fileName = fileName;\n\t}",
"public void setFilename( String name) {\n\tfilename = name;\n }",
"protected void setName(String name) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"a7eb4750-e93f-41a2-ab4f-3fcf8cb1f39b\");\n if (name != null && getPlatform() == PLATFORM_FAT && !name.contains(\"/\")) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"6d8baf11-928b-4d13-a982-c28e6d5c3bb7\");\n name = name.replace('\\\\', '/');\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e80bbe2d-caf4-4e25-b64c-8fef2f2969dd\");\n this.name = name;\n }",
"public void setFilename(String f){\n\t\tfilename = f;\n\t}",
"protected String logFile(AggregatedJob job) {\n StringBuffer sb = new StringBuffer(32);\n if (mGlobalLog) {\n // the basename of the log file is derived from the dag name\n sb.append(this.mClusteredADag.getLabel());\n } else {\n // per seqexec job name\n sb.append(job.getName());\n }\n sb.append(this.SEQEXEC_PROGRESS_REPORT_SUFFIX);\n return sb.toString();\n }",
"public void setFileName(@Nullable String documentName) {\n this.fileName = documentName;\n }",
"public void setFilename(String name){\n\t\tfilename = name;\n\t}",
"public void setFileName(String fileName) {\n\t\tthis.fileName = fileName;\n\t}",
"public void setFileName(String fileName) {\n\t\tthis.fileName = fileName;\n\t}",
"public String getLogName() {\n return logName;\n }",
"private void setFileNamePath(String value) {\n\t\tthis.fileNamePath = value;\n\t}",
"public void setName(String fileName) throws FormatException {\n evaluate(fileName);\n }",
"public void updateFileName()\n {\n\n String fn= presenter.getCurrentTrack().getFileName();\n if(fn!=null && !fn.isEmpty()) {\n File file = new File(fn);\n fn=file.getName();\n }\n if(fn==null || fn.isEmpty())\n fn=\"*\";\n fileNameTextView.setText(fn);\n }",
"@DISPID(19)\r\n\t// = 0x13. The runtime will prefer the VTID if present\r\n\t@VTID(21)\r\n\tjava.lang.String logFilename();",
"public void setTraceFile(String fileName)\r\n {\r\n this.filename = fileName;\r\n }",
"public static void setPropertyFilename(String aFileName) {\n checkNotNull(aFileName, \"aFileName cannot be null\");\n propertyFileName = aFileName;\n }",
"public void setFilename(final String filename) {\n\t\tthis.filename = filename;\n\t}",
"public String getLogFile() {\n return logFile;\n }",
"public String getOutputLogFilename() {\n return outputLogFilename;\n }",
"public FileLogger(String fileName){\r\n\t\tthis(fileName, false);\r\n\t}",
"public void setFileName(String nomeFile) {\n\t\tthis.fileName = nomeFile;\n\t}",
"public void setFilename(String fn) {\n\t\tfilename = fn;\n\t}",
"public void setFilename(String filename) {\n this.filename = filename;\n }",
"public void setFilename(String filename) {\n this.filename = filename;\n }",
"public void setFilename(String filename) {\n this.filename = filename == null ? null : filename.trim();\n }",
"void setFileName(String inputFileName)\n {\n this.inputFileName = inputFileName;\n }",
"public void setFile(String fileName)\n {\n }",
"public void SetRingbackFile(String filename){\n FunctionLogger logger=new FunctionLogger(\"SetRingbackFile\",this,myLogger);\n logger.args(filename);\n \n RingbackFile = filename;\n }",
"public WriteLogger( String logfilename )\n {\n this.logfilename = logfilename;\n\n this.logfile = null;\n this.out = null;\n }",
"public Builder setTargetJobName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n targetJobName_ = value;\n onChanged();\n return this;\n }",
"public void writeLog(String oldName, ArrayList<String> changesLog) throws IOException {\n String logs = String.join(\"\\n \", changesLog);\n FileHandler handler = new FileHandler(\"PhotoRenaming.log\", true);\n SimpleFormatter formatterTxt = new SimpleFormatter();\n handler.setFormatter(formatterTxt);\n LOGGER.addHandler(handler);\n if (oldName.equals(\"\")) {\n LOGGER.info(\n \"\\n File Path: \"\n + photo.getUrl()\n + \"\\n \"\n + \" Rename failed.\\n \"\n + logs\n + \"\\n\");\n } else {\n LOGGER.info(\n \"\\nFile Path:\"\n + photo.getUrl()\n + \"\\n Rename: \"\n + oldName\n + \" -> \"\n + photo.getTagName()\n + \"\\n \"\n + logs\n + \"\\n\");\n }\n handler.close();\n }",
"public void setJobFilePath(File file) {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n if (file != null) {\n prefs.put(powerdropshipDir, file.getPath());\n\n primaryStage.setTitle(\"PowerDropship - \" + file.getName());\n } else {\n prefs.remove(powerdropshipDir);\n\n primaryStage.setTitle(\"PowerDropship\");\n }\n }",
"public void setCurrentFile(String name) {\n\t\tthis.currentFile = name;\n\t}",
"public void updateLog(String newName){\r\n\t\tString timeStamp = new SimpleDateFormat(\"yyyy/MM/dd HH:mm.ss\").format(new java.util.Date());\r\n\t\tlogger.log(Level.SEVERE,\"Previous name:{0}, New Name: {1}, Date: {2}\", new Object[] {name, newName,timeStamp});\r\n\t}",
"public void setName(String name) {\n if (name == null || name.trim().length() == 0) {\n throw new IllegalArgumentException(\n \"Trigger name cannot be null or empty.\");\n }\n\n this.name = name;\n this.key = null;\n }",
"public void setFileName(edu.umich.icpsr.ddi.FileNameType fileName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileNameType target = null;\n target = (edu.umich.icpsr.ddi.FileNameType)get_store().find_element_user(FILENAME$0, 0);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileNameType)get_store().add_element_user(FILENAME$0);\n }\n target.set(fileName);\n }\n }",
"public void setOriginalFileName(String newValue);",
"private String generateFileName() {\n\t\t\n\t\treturn \"/tmp/logger.java_log\" + new Random().nextInt();\n\t}",
"private void setSourceName(String name) {\n srcFileName = name;\n }",
"public void setFilename(String filename) {\n\t\tthis.filename = filename;\n\t}"
] |
[
"0.7161571",
"0.7102467",
"0.67327476",
"0.6722113",
"0.6673068",
"0.65427923",
"0.6485559",
"0.6415535",
"0.63652015",
"0.63639325",
"0.6301062",
"0.62151027",
"0.62107974",
"0.6199421",
"0.6146406",
"0.61327183",
"0.6131331",
"0.60831493",
"0.60780174",
"0.6031932",
"0.60208166",
"0.5935044",
"0.5920183",
"0.5885392",
"0.5876469",
"0.58669007",
"0.5829074",
"0.58198947",
"0.5817029",
"0.58090633",
"0.5789516",
"0.57862854",
"0.5776041",
"0.5768192",
"0.5768192",
"0.5763075",
"0.5763075",
"0.5763075",
"0.5763075",
"0.5763075",
"0.57462215",
"0.5737173",
"0.57355785",
"0.57132816",
"0.57053894",
"0.5704884",
"0.56960905",
"0.5689856",
"0.5682194",
"0.5682194",
"0.5682194",
"0.5666602",
"0.5643623",
"0.5640863",
"0.5640863",
"0.5640863",
"0.5640863",
"0.5640863",
"0.5640863",
"0.56132466",
"0.56108254",
"0.5608231",
"0.5607221",
"0.5601061",
"0.5591843",
"0.5578267",
"0.55697554",
"0.5562741",
"0.5562741",
"0.5554978",
"0.55445814",
"0.5543218",
"0.5535081",
"0.55060667",
"0.5481166",
"0.54466856",
"0.54442334",
"0.5437811",
"0.54256886",
"0.5410196",
"0.54020476",
"0.53958493",
"0.5360715",
"0.5360715",
"0.5352167",
"0.5346359",
"0.5341799",
"0.5333289",
"0.53201973",
"0.5316426",
"0.53088117",
"0.53049225",
"0.5294624",
"0.52924913",
"0.5291704",
"0.5272989",
"0.5272411",
"0.5231886",
"0.5225364",
"0.52213895"
] |
0.6820129
|
2
|
Sets the modified date of this job.
|
@Override
public void setModifiedDate(Date modifiedDate) {
model.setModifiedDate(modifiedDate);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setModified(Date modified) {\r\n\t\tthis.modified = modified;\r\n\t}",
"public void setModifiedDate(Date modifiedDate);",
"public void setModifiedDate(Date modifiedDate);",
"public void setModifiedDate(Date modifiedDate);",
"@Override\n\tpublic void setModifiedDate(Date modifiedDate);",
"@Override\n\tpublic void setModifiedDate(Date modifiedDate);",
"public void setDateModified(Date dateModified);",
"@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_changesetEntry.setModifiedDate(modifiedDate);\n\t}",
"public void setModifiedDate(Date modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }",
"public void setModifiedDate(Date modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }",
"public void setModifiedDate(Date modifiedDate) {\n this.modifiedDate = modifiedDate;\n }",
"public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }",
"public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }",
"@Override\n public void setModifiedDate(java.util.Date modifiedDate) {\n _partido.setModifiedDate(modifiedDate);\n }",
"void setModifyDate(final Date lastModifiedDate);",
"@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dmGtStatus.setModifiedDate(modifiedDate);\n\t}",
"@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_employee.setModifiedDate(modifiedDate);\n\t}",
"public void setModifieddate(Date modifieddate) {\n this.modifieddate = modifieddate;\n }",
"public void setModifiedDate(Date modifiedDate) {\n\t\tthis.modifiedDate = modifiedDate;\n\t}",
"@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_esfTournament.setModifiedDate(modifiedDate);\n\t}",
"public void setDateModified(java.util.Date dateModified){\r\n\t\tthis.dateModified = dateModified;\r\n\t}",
"public void setModified(Date v) \n {\n \n if (!ObjectUtils.equals(this.modified, v))\n {\n this.modified = v;\n setModified(true);\n }\n \n \n }",
"public void setModifiedDate(java.lang.String modifiedDate) {\r\n this.modifiedDate = modifiedDate;\r\n }",
"public void setModifiedDate(Date value) {\n setAttributeInternal(MODIFIEDDATE, value);\n }",
"@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_second.setModifiedDate(modifiedDate);\n\t}",
"public void setMODIFIED_DATE(Date MODIFIED_DATE) {\r\n this.MODIFIED_DATE = MODIFIED_DATE;\r\n }",
"@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_candidate.setModifiedDate(modifiedDate);\n\t}",
"@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_userTracker.setModifiedDate(modifiedDate);\n\t}",
"@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_paper.setModifiedDate(modifiedDate);\n\t}",
"public void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dmHistoryMaritime.setModifiedDate(modifiedDate);\n\t}",
"@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_scienceApp.setModifiedDate(modifiedDate);\n\t}",
"public void setModifiedDate(Timestamp value) {\r\n setAttributeInternal(MODIFIEDDATE, value);\r\n }",
"public void setLastModified(long lastModified)\r\n/* 278: */ {\r\n/* 279:415 */ setDate(\"Last-Modified\", lastModified);\r\n/* 280: */ }",
"public final void updateModifyDateTime() {\n \tm_modifyDate = System.currentTimeMillis();\n \tm_accessDate = m_modifyDate;\n }",
"public boolean setModifiedDate(String date)\r\n \t{\r\n lastModified = date;\r\n return true;\r\n }",
"@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dmGTShipPosition.setModifiedDate(modifiedDate);\n\t}",
"public void updateDateModified() {\n dateModified = DateTime.now();\n }",
"@Override\n\tpublic void setModifiedDate(java.util.Date ModifiedDate) {\n\t\t_locMstLocation.setModifiedDate(ModifiedDate);\n\t}",
"public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }",
"public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }",
"public void setDATE_MODIFIED(Date DATE_MODIFIED) {\r\n this.DATE_MODIFIED = DATE_MODIFIED;\r\n }",
"public void setModifiedTime(Date modifiedTime) {\n this.modifiedTime = modifiedTime;\n }",
"public void setLastModified (java.util.Date lastModified) {\r\n\t\tthis.lastModified = lastModified;\r\n\t}",
"public void setDatemodified(String datemodified) {\n\t\tthis.datemodified = datemodified == null ? null : datemodified.trim();\n\t}",
"public void setDatemodified(String datemodified) {\n this.datemodified = datemodified == null ? null : datemodified.trim();\n }",
"public TarArchiveEntry setLastModified(Date date) {\n modTime = date.getTime() / MILLIS_PER_SECOND;\n return this;\n }",
"public void setSrcModifiedDate(Date value) {\r\n setAttributeInternal(SRCMODIFIEDDATE, value);\r\n }",
"public void setModifyDate(Date modifyDate) {\n this.modifyDate = modifyDate;\n }",
"public void setModifyDate(Date modifyDate) {\n this.modifyDate = modifyDate;\n }",
"public void setModifyDate(Date modifyDate) {\n this.modifyDate = modifyDate;\n }",
"public void setModified_date(java.util.Date modified_date) {\n\t\t_primarySchoolStudent.setModified_date(modified_date);\n\t}",
"@Model\r\n\tprotected void setModificationTime() {\r\n modificationTime = new Date();\r\n }",
"@Override\n\tpublic void setModifiedDate(java.util.Date modifiedDate) {\n\t\t_dictData.setModifiedDate(modifiedDate);\n\t}",
"public void setLastModifiedDate(java.util.Calendar lastModifiedDate) {\r\n this.lastModifiedDate = lastModifiedDate;\r\n }",
"public void setLastModifiedDate(Long lastModifiedDate)\r\n\t{\r\n\t\tthis.lastModifiedDate = lastModifiedDate;\r\n\t}",
"public void setLastModified( long lastModified )\n {\n this.lastModified = lastModified;\n }",
"public void setLastModified(Timestamp lastModified) {\r\n\t\tthis.lastModified = lastModified;\r\n\t}",
"public void setModified( java.sql.Timestamp newValue ) {\n __setCache(\"modified\", newValue);\n }",
"public void setModified(java.sql.Timestamp tmp) {\n this.modified = tmp;\n }",
"public void setLastModifiedDate(java.util.Calendar lastModifiedDate) {\n this.lastModifiedDate = lastModifiedDate;\n }",
"public void setdModifyDate(Date dModifyDate) {\r\n this.dModifyDate = dModifyDate;\r\n }",
"public void setdModifyDate(Date dModifyDate) {\r\n this.dModifyDate = dModifyDate;\r\n }",
"public final void updateModifyDateTime( long modTime) {\n \tm_modifyDate = modTime;\n }",
"public void setModifiedTime(final Calendar modifiedTimeValue) {\n this.modifiedTime = modifiedTimeValue;\n }",
"public void setModified(java.sql.Timestamp newValue) {\n\tthis.modified = newValue;\n}",
"void setModified(Subject modifier, Date modificationTime)\n {\n this.modifier = modifier;\n this.modified = modificationTime;\n }",
"public void setModifiedTime(@Nullable final Date modifiedTime) {\n mModifiedTime = modifiedTime == null ? null : new Date(modifiedTime.getTime());\n }",
"public Date getModifiedDate() {\r\n return modifiedDate;\r\n }",
"public Date getModifiedDate() {\r\n return modifiedDate;\r\n }",
"public final void setModified(final boolean modified) {\n this.modified = modified;\n }",
"void setLastModifiedTime( long modTime ) throws FileSystemException;",
"public void setMtime(Date mtime) {\n this.mtime = mtime;\n }",
"public void setCreateModifiedDate(Timestamp aCreateModifiedDate) {\n createModifiedDate = aCreateModifiedDate;\n }",
"public void setCreateModifiedDate(Timestamp aCreateModifiedDate) {\n createModifiedDate = aCreateModifiedDate;\n }",
"public void setCreateModifiedDate(Timestamp aCreateModifiedDate) {\n createModifiedDate = aCreateModifiedDate;\n }",
"public void setLastmodifieddate(Date lastmodifieddate) {\n this.lastmodifieddate = lastmodifieddate;\n }",
"public void setLastModifiedDate(java.util.Date lastModifiedDate) {\n this.lastModifiedDate = lastModifiedDate;\n }",
"public void setLastModifiedDate(String lastModifiedDate) {\r\n\t\tthis.lastModifiedDate = lastModifiedDate;\r\n\t}",
"public Date getModifiedDate() {\n return modifiedDate;\n }",
"void setDateUpdated(final Date dateUpdated);",
"public Date getModifiedDate() {\n return this.modifiedDate;\n }",
"public Date getModifiedDate() {\n return this.modifiedDate;\n }",
"public Date getModifieddate() {\n return modifieddate;\n }",
"void setUpdatedDate(Date updatedDate);",
"public Builder setModifyDate(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n modifyDate_ = value;\n onChanged();\n return this;\n }",
"public Date getModifiedDate() {\n\t\treturn modifiedDate;\n\t}",
"public void setModificationTime( Date modificationTime )\n\t{\n\t\tthis.modificationTime\t= modificationTime;\n\t}",
"void setModifiedDate(Date p_date)\n {\n throw new UnsupportedOperationException(\n \"This method is not supported. Use addHistory()\");\n }",
"public void setModified(boolean modified) {\r\n\t\tthis.modified = modified;\r\n\t}",
"public void setModified(boolean modified) {\r\n\t\tthis.modified = modified;\r\n\t}",
"public void setLastModifiedDate(final Date lastModifiedDate) {\n\t\tthis.lastModifiedDate = lastModifiedDate;\n\t}",
"public void setModified(String tmp) {\n this.modified = DateUtils.parseTimestampString(tmp);\n }",
"public Date getModified() {\r\n\t\treturn modified;\r\n\t}",
"public void setModificationDateLocal(Date date) {\r\n\t\toModificationDate = date;\r\n\t}",
"public void setClModifyTime(Date clModifyTime) {\r\n\t\tthis.clModifyTime = clModifyTime;\r\n\t}",
"public synchronized void setLastModifiedTimestamp() {\n queueAttributes.put(MessageBoxConstants.SQS_QUEUE_ATTRIBUTE_LAST_MODIFIED_TIMESTAMP,\n Long.toString(System.currentTimeMillis() / 1000));\n }",
"public java.util.Date getDateModified(){\r\n\t\treturn dateModified;\r\n\t}",
"public void setLastModifyDate(Date lastModifyDate) {\n this.lastModifyDate = lastModifyDate;\n }"
] |
[
"0.7662366",
"0.7609469",
"0.7609469",
"0.7609469",
"0.7517835",
"0.7517835",
"0.74788105",
"0.7462981",
"0.745298",
"0.745298",
"0.7430807",
"0.7426682",
"0.7426682",
"0.7424982",
"0.73740387",
"0.7327875",
"0.73162144",
"0.72348434",
"0.72203606",
"0.7184217",
"0.7155406",
"0.71422887",
"0.71191317",
"0.70281935",
"0.7019574",
"0.70122397",
"0.6921802",
"0.6900109",
"0.6894136",
"0.6774471",
"0.6766615",
"0.6756899",
"0.67316884",
"0.6729465",
"0.67255855",
"0.67044204",
"0.66973865",
"0.666823",
"0.6653991",
"0.6653991",
"0.6653991",
"0.6615496",
"0.65823185",
"0.65801555",
"0.6548721",
"0.65015787",
"0.64966094",
"0.6489514",
"0.6489514",
"0.6489514",
"0.64863485",
"0.6484808",
"0.64716715",
"0.6461617",
"0.64544654",
"0.6406767",
"0.6399126",
"0.63800305",
"0.63730633",
"0.63663065",
"0.6361795",
"0.6361795",
"0.6333371",
"0.6315814",
"0.6305837",
"0.6291912",
"0.6273961",
"0.62525886",
"0.62525886",
"0.6245934",
"0.6232182",
"0.622552",
"0.6217738",
"0.6217738",
"0.6217738",
"0.62061363",
"0.6205067",
"0.62034434",
"0.618585",
"0.61835843",
"0.6183539",
"0.6183539",
"0.6176288",
"0.61520654",
"0.6114433",
"0.6112315",
"0.6102217",
"0.6083371",
"0.60731745",
"0.60731745",
"0.6072443",
"0.6062542",
"0.6046494",
"0.60334176",
"0.6032028",
"0.6024348",
"0.6018411",
"0.6013286"
] |
0.7213804
|
21
|
Sets the nodes of this job.
|
@Override
public void setNodes(int nodes) {
model.setNodes(nodes);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setNodes( Nodes nodes )\n {\n this.nodes = nodes;\n }",
"public abstract void setNodes();",
"public void setNodes(final List<Nodes> nds) {\n this.nodes = nds;\n }",
"public void setNodes(ZVNode[] nodes) {\r\n if (this.nodes != null) {\r\n for (int i = 0; i < this.nodes.length; i++) {\r\n this.nodes[i].removePropertyChangeListener(\r\n ZVNode.PROPERTY_EXISTS, this.propertyListener);\r\n }\r\n }\r\n this.nodes = nodes;\r\n if (this.nodes != null) {\r\n for (int i = 0; i < this.nodes.length; i++) {\r\n this.nodes[i].addPropertyChangeListener(ZVNode.PROPERTY_EXISTS,\r\n this.propertyListener);\r\n }\r\n }\r\n this.updateView();\r\n }",
"public void setNumNodes(int numNodes) {\n if (numNodes < 4) {\n throw new IllegalArgumentException(\"Number of nodes must be >= 4.\");\n }\n\n this.numNodes = numNodes;\n this.maxEdges = numNodes - 1;\n this.numIterations = 6 * numNodes * numNodes;\n this.parentMatrix = null;\n this.childMatrix = null;\n }",
"void setNode(int nodeId, double lat, double lon);",
"public JobBuilder nodeCount(int nodeCount) {\r\n job.setNodeCount(nodeCount);\r\n return this;\r\n }",
"void setNode(int nodeId, double lat, double lon, double ele);",
"public void loadNodes() {\n\t\tif (taxonomyMap.size() == 0) this.loadNames();\n\n\t\tBufferedReader nodesRdr = null;\n\t\ttry {\n\t\t\tnodesRdr = new BufferedReader(new InputStreamReader(nodesUrl.openStream()));\n\n\t\t\tString line;\n\t\t\twhile ((line = nodesRdr.readLine()) != null) {\n\t\t\t\tString[] parts = line.split(\"\\\\|\");\n\t\t\t\tInteger taxonId = Integer.valueOf(parts[0].trim());\n\t\t\t\tString pti = parts[1].trim();\n\t\t\t\tInteger parentTaxonId = (pti.length() > 0 && !(pti.equals(\"all\"))) ? new Integer(pti) : null;\n\n\t\t\t\t// Get our Taxon object\n\t\t\t\tTaxon t = taxonomyMap.get(taxonId);\n\n\t\t\t\t// Get our parent Taxon\n\t\t\t\tTaxon p = taxonomyMap.get(parentTaxonId);\n\n\t\t\t\t// Set the parent\n\t\t\t\tt.setParent(p);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\n\t\t} finally {\n\t\t\tthis.close(nodesRdr);\n\t\t}\n\t}",
"public void setNode(String node)\n {\n this.node = node;\n }",
"final void setSelectedNodes0(Node[] nodes) {\n try {\n setSelectedNodes(nodes);\n } catch (PropertyVetoException e) {\n }\n }",
"private void setNode(DefaultMutableTreeNode node){\n\t\t\n\t\tthis.node = node;\n\t\t\n\t}",
"public void setInputNodes(Node[] node) {\n this.inputNodes = node;\n }",
"private void setNodeConnectionRequirement() {\n for (NodeRecord node : registeredNodes.values()) {\n node.setNumberOfConnectionsNodeNeedsToInitiate(requiredConnections);\n }\n }",
"public Builder withNodes(Integer... nodes) {\n this.nodes = nodes;\n return this;\n }",
"public void setNodeNames(Universe universe) {\n if (universe == null) {\n throw new IllegalArgumentException(\"Invalid universe to update node names.\");\n }\n\n PlacementInfoUtil.populateClusterIndices(taskParams());\n\n Cluster primaryCluster = taskParams().getPrimaryCluster();\n if (primaryCluster == null) {\n // Can be here for ReadReplica cluster dynamic create or edit.\n primaryCluster = universe.getUniverseDetails().getPrimaryCluster();\n\n if (primaryCluster == null) {\n throw new IllegalStateException(\n String.format(\n \"Primary cluster not found in task for universe %s\", universe.getUniverseUUID()));\n }\n }\n\n String nameTagValue = \"\";\n Map<String, String> useTags = primaryCluster.userIntent.instanceTags;\n if (useTags.containsKey(NODE_NAME_KEY)) {\n nameTagValue = useTags.get(NODE_NAME_KEY);\n }\n\n for (Cluster cluster : taskParams().clusters) {\n Set<NodeDetails> nodesInCluster = taskParams().getNodesInCluster(cluster.uuid);\n int startIndex =\n PlacementInfoUtil.getStartIndex(\n universe.getUniverseDetails().getNodesInCluster(cluster.uuid));\n int iter = 0;\n boolean isYSQL = universe.getUniverseDetails().getPrimaryCluster().userIntent.enableYSQL;\n boolean isYCQL = universe.getUniverseDetails().getPrimaryCluster().userIntent.enableYCQL;\n boolean isYEDIS = universe.getUniverseDetails().getPrimaryCluster().userIntent.enableYEDIS;\n for (NodeDetails node : nodesInCluster) {\n if (node.state == NodeDetails.NodeState.ToBeAdded) {\n if (node.nodeName != null) {\n throw new IllegalStateException(\"Node name \" + node.nodeName + \" cannot be preset.\");\n }\n node.nodeIdx = startIndex + iter;\n node.nodeName =\n getNodeName(\n cluster,\n nameTagValue,\n taskParams().nodePrefix,\n node.nodeIdx,\n node.cloudInfo.region,\n node.cloudInfo.az);\n iter++;\n }\n node.isYsqlServer = isYSQL;\n node.isYqlServer = isYCQL;\n node.isRedisServer = isYEDIS;\n }\n }\n\n PlacementInfoUtil.ensureUniqueNodeNames(taskParams().nodeDetailsSet);\n }",
"public MutableNodeSet(NodeSet nodeSet) {\n\t\tthis(nodeSet.getGraph(), nodeSet.getMembers());\n\t}",
"public void setNode(String node) {\n this.node = node;\n }",
"public void setCurrentNode(int node) {\n\t\tthis.currentNode = node;\n\t}",
"public void setNodeA(int x){\n this.nodeA = x;\n }",
"public void setListNodes (ArrayList<Node> list){\r\n this.listNodes = list;\r\n }",
"public void setImnodes(Imnode node) {\n if (Imnodes == null) {\n Imnodes = new ArrayList<Imnode>();\n }\n Imnodes.add(node);\n }",
"void bindNodes() {\n for (Exp exp : getExpList()) {\n exp.setNodeList(exp.getNodes());\n }\n }",
"public void setNode_1(String node_1);",
"public void setNode(ResidentNode node) {\r\n\t\tthis.node = node;\r\n//\t\tif (this.node != null && this.node.getMFrag() != null) {\r\n//\t\t\tthis.mebn = this.node.getMFrag().getMultiEntityBayesianNetwork();\r\n//\t\t}\r\n\t}",
"@Override\n\tpublic void setProcessorsPerNode(int processorsPerNode) {\n\t\tmodel.setProcessorsPerNode(processorsPerNode);\n\t}",
"void setNode(String path, Node node)\n throws ProcessingException;",
"@Override\n public void setNodeStatesForUpdate(int iNode) {\n }",
"public void setAllNodesArray(ArrayList<Student> x) {\n students = x;\n }",
"void formCluster(Set<ControllerNode> nodes, String ipPrefix);",
"public void setNodeElement(NodeElement element) {\n this.nodeElement = element;\n this.sourceConnections = this.nodeElement.getSourceConnections();\n this.targetConnections = this.nodeElement.getTargetConnections();\n }",
"public void setPnode(Node<T1> pNode) {\r\n\t\tthis.pnode = pNode;\r\n\t\tcheckRep();\r\n\t}",
"public Builder setNodes(\n int index, entities.Torrent.NodeId value) {\n if (nodesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodesIsMutable();\n nodes_.set(index, value);\n onChanged();\n } else {\n nodesBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public Flow withNodes(Map<String, Node> nodes) {\n this.nodes = nodes;\n return this;\n }",
"public Builder addAllNodes(\n java.lang.Iterable<? extends entities.Torrent.NodeId> values) {\n if (nodesBuilder_ == null) {\n ensureNodesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, nodes_);\n onChanged();\n } else {\n nodesBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public void setNodeName(String nodeName) {\n this.nodeName = nodeName == null ? null : nodeName.trim();\n }",
"public KadNode setNode(Node node) {\r\n\t\tthis.node = node;\r\n\t\treturn this;\r\n\t}",
"public void setCurrentNode(final Node node) {\n if (!childPositions.containsKey(node)) {\n childPositions.put(node, 0);\n }\n this.currentNode = node;\n }",
"public void setToOriginals(){\n\t\t//set all occupied nodes as empty\n\t\tif(nodeStatus == Status.occupied){\n\t\t\tsetAsEmpty();\n\t\t}\n\t\t//if the node had a unit end on it, reset that value\n\t\tif(ended == true){\n\t\t\tended=false;\n\t\t}\n\t\tf=0;\n\t\tg=0;\n\t\th=0;\n\t}",
"public void setNode_3(String node_3);",
"public void init() {\n\t\tfor (Node node : nodes)\n\t\t\tnode.init();\n\t}",
"@Override\n public void initialize() {\n time = 0;\n //noinspection ConstantConditions\n this.runningTasks.addAll(getInitialNode().getTasks());\n for (Node node : nodes) {\n node.initialize();\n }\n }",
"public void addNodes(final Nodes nodes) {\n if (this.nodes == null) {\n this.nodes = new ArrayList<Nodes>();\n }\n this.findUpdateNode(nodes);\n }",
"void addNodes(List<CyNode> nodes);",
"@Override\r\n\tpublic void setNode(Node node) {\n\t\tthis.node = (MessagingNode) node;\r\n\t}",
"public void setNode_5(String node_5);",
"public MutableNodeSet(Graph graph) {\n\t\tsuper(graph);\n\t\tthis.members = new TreeSet<Integer>();\n\t\tinitializeInOutWeights();\n\t}",
"private void setNodeCoordinates (int trainPosition)\r\n\t{\r\n\t\tswitch (trainPosition)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\t// S node\r\n\t\t\t\tx = 312;\r\n\t\t\t\ty = 191;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 1:\r\n\t\t\t{\t\r\n\t\t\t\t// I1\r\n\t\t\t\tx = 272;\r\n\t\t\t\ty = 286;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 2:\r\n\t\t\t{\t\r\n\t\t\t\t// I2\r\n\t\t\t\tx = 165;\r\n\t\t\t\ty = 266;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 3:\r\n\t\t\t{\t\r\n\t\t\t\t// I3\r\n\t\t\t\tx = 181;\r\n\t\t\t\ty = 170;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 4:\r\n\t\t\t{\t\r\n\t\t\t\t// I4\r\n\t\t\t\tx = 300;\r\n\t\t\t\ty = 87;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t{\r\n\t\t\t\t// I5\r\n\t\t\t\tx = 442;\r\n\t\t\t\ty = 136;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 6:\r\n\t\t\t{\t\r\n\t\t\t\t// I6\r\n\t\t\t\tx = 437;\r\n\t\t\t\ty = 249;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 7:\r\n\t\t\t{\t\r\n\t\t\t\t// O1\r\n\t\t\t\tx = 309;\r\n\t\t\t\ty = 371;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 8:\r\n\t\t\t{\t\r\n\t\t\t\t// O2\r\n\t\t\t\tx = 34;\r\n\t\t\t\ty = 291;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 9:\r\n\t\t\t{\t\r\n\t\t\t\t// O3\r\n\t\t\t\tx = 113;\r\n\t\t\t\ty = 54;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 10:\r\n\t\t\t{\t\r\n\t\t\t\t// O4\r\n\t\t\t\tx = 383;\r\n\t\t\t\ty = 18;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t\tcase 11:\r\n\t\t\t{\t\r\n\t\t\t\t// O5\r\n\t\t\t\tx = 560;\r\n\t\t\t\ty = 147;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 12:\r\n\t\t\t{\t\r\n\t\t\t\t// O6\r\n\t\t\t\tx = 558;\r\n\t\t\t\ty = 312;\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t}\r\n\t}",
"public void nodeColor(String str) { setSelected(node_colors, str); }",
"private void setNeighbors() {\n\t\tfor (int i = 0; i < getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < getNumCols(); j++) {\n\t\t\t\tCell c = getCurrentGrid()[i][j];\n\t\t\t\tsetNeighborsForCell(c);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void setNodeName(String name) {\n\n\t}",
"public MutableNodeSet(Graph graph, int[] members) {\n\t\tthis(graph);\n\t\tthis.setMembers(members);\n\t}",
"public MutableNodeSet(Graph graph, Collection<Integer> members) {\n\t\tthis(graph);\n\t\tthis.setMembers(members);\n\t}",
"public void set(List<QueryNode> children);",
"@BeforeAll\n\tstatic void setNodes() {\n\t\tLCA = new LowestCommonAncestor();\n\t\tnine = new Node(9,null);\n\t\tten = new Node(10, null);\n\t\teight = new Node(8, null);\n\t\tseven = new Node(7, new Node[] {ten});\n\t\tfour = new Node(4, new Node[] {ten});\n\t\tthree = new Node(3, new Node[] {four});\n\t\tfive = new Node(5, new Node[] {nine, eight, seven});\n\t\ttwo = new Node(2, new Node[] {three, five});\n\t\tone = new Node(1, new Node[] {two});\n\t}",
"public void setNumberOfVisitedNodes(int numberOfVisitedNodes) {\n NumberOfVisitedNodes = numberOfVisitedNodes;\n }",
"private void parseNodes(JSONArray array) {\n for(Object object : array) {\n JSONObject node = (JSONObject) object;\n String id = node.getString(\"id\");\n String type = node.getString(\"type\");\n int x = node.getInt(\"x\");\n int y = node.getInt(\"y\");\n JSONObject jsonOptions = node.getJSONObject(\"options\");\n\n NodeType nodeType = controller.getNodeTypes().getNodeType(type);\n if(nodeType == null) {\n System.out.println(\"NodeType '\" + type + \"' does not exist!\");\n return;\n }\n\n ArrayList<Option> options = nodeType.createOptions();\n Iterator<String> keys = jsonOptions.keys();\n while(keys.hasNext()) {\n String key = keys.next();\n for(Option option : options) {\n if(option.label.equals(key))\n option.value = jsonOptions.getString(key);\n }\n }\n\n controller.getNodes().create(id, nodeType, options, x, y);\n }\n\n // Then set all inputs\n for(Object object : array) {\n JSONObject node = (JSONObject) object;\n String id = node.getString(\"id\");\n JSONObject inputs = node.getJSONObject(\"inputs\");\n Iterator<String> keys = inputs.keys();\n while(keys.hasNext()) {\n String key = keys.next();\n controller.getNodes().set(id, key, inputs.getString(key));\n }\n }\n }",
"public void setLeft(Node left) {\n this.left = left;\n }",
"public void setTreeNode(TreeNode treeNode) {\n this.treeNode = treeNode;\n }",
"public void setNodeService(NodeService nodeService)\n {\n this.nodeService = nodeService;\n }",
"public void setLabels() {\n \t\tif(getTreeMode() == MODE_DEPENDENCY) {\n \t\t\tindNode.setUserObject(app.getPlain(\"FreeObjects\"));\n \t\t\tmodel.nodeChanged(indNode);\n \t\t\t\n \t\t\tdepNode.setUserObject(app.getPlain(\"DependentObjects\"));\n \t\t\tmodel.nodeChanged(depNode);\n \t\t\t\n \t\t\tauxiliaryNode.setUserObject(app.getPlain(\"AuxiliaryObjects\"));\n \t\t\tmodel.nodeChanged(auxiliaryNode);\n \t\t} else {\n \t\t\tDefaultMutableTreeNode node;\n \t\t\tfor (String key : typeNodesMap.keySet()) {\n \t\t\t\tnode = typeNodesMap.get(key);\n \t\t\t\tnode.setUserObject(app.getPlain(key));\n \t\t\t\tmodel.nodeChanged(node);\n \t\t\t}\n \t\t}\n \t\t\n \t\tif(helperBar != null) {\n \t\t\thelperBar.updateLabels();\n \t\t}\n \t}",
"public void setCnode(Node<T1> cNode) {\r\n\t\tthis.cnode = cNode;\r\n\t\tcheckRep();\r\n\t}",
"public void setConcreteSyntaxNodes (String[] nodes);",
"public void setCloudNodeUuids(Universe universe) {\n universe.getUniverseDetails().clusters.stream()\n .filter(c -> !c.userIntent.providerType.equals(CloudType.onprem))\n .flatMap(c -> taskParams().getNodesInCluster(c.uuid).stream())\n .filter(n -> n.state == NodeDetails.NodeState.ToBeAdded)\n .forEach(n -> n.nodeUuid = Util.generateNodeUUID(universe.getUniverseUUID(), n.nodeName));\n }",
"public abstract void setSelectedNode(String n);",
"public void setCorrespondingNode(MinesNode node) {\r\n\t\tcorrespondingNode = node;\r\n\t}",
"public void setNodeStyle(String style) {\n StringBuffer command = new StringBuffer(\"node [style=\");\n command.append(style);\n command.append(\"];\");\n this.drawElements.add(new DotGraphCommand(new String(command)));\n }",
"public void setNodesToUnvisited(){\n for(GraphNode node: graphNode){\n if(node.visited){\n node.visited = false;\n }\n }\n }",
"public void setNode(int _data ) {\r\n\t\t\tdata = _data;\r\n\t\t}",
"public void setNode(DEPNode node)\n\t{\n\t\tthis.node = node;\n\t}",
"protected abstract void rebuildNetwork(int numNodes);",
"@Override\n\tpublic void setNodeStates(int nodeIndex, int[] states) {\n throw new IllegalArgumentException(\"setNodeStates in AbstractSpectrumLikelihoodCore should not be called\");\n }",
"public JobBuilder processorsPerNode(int processorsPerNode) {\r\n job.setProcessorsPerNode(processorsPerNode);\r\n return this;\r\n }",
"public void setNodePositionXY (Point2D position) { n.setXYPositionMap(position); }",
"@Messages({\n \"EXC_NodeCannotBeNull=Cannot use null for node selection.\",\n \"EXC_NoElementOfNodeSelectionMayBeNull=No element of a node selection may be null.\"\n })\n public final void setSelectedNodes(final Node[] value)\n throws PropertyVetoException {\n class AtomicSetSelectedNodes implements Runnable {\n public PropertyVetoException veto;\n private boolean doFire;\n private Node[] oldValue;\n private Node[] newValue;\n\n /** selects only nodes under root context */\n private void checkAndSet() {\n if (value == null) {\n throw new IllegalArgumentException(EXC_NodeCannotBeNull());\n }\n\n if (equalNodes(value, selectedNodes)) {\n return;\n }\n\n List<Node> validNodes = null;\n for (int i = 0; i < value.length; i++) {\n if (value[i] == null) {\n throw new IllegalArgumentException(EXC_NoElementOfNodeSelectionMayBeNull());\n }\n \n if (!isUnderRoot(value[i])) {\n if (validNodes == null) {\n validNodes = new ArrayList<Node>(value.length);\n for (int j = 0; j < i; j++) {\n validNodes.add(value[j]);\n }\n }\n } else if (validNodes != null) {\n validNodes.add(value[i]);\n }\n }\n if (validNodes != null) {\n newValue = validNodes.toArray(new Node[validNodes.size()]);\n if (equalNodes(newValue, selectedNodes)) {\n return;\n } \n } else {\n newValue = value;\n }\n\n if ((newValue.length != 0) && (vetoableSupport != null)) {\n try {\n // we send the vetoable change event only for non-empty selections\n vetoableSupport.fireVetoableChange(PROP_SELECTED_NODES, selectedNodes, newValue);\n } catch (PropertyVetoException ex) {\n veto = ex;\n return;\n }\n }\n updateSelection();\n }\n\n private void updateSelection() {\n oldValue = selectedNodes;\n addRemoveListeners(false);\n selectedNodes = newValue;\n addRemoveListeners(true);\n\n doFire = true;\n }\n \n public void fire() {\n if (doFire) {\n fireInAWT(PROP_SELECTED_NODES, oldValue, selectedNodes);\n }\n }\n\n public void run() {\n checkAndSet();\n }\n }\n\n AtomicSetSelectedNodes setNodes = new AtomicSetSelectedNodes();\n Children.MUTEX.readAccess(setNodes);\n setNodes.fire();\n \n if (setNodes.veto != null) {\n throw setNodes.veto;\n }\n }",
"public void setNodeService(final NodeService nodeService)\n {\n this.nodeService = nodeService;\n }",
"protected void setChildren(Node n1, Node n2) {\r\n children[0] = n1;\r\n children[1] = n2;\r\n }",
"private void setStyleClassOnAll(HashMap nodes, String styleClass) {\r\n for (Object nodeObject : nodes.values()) {\r\n Node n = (Node)nodeObject;\r\n n.getStyleClass().add(styleClass);\r\n }\r\n }",
"public void makeSet(T e){\n\t\tnodes.put(e, new Node<T>(e));\r\n\t}",
"public void setNodeFactory(NodeFactory nodeFactory)\n {\n this.nodeFactory = nodeFactory;\n }",
"public void resetNodes() {\n\tmaxX = -100000;\n\tmaxY = -100000;\n\tminX = 100000;\n\tminY = 100000;\n\taverageX = 0;\n\taverageY = 0;\n }",
"public Set<DefaultGraphCell> getNodes() {\n return nodes;\n }",
"public NodeNetwork() {\n\t\tnodes = new ArrayList<>();\n\t\tconnections = new ArrayList<>();\n\t}",
"@Override\n\tpublic void setNodeMatrix(int nodeIndex, int matrixIndex, double[] matrix) {\n// \tSystem.out.println(\"old:\"+Arrays.toString(\n// \tArrayUtils.subarray(matrices[0][nodeIndex], matrixIndex * matrixSize, matrixIndex * matrixSize + matrixSize)\n// \t));\n// \tSystem.out.println(\"new:\"+Arrays.toString(matrix));\n System.arraycopy(matrix, 0, matrices[currentMatricesIndices[nodeIndex]][nodeIndex],\n matrixIndex * matrixSize, matrixSize);\n }",
"public void setParentNode(int nodeNum){\n\t\tparentNode=nodeNum;\n\t}",
"public Kdtree(List<Node> nodes) {\n //creating defensive copy\n nodesList = new ArrayList<>(nodes);\n root = this.buildTree(nodes, 0);\n }",
"public boolean setActiveNodes(Coordinate coordinates){\n int position = searchBoard(coordinates);\n if(position != -1) {\n board.get(position).setState(true);\n return true;\n } else {\n return false;\n }\n }",
"public PMDRuleSetNode(String nodeName) {\n super(nodeName);\n }",
"public void setNode_4(String node_4);",
"public Node setTopNode(Node node);",
"public void setNull(){\n for (int i = 0; i < Nodes.size(); i++){\n this.References.add(null);\n }\n }",
"public void setp(Node n) {\n\t\tp = n;\n\t}",
"public Builder setNodes(\n int index, entities.Torrent.NodeId.Builder builderForValue) {\n if (nodesBuilder_ == null) {\n ensureNodesIsMutable();\n nodes_.set(index, builderForValue.build());\n onChanged();\n } else {\n nodesBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }",
"public void setNode_2(String node_2);",
"private void setNodeConnectionList(ArrayList<Pair<String, Integer>> nodeConnectionList)\n\t{\n\t\totherNodes = nodeConnectionList; // set this field.\n\t}",
"public void setHead(Node head) {\n\t\tthis.head = head;\n\t}",
"private void setNodeVersion(int nodeVersion) {\n this.nodeVersion = nodeVersion;\r\n }",
"public void loadNodes(String nodeFile) throws Exception {\r\n \tBufferedReader br = new BufferedReader( new FileReader(nodeFile) );\r\n while(true) {\r\n String line = br.readLine();\r\n if(line == null)\r\n \tbreak;\r\n Scanner sr = new Scanner(line);\r\n if(!sr.hasNextLine())\r\n \tbreak;\r\n sr.useDelimiter(\"\\\\t\");\r\n int id = sr.nextInt(); // node id\r\n double weight = 1.0;\r\n String description = sr.next(); // description\r\n mNodes.add( new Node(id, weight, description) );\r\n }\r\n br.close();\r\n System.out.println(\"Loading graph nodes completed. Number of nodes:\" + getNodeCnt() );\r\n // initialize empty neighbor sets for each node\r\n for (int i = 0; i < getNodeCnt(); i++) {\r\n \tSet<Integer> outEdges = new HashSet<Integer> ();\r\n\t\t\tSet<Integer> inEdges = new HashSet<Integer> ();\r\n\t\t\tmOutEdges.add( outEdges );\r\n\t\t\tmInEdges.add( inEdges );\r\n\t\t}\r\n \r\n }",
"public void setLeft(Fork left) {\n\t\tthis.left = left;\n\t}",
"public void setNodeShape(String shape) {\n StringBuffer command = new StringBuffer(\"node [shape=\");\n command.append(shape);\n command.append(\"];\");\n this.drawElements.add(new DotGraphCommand(new String(command)));\n }"
] |
[
"0.7365191",
"0.7289872",
"0.71456933",
"0.6427866",
"0.6249869",
"0.6210865",
"0.60586876",
"0.6020115",
"0.59651446",
"0.58466136",
"0.5844542",
"0.582184",
"0.5818921",
"0.581217",
"0.57809997",
"0.5750414",
"0.5663918",
"0.56582904",
"0.5632222",
"0.56147146",
"0.55573326",
"0.5555541",
"0.55373704",
"0.5526146",
"0.55223215",
"0.5510027",
"0.55076617",
"0.54871696",
"0.5478284",
"0.5453033",
"0.5443915",
"0.54311484",
"0.5426973",
"0.54248136",
"0.54218686",
"0.5405337",
"0.53918236",
"0.5391012",
"0.537528",
"0.53676003",
"0.5350614",
"0.5344058",
"0.5339272",
"0.53245395",
"0.5304275",
"0.5293518",
"0.52859277",
"0.527311",
"0.5259762",
"0.5240803",
"0.5240535",
"0.523095",
"0.52305907",
"0.5211837",
"0.52033406",
"0.5172299",
"0.516989",
"0.51636016",
"0.5161945",
"0.51522005",
"0.5135615",
"0.51307744",
"0.5129567",
"0.51289403",
"0.5126126",
"0.51203996",
"0.5111762",
"0.5110238",
"0.51085573",
"0.50925404",
"0.5086278",
"0.5085851",
"0.5076596",
"0.50710934",
"0.5070324",
"0.506928",
"0.50658053",
"0.50599843",
"0.5058333",
"0.50583",
"0.5055097",
"0.5054654",
"0.5053788",
"0.50330967",
"0.50211865",
"0.50184655",
"0.5015709",
"0.5008908",
"0.5001855",
"0.5001166",
"0.49998748",
"0.49886557",
"0.49858123",
"0.49784565",
"0.49765816",
"0.49618897",
"0.4955444",
"0.49548894",
"0.4941473",
"0.49390027"
] |
0.67921615
|
3
|
Sets the primary key of this job.
|
@Override
public void setPrimaryKey(long primaryKey) {
model.setPrimaryKey(primaryKey);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setPrimaryKey(String primaryKey);",
"public void setPrimaryKey(String primaryKey);",
"public void setPrimaryKey(String primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey);",
"public void setPrimaryKey(long primaryKey) {\n this.primaryKey = primaryKey;\n }",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_employee.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(int primaryKey);",
"@Override\n public void setPrimaryKey(long primaryKey) {\n _partido.setPrimaryKey(primaryKey);\n }",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_changesetEntry.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_candidate.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_phieugiahan.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_state.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(long primaryKey) {\n _sTransaction.setPrimaryKey(primaryKey);\n }",
"public void setPrimaryKey(String primaryKey) {\r\n this.primaryKey = primaryKey;\r\n }",
"public void setPrimaryKey(String primaryKey) {\r\n\t\tthis.primaryKey = primaryKey;\r\n\t}",
"public void setPrimaryKey(String primaryKey) {\n this.primaryKey = primaryKey;\n }",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_paper.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_scienceApp.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(long primaryKey) {\n\t\t_telefonoSolicitudProducto.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(int primaryKey) {\n\t\tthis.primaryKey = primaryKey;\n\t}",
"@Override\n\tpublic void setPrimaryKey(int primaryKey) {\n\t\t_keHoachKiemDemNuoc.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(String primaryKey) {\n\t\tthis.primaryKey = primaryKey;\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfTournament.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(long primaryKey) {\n\t\t_tempNoTiceShipMessage.setPrimaryKey(primaryKey);\n\t}",
"public void setIdkey(String pIdkey){\n this.idkey = pIdkey;\n }",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dlSyncEvent.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_contentupdate.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_buySellProducts.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_second.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_primarySchoolStudent.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(String primaryKey) {\n getBasicChar().setPrimaryKey(primaryKey);\n }",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_lineaGastoCategoria.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(long primaryKey) {\n _courseImage.setPrimaryKey(primaryKey);\n }",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_userSync.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(long primaryKey) {\n\t\t_forumUser.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(ObjectKey key) throws TorqueException\n {\n SimpleKey[] keys = (SimpleKey[]) key.getValue();\n SimpleKey tmpKey = null;\n setMailId(((NumberKey)keys[0]).intValue());\n setReceiverId(((NumberKey)keys[1]).intValue());\n }",
"public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_pnaAlerta.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(VLegalFORelPK primaryKey);",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_userTracker.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(\n\t\torg.kisti.edison.science.service.persistence.ScienceAppPaperPK primaryKey) {\n\t\t_scienceAppPaper.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dictData.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dmGTShipPosition.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(String key) throws TorqueException\n {\n setPrimaryKey(new ComboKey(key));\n }",
"@Override\n public void setPrimaryKey(int primaryKey) {\n _entityCustomer.setPrimaryKey(primaryKey);\n }",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_dmGtStatus.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(ObjectKey key)\n \n {\n setNewsletterId(((NumberKey) key).intValue());\n }",
"@Override\n\tpublic void setPrimaryKey(int primaryKey) {\n\t\t_locMstLocation.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(boolean isPrimary) {\n\t\tm_primarykey = isPrimary;\n\t\tif (isPrimary)\n\t\t\tsetNullable(false);\n\t}",
"PrimaryKey getPrimarykey();",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_esfShooterAffiliationChrono.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_permissionType.setPrimaryKey(primaryKey);\n\t}",
"@Override\n\tpublic void setClassPK(long classPK) {\n\t\t_changesetEntry.setClassPK(classPK);\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_news_Blogs.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_imageCompanyAg.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(int primaryKey) {\n\t\t_dmHistoryMaritime.setPrimaryKey(primaryKey);\n\t}",
"public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setClassPK(long classPK) {\n this.classPK = classPK;\n }",
"public void setPrimaryKey(String key) \n {\n setNewsletterId(Integer.parseInt(key));\n }",
"@Override\n public void setPrimaryKey(long primaryKey) {\n _usersCatastropheOrgs.setPrimaryKey(primaryKey);\n }",
"@Override\n\tpublic void setResourcePrimKey(long resourcePrimKey) {\n\t\t_changesetEntry.setResourcePrimKey(resourcePrimKey);\n\t}",
"public void setPknum(Integer pknum) {\n this.pknum = pknum;\n }",
"private void setPrimaryKey(PSJdbcTableSchema tableSchema) throws PSJdbcTableFactoryException\n {\n List<String> pkcols = new ArrayList<String>();\n pkcols.add(\"col1\");\n PSJdbcPrimaryKey pk = new PSJdbcPrimaryKey(pkcols.iterator(), PSJdbcTableComponent.ACTION_REPLACE);\n tableSchema.setPrimaryKey(pk);\n }",
"public void setPkId(Integer pkId) {\n\t\tthis.pkId = pkId;\n\t}",
"Key getPrimaryKey();",
"public String getPrimaryKey() {\r\n\t\treturn primaryKey;\r\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_expandoColumn.setPrimaryKey(primaryKey);\n\t}",
"public String getPrimaryKey() {\r\n return primaryKey;\r\n }",
"public void setPkid(String pkid) {\n this.pkid = pkid == null ? null : pkid.trim();\n }",
"public long getPrimaryKey() {\n return primaryKey;\n }",
"private void setPrimaryKey(final ResourceAllocation allocation) {\n final Map<String, Object> values = new HashMap<String, Object>();\n values.put(Constants.RES_ID, allocation.getReserveId());\n values.put(Constants.BL_ID_FIELD_NAME, allocation.getBlId());\n values.put(Constants.FL_ID_FIELD_NAME, allocation.getFlId());\n values.put(Constants.RM_ID_FIELD_NAME, allocation.getRmId());\n values.put(Constants.DATE_START_FIELD_NAME, allocation.getStartDate());\n values.put(Constants.TIME_START_FIELD_NAME, allocation.getStartTime());\n values.put(Constants.TIME_END_FIELD_NAME, allocation.getEndTime());\n values.put(Constants.RESOURCE_ID_FIELD, allocation.getResourceId());\n values.put(Constants.QUANTITY_FIELD, allocation.getQuantity());\n\n allocation.setId(getPrimaryKey(values, Constants.RSRES_ID_FIELD_NAME));\n }",
"PrimaryKey createPrimaryKey();",
"public void setKeyId(String keyId) {\n setProperty(KEY_ID, keyId);\n }",
"public void setPk(double pk)\n {\n this.pk = pk;\n }",
"@Override\n public void setPrimaryKey(java.lang.Object key) {\n\n mnDbmsType = ((int[]) key)[0];\n mnPkYearId = ((int[]) key)[1];\n mnPkTypeCostObjectId = ((int[]) key)[2];\n mnPkRefCompanyBranchId = ((int[]) key)[3];\n mnPkRefReferenceId = ((int[]) key)[4];\n mnPkRefEntityId = ((int[]) key)[5];\n mnPkBizPartnerId = ((int[]) key)[6];\n mtDbmsDateStart = ((java.util.Date[]) key)[7];\n mtDbmsDateEnd = ((java.util.Date[]) key)[8];\n }",
"public String getPrimaryKey() {\n\t\treturn primaryKey;\n\t}",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public final void setKeyId(int keyId)\r\n\t{\r\n\t\tthis.keyId = keyId;\r\n\t}",
"public void setPrimaryKey(\n\t\tcom.agbar.service.service.persistence.PnaNoticiaGrupoLectorPK primaryKey) {\n\t\t_pnaNoticiaGrupoLector.setPrimaryKey(primaryKey);\n\t}"
] |
[
"0.72192377",
"0.72192377",
"0.72192377",
"0.72051555",
"0.72051555",
"0.72051555",
"0.72051555",
"0.72051555",
"0.72051555",
"0.72051555",
"0.72051555",
"0.72051555",
"0.72051555",
"0.72051555",
"0.72051555",
"0.72051555",
"0.72051555",
"0.72051555",
"0.72051555",
"0.72051555",
"0.7193097",
"0.7116532",
"0.71004266",
"0.70933366",
"0.7046581",
"0.7013956",
"0.7002285",
"0.6972721",
"0.6950542",
"0.6949281",
"0.6919783",
"0.69105685",
"0.6899652",
"0.6890771",
"0.6886882",
"0.68756235",
"0.68736356",
"0.6840338",
"0.6828347",
"0.6797897",
"0.6731002",
"0.6713311",
"0.6671768",
"0.6640492",
"0.6636996",
"0.6615756",
"0.6602723",
"0.66023916",
"0.65993917",
"0.659364",
"0.65656394",
"0.6556411",
"0.6465363",
"0.64498746",
"0.6443606",
"0.64406747",
"0.6420252",
"0.63994503",
"0.6376605",
"0.636524",
"0.63172185",
"0.6307828",
"0.6304135",
"0.6283353",
"0.62630427",
"0.6241074",
"0.6231713",
"0.6224989",
"0.622324",
"0.62212765",
"0.62079084",
"0.6207662",
"0.6207662",
"0.6207662",
"0.6188491",
"0.61810297",
"0.61719143",
"0.61533654",
"0.61313295",
"0.6127189",
"0.6126745",
"0.6060092",
"0.6057554",
"0.6049083",
"0.6033122",
"0.6021146",
"0.60198283",
"0.5999554",
"0.5998095",
"0.5996338",
"0.599257",
"0.59846157",
"0.59798026",
"0.59535927",
"0.59535927",
"0.59535927",
"0.59237283",
"0.5905065"
] |
0.6848441
|
39
|
Sets the processors per node of this job.
|
@Override
public void setProcessorsPerNode(int processorsPerNode) {
model.setProcessorsPerNode(processorsPerNode);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public JobBuilder processorsPerNode(int processorsPerNode) {\r\n job.setProcessorsPerNode(processorsPerNode);\r\n return this;\r\n }",
"@Override\n\tpublic int getProcessorsPerNode() {\n\t\treturn model.getProcessorsPerNode();\n\t}",
"public static void setAvailableProcessors(int availableProcessors) {\n/* 87 */ holder.setAvailableProcessors(availableProcessors);\n/* */ }",
"public JobBuilder memoryPerNode(String memoryPerNode) {\r\n job.setMemoryPerNode(memoryPerNode);\r\n return this;\r\n }",
"public void setNumProcessors(int numProcessors) {\n\t\tnumProcessors = Math.max(numProcessors, 1); //must be >= 1\n\t\tif (numProcessors == 1 || fieldSolverDescription.supports(SolverFeature.Feature_Parallel) ) {\n\t\t\tthis.numProcessors = numProcessors;\n\t\t}\n\t\telse { //problem here\n\t\t\tthis.numProcessors = 1;\n\t\t\tthrow new IllegalArgumentException(fieldSolverDescription.getDisplayLabel() + \" only supports 1 processor, \"\n\t\t\t\t\t+ numProcessors + \" passed\");\n\t\t}\n\t}",
"public void setMaxTasksPerNode(int maxTasksPerNode) {\n this.maxTasksPerNode = maxTasksPerNode;\n }",
"public JobBuilder nodeCount(int nodeCount) {\r\n job.setNodeCount(nodeCount);\r\n return this;\r\n }",
"@Override\n\tpublic void setCpu() {\n\t\tcom.setCpu(\"i7\");\n\t}",
"@JsonProperty(\"processors\")\n\t@DsonOutput(Output.API)\n\tint getJsonProcessors() {\n\t\treturn Runtime.getRuntime().availableProcessors();\n\t}",
"public NumberOfNodesBasedConfig(int numberOfNodes) {\n this.numberOfNodes = numberOfNodes;\n }",
"public void setNumNodes(int numNodes) {\n if (numNodes < 4) {\n throw new IllegalArgumentException(\"Number of nodes must be >= 4.\");\n }\n\n this.numNodes = numNodes;\n this.maxEdges = numNodes - 1;\n this.numIterations = 6 * numNodes * numNodes;\n this.parentMatrix = null;\n this.childMatrix = null;\n }",
"@Override\n\tprotected void setup(Reducer<LongWritable, Text, Text, Text>.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tsuper.setup(context);\n\t\tminPnts=Long.parseLong(context.getConfiguration().get(\"minPnts\"));\n\t\tepsilon=Double.parseDouble(context.getConfiguration().get(\"epsilon\"));\n\t\toutput = new MultipleOutputs<Text,Text>(context);\n\t\tPath[] cacheFilesLocal = DistributedCache.getLocalCacheFiles(context.getConfiguration());\n\t\tfor (Path eachPath : cacheFilesLocal) {\n\t\t\t\n\t\t\tloadPartition(eachPath, context);\n\t\t\t\n\t\t}\n\t}",
"public void setCpus(Integer cpusIn) {\n cpus = cpusIn;\n }",
"@SuppressForbidden(reason = \"to obtain default number of available processors\")\n/* */ synchronized int availableProcessors() {\n/* 65 */ if (this.availableProcessors == 0) {\n/* */ \n/* 67 */ int availableProcessors = SystemPropertyUtil.getInt(\"io.netty.availableProcessors\", \n/* */ \n/* 69 */ Runtime.getRuntime().availableProcessors());\n/* 70 */ setAvailableProcessors(availableProcessors);\n/* */ } \n/* 72 */ return this.availableProcessors;\n/* */ }",
"private void setNodeConnectionRequirement() {\n for (NodeRecord node : registeredNodes.values()) {\n node.setNumberOfConnectionsNodeNeedsToInitiate(requiredConnections);\n }\n }",
"private void setupProcessingPipeline() throws Exception {\n // activeProcessingUnits = 1;\n\n nonThreadedProcessingUnit = new NonThreadedProcessingUnit(this);\n // Assign initial status to all Cas Processors in the processing pipeline\n for (int i = 0; i < annotatorList.size(); i++) {\n ((ProcessingContainer) annotatorList.get(i)).setStatus(Constants.CAS_PROCESSOR_RUNNING);\n }\n\n nonThreadedProcessingUnit.setContainers(annotatorList);\n nonThreadedProcessingUnit.setCasPool(casPool);\n for (int j = 0; j < statusCbL.size(); j++) {\n BaseStatusCallbackListener statCL = (BaseStatusCallbackListener) statusCbL.get(j);\n if (statCL != null) {\n nonThreadedProcessingUnit.addStatusCallbackListener(statCL);\n }\n }\n }",
"public List<Processor> getProcessors() {\n return processors;\n }",
"public void setNumToProcess(long aNumToProcess) {\n numToProcess = aNumToProcess;\n }",
"public void setProcessorConfigs(List<UtteranceProcessorConfig> processorConfigs) {\n this.processorConfigs = processorConfigs;\n }",
"@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\n\tpublic void setNumProcesses(int newNumProcesses) {\n\t\tif(getNumProcesses() != newNumProcesses) \n\t\t\tdecoratorProcessorNumberLabelMap.clear();\n\t\tsuper.setNumProcesses(newNumProcesses);\n\t}",
"@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}",
"public ParallelApply() {\n super.setParallel(true);\n }",
"public void setTotalNumCpus (double totalNumCpus) \n\t{ \n\t\tfinal Set<Resource> res = n.getResources(RESOURCETYPE_CPU);\n\t\tif (res.size() > 1) throw new Net2PlanException (\"Format error\");\n\t\tif (res.isEmpty()) \n\t\t\tn.getNetPlan().addResource(RESOURCETYPE_CPU, RESOURCETYPE_CPU, Optional.of(n), totalNumCpus, RESOURCETYPE_CPU, new HashMap<> (), 0.0, null);\n\t\telse \n\t\t\tres.iterator().next().setCapacity(totalNumCpus, new HashMap<> ());\n\t}",
"public abstract void setNodes();",
"public static int getAvailableProcessors() {\r\n\t\treturn availableProcessors;\r\n\t}",
"public void setNode(String procId) {\r\n\t\tif (recordRoute) {\r\n\t\t\tsuper.setNode(procId); //Record route\r\n\t\t} else {\r\n\t\t\t//Just set the processing node.\r\n\t\t\tthis.procNode = procId;\r\n\t\t}\r\n\t}",
"static int setProducersNum(String producersNum){\n int num = Integer.parseInt(producersNum);\n if ((num % 2) !=0) throw new RuntimeException\n (\"Number of Producers must be even, beacuse the #Consumers is half\");\n if ( num<2 || num >1000) throw new RuntimeException\n (\"Invalid number of Producers, must be between 2 to 1000\");\n if (_defaultCon==1){\n _littleP=num;\n _littleC=num/2;\n }\n else if (_defaultCon==2){\n _averageP=num;\n _averageC=num/2;\n }\n else if (_defaultCon==3){\n _lotP=num;\n _lotC=num/2;\n }\n System.out.println(\"Using manual number of threads configuration.\");\n return _defaultCon;\n }",
"public void setNodes( Nodes nodes )\n {\n this.nodes = nodes;\n }",
"@Override\n\tpublic void visit(ParallelForConstruct n) {\n\t\tcfgNode = n;\n\t}",
"@Override\n\tpublic void assignPids() {\n\t\tThread t = new Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\twhile (nPidsAssigned < nProc -1) {\n\t\t\t\t\t\tinitConn.connectRetry(coordinatorHostname, 20000);\n\n\t\t\t\t\t\tnPidsAssigned++;\n\t\t\t\t\t\t// Pid 1 is reserved for the coordinator.\n\t\t\t\t\t\tint newPid = nPidsAssigned + 1;\n\t\t\t\t\t\tString hostname = initConn.getHostName();\n\t\t\t\t\t\tinitConn.send(((Integer)newPid).toString());\n\t\t\t\t\t\tinitConn.send(pidToHolderMap.get(newPid).toString());\n\t\t\t\t\t\tsynchronized (pidToHostnameMap) {\n\t\t\t\t\t\t\tpidToHostnameMap.put(newPid, hostname);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"PID: \" + newPid + \" sent\\n\");\n\n\t\t\t\t\t\tinitConn.close();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(pidToHostnameMap.toString());\n\t\t\t}\n\t\t});\n\t\tt.start();\n\t}",
"private void setDefaultConfiguration(){\n\t\tthis.setProperty(\"DefaultNodeCapacity\", \"5\");\n\t\tthis.setProperty(\"ReplicaNumber\", \"3\");\n\t\tthis.setProperty(\"JobReattemptTimes\", \"2\");\n\t\tthis.setProperty(\"ReducerCount\", \"3\");\n\t}",
"public void setMulticore(boolean enabled) {\n if (enabled) {\n mUsableCores = DroidContext.getInstance().getProfile().processors;\n }\n else {\n mUsableCores = 1;\n }\n }",
"@Override\n public void setParallel(boolean parallel) {\n super.setParallel(true);\n }",
"private void populateRenderableProcessors()\n {\n myProcessorsLock.readLock().lock();\n try\n {\n mySpecializedProcessorsLock.writeLock().lock();\n try\n {\n myRenderableGeometryProcessors.clear();\n myProjectionSensitiveProcessors.clear();\n for (final Entry<ProcessorDistributionKey, GeometryProcessor<? extends Geometry>> processorEntry : myGeometryProcessorsMap\n .entrySet())\n {\n if (processorEntry.getValue() instanceof RenderableGeometryProcessor)\n {\n myRenderableGeometryProcessors.put(processorEntry.getKey(),\n (RenderableGeometryProcessor<? extends Geometry>)processorEntry.getValue());\n }\n\n if (processorEntry.getValue().sensitiveToProjectionChanges())\n {\n myProjectionSensitiveProcessors.put(processorEntry.getKey(), processorEntry.getValue());\n }\n }\n myProjectionSyncManager.setProcessors(myProjectionSensitiveProcessors.values());\n }\n finally\n {\n mySpecializedProcessorsLock.writeLock().unlock();\n }\n }\n finally\n {\n myProcessorsLock.readLock().unlock();\n }\n }",
"public void setCurrentCpuFailoverResourcesPercent(int currentCpuFailoverResourcesPercent) {\r\n this.currentCpuFailoverResourcesPercent = currentCpuFailoverResourcesPercent;\r\n }",
"public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }",
"public void setNumberOfThreads(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(NUMBEROFTHREADS_PROP.get(), value);\n }",
"public Builder setServerProcessingIterations(int value) {\n \n serverProcessingIterations_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setNodes(int nodes) {\n\t\tmodel.setNodes(nodes);\n\t}",
"@Override\n\tpublic void visit(ParallelConstruct n) {\n\t\tcfgNode = n;\n\t}",
"public void setProcessor(EntryProcessor processor)\n {\n m_processor = processor;\n }",
"public static int availableProcessors() {\n/* 98 */ return holder.availableProcessors();\n/* */ }",
"public void setPnode(Node<T1> pNode) {\r\n\t\tthis.pnode = pNode;\r\n\t\tcheckRep();\r\n\t}",
"public void forEach(Processor processor) {\n\n\t}",
"public void setNCores(int nCores) {\n this.nCores = nCores;\n }",
"public void setCurrentMemoryFailoverResourcesPercent(int currentMemoryFailoverResourcesPercent) {\r\n this.currentMemoryFailoverResourcesPercent = currentMemoryFailoverResourcesPercent;\r\n }",
"public void setCallbackOnPartitionsAssigned( Runnable callbackOnPartitionsAssigned ) {\n this.callbackOnPartitionsAssigned = callbackOnPartitionsAssigned;\n }",
"public void setProcessorParametres(Integer processorTemperature, Integer\n chemicalDegree) {\n demoProcessorParametres.put(\"processing_temperature\", processorTemperature);\n demoProcessorParametres.put(\"chemical_processing_degree\", chemicalDegree);\n processorParametres = ImmutableMap.copyOf(demoProcessorParametres);\n demoProcessorParametres.clear();\n }",
"void setNodeBulkLoadEnabled(boolean bulkLoadEnabled);",
"protected void configureAndStartNodeFinders(Properties props) {\n\t}",
"public void setCpu(Long Cpu) {\n this.Cpu = Cpu;\n }",
"private void setNeighbors() {\n\t\tfor (int i = 0; i < getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < getNumCols(); j++) {\n\t\t\t\tCell c = getCurrentGrid()[i][j];\n\t\t\t\tsetNeighborsForCell(c);\n\t\t\t}\n\t\t}\n\t}",
"public Schedule(int numProcessors) {\n scheduledTasks = new HashMap<>();\n processors = new ArrayList<>();\n length = 0;\n\n for (int i = 1; i <= numProcessors; i++) {\n processors.add(new Processor(\"\" + i));\n }\n }",
"@Override\n\tpublic void forEach(Processor processor) {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tprocessor.process(elements[i]);\n\t\t}\n\t}",
"private void setupPuntToCpu(ApplicationId appId) {\n for (Criterion c : PuntCpuCriterionFactory.getAllPuntCriterion()) {\n FlowRule flPuntCpu = buildTPppoeCpFlowRule((PiCriterion) c, appId);\n flowRuleService.applyFlowRules(flPuntCpu);\n }\n }",
"public void setNode(ResidentNode node) {\r\n\t\tthis.node = node;\r\n//\t\tif (this.node != null && this.node.getMFrag() != null) {\r\n//\t\t\tthis.mebn = this.node.getMFrag().getMultiEntityBayesianNetwork();\r\n//\t\t}\r\n\t}",
"public PrimeNumberCalculator() {\n\t\t\t\tthis.threads = 1;\n\t\t}",
"public void setp(Node n) {\n\t\tp = n;\n\t}",
"@JsonProperty(\"maxProcesses\")\r\n @JacksonXmlProperty(localName = \"max_processes\", isAttribute = true)\r\n public void setMaxProcesses(Integer maxProcesses) {\r\n this.maxProcesses = maxProcesses;\r\n }",
"public void setInstancesPerType(int instancesPerType)\n {\n this.instancesPerType = instancesPerType;\n }",
"public void setParallel( boolean parallel ) {\n\t\tif ( this.parallel != parallel ) {\n\t\t\tthis.parallel = parallel;\n\t\t\t// FIXME: notify the change\n\t\t}\n\t}",
"@Override\n\tpublic void setReporter(Reporter processor) {\n\n\t}",
"protected void setPartitioner(final Partitioner partitioner) {\n\t\tthis.partitioner = partitioner;\n\t}",
"@Override\n\tpublic void visit(NumThreadsClause n) {\n\t\tcfgNode = n;\n\t}",
"public void manage(int parallel) {\n this.manage(parallel, 60L, 120L);\n }",
"@Override\n public void initialize() {\n time = 0;\n //noinspection ConstantConditions\n this.runningTasks.addAll(getInitialNode().getTasks());\n for (Node node : nodes) {\n node.initialize();\n }\n }",
"private void setProcessId(int value) {\n\t\tthis.processId = value;\n\t}",
"public Configuration() {\r\n\t\t\tmaxEffectiveWorker = (Runtime.getRuntime().availableProcessors()*3/2) + 2;\r\n\t\t\tmaxPhysicalWorker = Math.max(32, (maxEffectiveWorker * 2) + 2);\r\n\t\t}",
"void setPoolRaces(int poolRaces);",
"public void setPClusterId(Number value) {\n\t\tsetNumber(P_CLUSTER_ID, value);\n\t}",
"public int getWorkersPerServer() {\n return Integer.parseInt(getOptional(\"kylin.server.sequence-sql.workers-per-server\", \"1\"));\n }",
"public void setCPUCore(CPUCore cpuCore) {\n this.cpuCore = cpuCore;\n }",
"public void init() {\n\t\tfor (Node node : nodes)\n\t\t\tnode.init();\n\t}",
"public MessageProcessorDistributor() {\n this.messageProcessors = new LinkedList<MessageProcessor>();\n }",
"public void setInputNodes(Node[] node) {\n this.inputNodes = node;\n }",
"public void setNumberConcurrentEmulators(int emu) {\n\t\tnumberConcurrentEmulators = emu;\n\t}",
"public void setBeforeSendReplyPostProcessors(MessagePostProcessor... beforeSendReplyPostProcessors) {\n\t\tAssert.noNullElements(beforeSendReplyPostProcessors, \"'replyPostProcessors' must not have any null elements\");\n\t\tthis.beforeSendReplyPostProcessors = Arrays.copyOf(beforeSendReplyPostProcessors,\n\t\t\t\tbeforeSendReplyPostProcessors.length);\n\t}",
"protected void divideWorkersBySkill() {\n ResourcePool myResourcePool;\n\n for (Person person : this.getPersons()) {\n myResourcePool = this.getResourcePools().get(person.getSkill());\n\n // Create the pool if no other workers have yet been discovered with this skill\n if (myResourcePool == null) {\n myResourcePool = new ResourcePool(new ArrayList<>(), person.getSkill(),\n this.getName());\n this.getResourcePools().put(person.getSkill(), myResourcePool);\n }\n\n myResourcePool.addPerson(person);\n }\n }",
"public void startPopulateWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\tthreads.add(new Thread(pts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setupComputerPlayers() {\r\n\t\tif(models == null) models = new ModelFactory(this, options);\r\n\t\tCPUFactory factory = new CPUFactory(this);\r\n\t\tint cpuIndex = 0;\r\n\t\tfor(int i = 0; i < getNumPlayers(); i++) {\r\n\t\t\tboolean isCPU = i >= getNumPlayers() - getNumNPC();\r\n\t\t\tif(isCPU) {\r\n\t\t\t\tPlayer current = players.get(i);\r\n\t\t\t\tcurrent.setComputerPlayer(factory.getComputerPlayer(current, cpuTypes.get(cpuIndex++)));\r\n\t\t\t}\r\n\t\t} \r\n\t}",
"public void setProcessedOn (BigDecimal ProcessedOn);",
"public void setImnodes(Imnode node) {\n if (Imnodes == null) {\n Imnodes = new ArrayList<Imnode>();\n }\n Imnodes.add(node);\n }",
"public void setCorrespondingNode(MinesNode node) {\r\n\t\tcorrespondingNode = node;\r\n\t}",
"public void setPartitions(Long Partitions) {\n this.Partitions = Partitions;\n }",
"@Override\n\tprotected void setAllResultsToPar() {\n\t}",
"void setResursiveSplitOn() {\n this.recursiveSplit = true;\n }",
"public void setNumPens(int numPens){\n this.mFarm.setNumPens(numPens);\n }",
"@Override\r\n public int getMaxConcurrentProcessingInstances() {\r\n return 1;\r\n }",
"public DataLoadingRequestBuilder setNumberOfCores(final int numberOfCores) {\n this.numberOfCores = numberOfCores;\n return this;\n }",
"private void setConfigNumMaxTotalJobs(int value) {\n this.bitField0_ |= 1;\n this.configNumMaxTotalJobs_ = value;\n }",
"public void setCurrentNode(int node) {\n\t\tthis.currentNode = node;\n\t}",
"private void configureNode() {\n\t\twaitConfigData();\n\t\tpropagateConfigData();\n\n\t\tisConfigured = true;\n\t}"
] |
[
"0.7949498",
"0.6677037",
"0.6212428",
"0.54735655",
"0.544575",
"0.538326",
"0.5135022",
"0.50981694",
"0.5077636",
"0.50722307",
"0.5070517",
"0.50700855",
"0.50501496",
"0.50270826",
"0.50253487",
"0.49392593",
"0.4921983",
"0.4906076",
"0.49032134",
"0.48612413",
"0.48612413",
"0.48575857",
"0.48492494",
"0.48492494",
"0.48492494",
"0.48492494",
"0.48492494",
"0.48492494",
"0.48492494",
"0.48373517",
"0.48249224",
"0.48181447",
"0.48176998",
"0.47916856",
"0.4771262",
"0.47614154",
"0.47587594",
"0.4748256",
"0.47287422",
"0.47270417",
"0.4724965",
"0.46884975",
"0.46853113",
"0.46667805",
"0.4664142",
"0.46499166",
"0.4629354",
"0.46173418",
"0.46041363",
"0.45836243",
"0.45720962",
"0.45694888",
"0.45543578",
"0.45493624",
"0.4544979",
"0.4541206",
"0.4534193",
"0.45294642",
"0.44993287",
"0.44887292",
"0.44807485",
"0.4480661",
"0.4466646",
"0.4464248",
"0.4449163",
"0.444501",
"0.4444875",
"0.44422597",
"0.44408467",
"0.44341528",
"0.44081256",
"0.44054702",
"0.44042784",
"0.44008458",
"0.43935767",
"0.43759292",
"0.43579665",
"0.43523094",
"0.43442428",
"0.43409428",
"0.4338444",
"0.43316433",
"0.4316211",
"0.43145713",
"0.43127477",
"0.4312514",
"0.4311558",
"0.4307474",
"0.43014532",
"0.43003994",
"0.42959294",
"0.42877024",
"0.428746",
"0.4286113",
"0.42827845",
"0.4280274",
"0.4279746",
"0.4279289",
"0.42791715",
"0.4278559"
] |
0.8152205
|
0
|
Sets the queued date of this job.
|
@Override
public void setQueuedDate(Date queuedDate) {
model.setQueuedDate(queuedDate);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic Date getQueuedDate() {\n\t\treturn model.getQueuedDate();\n\t}",
"public synchronized final void setQueued(boolean qd) {\n\t\tsetFlag(RequestQueued, qd);\n\t}",
"@Override\n\tpublic void setRequestedDate(java.util.Date requestedDate) {\n\t\t_dmGtStatus.setRequestedDate(requestedDate);\n\t}",
"public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}",
"public void setCompletedDate(Date value) {\n this.completedDate = value;\n }",
"@Override\n\tpublic void setRequestedDate(java.util.Date requestedDate) {\n\t\t_dmGTShipPosition.setRequestedDate(requestedDate);\n\t}",
"public void setStartedDate(Date value) {\n this.startedDate = value;\n }",
"public void setRequestedDate(Date date) {\n requestedDate.setText(formatDate(date));\n }",
"public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }",
"public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }",
"public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }",
"public void setDoneDate(Date doneDate) {\n this.doneDate = doneDate;\n }",
"private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }",
"public void setHdrq(Date hdrq) {\n\t\tthis.hdrq = hdrq;\n\t}",
"public void setDate(Date date) {\n mDate = date;\n }",
"public StockEvent setDate(Date date) {\n this.date = date;\n return this;\n }",
"public void xsetJobStartDate(org.apache.xmlbeans.XmlDate jobStartDate)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDate target = null;\r\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(JOBSTARTDATE$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(JOBSTARTDATE$0);\r\n }\r\n target.set(jobStartDate);\r\n }\r\n }",
"public void SetDate(Date date);",
"public void setJobStartDate(java.util.Calendar jobStartDate)\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(JOBSTARTDATE$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(JOBSTARTDATE$0);\r\n }\r\n target.setCalendarValue(jobStartDate);\r\n }\r\n }",
"void setDate(Date data);",
"public void setRequestedDate(java.util.Date requestedDate) {\n\t\t_dmHistoryMaritime.setRequestedDate(requestedDate);\n\t}",
"public void setFreezeTimestamp(java.util.Date value);",
"public void setDate() {\n this.date = new Date();\n }",
"public abstract void setStartTime(Date startTime);",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n this.date = date;\r\n }",
"public void setDate(final Date date) {\n this.date = date;\n }",
"@Override\n\tprotected void setDate() {\n\n\t}",
"public void setDueDate(Date d){dueDate = d;}",
"@Override\n\tpublic void setStatusDate(Date statusDate);",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public JobBuilder startTime(Date startTime) {\r\n job.setStartTime(startTime);\r\n return this;\r\n }",
"public void setScheduleDate(Date scheduleDate) {\r\n\t\tthis.scheduleDate=scheduleDate;\r\n\t}",
"public void setDate(Date date) {\n\t\tthis._date = date;\n\t}",
"public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}",
"public void setRequestDate(Date requestDate);",
"public final void setSchedule(java.util.Date schedule)\n\t{\n\t\tsetSchedule(getContext(), schedule);\n\t}",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setStatusDate(Date statusDate)\r\n {\r\n m_statusDate = statusDate;\r\n }",
"@Override\n\tpublic void setSubmitDate(Date submitDate) {\n\t\tmodel.setSubmitDate(submitDate);\n\t}",
"void setDate(java.lang.String date);",
"public synchronized void setLastModifiedTimestamp() {\n queueAttributes.put(MessageBoxConstants.SQS_QUEUE_ATTRIBUTE_LAST_MODIFIED_TIMESTAMP,\n Long.toString(System.currentTimeMillis() / 1000));\n }",
"public void setDate(Date date) {\n setDate(date, null);\n }",
"public void setDateExecution(Date dateExecution) {\r\n this.dateExecution = dateExecution;\r\n }",
"public void setCurrentDate(String d) {\n currentDate = d;\n }",
"@Override\n\tpublic void setStatusDate(Date statusDate) {\n\t\tmodel.setStatusDate(statusDate);\n\t}",
"public void setCurrentDate(String currentDate) {\n this.currentDate = currentDate;\n }",
"public void setDate(Date date) {\n\t\t\n\t\tdate_ = date;\n\t}",
"public void setCurrentDate(Date currentDate)\r\n {\r\n m_currentDate = currentDate;\r\n }",
"public void setSelectedDate(Date selectedDate);",
"public void setDate(long date) {\n\t\tthis.date = date;\n\t}",
"void setCheckedOutDate(Date checkedOutDate);",
"public void setBeginDate(Date beginDate) {\n this.beginDate = beginDate;\n if(this.beginDate.before(DateUtils.getToday())){\n this.beginDate = DateUtils.getToday();\n }\n //For new event or event with beginDate after endDate, set endDate after 30 minutes when beginDate change\n if(this.endDate == null || (this.endDate != null && !this.endDate.after(beginDate)))\n this.endDate = new Date(beginDate.getTime() + TimeUnit.MINUTES.toMillis(30));\n }",
"public void setDate(long date) {\r\n\t\tthis.date = new Date(date);\r\n\t}",
"void setStartDate(Date startDate);",
"public void setDate(Date newDate) {\n this.currentDate = newDate;\n }",
"public void setDate(int dt) {\n date = dt;\n }",
"public void updateBDate() {\n bDate = new Date();\n }",
"public void setWaitDate(Date waitDate) {\r\n this.waitDate = waitDate;\r\n }",
"public void setStartDate(Date s);",
"public void setDate(Calendar currentDate) {\r\n this.currentDate = currentDate;\r\n }",
"@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\t\t\n\t}",
"public void setCHEQUE_DATE(Date CHEQUE_DATE) {\r\n this.CHEQUE_DATE = CHEQUE_DATE;\r\n }",
"public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n Logger.d(TAG, \"The date is null\");\n }\n }",
"public void setDatePromised(Timestamp DatePromised) {\n\t\tset_Value(\"DatePromised\", DatePromised);\n\t}",
"public void setDate(String date) {\r\n this.date = date;\r\n }",
"public void setStartDate(java.util.Date value);",
"public void setDate(DateTime \n date) {\n this.date = date;\n }",
"public void setBegDate(java.lang.String value) {\n this.begDate = value;\n }",
"public void setDateOrdered (Timestamp DateOrdered);",
"@Override\n public void mySchedule(String date) {\n FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MYSCHEDULEV2, RequestMethod.POST);\n request.add(\"username\", application.getSystemUtils().getDefaultUsername());\n request.add(\"token\", application.getSystemUtils().getToken());\n request.add(\"date\", date);\n request.add(MethodCode.DEVICEID, application.getSystemUtils().getSn());\n request.add(MethodCode.DEVICETYPE, SystemUtils.deviceType);\n request.add(MethodCode.APPVERSION, SystemUtils.getVersionName(context));\n addQueue(MethodCode.EVENT_MYSCHEDULE, request);\n\n\n// startQueue();\n }",
"public void setCcrq(Date ccrq) {\n this.ccrq = ccrq;\n }",
"public void setDate(long value) {\n this.date = value;\n }",
"@Override\n\tpublic void setDateAndSchedule(String date, String schedule) {\n\n\t}",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setRequestDate(Date requestDate) { this.requestDate = requestDate; }",
"public void setDateTime(Date date)\n\t{\n\t\tint nHour, nMin;\n\n\t\tCalendar cal = Calendar.getInstance(); //Get calender\n\t\tcal.setTime(date); //Set given date\n\t\tnHour = cal.get(Calendar.HOUR_OF_DAY);\n\t\tnMin = cal.get(Calendar.MINUTE);\n\n\t\tsetDateTime(nHour, nMin, date);\n\t}",
"public void setDate(String parName, Date parVal) throws HibException;",
"void setCreateDate(Date date);",
"public void setDate(String date){\n this.date = date;\n }",
"public void setDateAdded(Date dateAdded);",
"public void setStartTimeDate(Date startTimeDate) {\n this.startTimeDate = startTimeDate;\n }",
"public void setREQ_START_DATE(java.sql.Date value)\n {\n if ((__REQ_START_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_START_DATE)))\n {\n _isDirty = true;\n }\n __REQ_START_DATE = value;\n }",
"public void setArrivalDate(Date arrivalDate);"
] |
[
"0.6448119",
"0.6110976",
"0.59140843",
"0.5743268",
"0.57398444",
"0.5721314",
"0.57072073",
"0.56484365",
"0.5648238",
"0.5648238",
"0.5648238",
"0.5648238",
"0.5645474",
"0.56398064",
"0.56352735",
"0.56052554",
"0.5592331",
"0.55834484",
"0.5544626",
"0.55430627",
"0.5537926",
"0.5537086",
"0.5535364",
"0.55238575",
"0.5496688",
"0.5496688",
"0.5496688",
"0.5493259",
"0.5485583",
"0.5472536",
"0.5462593",
"0.5461199",
"0.5459353",
"0.5459353",
"0.5459353",
"0.5459353",
"0.5459353",
"0.5459353",
"0.5459353",
"0.5459353",
"0.5459353",
"0.54568076",
"0.54495645",
"0.5436813",
"0.5428642",
"0.54123855",
"0.54008585",
"0.5397463",
"0.5397463",
"0.5397463",
"0.53948104",
"0.53924435",
"0.53885305",
"0.536203",
"0.53615004",
"0.53559726",
"0.53401554",
"0.5339291",
"0.5331993",
"0.5317035",
"0.5316641",
"0.52934504",
"0.52927905",
"0.5289145",
"0.528584",
"0.52772355",
"0.5267996",
"0.52564967",
"0.52451265",
"0.52391225",
"0.5218119",
"0.520961",
"0.5198654",
"0.51933193",
"0.5191488",
"0.5190631",
"0.5183605",
"0.5183035",
"0.51673293",
"0.51663697",
"0.5163314",
"0.515488",
"0.51544017",
"0.51527685",
"0.51516396",
"0.5145414",
"0.51436627",
"0.51436627",
"0.51436627",
"0.51436627",
"0.51436627",
"0.5136419",
"0.51339275",
"0.5133741",
"0.5124",
"0.51232177",
"0.5122199",
"0.5122052",
"0.5109489",
"0.5096562"
] |
0.82006013
|
0
|
Sets the queue name of this job.
|
@Override
public void setQueueName(String queueName) {
model.setQueueName(queueName);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setQueueName(java.lang.String queueName) {\n this.queueName = queueName;\n }",
"void setJobName(String jobName);",
"public java.lang.String getQueueName() {\n return queueName;\n }",
"java.lang.String getQueueName();",
"@Override\n protected String getQueueName() {return _queueName;}",
"public void setName(String name) {\n if (name == null || name.trim().length() == 0) {\n throw new IllegalArgumentException(\n \"Trigger name cannot be null or empty.\");\n }\n\n this.name = name;\n this.key = null;\n }",
"@Override\n\tpublic String getQueueName() {\n\t\treturn model.getQueueName();\n\t}",
"public JobBuilder name(String name) {\r\n job.setName(name);\r\n return this;\r\n }",
"public Builder setTargetJobName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n targetJobName_ = value;\n onChanged();\n return this;\n }",
"public void setName(String name) {\n if (!name.isEmpty()) {\n this.name = name;\n }\n }",
"@Override\n public void setName(String name)\n {\n checkState();\n this.name = name;\n }",
"@DISPID(7)\r\n\t// = 0x7. The runtime will prefer the VTID if present\r\n\t@VTID(13)\r\n\tjava.lang.String queueName();",
"public void setName(String name) {\n \tif (name==null)\n \t\tthis.name = \"\";\n \telse\n \t\tthis.name = name;\n\t}",
"@Override\n\tpublic void setJobName(String jobName) {\n\t\tmodel.setJobName(jobName);\n\t}",
"public final void setName(String name) {\n\t\tthis.name = name;\n\t}",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"public void setCurrentTaskName(String name);",
"public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}",
"public void setName(String name) {\n\t\t\tthis.name = name;\n\t\t}",
"public String queueName();",
"public void setName( final String name )\n\t{\n\t\tthis.name = name;\n\t}",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(example = \"support\", value = \"The name of the queue\")\n @JsonProperty(JSON_PROPERTY_QUEUE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getQueue() {\n return queue;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(example = \"support\", value = \"The name of the queue\")\n @JsonProperty(JSON_PROPERTY_QUEUE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getQueue() {\n return queue;\n }",
"public void setName(String name) {\r\n\t\t_name = name;\r\n\t}",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n this.name = name;\n }",
"public void setName(String _name) {\n\t\tthis.name = _name;\n\t}",
"public final void setName(final String inName) {\n mName = inName;\n }",
"public void setName(String name) {\n\t\tName = name;\n\t}",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n synchronized(this) {\n this.name = name;\n nameExplicitlySet = true;\n }\n }",
"public void setName(String name) {\n\t this.name = name;\n\t }",
"public void setName(final java.lang.String name) {\n this.name = name;\n }",
"public void setName(final String name) {\n mName = name;\n }",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n\t\tthis.name = name;\n\t}"
] |
[
"0.7701729",
"0.6997121",
"0.6606329",
"0.6553608",
"0.6489624",
"0.6417152",
"0.6370393",
"0.6325218",
"0.63121986",
"0.61640155",
"0.61507857",
"0.6150307",
"0.61417115",
"0.6138545",
"0.6097635",
"0.6064033",
"0.6052449",
"0.60500675",
"0.60489285",
"0.60489285",
"0.60489285",
"0.60489285",
"0.6031139",
"0.6031139",
"0.60074115",
"0.60074115",
"0.60033864",
"0.5987972",
"0.5987972",
"0.59852034",
"0.5981409",
"0.5977407",
"0.5977407",
"0.5977407",
"0.5977407",
"0.5948365",
"0.5948365",
"0.59464216",
"0.59445816",
"0.59445816",
"0.59408176",
"0.5939502",
"0.5939459",
"0.5939017",
"0.5939017",
"0.593711",
"0.59366184",
"0.59163505",
"0.5914861",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491",
"0.5910491"
] |
0.7723953
|
0
|
Sets the reference files of this job.
|
@Override
public void setReferenceFiles(String referenceFiles) {
model.setReferenceFiles(referenceFiles);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setFileRef() { this.fileRef = fileRef; }",
"public void addReference(FileSet reference) {\n referenceFilesets.add(reference);\n }",
"public void setFiles(ArrayList<BatchFileModel> value) {\n this.files = value;\n }",
"public void setClasspathRef(Reference r) {\n if (isReference()) {\n throw tooManyAttributes();\n }\n createClasspath().setRefid(r);\n setChecked(false);\n }",
"protected void setRefList( ReferenceList refList )\n {\n _refList = refList;\n }",
"public void setFiles(ArrayList<VipeFile> files) {\n this.files = files;\n }",
"private void setFile() {\n\t}",
"public void setClasspathRef(Reference r) {\r\n createClasspath().setRefid(r);\r\n }",
"public void setFiles(org.hpccsystems.ws.filespray.PhysicalFileStruct[] files) {\n\t\t this.files = files;\n\t }",
"public void setClasspathRef(Reference r) {\n createClasspath().setRefid(r);\n }",
"@Override\n\tpublic String getReferenceFiles() {\n\t\treturn model.getReferenceFiles();\n\t}",
"public void setClassPathRef(final Reference classPathRef)\n {\n createClassPath().setRefid(classPathRef);\n }",
"public void setReference(Reference ref)\n {\n this.ref = ref;\n }",
"public void setLink(FileNode target){\n\t\t/*link = target;\n\t\tsuper.setOffset(0);\n\t\tsuper.setLength(link.getLength());\n\t\tsuper.setSourcePath(link.getSourcePath());*/\n\t\tsuper.setVirtualSourceNode(target);\n\t\tsuper.setOffset(0);\n\t\tif(target != null){\n\t\t\tsuper.setLength(target.getLength());\n\t\t\tsuper.setSourcePath(target.getSourcePath());\n\t\t}\n\t}",
"void setInFiles(String inFilesStr) {\n\t\tString[] result = inFilesStr.split(\",\");\n\t\tfor (int x = 0; x < result.length; x++) {\n\t\t\tString fName = result[x].trim();\n\t\t\tthis.inFiles.add(new File(fName));\n\t\t}\n\t}",
"@Override\n protected ReferenceArgumentCollection makeReferenceArgumentCollection() {\n return new ReferenceArgumentCollection() {\n @Argument(doc = \"The reference sequence file.\", optional=true, common=false)\n public File REFERENCE_SEQUENCE;\n\n @Override\n public File getReferenceFile() {\n return REFERENCE_SEQUENCE;\n }\n };\n }",
"private void setReference(String ref) {\n Set<String> allRefs = getAllReferenceNames();\n if (!allRefs.contains(ref) && allRefs.contains(\"chr\" + ref)) {\n ref = \"chr\" + ref;\n }\n currentReference = ref;\n Genome loadedGenome = GenomeController.getInstance().getGenome();\n setMaxRange(new Range(1, loadedGenome.getLength()));\n setRange(1, Math.min(1000, loadedGenome.getLength()));\n }",
"void setModules(Set<File> modules);",
"public void SetTestFiles(File[] testFiles)\n\t{\n\t\tthis.testFiles = testFiles;\n\t}",
"private void updateFiles() {\n\t}",
"public void setFilesList(File nowFile) {\n enterFilePath(nowFile);\n }",
"public void reloadFiles()\n {\n for (Reloadable rel : reloadables)\n {\n rel.reload();\n }\n }",
"void setAlignmentRefs(java.util.List alignmentRefs);",
"private void initializeReferences(String inputFilename) {\n\t\tparser = new Parser(inputFilename);\n\t\tlocations = new TreeMap<>();\n\t}",
"private void setFileNameToReferenceNode(FMEditor fmEditor) {\n fmEditor.getDrawRectMap().values().stream().filter(drawNode -> drawNode.getFmNode().getRefuuid() != null)\n .forEach(drawNode -> editResourceService.getVMFile(drawNode.getFmNode().getRefuuid(), projectId, new AsyncCallback<VMFile>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(VMFile result) {\n if (result != null) {\n drawNode.getFmNode().setRefInfo(result.getName() + \".\" + result.getExtensionStr());\n\n editResourceService.getFileContent(drawNode.getFmNode().getRefuuid(), projectId, new AsyncCallback<byte[]>() {\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(byte[] result) {\n BinaryResourceImpl r = new BinaryResourceImpl();\n ByteArrayInputStream bi = new ByteArrayInputStream(result);\n\n EPackage.Registry.INSTANCE.put(FMPackage.eNS_URI, FMPackage.eINSTANCE);\n FMRoot root = null;\n try {\n r.load(bi, EditOptions.getDefaultLoadOptions());\n root = (FMRoot) r.getContents().get(0);\n } catch (IOException e) {\n SC.warn(e.getMessage());\n }\n if (root.getNode() != null) {\n drawNode.getFmNode().setRefName(root.getNode().getName());\n } else {\n drawNode.getFmNode().setRefName(\"\");\n }\n drawNode.getDrawRect()\n .setTitle(drawNode.getFmNode().getName() + \":\" + drawNode.getFmNode().getRefName() + \"\\n(\" + drawNode.getFmNode().getRefInfo() + \")\");\n }\n });\n } else {\n drawNode.getFmNode().setRef(0);\n drawNode.getFmNode().setRefInfo(null);\n drawNode.getFmNode().setRefName(null);\n drawNode.getFmNode().setRefuuid(null);\n drawNode.getDrawRect().setTitle(drawNode.getFmNode().getName());\n }\n }\n }));\n }",
"void setFilePath(String filePath);",
"public void setWorkingFiles (final Map<String, NewData> mp){\n \t\tList<String> nf = new LinkedList<String>();\n \t\tString s =\"\";\n \t\t\n \t\tfor ( String str : mp.keySet()){\n //\t\t\tthis.getFilelist().remove(str);\n //\t\t\tthis.getFilelist().put(str, mp.get(str).getLclock());\n \t\t\tthis.getFilelist().get(str).putAll(mp.get(str).getLclock());\n \n \t\t\tBufferedReader reader = new BufferedReader(new StringReader(mp.get(str).getFileContent()));\n \t\t\t\ttry {\n \t\t\t\t\twhile ((s = reader.readLine()) != null)\n \t\t\t\t\t\tnf.add(s);\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\t// TODO Auto-generated catch block\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t}\n \t\t\tthis.writeFile(this.getRoot()+ File.separatorChar +str, nf);\n \t\t\tnf.clear();\n \t\t}\n \t\n \t}",
"public void setFile(String fileName)\n {\n }",
"public void setFile(File f) { file = f; }",
"public void setFilesPath(File path) {\r\n\t\tfilesPathProperty.set(path);\r\n\t}",
"protected void setLinkOnly(FileNode target){\n\t\t//link = target;\n\t\t//super.setSourcePath(link.getSourcePath());\n\t\tsuper.setVirtualSourceNode(target);\n\t\tif(target != null) super.setSourcePath(target.getSourcePath());\n\t}",
"public void expectFiles(Path[] files)\n {\n expect_files = files;\n }",
"public void setFile(File file);",
"public void setNewFiles(java.lang.String[] param){\r\n \r\n validateNewFiles(param);\r\n\r\n localNewFilesTracker = true;\r\n \r\n this.localNewFiles=param;\r\n }",
"public void setFiles(String filenames)\n {\n if (filenames != null && filenames.length() > 0)\n {\n StringTokenizer tok = new StringTokenizer(\n filenames, \", \\t\\n\\r\\f\", false);\n while (tok.hasMoreTokens())\n {\n this.filenames.addElement(tok.nextToken());\n }\n }\n }",
"@Override\n public void setIncludeSources(Collection<File> sources) throws InterruptedException\n {\n Collection<File> files = populateIncludedSourceFiles(sources);\n \n super.setIncludeSources(files.toArray(new File[files.size()]));\n }",
"public void xsetReferenceFileIPR(org.apache.xmlbeans.XmlString referenceFileIPR)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REFERENCEFILEIPR$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(REFERENCEFILEIPR$0);\n }\n target.set(referenceFileIPR);\n }\n }",
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.ATTACH,\n adderName = \"attachment\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setAttachments(final Set<BwAttachment> val) {\n attachments = val;\n }",
"void setReference(String reference);",
"public void setLogFilesUrls() {\n String s = \"\";\n s = s + makeLink(\"NODE-\" + getNodeName() + \"-out.log\");\n s = s + \"<br>\" + makeLink(\"NODE-\" + getNodeName() + \"-err.log\");\n s = s + \"<br>\" + makeLink(\"log-\" + getNodeName() + \".html\");\n logFilesUrls = s;\n }",
"protected void internalSetUris(String[] uris) {\n m_uris = uris;\n m_prefixes = new String[uris.length];\n m_prefixes[0] = \"\";\n m_prefixes[1] = \"xml\";\n }",
"void setFilePath(Path filePath);",
"public final void setFilesystemObject( Object filesysObj) {\n \tm_filesysObj = filesysObj;\n }",
"public void setImage(String ref){\n\t ImageIcon ii = new ImageIcon(this.getClass().getResource(ref));\n\t image = ii.getImage();\n\t}",
"public void setConfigFiles(final Set<String> configFiles) {\n final Properties properties = new Properties();\n\n try {\n configFiles.forEach(x -> {\n final Resource resource = new ClassPathResource(x);\n logger.info(this.getClass().getName() + \" loading properties from \" + resource.getFilename());\n\n try {\n try (InputStream inputStream = resource.getInputStream()) {\n final Properties prop = new Properties();\n prop.load(inputStream);\n if (prop != null) {\n properties.putAll(prop);\n }\n }\n }\n catch (final Exception e) {\n System.out.println(\"Error occurs, message: \" + e.getMessage());\n }\n });\n }\n catch (final Exception e) {\n System.out.println(\"Error occurs, message: \" + e.getMessage());\n }\n\n /*System.out.print(\"All properties resolved.\\n \");\n final Enumeration<?> propertySet = properties.propertyNames();\n \n while (propertySet.hasMoreElements()) {\n final String candidate = (String) propertySet.nextElement();\n System.out.print(candidate + \" = \" + properties.getProperty(candidate) + \"\\n \");\n }\n System.out.println();\n */\n\n this.setProperties(properties);\n }",
"public void setReference(javax.xml.namespace.QName reference)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFERENCE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REFERENCE$0);\n }\n target.setQNameValue(reference);\n }\n }",
"public void setFiles(String mkey, File[] values) {\n\t\tint j = 0;\n\t\tif (values != null)\n\t\t\tfor (File value : values) {\n\t\t\t\tif (value != null) {\n\t\t\t\t\tsetFile(mkey + j, value);\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\t// erase other elements\n\t\tString last;\n\t\twhile (true) {\n\t\t\tlast = getString(mkey + j);\n\t\t\tif (last == null)\n\t\t\t\tbreak;\n\t\t\tsetString(mkey + j, null);\n\t\t\tj++;\n\t\t}\n\t}",
"public void xsetReference(org.apache.xmlbeans.XmlQName reference)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlQName target = null;\n target = (org.apache.xmlbeans.XmlQName)get_store().find_element_user(REFERENCE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlQName)get_store().add_element_user(REFERENCE$0);\n }\n target.set(reference);\n }\n }",
"public void setReference(String reference);",
"@Override\n public void setFile(File f) {\n \n }",
"public void setOutputFiles(Table outputFiles) {\n\t_outputFiles = outputFiles;\n }",
"public void setup(long _referenceNumber) {\n lengthOfFile = 8+8+(8*(64-cMinPower));\n referenceNumber = _referenceNumber;\n }",
"public void setThemeFiles(final List<IFileSpecification> files)\n {\n if (files != null)\n this.themeFiles = ImmutableList.copyOf(files);\n else\n this.themeFiles = ImmutableList.of();\n clean();\n }",
"void setFileName( String fileName );",
"public void setReferenceLines(java.util.Collection<ReferenceLine> referenceLines) {\n if (referenceLines == null) {\n this.referenceLines = null;\n return;\n }\n\n this.referenceLines = new java.util.ArrayList<ReferenceLine>(referenceLines);\n }",
"public void markCPRefs(boolean[] refs) {\n }",
"public void setReferenceFileIPR(java.lang.String referenceFileIPR)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFERENCEFILEIPR$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REFERENCEFILEIPR$0);\n }\n target.setStringValue(referenceFileIPR);\n }\n }",
"public void setsFilePath(String value) {\n sFilePath = value;\n // // initialize these two\n CurrentFile = null;\n CurrentUri = null;\n // // If we have something real, setup the file and the Uri.\n if (!sFilePath.equalsIgnoreCase(\"\")) {\n CurrentFile = new File(sFilePath);\n CurrentUri = Uri.fromFile(CurrentFile);\n }\n }",
"public void setSelectedFiles(File[] selectedFiles) {\n \tsuper.setSelectedFiles(selectedFiles);\n snppc.setHaveData( !((selectedFiles == null) || (selectedFiles.length == 0)));\n }",
"public void setResourceReferences(final Collection<? extends Citation> newValues) {\n resourceReferences = writeCollection(newValues, resourceReferences, Citation.class);\n }",
"@Override\n public void getFilesContent(List<FileReference> resultFilesContent) {\n }",
"@Override\n public void getFilesContent(List<FileReference> resultFilesContent) {\n }",
"public void setReferences(org.purl.dc.elements.x11.SimpleLiteral references)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.purl.dc.elements.x11.SimpleLiteral target = null;\r\n target = (org.purl.dc.elements.x11.SimpleLiteral)get_store().find_element_user(REFERENCES$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.purl.dc.elements.x11.SimpleLiteral)get_store().add_element_user(REFERENCES$0);\r\n }\r\n target.set(references);\r\n }\r\n }",
"public void setFileCertificates(Certificate[] acFileCertificates)\r\n {\r\n this.acFileCertificates = acFileCertificates;\r\n }",
"public void setReleaseFileXrefs (java.util.Set releaseFileXrefs) {\n\t\tthis.releaseFileXrefs = releaseFileXrefs;\n\t}",
"void setRef(java.lang.String ref);",
"public void setConfigReference(CachedFloatingLongValue storageReference) {\n this.storageReference = storageReference;\n }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setFileInfo(com.opentext.bn.converters.avro.entity.PayloadRef value) {\n validate(fields()[15], value);\n this.fileInfoBuilder = null;\n this.fileInfo = value;\n fieldSetFlags()[15] = true;\n return this;\n }",
"public void setAllFiles(HashMap<String, String> allFiles) {\n _allFiles = allFiles;\n }",
"public void setCatalogPathRef(Reference r) {\n if (isReference()) {\n throw tooManyAttributes();\n }\n createCatalogPath().setRefid(r);\n setChecked(false);\n }",
"public void setReference (SoftReference ref)\r\n {\r\n _reference = ref;\r\n }",
"PropertiesTask setTargetFile( File propertiesFile );",
"public void setDirty() {\r\n\t\tif (LOG.isLoggable(Level.FINE)) { LOG.fine(\"setDirty\"); }\r\n\r\n \tif(clean) { fireFileCleanStatusChangedEvent(new FileChangeEvent(eventSource, false)); }\r\n \tfireFileChangedEvent(new FileChangeEvent(this, false));\r\n \tclean = false;\r\n }",
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.RESOURCES,\n adderName = \"resources\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true)\n public void setResources(final Set<BwString> val) {\n resources = val;\n }",
"public void setFileUrl(String fileUrl);",
"public void setFileProgressData(int maxfiles,Vector files) {\n this.resetFileProcessValues();\n this.maxfiles=maxfiles;\n this.files=files; \n this.pbarFileProcess.setMaximum(maxfiles);\n \n }",
"public void setFileId(Long fileId) {\n/* 31:31 */ this.fileId = fileId;\n/* 32: */ }",
"public void setReference(boolean isReference) {\n ModelEvent<?> event = new ModelEventBuilder( ModelEventType.REFERENCE_FLAG_MODIFIED, this )\n .setOldValue( this.isReference ).setNewValue( isReference ).buildEvent();\n\n this.isReference = isReference;\n publishEvent( event );\n }",
"private void setFileNamePath(String value) {\n\t\tthis.fileNamePath = value;\n\t}",
"public ReferenceManager(Path base) {\n super(base);\n }",
"public void setFileList(List<TbomFile> fileList) {\n\t\tthis.fileList = fileList;\n\t}",
"public void setSlavesFile(String filename) {\n slavesFile = filename;\n }",
"public void setUploaddoc(ArrayList<File> uploaddoc) {\n\t\tthis.uploaddoc = uploaddoc;\n\t}",
"public void setFile(File file)\n {\n this.file = file;\n }",
"public void setReferenceSize() {\n transformManager.setReferenceSize();\n scaledComponentLayout.saveSwingComponentCoordinates( 1.0 );\n setScale( 1.0 );\n\n // Set the canvas size\n determineCanvasSize();\n\n if ( DEBUG_OUTPUT_ENABLED ) {\n System.out.println( \"ApparatusPanel2.setReferenceBounds: referenceBounds=\" + transformManager.getReferenceBounds() );\n }\n }",
"public void recordSetRefReprs()\n {\n //##60 BEGIN\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"\\nrecordSetRefReprs\",\n getSubpSym().getName());\n if (isComputedOrUnderComputation(DF_SETREFREPR)) {\n if (fDbgLevel > 0)\n ioRoot.dbgFlow.print(2, \"already computed\");\n return;\n }\n //##60 END\n //##65 BEGIN\n if (! isComputed(DF_EXPID)) {\n allocateExpIdForSubp();\n }\n //##65 END\n setUnderComputation(DF_SETREFREPR); //##62\n //##65 BEGIN\n if (fArrayOfSetRefReprList == null) {\n fArrayOfSetRefReprList = new SetRefReprList[fBBlockCount + 1];\n if (fDbgLevel > 3)\n ioRoot.dbgFlow.print(4, \"allocate fArrayOfSetRefReprList \"\n + fBBlockCount + 1);\n }\n //##65 END\n BBlock lBBlock;\n for (Iterator lCFGIterator = getBBlockList().iterator();\n lCFGIterator.hasNext(); ) {\n lBBlock = (BBlock)lCFGIterator.next();\n if (flowRoot.isHirAnalysis())\n recordSetRefReprs((BBlockHirImpl)lBBlock);\n }\n //##60 fDefCount=setRefRepr.getDefSetRefReprCount();\n fDefCount = getDefCount(); //##60\n //##60 DefVectorImpl.setVectorLength(flowRoot, fDefCount);\n setComputedFlag(DF_SETREFREPR); //##60\n }",
"public void setFileName(String fileName) {\n/* 39:39 */ this.fileName = fileName;\n/* 40: */ }",
"public void setHTTPFiles(HTTPFileArg[] files) {\n HTTPFileArgs fileArgs = new HTTPFileArgs();\n // Weed out the empty files\n if (files.length > 0) {\n for (HTTPFileArg file : files) {\n if (file.isNotEmpty()) {\n fileArgs.addHTTPFileArg(file);\n }\n }\n }\n setHTTPFileArgs(fileArgs);\n }",
"public void set(String path) throws FileNotFoundException {\n counterSeveralLines = linesAfter;\n arrayPreviousLines = new String[prevSize];\n currentPath = path;\n fileReader = new FileReader(currentPath);\n bufferReader = new BufferedReader(fileReader);\n resetDateBefore();\n }",
"void setFile(String i) {\n file = i;\n }",
"public void setRelPath (\r\n String strRelPath) throws java.io.IOException, com.linar.jintegra.AutomationException;",
"public Set<FileRef> getSourceFiles() {\r\n return sourceFiles;\r\n }",
"public void setReference(float[] reference){\n if(reference.length==3){\n referenceState[0]=reference[0];\n referenceState[1]=reference[1];\n referenceState[2]=reference[2];\n\n isStateSaved=true;\n\n if(referenceState[0]>Math.abs(referenceState[1])){\n isXZplane=true;\n } else{\n isXZplane=false;\n }\n }\n }",
"public void setImages(final SessionContext ctx, final Collection<GPImageLinkComponent> value)\n\t{\n\t\tsetLinkedItems( \n\t\t\tctx,\n\t\t\ttrue,\n\t\t\tGpcommonaddonConstants.Relations.BRANDBAR2GPIMAGELINKRELATION,\n\t\t\tnull,\n\t\t\tvalue,\n\t\t\tfalse,\n\t\t\tfalse,\n\t\t\tUtilities.getMarkModifiedOverride(BRANDBAR2GPIMAGELINKRELATION_MARKMODIFIED)\n\t\t);\n\t}",
"public void setSolutionKeys(List<String> keys) {\n this.solutionRefs = keys;\n }",
"@Override\n public Collection<LocalFile> referencedLocalFiles() {\n return ImmutableList.of(new LocalFile(queryOutputFilePath, LocalFileType.OUTPUT));\n }",
"public SetOnceRef(Object ref) {\n this(ref, false, true);\n }",
"public void SetJobByFileLine(String[] jobInfo) {\r\n this.setJobID(Integer.parseInt(jobInfo[0]));\r\n this.setJobPriority(Integer.parseInt(jobInfo[1]));\r\n this.setJobInTime(Integer.parseInt(jobInfo[2]));\r\n this.setJobInstructionNum(Integer.parseInt(jobInfo[3]));\r\n Log.Info(\"检测后备作业\", String.format(\"正在加载后备作业:%d,优先级:%d,进入时间:%d,指令数:%d\", jobID, jobPriority, jobInTime, jobInstructionNum));\r\n instructions = new ArrayList<>(jobInstructionNum);\r\n this.data = new short[jobInstructionNum];\r\n }",
"void setNewFile(File file);",
"public void updateDatabaseRefBackwards() {\n // we want to do this twice, since we go from children attribute to folder\n // and then folder to actual parent dir\n myRef = myRef.getParent().getParent();\n }"
] |
[
"0.6877506",
"0.62725097",
"0.5819792",
"0.5661121",
"0.5524483",
"0.5502692",
"0.5460239",
"0.54492474",
"0.5444056",
"0.5426743",
"0.54037106",
"0.5356679",
"0.53302664",
"0.532412",
"0.5307264",
"0.530101",
"0.52729636",
"0.5272935",
"0.5262901",
"0.52588046",
"0.52581847",
"0.521129",
"0.5203793",
"0.5185636",
"0.51777697",
"0.5172151",
"0.5169942",
"0.5158157",
"0.5156416",
"0.5146762",
"0.5125061",
"0.51140803",
"0.5099283",
"0.50907695",
"0.5082527",
"0.5080648",
"0.50790215",
"0.50770515",
"0.50745636",
"0.50741464",
"0.5049618",
"0.50476813",
"0.50470746",
"0.5038314",
"0.50139964",
"0.49943832",
"0.49857214",
"0.49815503",
"0.49799716",
"0.4961433",
"0.4957615",
"0.4956278",
"0.49247667",
"0.49041715",
"0.48988453",
"0.4897236",
"0.48899144",
"0.4888927",
"0.48888865",
"0.48852834",
"0.48793143",
"0.48793143",
"0.48490557",
"0.48487985",
"0.4846036",
"0.48390585",
"0.48267135",
"0.48130938",
"0.4808647",
"0.48042598",
"0.48010558",
"0.47995183",
"0.47890404",
"0.4788002",
"0.47803906",
"0.47760606",
"0.47710785",
"0.47654346",
"0.47580734",
"0.47560424",
"0.47530633",
"0.47389516",
"0.47376454",
"0.47339556",
"0.47327352",
"0.47299734",
"0.47284892",
"0.4723207",
"0.47213924",
"0.47128764",
"0.47075236",
"0.4698435",
"0.46980587",
"0.46947634",
"0.4693987",
"0.46860483",
"0.46741542",
"0.46727857",
"0.46677253",
"0.46660674"
] |
0.7289369
|
0
|
Sets whether this job is reserve results.
|
@Override
public void setReserveResults(boolean reserveResults) {
model.setReserveResults(reserveResults);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic boolean isReserveResults() {\n\t\treturn model.isReserveResults();\n\t}",
"@Override\n\tpublic boolean getReserveResults() {\n\t\treturn model.getReserveResults();\n\t}",
"public void setReserved(boolean reserved) {\n this.reserved = reserved;\n }",
"public void setAvalible(boolean val) {\n this.available = val;\n }",
"public void setAvailable(boolean x){\n availabile = x;\n }",
"public boolean reserve(int reservation) {\n int index = reservation - this.loRange;\n if (this.freeSet.get(index)) { // FREE\n this.freeSet.clear(index);\n return true;\n } else {\n return false;\n }\n }",
"@Override\n\tpublic boolean reserve() {\n\t\treturn false;\n\t}",
"public void setResult(boolean result) {\n\t\t_result = result;\n\t}",
"public Builder setMissingResults(boolean value) {\n \n missingResults_ = value;\n onChanged();\n return this;\n }",
"public void setResident(boolean resident) { this.resident = resident; }",
"public void setHasMoreJobs( boolean hasMoreJobs ) ;",
"public void setToReschedule(boolean b) {\n this.toReschedule = b;\n }",
"public void setPwrreserve( java.lang.Boolean newValue ) {\n __setCache(\"pwrreserve\", newValue);\n }",
"boolean isSetNumberOfResults();",
"public void setOccupied(boolean b) {\n\t\tisOccupied = b; \n\t}",
"public void setOccupied(boolean occupied){\n this.occupied = occupied;\n }",
"@Override\n\tprotected void setAllResultsToPar() {\n\t}",
"public void setAvailable(boolean a)\n {\n this.available = a;\n }",
"public void setResult(boolean value) {\n this.result = value;\n }",
"public void setResultRefined(boolean refineResult) throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mRefineResult = refineResult;\n }",
"public void setCacheResults(boolean cache) {\n cacheResults = cache;\n }",
"public boolean isSetTotalResults()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(TOTALRESULTS$4) != null;\n }\n }",
"public void setOptimizeResources(boolean value) {\n this.optimizeResources = value;\n }",
"public void setWaiting_query_rows_examined(Long waiting_query_rows_examined) {\n this.waiting_query_rows_examined = waiting_query_rows_examined;\n }",
"public Result(boolean requeue) {\n this(requeue, null);\n }",
"public boolean isSetReservations() {\n return this.reservations != null;\n }",
"public void setOccupancy(boolean occupancy) {\n\t\tthis.occupied = occupancy;\n\t}",
"public void setWaitForEver(boolean set){\r\n waitForEverFlag=set;\r\n }",
"public boolean isSetResults() {\n return this.results != null;\n }",
"public boolean isReserved() {\n return reserved;\n }",
"public boolean isReserved(){\n\t\treturn reserved;\n\t}",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public void setOccupied(boolean isOccupied) {\n\t\tthis.isOccupied = isOccupied;\n\t}",
"public void setPrimHasRun(Boolean bool){\n primHasRun = bool;\n }",
"public void setKeepProgressBar(boolean flag) {\r\n this.keepProgressBar = flag;\r\n }",
"public void setUseTimings(boolean useTimings)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(USETIMINGS$22);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(USETIMINGS$22);\n }\n target.setBooleanValue(useTimings);\n }\n }",
"public void setFilteringResults(Map<String, Boolean> filteringResults) {\n this.filteringResults = filteringResults;\n }",
"public void xsetUseTimings(org.apache.xmlbeans.XmlBoolean useTimings)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(USETIMINGS$22);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(USETIMINGS$22);\n }\n target.set(useTimings);\n }\n }",
"public void setFalse(){\n for (int i = 0; i < Nodes.size(); i++){\n this.MinDistanceStatus.add(false);\n }\n }",
"public void setRunnning(boolean bool) {\n\t\trunning = bool;\n\t}",
"public void setRegulate(boolean regulate)\r\n\t{\r\n\t\tthis.regulate = regulate;\r\n\t}",
"public void changeAvailability() {\n\t\tavailability = !availability;\n\t}",
"public void setAvailable(boolean available) {\r\n isAvailable = available;\r\n }",
"public void setUpdatingTaskStatusUpdatesResourceStatus(boolean flag)\r\n {\r\n m_updatingTaskStatusUpdatesResourceStatus = flag;\r\n }",
"@VTID(40)\n void setRequireManualUpdate(\n boolean rhs);",
"public void setToGridPermanently(){\n this.isPermanent = true;\n }",
"public void markReused() {\n\t\tupdate(Phase.vm_creation, State.SKIPPED);\n\t\tupdate(Phase.installation, State.SKIPPED);\n\t\tupdate(Phase.configuration, State.SKIPPED);\n\t\tsetState(State.SKIPPED);\n\t}",
"public void setOccupied(Boolean occupied) {\n\t\tthis.occupied = occupied;\n\t}",
"public void setWorking(boolean working) {}",
"public boolean operationWaiting(){\n\t\tif (var2Set) return true; else return false;\n\t}",
"@NoProxy\n @NoDump\n public void setSuppressed(final boolean val) {\n if (val) {\n setStatus(statusMasterSuppressed);\n } else {\n setStatus(null);\n }\n }",
"public Builder setMoreResults(boolean value) {\n \n moreResults_ = value;\n onChanged();\n return this;\n }",
"public void setTotalResults(java.math.BigInteger totalResults)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TOTALRESULTS$4);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TOTALRESULTS$4);\n }\n target.setBigIntegerValue(totalResults);\n }\n }",
"public void setCompleted(boolean flag) {\r\n completed = flag;\r\n }",
"public void setOptimized(boolean optimize) {\n this.optimize = optimize;\n }",
"public void setReadyToRun(boolean ready);",
"public void setComplete(boolean isComplete) { \n this.isComplete = isComplete; \n }",
"public void setRepairRequested(boolean newRepairRequested) {\n\t\t_pcs.firePropertyChange(\"repairRequested\", this.repairRequested, newRepairRequested); //$NON-NLS-1$\n\t\tthis.repairRequested = newRepairRequested;\n\t}",
"public void markAsRequiringMappingUpdate() {\n assert assertInvariants(ItemProcessingState.TRANSLATED);\n currentItemState = ItemProcessingState.WAIT_FOR_MAPPING_UPDATE;\n requestToExecute = null;\n assert assertInvariants(ItemProcessingState.WAIT_FOR_MAPPING_UPDATE);\n }",
"public void setRestricted( boolean val ) {\n this.restricted = val;\n if ( !val && getFlow().getRestriction() != null ) {\n doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), \"restriction\", null ) );\n }\n }",
"public final void setAvailable(boolean available) {\r\n\tremove();\r\n\tthis.available = available;\r\n\tapply();\r\n }",
"private boolean shouldApply() {\n return nextRandomInt() >= unappliedJobCutoff;\n }",
"private void plannerOutOfSyncWithShoppingList(boolean a){\n settings.setShoppingListOutOfSync(a);\n }",
"void setProbables(boolean probables);",
"public void setParking(java.lang.Boolean value);",
"public void setComplete(boolean param){\n \n // setting primitive attribute tracker to true\n localCompleteTracker =\n true;\n \n this.localComplete=param;\n \n\n }",
"public void setStartFinish(boolean b) {\r\n\t\t_StartFinish = true;\r\n\t}",
"public void setOnOptimization(boolean b) {\n this.onOptimization = b;\n }",
"public MathEval setVariableRequired(boolean val) {\r\n relaxed=(!val);\r\n return this;\r\n }",
"public void setOPRegistResult(java.lang.String param) {\r\n localOPRegistResultTracker = param != null;\r\n\r\n this.localOPRegistResult = param;\r\n }",
"void setRecalculate(boolean recalculate);",
"public void setAvailable(boolean available) {\n this.available = available;\n }",
"public void setAvailable(boolean available) {\n this.available = available;\n }",
"public void setComplete(boolean complete) {\n }",
"public void setRange(boolean range) {\r\n this.range = range;\r\n }",
"public void takeAvailable() {\n\t\tavailable = false;\n\t}",
"public void assignAddingResource(final boolean val) {\n addingResource = val;\n }",
"void setNumberOfResults(int numberOfResults);",
"public void setRanToCompletion(java.lang.Boolean value) {\n __getInternalInterface().setFieldValue(RANTOCOMPLETION_PROP.get(), value);\n }",
"public void setSummable(Boolean summable);",
"public void setHasSetParm(boolean param) {\n if (false) {\n localHasSetParmTracker = false;\n } else {\n localHasSetParmTracker = true;\n }\n this.localHasSetParm = param;\n }",
"public void setRanToCompletion(java.lang.Boolean value) {\n __getInternalInterface().setFieldValue(RANTOCOMPLETION_PROP.get(), value);\n }",
"@IcalProperty(pindex = PropertyInfoIndex.ORGANIZER_SCHEDULING_OBJECT,\n jname = \"organizerSchedulingObject\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true)\n @NoProxy\n public void setOrganizerSchedulingObject(final Boolean val) {\n organizerSchedulingObject = val;\n }",
"public final void \n\twantReadyReport( \n\t\t\tfinal boolean report ) {\n\t\t\n\t\tthis.wantReport = report;\n\t}",
"void setShouldStart(boolean shouldStart) {\n this.shouldStart = shouldStart;\n }",
"public void setRun(boolean b) {\n\t\tfirst.setRun(b);\n\t\trest.setRun(b);\n\t}",
"public void assignUserMaintOK(final boolean val) {\n userMaintOK = val;\n }",
"public void setSpreadPercentComplete(boolean spreadPercentComplete)\r\n {\r\n m_spreadPercentComplete = spreadPercentComplete;\r\n }",
"boolean shouldRescore() {\n return false;\n }",
"public synchronized void setWorking(boolean w)\n\t{\n\t\tm_working = w;\n\t}",
"public void setReservedThreads(int reservedThreads)\n {\n if (isRunning())\n throw new IllegalStateException(getState());\n _reservedThreads = reservedThreads;\n }",
"public void setRelaunched(boolean value) {\n this.relaunched = value;\n }",
"public void setResults(Map<String, StepResult> newResults)\n {\n results = newResults;\n }",
"public void setComplete(Boolean complete){\n this.complete = complete;\n }",
"private void setSleeping(boolean bool) {\r\n if (sleep != bool) {\r\n this.sleep = bool;\r\n repaint();\r\n if (!sleep) {\r\n synchronized (this.r) {\r\n this.r.notify();\r\n }\r\n }\r\n }\r\n }"
] |
[
"0.71422434",
"0.6276158",
"0.58864546",
"0.56721103",
"0.55836535",
"0.55569625",
"0.5465146",
"0.54447585",
"0.5424583",
"0.5387629",
"0.53186333",
"0.5312037",
"0.5287311",
"0.52826494",
"0.528066",
"0.521707",
"0.51891315",
"0.5185376",
"0.51781833",
"0.5162833",
"0.5162477",
"0.5156074",
"0.5150403",
"0.510023",
"0.50952655",
"0.5086891",
"0.50539976",
"0.50475824",
"0.5042056",
"0.5036398",
"0.5014143",
"0.50099194",
"0.50099194",
"0.50099194",
"0.50099194",
"0.50099194",
"0.50099194",
"0.50076145",
"0.5000696",
"0.49953556",
"0.4967715",
"0.49599594",
"0.49515358",
"0.49484107",
"0.49311507",
"0.49230355",
"0.49220005",
"0.49007985",
"0.4897937",
"0.48967472",
"0.48900965",
"0.48812634",
"0.48803636",
"0.4877744",
"0.48739892",
"0.48519516",
"0.48370466",
"0.48343545",
"0.4830974",
"0.48252988",
"0.48227957",
"0.4819661",
"0.48154896",
"0.48116213",
"0.48067346",
"0.48028618",
"0.47756016",
"0.47672328",
"0.47657746",
"0.47502276",
"0.47420794",
"0.4741143",
"0.47374907",
"0.47370464",
"0.4722854",
"0.47163993",
"0.47113663",
"0.47113663",
"0.47044665",
"0.4704002",
"0.4703232",
"0.4696901",
"0.4681028",
"0.46803612",
"0.46733496",
"0.46594265",
"0.46574235",
"0.4653288",
"0.46487135",
"0.46477214",
"0.46455333",
"0.46426436",
"0.46392435",
"0.4630033",
"0.46281785",
"0.46268368",
"0.46221155",
"0.46197623",
"0.461649",
"0.46148795"
] |
0.8069882
|
0
|
Sets the run type of this job.
|
@Override
public void setRunType(String runType) {
model.setRunType(runType);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void setRunType(java.lang.String runType) {\n\t\t_scienceApp.setRunType(runType);\n\t}",
"public void setJobType(int value) {\n this.jobType = value;\n }",
"@Override\n\tpublic String getRunType() {\n\t\treturn model.getRunType();\n\t}",
"public RunType runType() {\n return this.runType;\n }",
"final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }",
"public void setLaunchType(String launchType) {\n this.launchType = launchType;\n }",
"public void setLaunchType(String launchType) {\n this.launchType = launchType;\n }",
"protected void setLaunchType(int launchType) {\n switch (launchType) {\n case ILaunchConstants.LAUNCH_TYPE_WEB_CLIENT:\n externalBrowserCheckbox.setEnabled(true);\n break;\n\n default:\n DartUtil.logError(\"Invalidate launch type specified: \" + launchType);\n setLaunchType(ILaunchConstants.LAUNCH_TYPE_WEB_CLIENT);\n break;\n }\n }",
"void setType(String type) {\n this.type = type;\n }",
"void setType(java.lang.String type);",
"public void setType (String typ) {\n type = typ;\n }",
"void setClassType(String classType);",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"@Override\n\tpublic java.lang.String getRunType() {\n\t\treturn _scienceApp.getRunType();\n\t}",
"void setType(Type type)\n {\n this.type = type;\n }",
"public void setType(String val) {\n type = val;\n }",
"public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }",
"public JobType getType() { return type; }",
"public final void setType(String type){\n\t\tthis.type = type;\t\n\t}",
"@Override\n public void setType(String type) {\n this.type = type;\n }",
"private void setType(String type) {\n mType = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void set_type(String t)\n {\n type =t;\n }",
"public final void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n m_Type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public JobLog setTaskType(TaskType taskType) {\n this.taskType = taskType;\n return this;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) \n {\n this.type = type;\n }",
"public void setType(String type) {\r\r\n\t\tthis.type = type;\r\r\n\t}",
"public void setTYPE(String TYPE) {\n this.TYPE = TYPE;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void changeType(String type, String newtype) {\r\n\r\n\t\tTaskType tt = getType(type);\r\n\t\tif (tt != null)\r\n\t\t\ttt.name = newtype;\r\n\t}",
"public void setType( String type )\n {\n this.type = type;\n }",
"public void setExecutionType(String executionType) {\n\t\tthis.executionType = executionType;\n\t}",
"public static void setType(String type) {\n Globals.type = type;\n setProperty(\"type\", type);\n }",
"public final native void setType(String type) /*-{\n this.setType(type);\n }-*/;",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"void setRunMode(TaskRunMode runMode);",
"public void setType( String type ) {\n this.type = type;\n }",
"public void setType(long type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"@Override\n\tpublic void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type){\n this.type = type;\n }",
"public void setType(String type){\n \tthis.type = type;\n }",
"public void setType( int type ) {\r\n typ = type;\r\n }",
"public void setType(String type){\r\n if(type == null){\r\n throw new IllegalArgumentException(\"Type can not be null\");\r\n }\r\n this.type = type;\r\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType(int type)\n {\n editor.putInt(KEY_TYPE, type);\n // commit changes\n editor.commit();\n Log.d(TAG,\"user type modified in pref\");\n }",
"public void setType(Type t) {\n type = t;\n }",
"public void setType(java.lang.String type) {\n this.type = type;\n }",
"public void setType(java.lang.String type) {\n this.type = type;\n }",
"public void setType(int type) {\n this.type = type;\n }",
"public void setType(String type) {\n\n this.type = type;\n }",
"public void setType(String type){\n\t\tthis.type = type;\n\t}",
"public void set_type(String type)\r\n\t{\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"@Override\n\tpublic void setType(String type) {\n\t}",
"public void setType(int type) {\n type_ = type;\n }",
"public RunFilter withRunType(RunType runType) {\n this.runType = runType;\n return this;\n }"
] |
[
"0.7433232",
"0.66073686",
"0.62516606",
"0.6135228",
"0.60879254",
"0.6084861",
"0.6084861",
"0.5994927",
"0.5968897",
"0.59018886",
"0.58980614",
"0.5856527",
"0.58443296",
"0.58443296",
"0.58443296",
"0.58394086",
"0.58172",
"0.580354",
"0.5797618",
"0.57790303",
"0.5771191",
"0.57591015",
"0.5756514",
"0.57373554",
"0.57364464",
"0.5735127",
"0.573303",
"0.57307804",
"0.57307804",
"0.57307804",
"0.57140356",
"0.57103544",
"0.57103544",
"0.5700879",
"0.56963396",
"0.56963396",
"0.56963396",
"0.56963396",
"0.56941175",
"0.5692618",
"0.56896317",
"0.56876993",
"0.568729",
"0.5680807",
"0.5679253",
"0.56789565",
"0.56767976",
"0.56686115",
"0.56669605",
"0.5656587",
"0.56484216",
"0.56474435",
"0.5646836",
"0.5646836",
"0.5646836",
"0.5645012",
"0.5644656",
"0.56438166",
"0.5642198",
"0.5642024",
"0.5639041",
"0.5639041",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5638074",
"0.5637124",
"0.5637124",
"0.5623044",
"0.5614078",
"0.56106734",
"0.56106734",
"0.56033725",
"0.5600867",
"0.55968386",
"0.5590087",
"0.558228",
"0.558228",
"0.558228",
"0.5578395",
"0.55776596",
"0.5576912"
] |
0.7732848
|
0
|
Sets the solver exe of this job.
|
@Override
public void setSolverExe(String solverExe) {
model.setSolverExe(solverExe);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic String getSolverExe() {\n\t\treturn model.getSolverExe();\n\t}",
"@Override\n\tpublic void setExeFileName(java.lang.String exeFileName) {\n\t\t_scienceApp.setExeFileName(exeFileName);\n\t}",
"public void setExecutable(String executable);",
"void setStartUpExe(String s);",
"public ProblemSolver(int inRunMode){\n\t\trunmode = inRunMode;\n\t}",
"public static void setExecutable(String executable) {\n \tGlobals.executable = executable;\n \tsetProperty(\"executable\", executable);\n }",
"public void setInfluenceSolver(InfluenceSolver<RealTurtleBody> solver) {\n\t\tthis.solver = solver;\n\t}",
"public void setDotExecutable( File dotExecutable )\n {\n this.dotExecutable = dotExecutable;\n }",
"void setMode(SolvingMode solvingMode);",
"public RunSimulation(JFrame mainMenu, ArrayList<EAsolver> exp) {\n for (EAsolver solver : exp) {\n simulationEdit.solvers.add(solver);\n }\n initMyComponents();\n }",
"@FXML\r\n void solve(ActionEvent event) {\r\n \tsolveButton.setDisable(true);\r\n \tresetButton.setDisable(true);\r\n \tSolver solver = new Solver(file.toString());\r\n \tsolver.setListener(new StatusListener() {\r\n \t\t@Override\r\n \t\tpublic void updateText(String text) {\r\n\t\t\t\tPlatform.runLater(new Runnable() {\r\n\t\t\t\t\t@Override \r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tstateLabel.setText(text);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n \t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void updateImage(Image image) {\r\n\t\t\t\ttim = image;\r\n\t\t\t\tiv.setImage(tim);\r\n\t\t\t}\r\n \t});\r\n \tsolver.setColors(lines, space);\r\n \tsolver.setPoints(start, end);\r\n \tnew Thread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tsolver.execute();\r\n\t\t\t\tresetButton.setDisable(false);\r\n\t\t\t\tclick=0;\r\n\t\t\t\tsaveButton.setDisable(false);\r\n\t\t\t\tPlatform.runLater(new Runnable() {\r\n\t\t\t\t\t@Override \r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tstateLabel.setText(\"Solved\");\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}).start();;\r\n }",
"public void setExpeditor(com.hps.july.persistence.Worker anExpeditor) throws java.rmi.RemoteException;",
"public void setStrPipelineExeURL(final String strPipelineExeURL) {\n this.strPipelineExeURL = strPipelineExeURL;\n }",
"public String getSolveMethod() {\n return solveMethod;\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n btMenu = new javax.swing.JButton();\n btStart = new javax.swing.JButton();\n btRun = new javax.swing.JToggleButton();\n pleaseWait = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n txtPathSimulation = new javax.swing.JTextField();\n btSaveSimulation = new javax.swing.JButton();\n btSaveEvolution = new javax.swing.JButton();\n pnSolver_Pop = new javax.swing.JPanel();\n tpSolver = new javax.swing.JTabbedPane();\n pnRunInTextMode = new javax.swing.JPanel();\n jPanel7 = new javax.swing.JPanel();\n pbRunSimulation = new javax.swing.JProgressBar();\n pnSetupSolver = new javax.swing.JPanel();\n pnMultipleSolverEdit = new javax.swing.JPanel();\n jScrollPane4 = new javax.swing.JScrollPane();\n txtMultipleSolver = new javax.swing.JTextArea();\n jPanel4 = new javax.swing.JPanel();\n btNew1 = new javax.swing.JButton();\n AddSimulation = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n txtSolver = new javax.swing.JTextArea();\n jScrollPane1 = new javax.swing.JScrollPane();\n lstSolvers = new javax.swing.JList<>();\n jPanel6 = new javax.swing.JPanel();\n btNew = new javax.swing.JButton();\n btOpen1 = new javax.swing.JButton();\n btEdit = new javax.swing.JButton();\n btClone = new javax.swing.JButton();\n btDeleteSolvers = new javax.swing.JButton();\n btSolveNoGraphics = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n btMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/icons/Main_Menu-32.png\"))); // NOI18N\n btMenu.setText(\"Menu\");\n btMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btMenuActionPerformed(evt);\n }\n });\n\n btStart.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/icons/Solver_start_32.png\"))); // NOI18N\n btStart.setText(\"Start Simulation\");\n btStart.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btStartActionPerformed(evt);\n }\n });\n\n btRun.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/icons/Run_32.png\"))); // NOI18N\n btRun.setText(\"Run\");\n btRun.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btRunActionPerformed(evt);\n }\n });\n\n pleaseWait.setFont(new java.awt.Font(\"Courier New\", 1, 14)); // NOI18N\n pleaseWait.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/icons/loading2.gif\"))); // NOI18N\n pleaseWait.setText(\"please wait\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btStart)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btRun, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(pleaseWait, javax.swing.GroupLayout.PREFERRED_SIZE, 738, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 188, Short.MAX_VALUE)\n .addComponent(btMenu))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btStart)\n .addComponent(btRun)\n .addComponent(btMenu)\n .addComponent(pleaseWait))\n .addGap(0, 14, Short.MAX_VALUE))\n );\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);\n\n jPanel3.setLayout(new java.awt.BorderLayout());\n\n txtPathSimulation.setFont(new java.awt.Font(\"Courier New\", 0, 14)); // NOI18N\n txtPathSimulation.setText(\"evolutions/simulation.muga\");\n jPanel3.add(txtPathSimulation, java.awt.BorderLayout.CENTER);\n\n btSaveSimulation.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/icons/File_Save-24.png\"))); // NOI18N\n btSaveSimulation.setText(\"Save Solvers\");\n btSaveSimulation.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btSaveSimulationActionPerformed(evt);\n }\n });\n jPanel3.add(btSaveSimulation, java.awt.BorderLayout.LINE_START);\n\n btSaveEvolution.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/icons/File_Save-24.png\"))); // NOI18N\n btSaveEvolution.setText(\"Save HTML Evolution\");\n btSaveEvolution.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btSaveEvolutionActionPerformed(evt);\n }\n });\n jPanel3.add(btSaveEvolution, java.awt.BorderLayout.EAST);\n\n getContentPane().add(jPanel3, java.awt.BorderLayout.SOUTH);\n\n pnSolver_Pop.setLayout(new java.awt.BorderLayout());\n\n pnRunInTextMode.setLayout(new java.awt.GridLayout(1, 2, 5, 5));\n\n jPanel7.setLayout(new java.awt.BorderLayout());\n jPanel7.add(pbRunSimulation, java.awt.BorderLayout.PAGE_END);\n\n pnRunInTextMode.add(jPanel7);\n\n tpSolver.addTab(\"MultipleSolver\", pnRunInTextMode);\n\n pnSetupSolver.setLayout(new java.awt.BorderLayout());\n\n pnMultipleSolverEdit.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Multiple Solvers Definition\"));\n pnMultipleSolverEdit.setPreferredSize(new java.awt.Dimension(550, 170));\n pnMultipleSolverEdit.setLayout(new java.awt.BorderLayout(5, 5));\n\n jScrollPane4.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Multiple Solver Parameters\"));\n\n txtMultipleSolver.setColumns(20);\n txtMultipleSolver.setFont(new java.awt.Font(\"Courier New\", 0, 14)); // NOI18N\n txtMultipleSolver.setRows(5);\n txtMultipleSolver.setPreferredSize(new java.awt.Dimension(300, 89));\n txtMultipleSolver.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n txtMultipleSolverFocusLost(evt);\n }\n });\n jScrollPane4.setViewportView(txtMultipleSolver);\n\n pnMultipleSolverEdit.add(jScrollPane4, java.awt.BorderLayout.CENTER);\n\n jPanel4.setLayout(new java.awt.GridLayout(1, 0));\n\n btNew1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/icons/DNA-32.png\"))); // NOI18N\n btNew1.setText(\"Add Multiple Solvers\");\n btNew1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btNew1ActionPerformed(evt);\n }\n });\n jPanel4.add(btNew1);\n\n AddSimulation.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/icons/File_Open-24.png\"))); // NOI18N\n AddSimulation.setText(\"Open Simulation\");\n AddSimulation.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n AddSimulationActionPerformed(evt);\n }\n });\n jPanel4.add(AddSimulation);\n\n pnMultipleSolverEdit.add(jPanel4, java.awt.BorderLayout.NORTH);\n\n pnSetupSolver.add(pnMultipleSolverEdit, java.awt.BorderLayout.EAST);\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Solvers of Simulation\"));\n jPanel2.setLayout(new java.awt.BorderLayout(5, 5));\n\n jScrollPane3.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Solver Definition\"));\n\n txtSolver.setColumns(20);\n txtSolver.setFont(new java.awt.Font(\"Courier New\", 0, 14)); // NOI18N\n txtSolver.setRows(5);\n txtSolver.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n txtSolverFocusLost(evt);\n }\n });\n jScrollPane3.setViewportView(txtSolver);\n\n jPanel2.add(jScrollPane3, java.awt.BorderLayout.CENTER);\n\n lstSolvers.setBorder(javax.swing.BorderFactory.createTitledBorder(\"List Of Solvers\"));\n lstSolvers.setModel(new javax.swing.AbstractListModel<String>() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public String getElementAt(int i) { return strings[i]; }\n });\n lstSolvers.setPreferredSize(new java.awt.Dimension(200, 80));\n lstSolvers.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n lstSolversValueChanged(evt);\n }\n });\n jScrollPane1.setViewportView(lstSolvers);\n\n jPanel2.add(jScrollPane1, java.awt.BorderLayout.WEST);\n\n jPanel6.setLayout(new java.awt.GridLayout(1, 5, 5, 5));\n\n btNew.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/icons/DNA-24.png\"))); // NOI18N\n btNew.setText(\"New\");\n btNew.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btNewActionPerformed(evt);\n }\n });\n jPanel6.add(btNew);\n\n btOpen1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/icons/File_Open-24.png\"))); // NOI18N\n btOpen1.setText(\"Open\");\n btOpen1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btOpen1ActionPerformed(evt);\n }\n });\n jPanel6.add(btOpen1);\n\n btEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/icons/Setup_Solver-24.png\"))); // NOI18N\n btEdit.setText(\"Edit\");\n btEdit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btEditActionPerformed(evt);\n }\n });\n jPanel6.add(btEdit);\n\n btClone.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/icons/reload_24.png\"))); // NOI18N\n btClone.setText(\"Clone\");\n btClone.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btCloneActionPerformed(evt);\n }\n });\n jPanel6.add(btClone);\n\n btDeleteSolvers.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/icons/Delete-24.png\"))); // NOI18N\n btDeleteSolvers.setText(\"Delete\");\n btDeleteSolvers.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btDeleteSolversActionPerformed(evt);\n }\n });\n jPanel6.add(btDeleteSolvers);\n\n btSolveNoGraphics.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/icons/Solver_start_32.png\"))); // NOI18N\n btSolveNoGraphics.setText(\"solve (no graphics)\");\n btSolveNoGraphics.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btSolveNoGraphicsActionPerformed(evt);\n }\n });\n jPanel6.add(btSolveNoGraphics);\n\n jPanel2.add(jPanel6, java.awt.BorderLayout.PAGE_START);\n\n pnSetupSolver.add(jPanel2, java.awt.BorderLayout.CENTER);\n\n tpSolver.addTab(\"Experiment\", pnSetupSolver);\n\n pnSolver_Pop.add(tpSolver, java.awt.BorderLayout.CENTER);\n\n getContentPane().add(pnSolver_Pop, java.awt.BorderLayout.CENTER);\n\n pack();\n }",
"private void setupEnvironment(Execute exe) {\r\n String[] environment = env.getVariables();\r\n if (environment != null) {\r\n for (int i = 0; i < environment.length; i++) {\r\n log(\"Setting environment variable: \" + environment[i], Project.MSG_VERBOSE);\r\n }\r\n }\r\n exe.setNewenvironment(newEnvironment);\r\n exe.setEnvironment(environment);\r\n }",
"public void setExecutor(Executor e) {\n addReference(\"ant.executor\", e);\n }",
"public void setJobFilePath(File file) {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n if (file != null) {\n prefs.put(powerdropshipDir, file.getPath());\n\n primaryStage.setTitle(\"PowerDropship - \" + file.getName());\n } else {\n prefs.remove(powerdropshipDir);\n\n primaryStage.setTitle(\"PowerDropship\");\n }\n }",
"public void setSolverType(SolverType t) {\n\t\tsynchronized(this) {\n\t\t\tif (t != solver.getType()) {\n\t\t\t\trecreateSolver(t);\n\t\t\t}\n\t\t}\n\t}",
"protected void setHMetisExec(final String str) {\n\t\tthis.hMetisExec = str;\n\t}",
"public void setEngine(Engine e) {\n engine = e;\n if (e.engineValid) {\n setOriginalWalkMP(calculateWalk());\n }\n }",
"public void setSolveMethod(String solveMethod) {\n this.solveMethod = solveMethod == null ? null : solveMethod.trim();\n }",
"public void setJob_Designer(EmployerDataObject job_Designer) {\r\n this.job_Designer = job_Designer;\r\n }",
"@Override\n\tpublic java.lang.String getExeFileName() {\n\t\treturn _scienceApp.getExeFileName();\n\t}",
"public abstract void setPoseSolver(PoseSolver poseSolver);",
"public ElectrodSolver(ExtendedOptions options) {\n\t\tif (options == null)\n\t\t\tthrow new NullPointerException();\n\t\tthis.options = options;\n\t}",
"public static void setExecutable(final String pathname) throws GrassExecutionException {\r\n\r\n final String version = System.getProperty(\"java.version\").substring(0, 3);\r\n final Float f = Float.valueOf(version);\r\n if (f.floatValue() < (float) 1.6) {\r\n if (Sextante.isUnix() || Sextante.isMacOSX()) {\r\n try {\r\n Runtime.getRuntime().exec(\"chmod +x \" + pathname);\r\n }\r\n catch (final IOException e) {\r\n throw new GrassExecutionException();\r\n }\r\n }\r\n }\r\n else {\r\n if (Sextante.isUnix() || Sextante.isMacOSX()) {\r\n new File(pathname).setExecutable(true);\r\n }\r\n }\r\n }",
"public void secondarySetExpeditor(com.hps.july.persistence.Worker anExpeditor) throws java.rmi.RemoteException;",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"public void setTechieSolutionRenderer(SolutionRenderer solutionRenderer);",
"public void setTheModel(InventoryProgramModel theModel) {\n\t\tthis.theModel = theModel;\n\t}",
"public Assignment getSolverAssignment_0() { return cSolverAssignment_0; }",
"public static void main(String[] args) {\n\t\tfloat[][] m = {\n\t\t\t\t{1,2,3},{4,5,6},{7,8,2}\n\t\t};\n\t\t\n\t\tnew Solver(m);\n\t}",
"public void setWorker(SwingWorker worker) {\n\t\tthis.worker = worker;\n\t}",
"protected void setComponent(List<Object> Command) throws Exception {\r\n if (Command.isEmpty()) {\r\n throw new Exception(\"No setting/component specified\");\r\n }\r\n String Component = Command.get(0).toString().toLowerCase();\r\n switch (Component) {\r\n case \"objective\":\r\n case \"obj\": {\r\n // Usage: <optimizer> set objective <max|min> <method> [<method options..>]\r\n String Method;\r\n List<Object> Options;\r\n boolean toMaximize;\r\n try {\r\n // Read whether to max / minimize\r\n if (Command.get(1).toString().startsWith(\"max\")) {\r\n toMaximize = true;\r\n } else if (Command.get(1).toString().startsWith(\"min\")) {\r\n toMaximize = false;\r\n } else {\r\n throw new Exception();\r\n }\r\n // Read Method name\r\n Method = Command.get(2).toString();\r\n if (Method.equals(\"?\")) {\r\n System.out.println(printImplmentingClasses(BaseEntryRanker.class, false));\r\n return;\r\n }\r\n // Get method options\r\n Options = Command.subList(3, Command.size());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set objective <max|min> <method> [<method options..>]\");\r\n }\r\n // Make the ranker, attach it\r\n BaseEntryRanker objFun = (BaseEntryRanker) instantiateClass(\"optimization.rankers.\" + Method, Options);\r\n objFun.setUseMeasured(true);\r\n objFun.setMaximizeFunction(toMaximize);\r\n setObjectiveFunction(objFun);\r\n System.out.println(\"\\tDefined objective function to be a \" + Method);\r\n }\r\n break;\r\n case \"gensize\": {\r\n int value;\r\n try {\r\n value = Integer.parseInt(Command.get(1).toString());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set gensize <#>\");\r\n }\r\n setEntriesPerGeneration(value);\r\n System.out.println(\"\\tSet number of entries per generation to \" + value);\r\n }\r\n break;\r\n case \"initial\": {\r\n // Usage: set intial $<dataset>\r\n Dataset Data;\r\n try {\r\n Data = (Dataset) Command.get(1);\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set initial $<dataset>\");\r\n }\r\n setInitialData(Data);\r\n System.out.println(\"\\tDefined an intial population of \" + Data.NEntries() + \" entries\");\r\n }\r\n break;\r\n case \"search\": {\r\n // Usage: set search $<dataset>\r\n Dataset Data;\r\n try {\r\n Data = (Dataset) Command.get(1);\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set search $<dataset>\");\r\n }\r\n setSearchSpace(Data);\r\n System.out.println(\"\\tDefined a search space of \" + Data.NEntries() + \" entries\");\r\n }\r\n break;\r\n case \"oracle\": {\r\n // Usage: set oracle <method> [<options...>]\r\n String Method;\r\n List<Object> Options;\r\n try {\r\n Method = Command.get(1).toString();\r\n if (Method.contains(\"?\")) {\r\n System.out.println(\"Available Oracles:\");\r\n System.out.println(CommandHandler.printImplmentingClasses(BaseOracle.class, false));\r\n }\r\n Options = Command.subList(2, Command.size());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set oracle <method> [<options...>]\");\r\n }\r\n BaseOracle NewOracle = (BaseOracle) CommandHandler.instantiateClass(\"optimization.oracles.\" + Method, Options);\r\n setOracle(NewOracle);\r\n System.out.println(\"\\tSet algorithm to use a \" + Method);\r\n }\r\n break;\r\n case \"maxiter\": {\r\n int value;\r\n try {\r\n value = Integer.parseInt(Command.get(1).toString());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set maxiter <#>\");\r\n }\r\n setMaxIterations(value);\r\n System.out.println(\"\\tSet maximum number of iterations to \" + value);\r\n }\r\n break;\r\n default:\r\n throw new Exception(\"Setting not recognized: \" + Component);\r\n }\r\n }",
"private void setObjective() throws IloException{\n\n IloLinearNumExpr expr = this.cplex.linearNumExpr();\n int i = 0;\n for(IloNumVar xi : x){\n expr.addTerm(xi, this.c[i]);\n i++;\n }\n this.objective = this.cplex.addMinimize(expr);\n }",
"private synchronized void setWork(Solution soln, Move[] moves, ObjectiveFunction objectiveFunction, TabuList tabuList, AspirationCriteria aspirationCriteria, boolean maximizing, boolean chooseFirstImprovingMove, TabuSearch tabuSearch)\n/* */ {\n/* 604 */ this.soln = soln;\n/* 605 */ this.moves = moves;\n/* 606 */ this.objectiveFunction = objectiveFunction;\n/* 607 */ this.tabuList = tabuList;\n/* 608 */ this.aspirationCriteria = aspirationCriteria;\n/* 609 */ this.maximizing = maximizing;\n/* 610 */ this.chooseFirstImprovingMove = chooseFirstImprovingMove;\n/* 611 */ this.tabuSearch = tabuSearch;\n/* */ \n/* */ \n/* 614 */ this.workToDo = true;\n/* 615 */ this.bestMove = null;\n/* */ \n/* */ \n/* 618 */ notifyAll();\n/* */ }",
"public void setJvm(String s) {\r\n getCommandLine().setVm(s);\r\n }",
"public static void main(String[] args) {\n new SudokuSolver();\n }",
"public void setExperiment(Experiment e){\r\n \tthis.experiment = e;\r\n \tthis.exptID = e.getId();\r\n this.maxExperimentValue = experiment.getMaxAbsValue();\r\n }",
"private void actualizaSolucion() {\n if(debug) {\n System.out.println(\"**********************actualizaSolucion\");\n printSol();\n }\n \n this.numSoluciones++; \n for(int i = 0; i < this.sol.emparejamientos.length; ++i) {\n for(int j = 0; j < this.sol.emparejamientos[i].length; ++j) {\n this.solOptima.emparejamientos[i][j] = this.sol.emparejamientos[i][j];\n }\n }\n this.solOptima.numVerticesEmparejados = this.sol.numVerticesEmparejados;\n this.solOptima.pesoEmparejamiento = this.sol.pesoEmparejamiento;\n }",
"private static Solution go(Formula formula, PardinusBounds bounds, ExtendedOptions options) {\n\t\tReporter rep = options.reporter();\n\t\t\n\t\t// if not decomposed, use the amalgamated if any\n\t\tif (!options.decomposed() && bounds.amalgamated!=null)\n\t\t\tbounds = bounds.amalgamated();\n\n\t\t// create a directory with the specified unique name\n\t\tString temp=System.getProperty(\"java.io.tmpdir\");\n\t\tFile dir = new File(temp+File.separatorChar+options.uniqueName());\n\t\tif (!dir.exists()) dir.mkdir();\n\t\t\n\t\tString file = dir.toString()+File.separatorChar+String.format(\"%05d\", bounds.integration);\n\t\tPrintWriter writer;\n\t\ttry {\n\t\t\tif (!Options.isDebug())\n\t\t\t\tnew File(file+\".elo\").deleteOnExit();\n\t\t\twriter = new PrintWriter(file+\".elo\");\n\t\t\tString electrod = ElectrodPrinter.print(formula, bounds, rep);\n\t\t\twriter.println(electrod);\n\t\t\twriter.close();\n\t\t\trep.debug(\"New Electrod problem at \"+dir+\".\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new AbortedException(\"Electrod problem generation failed.\", e);\n\t\t}\n\t\tProcessBuilder builder;\n\t\tList<String> args = new ArrayList<String>();\n\t\targs.add(((ExternalSolver) options.solver().instance()).executable);\n\t\targs.addAll(Arrays.asList(((ExternalSolver) options.solver().instance()).options));\n\t\targs.add(Options.isDebug()?\"-v\":\"--\");\n\t\targs.add(file+\".elo\");\n\t\t\t\t\n\t\tbuilder = new ProcessBuilder(args);\n\t\t\n\t\tbuilder.environment().put(\"PATH\", builder.environment().get(\"PATH\")+\":/usr/local/bin:.\");\n\t\tbuilder.redirectErrorStream(true);\n\t\tint ret = -1;\n\t\tfinal Process p;\n\t\ttry {\n\t\t\toptions.reporter().solvingCNF(-1, -1, -1);\n\n\t\t\tp = builder.start();\n\t\t\t// stores the pid so that it can be correctly terminated\n\t\t\tRuntime.getRuntime().addShutdownHook(new Thread() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (!System.getProperty(\"os.name\").toLowerCase(Locale.US).startsWith(\"windows\"))\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tField f = p.getClass().getDeclaredField(\"pid\");\n\t\t\t\t\t\t\tf.setAccessible(true);\n\t\t\t\t\t\t\tRuntime.getRuntime().exec(\"kill -SIGTERM \" + f.get(p));\n\t\t\t\t\t\t} catch (NoSuchFieldException | SecurityException | IllegalArgumentException\n\t\t\t\t\t\t\t\t| IllegalAccessException | IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tp.destroy();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\ttry {\n\t\t\t\tBufferedReader output = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tp.getInputStream()));\n\n\t\t\t\tString oline = \"\";\n\t\t\t\twhile ((oline = output.readLine()) != null)\n\t\t\t\t\trep.debug(oline);\n\n\t\t\t\tret = p.waitFor();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tp.destroy();\n\t\t\t\tthrow new AbortedException(\"Electrod problem interrupted.\", e);\n\t\t\t}\n\t\t} catch (IOException e1) {\n\t\t\tthrow new AbortedException(\"Electrod problem failed.\", e1);\n\t\t}\n\t\t\n\t\tif (ret != 0) {\n\t\t\trep.warning(\"Electrod exit code: \"+ret);\n\t\t\tthrow new AbortedException(\"Electrod exit code: \"+ret);\n\t\t}\n\t\telse\n\t\t\trep.debug(\"Electrod ran successfully.\");\n\t\t\n\t\tFile xml = new File(file+\".xml\");\n\t\t\n\t\tif (!Options.isDebug())\n\t\t\txml.deleteOnExit();\n\n\t\tif (!xml.exists())\n\t\t\tthrow new AbortedException(\"XML solution file not found: \"+file+\".xml.\");\n\t\telse {\n\t\t\trep.debug(file);\n\n\t\t\tElectrodReader rd = new ElectrodReader(bounds);\n\t\t\tTemporalInstance res = rd.read(xml);\n\t\t\t\n\t\t\tStatistics st = new Statistics(rd.nbvars, 0,0, rd.ctime, rd.atime);\n\n\t\t\tSolution sol;\n\t\t\t// ElectrodReader#read returns null if unsat\n\t\t\tif (res == null)\n\t\t\t\tsol = Solution.unsatisfiable(st, null);\n\t\t\telse\n\t\t\t\tsol = Solution.satisfiable(st, res);\n\t\t\t\n\t\t\treturn sol;\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException {\n\t\t\t\r\n\t\t\tint [] numReps= {3,1,2,2,2};\r\n\t\t\tMathModelClass.solveMe(85, 5, 2,numReps, 1);\r\n\t\r\n\t\t}",
"public void solver(){\n\n tohSolver(noDisks,1,3,2);\n\n }",
"public void setArgument(ProgramExp argument) {\n this.argument = argument;\n }",
"public abstract void assign(ParameterVector pv) throws SolverException;",
"public Launcher() {\n //instantiate motors and djustment value using robot map constants\n m_masterMotor = new TalonSRX(RobotMap.MASTER_LAUNCHER_ID);\n m_closeSlaveMotor = new VictorSPX(RobotMap.CLOSE_LAUNCHER_SLAVE_ID);\n m_farSlaveMotor1 = new VictorSPX(RobotMap.FAR_LAUNCHER_SLAVE1_ID);\n m_farSlaveMotor2 = new VictorSPX(RobotMap.FAR_LAUNCHER_SLAVE2_ID);\n\n //Sets the far motors to be inverted so that they don't work against the close ones\n m_farSlaveMotor1.setInverted(RobotMap.LAUNCHER_FAR_SLAVE1_INVERTED);\n m_farSlaveMotor2.setInverted(RobotMap.LAUNCHER_FAR_SLAVE2_INVERTED);\n\n //Instantiates the encoder as the encoder plugged into the master\n m_encoder = new SensorCollection(m_masterMotor);\n\n //run the config methods to set up velocity control\n configVelocityControl();\n }",
"public void testSetExecutable_1()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\t\tString value = \"\";\n\n\t\tfixture.setExecutable(value);\n\n\t\t\n\t}",
"public void setJob(Job job) throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(jobChannel, job.ordinal(), 2);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to set JOB for the robot\", e);\n \t\t}\n \t}",
"public void setExercise(Exercise target, Exercise editedExercise) {\n logger.info(\"Setting exercise\");\n int index = workoutExercises.indexOf(target);\n if (index != -1) {\n workoutExercises.set(index, editedExercise);\n }\n }",
"public void setLabWork(String labWork) {\r\n\t\tthis.labWork = labWork;\r\n\t}",
"@Override\r\n public void solveMaze() {\r\n threadPool.execute(() -> {\r\n maze.setStartPotision(new Position(PlayerPositionRow,PlayerPositionCol));\r\n try {\r\n Client client = new Client(InetAddress.getLocalHost(), 5401, new IClientStrategy() {\r\n public void clientStrategy(InputStream inFromServer, OutputStream outToServer) {\r\n try {\r\n ObjectOutputStream toServer = new ObjectOutputStream(outToServer);\r\n ObjectInputStream fromServer = new ObjectInputStream(inFromServer);\r\n toServer.flush();\r\n toServer.writeObject(maze);\r\n toServer.flush();\r\n s = (Solution) fromServer.readObject();\r\n } catch (Exception var10) {\r\n var10.printStackTrace();\r\n }\r\n\r\n }\r\n });\r\n client.communicateWithServer();\r\n try {\r\n Thread.sleep(5000);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n setChanged();\r\n notifyObservers(\"solve\");\r\n });\r\n }",
"@Override\n\tpublic void setCpu() {\n\t\tcom.setCpu(\"i7\");\n\t}",
"@Override\n public void setWorker(int[] positionWorker) {\n godPower.setWorker(positionWorker);\n }",
"public void setGui(HMI gui) {\n this.gui = gui;\n }",
"public void setInstallerFrame(InstallerFrame frame)\n {\n this.frame = frame;\n }",
"public static void main(String[] args) {\n\t\tJiangsu_SeProj model = new Jiangsu_SeProj();\r\n\t\tmodel.run();\r\n\t}",
"public void exec(OxProgram pgm) {\n }",
"public void setExperiment(Experiment exp) {\n \n m_Exp = exp;\n m_StartBut.setEnabled(m_RunThread == null);\n m_StopBut.setEnabled(m_RunThread != null);\n }",
"private void saveSolverInput(Expr expr) {\n synchronized (NodJob.class) {\n Path nodPath =\n _settings\n .getActiveTestrigSettings()\n .getBasePath()\n .resolve(\n String.format(\n \"solverInput-%s-%d.smt2\", Instant.now(), Thread.currentThread().getId()));\n try (FileWriter writer = new FileWriter(nodPath.toFile())) {\n writer.write(expr.toString());\n } catch (IOException e) {\n _logger.warnf(\"Error saving Nod program to file: %s\", Throwables.getStackTraceAsString(e));\n }\n }\n }",
"public void setFinalSolution() {\r\n for(int i=0; i<Config.numberOfSeeds;i++) {\r\n// this.seeds[i].setDurationMilliSec(GLowestState.getDwelltimes()[i]);\r\n// Cur_state[i] = GLowestState.getDwelltimes()[i];\r\n Cur_state[i] = this.seeds[i].getDurationMilliSec();\r\n }\r\n if (Config.SACostFunctionType==3) {\r\n setCur_cost(costCUR());\r\n }\r\n if (Config.SACostFunctionType==2) {\r\n setCur_cost(costCURfinal());\r\n }\r\n if (Config.SACostFunctionType==1) {\r\n setCur_cost(costCURsuper());\r\n }\r\n if (Config.SACostFunctionType==0) {\r\n setCur_cost(costCURsuperfinal());\r\n }\r\n }",
"public void setProblem(InterfaceOptimizationProblem problem) {\n this.m_Problem = problem;\n }",
"@Override\n public void execute() {\n _win.getSolenoid().set(_val);\n }",
"private void setupCommandLineForVMS(Execute exe, String[] command) {\r\n ExecuteJava.setupCommandLineForVMS(exe, command);\r\n }",
"private String getSolverDirName() {\n\t\tString solverName = \"yksuh\";\n\t\treturn solverName;\n\t}",
"public void setPath (\r\n String strPath) throws java.io.IOException, com.linar.jintegra.AutomationException;",
"public String getSolverType() {\n\t\treturn type;\n\t}",
"public void setP4ExecutablePath(String path) {\r\n this.p4ExecutablePath = path;\r\n }",
"public SolverTaskDescription(Simulation simulation, SolverTaskDescription solverTaskDescription) {\n\t\tsuper();\n\t\taddPropertyChangeListener(this);\n\n\t\tsetSimulation(simulation);\n\t\t//\n\t\tfieldTaskType = solverTaskDescription.getTaskType();\n\t\tfieldTimeBounds = new TimeBounds(solverTaskDescription.getTimeBounds());\n\t\tfieldTimeStep = new TimeStep(solverTaskDescription.getTimeStep());\n\t\tfieldErrorTolerance = new ErrorTolerance(solverTaskDescription.getErrorTolerance());\n\t\ttry {\n\t\t\tfieldOutputTimeSpec = (OutputTimeSpec)BeanUtils.cloneSerializable(solverTaskDescription.getOutputTimeSpec());\n\t\t}catch (Exception e){\n\t\t\tthrow new RuntimeException(e.getMessage(), e);\n\t\t}\n\t\tfieldSensitivityParameter = solverTaskDescription.getSensitivityParameter();\n\t\tfieldSolverDescription = solverTaskDescription.getSolverDescription();\n\t\tfieldUseSymbolicJacobian = solverTaskDescription.getUseSymbolicJacobian();\n\t\tif (solverTaskDescription.stopAtSpatiallyUniformErrorTolerance != null) {\n\t\t\tstopAtSpatiallyUniformErrorTolerance = new ErrorTolerance(solverTaskDescription.stopAtSpatiallyUniformErrorTolerance);\n\t\t}\n\t\tbSerialParameterScan = solverTaskDescription.bSerialParameterScan;\n\t\tbTimeoutDisabled = solverTaskDescription.bTimeoutDisabled;\n\t\tbBorderExtrapolationDisabled = solverTaskDescription.bBorderExtrapolationDisabled;\n\n\t\tif (simulation.getMathDescription().isNonSpatialStoch() && (solverTaskDescription.getStochOpt() != null))\n\t\t{\n\t\t\tsetStochOpt(solverTaskDescription.getStochOpt());\n\t\t}\n\t\telse {\n\t\t\tsetStochOpt(null);\n\t\t}\n\t\tif (simulation.getMathDescription().isNonSpatialStoch() && \n\t\t\t(!solverTaskDescription.getSolverDescription().isGibsonSolver()) &&\n\t\t\t(solverTaskDescription.getStochHybridOpt() != null))\n\t\t{\n\t\t\tsetStochHybridOpt(solverTaskDescription.getStochHybridOpt());\n\t\t}\n\t\telse {\n\t\t\tsetStochHybridOpt(null);\n\t\t}\n\t\tif (simulation.getMathDescription().isSpatialStoch() || simulation.getMathDescription().isSpatialHybrid()) {\n\t\t\tsmoldynSimulationOptions = new SmoldynSimulationOptions(solverTaskDescription.smoldynSimulationOptions);\n\t\t} else {\n\t\t\tsmoldynSimulationOptions = null;\n\t\t}\n\t\tif (simulation.getMathDescription().isRuleBased()) {\n\t\t\tif(solverTaskDescription.nfsimSimulationOptions != null) {\n\t\t\t\tnfsimSimulationOptions = new NFsimSimulationOptions(solverTaskDescription.nfsimSimulationOptions);\n\t\t\t} else {\n\t\t\t\tnfsimSimulationOptions = new NFsimSimulationOptions();\n\t\t\t}\n\t\t} else {\n\t\t\tnfsimSimulationOptions = null;\n\t\t}\n\t\tif (simulation.getMathDescription().isLangevin()) {\n\t\t\tif(solverTaskDescription.langevinSimulationOptions != null) {\n\t\t\t\tlangevinSimulationOptions = new LangevinSimulationOptions(solverTaskDescription.langevinSimulationOptions);\n\t\t\t} else {\n\t\t\t\tlangevinSimulationOptions = new LangevinSimulationOptions();\n\t\t\t}\n\t\t} else {\n\t\t\tlangevinSimulationOptions = null;\n\t\t}\n\t\tif (fieldSolverDescription.equals(SolverDescription.SundialsPDE)) {\n\t\t\tsundialsPdeSolverOptions = new SundialsPdeSolverOptions(solverTaskDescription.sundialsPdeSolverOptions);\n\t\t} else {\n\t\t\tsundialsPdeSolverOptions = null;\n\t\t}\n\t\tif (solverTaskDescription.chomboSolverSpec != null) {\n\t\t\tchomboSolverSpec = new ChomboSolverSpec(solverTaskDescription.chomboSolverSpec);\n\t\t} else {\n\t\t\tchomboSolverSpec = null;\n\t\t}\n\t\tif (solverTaskDescription.movingBoundarySolverOptions != null)\n\t\t{\n\t\t\tmovingBoundarySolverOptions = new MovingBoundarySolverOptions(solverTaskDescription.movingBoundarySolverOptions);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmovingBoundarySolverOptions = null;\n\t\t}\n\t\tnumProcessors = solverTaskDescription.numProcessors;\n\t}",
"public void onSolverException(SolverException e1) {\n //empty\n }",
"void setTipoEnvio(TipoEnvio tipoEnvio);",
"@Override\n\tpublic void setExecute(long execute) {\n\t\t_scienceApp.setExecute(execute);\n\t}",
"public void other() throws Exception {\n String[] args = new String[1];\n args[0] = defaultParamFile;\n QryEval.main(args);\n }",
"public void setOutput(File out) {\r\n this.output = out;\r\n incompatibleWithSpawn = true;\r\n }",
"public Builder setExecId(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00004000;\n execId_ = value;\n onChanged();\n return this;\n }",
"public void setSolverDescription(SolverDescription solverDescription) throws java.beans.PropertyVetoException {\n\t\tif (fieldSolverDescription != solverDescription) {\n\t\t\tSolverDescription oldValue = fieldSolverDescription;\n\t\t\tfireVetoableChange(PROPERTY_SOLVER_DESCRIPTION, oldValue, solverDescription);\n\t\t\tfieldSolverDescription = solverDescription;\n\t\t\tif (numProcessors > 1 && !fieldSolverDescription.supports(SolverFeature.Feature_Parallel)) {\n\t\t\t\tnumProcessors = 1;\n\t\t\t}\n\t\t\tif (solverDescription.isNonSpatialStochasticSolver() && !solverDescription.isGibsonSolver()){\n\t\t\t\tif (fieldNonspatialStochHybridOpt == null){\n\t\t\t\t\tfieldNonspatialStochHybridOpt = new NonspatialStochHybridOptions();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfirePropertyChange(PROPERTY_SOLVER_DESCRIPTION, oldValue, solverDescription);\n\t\t}\n\t}",
"public static void main(String[] args) {\n Ejercicio15 ej = new Ejercicio15(\"prueba ej 15\");\r\n //No se puede\r\n //ej.set(\"prueb set\");\r\n }",
"public synchronized void setAgentCoordinate() {\n agentCoordinate = getCoordinate(agentState);\n }",
"public void actionPerformed(ActionEvent e) {\n try {\n int r = JOptionPane.showConfirmDialog(dialog,\n Messages.WindowsSlaveInstaller_ConfirmInstallation(),\n Messages.WindowsInstallerLink_DisplayName(), OK_CANCEL_OPTION);\n if(r!=JOptionPane.OK_OPTION) return;\n\n if(!DotNet.isInstalled(2,0)) {\n JOptionPane.showMessageDialog(dialog,Messages.WindowsSlaveInstaller_DotNetRequired(),\n Messages.WindowsInstallerLink_DisplayName(), ERROR_MESSAGE);\n return;\n }\n\n final File dir = new File(rootDir);\n if (!dir.exists()) {\n JOptionPane.showMessageDialog(dialog,Messages.WindowsSlaveInstaller_RootFsDoesntExist(rootDir),\n Messages.WindowsInstallerLink_DisplayName(), ERROR_MESSAGE);\n return;\n }\n\n final File slaveExe = new File(dir, \"hudson-slave.exe\");\n FileUtils.copyURLToFile(getClass().getResource(\"/windows-service/hudson.exe\"), slaveExe);\n\n // write out the descriptor\n URL jnlp = new URL(engine.getHudsonUrl(),\"computer/\"+Util.rawEncode(engine.slaveName)+\"/slave-agent.jnlp\");\n String xml = generateSlaveXml(\n generateServiceId(rootDir),\n System.getProperty(\"java.home\")+\"\\\\bin\\\\java.exe\", \"-jnlpUrl \"+jnlp.toExternalForm());\n FileUtils.writeStringToFile(new File(dir, \"hudson-slave.xml\"),xml,\"UTF-8\");\n\n // copy slave.jar\n URL slaveJar = new URL(engine.getHudsonUrl(),\"jnlpJars/remoting.jar\");\n File dstSlaveJar = new File(dir,\"slave.jar\").getCanonicalFile();\n if(!dstSlaveJar.exists()) // perhaps slave.jar is already there?\n FileUtils.copyURLToFile(slaveJar,dstSlaveJar);\n\n // install as a service\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n StreamTaskListener task = new StreamTaskListener(baos);\n r = new LocalLauncher(task).launch().cmds(slaveExe, \"install\").stdout(task).pwd(dir).join();\n if(r!=0) {\n JOptionPane.showMessageDialog(\n dialog,baos.toString(),\"Error\", ERROR_MESSAGE);\n return;\n }\n\n r = JOptionPane.showConfirmDialog(dialog,\n Messages.WindowsSlaveInstaller_InstallationSuccessful(),\n Messages.WindowsInstallerLink_DisplayName(), OK_CANCEL_OPTION);\n if(r!=JOptionPane.OK_OPTION) return;\n\n // let the service start after we close our connection, to avoid conflicts\n Runtime.getRuntime().addShutdownHook(new Thread(\"service starter\") {\n public void run() {\n try {\n StreamTaskListener task = StreamTaskListener.fromStdout();\n int r = new LocalLauncher(task).launch().cmds(slaveExe, \"start\").stdout(task).pwd(dir).join();\n task.getLogger().println(r==0?\"Successfully started\":\"start service failed. Exit code=\"+r);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n });\n System.exit(0);\n } catch (Exception t) {// this runs as a JNLP app, so if we let an exeption go, we'll never find out why it failed \n StringWriter sw = new StringWriter();\n t.printStackTrace(new PrintWriter(sw));\n JOptionPane.showMessageDialog(dialog,sw.toString(),\"Error\", ERROR_MESSAGE);\n }\n }",
"public void setWaitWorker(int waitWorker) {\n this.waitWorker = waitWorker;\n }",
"public void setTarget(SolShip solship) {\n this.target = solship;\n }",
"public void setExecutionEngine(ExecutionEngine executionEngine)\n\t{\n\t\tthis.executionEngine = executionEngine;\n\t}",
"private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}",
"public static void main(String[] args) {\n\r\n\t\tnew Main().sol();\r\n\t}",
"public void SetPropertiesSolverServer(java.lang.String s) {\r\n java.lang.String thred = ThredProperties();\r\n Properties prop = new Properties();\r\n\r\n try (FileOutputStream out = new FileOutputStream(\"./config.properties\")) {\r\n\r\n switch (s) {\r\n case \"BreadthFirstSearch\": {\r\n prop.setProperty(\"algorithm\", \"BreadthFirstSearch\");\r\n solve=\"BreadthFirstSearch\";\r\n prop.setProperty(\"generate\", generate);\r\n prop.setProperty(\"threadNum\", thred);\r\n prop.store(out, null);\r\n break;\r\n }\r\n case \"DepthFirstSearch\": {\r\n prop.setProperty(\"algorithm\", \"DepthFirstSearch\");\r\n solve=\"DepthFirstSearch\";\r\n prop.setProperty(\"generate\", generate);\r\n prop.setProperty(\"threadNum\", thred);\r\n prop.store(out, null);\r\n break;\r\n }\r\n case \"BestFirstSearch\": {\r\n prop.setProperty(\"algorithm\", \"BestFirstSearch\");\r\n solve=\"BestFirstSearch\";\r\n prop.setProperty(\"generate\", generate);\r\n prop.setProperty(\"threadNum\", thred);\r\n prop.store(out, null);\r\n break;\r\n }\r\n }\r\n out.close();\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n\r\n }",
"public void setSoluong(int aSoluong) {\n soluong = aSoluong;\n }",
"public void setMain(Main ProgramaSecundario) {\n\t\t\tSystem.out.println(\"setMain\");\r\n\t\t\tthis.ProgramaSecundario = ProgramaSecundario;\r\n\t\t}",
"public void setLauncher(String launcher) {\n this.launcher = launcher;\n }",
"void setTechStuff(com.hps.july.persistence.Worker aTechStuff) throws java.rmi.RemoteException;",
"public void setSolucion(boolean sol) {\n this._esSolucion = sol;\n }",
"public void setEscenarioEditar(Stage escenarioEditar) {\n\t\tthis.escenarioEditar = escenarioEditar;\n\t}",
"public void propertyChange(java.beans.PropertyChangeEvent evt) {\n\t\ttry {\n\t\t\tif (evt.getSource() == this && (evt.getPropertyName().equals(PROPERTY_SOLVER_DESCRIPTION))) {\n\t\t\t\tSolverDescription solverDescription = getSolverDescription();\n\t\t\t\tif (solverDescription.equals(SolverDescription.SundialsPDE) || solverDescription.isSemiImplicitPdeSolver() || solverDescription.isGibsonSolver()) {\n\t\t\t\t\tTimeBounds timeBounds = getTimeBounds();\n\t\t\t\t\tif (!(getOutputTimeSpec() instanceof UniformOutputTimeSpec)) {\n\t\t\t\t\t\t// set to uniform output if it is not.\n\t\t\t\t\t\tdouble outputTime = (timeBounds.getEndingTime()-timeBounds.getStartingTime())/20;\n\t\t\t\t\t\tsetOutputTimeSpec(new UniformOutputTimeSpec(outputTime));\n\t\t\t\t\t}\n\t\t\t\t\tif (solverDescription.equals(SolverDescription.SundialsPDE)) {\n\t\t\t\t\t\tsetErrorTolerance(ErrorTolerance.getDefaultSundialsErrorTolerance());\n\t\t\t\t\t\tsetDefaultTimeStep(TimeStep.getDefaultSundialsTimeStep());\n\t\t\t\t\t\tif (sundialsPdeSolverOptions == null) {\n\t\t\t\t\t\t\tsundialsPdeSolverOptions = new SundialsPdeSolverOptions();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsundialsPdeSolverOptions = null;\n\t\t\t\t\t\tsetErrorTolerance(ErrorTolerance.getDefaultSemiImplicitErrorTolerance());\n\t\t\t\t\t}\n\t\t\t\t} else if (!solverDescription.supports(getOutputTimeSpec())){\n\t\t\t\t\tsetOutputTimeSpec(solverDescription.createOutputTimeSpec(this));\n\t\t\t\t}\n\t\t\t\tif (solverDescription.isNonSpatialStochasticSolver()) {\n\t\t\t\t\tif (fieldNonspatialStochOpt == null) {\n\t\t\t\t\t\tsetStochOpt(new NonspatialStochSimOptions());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetStochOpt(new NonspatialStochSimOptions(fieldNonspatialStochOpt));\n\t\t\t\t\t}\n\t\t\t\t\tif (!solverDescription.equals(SolverDescription.StochGibson)) {\n\t\t\t\t\t\tif (fieldNonspatialStochHybridOpt == null) {\n\t\t\t\t\t\t\tsetStochHybridOpt(new NonspatialStochHybridOptions());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (solverDescription.isSpatialStochasticSolver()) {\n\t\t\t\t\tsetTimeStep(TimeStep.getDefaultSmoldynTimeStep());\n\t\t\t\t\tif (smoldynSimulationOptions == null) {\n\t\t\t\t\t\tsmoldynSimulationOptions = new SmoldynSimulationOptions();\n\t\t\t\t\t}\n\t\t\t\t\t//\t\t\t\tsetSmoldynDefaultTimeStep();\n\t\t\t\t}\n\t\t\t\tif (solverDescription.isNFSimSolver()){\n\t\t\t\t\tif (nfsimSimulationOptions == null){\n\t\t\t\t\t\tnfsimSimulationOptions = new NFsimSimulationOptions();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (solverDescription.isLangevinSolver()) {\n\t\t\t\t\tif (langevinSimulationOptions == null) {\n\t\t\t\t\t\tlangevinSimulationOptions = new LangevinSimulationOptions();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (solverDescription.isChomboSolver()) {\n\t\t\t\t\tif (chomboSolverSpec == null && getSimulation() != null) {\n\t\t\t\t\t\tchomboSolverSpec = new ChomboSolverSpec(ChomboSolverSpec.getDefaultMaxBoxSize(getSimulation().getMathDescription().getGeometry().getDimension()));\n\t\t\t\t\t}\n\t\t\t\t\tif (getOutputTimeSpec() == null || !(getOutputTimeSpec() instanceof UniformOutputTimeSpec)) {\n\t\t\t\t\t\tdouble outputTime = getTimeBounds().getEndingTime()/10;\n\t\t\t\t\t\tsetOutputTimeSpec(new UniformOutputTimeSpec(outputTime));\n\t\t\t\t\t}\n\t\t\t\t\tif (chomboSolverSpec!=null && chomboSolverSpec.getTimeIntervalList().size() == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tchomboSolverSpec.addTimeInterval(TimeInterval.getDefaultTimeInterval());\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchomboSolverSpec = null;\n\t\t\t\t}\n\t\t\t\tif (solverDescription.isMovingBoundarySolver()) {\n\t\t\t\t\tif (movingBoundarySolverOptions == null && getSimulation() != null) {\n\t\t\t\t\t\tmovingBoundarySolverOptions = new MovingBoundarySolverOptions();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tmovingBoundarySolverOptions = null;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (PropertyVetoException e) {\n\t\t\tlg.error(e);\n\t\t}\n\t}",
"public void setEndExecDate(java.util.Calendar endExecDate)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENDEXECDATE$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ENDEXECDATE$10);\n }\n target.setCalendarValue(endExecDate);\n }\n }",
"public CustomSolver() {\n this.possibleSol = this.generateTokenSet();\n this.curToken = 0;\n }",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setArgs(java.lang.String value) {\n validate(fields()[3], value);\n this.args = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"protected void setSudokuChecker(SudokuChecker checker) {\n this.checker = checker;\n }",
"public EvaluationException setCell(Coords cellCoords) {\n\t\tthis.cellName = cellCoords.getUserString(); \n\t\treturn this;\n\t}",
"protected void execute() {\n\t\tContainer container = (Container) model;\n\t\tString name = Utilities.ask(\"Component name?\");\n\t\ttry {\n\t\t\tcontainer.launch(name);\n\t\t}catch(Exception e) {\n\t\t\t//Utilities.error(\"must be component name\");\n\t\t\tUtilities.error(e.getMessage());\n\t\t\t//System.out.println(\"The name:\" + name);\n\t\t}\n\t}",
"private void setupWorkingDir(Execute exe) {\r\n if (dir == null) {\r\n dir = getProject().getBaseDir();\r\n }\r\n else if (!dir.exists() || !dir.isDirectory()) {\r\n throw new BuildException(dir.getAbsolutePath() + \" is not a valid directory\", getLocation());\r\n }\r\n exe.setWorkingDirectory(dir);\r\n }",
"public EngineSwitch() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = EnginePackage.eINSTANCE;\n\t\t}\n\t}"
] |
[
"0.6806845",
"0.57538545",
"0.53047913",
"0.5086328",
"0.49992868",
"0.49167967",
"0.49106297",
"0.48532116",
"0.4825152",
"0.47921595",
"0.47829124",
"0.475138",
"0.47048342",
"0.47021633",
"0.4659804",
"0.46251217",
"0.45927152",
"0.45839882",
"0.45788",
"0.45479953",
"0.45440543",
"0.44983274",
"0.44768333",
"0.4460651",
"0.4445022",
"0.4423433",
"0.44086972",
"0.44047803",
"0.4401313",
"0.4395909",
"0.43776327",
"0.43743795",
"0.4349527",
"0.43481985",
"0.43445593",
"0.4338325",
"0.43028623",
"0.42969123",
"0.42860827",
"0.42680097",
"0.42664388",
"0.4261568",
"0.42499137",
"0.42374584",
"0.4236569",
"0.42303547",
"0.4201642",
"0.419167",
"0.41791403",
"0.4168961",
"0.41514644",
"0.4148155",
"0.4145806",
"0.41410822",
"0.4130081",
"0.41284072",
"0.41239664",
"0.41236222",
"0.41235763",
"0.4121882",
"0.4121523",
"0.4119497",
"0.4119268",
"0.41137087",
"0.41059873",
"0.4098955",
"0.4094179",
"0.40897587",
"0.40892208",
"0.4087181",
"0.40867108",
"0.40842405",
"0.4074541",
"0.40681157",
"0.40626207",
"0.40587783",
"0.4058641",
"0.40479615",
"0.40473694",
"0.40472183",
"0.40461057",
"0.40411496",
"0.4040926",
"0.40399194",
"0.40239027",
"0.40234527",
"0.40232036",
"0.4022754",
"0.40203843",
"0.40182373",
"0.40171444",
"0.401027",
"0.4009626",
"0.4009493",
"0.40085807",
"0.4007823",
"0.40055472",
"0.39970124",
"0.3993267",
"0.39856413"
] |
0.7954253
|
0
|
Sets the start date of this job.
|
@Override
public void setStartDate(Date startDate) {
model.setStartDate(startDate);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStartDate(Date start)\r\n {\r\n this.startDate = start;\r\n }",
"public void setStartDate(java.util.Date value);",
"public void setStartDate(Date value)\n {\n validateStartDate(value);\n setAttributeInternal(STARTDATE, value);\n \n }",
"public void setStartDate(Date startDate)\r\n {\r\n m_startDate = startDate;\r\n }",
"public void setStartedDate(Date value) {\n this.startedDate = value;\n }",
"void setStartDate(Date startDate);",
"public void setStartDate(Date startDate) {\r\n this.startDate = startDate;\r\n }",
"public void setStartDate(Date startDate) {\r\n this.startDate = startDate;\r\n }",
"public void setStartDate(String date){\n\t\tthis.startDate = date;\n\t}",
"public void setJobStartDate(java.util.Calendar jobStartDate)\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(JOBSTARTDATE$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(JOBSTARTDATE$0);\r\n }\r\n target.setCalendarValue(jobStartDate);\r\n }\r\n }",
"public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }",
"public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }",
"public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }",
"public void xsetJobStartDate(org.apache.xmlbeans.XmlDate jobStartDate)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDate target = null;\r\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(JOBSTARTDATE$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(JOBSTARTDATE$0);\r\n }\r\n target.set(jobStartDate);\r\n }\r\n }",
"public void setStartDate(Date startDate) {\n\t\tthis.startDate = startDate;\n\t}",
"public void setStartDate(Date startDate) {\n\t\tthis.startDate = startDate;\n\t}",
"public void setStartTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(STARTTIME_PROP.get(), value);\n }",
"public void setStartTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(STARTTIME_PROP.get(), value);\n }",
"public void setStartTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(STARTTIME_PROP.get(), value);\n }",
"public void setStartTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(STARTTIME_PROP.get(), value);\n }",
"@Override\n\tpublic void setStartDate(java.util.Date startDate) {\n\t\t_esfTournament.setStartDate(startDate);\n\t}",
"public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}",
"public void setStartDate(Date s);",
"public void setDateStart (Timestamp DateStart);",
"public void setStartDate(java.util.Calendar startDate) {\n this.startDate = startDate;\n }",
"public void setDtStart(Date dtStart) {\r\n this.dtStart = dtStart;\r\n }",
"public Builder setBeginDate(long value) {\n bitField0_ |= 0x00000040;\n beginDate_ = value;\n\n return this;\n }",
"public Builder setStartDate(long value) {\n \n startDate_ = value;\n onChanged();\n return this;\n }",
"void setEventStartDate(Date startEventDate);",
"public void setREQ_START_DATE(java.sql.Date value)\n {\n if ((__REQ_START_DATE == null) != (value == null) || (value != null && ! value.equals(__REQ_START_DATE)))\n {\n _isDirty = true;\n }\n __REQ_START_DATE = value;\n }",
"protected void setStartDate(final AbsoluteDate startDate) {\n this.startDate = startDate;\n }",
"public void setStartDate(String startDate) throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n this.startDate = dateFormat.parse(startDate);\n }",
"public void setStart( Calendar start );",
"public void setStartDate(@NotNull DateWithOffset startDate) {\r\n if (startDate == null) { // NOSONAR\r\n throw new NullPointerException(\"startDate\");\r\n }\r\n this.startDate = startDate;\r\n }",
"public void setStartServiceDate(Date value) {\n setAttributeInternal(STARTSERVICEDATE, value);\n }",
"public void setStart(Date newStart) {\n if (!newStart.before(_end)) {\n throw new IllegalArgumentException(ERR_START_AFTER_END);\n }\n _start = (Date) newStart.clone();\n }",
"public void setStart(final GregorianCalendar start) {\n if (start == null)\n throw new NullPointerException(\n \"Start date/time not properly specified.\");\n this._start = start;\n }",
"@Test\n\tpublic void testSetStartDate() {\n\t\tassertNotEquals(calTest, initialJob.getStartDate());\n\t\tinitialJob.setStartDate(calTest.get(Calendar.YEAR), calTest.get(Calendar.MONTH), \n\t\t\t\tcalTest.get(Calendar.DATE), calTest.get(Calendar.HOUR), \n\t\t\t\tcalTest.get(Calendar.MINUTE));\n\t\tassertEquals(calTest, initialJob.getStartDate());\n\t\t\n\t\t// check different dates are not equivalent\n\t\tinitialJob.setStartDate(calTest.get(Calendar.YEAR) + 1, calTest.get(Calendar.MONTH), \n\t\t\t\tcalTest.get(Calendar.DATE), calTest.get(Calendar.HOUR), \n\t\t\t\tcalTest.get(Calendar.MINUTE));\n\t\tassertNotEquals(calTest, initialJob.getStartDate());\n\t}",
"public void setStartExecDate(java.util.Calendar startExecDate)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STARTEXECDATE$8, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STARTEXECDATE$8);\n }\n target.setCalendarValue(startExecDate);\n }\n }",
"public JobBuilder startTime(Date startTime) {\r\n job.setStartTime(startTime);\r\n return this;\r\n }",
"public void setStartDate(String startDate) {\n this.startDate = startDate;\n }",
"public void setStartDate(Date sDate) throws IllegalArgumentException {\n\t\tif (sDate == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tstartDate = sDate;\n\t\tupdateAvailability(\"\");\n\t}",
"public CommonAlert dateStart(Date dateStart) {\n this.dateStart = dateStart;\n return this;\n }",
"public void xsetStartExecDate(org.apache.xmlbeans.XmlDate startExecDate)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDate target = null;\n target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(STARTEXECDATE$8, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(STARTEXECDATE$8);\n }\n target.set(startExecDate);\n }\n }",
"public void setStartDateTime(java.util.Date startDateTime) {\n this.startDateTime = startDateTime;\n }",
"public void changeStartDate(DateToken startToken) {\r\n\t\tDateTime now = new DateTime();\r\n\t\tif (Interval.nowStub != null) now = Interval.nowStub;\r\n\t\t\r\n\t\tstartDateExplicitlySet = true;\r\n\t\t\r\n\t\tif (this.start == null) {\r\n\t\t\tDateTime start = startToken.mergeInto(now).withTime(0, 0, 0, 0);\r\n\r\n\t\t\t// not leaping forward a year here; date should be taken as is\r\n\t\t\t\r\n\t\t\tthis.start = start;\r\n\t\t\tend = start.withTime(23, 59, 0, 0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// a time has already been set\r\n\t\t\tDateTime start = startToken.mergeInto(this.start);\r\n\t\t\tthis.start = start;\r\n\t\t\tif (end.isBefore(this.start)) {\r\n\t\t\t\tend = this.start.plusHours(1);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tend = startToken.mergeInto(end);\r\n\t\t\t\tif (end.isBefore(start)) {\r\n\t\t\t\t\tend = start.plusHours(1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setServiceStartDate(Date value) {\n setAttributeInternal(SERVICESTARTDATE, value);\n }",
"public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }",
"public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }",
"public TestTaskBuilder startDate(String startDate) {\n try {\n startDate_ = timestampFormat.parse(startDate);\n } catch (ParseException ex) {\n throw new RuntimeException(ex);\n }\n return this;\n }",
"public final void setScheduledStart(java.util.Date scheduledstart)\r\n\t{\r\n\t\tsetScheduledStart(getContext(), scheduledstart);\r\n\t}",
"public void setBeginnDate(Date beginnDate) {\n\t\tthis.beginnDate = beginnDate;\n\t}",
"public void setStartDate(LocalDateTime startDate) {\n this.startDate = startDate;\n }",
"public void setStartedAt(Date startedAt) {\n\t\tthis.startedAt = startedAt;\n\t}",
"protected void setStartTimestamp(long timestamp) {\n\t\tthis.startTimestamp = timestamp;\n\t\tsetDirty(true);\n\t}",
"protected void start( LocalDate date ) {\n\t\t//optional to implement, default noop\n\t\t}",
"public long getStartDate() {\n return startDate_;\n }",
"public Date getStartDate() {\n\t\treturn startDate;\n\t}",
"public Date getStartDate() {\n\t\treturn startDate;\n\t}",
"public void setStartDate(java.sql.Date newStartDate) {\n\tstartDate = newStartDate;\n}",
"public void setStartTimestamp(long value) {\n this.startTimestamp = value;\n }",
"public long getStartDate() {\n return startDate_;\n }",
"public abstract void setStartTime(Date startTime);",
"public Date getStartDate() {\r\n return startDate;\r\n }",
"public Date getStartDate() {\r\n return startDate;\r\n }",
"public void setStartdate(Date startdate) {\r\n this.startdate = startdate;\r\n }",
"@Override\n @IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.DTSTART,\n presenceField = \"dtval\",\n required = true,\n reschedule = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.INDEX_START,\n jname = \"indexStart\",\n presenceField = \"dtval\",\n required = true,\n reschedule = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)}\n )\n @NoProxy\n public void setDtstart(final BwDateTime val) {\n dtstart = val;\n }",
"public void setStartDateTime(String s) {\n this.setStartDateTime(AppUtility.getUTCTimestamp(s));\n }",
"void setStartAt(final Long startAt);",
"public void setStartdate(Date startdate) {\n this.startdate = startdate;\n }",
"public Date getStartDate() {\n\t\treturn this.startDate;\n\t}",
"public void setStartTime(Date startTime) {\r\n this.startTime = startTime;\r\n }",
"public void setStartTimeDate(Date startTimeDate) {\n this.startTimeDate = startTimeDate;\n }",
"public void convertStartDate(Date date) {\r\n startTime = new java.sql.Timestamp(date.getTime());\r\n }",
"public void setStartTime( Date startTime ) {\n this.startTime = startTime;\n }",
"public void setStartTime(Date startTime) {\n\t\tthis.startTime = startTime;\n\t}",
"public void setStartTime(Date startTime) {\n\t\tthis.startTime = startTime;\n\t}",
"public void setStartTime(Date startTime) {\n\t\tthis.startTime = startTime;\n\t}",
"public void setStartTime(Date startTime) {\n\t\tthis.startTime = startTime;\n\t}",
"public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }",
"public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }",
"public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }",
"public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }",
"public void setBeginDate(Date beginDate) {\n this.beginDate = beginDate;\n if(this.beginDate.before(DateUtils.getToday())){\n this.beginDate = DateUtils.getToday();\n }\n //For new event or event with beginDate after endDate, set endDate after 30 minutes when beginDate change\n if(this.endDate == null || (this.endDate != null && !this.endDate.after(beginDate)))\n this.endDate = new Date(beginDate.getTime() + TimeUnit.MINUTES.toMillis(30));\n }",
"public final void setWishDateStart(java.util.Date wishdatestart)\r\n\t{\r\n\t\tsetWishDateStart(getContext(), wishdatestart);\r\n\t}",
"public Date getStartDate() {\n return startDate;\n }",
"public Date getStartDate() {\n return startDate;\n }",
"public Date getStartDate() {\n return startDate;\n }",
"public Date getDtStart() {\r\n return dtStart;\r\n }",
"public void setStart(int startId) throws IllegalArgumentException, IllegalStateException;",
"public void setStartTime(java.util.Date startTime) {\n this.startTime = startTime;\n }",
"public void setStartTime(java.util.Date startTime) {\n this.startTime = startTime;\n }",
"public void setStartTime(java.util.Date startTime) {\n this.startTime = startTime;\n }",
"public void setStartTime(java.util.Date startTime) {\n this.startTime = startTime;\n }",
"public Date getStart() {\n return start;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getStartDate();",
"public void setStartTime() {\r\n startTime = System.currentTimeMillis();\r\n }",
"public void setStartWorkTime(Date startWorkTime) {\n this.startWorkTime = startWorkTime;\n }",
"public void setStart(long start) { this.start = start; }",
"void setStartTime(java.util.Calendar startTime);"
] |
[
"0.7426373",
"0.737883",
"0.7341845",
"0.72039264",
"0.71927667",
"0.7175752",
"0.71617943",
"0.71617943",
"0.71396023",
"0.71373796",
"0.7104937",
"0.7104937",
"0.7104937",
"0.7092438",
"0.7089692",
"0.7089692",
"0.70843655",
"0.70843655",
"0.70605606",
"0.70605606",
"0.7051439",
"0.702542",
"0.70106536",
"0.70101136",
"0.6996271",
"0.6989395",
"0.6968783",
"0.6947624",
"0.6921128",
"0.69006234",
"0.68847704",
"0.6879514",
"0.68519443",
"0.68379605",
"0.6814593",
"0.6794244",
"0.67414564",
"0.67298675",
"0.6713179",
"0.6709448",
"0.6683108",
"0.6678438",
"0.65820867",
"0.6559535",
"0.6519935",
"0.6518899",
"0.64864105",
"0.6437232",
"0.6437232",
"0.64371574",
"0.64194626",
"0.63804746",
"0.63790065",
"0.6371736",
"0.6354567",
"0.63329726",
"0.6299778",
"0.6298803",
"0.6298803",
"0.62964284",
"0.6251546",
"0.62346566",
"0.6227358",
"0.62084347",
"0.62084347",
"0.6207394",
"0.6186875",
"0.61720955",
"0.6170352",
"0.61617",
"0.61548924",
"0.6149991",
"0.6147287",
"0.6119865",
"0.61105984",
"0.61074907",
"0.61074907",
"0.61074907",
"0.61074907",
"0.61051923",
"0.61051923",
"0.61051923",
"0.61051923",
"0.6098697",
"0.60962653",
"0.6079333",
"0.6079333",
"0.6079333",
"0.6069421",
"0.6046681",
"0.6019812",
"0.6019812",
"0.6019812",
"0.6019812",
"0.60016924",
"0.59961694",
"0.5983774",
"0.598109",
"0.5977256",
"0.59725887"
] |
0.71956784
|
4
|
Sets the status of this job.
|
@Override
public void setStatus(int status) {
model.setStatus(status);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStatus(JobStatus status);",
"public JobBuilder status(String status) {\r\n job.setStatus(status);\r\n return this;\r\n }",
"@Override\n\tpublic void setJobStatus(int jobStatus) {\n\t\tmodel.setJobStatus(jobStatus);\n\t}",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"void setStatus(TaskStatus status);",
"public void setStatus(BatchStatus value) {\n this.status = value;\n }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setJobStatus(Integer jobStatus) {\n this.jobStatus = jobStatus;\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setJobStatus(String jobStatus) {\n this.jobStatus = jobStatus;\n }",
"public void setJobStatus(String jobStatus) {\n this.jobStatus = jobStatus;\n }",
"public void setStatus(@NotNull Status status) {\n this.status = status;\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(JenkinsStatus status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"public void setStatus(ProcessModelStatus status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public synchronized void setStatus(Status stat) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n\n if (stat == null) {\n throw new IllegalArgumentException(\n \"TestResult status cannot be set to null!\");\n }\n\n // close out message section\n sections[0].setStatus(null);\n\n execStatus = stat;\n\n if (execStatus == inProgress) {\n execStatus = interrupted;\n }\n\n // verify integrity of status in all sections\n for (Section section : sections) {\n if (section.isMutable()) {\n section.setStatus(incomplete);\n }\n }\n\n props = PropertyArray.put(props, SECTIONS,\n StringArray.join(getSectionTitles()));\n props = PropertyArray.put(props, EXEC_STATUS,\n execStatus.toString());\n\n // end time now required\n // mainly for writing in the TRC for the Last Run Filter\n if (PropertyArray.get(props, END) == null) {\n props = PropertyArray.put(props, END, formatDate(new Date()));\n }\n\n // this object is now immutable\n notifyCompleted();\n }",
"public void setStatus(String status) { this.status = status; }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"public void setStatus(String status)\n {\n setValue(\"status\", status);\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"@JsonProperty(\"status\")\n public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(boolean value) {\n this.status = value;\n }",
"public void setStatus(boolean value) {\n this.status = value;\n }",
"public void setStatus(final String status) {\n this.status = status;\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void status(boolean b) {\n status = b;\n }",
"void setStatus(STATUS status);",
"public void setStatus(ServiceTaskStatus status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Boolean status) {\n this.status = status;\n }",
"public void setStatus(Boolean status) {\n this.status = status;\n }",
"public void setStatus(Boolean status) {\n this.status = status;\n }",
"public void setStatus(int value) {\n this.status = value;\n }",
"public void setStatus(int value) {\n this.status = value;\n }",
"public void setStatus(boolean status) {\n\tthis.status = status;\n }",
"public void setStatus(String Status) {\n this.Status = Status;\n }",
"public void setStatus(String Status) {\n this.Status = Status;\n }"
] |
[
"0.8112081",
"0.76502407",
"0.7529879",
"0.746156",
"0.74287134",
"0.74059516",
"0.7390933",
"0.7383425",
"0.7355347",
"0.733403",
"0.733403",
"0.733403",
"0.733403",
"0.7308599",
"0.7256061",
"0.7256061",
"0.7228828",
"0.72259593",
"0.72020173",
"0.7194895",
"0.7194895",
"0.71919495",
"0.7190591",
"0.7190591",
"0.71814793",
"0.71716714",
"0.71716714",
"0.7161002",
"0.7161002",
"0.7161002",
"0.7161002",
"0.7161002",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7160555",
"0.7159111",
"0.71564025",
"0.7145024",
"0.71431303",
"0.714123",
"0.714123",
"0.71394736",
"0.7138446",
"0.7135566",
"0.7135566",
"0.7135566",
"0.7135566",
"0.7135566",
"0.7135566",
"0.7135566",
"0.7135566",
"0.7135566",
"0.7135566",
"0.7135566",
"0.7135566",
"0.7135566",
"0.7135566",
"0.7135566",
"0.7135566",
"0.71202403",
"0.71202403",
"0.71202403",
"0.71202403",
"0.7119343",
"0.7119343",
"0.7112961",
"0.7106499",
"0.7102168",
"0.7102168",
"0.70944756",
"0.70770997",
"0.70770997",
"0.7075356",
"0.7068041",
"0.70628333",
"0.7049572",
"0.7046752",
"0.7039001",
"0.7039001",
"0.7039001",
"0.7033701",
"0.7033701",
"0.703363",
"0.7033074",
"0.7033074"
] |
0.0
|
-1
|
Sets the submit args of this job.
|
@Override
public void setSubmitArgs(String submitArgs) {
model.setSubmitArgs(submitArgs);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic String getSubmitArgs() {\n\t\treturn model.getSubmitArgs();\n\t}",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setArgs(java.lang.String value) {\n validate(fields()[3], value);\n this.args = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"public void setArgs(String[] args) {\n this.args = args;\n }",
"@Override\n public void setArgs(String[] args) {\n this.args = args.clone();\n }",
"@Override\n public void setArgs(String[] args) {\n this.args = args.clone();\n }",
"public void setArgs(java.lang.Object[] args) {\n this.args = args;\n }",
"public void setArguments(Object args) {\n m_args = args;\n }",
"public void setArgs(java.lang.String value) {\n this.args = value;\n }",
"public void setSubmit(String submit) {\n this.submit = submit;\n }",
"void setArguments(String arguments);",
"public SystemCallJob(final String name, final String [] args) {\n super(name);\n fArgs = args;\n }",
"void setArguments(List<String> arguments);",
"public void setSubmitTime(Date submitTime) {\n this.submitTime = submitTime;\n }",
"void setJvmArguments(List<String> arguments);",
"public scheduleAsyncPersistence_args(scheduleAsyncPersistence_args other) {\n if (other.isSetPath()) {\n this.path = other.path;\n }\n if (other.isSetOptions()) {\n this.options = new ScheduleAsyncPersistenceTOptions(other.options);\n }\n }",
"public JobBuilder submitTime(Date submitTime) {\r\n job.setSubmitTime(submitTime);\r\n return this;\r\n }",
"public saveAppUploadAttachment_args(saveAppUploadAttachment_args other) {\n if (other.isSetFileByteBuffer()) {\n this.fileByteBuffer = org.apache.thrift.TBaseHelper.copyBinary(other.fileByteBuffer);\n;\n }\n if (other.isSetAppName()) {\n this.appName = other.appName;\n }\n if (other.isSetOriginName()) {\n this.originName = other.originName;\n }\n if (other.isSetUserId()) {\n this.userId = other.userId;\n }\n if (other.isSetUserIp()) {\n this.userIp = other.userIp;\n }\n }",
"public setUploadType_args(setUploadType_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.employeeId = other.employeeId;\n this.positionId = other.positionId;\n this.type = other.type;\n }",
"public void setSubmittime(Date submittime) {\n this.submittime = submittime;\n }",
"public setKeyValue_args(setKeyValue_args other) {\n if (other.isSetKey()) {\n this.key = other.key;\n }\n if (other.isSetValue()) {\n this.value = other.value;\n }\n }",
"public void setArgs (Args args)\n {\n if (args.getArgCount() < 3) {\n // show survey list\n clear();\n add(new SurveysPanel());\n return;\n\n }\n\n int surveyId = args.get(2, 0);\n if (args.getArgCount() < 4) {\n if (surveyId == 0) {\n // add a new survey\n clear();\n add(new SurveyPanel());\n\n } else {\n // edit an existing survey\n clear();\n add(new SurveyPanel(surveyId));\n }\n return;\n }\n\n int questionIndex = args.get(3, 0);\n if (questionIndex == -1) {\n // add a new question\n clear();\n add(new QuestionPanel(surveyId));\n\n } else {\n // edit an existing question\n clear();\n add(new QuestionPanel(surveyId, questionIndex));\n }\n }",
"public HDInsightSparkActivity setArguments(List<Object> arguments) {\n this.arguments = arguments;\n return this;\n }",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder clearArgs() {\n args = null;\n fieldSetFlags()[3] = false;\n return this;\n }",
"public Spawn_args(Spawn_args other) {\r\n __isset_bitfield = other.__isset_bitfield;\r\n this.objId = other.objId;\r\n this.symbol = other.symbol;\r\n this.positionX = other.positionX;\r\n this.positionY = other.positionY;\r\n }",
"public void setJobId( int jobId ) ;",
"public uploadFileForExperiment_args(uploadFileForExperiment_args other) {\n if (other.isSetAccessToken()) {\n this.accessToken = other.accessToken;\n }\n if (other.isSetExperimentId()) {\n this.experimentId = other.experimentId;\n }\n if (other.isSetFileName()) {\n this.fileName = other.fileName;\n }\n if (other.isSetBuffer()) {\n this.buffer = org.apache.thrift.TBaseHelper.copyBinary(other.buffer);\n }\n }",
"public getCurrentOnJobWorkerNums_args(getCurrentOnJobWorkerNums_args other) {\n if (other.isSetAccessKey()) {\n this.accessKey = other.accessKey;\n }\n if (other.isSetEntityIds()) {\n Set<String> __this__entityIds = new HashSet<String>();\n for (String other_element : other.entityIds) {\n __this__entityIds.add(other_element);\n }\n this.entityIds = __this__entityIds;\n }\n }",
"public Freeze_args(Freeze_args other) {\r\n }",
"public static void main(String[] args)\n {\n cmdLineArgs = args;\n }",
"@Override\n\tpublic void setSubmitId(String submitId) {\n\t\tmodel.setSubmitId(submitId);\n\t}",
"public static void main(String[] args) throws Exception {\n boolean help = args.length == 0;\n for(String arg : args) {\n if((arg.equals(\"--help\")) || (arg.equals(\"-h\"))) {\n help = true;\n }\n }\n\n if(help) {\n usage();\n return;\n }\n\n try {\n SubmitJob application = new SubmitJob(args);\n application.run();\n } catch(ParseException e) {\n System.out.println(\"Error parsing arguments: \" + e.getMessage() + \"\\n\");\n SubmitJob.usage();\n System.exit(1);\n } catch(Exception e) {\n System.out.println(\"Error: \" + e.getMessage() + \"!\\n\");\n e.printStackTrace();\n System.exit(1);\n }\n }",
"public void setSubmit_user_id(Integer submit_user_id) {\n this.submit_user_id = submit_user_id;\n }",
"public void fillCLIArgs(List<String> args) {\n\t\tif (transactionalCheckBox.isSelected()) {\n\t\t\targs.add(\"-transactional\");\n\t\t}\n\t\tObject isolationLevel = isolationLevelComboBox.getSelectedItem();\n\t\tif (isolationLevel != null && !String.valueOf(Connection.TRANSACTION_NONE).equals(isolationLevel)) {\n\t\t\targs.add(\"-isolation-level\");\n\t\t\targs.add(isolationLevel.toString());\n\t\t}\n\t\tInteger nt = numThreads();\n\t\tif (nt != null) {\n\t\t\targs.add(\"-threads\");\n\t\t\targs.add(\"\" + nt);\n\t\t}\n\t}",
"protected void setSchedule(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) {\n submissionBuilder.setSchedule(submitAction.getNewScheduleId());\n }",
"public getUploadType_args(getUploadType_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.employeeId = other.employeeId;\n }",
"public setAttribute_args(setAttribute_args other) {\n if (other.isSetPath()) {\n this.path = other.path;\n }\n if (other.isSetOptions()) {\n this.options = new SetAttributeTOptions(other.options);\n }\n }",
"public setAcl_args(setAcl_args other) {\n if (other.isSetPath()) {\n this.path = other.path;\n }\n if (other.isSetAction()) {\n this.action = other.action;\n }\n if (other.isSetEntries()) {\n List<TAclEntry> __this__entries = new ArrayList<TAclEntry>(other.entries.size());\n for (TAclEntry other_element : other.entries) {\n __this__entries.add(new TAclEntry(other_element));\n }\n this.entries = __this__entries;\n }\n if (other.isSetOptions()) {\n this.options = new SetAclTOptions(other.options);\n }\n }",
"public void parseArgs(final String[] args) {\n \t\tfinal CmdLineParser parser = new CmdLineParser(this);\n \n \t\ttry {\n \t\t\tparser.parseArgument(args);\n \n \t\t\tif (imageFile == null) {\n \t\t\t\tthrow new CmdLineException(parser, \"No image file given\");\n \t\t\t}\n \t\t\tif (githubUser == null) {\n \t\t\t\tthrow new CmdLineException(parser, \"No GitHub user given\");\n \t\t\t}\n \t\t}\n \t\tcatch (final CmdLineException e) {\n \t\t\tSystem.err.println(e.getMessage());\n \t\t\tSystem.err.println();\n \n \t\t\t// print usage instructions\n \t\t\tSystem.err.println(\"java -jar \" + JAR_NAME +\n \t\t\t\t\" [options...] arguments...\");\n \n \t\t\t// print the list of available options\n \t\t\tparser.printUsage(System.err);\n \t\t\tSystem.err.println();\n \n \t\t\tSystem.exit(1);\n \t\t}\n \t}",
"public abstract void setTrainParams(ClassificationMethod method,URL model,Map<String,Object> args) throws ClassificationException;",
"void setJobName(String jobName);",
"public void setArgumentStrings(String[] arguments) {\r\n ArrayList<Object> l = new ArrayList<Object>();\r\n l.addAll(Arrays.asList(arguments));\r\n setArguments(l);\r\n }",
"public void submitWorkTasks(WorkflowDefine workflowDefine) {\n\t\t\n\t\t\n\t}",
"@Override\n public void Submit() {\n }",
"public LsArguments(String... args) {\n this();\n this.args = args;\n this.argsIsSet = true;\n }",
"public rename_args(rename_args other) {\n if (other.isSetPath()) {\n this.path = other.path;\n }\n if (other.isSetDstPath()) {\n this.dstPath = other.dstPath;\n }\n if (other.isSetOptions()) {\n this.options = new RenameTOptions(other.options);\n }\n }",
"public rename_args(rename_args other) {\n if (other.isSetAccessToken()) {\n this.accessToken = other.accessToken;\n }\n if (other.isSetPath()) {\n this.path = other.path;\n }\n if (other.isSetName()) {\n this.name = other.name;\n }\n }",
"@Override\n\tpublic void setSubmissionText(String submissionText) {\n\t\tmodel.setSubmissionText(submissionText);\n\t}",
"public void setArguments(List<String> arguments) {\n this.arguments = arguments;\n }",
"public JobBuilder inputs(JobInputs inputs) {\r\n job.setInputs(inputs);\r\n return this;\r\n }",
"@Override\n\tpublic void setSubmitDate(Date submitDate) {\n\t\tmodel.setSubmitDate(submitDate);\n\t}",
"public void setJobProgress(JobProgress jobProgress) {\n this.jobProgress = jobProgress;\n }",
"private void submitSurvey(Bundle capturedArgs) {\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n\n Bundle allArgs = new Bundle(capturedArgs);\n allArgs.putString(Store.KEY_FIELD_FIRST_NAME,\n sharedPref.getString(SettingsActivity.KEY_PREF_FIRST_NAME, \"\"));\n allArgs.putString(Store.KEY_FIELD_LAST_NAME,\n sharedPref.getString(SettingsActivity.KEY_PREF_LAST_NAME, \"\"));\n allArgs.putString(Store.KEY_FIELD_GENDER,\n sharedPref.getString(SettingsActivity.KEY_PREF_GENDER, \"\"));\n allArgs.putInt(Store.KEY_FIELD_BIRTH_YEAR,\n sharedPref.getInt(SettingsActivity.KEY_PREF_BIRTH_YEAR, 1990));\n allArgs.putString(Store.KEY_FIELD_STREET,\n sharedPref.getString(SettingsActivity.KEY_PREF_STREET, \"\"));\n allArgs.putString(Store.KEY_FIELD_CITY,\n sharedPref.getString(SettingsActivity.KEY_PREF_CITY, \"\"));\n allArgs.putString(Store.KEY_FIELD_POSTAL_CODE,\n sharedPref.getString(SettingsActivity.KEY_PREF_POSTAL_CODE, \"\"));\n allArgs.putString(Store.KEY_FIELD_EMAIL,\n sharedPref.getString(SettingsActivity.KEY_PREF_EMAIL, \"\"));\n allArgs.putString(Store.KEY_FIELD_PHONE,\n sharedPref.getString(SettingsActivity.KEY_PREF_PHONE, \"\"));\n\n //Send to the API the new SurveyFields instance built by FieldsFactory\n mApiClient.conductSurvey(FieldsFactory.getFields(allArgs));\n\n }",
"@Override\n\tpublic void setJob(String job) {\n\t\tsuper.setJob(job);\n\t}",
"public getFile_args(getFile_args other) {\n if (other.isSetFileName()) {\n this.FileName = other.FileName;\n }\n }",
"private void initParameters() {\n jobParameters.setSessionSource(getSession(\"source\"));\n jobParameters.setSessionTarget(getSession(\"target\"));\n jobParameters.setAccessDetailsSource(getAccessDetails(\"source\"));\n jobParameters.setAccessDetailsTarget(getAccessDetails(\"target\"));\n jobParameters.setPageSize(Integer.parseInt(MigrationProperties.get(MigrationProperties.PROP_SOURCE_PAGE_SIZE)));\n jobParameters.setQuery(MigrationProperties.get(MigrationProperties.PROP_SOURCE_QUERY));\n jobParameters.setItemList(getFolderStructureItemList());\n jobParameters.setPropertyFilter(getPropertyFilter());\n jobParameters.setReplaceStringInDestinationPath(getReplaceStringArray());\n jobParameters.setNamespacePrefixMap(getNamespacePrefixList());\n jobParameters.setBatchId(getBatchId());\n jobParameters.getStopWatchTotal().start();\n jobParameters.setSuccessAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_ACTION));\n jobParameters.setErrorAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_ACTION));\n jobParameters.setSuccessFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setErrorFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setCurrentFolder(getRootFolder());\n jobParameters.setSkipDocuments(Boolean.valueOf(MigrationProperties.get(MigrationProperties.PROP_MIGRATION_COPY_FOLDERS_ONLY)));\n \n }",
"public ListenableFuture<WorkerJobResult> submitJob(String expandedJobArgs) throws IOException {\n return get().submitJob(expandedJobArgs);\n }",
"public Builder defaultArgs(String args) {\n defaultArgs(toList(args));\n return this;\n }",
"public postTweet_args(postTweet_args other) {\n if (other.isSetTweet()) {\n this.tweet = new Tweet(other.tweet);\n }\n }",
"public void setBwaArgs(String bwaArgs) {\n\t\tthis.bwaArgs = bwaArgs;\n\t}",
"public Recv_args() {\r\n\t\tsuper();\r\n\t\trecv_args = new BRecv_args();\r\n\t}",
"public getValue_args(getValue_args other) {\n if (other.isSetKey()) {\n this.key = other.key;\n }\n }",
"public saveUser_args(saveUser_args other) {\n if (other.isSetAccount()) {\n this.account = other.account;\n }\n if (other.isSetPassword()) {\n this.password = other.password;\n }\n }",
"public uploadFileForPath_args(uploadFileForPath_args other) {\n if (other.isSetAccessToken()) {\n this.accessToken = other.accessToken;\n }\n if (other.isSetPath()) {\n this.path = other.path;\n }\n if (other.isSetFileName()) {\n this.fileName = other.fileName;\n }\n if (other.isSetBuffer()) {\n this.buffer = org.apache.thrift.TBaseHelper.copyBinary(other.buffer);\n }\n }",
"public final void setArgs(ExprOrOpArgNode[] args) { this.operands = args; }",
"public Shutdown_args(Shutdown_args other) {\r\n }",
"public setType_args(setType_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.type = other.type;\n }",
"public static void main(String[] args) {\n\n for(String a: args) {\n System.out.println(a);\n }\n SpringApplication.run(JobParametersApplication.class, args);\n }",
"public void setHadoopJob( Job currJob ) ;",
"public static void main(String... args) {\n\n TestWrkactjob_ actJob = new TestWrkactjob_(args[0], args[1], args[2]);\n\n actJob.initJobList();\n actJob.loadJobList();\n\n actJob.setSortOnCPUTime();\n\n actJob.getJobList(\"csv\");\n\n }",
"public filesToHdfs_args(filesToHdfs_args other) {\n __isset_bitfield = other.__isset_bitfield;\n if (other.isSetFilePath()) {\n this.filePath = other.filePath;\n }\n if (other.isSetDirName()) {\n this.dirName = other.dirName;\n }\n this.fileLength = other.fileLength;\n if (other.isSetDkFileConf()) {\n this.dkFileConf = new DKFILEConf(other.dkFileConf);\n }\n }",
"public void setSubmitmsgid(String submitmsgid) {\n this.submitmsgid = submitmsgid == null ? null : submitmsgid.trim();\n }",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tUploadFileUsingSendKeys();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public mount_args(mount_args other) {\n if (other.isSetAlluxioPath()) {\n this.alluxioPath = other.alluxioPath;\n }\n if (other.isSetUfsPath()) {\n this.ufsPath = other.ufsPath;\n }\n if (other.isSetOptions()) {\n this.options = new MountTOptions(other.options);\n }\n }",
"public void setSubmitted(String submitted) {\n this.submitted = submitted;\n }",
"public ArgumentsParser(String... args) {\n this.arguments = new HashMap<>(args.length);\n this.args = Arrays.copyOf(args, args.length);\n }",
"public java.lang.String getArgs() {\n return args;\n }",
"public getOnJobTotalTimes_args(getOnJobTotalTimes_args other) {\n __isset_bitfield = other.__isset_bitfield;\n if (other.isSetAccessKey()) {\n this.accessKey = other.accessKey;\n }\n if (other.isSetEntityIds()) {\n Set<String> __this__entityIds = new HashSet<String>();\n for (String other_element : other.entityIds) {\n __this__entityIds.add(other_element);\n }\n this.entityIds = __this__entityIds;\n }\n this.startTime = other.startTime;\n this.endTime = other.endTime;\n }",
"public Builder setArgs(\n\t\t\t\t\tint index, java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t\tensureArgsIsMutable();\n\t\t\t\targs_.set(index, value);\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}",
"public ExportDataUpdate_args(ExportDataUpdate_args other) {\r\n if (other.isSetHost()) {\r\n this.host = other.host;\r\n }\r\n if (other.isSetDatabase()) {\r\n this.database = other.database;\r\n }\r\n if (other.isSetUserName()) {\r\n this.userName = other.userName;\r\n }\r\n if (other.isSetPassword()) {\r\n this.password = other.password;\r\n }\r\n if (other.isSetTableName()) {\r\n this.tableName = other.tableName;\r\n }\r\n if (other.isSetHiveTaleb()) {\r\n this.hiveTaleb = other.hiveTaleb;\r\n }\r\n if (other.isSetKeyfield()) {\r\n this.keyfield = other.keyfield;\r\n }\r\n }",
"public saveAccessAnalysis_args(saveAccessAnalysis_args other) {\n if (other.isSetJsessionid()) {\n this.jsessionid = other.jsessionid;\n }\n if (other.isSetFromUserId()) {\n this.fromUserId = other.fromUserId;\n }\n if (other.isSetToUserId()) {\n this.toUserId = other.toUserId;\n }\n if (other.isSetUserIp()) {\n this.userIp = other.userIp;\n }\n if (other.isSetReferer()) {\n this.referer = other.referer;\n }\n if (other.isSetUri()) {\n this.uri = other.uri;\n }\n if (other.isSetBrowser()) {\n this.browser = other.browser;\n }\n if (other.isSetOs()) {\n this.os = other.os;\n }\n }",
"public void setUserFilterArgs(final Object[] userFilterArgs)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n this.logger.trace(\n \"setting userFilterArgs: \" +\n (userFilterArgs == null ?\n \"null\" : Arrays.asList(userFilterArgs)));\n }\n this.userFilterArgs = userFilterArgs;\n }",
"protected void parseArgs(String[] args) {\n // Arguments are pretty simple, so we go with a basic switch instead of having\n // yet another dependency (e.g. commons-cli).\n for (int i = 0; i < args.length; i++) {\n int nextIdx = (i + 1);\n String arg = args[i];\n switch (arg) {\n case \"--prop-file\":\n if (++i < args.length) {\n loadPropertyFile(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--schema-name\":\n if (++i < args.length) {\n DataDefinitionUtil.assertValidName(args[i]);\n\n // Force upper-case to avoid tricky-to-catch errors related to quoting names\n this.schemaName = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--grant-to\":\n if (++i < args.length) {\n DataDefinitionUtil.assertValidName(args[i]);\n\n // Force upper-case because user names are case-insensitive\n this.grantTo = args[i].toUpperCase();\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--target\":\n if (++i < args.length) {\n DataDefinitionUtil.assertValidName(args[i]);\n List<String> targets = Arrays.asList(args[i].split(\",\"));\n for (String target : targets) {\n String tmp = target.toUpperCase();\n nextIdx++;\n if (tmp.startsWith(\"BATCH\")) {\n this.grantJavaBatchSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.javaBatchSchemaName = args[nextIdx];\n i++;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n } else if (tmp.startsWith(\"OAUTH\")){\n this.grantOauthSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.oauthSchemaName = args[nextIdx];\n i++;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n } else if (tmp.startsWith(\"DATA\")){\n this.grantFhirSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.schemaName = args[nextIdx];\n i++;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n }\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--add-tenant-key\":\n if (++i < args.length) {\n this.addKeyForTenant = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--update-proc\":\n this.updateProc = true;\n break;\n case \"--check-compatibility\":\n this.checkCompatibility = true;\n break;\n case \"--drop-admin\":\n this.dropAdmin = true;\n break;\n case \"--test-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.testTenant = true;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--tenant-key\":\n if (++i < args.length) {\n this.tenantKey = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--tenant-key-file\":\n if (++i < args.length) {\n tenantKeyFileName = args[i];\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--list-tenants\":\n this.listTenants = true;\n break;\n case \"--update-schema\":\n this.updateFhirSchema = true;\n this.updateOauthSchema = true;\n this.updateJavaBatchSchema = true;\n this.dropSchema = false;\n break;\n case \"--update-schema-fhir\":\n this.updateFhirSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.schemaName = args[nextIdx];\n i++;\n } else {\n this.schemaName = DATA_SCHEMANAME;\n }\n break;\n case \"--update-schema-batch\":\n this.updateJavaBatchSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.javaBatchSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--update-schema-oauth\":\n this.updateOauthSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.oauthSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--create-schemas\":\n this.createFhirSchema = true;\n this.createOauthSchema = true;\n this.createJavaBatchSchema = true;\n break;\n case \"--create-schema-fhir\":\n this.createFhirSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.schemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--create-schema-batch\":\n this.createJavaBatchSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.javaBatchSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--create-schema-oauth\":\n this.createOauthSchema = true;\n if (nextIdx < args.length && !args[nextIdx].startsWith(\"--\")) {\n this.oauthSchemaName = args[nextIdx];\n i++;\n }\n break;\n case \"--drop-schema\":\n this.updateFhirSchema = false;\n this.dropSchema = true;\n break;\n case \"--drop-schema-fhir\":\n this.dropFhirSchema = Boolean.TRUE;\n break;\n case \"--drop-schema-batch\":\n this.dropJavaBatchSchema = Boolean.TRUE;\n break;\n case \"--drop-schema-oauth\":\n this.dropOauthSchema = Boolean.TRUE;\n break;\n case \"--pool-size\":\n if (++i < args.length) {\n this.maxConnectionPoolSize = Integer.parseInt(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--prop\":\n if (++i < args.length) {\n // properties are given as name=value\n addProperty(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--confirm-drop\":\n this.confirmDrop = true;\n break;\n case \"--allocate-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.allocateTenant = true;\n this.dropTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--drop-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.dropTenant = true;\n this.allocateTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--freeze-tenant\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.freezeTenant = true;\n this.dropTenant = false;\n this.allocateTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--drop-detached\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.dropDetached = true;\n this.dropTenant = false;\n this.allocateTenant = false;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--delete-tenant-meta\":\n if (++i < args.length) {\n this.tenantName = args[i];\n this.deleteTenantMeta = true;\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n break;\n case \"--dry-run\":\n this.dryRun = Boolean.TRUE;\n break;\n case \"--db-type\":\n if (++i < args.length) {\n this.dbType = DbType.from(args[i]);\n } else {\n throw new IllegalArgumentException(\"Missing value for argument at posn: \" + i);\n }\n switch (dbType) {\n case DERBY:\n translator = new DerbyTranslator();\n // For some reason, embedded derby deadlocks if we use multiple threads\n maxConnectionPoolSize = 1;\n break;\n case POSTGRESQL:\n translator = new PostgreSqlTranslator();\n break;\n case DB2:\n default:\n break;\n }\n break;\n default:\n throw new IllegalArgumentException(\"Invalid argument: \" + arg);\n }\n }\n }",
"public java.lang.String getArgs() {\n return args;\n }",
"public Pause_args(Pause_args other) {\r\n }",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"@Override\n public void init(ArrayList<String> args) {\n label = args.get(0);\n }",
"public static void submitJobHelper(CondorScheddPortType schedd,\n\t\t\t\t Transaction transaction,\n\t\t\t\t int clusterId, int jobId, String owner,\n\t\t\t\t UniverseType type,\n\t\t\t\t String cmd, String args,\n\t\t\t\t String requirements,\n\t\t\t\t ClassAdStructAttr[] newAttr,\n\t\t\t\t String[] files)\n\tthrows JobSubmissionException, SendFileException,\n\t java.io.IOException, java.rmi.RemoteException {\n\n\tboolean dontCommit = true;\n\tboolean nullTransaction = false;\n\n\tif(transaction == null) {\n\t dontCommit = false;\n\t nullTransaction = true;\n\t TransactionAndStatus trans_s = schedd.beginTransaction(60);\n\t if(!(trans_s.getStatus()).getCode().equals(StatusCode.SUCCESS)) {\n\t\tSystem.err.println(\"Failed to begin Transaction\");\n\t\tthrow new JobSubmissionException(\"Failed to begin Transaction\");\n\t }\n\t transaction = trans_s.getTransaction();\n\t}\n\n\tif(clusterId < 0) {\n\t IntAndStatus clust_s = schedd.newCluster(transaction);\n\t if(!(clust_s.getStatus()).getCode().equals(StatusCode.SUCCESS)) {\n\t\tSystem.err.println(\"Failed to create new cluster\");\n\t\tthrow new JobSubmissionException(\"Failed to create new cluster\");\n\t }\n\t clusterId = (clust_s.getInteger()).intValue();\n\t}\n\n\tif(jobId < 0) {\n\t IntAndStatus jobid_s = schedd.newJob(transaction, clusterId);\n\t if(!(jobid_s.getStatus()).getCode().equals(StatusCode.SUCCESS)) {\n\t\tSystem.err.println(\"Failed to create new Job\");\n\t\tthrow new JobSubmissionException(\"Failed to create new Job\");\n\t }\n\t jobId = (jobid_s.getInteger()).intValue();\n\t}\n\n\tif(!dontCommit) {\n\t Status st = schedd.commitTransaction(transaction);\n\t if(!(st.getCode()).equals(StatusCode.SUCCESS)) {\n\t\tSystem.err.println(\"Failed to commit\");\n\t\tthrow new JobSubmissionException(\"Failed to commit\");\n\t }\n\t}\n\n\tif(owner == null) {\n\t owner = System.getProperty(\"user.name\");\n\t}\n\n\tif(type == null) {\n\t type = UniverseType.STANDARD;\n\t}\n\n\tif(args == null) {\n\t args = \"\";\n\t}\n\n\tif(requirements == null) {\n\t requirements = \"TRUE\";\n\t}\n\n\tif(cmd == null) {\n\t System.err.println(\"Illegal Job Template parameter - CommandName has to be specified\");\n\t throw new JobSubmissionException(\"Illegal Job Template parameters - CommandName has to be specified\");\n\t}\n\tClassAdStructAndStatus cas_s =\n\t schedd.createJobTemplate(clusterId, jobId, owner,\n\t\t\t\t type, cmd, args, requirements);\n\tif(!(cas_s.getStatus()).getCode().equals(StatusCode.SUCCESS)) {\n\t System.err.println(\"Failed to create Job Template\");\n\t throw new JobSubmissionException(\"Failed to create Job Template\");\n\t}\n\tClassAdStructAttr[] jobAd = cas_s.getClassAd().getItem();\n\n\tif(newAttr != null) {\n\t for(int i=0; i<newAttr.length; i++) {\n\t\tjobAd = setAttributeValue(jobAd, newAttr[i]);\n\t }\n\t}\n\n\tif(nullTransaction)\n\t transaction = null;\n\n\tsubmitJobHelper(schedd, transaction, jobAd, files);\n\n }",
"public void setJob(String job) {\n this.job = job;\n }",
"AgentPolicyBuilder setJobPriority(JobPriority jobPriority);",
"public void setJob(String job) {\r\n\t\t\tthis.job = job;\r\n\t\t}",
"public ExportExecutionProperties withSubmittedTime(OffsetDateTime submittedTime) {\n this.submittedTime = submittedTime;\n return this;\n }",
"public Builder defaultArgs(List<String> args) {\n if (isValid(args)) {\n this.defaultArgs = split(args);\n }\n return this;\n }",
"void setQueryArgs(QueryArgs queryArgs);",
"public Builder setArgs(\n int index, godot.wire.Wire.Value value) {\n if (argsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureArgsIsMutable();\n args_.set(index, value);\n onChanged();\n } else {\n argsBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public PbArg(final String... argFields)\n\t{\n\t\tthis(argFields[0], \"*\".equals(argFields[1]) ? //\n\t\t\t\tnull : argFields[1], argFields[2].toLowerCase(Locale.ENGLISH), \"*\".equals(argFields[3]) ? //\n\t\t\t\tnull : argFields[3], argFields[4]);\n\t}",
"public static void main(String[] args) {\n \targuments = args;\n launch(args);\n }",
"public GoRun flags(String... args) {\n if (args.length % 2 != 0) {\n throw new InvalidParameterException(\"given args are not even\");\n }\n\n for (int i = 0; i < args.length; i += 2) {\n shortOption(args[i], args[i + 1]);\n }\n return this;\n }",
"public void SetJobInstructions(String[] instructionInfo) {\r\n Instruction instruction = new Instruction(Integer.parseInt(instructionInfo[0]),\r\n Integer.parseInt(instructionInfo[1]), Integer.parseInt(instructionInfo[2]), Short.parseShort(instructionInfo[3]));\r\n this.instructions.add(instruction);\r\n }",
"protected void setSubmissionStatus(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) {\n // not setting committee during submit in iacuc so need not check that like in irb.\n submissionBuilder.setSubmissionStatus(IacucProtocolSubmissionStatus.PENDING);\n }",
"public Clear_args(Clear_args other) {\r\n }"
] |
[
"0.61693233",
"0.6118221",
"0.58962935",
"0.58214545",
"0.58214545",
"0.5639328",
"0.5611723",
"0.5490382",
"0.53886986",
"0.51676005",
"0.5074724",
"0.5056256",
"0.5034585",
"0.50144935",
"0.49826056",
"0.4976548",
"0.4924696",
"0.49143258",
"0.49093348",
"0.49092793",
"0.4889254",
"0.4876187",
"0.4734103",
"0.4726051",
"0.47183928",
"0.46729225",
"0.46647546",
"0.4663897",
"0.46474156",
"0.4644386",
"0.46396625",
"0.4602226",
"0.45985737",
"0.4593676",
"0.4589148",
"0.45837647",
"0.45682654",
"0.45476425",
"0.45462906",
"0.45314527",
"0.4528802",
"0.44973224",
"0.4493566",
"0.44925237",
"0.44847035",
"0.4466387",
"0.4443134",
"0.44392",
"0.44279516",
"0.44269165",
"0.4425153",
"0.44229108",
"0.4412752",
"0.44064605",
"0.4399859",
"0.43885294",
"0.43865216",
"0.43847516",
"0.43845245",
"0.43786275",
"0.43775603",
"0.43722615",
"0.4368728",
"0.43581024",
"0.4338149",
"0.4336213",
"0.43354383",
"0.43327573",
"0.43261433",
"0.43217054",
"0.4315337",
"0.43148002",
"0.43123046",
"0.4309504",
"0.43082112",
"0.4305073",
"0.43046796",
"0.4302833",
"0.4298273",
"0.4290825",
"0.4289467",
"0.4284888",
"0.4284135",
"0.42805883",
"0.42801458",
"0.42594403",
"0.42508498",
"0.42496267",
"0.42344648",
"0.42338535",
"0.4233759",
"0.42325234",
"0.4228025",
"0.42224243",
"0.42210442",
"0.4220619",
"0.42175564",
"0.42098752",
"0.42098704",
"0.42086375"
] |
0.7346116
|
0
|
Sets the submit ID of this job.
|
@Override
public void setSubmitId(String submitId) {
model.setSubmitId(submitId);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void setSubmissionId(long submissionId) {\n\t\tmodel.setSubmissionId(submissionId);\n\t}",
"public void setSubmit_user_id(Integer submit_user_id) {\n this.submit_user_id = submit_user_id;\n }",
"@Override\n\tpublic String getSubmitId() {\n\t\treturn model.getSubmitId();\n\t}",
"public void setSubmissionId(long submissionId) {\r\n this.submissionId = submissionId;\r\n }",
"protected abstract String getJobSubmitId();",
"public void setSubmit(String submit) {\n this.submit = submit;\n }",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"public Integer getSubmit_user_id() {\n return submit_user_id;\n }",
"@Override\n\tpublic void setSubmitArgs(String submitArgs) {\n\t\tmodel.setSubmitArgs(submitArgs);\n\t}",
"public void setSubmitTime(Date submitTime) {\n this.submitTime = submitTime;\n }",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"public void setJobId( int jobId ) ;",
"public void setSubmittime(Date submittime) {\n this.submittime = submittime;\n }",
"protected void setSchedule(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) {\n submissionBuilder.setSchedule(submitAction.getNewScheduleId());\n }",
"public BaseEtrExpsubmit (java.lang.Integer id) {\n\t\tthis.setId(id);\n\t\tinitialize();\n\t}",
"public void setSubmitmsgid(String submitmsgid) {\n this.submitmsgid = submitmsgid == null ? null : submitmsgid.trim();\n }",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setId(java.lang.String value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public JobBuilder id(int id) {\r\n job.setId(id);\r\n return this;\r\n }",
"public JobBuilder submitTime(Date submitTime) {\r\n job.setSubmitTime(submitTime);\r\n return this;\r\n }",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"public Builder setJobId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"public Job(int id) {\n this.id = id;\n }",
"@Override\n\tpublic void setSubmitDate(Date submitDate) {\n\t\tmodel.setSubmitDate(submitDate);\n\t}",
"public void setSubmitted(String submitted) {\n this.submitted = submitted;\n }",
"@Override\n\tpublic void setJobId(long jobId) {\n\t\tmodel.setJobId(jobId);\n\t}",
"public void setId(int id) {\r\n this.id = id;\r\n job = acceptFreelancerBean.getJob(id); \r\n if (job!= null){\r\n fid=job.getFid();\r\n }\r\n }",
"@Override\n\tpublic void setChangesetEntryId(long changesetEntryId) {\n\t\t_changesetEntry.setChangesetEntryId(changesetEntryId);\n\t}",
"@Override\n\tpublic void setId(long id) {\n\t\t_contentupdate.setId(id);\n\t}",
"@Override\n\tpublic void setSubmissionText(String submissionText) {\n\t\tmodel.setSubmissionText(submissionText);\n\t}",
"public void setId(String anId) {\n _theId = anId;\n }",
"public void setJobID(int jobId) {\n\t\tthis.jobsId.add(jobId);\n\t}",
"public void setHC_JobDataChange_ID (int HC_JobDataChange_ID);",
"void setCommitID(long commit_id) {\r\n this.commit_id = commit_id;\r\n }",
"public void setJobId(int jobId) {\r\n\t\tthis.jobId = jobId;\r\n\t}",
"protected void setCommittee(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) {\n submissionBuilder.setCommittee(submitAction.getNewCommitteeId());\n }",
"public Builder setJobIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }",
"public String getJobID() {\n\t\t\treturn JobID;\n\t\t}",
"public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);",
"@Override\r\n\tpublic void setId(final K id) {\n\t\tsuper.setId(id);\r\n\t}",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setJOB_ID(BigDecimal JOB_ID) {\r\n this.JOB_ID = JOB_ID;\r\n }",
"public void setThreadId(long id) {\n threadId = id;\n }",
"protected void setSubmissionStatus(IacucProtocolSubmissionBuilder submissionBuilder, IacucProtocolSubmitAction submitAction) {\n // not setting committee during submit in iacuc so need not check that like in irb.\n submissionBuilder.setSubmissionStatus(IacucProtocolSubmissionStatus.PENDING);\n }",
"public Builder setJobIDTarget(long value) {\n bitField0_ |= 0x00000010;\n jobIDTarget_ = value;\n onChanged();\n return this;\n }",
"public void assignId(int id);",
"public void setThreadId(Long threadId) {\n this.threadId = threadId;\n }",
"public void setIdrequest(String idrequest) {\r\n\t\tthis.idrequest = idrequest;\r\n\t}",
"public void setID(long id);",
"public JobLog setId(long id) {\n this.id = id;\n return this;\n }",
"public void setId(Long pid) {\n this.pid = pid;\n }",
"public void setJobNum(int jobNum)\n\t{\n\t\tthis.jobNum = jobNum;\n\t}",
"public void setId(String idIn) {\n this.id = idIn;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long id) {\n this.id = id;\n }",
"public void setId(long id) {\n this.id = id;\n }",
"public void setId(String id)\n {\n data().put(_ID, id);\n }",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public void setId(String i) {\n\t\tid = i;\n\t}",
"public void selectSubmitButton() {\n\t\tel = Browser.getDriver().findElement(element_submit_button);\n\t\tuihelper.click(el);\n\t}",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id);",
"public void setId(long id);",
"public void setId(long id);",
"public void setId(long id);",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"@Override\n public String getTypeID() {\n return job_id;\n }",
"public void setId(long id){\n\t\tthis.id = id;\n\t}",
"public JobID() {\n super();\n }",
"public void setId(long id) {\r\n this.id = id;\r\n }",
"@Override\r\n\t\tpublic void setId(String id)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"public void setId(String value) {\n setAttributeInternal(ID, value);\n }",
"public void setId(String value) {\n setAttributeInternal(ID, value);\n }",
"public void setId(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(long id) {\n this.id = id;\n }",
"public void setId(long id) {\n this.id = id;\n }",
"void setID(int id){\n\t\tthis.qID = id;\n\t}",
"@Override\r\n\tpublic void setId(String id) {\n\t\tmProductionId = id;\r\n\t}",
"@Override\n\tpublic void setWorkflowId(long workflowId) {\n\t\t_scienceApp.setWorkflowId(workflowId);\n\t}",
"public int getJobId() {\r\n\t\treturn jobId;\r\n\t}",
"@Override\n\tpublic void setId(int id) {\n\t\tthis.ID = id;\n\t}",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}",
"@Override\r\n\tpublic void setId(String id) {\n\t\tthis.id = id;\r\n\t}",
"public void setId(String id) {\n }",
"public void setThreadId(Integer threadId) {\n\t\tthis.threadId = threadId;\n\t}"
] |
[
"0.63683015",
"0.63014203",
"0.6232529",
"0.62277234",
"0.61908746",
"0.60998034",
"0.5990755",
"0.5775995",
"0.5773981",
"0.560726",
"0.55765104",
"0.55081624",
"0.54777557",
"0.5363374",
"0.5340957",
"0.52904934",
"0.5270882",
"0.5255688",
"0.52153844",
"0.5205582",
"0.5148314",
"0.51469386",
"0.51179844",
"0.5115017",
"0.50949854",
"0.50622314",
"0.50407016",
"0.50401556",
"0.5029506",
"0.49909824",
"0.49903277",
"0.4963253",
"0.48987535",
"0.48926866",
"0.48627508",
"0.48599398",
"0.48597708",
"0.48573926",
"0.48506674",
"0.48177996",
"0.4803772",
"0.4803772",
"0.48022553",
"0.4802099",
"0.48002782",
"0.48002434",
"0.4787556",
"0.4769103",
"0.47689825",
"0.47673348",
"0.47662994",
"0.47565278",
"0.4755773",
"0.47530693",
"0.47495186",
"0.47495186",
"0.47495186",
"0.47495186",
"0.47495186",
"0.47495186",
"0.47495186",
"0.47466645",
"0.47466645",
"0.47404292",
"0.47393742",
"0.47393742",
"0.47386876",
"0.4734129",
"0.47282073",
"0.47282073",
"0.47271177",
"0.47271177",
"0.47271177",
"0.47271177",
"0.47237468",
"0.47237468",
"0.47237468",
"0.4717589",
"0.47159624",
"0.47139004",
"0.47113705",
"0.46960232",
"0.46893758",
"0.46893758",
"0.46889505",
"0.46889505",
"0.46889505",
"0.46889505",
"0.46889505",
"0.46869516",
"0.46835992",
"0.4680503",
"0.46766332",
"0.46761513",
"0.467293",
"0.467293",
"0.467293",
"0.4669113",
"0.4668814",
"0.46610087"
] |
0.7528594
|
0
|
Sets the title of this job.
|
@Override
public void setTitle(String title) {
model.setTitle(title);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setTitle_(String title_) {\n this.title_ = title_;\n }",
"@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}",
"public void setTitle( String title ) {\n\t\t_title = title;\n\t}",
"public void setTitle(String title) {\r\n _title = title;\r\n }",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"public void setTitle(final String title)\n {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(final String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"public void setTitle(String title){\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n mTitle = title;\n }",
"@Override\n public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(final String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title; \n\t}",
"public void setTitle(String title)\n {\n mTitle = title;\n }",
"public void setTitle(Title title) {\r\n this.title = title;\r\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title)\n {\n this.title = title;\n }",
"public void setTitle(String title)\n {\n this.title = title;\n }",
"public void setTitle(String title)\n {\n this.title = title;\n }",
"public void setTitle(String title)\n\t{\n\t\tthis.title = title;\n\t}",
"public void setTitle( String title )\n {\n _strTitle = title;\n }",
"public void setTitle(String title) {\r\n\tthis.title = title;\r\n }",
"public void setTitle(java.lang.String title) {\n this.title = title;\n }",
"public void setTitle(java.lang.String title) {\n this.title = title;\n }",
"public void setTitle(java.lang.String title) {\n this.title = title;\n }",
"public void setTitle(java.lang.String title)\n {\n this.title = title;\n }",
"public void setTitle(String title){\n this.title = title;\n }",
"public void setTitle(String title) {\n mTitle = title;\n }",
"public void setTitle(String title){\n \tthis.title = title;\n }",
"protected void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) { this.title = title; }",
"public void setTitle(String title) {\n\tthis.title = title;\n}",
"private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }",
"@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"public void setTitle(java.lang.String title);",
"public void setTitle(java.lang.Object title) {\n this.title = title;\n }",
"public void setTitle(String title) {\r\n if (title != null) {\r\n this.title = title;\r\n }\r\n else{\r\n System.out.println(\"Not a valid title\");\r\n }\r\n }",
"public void setTitle(Title Title) {\n\t\ttitle = Title;\n\t}",
"public void setTitle(String title) {\n m_title.setText(title);\n }",
"public void setJobTitle(String jobTitle) {\r\n this.jobTitle = jobTitle;\r\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\n this.title = title == null ? null : title.trim();\n }",
"public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }",
"public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }",
"public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }",
"public void setTitle(String title) {\r\n this.title = title == null ? null : title.trim();\r\n }",
"public void setJob_title(String job_title) {\r\n this.job_title = job_title;\r\n }",
"@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_esfTournament.setTitle(title);\n\t}",
"public void setTitle(String title);",
"public void setTitle(String title);",
"public void setTitle(String title);",
"void setTitle(java.lang.String title);"
] |
[
"0.78850806",
"0.78539383",
"0.7853908",
"0.7849395",
"0.7838706",
"0.7838706",
"0.7838706",
"0.7838706",
"0.7838706",
"0.78173274",
"0.78173274",
"0.7807611",
"0.7803448",
"0.7801913",
"0.7800664",
"0.7800664",
"0.7799892",
"0.7799548",
"0.77944195",
"0.77911794",
"0.77911294",
"0.77911294",
"0.77911294",
"0.77911294",
"0.77911294",
"0.77911294",
"0.77911294",
"0.77911294",
"0.77911294",
"0.7789345",
"0.7788137",
"0.77778304",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7775009",
"0.7761114",
"0.7761114",
"0.7761114",
"0.7761114",
"0.7756636",
"0.7756636",
"0.7756636",
"0.77554786",
"0.77041066",
"0.77018136",
"0.76950514",
"0.76950514",
"0.76950514",
"0.7674611",
"0.7665881",
"0.76636624",
"0.7639504",
"0.7618292",
"0.76045895",
"0.7562585",
"0.75367165",
"0.7511894",
"0.75115347",
"0.74823046",
"0.74748814",
"0.7457236",
"0.7442851",
"0.7433747",
"0.7432539",
"0.7432539",
"0.7432539",
"0.7432539",
"0.7432539",
"0.7432539",
"0.7432539",
"0.7432539",
"0.7432539",
"0.7432539",
"0.7432539",
"0.7432539",
"0.7421969",
"0.7421969",
"0.7421969",
"0.7421969",
"0.7413232",
"0.7407538",
"0.73836297",
"0.73836297",
"0.73836297",
"0.7374673"
] |
0.7423658
|
90
|
Sets the used cpu time of this job.
|
@Override
public void setUsedCpuTime(String usedCpuTime) {
model.setUsedCpuTime(usedCpuTime);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setCPUTime() {\r\n\t\t\tthis.CPUTime = 0;\r\n\t\t}",
"public void setTimes(long startCpuTime, long startSystemTime) {\r\n this.startCpuTime = startCpuTime;\r\n this.startSystemTime = startSystemTime;\r\n }",
"public void setUsedtime(Float usedtime) {\n this.usedtime = usedtime;\n }",
"public void setStartCpuTime(long startCpuTime) {\r\n this.startCpuTime = startCpuTime;\r\n }",
"@Override\n\tpublic String getUsedCpuTime() {\n\t\treturn model.getUsedCpuTime();\n\t}",
"public void setCpu(Long Cpu) {\n this.Cpu = Cpu;\n }",
"@Override\n\tpublic void setCpu() {\n\t\tcom.setCpu(\"i7\");\n\t}",
"@Override\n\tpublic void setUsedWalltime(String usedWalltime) {\n\t\tmodel.setUsedWalltime(usedWalltime);\n\t}",
"public void setUsed(Long used) {\r\n this.used = used;\r\n }",
"public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }",
"public void setStartTime() {\r\n startTime = System.currentTimeMillis();\r\n }",
"public void setSortOnCPUTime() {\n this.sortedJobList = new TreeSet<Job>(new Comparator<Job>() {\n @Override\n public int compare(Job a, Job b) {\n\n int aCPUUsed = 0;\n int bCPUUsed = 0;\n\n try {\n aCPUUsed = a.getCPUUsed();\n bCPUUsed = b.getCPUUsed();\n } catch (AS400SecurityException e) {\n e.printStackTrace();\n } catch (ErrorCompletingRequestException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ObjectDoesNotExistException e) {\n e.printStackTrace();\n }\n\n if (aCPUUsed == bCPUUsed) return 0;\n else return bCPUUsed - aCPUUsed;\n }\n });\n }",
"public long getStartCpuTime() {\r\n return startCpuTime;\r\n }",
"protected void setupTime() {\n this.start = System.currentTimeMillis();\n }",
"public void setStartTime(long value) {\r\n this.startTime = value;\r\n }",
"public void setWorkElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(WORKELAPSED_PROP.get(), value);\n }",
"public void setStartTime(double startTime)\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_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTTIME$22);\r\n }\r\n target.setDoubleValue(startTime);\r\n }\r\n }",
"public void setWorkElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(WORKELAPSED_PROP.get(), value);\n }",
"public void setUsedSpace(Long usedSpace) {\n this.usedSpace = usedSpace;\n }",
"public void start(){\n\n stopWatchStartTimeNanoSecs = magicBean.getCurrentThreadCpuTime();\n\n }",
"public void xsetStartTime(org.landxml.schema.landXML11.GPSTime startTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.GPSTime target = null;\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().find_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().add_attribute_user(STARTTIME$22);\r\n }\r\n target.set(startTime);\r\n }\r\n }",
"@ApiModelProperty(required = true, value = \"The number (across all cores) of micro-seconds per second.\")\n public BigDecimal getCpu() {\n return cpu;\n }",
"public void setLastUse() {\n\t\t_lastused = System.currentTimeMillis();\n\t}",
"private long getCpuTime() {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported() ? bean.getCurrentThreadCpuTime() : 0L;\n }",
"public void increaseCpuUsage(double val) {\n \t\tcpuUsage += val;\n \n \t}",
"public abstract void setTotalRunTime();",
"int getCPU_time();",
"public void setTime(){\n Date currentDate = new Date();\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putLong(\"WAIT_TIME\", currentDate.getTime() + 1800000); //30 min\n editor.commit();\n }",
"public void setFastestTime(long time)\r\n {\r\n //Check if the new fastest time is less than 0 before setting the new fastest time \r\n if(time < 0)\r\n {\r\n //Outouts a warning message\r\n System.out.println(\"WARNING:You cannot assign a negative time\");\r\n }\r\n else \r\n {\r\n this.fastestTime = time; \r\n }//end if\r\n }",
"public void setGameUseTime(Integer gameUseTime) {\n this.gameUseTime = gameUseTime;\n }",
"public static long getCpuTime(){\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported() ?\n bean.getCurrentThreadCpuTime() : 0L;\n }",
"public void setStartTime(Long startTime) {\n this.startTime = startTime;\n }",
"public void setStartTime(long startTime) {\n\t\tthis.startTime = startTime;\n\t}",
"public void setStartSystemTime(long startSystemTime) {\r\n this.startSystemTime = startSystemTime;\r\n }",
"public void setOperTime(java.lang.String param) {\r\n localOperTimeTracker = param != null;\r\n\r\n this.localOperTime = param;\r\n }",
"public void setOperTime(java.lang.String param) {\r\n localOperTimeTracker = param != null;\r\n\r\n this.localOperTime = param;\r\n }",
"public final com.francetelecom.admindm.model.Parameter createCPUTime()\n\t\t\tthrows Fault {\n\t\tcom.francetelecom.admindm.model.Parameter param;\n\t\tparam = data.createOrRetrieveParameter(basePath + \"CPUTime\");\n\t\tparam.setNotification(0);\n\t\tparam.setStorageMode(StorageMode.DM_ONLY);\n\t\tparam.setActiveNotificationDenied(true);\n\t\tparam.setType(ParameterType.UINT);\n\t\tparam.addCheck(new CheckMinimum(0));\n\t\tparam.addCheck(new CheckMaximum(4294967295L));\n\t\tparam.setValue(new Long(0));\n\t\tparam.setWritable(false);\n\t\treturn param;\n\t}",
"public void setTotalNumCpus (double totalNumCpus) \n\t{ \n\t\tfinal Set<Resource> res = n.getResources(RESOURCETYPE_CPU);\n\t\tif (res.size() > 1) throw new Net2PlanException (\"Format error\");\n\t\tif (res.isEmpty()) \n\t\t\tn.getNetPlan().addResource(RESOURCETYPE_CPU, RESOURCETYPE_CPU, Optional.of(n), totalNumCpus, RESOURCETYPE_CPU, new HashMap<> (), 0.0, null);\n\t\telse \n\t\t\tres.iterator().next().setCapacity(totalNumCpus, new HashMap<> ());\n\t}",
"public void startTiming() {\n elapsedTime = 0;\n startTime = System.currentTimeMillis();\n }",
"public void setCPUmark(String CPUmark)\n {\n\t CPUmark = \"o\";\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setPerformanceTime(String ticketTime)\r\n {\r\n performanceTime = ticketTime;\r\n }",
"public void setREQ_START_TIME(java.sql.Time value)\n {\n if ((__REQ_START_TIME == null) != (value == null) || (value != null && ! value.equals(__REQ_START_TIME)))\n {\n _isDirty = true;\n }\n __REQ_START_TIME = value;\n }",
"public Float getUsedtime() {\n return usedtime;\n }",
"@Override\n\tpublic void setStartTime(float t) \n\t{\n\t\t_tbeg = t;\n\t}",
"public int getWorkRequired() {\n return time;\n }",
"public void IncTimeInProc() {\n this.TimeInProc++;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public static long getCpuTime () {\n\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported()?\n bean.getCurrentThreadCpuTime(): 0L;\n }",
"public void setStartTime(java.lang.Long value) {\n this.start_time = value;\n }",
"public void setStartTime(long ts) {\n\t\tthis.startTime = ts;\t\t\n\t}",
"public void setTime(long time) {\r\n\t\tthis.time = time;\r\n\t}",
"@Override\n\tpublic String getCPU() {\n\t\treturn null;\n\t}",
"public long getCpuTime() {\n\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\n\treturn bean.isCurrentThreadCpuTimeSupported() ?\n\t\t\tbean.getCurrentThreadCpuTime() : 0L;\n\t\n}",
"public void setCPUCore(CPUCore cpuCore) {\n this.cpuCore = cpuCore;\n }",
"public void setTime(long time) {\r\n this.time = time;\r\n }",
"public double getCpuTimeSec() {\n\treturn getCpuTime() / Math.pow(10, 9);\t\t\n}",
"public void setStartTime(Integer startTime) {\n this.startTime = startTime;\n }",
"void setCurrentTime(long currentTime);",
"void timeSet(Integer timeOpen, Integer timeWork){\n\t\tdaysUntilStarts = timeOpen;\n\t\tdaysToRun = timeWork;\n\t}",
"public void setTimeStart(int timeStart) {\r\n this.timeStart = timeStart;\r\n }",
"public static void startTimeMeasure() {\n \tstartTime = System.nanoTime();\n }",
"private void scheduleCPU() {\n\t\ttry {\t\t\t\n\t\t\t//cpu.scheduleCPU();// set the running and computing of the CPU\t\t\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tthreadRun = false;\n\t\t\tneedReset = true;\n\t\t\ttimer.stop();\n\t\t\tcpu.PC=(cpu.PC-1);\n\t\t\tupdateGUI();\n\t\t\tupdateConsole(e.toString());\n\t\t}\n\t\tuartDlg.checkChange(cpu);\n\t}",
"public void setTime(long time) {\n this.time = time;\n }",
"public static long getCpuTime( ) {\n\n ThreadMXBean bean = ManagementFactory.getThreadMXBean( );\n\n return bean.isCurrentThreadCpuTimeSupported( ) ?\n\n bean.getCurrentThreadCpuTime( ) : 0L;\n\n }",
"public void setStart_time(long start_time) {\n this.start_time = start_time;\n }",
"public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}",
"public void setStartTime(long milliseconds) {\r\n\t\tthis.startTime = milliseconds;\r\n\t}",
"public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}",
"public abstract void setStartTime(Date startTime);",
"public void setTime(long time)\n {\n this.time = time;\n\n }",
"public void setStartTime(Date startTime) {\r\n this.startTime = startTime;\r\n }",
"public static double doCPU_usage() {\n double totalProgramRunTime = endProgramTime - startProgramTime;\n return (processingTimeTotal / totalProgramRunTime) * 100;\n }",
"public void setTime(Time time) {\n this.time = time; // assigns the time argument value to the time attribute\n }",
"public static long getCpuTime( ) {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean( );\n return bean.isCurrentThreadCpuTimeSupported( ) ?\n bean.getCurrentThreadCpuTime( ) : 0L;\n }",
"public void setTime(){\n \tDatabaseManager.getDBM().setLockedTime(cal); \n }",
"public void setWorktime(WorkTime worktime) {\r\n this.worktime = worktime;\r\n }",
"@Override\n\tpublic void setUsedMemory(String usedMemory) {\n\t\tmodel.setUsedMemory(usedMemory);\n\t}",
"public void setCpus(Integer cpusIn) {\n cpus = cpusIn;\n }",
"public void Start(long startTime){\n // Your code here\n this.startTime = startTime;\n Thread t = new Thread(this);\n t.start();\n //run();\n }",
"public void setCurrentTime(long currentTime) {\n this.currentTime = currentTime;\n }",
"public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }",
"public void setStarttime(Date starttime) {\n this.starttime = starttime;\n }",
"abstract public void setLoadingTime(long time);",
"public void setStartTime( Date startTime ) {\n this.startTime = startTime;\n }",
"public long getCurrentThreadCpuTime() {\t\t\t\t\t\t//Total CPU time usage\n\t\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\n\t\treturn bean.isCurrentThreadCpuTimeSupported() ? bean.getCurrentThreadCpuTime() : -1L;\n\t}",
"public double CPUServiceTime()\r\n\t{\r\n\t\treturn Math.random()* (30.0 - 10.0) + 10.0;\r\n\t}",
"public void setUseTimings(boolean useTimings)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(USETIMINGS$22);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(USETIMINGS$22);\n }\n target.setBooleanValue(useTimings);\n }\n }",
"public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }",
"public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }",
"public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }",
"public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }",
"public void setTime(double time) {_time = time;}",
"public void setTime(float time) {\n this.time = time;\n }",
"public void takeOver(MapElement elt) {\r\n this.startCpuTime = elt.startCpuTime;\r\n this.startSystemTime = elt.startSystemTime;\r\n }"
] |
[
"0.7117351",
"0.6846629",
"0.68015903",
"0.6560292",
"0.6499962",
"0.6233231",
"0.61537737",
"0.6099088",
"0.6073904",
"0.6062986",
"0.5960271",
"0.5930861",
"0.5886309",
"0.58452487",
"0.5833385",
"0.58033824",
"0.58003044",
"0.5760923",
"0.5738479",
"0.5710771",
"0.56639856",
"0.56401354",
"0.5614434",
"0.5591571",
"0.55777335",
"0.55213827",
"0.55093706",
"0.5481933",
"0.5473759",
"0.54549503",
"0.54518175",
"0.54507726",
"0.5446485",
"0.544427",
"0.54247355",
"0.54247355",
"0.54226476",
"0.5414683",
"0.54051703",
"0.5403786",
"0.5402191",
"0.5402191",
"0.5402191",
"0.5389707",
"0.53867775",
"0.53857696",
"0.5376476",
"0.5367079",
"0.53664297",
"0.5359614",
"0.5359614",
"0.5359614",
"0.5359614",
"0.5343115",
"0.5342435",
"0.5337904",
"0.5327581",
"0.5317565",
"0.53032094",
"0.53023326",
"0.5296455",
"0.5294357",
"0.52925426",
"0.52795875",
"0.5276861",
"0.52630556",
"0.52608705",
"0.52561134",
"0.52547085",
"0.52503395",
"0.52492195",
"0.52454823",
"0.52427846",
"0.52369446",
"0.5235318",
"0.5228582",
"0.52244264",
"0.5224025",
"0.5223641",
"0.5222928",
"0.52217203",
"0.5219808",
"0.52142817",
"0.5213343",
"0.5208306",
"0.51995116",
"0.5195218",
"0.5195218",
"0.51818734",
"0.51761144",
"0.51614547",
"0.5157966",
"0.5153142",
"0.5139566",
"0.5139566",
"0.5139566",
"0.5139566",
"0.5134584",
"0.51344013",
"0.513387"
] |
0.7819563
|
0
|
Sets the used memory of this job.
|
@Override
public void setUsedMemory(String usedMemory) {
model.setUsedMemory(usedMemory);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void setMemorySize() { }",
"public void setUsedSpace(Long usedSpace) {\n this.usedSpace = usedSpace;\n }",
"public JobBuilder memoryPerNode(String memoryPerNode) {\r\n job.setMemoryPerNode(memoryPerNode);\r\n return this;\r\n }",
"public void setMemory(int systemMemorySize)\n\t{\n\t\tmemorySize = systemMemorySize;\n\t}",
"public void setUsed(Long used) {\r\n this.used = used;\r\n }",
"private void setMemory() {\n\t\tlong allMemory = MemoryManager.getPhoneTotalRamMemory();\n\t\tlong freeMemory = MemoryManager.getPhoneFreeRamMemory(this);\n\t\tlong usedMemory = allMemory - freeMemory;\n\t\tint angle = (int) (usedMemory*360/allMemory);\n\t\tclearView.setAngleWithAnim(angle);\n\t}",
"public void setMemorySize(Integer memorySize) {\n this.MemorySize = memorySize;\n }",
"public void setMemorySize(Integer memorySize) {\n this.memorySize = memorySize;\n }",
"public synchronized void updateMemory(){\n \tint memory = Math.round(System.getRuntime().totalMemory()/System.getRuntime().freeMemory());\n \tstore(new DisplayableData(\"memory\", \"M\"+memory+\"%\", memory));\n }",
"public final void setAllocationSize(long allocSize) {\n m_allocSize = allocSize;\n }",
"public void updateUsedStorage(long consumedStorage) {\n this.usedStorage = consumedStorage;\n }",
"public Builder setTotalFreeSpaceInBytes(long value) {\n \n totalFreeSpaceInBytes_ = value;\n onChanged();\n return this;\n }",
"public Builder setTotalFreeSpaceInBytes(long value) {\n \n totalFreeSpaceInBytes_ = value;\n onChanged();\n return this;\n }",
"public void setMemUsedMax(long memUsedMax) {\n this.memUsedMax = memUsedMax;\n }",
"public void setSize(long value) {\n this.size = value;\n }",
"public void setMemory(int nodeLocation) {\n\t\tmemory.add(nodeLocation);\n\t}",
"public void setLocalSize(int size);",
"public void setMemUsedAvg(long memUsedAvg) {\n this.memUsedAvg = memUsedAvg;\n }",
"public synchronized void updateUsedBytes(long usedBytes) {\n mUsedBytes = usedBytes;\n }",
"public void setTotalRamGB (double totalRamGB) \n\t{ \n\t\tfinal Set<Resource> res = n.getResources(RESOURCETYPE_RAM);\n\t\tif (res.size() > 1) throw new Net2PlanException (\"Format error\");\n\t\tif (res.isEmpty()) \n\t\t\tres.add(n.getNetPlan().addResource(RESOURCETYPE_RAM, RESOURCETYPE_RAM, Optional.of(n), totalRamGB, \"GB\", new HashMap<> (), 0.0, null));\n\t\telse \n\t\t\tres.iterator().next().setCapacity(totalRamGB, new HashMap<> ());\n\t}",
"public DataLoadingRequestBuilder setMemoryMB(final int memoryMB) {\n this.memoryMB = memoryMB;\n return this;\n }",
"public void setMemory(ArrayList<Integer> oldList) {\n\t\tthis.memory = oldList;\n\t}",
"public void setMaxMemoryCacheSize(int val) {\n this.mMaxMemoryCacheSize = val;\n }",
"public Memory(boolean useGUI) {\n m_UseGUI = useGUI;\n m_Runtime = Runtime.getRuntime();\n m_Max = m_Runtime.maxMemory();\n m_Total = m_Runtime.totalMemory();\n }",
"private void resetBytesFree()\r\n {\r\n this.bytesFree.set(0);\r\n }",
"@Override\n\tpublic void setRam() {\n\t\tcom.setRam(\"16g\");\n\t}",
"public static void setTestAvailableOffHeapMemory(final String newTestAvailableOffHeapMemory) {\n testAvailableOffHeapMemory = newTestAvailableOffHeapMemory;\n }",
"public void setMemoryService(MemoryService memoryService) {\n\t\tthis.memoryService = memoryService;\n\t}",
"public abstract long estimateMemorySize();",
"public TransactionBuilder setCacheSize(long size);",
"@Override\n\tpublic void setUsedCpuTime(String usedCpuTime) {\n\t\tmodel.setUsedCpuTime(usedCpuTime);\n\t}",
"@Override\n public long ramBytesUsed() {\n ensureOpen();\n return sizeInBytes.get();\n }",
"public void setUsed()\n\t{\n\t\tm_justReset = false;\n\t}",
"static private void inputMemorySize(System_Y3872052 system) {\n\t\tint memorySize = Integer.parseInt(getInputData(\"Please provide the memory size, in MB\"));\n\t\tsystem.setMemory(memorySize);\n\t}",
"public void setUsed() {\n used = true;\n }",
"public MicrosoftGraphQuota withUsed(Long used) {\n this.used = used;\n return this;\n }",
"public void setCapacity(Long capacity) {\n this.capacity = capacity;\n }",
"public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}",
"@Override\n public int getUsedSize() {\n return usedSize;\n }",
"public void testPhysicalMemoryLessThanJvmAllocation() {\n String jvmOptions = \"-Xmx1024M -XX:MaxPermSize=128M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setPhysicalMemory(1207959551);\n jvmRun.doAnalysis();\n Assert.assertTrue(Analysis.ERROR_PHYSICAL_MEMORY + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_PHYSICAL_MEMORY));\n }",
"public Long getUsedSpace() {\n return usedSpace;\n }",
"public void setSize(TSizeInBytes size) {\n\n\t\tthis.size = size;\n\t}",
"public static void setDiskCacheSize(long size) {\n sDiskCacheSize = size;\n }",
"public void setCapacity(int value) {\n this.capacity = value;\n }",
"WriterOptions memory(MemoryManager value) {\n memoryManagerValue = value;\n return this;\n }",
"public void setMemoryEntries(MemoryEntry[] inMemory);",
"public void setCapacity(int capacity) \n {\n this.capacity = capacity;\n }",
"public com.autodesk.ws.avro.Call.Builder setObjectSize(java.lang.Long value) {\n validate(fields()[6], value);\n this.object_size = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"public final void setFontSize(final int fontSize) {\n if (this.fontSize != fontSize) {\n this.fontSize = fontSize;\n flush();\n }\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.965 -0500\", hash_original_method = \"B06B3FDC2D2CDF223C79F9432CF6B221\", hash_generated_method = \"EC13B61AE91A640A596BB8C3880035C6\")\n \n public void setCacheSize(int bytes){\n \t//Formerly a native method\n \taddTaint(bytes);\n }",
"public EventMapper setCapacity(final Pallet pallet, final double weight) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putCapacity(pallet, weight);\n\t\treturn this;\n\t}",
"public void setUsed(){\n\t\talreadyUsed = true;\n\t}",
"private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}",
"public void setCapacity(int capacity) {\r\n\r\n this.capacity = capacity;\r\n }",
"public void testPhysicalMemoryEqualJvmAllocation() {\n String jvmOptions = \"-Xmx1024M -XX:MaxPermSize=128M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setPhysicalMemory(1207959552);\n jvmRun.doAnalysis();\n Assert.assertFalse(Analysis.ERROR_PHYSICAL_MEMORY + \" analysis incorrectly identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_PHYSICAL_MEMORY));\n }",
"public void setConsumedCapacity(ConsumedCapacity consumedCapacity) {\n this.consumedCapacity = consumedCapacity;\n }",
"public static void initializeMetrics()\n {\n // Get the Java runtime\n Runtime runtime = Runtime.getRuntime();\n // Run the garbage collector\n runtime.gc();\n \tstartingMemory = runtime.totalMemory() - runtime.freeMemory();\n }",
"public void sizeHasBeenSet() {\n isSizeSet = true;\n }",
"public void setTotalStorage(long totalStorage) {\n this.totalStorage = totalStorage;\n }",
"@Override\n\tpublic String getUsedMemory() {\n\t\treturn model.getUsedMemory();\n\t}",
"public void setAllocationSize(long allocSize) {\n \t\n \t// Check if the allocation size has changed\n \t\n \tif ( getAllocationSize() != allocSize) {\n \t\t\n \t\t// Update the allocation size\n \t\t\n \t\tsuper.setAllocationSize(allocSize);\n \t\t\n \t\t// Queue a low priority state update\n \t\t\n \t\tqueueLowPriorityUpdate( UpdateAllocSize);\n \t}\n }",
"public void setCapacity(int capacity) {\r\n this.capacity = capacity;\r\n }",
"public long free(long size);",
"private void updateMemInfo() {\n\t\tproNum = getRunningNum();\r\n\r\n\t\ttv_pronum.setText(\"进程总数:\" + proNum);\r\n\r\n\t\ttv_mem.setText(\"剩余内存:\" + getRomAvailaleSize());\r\n\t}",
"public void setOccupiedBy(Worker occupiedBy) {\r\n this.occupiedBy = occupiedBy;\r\n }",
"public void setConsumedCapacityUnits(Double consumedCapacityUnits) {\n this.consumedCapacityUnits = consumedCapacityUnits;\n }",
"public MemoryCache() {\n\t\t// use 25% of available heap size\n\t\tsetLimit(Runtime.getRuntime().maxMemory() / 10);\n\t}",
"public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }",
"public static void initializeMemory(){\n\t\tif(memory == null){\n\t\t\tmemory = new TreeMap<String,String>();\n\t\t\tfor(int i=0;i<2048;i++){\n\t\t\t\tmemory.put(Utility.decimalToHex(i, 3), null);\n\t\t\t}\n\t\t\tmemory_fmbv = new int[256];\n\t\t\tfor(int i:memory_fmbv){\n\t\t\t\tmemory_fmbv[i] = 0;\n\t\t\t}\n\t\t}\n\t\tif(diskJobStorage == null){\n\t\t\tdiskJobStorage = new TreeMap<String,DiskSMT>();\n\t\t}\n\t}",
"private void clearMemory() {\n\t\tRunningAppMgr.getInstance(this).killAll();\n\t\tsetMemory();\n\t}",
"public void setFreeTimes(Integer freeTimes) {\r\n this.freeTimes = freeTimes;\r\n }",
"public void setProcessedSizeBytes(Long processedSizeBytes) {\n this.processedSizeBytes = processedSizeBytes;\n }",
"public void addMemory(T o) {\n try {\n this.memoryQueue.put(o);\n } catch (InterruptedException e) {\n Log.msg(LogType.MANDATORY, e.getMessage());\n }\n }",
"public void setSize(int value) {\n\t\tthis.size = value;\n\t}",
"@Override\n\tpublic void setCacheSize(long bps) {\n\t\t\n\t}",
"public void setCapacity(int capacity)\n {\n Validate.isTrue(capacity > 0, \"Capacity must be > 0\");\n capacity_ = capacity; \n }",
"public void setCapacity(int capacity) {\n this.capacity = capacity;\n }",
"@Override\n public long ramBytesUsed() {\n return BASE_RAM_BYTES_USED;\n }",
"public void set_size(int s);",
"public void freeSpace(long space)\n {\n _spaceMonitor.freeSpace(space);\n }",
"public void setObjectSize(java.lang.Long value) {\n this.object_size = value;\n }",
"private long getSystemMemoryInGB() {\n long memorySize = ((com.sun.management.OperatingSystemMXBean) ManagementFactory\n .getOperatingSystemMXBean()).getTotalPhysicalMemorySize();\n return memorySize / ONE_BILLION;\n }",
"public int getMemory()\n\t{\n\t\treturn memorySize;\n\t}",
"Update withDiskSizeGB(Integer diskSizeGB);",
"public void setCacheSize(int size) {\n\t\t_cacheSize = size;\n\t}",
"public Builder setAvailableCapacity(int value) {\n \n availableCapacity_ = value;\n onChanged();\n return this;\n }",
"public void autoSize() {\n\t\t//no op\n\t}",
"public void setCapacity( int space ) {\n\t if (space <= length) return;\n\t int newLength = resize.computeResize( length, space );\n\t \n if (newLength != length) {\n list = (newLength == 0) ? null : makeList( newLength );\n }\n\t}",
"@Override\n\tpublic long getUsedSpace()\n\t{\n\t\treturn 0;\n\t}",
"public < T > void setMemory ( MemoryKey < T > memoryKey , T memoryValue ) {\n\t\texecute ( handle -> handle.setMemory ( memoryKey , memoryValue ) );\n\t}",
"void setMaximumCacheSize(int maximumCacheSize);",
"public void setFontSize(int fontSize)\r\n {\r\n myFontSize = fontSize;\r\n }",
"public void setCapacity(final int capacity) {\n this.capacity = capacity;\n }",
"public Builder clearTotalFreeSpaceInBytes() {\n \n totalFreeSpaceInBytes_ = 0L;\n onChanged();\n return this;\n }",
"public Builder clearTotalFreeSpaceInBytes() {\n \n totalFreeSpaceInBytes_ = 0L;\n onChanged();\n return this;\n }",
"public void setFree (int reg) {\n\t\ttemporary[reg].clear();\n\t}",
"public void setUsedLimit(float value) {\n this.usedLimit = value;\n }",
"public void setCapacity(double capacity) {\n\t\tthis.capacity = capacity;\n\t}",
"void setBufferSize(int bufferSize);",
"@Override\n public void modify( MemoryGroupByMeta someMeta ) {\n someMeta.allocate( 5, 5 );\n }"
] |
[
"0.7147148",
"0.67998874",
"0.63539255",
"0.628161",
"0.61815935",
"0.608494",
"0.6032323",
"0.59989667",
"0.5919539",
"0.5829622",
"0.5778266",
"0.5728846",
"0.5728846",
"0.56645924",
"0.5643626",
"0.55945593",
"0.5587189",
"0.5556018",
"0.5553009",
"0.55528635",
"0.54785585",
"0.54323083",
"0.53849316",
"0.5362498",
"0.53196144",
"0.53164244",
"0.52992916",
"0.52924776",
"0.5243372",
"0.5230503",
"0.5228622",
"0.52172613",
"0.521209",
"0.51953167",
"0.5192468",
"0.51917",
"0.5172537",
"0.51625896",
"0.5148255",
"0.51414305",
"0.51411355",
"0.5123806",
"0.5123695",
"0.50840247",
"0.5078792",
"0.5071643",
"0.50692123",
"0.50596553",
"0.505079",
"0.50424004",
"0.5042069",
"0.5037341",
"0.5032221",
"0.5030761",
"0.50285566",
"0.50198394",
"0.50173354",
"0.5016838",
"0.5008214",
"0.5000636",
"0.49985975",
"0.4984682",
"0.49602425",
"0.49582803",
"0.49556673",
"0.49526832",
"0.49485508",
"0.49456516",
"0.4934423",
"0.4916909",
"0.49069816",
"0.49029037",
"0.49028116",
"0.49026614",
"0.48810226",
"0.48708105",
"0.487063",
"0.4870219",
"0.4865638",
"0.48616752",
"0.48614603",
"0.48553208",
"0.48524794",
"0.48517975",
"0.48488212",
"0.48427984",
"0.48352924",
"0.48342258",
"0.48336262",
"0.48269224",
"0.4813567",
"0.48112997",
"0.4808364",
"0.47951645",
"0.47951645",
"0.47946495",
"0.47908166",
"0.47838506",
"0.47787628",
"0.47780403"
] |
0.6762688
|
2
|
Sets the used walltime of this job.
|
@Override
public void setUsedWalltime(String usedWalltime) {
model.setUsedWalltime(usedWalltime);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void setWallTime(String wallTime) {\n\t\tmodel.setWallTime(wallTime);\n\t}",
"public void setWorkElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(WORKELAPSED_PROP.get(), value);\n }",
"public void setWorkElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(WORKELAPSED_PROP.get(), value);\n }",
"@Override\n\tpublic void setUsedCpuTime(String usedCpuTime) {\n\t\tmodel.setUsedCpuTime(usedCpuTime);\n\t}",
"public void setUsedtime(Float usedtime) {\n this.usedtime = usedtime;\n }",
"public void setLastUse() {\n\t\t_lastused = System.currentTimeMillis();\n\t}",
"public void setTime(){\n Date currentDate = new Date();\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putLong(\"WAIT_TIME\", currentDate.getTime() + 1800000); //30 min\n editor.commit();\n }",
"@Override\n\tpublic String getUsedWalltime() {\n\t\treturn model.getUsedWalltime();\n\t}",
"public void setTime(){\n \tDatabaseManager.getDBM().setLockedTime(cal); \n }",
"public void setStartTime(long value) {\r\n this.startTime = value;\r\n }",
"public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }",
"protected void writeWallTime(Writer wr) throws IOException {\n\t\tObject walltime = getSpec().getAttribute(\"maxwalltime\");\n\t\tif (walltime != null) {\n\t\t\twr.write(\"#SBATCH --time=\"\n\t\t\t\t\t+ WallTime.normalize(walltime.toString(), \"pbs-native\")\n\t\t\t\t\t+ '\\n');\n\t\t}\n\t}",
"public void setUsed(Long used) {\r\n this.used = used;\r\n }",
"public void setStartTime() {\r\n startTime = System.currentTimeMillis();\r\n }",
"public void setShRunAtTime(String v) {\n\n\t\tshRunAtTime = v;\n\n\t}",
"public void setTimeLimit(long value) {\n\t\ttimeLimit = value;\n\t}",
"public void setLastUsed(Date lastUsed) {\r\n\t\tthis.lastUsed = lastUsed;\r\n\t}",
"public void setStartTime(double startTime)\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_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTTIME$22);\r\n }\r\n target.setDoubleValue(startTime);\r\n }\r\n }",
"public void setTimes(long startCpuTime, long startSystemTime) {\r\n this.startCpuTime = startCpuTime;\r\n this.startSystemTime = startSystemTime;\r\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void xsetStartTime(org.landxml.schema.landXML11.GPSTime startTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.GPSTime target = null;\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().find_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().add_attribute_user(STARTTIME$22);\r\n }\r\n target.set(startTime);\r\n }\r\n }",
"public void setWorktime(WorkTime worktime) {\r\n this.worktime = worktime;\r\n }",
"void setLastUpdatedTime();",
"public void setStartTime(Long startTime) {\n this.startTime = startTime;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setUseTimings(boolean useTimings)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(USETIMINGS$22);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(USETIMINGS$22);\n }\n target.setBooleanValue(useTimings);\n }\n }",
"public void setActTime(java.lang.String param) {\r\n localActTimeTracker = param != null;\r\n\r\n this.localActTime = param;\r\n }",
"public void setStartTime(long ts) {\n\t\tthis.startTime = ts;\t\t\n\t}",
"public void setGameTime() {\n\t\tgameTime = new Date();\n\t}",
"public void setLastUsed(Object object) {\n if (!trackLastUsed) return;\n Object ob = null;\n try {\n ob = factory.translateObject(object);\n } catch (Exception e) {\n throw new IllegalArgumentException(\"Pool \" + getName() + \" does not recognize object for last used time: \" + object);\n }\n ObjectRecord rec = ob == null ? null : (ObjectRecord) objects.get(ob);\n if (rec == null)\n throw new IllegalArgumentException(\"Pool \" + getName() + \" does not recognize object for last used time: \" + object);\n if (rec.isInUse())\n rec.setLastUsed();\n else\n throw new IllegalStateException(\"Cannot set last updated time for an object that's not in use!\");\n }",
"void setTimeInForce(TimeInForce inTimeInForce);",
"public void setTime(long time) {\r\n\t\tthis.time = time;\r\n\t}",
"private void setTime(long value) {\n bitField0_ |= 0x00000002;\n time_ = value;\n }",
"public void set(final long timeValue) {\n stamp = timeValue;\n }",
"public void setStartTime(long startTime) {\n\t\tthis.startTime = startTime;\n\t}",
"public void setTime(long time) {\r\n this.time = time;\r\n }",
"public void setTime(long time)\n {\n this.time = time;\n\n }",
"public void setLastSyncStepsTime(long j) {\n ((SharedPreferences) this.fitClientStore.get()).edit().putLong(GoogleFitConstants.SharedPreferences.LAST_SYNC_TIME_STEPS, j).apply();\n }",
"public void setCPUTime() {\r\n\t\t\tthis.CPUTime = 0;\r\n\t\t}",
"public void setTime(long time) {\n this.time = time;\n }",
"public com.twc.bigdata.views.avro.viewing_info.Builder setStartTime(java.lang.Long value) {\n validate(fields()[0], value);\n this.start_time = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}",
"void setCurrentTime(long currentTime);",
"public void setStartTime(java.lang.Long value) {\n this.start_time = value;\n }",
"void timeSet(Integer timeOpen, Integer timeWork){\n\t\tdaysUntilStarts = timeOpen;\n\t\tdaysToRun = timeWork;\n\t}",
"public void setTime(long time) {\r\n this.time.setTime(time);\r\n }",
"public void setGameUseTime(Integer gameUseTime) {\n this.gameUseTime = gameUseTime;\n }",
"protected void setupTime() {\n this.start = System.currentTimeMillis();\n }",
"public static void setTime(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tif (!JsonUtils.RUNNING_LOCALLY){\n\t\t\tcal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 4); //account for UTC offset because of lambda\n\t\t}\n\t\tCURRENT_TIME = formatTime(cal.getTime().toString());\n\t}",
"public void setTimeEnd(long te)\n {\n this.timeEnd = (te > 0L)? te : -1L;\n }",
"public void setPerformanceTime(String ticketTime)\r\n {\r\n performanceTime = ticketTime;\r\n }",
"public void setTime(Long time) {\n this.time = time;\n }",
"public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}",
"public void setStartTime(long milliseconds) {\r\n\t\tthis.startTime = milliseconds;\r\n\t}",
"public void setEndTime(long value) {\r\n this.endTime = value;\r\n }",
"public void setBeginTime(String time){beginTime = time;}",
"public abstract void setStartTime(Date startTime);",
"protected void setLastMsTime(long lastMsTime) {\r\n TaskTimeElementDB.lastMsTime = lastMsTime;\r\n }",
"public static void set(long time) {\n\t\tWorldTime.absoluteTime = time;\n\t}",
"@Override\r\n\tpublic void setMyTime(MyTime myTime) {\n\t\t\r\n\t}",
"void setStartTime(java.util.Calendar startTime);",
"public void setLastRunHarvest(ScheduledHarvest sh) {\n\n\t\tthis.lastRunHarvest = sh;\n\n\t}",
"public void setTimeStamp(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localTimeStampTracker = true;\r\n } else {\r\n localTimeStampTracker = false;\r\n \r\n }\r\n \r\n this.localTimeStamp=param;\r\n \r\n\r\n }",
"public void setCurrentTime(long currentTime) {\n this.currentTime = currentTime;\n }",
"public void setElapsedMs(long elapsed)\n\t{\n\t\tif (elapsed < 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Elapsed cannot be negative\");\n\t\t}\n\n\t\tif (m_running)\n\t\t{\n\t\t\t//on running clear elapsed and handle everything with mLastElapsed\n\t\t\tlong now = SystemClock.elapsedRealtime();\n\t\t\tm_elapsedMs = 0;\n\t\t\tm_lastMs = now - elapsed; //this causes now elapsed time to elapsed\n\t\t}\n\t\telse\n\t\t{\n\t\t\tm_elapsedMs = elapsed;\n\t\t}\n\t}",
"public void setSleepTime(final long l) {\n if (l <= 0) {\n throw new IllegalArgumentException(\"Sleep Time must be a non-zero positive number\");\n }\n sleepTime = l;\n }",
"@Override\n\tpublic void setStartTime(float t) \n\t{\n\t\t_tbeg = t;\n\t}",
"public void setcurrent_time() {\n\t\tthis.current_time = LocalTime.now();\n\t}",
"void setReportTime(long time);",
"public void setStartTime( Date startTime ) {\n this.startTime = startTime;\n }",
"public final synchronized void resetTime() {\n this.last = System.nanoTime();\n }",
"public void setSettleTime(Date settleTime) {\n this.settleTime = settleTime;\n }",
"public void setTime(Date date) {\r\n\t\tthis.wecker = date;\r\n\t}",
"public void setStartTime(Date startTime) {\r\n this.startTime = startTime;\r\n }",
"public void setOperTime(java.lang.String param) {\r\n localOperTimeTracker = param != null;\r\n\r\n this.localOperTime = param;\r\n }",
"public void setOperTime(java.lang.String param) {\r\n localOperTimeTracker = param != null;\r\n\r\n this.localOperTime = param;\r\n }",
"public void setTime(Time time) {\n this.time = time; // assigns the time argument value to the time attribute\n }",
"public synchronized void resetTime() {\n }",
"public void setLastOneTimeHarvest(ScheduledHarvest sh) {\n\n\t\tthis.lastOneTimeHarvest = sh;\n\n\t}",
"public void xsetUseTimings(org.apache.xmlbeans.XmlBoolean useTimings)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(USETIMINGS$22);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(USETIMINGS$22);\n }\n target.set(useTimings);\n }\n }",
"public static void setLastTimeRun(Context c) {\n\t\tsetLastTimeRun(c, new Date());\n\t}",
"private static void saveThreadLastRunTime() {\n\t\tif (mContext != null) {\n\t\t\tEditor edit = mContext.getSharedPreferences(Defines.SHARED_PREF_NAME, Context.MODE_PRIVATE).edit();\n\t\t\tedit.putLong(Defines.SHARED_PREF_THREAD_LAST_RUN_TIME, DataStore.mThreadLastRunSystemTime);\n\n\t\t\tedit.commit();\n\t\t}\n\t}",
"public void setTime( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), TIME, value);\r\n\t}",
"private void setToday() {\r\n\t\tmTime = new Date().getTime();\r\n\t}",
"public void setREQ_START_TIME(java.sql.Time value)\n {\n if ((__REQ_START_TIME == null) != (value == null) || (value != null && ! value.equals(__REQ_START_TIME)))\n {\n _isDirty = true;\n }\n __REQ_START_TIME = value;\n }",
"public void setWork(Duration work)\r\n {\r\n m_work = work;\r\n }",
"public void setTimestamp() {\n timestamp = System.nanoTime();\n }",
"public void setTimestampUsed(boolean timestamp) {\n if (initialized)\n throw new IllegalStateException(INITIALIZED);\n\n trackLastUsed = timestamp;\n\n if (log.isDebugEnabled())\n log.debug(\"setTimestampUsed(\" + timestamp + \")\");\n }",
"public void setWarehousingtime(Date warehousingtime) {\n this.warehousingtime = warehousingtime;\n }",
"public Builder setSendTime(long value) {\n \n sendTime_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setStartTime(int t) {\n\t\t\n\t}",
"public void setStartTime(Integer startTime) {\n this.startTime = startTime;\n }",
"public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }",
"public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }",
"public void setStartTime(Date startTime) {\n this.startTime = startTime;\n }"
] |
[
"0.6549828",
"0.61582434",
"0.61305094",
"0.6084459",
"0.6014611",
"0.5916012",
"0.5848529",
"0.58442634",
"0.58440053",
"0.5786906",
"0.5724223",
"0.572084",
"0.56823415",
"0.56341755",
"0.55668324",
"0.55487126",
"0.55246025",
"0.54906464",
"0.54797184",
"0.54704434",
"0.54704434",
"0.54704434",
"0.54704434",
"0.54628384",
"0.54278505",
"0.542242",
"0.54179585",
"0.5411555",
"0.5411555",
"0.5411555",
"0.5398824",
"0.53760207",
"0.537164",
"0.5371636",
"0.53714454",
"0.5361212",
"0.5354811",
"0.5312275",
"0.53117704",
"0.5301941",
"0.5300535",
"0.5277917",
"0.5276609",
"0.52706265",
"0.52663267",
"0.52653337",
"0.5251329",
"0.52474856",
"0.5221816",
"0.52129364",
"0.51986504",
"0.51949257",
"0.5194041",
"0.5183371",
"0.5182589",
"0.5179577",
"0.5178191",
"0.51618755",
"0.51464003",
"0.5141954",
"0.51318645",
"0.5127722",
"0.5122072",
"0.512077",
"0.51202255",
"0.5118304",
"0.51178133",
"0.51119936",
"0.51067877",
"0.5098048",
"0.50921196",
"0.5087154",
"0.50800407",
"0.5076922",
"0.5073925",
"0.50727105",
"0.506945",
"0.5066746",
"0.5063302",
"0.50344753",
"0.50344753",
"0.5033052",
"0.5032657",
"0.50320756",
"0.50268894",
"0.5023658",
"0.50227547",
"0.50199026",
"0.5008621",
"0.50034404",
"0.49944007",
"0.49891585",
"0.49884868",
"0.49878034",
"0.4986402",
"0.49843958",
"0.4981913",
"0.4978444",
"0.4978444",
"0.4978444"
] |
0.75912154
|
0
|
Sets the user ID of this job.
|
@Override
public void setUserId(long userId) {
model.setUserId(userId);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}",
"public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}",
"public void setIdUser(int value) {\n this.idUser = value;\n }",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_userSync.setUserId(userId);\n\t}",
"public void setUserid(java.lang.String value) {\n this.userid = value;\n }",
"public void setUserId(long value) {\n this.userId = value;\n }",
"public void setUserId(long value) {\r\n this.userId = value;\r\n }",
"private void setUserId(long value) {\n \n userId_ = value;\n }",
"@Override\n\tpublic void setUserId(long userId);",
"@Override\n\tpublic void setUserId(long userId);",
"private void setUserId(long value) {\n\n userId_ = value;\n }",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_changesetEntry.setUserId(userId);\n\t}",
"public void setId_user(int id_user) {\n this.id_user = id_user;\n }",
"public void setUserId(int value) {\n this.userId = value;\n }",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"public void setId_user(int id_user) {\r\n this.id_user = id_user;\r\n }",
"public void setUserid(Long userid) {\r\n this.userid = userid;\r\n }",
"public void setIduser(int aIduser) {\n iduser = aIduser;\n }",
"private void setUserId(int value) {\n \n userId_ = value;\n }",
"public void setUserId(String value) {\r\n setAttributeInternal(USERID, value);\r\n }",
"void setUserId(Long userId);",
"@Override\n public void setUserId(long userId) {\n _partido.setUserId(userId);\n }",
"public de.hpi.msd.salsa.serde.avro.Edge.Builder setUserId(long value) {\n validate(fields()[0], value);\n this.userId = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_employee.setUserId(userId);\n\t}",
"public void setUserid(Integer userid) {\r\n\t\tthis.userid = userid;\r\n\t}",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_userTracker.setUserId(userId);\n\t}",
"public void setUserid(java.lang.String userid) {\n this.userid = userid;\n }",
"public void setUserID(int value) {\n this.userID = value;\n }",
"public void setUserID(long userID) {\n UserID = userID;\n }",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_esfTournament.setUserId(userId);\n\t}",
"@Override\n\tvoid setId(final UserId userId);",
"public void setUserId(java.lang.Long value) {\n this.userId = value;\n }",
"@Override\n\tpublic void setUserId(String userId) {\n\t\tsuper.setUserId(userId);\n\t}",
"public Builder setUserId(long value) {\n \n userId_ = value;\n onChanged();\n return this;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"public void setUserid(Integer userid) {\n this.userid = userid;\n }",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_scienceApp.setUserId(userId);\n\t}",
"void setUser(User user, int id) {\n this.user = user;\n this.id = id;\n }",
"public synchronized static void setUserId(String userId){\n setUserId(context,userId);\n }",
"void setUserId(int newId) {\r\n\t\t\tuserId = newId;\r\n\t\t}",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_paper.setUserId(userId);\n\t}",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_second.setUserId(userId);\n\t}",
"public void setUserId(int userId) {\n this.userId = userId;\n }",
"public void setUserId(int userId) {\n this.userId = userId;\n }",
"public void setUserId(int userId) {\n this.userId = userId;\n }",
"@Override\n public void setUserId(long userId) {\n _usersCatastropheOrgs.setUserId(userId);\n }",
"public void setUserId(final Long userId) {\n this.userId = userId;\n }",
"public void setUserId(int userId) {\n this.mUserId = userId;\n }",
"public void setUserId(int userId)\r\n\t{\r\n\t\tthis.userId = userId;\r\n\t}",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }",
"public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setUserID(java.lang.String value) {\n validate(fields()[2], value);\n this.userID = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }",
"public org.mddarr.rides.event.dto.AvroRide.Builder setUserid(java.lang.String value) {\n validate(fields()[1], value);\n this.userid = value;\n fieldSetFlags()[1] = true;\n return this;\n }",
"public void setUserId(UUID userId) {\n this.userId = userId;\n }",
"public void setUserId(int userId) {\r\n\t\tthis.userId = userId;\r\n\t}",
"public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }",
"public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }",
"public void setUserID(java.lang.String value) {\n this.userID = value;\n }",
"public void setUserId(Long userId) {\r\n this.userId = userId;\r\n }",
"public void setUserId(Long userId) {\r\n this.userId = userId;\r\n }",
"public void setUserId(Long userId) {\r\n this.userId = userId;\r\n }",
"public void setUserId(int userId) {\n this.mUserId = userId;\n }",
"private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }",
"public void setUser(Long user) {\n this.user = user;\n }",
"public Builder setUserId(long value) {\n copyOnWrite();\n instance.setUserId(value);\n return this;\n }",
"public void setUserId(String id) {\n\t\t_userLoginId = id;\n\t}",
"public void setUserId(Integer userId) {\n this.userId = userId;\n }",
"public void setUserId(Integer userId) {\n this.userId = userId;\n }",
"public void setUserId(Integer userId) {\n this.userId = userId;\n }",
"public void setUserId(Integer userId) {\n this.userId = userId;\n }"
] |
[
"0.7683027",
"0.7592934",
"0.7494575",
"0.7278326",
"0.7264358",
"0.7177693",
"0.7158668",
"0.7138874",
"0.7131839",
"0.7131839",
"0.70696425",
"0.7063194",
"0.7048196",
"0.7047168",
"0.704008",
"0.704008",
"0.704008",
"0.704008",
"0.70139706",
"0.7012581",
"0.70092857",
"0.7005063",
"0.69939256",
"0.6975624",
"0.69497216",
"0.6948758",
"0.6914275",
"0.68975466",
"0.6883292",
"0.6867633",
"0.6857132",
"0.6841366",
"0.6836151",
"0.68219453",
"0.68144596",
"0.6790698",
"0.6781276",
"0.6724276",
"0.6724276",
"0.6724276",
"0.6724276",
"0.6724276",
"0.6724276",
"0.6724276",
"0.6724276",
"0.6724276",
"0.6724276",
"0.6724276",
"0.6724276",
"0.6702439",
"0.6672983",
"0.66709113",
"0.66611516",
"0.66575766",
"0.66481215",
"0.6629446",
"0.6629446",
"0.6629446",
"0.6625039",
"0.66003406",
"0.65877205",
"0.65872794",
"0.6585785",
"0.6585785",
"0.6585785",
"0.6585785",
"0.6585785",
"0.6585785",
"0.6584186",
"0.6584186",
"0.6584186",
"0.6584186",
"0.6584186",
"0.6584186",
"0.6584186",
"0.65810347",
"0.6576728",
"0.6576728",
"0.6576728",
"0.6576728",
"0.6575879",
"0.6561302",
"0.6560616",
"0.6550489",
"0.6550489",
"0.65447235",
"0.6534171",
"0.6534171",
"0.6534171",
"0.6519589",
"0.6510871",
"0.6500855",
"0.6495127",
"0.649322",
"0.64820874",
"0.64820874",
"0.64820874",
"0.64820874"
] |
0.69238317
|
28
|
Sets the user uuid of this job.
|
@Override
public void setUserUuid(String userUuid) {
model.setUserUuid(userUuid);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setUserUuid(String userUuid);",
"public void setUserUuid(String userUuid);",
"public void setUserUuid(String userUuid);",
"public void setUserUuid(String userUuid);",
"@Override\n\tpublic void setUserUuid(String userUuid);",
"@Override\n\tpublic void setUserUuid(String userUuid);",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_employee.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(String userUuid) {\n\t\t_changesetEntry.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_userSync.setUserUuid(userUuid);\n\t}",
"@Override\n public void setUserUuid(java.lang.String userUuid) {\n _partido.setUserUuid(userUuid);\n }",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_esfTournament.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_userTracker.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_second.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_paper.setUserUuid(userUuid);\n\t}",
"@Override\n public void setUserUuid(java.lang.String userUuid) {\n _usersCatastropheOrgs.setUserUuid(userUuid);\n }",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_scienceApp.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_dictData.setUserUuid(userUuid);\n\t}",
"public void setUserId(UUID userId) {\n this.userId = userId;\n }",
"public void setUser_person_uuid(String user_person_uuid) {\n this.user_person_uuid = user_person_uuid;\n }",
"public void setUserId(String value) {\r\n setAttributeInternal(USERID, value);\r\n }",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_userSync.setUserId(userId);\n\t}",
"public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}",
"@Override\n\tpublic void setStatusByUserUuid(String statusByUserUuid) {\n\t\tmodel.setStatusByUserUuid(statusByUserUuid);\n\t}",
"public void setUser(final String user)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n this.logger.trace(\"setting user: \" + user);\n }\n this.user = user;\n }",
"public void setUser(final String user)\n {\n checkImmutable();\n if (this.logger.isTraceEnabled()) {\n this.logger.trace(\"setting user: \" + user);\n }\n this.user = user;\n }",
"public void setUuid(String uuid);",
"public void setUuid(String uuid);",
"public void setUuid(String uuid);",
"public void setUserid(java.lang.String value) {\n this.userid = value;\n }",
"public void setUuid(UUID uuid);",
"public void setUuid_(long uuid_) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt64(__io__address + 0, uuid_);\n\t\t} else {\n\t\t\t__io__block.writeInt64(__io__address + 0, uuid_);\n\t\t}\n\t}",
"public void setUuid(String uuid)\n {\n this.uuid = uuid;\n }",
"public de.hpi.msd.salsa.serde.avro.Edge.Builder setUserId(long value) {\n validate(fields()[0], value);\n this.userId = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"@Override\n\tpublic String getUserUuid() {\n\t\treturn _changesetEntry.getUserUuid();\n\t}",
"@Override\n\tpublic String getUserUuid() {\n\t\treturn model.getUserUuid();\n\t}",
"@Override\n\tpublic String getUserUuid() {\n\t\treturn model.getUserUuid();\n\t}",
"@Override\n\tpublic String getUserUuid() {\n\t\treturn model.getUserUuid();\n\t}",
"public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}",
"public void setIdUser(int value) {\n this.idUser = value;\n }",
"@Override\n\tpublic void setUserId(long userId) {\n\t\t_changesetEntry.setUserId(userId);\n\t}",
"private void setUUID(UUID uuid) {\n this.uuid = uuid;\n }",
"public void setUUID(UUID uuid) {\n this.UUID = uuid.toString();\n }",
"public void setUserSerial(String userSerial) {\n this.userSerial = userSerial;\n }",
"public void setUuid(Integer uuid) {\n this.uuid = uuid;\n }",
"@Override\n\tpublic void setStatusByUserUuid(String statusByUserUuid);",
"public void setUserId(long value) {\n this.userId = value;\n }",
"private void setUserId(long value) {\n \n userId_ = value;\n }",
"@Override\n\tpublic void setUuid(String uuid);",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(java.lang.String uuid) {\n this.uuid = uuid;\n }",
"public void setUserId(long value) {\r\n this.userId = value;\r\n }",
"public void setUser (User user) {\n userId = user.id != null ? user.id : User.getUserId(user.username);\n }",
"@Override\n public void setUserId(long userId) {\n _partido.setUserId(userId);\n }",
"public void setUuid(String Uuid) {\n this.Uuid = Uuid;\n }",
"@Override\n\tpublic void setUserId(long userId);",
"@Override\n\tpublic void setUserId(long userId);",
"public void setUser(Long user) {\n this.user = user;\n }",
"private void setUserId(long value) {\n\n userId_ = value;\n }",
"public synchronized static void setUserId(String userId){\n setUserId(context,userId);\n }",
"public void setUuid(String uuid) {\r\n this.uuid = uuid == null ? null : uuid.trim();\r\n }",
"public void setUuid(String uuid) {\r\n this.uuid = uuid == null ? null : uuid.trim();\r\n }",
"public void setUuid(String uuid) {\r\n this.uuid = uuid == null ? null : uuid.trim();\r\n }",
"public static void setUserForCurrentThread(String user) {\r\n userPerThread.set(user);\r\n }",
"@Override\n\tpublic void setUuid(java.lang.String uuid) {\n\t\t_second.setUuid(uuid);\n\t}",
"@JsonSetter(\"uuid\")\r\n public void setUuid (String value) { \r\n this.uuid = value;\r\n }",
"@Override\n\tpublic void setUserId(String userId) {\n\t\tsuper.setUserId(userId);\n\t}",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"@Override\n\tpublic String getUserUuid();",
"@Override\n\tpublic String getUserUuid();",
"public void setUuid(String _uuid) {\n this._uuid = _uuid;\n }",
"public void setUser(final String user)\n {\n checkImmutable();\n this.user = user;\n }",
"public Builder setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n userId_ = value;\n onChanged();\n return this;\n }",
"public Builder setUserId(\n java.lang.String value) {\n copyOnWrite();\n instance.setUserId(value);\n return this;\n }",
"protected void setUsername(final String user) {\n this.user = user;\n }",
"public void setUserJabberId(Jid userJabberId)\n {\n this.userJabberId = userJabberId;\n }",
"private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }",
"void setUserId(Long userId);",
"@Override\n public void setUuid(java.lang.String uuid) {\n _partido.setUuid(uuid);\n }",
"private void setUserId(int value) {\n \n userId_ = value;\n }",
"@Override\n\tpublic void setUserId(long userId) {\n\t\tmodel.setUserId(userId);\n\t}",
"@Override\n\tpublic void setUserId(long userId) {\n\t\tmodel.setUserId(userId);\n\t}",
"@Override\n\tpublic void setUserId(long userId) {\n\t\tmodel.setUserId(userId);\n\t}",
"public void setLockUser(String lockUser) {\n this.lockUser = lockUser == null ? null : lockUser.trim();\n }",
"@Override\n\tpublic void setUuid(String uuid) {\n\t\tmodel.setUuid(uuid);\n\t}",
"@Override\n\tpublic void setUuid(String uuid) {\n\t\tmodel.setUuid(uuid);\n\t}",
"@Override\n\tpublic void setUuid(String uuid) {\n\t\tmodel.setUuid(uuid);\n\t}",
"public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setUserID(java.lang.String value) {\n validate(fields()[2], value);\n this.userID = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setUserId(String userId) {\n this.standardPairs.put(Parameters.UID, userId);\n }",
"public org.mddarr.rides.event.dto.AvroRide.Builder setUserid(java.lang.String value) {\n validate(fields()[1], value);\n this.userid = value;\n fieldSetFlags()[1] = true;\n return this;\n }",
"public void setUserId(String uid, String first_name, String client_type, String unique_id, String role_id) {\n editor.putString(KEY_USERID, uid);\n editor.putString(FIRST_NAME, first_name);\n editor.putString(KEY_CLIENT_TYPE, client_type);\n editor.putString(KEY_UNIQUE_ID, unique_id);\n editor.putString(KEY_ROLE_ID, role_id);\n editor.commit();\n }",
"public void setUserId(long userId);"
] |
[
"0.75934917",
"0.75934917",
"0.75934917",
"0.75934917",
"0.75112253",
"0.75112253",
"0.7465948",
"0.7427048",
"0.7318441",
"0.7273325",
"0.7164328",
"0.7108201",
"0.71069515",
"0.7057005",
"0.70249754",
"0.68994844",
"0.6747486",
"0.6482689",
"0.6318156",
"0.62632936",
"0.6240654",
"0.6161695",
"0.61379385",
"0.60620123",
"0.60620123",
"0.60488963",
"0.60488963",
"0.60488963",
"0.5975724",
"0.59691817",
"0.59424025",
"0.5940278",
"0.5938899",
"0.5937072",
"0.5936583",
"0.5936583",
"0.5936583",
"0.5929004",
"0.5923299",
"0.5906427",
"0.58866847",
"0.587951",
"0.5870854",
"0.58668786",
"0.58573556",
"0.5853835",
"0.5846708",
"0.5825574",
"0.58234626",
"0.58234626",
"0.58234626",
"0.58234626",
"0.58140415",
"0.58106804",
"0.5807985",
"0.5801028",
"0.5797215",
"0.57957125",
"0.57957125",
"0.5791291",
"0.57692826",
"0.57504535",
"0.57503915",
"0.57503915",
"0.57503915",
"0.5750037",
"0.5747886",
"0.57410425",
"0.57406044",
"0.57320136",
"0.57320136",
"0.57320136",
"0.57320136",
"0.57320136",
"0.5731017",
"0.5731017",
"0.5727497",
"0.57246625",
"0.5719198",
"0.5717838",
"0.5713014",
"0.5709028",
"0.56971943",
"0.5694152",
"0.56866264",
"0.5670365",
"0.56600016",
"0.56600016",
"0.56600016",
"0.56598276",
"0.56519747",
"0.56519747",
"0.56519747",
"0.56448203",
"0.5641491",
"0.56375384",
"0.5624849",
"0.56127745"
] |
0.7436479
|
9
|
Sets the uuid of this job.
|
@Override
public void setUuid(String uuid) {
model.setUuid(uuid);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setUuid(String uuid);",
"public void setUuid(String uuid);",
"public void setUuid(String uuid);",
"@Override\n\tpublic void setUuid(String uuid);",
"public void setUuid(UUID uuid);",
"public void setUuid(String uuid)\n {\n this.uuid = uuid;\n }",
"public void setUUID(UUID uuid) {\n this.UUID = uuid.toString();\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(java.lang.String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(Integer uuid) {\n this.uuid = uuid;\n }",
"private void setUUID(UUID uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid == null ? null : uuid.trim();\n }",
"public void setUuid(String uuid) {\r\n this.uuid = uuid == null ? null : uuid.trim();\r\n }",
"public void setUuid(String uuid) {\r\n this.uuid = uuid == null ? null : uuid.trim();\r\n }",
"public void setUuid(String uuid) {\r\n this.uuid = uuid == null ? null : uuid.trim();\r\n }",
"public void setUuid(String _uuid) {\n this._uuid = _uuid;\n }",
"public void setUuid_(long uuid_) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt64(__io__address + 0, uuid_);\n\t\t} else {\n\t\t\t__io__block.writeInt64(__io__address + 0, uuid_);\n\t\t}\n\t}",
"public void setUuid(String uuid) {\n\t\tthis.uuid = uuid;\n\t}",
"@JsonSetter(\"uuid\")\r\n public void setUuid (String value) { \r\n this.uuid = value;\r\n }",
"@Override\n public void setUuid(java.lang.String uuid) {\n _partido.setUuid(uuid);\n }",
"@Override\n\tpublic void setUuid(java.lang.String uuid) {\n\t\t_second.setUuid(uuid);\n\t}",
"@Override\n\tpublic void setUuid(java.lang.String uuid) {\n\t\t_esfTournament.setUuid(uuid);\n\t}",
"@Override\n\tpublic void setUuid(java.lang.String uuid) {\n\t\t_paper.setUuid(uuid);\n\t}",
"public void setUuid(String Uuid) {\n this.Uuid = Uuid;\n }",
"public void setId(Uuid uuid) {\n\t\t this.id = uuid;;\n\t}",
"public Builder setUUID(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n uUID_ = value;\n onChanged();\n return this;\n }",
"public void setUUID (String UUID)\n\t{\n\t\tset_Value (COLUMNNAME_UUID, UUID);\n\t}",
"public Builder setUuid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uuid_ = value;\n onChanged();\n return this;\n }",
"public Builder setUuid(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n uuid_ = value;\n onChanged();\n return this;\n }",
"public void setUserUuid(String userUuid);",
"public void setUserUuid(String userUuid);",
"public void setUserUuid(String userUuid);",
"public void setUserUuid(String userUuid);",
"public String getUuid() {\r\n return uuid;\r\n }",
"public String getUuid() {\r\n return uuid;\r\n }",
"public String getUuid() {\r\n return uuid;\r\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"public String getUuid() {\n return uuid;\n }",
"@Override\n\tpublic void setUuid(java.lang.String uuid) {\n\t\t_scienceApp.setUuid(uuid);\n\t}",
"public String getUuid() {\n\t\treturn uuid;\n\t}",
"public void setIdByString(String uuid) {\n mId = UUID.fromString(uuid);\n }",
"public String getUuid() {\n return this.uuid;\n }",
"public String getUuid() {\n return _uuid;\n }",
"public String getUuid()\n {\n return this.uuid;\n }",
"@Override\n\tpublic void setUserUuid(String userUuid);",
"@Override\n\tpublic void setUserUuid(String userUuid);",
"public String getUUID() {\n return uuid;\n }",
"@PrePersist\n public void assignUUID() {\n this.uid = UUID.randomUUID();\n }",
"public String getUuid() {\n\t\tif (uuid == null) {\n\t\t\tthis.uuid = getProperty(\"uuid\");\n\t\t}\n\t\treturn uuid;\n\t}",
"public java.lang.String getUuid() {\n return uuid;\n }",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_employee.setUserUuid(userUuid);\n\t}",
"public Integer getUuid() {\n return uuid;\n }",
"protected static void TEST_CHANGE_UUID() {\r\n\t\tUUID = System.getProperty(\"java.io.tmpdir\") + \"/titan_test_\" + UuidUtils.get().getRandomUuid();\r\n\t}",
"public String getUuid() {\n return this.Uuid;\n }",
"public String getId(){\n\t\treturn uuid;\n\t}",
"@Override\n\tpublic void setUserUuid(String userUuid) {\n\t\tmodel.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(String userUuid) {\n\t\tmodel.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(String userUuid) {\n\t\tmodel.setUserUuid(userUuid);\n\t}",
"@JsonGetter(\"uuid\")\r\n public String getUuid ( ) { \r\n return this.uuid;\r\n }",
"public void reFreshUuid() {\n\t\tthis.uuid=Application.getSnowflakeIdWorker().nextId()+\"\";\r\n\t}",
"public UUID getUuid() {\n return uuid;\n }",
"public UUID getUuid() {\n return uuid;\n }",
"SchemaReference setVersionUuid(String uuid);",
"public java.lang.String getUuid() {\n java.lang.Object ref = uuid_;\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 uuid_ = s;\n return s;\n }\n }",
"public java.lang.String getUuid() {\n java.lang.Object ref = uuid_;\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 uuid_ = s;\n return s;\n }\n }",
"@AutoEscape\n\t@Override\n\tpublic String getUuid();",
"@Override\n public void setUserUuid(java.lang.String userUuid) {\n _partido.setUserUuid(userUuid);\n }",
"public BlueMeshServiceBuilder uuid( UUID a_uuid ){\n uuid = a_uuid;\n return this;\n }",
"@Override\n\tpublic String getUuid() {\n\t\treturn null;\n\t}",
"public void setJobId( int jobId ) ;",
"public Builder setJobId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }",
"public com.google.protobuf.ByteString\n getUuidBytes() {\n java.lang.Object ref = uuid_;\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 uuid_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getUuidBytes() {\n java.lang.Object ref = uuid_;\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 uuid_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getUuid() {\n java.lang.Object ref = uuid_;\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 uuid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getUuid() {\n java.lang.Object ref = uuid_;\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 uuid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setAsuid(String asuid);",
"String getUuid();",
"@Override\n\tpublic void setUserUuid(String userUuid) {\n\t\t_changesetEntry.setUserUuid(userUuid);\n\t}",
"public void resetUUID() {\n sp.edit().remove(UUID_SP_KEY).commit();\n }",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_paper.setUserUuid(userUuid);\n\t}",
"public com.google.protobuf.ByteString\n getUuidBytes() {\n java.lang.Object ref = uuid_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n uuid_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getUuidBytes() {\n java.lang.Object ref = uuid_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n uuid_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@AutoEscape\n\tpublic String getUuid();"
] |
[
"0.7469996",
"0.7469996",
"0.7469996",
"0.72754323",
"0.7256502",
"0.7228349",
"0.7181114",
"0.71470124",
"0.71470124",
"0.71470124",
"0.71470124",
"0.7106433",
"0.70680165",
"0.7038055",
"0.7016092",
"0.7016092",
"0.7016092",
"0.7016092",
"0.7016092",
"0.70100975",
"0.70100975",
"0.70100975",
"0.69716877",
"0.69275916",
"0.69147253",
"0.6904348",
"0.68801486",
"0.6789949",
"0.6659483",
"0.65779144",
"0.651574",
"0.64532435",
"0.62985146",
"0.62485933",
"0.619787",
"0.619787",
"0.6139244",
"0.6139244",
"0.6139244",
"0.6139244",
"0.60695106",
"0.60695106",
"0.60695106",
"0.6020972",
"0.6020972",
"0.6020972",
"0.6020972",
"0.6020972",
"0.6020972",
"0.6020972",
"0.6020972",
"0.6020972",
"0.6020972",
"0.60115105",
"0.6003639",
"0.5929581",
"0.5887176",
"0.5805573",
"0.5781613",
"0.57652533",
"0.57652533",
"0.5705097",
"0.56765777",
"0.5676184",
"0.5625677",
"0.56091976",
"0.56029415",
"0.5574882",
"0.55646414",
"0.5524911",
"0.55142665",
"0.55142665",
"0.55142665",
"0.5450791",
"0.538297",
"0.53827226",
"0.53827226",
"0.537733",
"0.5372071",
"0.5372071",
"0.53714603",
"0.5368052",
"0.5367914",
"0.53666353",
"0.5364865",
"0.5359648",
"0.5356806",
"0.5356806",
"0.53156734",
"0.53156734",
"0.5290952",
"0.52846634",
"0.5283012",
"0.5276147",
"0.52652556",
"0.52624196",
"0.52624196",
"0.5243033"
] |
0.69029546
|
28
|
Sets the wall time of this job.
|
@Override
public void setWallTime(String wallTime) {
model.setWallTime(wallTime);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected void writeWallTime(Writer wr) throws IOException {\n\t\tObject walltime = getSpec().getAttribute(\"maxwalltime\");\n\t\tif (walltime != null) {\n\t\t\twr.write(\"#SBATCH --time=\"\n\t\t\t\t\t+ WallTime.normalize(walltime.toString(), \"pbs-native\")\n\t\t\t\t\t+ '\\n');\n\t\t}\n\t}",
"public void setTime(){\n \tDatabaseManager.getDBM().setLockedTime(cal); \n }",
"@Override\n\tpublic void setUsedWalltime(String usedWalltime) {\n\t\tmodel.setUsedWalltime(usedWalltime);\n\t}",
"public void setTime(){\n Date currentDate = new Date();\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putLong(\"WAIT_TIME\", currentDate.getTime() + 1800000); //30 min\n editor.commit();\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n bitField0_ |= 0x00000002;\n time_ = value;\n }",
"public void setTime(long time) {\r\n\t\tthis.time = time;\r\n\t}",
"public Builder setTime(long value) {\n bitField0_ |= 0x00000008;\n time_ = value;\n onChanged();\n return this;\n }",
"public void setTime(long time) {\r\n this.time.setTime(time);\r\n }",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"public void setTime(long time) {\n this.time = time;\n }",
"public void setTime(long time) {\r\n this.time = time;\r\n }",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setTime(long time)\n {\n this.time = time;\n\n }",
"public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }",
"public void setTime(Long time) {\n this.time = time;\n }",
"public static void set(long time) {\n\t\tWorldTime.absoluteTime = time;\n\t}",
"public void setWorkElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(WORKELAPSED_PROP.get(), value);\n }",
"public void setStartTime(long value) {\r\n this.startTime = value;\r\n }",
"public static void setTime(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tif (!JsonUtils.RUNNING_LOCALLY){\n\t\t\tcal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 4); //account for UTC offset because of lambda\n\t\t}\n\t\tCURRENT_TIME = formatTime(cal.getTime().toString());\n\t}",
"public void setWorkElapsed(java.lang.Long value) {\n __getInternalInterface().setFieldValue(WORKELAPSED_PROP.get(), value);\n }",
"public void set(final long timeValue) {\n stamp = timeValue;\n }",
"public void setTime()\n \t{\n \t\tif( !paused )\n \t\t{\n\t \t\tlong playingTime = System.currentTimeMillis() - startTime;\n\t \t\tlong timeLeft = 180000 - playingTime;\n\t \t\tlong min = timeLeft / 60000;\n\t \t\tlong sec = ( timeLeft - ( min * 60000 ) ) / 1000L;\n\t \t\t\n\t \t\tif( timeLeft < 0 )\n\t \t\t{\n\t \t\t\t//Game over!\n\t \t\t\tgameOver();\n\t \t\t\treturn;\n\t \t\t}\n\t \t\t\n\t \t\tString s = \"Time: \";\n\t \t\ts += Integer.toString( (int)min ) + \":\";\n\t \t\tif( sec >= 10 )\n\t \t\t\ts += Integer.toString( (int)sec );\n\t \t\telse\n\t \t\t\ts += \"0\" + Integer.toString( (int)sec );\n\t \t\t\n\t \t\ttimerLabel.setText( s );\n \t\t}\n \t}",
"public void setTimeLimit(long value) {\n\t\ttimeLimit = value;\n\t}",
"public Builder setTime(long value) {\n\n time_ = value;\n onChanged();\n return this;\n }",
"public void setTime( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), TIME, value);\r\n\t}",
"public void setShRunAtTime(String v) {\n\n\t\tshRunAtTime = v;\n\n\t}",
"public void setSleepTime(final long l) {\n if (l <= 0) {\n throw new IllegalArgumentException(\"Sleep Time must be a non-zero positive number\");\n }\n sleepTime = l;\n }",
"void setLastUpdatedTime();",
"public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }",
"public void setEndTime(long value) {\r\n this.endTime = value;\r\n }",
"public Builder setSendTime(long value) {\n \n sendTime_ = value;\n onChanged();\n return this;\n }",
"public static void setTime( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, TIME, value);\r\n\t}",
"public void setTime ( final Calendar time ) {\n this.time = time;\n }",
"void setReportTime(long time);",
"public long getEndWallClockTime() {\n return endWallClockTime;\n }",
"public void setTime(Date time) {\r\n\t\tthis.time = time;\r\n\t}",
"void setCurrentTime(long currentTime);",
"public void setTime( Date time ) {\n this.time = time;\n }",
"public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}",
"public void setTime(){\r\n \r\n }",
"public void setTime(Time time) {\n this.time = time; // assigns the time argument value to the time attribute\n }",
"public void setTime(int time) {\r\n\t\tthis.time = time;\r\n\t\tupdate();\r\n\t}",
"private void setCronTime(Settings set) {\n CRON_TIME = set.getValue(\"cron.time\");\n }",
"public void setTime(Date time) {\n this.time = new Date(time.getTime());\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(Date time) {\r\n this.time = time;\r\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTime(Date time) {\n this.time = time;\n }",
"public void setTimeUpdate(Date timeUpdate) {\n this.timeUpdate = timeUpdate;\n }",
"public Builder setExecutionTime(long value) {\n bitField0_ |= 0x02000000;\n executionTime_ = value;\n onChanged();\n return this;\n }",
"public void setTime(Date time) {\n\t\tthis.time = time;\n\t}",
"public void setStartTime(double startTime)\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_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTTIME$22);\r\n }\r\n target.setDoubleValue(startTime);\r\n }\r\n }",
"public void setSettleTime(Date settleTime) {\n this.settleTime = settleTime;\n }",
"public void setCurrentTime(long currentTime) {\n this.currentTime = currentTime;\n }",
"public void setStartTime() {\r\n startTime = System.currentTimeMillis();\r\n }",
"void setTime(final int time);",
"@Override\n\tpublic String getWallTime() {\n\t\treturn model.getWallTime();\n\t}",
"@Nonnull\n public final MutableClock setTime(final DateTime otherNow) {\n _now = otherNow.toMutableDateTime();\n return this;\n }",
"public boolean isSetWallTimeLimit() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __WALLTIMELIMIT_ISSET_ID);\n }",
"public boolean isSetWallTimeLimit() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __WALLTIMELIMIT_ISSET_ID);\n }",
"public com.twc.bigdata.views.avro.viewing_info.Builder setStartTime(java.lang.Long value) {\n validate(fields()[0], value);\n this.start_time = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public void setTime(Date date) {\r\n\t\tthis.wecker = date;\r\n\t}",
"public static void setTime(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, TIME, value);\r\n\t}",
"public void setcurrent_time() {\n\t\tthis.current_time = LocalTime.now();\n\t}",
"public void setTime(long timeMillis) {\n this.timeMillis = timeMillis;\n }",
"public void setTime(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), TIME, value);\r\n\t}",
"public void setGameTime() {\n\t\tgameTime = new Date();\n\t}",
"public void xsetStartTime(org.landxml.schema.landXML11.GPSTime startTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.GPSTime target = null;\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().find_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().add_attribute_user(STARTTIME$22);\r\n }\r\n target.set(startTime);\r\n }\r\n }",
"@Override\r\n\tpublic void setMyTime(MyTime myTime) {\n\t\t\r\n\t}",
"public void setStartTime(long milliseconds) {\r\n\t\tthis.startTime = milliseconds;\r\n\t}",
"public void setBeginTime(String time){beginTime = time;}",
"public void setTime(int time)\n {\n this.time = time;\n start = time;\n end = time;\n }",
"public void setTimeEnd(long te)\n {\n this.timeEnd = (te > 0L)? te : -1L;\n }",
"void setTimeInForce(TimeInForce inTimeInForce);",
"void setInhabitedTime(long ticks);",
"private void setUpdateTriggerTime(int value) {\n bitField0_ |= 0x00000002;\n updateTriggerTime_ = value;\n }",
"public void setStartTime(long ts) {\n\t\tthis.startTime = ts;\t\t\n\t}",
"public void setActTime(java.lang.String param) {\r\n localActTimeTracker = param != null;\r\n\r\n this.localActTime = param;\r\n }",
"public void setWorktime(WorkTime worktime) {\r\n this.worktime = worktime;\r\n }",
"public void setTime(gov.ucore.ucore._2_0.TimeType time)\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.TimeType target = null;\n target = (gov.ucore.ucore._2_0.TimeType)get_store().find_element_user(TIME$2, 0);\n if (target == null)\n {\n target = (gov.ucore.ucore._2_0.TimeType)get_store().add_element_user(TIME$2);\n }\n target.set(time);\n }\n }",
"public void setTime(int time) {\n\t\tthis.time = time;\n\t}",
"public void updateWall(Wall wall) {\n/* 4128 */ if (this.structure != null) {\n/* */ \n/* 4130 */ if (this.watchers != null)\n/* */ {\n/* 4132 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 4136 */ vz.updateWall(this.structure.getWurmId(), wall);\n/* */ }\n/* 4138 */ catch (Exception e) {\n/* */ \n/* 4140 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }\n/* 4144 */ if (this.structure.isFinalized()) {\n/* */ \n/* */ try {\n/* */ \n/* 4148 */ wall.save();\n/* */ }\n/* 4150 */ catch (IOException iox) {\n/* */ \n/* 4152 */ logger.log(Level.WARNING, \"Failed to save structure wall: \" + wall.getId() + '.', iox);\n/* */ } \n/* */ }\n/* */ } \n/* */ }",
"public edu.pa.Rat.Builder setTime(int value) {\n validate(fields()[0], value);\n this.time = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public void setTimeNow(Date timeNow) {\r\n this.timeNow = timeNow;\r\n }",
"public void setLastSyncStepsTime(long j) {\n ((SharedPreferences) this.fitClientStore.get()).edit().putLong(GoogleFitConstants.SharedPreferences.LAST_SYNC_TIME_STEPS, j).apply();\n }"
] |
[
"0.6296953",
"0.61099625",
"0.5890217",
"0.5883053",
"0.58613414",
"0.58613414",
"0.58613414",
"0.58613414",
"0.584596",
"0.58177847",
"0.5788189",
"0.57751405",
"0.57701135",
"0.57701135",
"0.57701135",
"0.57457167",
"0.5744392",
"0.5742918",
"0.5742918",
"0.5742918",
"0.5742918",
"0.5740656",
"0.5740656",
"0.5740656",
"0.57342446",
"0.5723761",
"0.5686354",
"0.56632876",
"0.5660699",
"0.56568885",
"0.5643234",
"0.5639936",
"0.56083924",
"0.55887645",
"0.5586869",
"0.55775815",
"0.5546555",
"0.55362654",
"0.55329835",
"0.5529216",
"0.5515482",
"0.5492915",
"0.54722345",
"0.5469888",
"0.54497963",
"0.54487056",
"0.54486626",
"0.54463965",
"0.5442971",
"0.54403245",
"0.5440021",
"0.5430499",
"0.54263705",
"0.54261446",
"0.54207444",
"0.54074717",
"0.53965807",
"0.53965807",
"0.53965807",
"0.53758883",
"0.53758883",
"0.53758883",
"0.53758883",
"0.5366698",
"0.53438693",
"0.5340486",
"0.5336072",
"0.5332681",
"0.53250325",
"0.5319563",
"0.5317315",
"0.53149945",
"0.53119195",
"0.52995443",
"0.52995443",
"0.52985054",
"0.52968144",
"0.5290253",
"0.5288634",
"0.52836144",
"0.5280918",
"0.52710634",
"0.525867",
"0.5248616",
"0.52476436",
"0.52318037",
"0.52315956",
"0.5229285",
"0.5228187",
"0.5225093",
"0.52151334",
"0.51955086",
"0.5193294",
"0.5187888",
"0.51835483",
"0.51627225",
"0.516192",
"0.51618314",
"0.5154194",
"0.5148894"
] |
0.7450616
|
0
|
Sets the working dir of this job.
|
@Override
public void setWorkingDir(String workingDir) {
model.setWorkingDir(workingDir);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setWorkingDir(File workingDir) {\n this.workingDir = workingDir;\n }",
"public void setWorkingDir(File workingDir) {\n this.workingDir = workingDir;\n }",
"private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}",
"void setWorkingDirectory( String workingDirectory );",
"void setWorkingDirectory(String workingDirectory);",
"public void setWorkingDirectory(File workingDirectory)\r\n\t{\r\n\t\tthis.workingDirectory = workingDirectory;\r\n\t}",
"public void setWorkingDirectory(Directory workingDirectory) {\r\n this.workingDirectory = workingDirectory;\r\n }",
"protected void setWorkingDirectory(File dir) {\n\t\tthis.dir = dir;\n\t}",
"public void setWorking(File working) {\r\n if (working.exists() && !working.isDirectory()) {\r\n throw new BuildException(\"if working folder exists, it must be a directory\");\r\n }\r\n this._working = working;\r\n }",
"public Builder setWorkingDirectory(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n workingDirectory_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic String getWorkingDir() {\n\t\treturn model.getWorkingDir();\n\t}",
"public void setWorkingDirectory(String workingDirectory) {\n\t\tthis.workingDirectory = workingDirectory;\n\t}",
"private void setupWorkingDir(Execute exe) {\r\n if (dir == null) {\r\n dir = getProject().getBaseDir();\r\n }\r\n else if (!dir.exists() || !dir.isDirectory()) {\r\n throw new BuildException(dir.getAbsolutePath() + \" is not a valid directory\", getLocation());\r\n }\r\n exe.setWorkingDirectory(dir);\r\n }",
"public File getWorkingDir() {\n return workingDir;\n }",
"public File getWorkingDir() {\n return workingDir;\n }",
"public String workingDirectory() {\n\t\treturn workingDir.getAbsolutePath();\n\t}",
"public void setCurrentDirectory(File dir) {\r\n\tif (dir == null) dir = new File(System.getProperty(\"user.home\"));\r\n\r\n\tdir = makeAbsolute(dir);\r\n\r\n\t/**\r\n\t * Note that we compare literal paths, not canonical\r\n\t * paths. If they want the chooser to represent the\r\n\t * files at the end of a different route to the same\r\n\t * place, that's perfectly legitimate. See NextStep\r\n\t * for e.g.\r\n\t */\r\n\tif (curDir == null || !curDir.equals(dir)) {\r\n\t invalidateCache();\r\n\t File oldDir = curDir;\r\n\t curDir = dir;\r\n\t firePropertyChange(\"currentDirectory\", oldDir, dir);\r\n\t fireContentsChanged();\r\n\t}\r\n }",
"public static void setWorkOutputDir(TaskAttemptContext context)\n throws IOException\n {\n Configuration conf = context.getConfiguration();\n String outputPath = getOutputDir(conf);\n // we need to do this to get the task path and set it for mapred\n // implementation since it can't be done automatically because of\n // mapreduce->mapred abstraction\n if (outputPath != null) {\n FileOutputCommitter foc =\n new FileOutputCommitter(getOutputPath(conf), context);\n Path path = foc.getWorkPath();\n FileSystem fs = path.getFileSystem(conf);\n fs.mkdirs(path);\n conf.set(\"mapred.work.output.dir\", path.toString());\n LOG.info(\"Setting mapred.work.output.dir to {}\", path.toString());\n }\n }",
"public Directory getWorkingDirectory() {\r\n return workingDirectory;\r\n }",
"public File getWorkingDirectory()\r\n\t{\r\n\t\treturn workingDirectory;\r\n\t}",
"public void setWorkingParent(String path) throws IllegalArgumentException\n {\n ServerSettings.getInstance().setProperty(\n ServerSettings.WORKING_PARENT,\n \"\"+validatePath(path)\n );\n }",
"public IPath getWorkingDirectory() {\n\t\treturn workingDirectory;\n\t}",
"public java.lang.String getWorkingDirectory() {\n java.lang.Object ref = workingDirectory_;\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 workingDirectory_ = s;\n return s;\n }\n }",
"private Step createLocalWorkingDir() {\n return stepBuilderFactory.get(STEP_CREATE_LOCAL_WORK_DIR)\n .tasklet(createLocalWorkingDir)\n .listener(new ExecutionContextPromotionListener() {\n\n @Override\n public ExitStatus afterStep(StepExecution stepExecution) {\n ExecutionContext stepContext = stepExecution.getExecutionContext();\n ExecutionContext jobContext = stepExecution.getJobExecution().getExecutionContext();\n\n // Share local working directory with other tasks\n String stepContextKey = STEP_CREATE_LOCAL_WORK_DIR +\n Constants.PARAMETER_NAME_DELIMITER +\n CreateDirectoryTask.EnumOutParameter.NEW_DIRECTORY.getValue();\n String localWorkingDir = (String) stepContext.get(stepContextKey);\n\n // Configure export meter serial task\n String jobContextKey = STEP_CREATE_SCENARIO_METER_FILE +\n Constants.PARAMETER_NAME_DELIMITER +\n ExportMeterDataToFileTask.EnumInParameter.WORKING_DIRECTORY.getValue();\n jobContext.put(jobContextKey, localWorkingDir);\n\n // Configure export meter data task\n jobContextKey = STEP_EXPORT_METER_DATA +\n Constants.PARAMETER_NAME_DELIMITER +\n ExportMeterDataToFileTask.EnumInParameter.WORKING_DIRECTORY.getValue();\n jobContext.put(jobContextKey, localWorkingDir);\n\n // Configure copy HDFS files task\n jobContextKey = STEP_COPY_REMOTE_FILES +\n Constants.PARAMETER_NAME_DELIMITER +\n CopyFileTask.EnumInParameter.SOURCE_PATH.getValue();\n jobContext.put(jobContextKey, localWorkingDir);\n\n // Configure delete local files task\n jobContextKey = STEP_DELETE_LOCAL_WORK_DIR +\n Constants.PARAMETER_NAME_DELIMITER +\n DeleteDirectoryTask.EnumInParameter.INPUT_DIRECTORY.getValue();\n jobContext.put(jobContextKey, localWorkingDir);\n\n return null;\n }\n\n })\n .build();\n }",
"File getWorkDir() {\n return workDir;\n }",
"public java.lang.String getWorkingDirectory() {\n java.lang.Object ref = workingDirectory_;\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 workingDirectory_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Builder setWorkingDirectoryBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n workingDirectory_ = value;\n onChanged();\n return this;\n }",
"public String getWorkDiretory() {\n\t\treturn workDiretory;\n\t}",
"public Builder clearWorkingDirectory() {\n\n workingDirectory_ = getDefaultInstance().getWorkingDirectory();\n onChanged();\n return this;\n }",
"public com.google.protobuf.ByteString\n getWorkingDirectoryBytes() {\n java.lang.Object ref = workingDirectory_;\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 workingDirectory_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setLoadFromWorkingDir(final boolean loadFromWorkingDir) {\n\t\tthis.loadFromWorkingDir = loadFromWorkingDir;\n\t}",
"@Override\n public String getCurrentDirectory() {\n return (String) gemFileState.get(STATE_SYNC_DIRECTORY);\n }",
"public com.google.protobuf.ByteString\n getWorkingDirectoryBytes() {\n java.lang.Object ref = workingDirectory_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n workingDirectory_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public JobBuilder workPath(String workPath) {\r\n job.setWorkPath(workPath);\r\n return this;\r\n }",
"public File getWorkingParent()\n {\n return validatePath(ServerSettings.getInstance().getProperty(ServerSettings.WORKING_PARENT));\n }",
"public void setBasedir( File basedir )\n {\n this.basedir = basedir;\n }",
"void setDirectory(File dir);",
"public static String getWorkingDirectory() {\n\n return System.getProperty(\"user.dir\");\n }",
"public void setShHarvestDir(String val) {\n\n\t\tshHarvestDir = val;\n\n\t\t// add to the commonDirs object\n\n\t\tadd_to_common_dirs(val);\n\n\t}",
"public void setWorking() {\n working = true;\n }",
"public Builder setBaseDirectoryPath(File val) {\n mBaseDirectoryPath = val;\n return this;\n }",
"public void setDir(String dir) {\n // Do this before setting the value\n boolean dirChanged = dir != null && !dir.equals(this.getDir());\n this.dir = Paths.get(dir);\n if(dirChanged) {\n this.dirChanged();\n }\n }",
"DirectoryProperty getWorkingDirectory();",
"public void setDir(File d) {\r\n this.dir = d;\r\n }",
"@Raw @Model\r\n\tvoid setDir(Directory dir) {\r\n\t\tthis.dir = dir;\r\n\t\tthis.move(dir);\r\n\t\t\r\n\t}",
"public File getCwd() {\n return _cwd;\n }",
"private Step deleteLocalWorkingDir() {\n return stepBuilderFactory.get(STEP_DELETE_LOCAL_WORK_DIR)\n .tasklet(deleteLocalWorkingDir)\n .build();\n }",
"@Override\r\n\t\tpublic void setDir(String dir)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"public File getExecutableWorkDir(CommonjWork work) {\r\n\t\tlogger.debug(\"IN\");\r\n\t\tFile workDir = new File(rootDir, work.getWorkName());\r\n\t\tlogger.debug(\"OUT\");\r\n\t\treturn workDir;\r\n\t}",
"public void setDir(File dir) {\n this.dir = dir;\n }",
"public void setDir(File dir)\n {\n this.dir = dir;\n }",
"public void setShHarvestedDataDir(String val) {\n\n\t\tthis.shHarvestedDataDir = val;\n\n\t}",
"public void setDir() throws FileNotFoundException, IOException{\r\n final JFileChooser jfc = new JFileChooser();\r\n jfc.setDialogTitle(\"Choose Workplace Dirtory\");\r\n FileSystemView fsv = FileSystemView.getFileSystemView();\r\n //wppath stores workplace location\r\n wppath = fsv.getDefaultDirectory();\r\n File rd = new File(wppath.getAbsolutePath() + \"/USQ_Reporter.txt\");\r\n int ext = 0;\r\n if(rd.exists())ext=1;\r\n if(!rd.exists())ext=2;\r\n FileReader fr; \r\n if(rd.exists()){\r\n fr= new FileReader(rd);\r\n if(fr.read()==-1)\r\n ext=2;\r\n }\r\n //System.out.println(ext);\r\n //workplace path\r\n if(ext==1) {\r\n BufferedReader br = new BufferedReader(new FileReader(rd));\r\n workplace = br.readLine();\r\n }else if (ext==2) {\r\n jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n int returnVal = jfc.showOpenDialog(this);\r\n \r\n if(returnVal == JFileChooser.APPROVE_OPTION) {\r\n File file = jfc.getSelectedFile();\r\n if(!file.exists()) {\r\n JOptionPane.showMessageDialog(null, \"file doesn't exist.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n } else if(file.isDirectory()) {\r\n workplace = file.getAbsolutePath();\r\n }\r\n }\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(rd));\r\n bw.write(workplace);\r\n bw.flush();\r\n bw.close();\r\n }\r\n }",
"public static void setInputDir(Configuration conf, String path) {\n conf.set(\"mapred.input.dir\", path);\n }",
"public synchronized static void setCurrentDirectory(File newDirectory) {\n if (newDirectory == null) // this can actually happen\n currentDirectory = canon(System.getProperty(\"user.home\"));\n else\n currentDirectory = canon(newDirectory.getAbsolutePath());\n }",
"public synchronized void setWorking(boolean w)\n\t{\n\t\tm_working = w;\n\t}",
"public void setShDir(String s) {\n\n\t\tthis.shDir = s;\n\n\t}",
"public void setRootDir(String rootDir);",
"@Override\n public void onChosenDir(String chosenDir) {\n ((EditTextPreference)preference).setText(chosenDir);\n try {\n SettingsActivity.createWorkingDir(getActivity(), new File(chosenDir));\n } catch (Exception ex) {\n Toast.makeText(getActivity(), ex.getMessage(), Toast.LENGTH_SHORT).show();\n }\n AvnLog.i(Constants.LOGPRFX, \"select work directory \" + chosenDir);\n }",
"private void setDirInternal(File dir) {\n if (dir == null) {\n baseDir = null;\n return;\n }\n\n ReplicaDirInfo dirInfo = parseBaseDir(dir, getBlockId());\n this.hasSubdirs = dirInfo.hasSubidrs;\n\n synchronized (internedBaseDirs) {\n if (!internedBaseDirs.containsKey(dirInfo.baseDirPath)) {\n // Create a new String path of this file and make a brand new File object\n // to guarantee we drop the reference to the underlying char[] storage.\n File baseDir = new File(dirInfo.baseDirPath);\n internedBaseDirs.put(dirInfo.baseDirPath, baseDir);\n }\n this.baseDir = internedBaseDirs.get(dirInfo.baseDirPath);\n }\n }",
"String getWorkingDirectory();",
"public void createTestDir() {\n\t\tworkDir = new File(System.getProperty(\"test.dir\", \"target\"));\n\t}",
"public void setDir(File dir) {\n _sourceDir = dir;\n }",
"public void setHarvestedDataDir(String val) {\n\n\t\tthis.harvestedDataDir = val;\n\n\t}",
"public WorkingFolderInfo(FilePath localPath) { this(Status.Active, localPath, \"\"); }",
"public File getExecutableWorkProjectDir(CommonjWork work) {\r\n\t\tlogger.debug(\"IN\");\r\n\t\tFile worksDir = new File(rootDir, work.getWorkName());\r\n\t\tlogger.debug(\"OUT\");\r\n\t\treturn worksDir;\r\n\t}",
"public void setDir( final File dir )\n {\n m_dir = dir;\n }",
"public void setWorkSpace(String path) {\n\t\tthis.workspacePath = path;\n\t\tinitWorkSpace();\n\t}",
"public GlobFileSet setStartDir(String startDir)\n\t\t{\n\t\tm_startDir = startDir;\n\t\t\n\t\treturn (this);\n\t\t}",
"public void setZippedWorkDir(byte[] value) {\n this.zippedWorkDir = value;\n }",
"File getWorkingDirectory();",
"public static String getWorkingDirectory() {\r\n try {\r\n // get working directory as File\r\n String path = DBLIS.class.getProtectionDomain().getCodeSource()\r\n .getLocation().toURI().getPath();\r\n File folder = new File(path);\r\n folder = folder.getParentFile().getParentFile(); // 2x .getParentFile() for debug, 1x for normal\r\n\r\n // directory as String\r\n return folder.getPath() + \"/\"; // /dist/ for debug, / for normal\r\n } catch (URISyntaxException ex) {\r\n return \"./\";\r\n }\r\n }",
"public void setHadoopJob( Job currJob ) ;",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void setDir(String dir) {\r\n\t\tthis.dir = new File(dir);\r\n\t}",
"public ImmutableMap<String, String> getWorkdir() {\n return workdir;\n }",
"public void setWorking(boolean working) {}",
"public void setBaseDir(File baseDir) throws BuildException {\n baseDir = FILE_UTILS.normalize(baseDir.getAbsolutePath());\n if (!baseDir.exists()) {\n throw new BuildException(\"Basedir \" + baseDir.getAbsolutePath()\n + \" does not exist\");\n }\n if (!baseDir.isDirectory()) {\n throw new BuildException(\"Basedir \" + baseDir.getAbsolutePath()\n + \" is not a directory\");\n }\n this.baseDir = baseDir;\n setPropertyInternal(\"basedir\", this.baseDir.getPath());\n String msg = \"Project base dir set to: \" + this.baseDir;\n log(msg, MSG_VERBOSE);\n }",
"private Step createHdfsWorkingDir() {\n return stepBuilderFactory.get(STEP_CREATE_HDFS_WORK_DIR)\n .tasklet(createHdfsWorkingDir)\n .listener(new ExecutionContextPromotionListener() {\n\n @Override\n public ExitStatus afterStep(StepExecution stepExecution) {\n ExecutionContext stepContext = stepExecution.getExecutionContext();\n ExecutionContext jobContext = stepExecution.getJobExecution().getExecutionContext();\n\n String stepContextKey = STEP_CREATE_HDFS_WORK_DIR +\n Constants.PARAMETER_NAME_DELIMITER +\n CreateDirectoryTask.EnumOutParameter.NEW_DIRECTORY.getValue();\n String hdfsWorkingDir = (String) stepContext.get(stepContextKey);\n\n // Configure copy HDFS files task\n String jobContextKey = STEP_COPY_REMOTE_FILES +\n Constants.PARAMETER_NAME_DELIMITER +\n CopyFileTask.EnumInParameter.TARGET_PATH.getValue();\n\n if (stepContext.containsKey(stepContextKey)) {\n jobContext.put(jobContextKey, hdfsWorkingDir);\n }\n\n // Configure flink tasks\n jobContextKey = STEP_FLINK +\n Constants.PARAMETER_NAME_DELIMITER +\n EnumFlinkParameter.WORKING_DIRECTORY.getValue();\n jobContext.put(jobContextKey, hdfsWorkingDir);\n\n String meterDataFilename = hdfsWorkingDir + METER_DATA_FILENAME;\n\n jobContextKey = STEP_FLINK +\n Constants.PARAMETER_NAME_DELIMITER +\n \"input.file\";\n jobContext.put(jobContextKey, meterDataFilename);\n\n // Configure output filenames for import task\n String savingsFilename = hdfsWorkingDir + \"SavingsPotential\";\n\n\n jobContextKey = STEP_IMPORT_RESULT +\n Constants.PARAMETER_NAME_DELIMITER +\n SavingsPotentialImportDataTask.EnumInParameter.INPUT_FILENAME_SAVINGS.getValue();\n\n jobContext.put(jobContextKey, savingsFilename);\n\n String waterIqFilename = hdfsWorkingDir + \"WaterIQ\";\n\n jobContextKey = STEP_IMPORT_RESULT +\n Constants.PARAMETER_NAME_DELIMITER +\n SavingsPotentialImportDataTask.EnumInParameter.INPUT_FILENAME_WATER_IQ.getValue();\n\n jobContext.put(jobContextKey, waterIqFilename);\n\n // Configure delete HDFS files task\n jobContextKey = STEP_DELETE_HDFS_WORK_DIR +\n Constants.PARAMETER_NAME_DELIMITER +\n DeleteDirectoryTask.EnumInParameter.INPUT_DIRECTORY.getValue();\n jobContext.put(jobContextKey, hdfsWorkingDir);\n\n stepContextKey = STEP_CREATE_HDFS_WORK_DIR +\n Constants.PARAMETER_NAME_DELIMITER +\n CreateDirectoryTask.EnumOutParameter.HDFS_PATH.getValue();\n\n jobContextKey = STEP_DELETE_HDFS_WORK_DIR +\n Constants.PARAMETER_NAME_DELIMITER +\n DeleteDirectoryTask.EnumInParameter.HDFS_PATH.getValue();\n\n if (stepContext.containsKey(stepContextKey)) {\n jobContext.put(jobContextKey, stepContext.get(stepContextKey));\n }\n\n return null;\n }\n\n })\n .build();\n }",
"public void setToDir(File dir) {\n _destDir = dir;\n }",
"public void setSaveHadoopTmpDir(final boolean saveTempDir) {\n _saveHadoopTmpDir = saveTempDir;\n }",
"public void changeCurrentDirectory(String newDirectory) {\n currentDirectory = newDirectory;\n }",
"public Builder setBaseDirectoryName(String val) {\n mBaseDirectoryName = val;\n return this;\n }",
"private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }",
"private Step deleteHdfsWorkingDir() {\n return stepBuilderFactory.get(STEP_DELETE_HDFS_WORK_DIR)\n .tasklet(deleteHdfsWorkingDir)\n .build();\n }",
"public static void setRootDir() {\n for(int i = 0; i < rootDir.length; i++){\n Character temp = (char) (65 + i);\n Search.rootDir[i] = temp.toString() + \":\\\\\\\\\";\n }\n }",
"public void gotoParentDir() {\n boolean z;\n if (!isRootDir() && this.mCurrentDir != null && this.mBox.hasAuthenticated()) {\n String sb = new StringBuilder(getCurrentDirPath()).toString();\n if (sb.endsWith(File.separator)) {\n sb = sb.substring(0, sb.lastIndexOf(File.separator));\n }\n String substring = sb.substring(0, sb.lastIndexOf(File.separator) + 1);\n if (!substring.equals(getCurrentDirName())) {\n if (!substring.equals(File.separator) && substring.endsWith(File.separator)) {\n substring = substring.substring(0, substring.length() - 1);\n }\n BoxFileObject boxFileObject = null;\n if (this.mDirCached.containsKey(substring)) {\n boxFileObject = (BoxFileObject) this.mDirCached.get(substring);\n }\n if (boxFileObject == null) {\n z = this.mBox.asyncLoadDir(substring, this.mLoadFolderListener);\n } else {\n z = this.mBox.asyncLoadDir(boxFileObject, this.mLoadFolderListener);\n }\n if (z) {\n showWaitingDialog(this.mActivity.getString(C4538R.string.zm_msg_loading), this.mWaitingDialogCancelListener);\n }\n }\n }\n }",
"public String getWorkDirectory(){\n String wd = \"\";\n try {\n wd = new File(\"test.txt\").getCanonicalPath().replace(\"/test.txt\",\"\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return wd;\n }",
"void doPWD()\n {\n out(System.getProperty(\"user.dir\")); //$NON-NLS-1$\n }",
"public void setSaveDirectory(String dir) {\r\n\t\tEmailServiceEJB.saveDirectory = dir;\r\n\t}",
"public void setBasedir( String basedir )\n {\n setBasedir( new File( basedir.replace( '/', File.separatorChar ).replace( '\\\\', File.separatorChar ) ) );\n }",
"public void setOutputDirectory(String dir) {\n\t\tnew LabeledText(\"Output directory:\").setText(dir);\n\t}",
"private void setCarbonHome() {\n Path carbonHome = Paths.get(\"\");\n carbonHome = Paths.get(carbonHome.toString(), \"src\", \"test\");\n System.setProperty(CARBON_HOME, carbonHome.toString());\n logger.info(\"Carbon Home Absolute path set to: \" + carbonHome.toAbsolutePath());\n\n }",
"JobFolder(final FileSystem fileSystem, final Path path) throws IOException {\n this.fileSystem = fileSystem;\n this.path = path;\n this.fileSystem.mkdirs(this.path);\n }",
"private void initLocalDirectory() throws IOException {\n\t\tSystem.out.println(\"initLocalDirectory() of thread number: \"\n\t\t\t\t+ Thread.currentThread().getId());\n\t\tBruteForceTask btask = (BruteForceTask) mTask;\n\t\tState targetState = SgUtils.get_last_state(btask.getPath());\n\t\tString toBruteId = (targetState == null ? \"\"\n\t\t\t\t+ Thread.currentThread().getId() : targetState.getId());\n\t\tSystem.out.println(\"to Brute id \" + toBruteId);\n\t\tSystem.out.println(toBruteId);\n\t\tmSgdEnvironnement.init(toBruteId);\n\n\t}",
"public void updateLabtainersPath(){\n labsPath = new File(labtainerPath + File.separator + \"labs\");\n labChooser.setCurrentDirectory(labsPath); \n }",
"public void setDir(int dir) {\n this.dir = dir;\n }",
"public void setDir(File dir) throws Exception\n {\n this.dir = dir;\n }",
"public void setProjectDirectory(File projectDir) {\n this.mProjectDir = projectDir;\n }",
"public String inputFileDir() {\n return inputFileDir;\n }",
"public void setAndCreateDirPath(String dirname) {\r\n\t File newPath = new File(dirname); \r\n\t \r\n\t if(!newPath.isDirectory()) {\r\n\t\t newPath.mkdirs();\r\n\t }\r\n\t \r\n\t directory = newPath;\r\n }"
] |
[
"0.74929255",
"0.74929255",
"0.72286606",
"0.70340234",
"0.69730645",
"0.6821791",
"0.6704518",
"0.66658384",
"0.6525749",
"0.6457101",
"0.64409316",
"0.63980967",
"0.620224",
"0.6195509",
"0.6195509",
"0.61210173",
"0.6062981",
"0.6035112",
"0.5983342",
"0.5952459",
"0.5891692",
"0.58021283",
"0.57526314",
"0.56725204",
"0.564949",
"0.5610845",
"0.5603638",
"0.55966884",
"0.5537067",
"0.552438",
"0.5515626",
"0.54906887",
"0.5466201",
"0.5397328",
"0.5385509",
"0.53582454",
"0.53257173",
"0.52971536",
"0.52926695",
"0.52794147",
"0.5275427",
"0.5266971",
"0.52540666",
"0.5230174",
"0.5220724",
"0.5207297",
"0.51918215",
"0.5181928",
"0.51769894",
"0.517494",
"0.51559037",
"0.5143668",
"0.51354915",
"0.51284486",
"0.5103996",
"0.5096245",
"0.5085107",
"0.5069886",
"0.5069666",
"0.50333124",
"0.50279796",
"0.50187343",
"0.5009829",
"0.5000517",
"0.49936447",
"0.49904537",
"0.4978465",
"0.4964783",
"0.49639815",
"0.49557292",
"0.49533984",
"0.49413177",
"0.49251315",
"0.4922556",
"0.49114755",
"0.48995143",
"0.48760706",
"0.4863379",
"0.48524135",
"0.4824881",
"0.4820702",
"0.48102126",
"0.48081926",
"0.47835767",
"0.47766563",
"0.4742388",
"0.47409317",
"0.47305304",
"0.47223184",
"0.47217062",
"0.4718999",
"0.47126445",
"0.4707571",
"0.47000456",
"0.4689169",
"0.46882534",
"0.4683712",
"0.46712953",
"0.4666078",
"0.4663938"
] |
0.716408
|
3
|
TODO Autogenerated method stub
|
@Override
public void onImageLoadedSuccess(String url, Bitmap bitmap,ZLMovie movie, int imageType, ImageView imgView) {
if(bitmap==null && movie!=null){
bitmap = BitmapFactory.decodeByteArray(movie.getMovieData(), 0, movie.getMovieData().length);
}
if(url == PlazaListImageView.this.url){
imgView.setImageBitmap(bitmap);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void onImageLoadProgress(String url, int imageType,ImageView imgView, int loaded, int total) {
drawProgress(loaded,total);
}
|
{
"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
|
Asserts that the execution of consumer throws an exception of the specific class.
|
public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass) {
assertThrows(consumer, exceptionClass, ex -> {
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void assertThrowsCompletionException(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n try {\n consumer.accept(null);\n } catch (final CompletionException completionEx) {\n final Throwable ex = completionEx.getCause();\n if (ex.getClass() == exceptionClass) {\n return;\n }\n\n Assert.fail(String.format(\"unexpected exception of type %s was thrown\", ex.getClass()));\n }\n\n Assert.fail(String.format(\"expected exception of type %s was not thrown\", exceptionClass));\n }",
"@SuppressWarnings(\"unchecked\")\n private static <T> void assertThrows(\n final Consumer<Void> consumer,\n final Class<T> exceptionClass,\n final Consumer<T> assertExceptionProperties,\n final String message) {\n final String normalizedMessage = null == message ? \"\" : String.format(\"[%s]: \", message);\n try {\n consumer.accept(null);\n } catch (final Exception ex) {\n if (exceptionClass.isAssignableFrom(ex.getClass())) {\n assertExceptionProperties.accept((T) ex);\n return;\n }\n\n Assert.fail(String.format(\"%sunexpected exception of type %s was thrown: '%s'\", normalizedMessage, ex.getClass(), ex.getMessage()));\n }\n\n Assert.fail(String.format(\"%sexpected exception of type %s was not thrown\", normalizedMessage, exceptionClass));\n }",
"public static <T> void assertThrows(\n final Consumer<Void> consumer,\n final Class<T> exceptionClass,\n final Consumer<T> assertExceptionProperties) {\n assertThrows(consumer, exceptionClass, assertExceptionProperties, null);\n }",
"public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass, final String message) {\n assertThrows(consumer, exceptionClass, ex -> {\n }, message);\n }",
"OOPExpectedException expect(Class<? extends Exception> expected);",
"private void checkException(Runnable function, Class<?> expectedEx){\n try {\n function.run();\n assert false;\n }catch (Exception e){\n assert e.getClass() == expectedEx;\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void test_voidFoo_exception() throws IllegalAccessException {\n\t\t\n\t}",
"@Test\n\tvoid qutTestForExeception() {\n\t\tassertThrows(MyException.class, () -> { nopt.quot(100, 0);});\n\t}",
"boolean assertExpected(Exception e);",
"OOPExpectedException expectMessage(String msg);",
"@Test\n\tpublic void exception() {\n\t\t// ReactiveValue wraps all exceptions in CompletionException.\n\t\tCompletionException ce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new ArithmeticException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t\tassertThat(p.keys(), contains(\"key\"));\n\t\t// If we try to throw another exception second time around, we will still get the first one.\n\t\tce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new IllegalStateException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t}",
"@Test\n void testDoThrow() {\n\n doThrow(RuntimeException.class).when(dao).foo();\n // doThrow(new RuntimeException()).when(dao).foo();\n\n RuntimeException exception = Assertions.assertThrows(NullPointerException.class,\n () -> service.fetchBookById(42)\n );\n assertThat(exception.getClass(), is(equalTo(NullPointerException.class)));\n }",
"public void testInheritance() {\n assertTrue(\"ContestEligibilityValidatorException does not subclass Exception.\",\n new ContestEligibilityValidatorException() instanceof Exception);\n }",
"@Test\n public void throwWrappedExOrOriginEx() {\n assertThatThrownBy(() -> repository.findMemberWithSpringEx())\n .isInstanceOf(EmptyResultDataAccessException.class);\n\n // 2) throw origin ex\n assertThatThrownBy(() -> repository.findMemberWithOriginEx())\n .isInstanceOf(NoResultException.class);\n }",
"@Test(expected=Exception.class)\n public void withdraw1100FromAccount_shouldThrowException() throws Exception{\n account.withdraw(1100);\n }",
"@Test(expected = Exception.class)\n public void testOrganiseTalkExceptionTrown() throws Exception {\n // single talk should throw exception\n String title = \"Single Talk\";\n try{\n \n ConferenceCommittee.acceptTalkSubmission(title, new ArrayList<Talk>());\n } catch (Exception e) {\n assertEquals(e.getMessage(), \"Cant organise talk - \" + title); // TODO: check spelling in assertion messages\n throw e;\n }\n fail(\"Exception not thrown\");\n\n }",
"@Test\n\tvoid testInvalidCustomerType() {\n\t\tCustomerTypeFactory customerTypeFactory = new CustomerTypeFactory();\n\t\tassertThrows(CustomerTypeException.class, () -> {\n\t\t\tcustomerTypeFactory.getCustomerType(\"gold\");\n\t });\n\t}",
"@Test(expected = IllegalStateException.class)\r\n public void dummyThrowsExceptionWhenAttacked() {\n\r\n dummy.takeAttack(AXE_ATTACK);\r\n }",
"@Test\n void checkedExceptionFromConstructorDoesNotAttemptToStoreAggregate() {\n UnitOfWork<?> uow = CurrentUnitOfWork.get();\n uow.executeWithResult(() -> testSubject.newInstance(() -> {\n throw new Exception(\"Throwing checked exception\");\n }), RuntimeException.class::isInstance);\n\n assertFalse(uow.isActive());\n assertFalse(uow.isRolledBack());\n assertTrue(uow.getExecutionResult().isExceptionResult());\n assertEquals(\"Throwing checked exception\", uow.getExecutionResult().getExceptionResult().getMessage());\n }",
"@Factory\r\n public static Matcher<Proc> raisesException(Class<? extends Exception> clazz) {\r\n return new Raises(IsThrowable.exception(clazz));\r\n }",
"@CustomExceptionTest(ArithmeticException.class)\n public static void test5() {\n }",
"@Test\r\n public void findUserInvalidUserId() {\r\n\r\n assertThatThrownBy(() -> {\r\n this.usermanagement.findUserRole(-1L);\r\n }).isInstanceOf(Exception.class);\r\n }",
"public void testApplicationsManagerExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n ApplicationsManagerException ce = new ApplicationsManagerException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", ce.getMessage());\n assertEquals(\"cause is incorrect.\", e, ce.getCause());\n }",
"@Test\n public void shouldThrowIfInvalidActionInVersion() {\n\n // GIVEN\n ActionProcessor processor = new ActionProcessor(false, false);\n List<Action> actionsToProcess = asList(ADD_FILE, REMOVE_FILE, ADD_FILE);\n DeltaSourceException caughtException = null;\n\n // WHEN\n try {\n processor.processActions(prepareChangesToProcess(actionsToProcess));\n } catch (DeltaSourceException e) {\n caughtException = e;\n }\n\n // THEN\n assertThat(caughtException, notNullValue());\n assertThat(caughtException.getSnapshotVersion().orElse(null), equalTo(SNAPSHOT_VERSION));\n assertThat(caughtException.getTablePath().orElse(null), equalTo(TABLE_PATH));\n }",
"@Ignore(value = \"TODO\")\n @Test(expected = IllegalStateException.class)\n public void shouldThrowExceptionWhenDeletingAPlayerInTheMiddleOfAGame() {\n\n }",
"@Test\n public void test01() throws MessagingException {\n\n }",
"@Test\r\n void notEnoughFunds() {\n BankAccount account = new BankAccount(9);\r\n\r\n // Assertion for exception\r\n assertThrows(NotEnoughFundsException.class, () -> account.withdraw(10),\r\n \"Balance must be greater than amount of withdrawal\");\r\n }",
"@Test(timeout = 4000)\n public void test14() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.contractMsg((Contract) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n public void CollectPaymentException(){\n instance.scanItem(-6);\n }",
"public interface OOPExpectedException {\n\n /**\n * @return the expected exception type.\n */\n Class<? extends Exception> getExpectedException();\n\n /**\n * expect an exception with the given type to be thrown.\n *\n * @param expected - the expected exception type.\n * @return this object.\n */\n OOPExpectedException expect(Class<? extends Exception> expected);\n\n /**\n * expect the exception message to have a message as its substring.\n * Should be okay if the message expected is a substring of the entire exception message.\n * Can expect several messages.\n * Example: for the exception message: \"aaa bbb ccc\", for an OOPExpectedException e:\n * e.expectMessage(\"aaa\").expectMessage(\"bb c\");\n * - This should be okay.\n *\n * @param msg - the expected message.\n * @return this object.\n */\n OOPExpectedException expectMessage(String msg);\n\n /**\n * checks that the exception that was thrown, and passed as parameter,\n * is of a type as expected. Also checks expected message are contained in the exception message.\n * <p>\n * Should handle inheritance. For example, for expected exception A, if an exception B was thrown,\n * and B extends A, then it should be okay.\n *\n * @param e - the exception that was thrown.\n * @return whether or not the actual exception was as expected.\n */\n boolean assertExpected(Exception e);\n\n\n /**\n * @return an instance of an ExpectedException with no exception or expected messages.\n * <p>\n * This static method must be implemented in OOPExpectedExceptionImpl and return an actual object.\n * <p>\n * If this is the state of the ExpectedException object, then no exception is expected to be thrown.\n * So, if an exception is thrown, an OOPResult with ERROR should be returned\n */\n static OOPExpectedException none() {\n return OOPExpectedExceptionImpl.none();\n }\n}",
"public boolean isException(Class paramClass) {\n/* 162 */ if (paramClass == null) {\n/* 163 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 168 */ return (isCheckedException(paramClass) && !isRemoteException(paramClass) && isValue(paramClass));\n/* */ }",
"private void verifyExceptionThrown(Exception thrown, Class expected) {\n\n boolean exceptionFound = false;\n Throwable cause = thrown;\n while (cause != null) {\n if (expected.isInstance(cause)) {\n // good\n exceptionFound = true;\n break;\n }\n else {\n cause = cause.getCause();\n }\n }\n if (!exceptionFound) {\n Assert.fail(expected.getSimpleName() + \" was expected but not thrown\", thrown);\n }\n }",
"@Test\n public void overdraw_forSavingsAccount_shouldThrowException() {\n\n AccountWithEnum accountWithEnum = new AccountWithEnum(100, 12345, AccountType.SAVINGS);\n\n Assert.assertThrows(ArithmeticException.class,\n () -> {accountWithEnum.withdraw(150);});\n }",
"@Test(expected = WorkflowExecutionException.class)\n public void testExecuteWorkflowExecutionException() {\n action.execute(state);\n action.execute(state);\n }",
"public void testApplicationsManagerExceptionAccuracy1() throws Exception {\n ApplicationsManagerException ce = new ApplicationsManagerException(\"test\");\n assertEquals(\"message is incorrect.\", \"test\", ce.getMessage());\n }",
"@Test\n void testWithdraw() {\n //Exception e = assertThrows(IllegalArgumentException.class, () -> new Client(\"Sir\", \"Jack\", \"1234567890\",\"H91R7YX\", \"432111111111\",\"[email protected]\", 20, 5000.00) );\n assertEquals(true, t1.isWithdraw());\n }",
"@Test\n\tpublic final void testWriteException() {\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our test assertion exception\"), \"Unit Tests\",\n\t\t\t\t\"Test of logging exception attachment.\", null);\n\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our top exception\",\n\t\t\t\t\t\tnew RuntimeException(\"This is our middle exception\",\n\t\t\t\t\t\t\t\tnew RuntimeException(\"This is our bottom exception\"))),\n\t\t\t\t\"Unit Tests\", \"Test of logging exception attachment with nested exceptions.\", null);\n\t}",
"@Test\n void testDothrow() {\n Examen examen = Datos.EXAMEN;\n doThrow(IllegalArgumentException.class).when(preguntaRepository).guardarVarias(anyList());\n\n examen.setPreguntas(Datos.PREGUNTAS);\n assertThrows(IllegalArgumentException.class, () -> {\n service.guardar(examen);\n });\n }",
"@Test(expected = IllegalStateException.class)\n\tpublic void testException() {\n\t\tsubGen.subset(11);\n\t}",
"public <T extends Throwable> void validateRootCause(Runnable runnable, Class<T> exceptionClass) {\n try {\n runnable.run();\n Assert.fail(\"Expected \" + exceptionClass.getName());\n } catch (Exception e) {\n Assert.assertThat(getRootCause(e), instanceOf(exceptionClass));\n }\n }",
"@Test(expected = InvalidArgumentException.class)\r\n\tpublic void throwInvalidArgumentException() {\r\n\t\tthis.validator.doValidation(null);\r\n\t}",
"@Test(expected = InsufficientResourcesException.class )\npublic void testSubtractBalance() throws InsufficientResourcesException {\n sut.subtractBalance(100,1,new Account());\n}",
"@Test\r\nvoid test1() {\r\n\tassertThrows(RuntimeException.class,()-> Q2=new ArrayBasedQ(-5));\r\n}",
"@Test\n public void handleSavvyTaskerChangedEvent_exceptionThrown_eventRaised() throws IOException {\n Storage storage = new StorageManager(new XmlAddressBookStorageExceptionThrowingStub(\"dummy\"), new JsonUserPrefsStorage(\"dummy\"));\n EventsCollector eventCollector = new EventsCollector();\n storage.handleSavvyTaskerChangedEvent(new SavvyTaskerChangedEvent(new SavvyTasker()));\n assertTrue(eventCollector.get(0) instanceof DataSavingExceptionEvent);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testScanItemHighException(){\n instance.scanItem(1E6);\n }",
"@Factory\r\n public static Matcher<Proc> raisesException() {\r\n return raises(IsThrowable.exception());\r\n }",
"@Test(description=\"Testing Report if Exception is Occurred (Throwing Exception Intentionally)\")\n\tpublic void test() {\n\t\tReporter.log(\"Running test Method from TC010 class\", true);\n\t\tthrow new IllegalStateException();\n\t}",
"@Test\n public void swallowExceptionsAspect() throws Exception {\n ProductDemand demand = swallowing(parseDoc().getDemands().get(0));\n\n // probably will throw IllegalStateException\n demand.fancyBusinessLogic();\n\n List<Throwable> exceptions = exceptions(demand);\n Assertions.assertThat(exceptions).isNotEmpty();\n }",
"@Test\n public void testSecurityConfiguredWithTwoExceptions() throws Exception {\n MockEndpoint result = getMockEndpoint(ExceptionBuilderTest.RESULT_QUEUE);\n result.expectedMessageCount(0);\n MockEndpoint mock = getMockEndpoint(ExceptionBuilderTest.SECURITY_ERROR_QUEUE);\n mock.expectedMessageCount(1);\n mock.expectedHeaderReceived(ExceptionBuilderTest.MESSAGE_INFO, \"Damm some security error\");\n try {\n template.sendBody(\"direct:a\", \"I am not allowed to do this\");\n Assert.fail(\"Should have thrown a GeneralSecurityException\");\n } catch (RuntimeCamelException e) {\n Assert.assertTrue(((e.getCause()) instanceof GeneralSecurityException));\n // expected\n }\n MockEndpoint.assertIsSatisfied(result, mock);\n }",
"@Test\n\tvoid new_GebruikerMetLegeEmail_ThrowsException() {\n\t\tAssertions.assertThrows(IllegalArgumentException.class, ()-> new Klant( \"test\", \"test\", \"test\", \"test\", null, 4000,\n\t\t\t\tnew Bedrijf()));\n\t}",
"@Test(expected= VotingException.class)\n public void VotingMadeByAuthorThrowsException() throws Exception {\n\n bob.upVote(bobPost);\n bob.downVote(bobPost);\n alice.upVote(question);\n alice.downVote(question);\n }",
"@Test\n public void shouldThrownAccessExceptionWhenInnerMethodCallThrowsIt()\n throws Exception {\n\n // p4ic4idea: use a public, non-abstract class with default constructor\n executeAndExpectThrowsExceptions(\n AccessException.AccessExceptionForTests.class,\n AccessException.class\n );\n }",
"@Test\n public void testInvalidTransactionIdException() throws Exception {\n\n // login with sufficient rights\n shop.login(admin.getUsername(), admin.getPassword());\n\n // verify correct exception is thrown\n testInvalidValues(InvalidTransactionIdException.class, invalidTransactionIDs,\n (transactionId) -> shop.receiveCashPayment(transactionId, 10));\n }",
"@FunctionalInterface\npublic interface ConsumerWithException<T> {\n void accept(T t) throws Exception;\n}",
"@FunctionalInterface\npublic interface ThrowingConsumer<T, E extends Exception> {\n\n void accept(T t) throws E;\n\n}",
"@Test\n public void testVisitThrowingException() {\n ResetBasicData.reset();\n\n Query<Customer> query = DB.find(Customer.class).setAutoTune(false)\n .fetchQuery(\"contacts\").where().gt(\"id\", 0).order(\"id\")\n .setMaxRows(2).query();\n\n final AtomicInteger counter = new AtomicInteger(0);\n\n assertThrows(IllegalStateException.class, () -> {\n query.findEachWhile(customer -> {\n counter.incrementAndGet();\n if (counter.intValue() > 0) {\n throw new IllegalStateException(\"cause a failure\");\n }\n return true;\n });\n });\n }",
"@Test(expected = ChangeException.class)\n public void testGiveChangeException()throws ChangeException{\n instance.scanItem(0.55);\n instance.scanItem(1.27);\n instance.giveChange();\n }",
"public void testExecute2() throws Exception {\r\n try {\r\n handler.execute(null);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // ok.\r\n }\r\n }",
"@Test\n public void removing_item_that_does_not_exist_should_throw_exception() {\n\n assertThrows(itemNotFoundException.class,\n ()->restaurant.removeFromMenu(\"French fries\"));\n }",
"public void testPersistenceExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n PersistenceException pe = new PersistenceException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", pe.getMessage());\n assertEquals(\"cause is incorrect.\", e, pe.getCause());\n }",
"public void testOneJob_ExceptionInProcess() {\n WARCBatchJob job = new TestWARCBatchJob() {\n public void processRecord(WARCRecord record, OutputStream os) {\n super.processRecord(record, new ByteArrayOutputStream());\n if (!((processed - 1) \n < RECORDS_PROCESSED_BEFORE_EXCEPTION)) {\n throw new ArgumentNotValid(\n \"testOneJob_ExceptionInProcess\");\n }\n }\n };\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n assertEquals(\"Should have gotten through all records\",\n TOTAL_RECORDS, processed);\n final int numExceptions = TOTAL_RECORDS\n - RECORDS_PROCESSED_BEFORE_EXCEPTION;\n if (numExceptions != es.length) {\n printExceptions(es);\n }\n assertEquals(\"Exceptions list should have one entry per failing record\",\n numExceptions, es.length);\n for (int i = 0; i < numExceptions; i++) {\n assertTrue(\"Exception should be of type ArgumentNotValid\",\n es[i] instanceof ArgumentNotValid);\n }\n }",
"@Test(expected = AppException.class)\n public void shouldThrowAnAppException() throws Exception {\n Mockito.when(customerRepository.existsByEmail(view.getEmail())).thenReturn(false);\n //error on saving\n Mockito.when(customerRepository.save(Mockito.any(Customer.class))).thenThrow(new DataAccessException(\"Could not save customer\") {});\n\n customerService.create(view);\n Mockito.verify(customerRepository).existsByEmail(view.getEmail());\n Mockito.verify(customerRepository).save(Mockito.any(Customer.class));\n }",
"@Test(timeout = 4000)\n public void test31() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.deltaNeutralValidation((-2236), (UnderComp) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"private Statement wrapExpectedExceptions(final Statement s, TestCandidate c, Object instance) {\n Test ann = c.method.getAnnotation(Test.class);\n \n // If there's no expected class, don't wrap. Eh, None is package-private...\n final Class<? extends Throwable> expectedClass = ann.expected();\n if (expectedClass.getName().equals(\"org.junit.Test$None\")) {\n return s;\n }\n \n return new Statement() {\n @Override\n public void evaluate() throws Throwable {\n try {\n s.evaluate();\n } catch (Throwable t) {\n if (!expectedClass.isInstance(t)) {\n throw t;\n }\n // We caught something that was expected. No worries then.\n return;\n }\n \n // If we're here this means we passed the test that expected a failure.\n Assert.fail(\"Expected an exception but the test passed: \"\n + expectedClass.getName());\n }\n };\n }",
"public void testHookException() throws Exception {\n\n\t\tregisterThisHook();\n\n\t\ttry {\n\t\t\tConfigurableWeavingHook hook = new ConfigurableWeavingHook();\n\t\t\thook.setExceptionToThrow(new RuntimeException());\n\t\t\tServiceRegistration<WeavingHook>reg3 = hook.register(getContext());\n\t\t\ttry {\n\t\t\t\tweavingClasses.loadClass(TEST_CLASS_NAME);\n\t\t\t\tfail(\"Should blow up\");\n\t\t\t} catch (ClassFormatError cfe) {\n\t\t\t\tassertWiring();\n\n\t\t\t\tassertTrue(\"Should be complete now\", wc.isWeavingComplete());\n\t\t\t\tassertNotSame(\"Should get copies of the byte array now\", realBytes, wc.getBytes());\n\t\t\t\tassertTrue(\"Content should still be equal though\", Arrays.equals(realBytes, wc.getBytes()));\n\t\t\t\tassertEquals(\"Wrong class\", TEST_CLASS_NAME, wc.getClassName());\n\t\t\t\tassertNull(\"Should not be set\", wc.getDefinedClass());\n\n\t\t\t\tassertImmutableList();\n\n\t\t\t\ttry {\n\t\t\t\t\twc.setBytes(fakeBytes);\n\t\t\t\t\tfail(\"Should not be possible\");\n\t\t\t\t} catch (IllegalStateException ise) {\n\t\t\t\t\t//No action needed\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treg3.unregister();\n\t\t} finally {\n\t\t\tunregisterThisHook();\n\t\t}\n\t}",
"@Test\r\n void enoughFunds() {\n BankAccount account = new BankAccount(100);\r\n \r\n // Assertion for no exceptions\r\n assertDoesNotThrow(() -> account.withdraw(100));\r\n }",
"@Test\r\n public void testCatch() {\n }",
"public void test_5() throws Exception {\n\t\ttry {\n\t\t\tBoundedSharedQueue theBSQ = new BoundedSharedQueue(0);\n\t\t\tfail(\"should throw an IllegalArgumentException\");\n\t\t}\n\t\tcatch(IllegalArgumentException ex) {\n\t\t\t// OK\n\t\t}\n\t}",
"@Test\r\n public void findserUserIdNull() {\r\n\r\n assertThatThrownBy(() -> {\r\n this.usermanagement.findUserRole(null);\r\n }).isInstanceOf(Exception.class);\r\n }",
"void assertExceptionIsThrown(\n String sql,\n String expectedMsgPattern);",
"@Test\n void bankListIsAccountExistToTransfer_accountExistButInsufficientMoneyToTransfer_throwsException() {\n ByteArrayOutputStream outContent = new ByteArrayOutputStream();\n System.setOut(new PrintStream(outContent));\n BankList bankList = new BankList(storage);\n Ui uiTest = new Ui();\n Bank newSavingAccount = new Saving(\"Test Saving Account\", 1000, 2000);\n Bank newInvestmentAccount = new Investment(\"Test Investment Account\", 1000);\n try {\n bankList.bankListAddBank(newSavingAccount, uiTest);\n bankList.bankListAddBank(newInvestmentAccount, uiTest);\n } catch (BankException error) {\n System.out.println(\"Expected no throw, but error thrown\");\n }\n\n assertEquals(2, bankList.getBankListSize());\n outContent.reset();\n\n BankException thrown = assertThrows(BankException.class, () ->\n bankList.getTransferBankType(\"Test Investment Account\",\n 2000),\n \"Expected bankListIsAccountExistToTransfer to throw, but it didn't\");\n assertEquals(\"Insufficient amount for transfer in this bank: Test Investment Account\",\n thrown.getMessage());\n\n }",
"public void testCanCreateInvoice() throws Exception {\n try {\n invoiceSessionBean.canCreateInvoice(-1);\n fail(\"Should throw IllegalArgumentException\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }",
"@Test\n public void testProductMatchingExceptionThrown() throws Exception {\n service.loadFiles(); \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Reptile\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match Products\", correctExceptionThrown);\n\n }",
"@Test\n public void testError() {\n FutureRecordMetadata future = new FutureRecordMetadata(asyncRequest(baseOffset, new CorruptRecordException(), 50L),\n relOffset, RecordBatch.NO_TIMESTAMP, 0, 0, Time.SYSTEM);\n assertThrows(ExecutionException.class, future::get);\n }",
"@Test\n void borrowBookThrowsOperationStoppedException3(){\n Book book1 = new Book(\"Garry\", \"Fiction\", 0, 1234);\n User user1 = new User(\"Gayal\", \"Rupasinghe\", \"[email protected]\");\n user1.setUserID(1L);\n book1.setBookID(1L);\n\n //User and book both exist.\n Optional<User> optionalUser1 = Optional.of(user1);\n Optional<Book> optionalBook1 = Optional.of(book1);\n given(userService.getUserByID(user1.getUserID())).willReturn(optionalUser1);\n given(bookRepository.findById(book1.getBookID())).willReturn(optionalBook1);\n\n //book is not already borrowed by user.\n given(bookRepository.isBookBorrowedByUser(user1.getUserID(), book1.getBookID())).willReturn(false);\n\n //when and then\n assertThatThrownBy(() -> testBookServiceImpl.borrowBook(user1.getUserID(), book1.getBookID()) )\n .isExactlyInstanceOf(OperationStoppedException.class)\n .hasMessage(\"Book is not available to borrow, quantity is 0.\");\n }",
"@Test\n public void spendShouldThrowNotFoundExceptionException() throws Exception {\n UnsecureCompactBuilder compactBuilder = new UnsecureCompactBuilder();\n\n NonceClaim nonceClaim = new NonceClaim();\n nonceClaim.setNonce(\"nonce\");\n\n String jwt = compactBuilder.claims(nonceClaim).build().toString();\n\n when(mockHashToken.run(\"nonce\")).thenReturn(\"hashedNonce\");\n when(mockNonceRepository.getByTypeAndNonce(NonceName.WELCOME, \"hashedNonce\")).thenThrow(RecordNotFoundException.class);\n\n NotFoundException actual = null;\n try {\n subject.spend(jwt, NonceName.WELCOME);\n } catch(NotFoundException e) {\n actual = e;\n }\n\n assertThat(actual, is(notNullValue()));\n assertThat(actual.getCause(), instanceOf(RecordNotFoundException.class));\n\n verify(mockNonceRepository, never()).setSpent(any(UUID.class));\n verify(mockNonceRepository, never()).revokeUnSpent(any(String.class), any(UUID.class));\n }",
"@Test\n public void testHighLevelWeapon_invalid_shouldPass(){\n RPGCharacter warrior = CreateCharacter.createChar(4);\n Axe axe = new Axe(ItemType.Weapon, \"Common Axe\", 2, SlotType.WeaponSlot, WeaponType.Axe, 7, 1.1);\n Throwable exception = assertThrows(InvalidWeaponException.class, ()-> warrior.EquipWeapon(axe), \"Your level is too low\");\n }",
"public void testPersistenceExceptionAccuracy1() throws Exception {\n PersistenceException pe = new PersistenceException(\"test\");\n assertEquals(\"message is incorrect.\", \"test\", pe.getMessage());\n }",
"@Test\n @Category(Negative.class)\n public void divide_correctValues_exceptionthrown() {\n thrownException.expect(ArithmeticException.class);\n// thrownException.expectMessage(\"cannot divide by zero!\");\n thrownException.expectMessage(containsString(\"cannot divide by zero!\"));\n result = calc.divide(5, 0);\n }",
"@Test\n public void testInvalidPaymentException() throws Exception {\n\n // login with sufficient rights\n shop.login(admin.getUsername(), admin.getPassword());\n\n // verify correct exception is thrown\n testInvalidValues(InvalidPaymentException.class, invalidPaymentAmounts,\n (cash) -> shop.receiveCashPayment(saleId, cash));\n }",
"@Test\n public void when_SourceHasInvalidFormat_Then_ThrowException() {\n //then\n assertThrows(IllegalArgumentException.class, () -> {\n //when\n underTest.read(\"FhFXVE,,,\");\n });\n }",
"@Test\n public void findProductListExceptionTest(){\n }",
"@Test\n public void testUnwrapInvocationTargetExceptionWithOtherException() {\n RuntimeException rte = new RuntimeException();\n assertTrue(rte == ExceptionUtil.unwrapInvocationTargetException(rte));\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testScanItemLowException(){\n instance.scanItem(-0.5);\n }",
"@Test(expected = ArityMismatchException.class)\n public void testExecException1() throws Exception {\n mv.exec(new String[]{\"mv\", \"dir1\"}, io);\n }",
"private static void checkError(Class<?> expectedErrorClass, Throwable thrown,\n boolean in_invocation_exc) {\n if (expectedErrorClass != null && thrown == null) {\n fail(\"Expected error of type \" + expectedErrorClass);\n } else if (expectedErrorClass == null && thrown != null) {\n fail(\"Unexpected error \" + thrown);\n } else if (expectedErrorClass != null && thrown != null) {\n if (in_invocation_exc) {\n if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) {\n fail(\"Expected invocation target exception, but got \" + thrown);\n }\n thrown = thrown.getCause();\n }\n if (!expectedErrorClass.equals(thrown.getClass())) {\n thrown.printStackTrace(System.err);\n fail(\"Expected error of type \" + expectedErrorClass + \", but got \" +\n thrown.getClass());\n }\n }\n }",
"@Test(expected = Exception.class)\n public void shouldNotBookAnInvalidRoomAndInformTheClientWithAnException()\n\t throws Exception {\n\n\tfinal int index = 1;\n\tfinal String customerId = \"12\";\n\tfinal BookRoomCommand command = new BookRoomCommand(validRoomOffer,\n\t\tcustomerId);\n\n\twhen(dao.read(index)).thenReturn(validRoomOffer);\n\twhen(\n\t\tbuilder.createRoomOffer(Arrays.asList(validRoomOfferValues),\n\t\t\tindex)).thenThrow(\n\t\tnew ConstraintViolationException(\"Test\"));\n\twhen(isRoomBookable.isSatisfiedBy(validRoomOffer)).thenReturn(true);\n\n\tfinal UrlyBirdRoomOfferService roomOfferService = new UrlyBirdRoomOfferService(\n\t\tdao, builder, null, isRoomBookable);\n\n\troomOfferService.bookRoomOffer(command);\n }",
"@Test\n public void testSecurityConfiguredWithExceptionList() throws Exception {\n MockEndpoint result = getMockEndpoint(ExceptionBuilderTest.RESULT_QUEUE);\n result.expectedMessageCount(0);\n MockEndpoint mock = getMockEndpoint(ExceptionBuilderTest.ERROR_QUEUE);\n mock.expectedMessageCount(1);\n mock.expectedHeaderReceived(ExceptionBuilderTest.MESSAGE_INFO, \"Damm some access error\");\n try {\n template.sendBody(\"direct:a\", \"I am not allowed to access this\");\n Assert.fail(\"Should have thrown a GeneralSecurityException\");\n } catch (RuntimeCamelException e) {\n Assert.assertTrue(((e.getCause()) instanceof IllegalAccessException));\n // expected\n }\n MockEndpoint.assertIsSatisfied(result, mock);\n }",
"void exceptionCaught(Throwable cause) throws Exception;",
"void exceptionCaught(Throwable cause) throws Exception;",
"@Test(timeout = 4000)\n public void test15() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.bondContractDetails(2591, (ContractDetails) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"@Test\n public void testActiveTenantException(){\n ActiveTenantException exception = new ActiveTenantException(\"message\");\n assertEquals(\"message\",exception.getMessage());\n }",
"public void testWovenClassListenerExceptionDoesNotCauseClassLoadToFail() throws Exception {\n\t\tfinal AtomicInteger integer = new AtomicInteger(0);\n\t\tServiceRegistration<WovenClassListener> reg = getContext().registerService(\n\t\t\t\tWovenClassListener.class, \n\t\t\t\tnew WovenClassListener() {\n\t\t\t\t\tpublic void modified(WovenClass wovenClass) {\n\t\t\t\t\t\tinteger.set(1);\n\t\t\t\t\t\tthrow new RuntimeException();\n\t\t\t\t\t}\n\t\t\t\t}, \n\t\t\t\tnull);\n\t\ttry {\n\t\t\tregisterAll();\n\t\t\ttry {\n\t\t\t\tClass<?> clazz = weavingClasses.loadClass(TEST_CLASS_NAME);\n\t\t\t\tassertEquals(\"Listener not called\", 1, integer.get());\n\t\t\t\tassertDefinedClass(listenerWovenClass, clazz);\n\t\t\t\tassertStates(WovenClass.TRANSFORMED, WovenClass.DEFINED);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tunregisterAll();\n\t\t\t}\n\t\t}\n\t\tfinally {\n\t\t\treg.unregister();\n\t\t}\n\t}",
"@Test\n public void shouldThrowsConnectionExceptionWhenInnerMethodCallThrowsIt()\n throws Exception {\n\n executeAndExpectThrowsExceptions(\n ConnectionException.class,\n ConnectionException.class\n );\n }",
"@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }",
"public void testVerifyOrderDoesntMatter(){\n _throws _tt = new _throws( );\n _tt.add( RuntimeException.class );\n _tt.add( IOException.class );\n\n _throws _ot = _throws.of( IOException.class, RuntimeException.class );\n assertEquals( _tt, _ot );\n }",
"@Test(expectedExceptions = IOException.class, invocationCount = 3)\n public void testCase1() throws IOException {\n System.out.println(\"run testcase1\");\n throw new IOException(\"in test case 1\");\n }",
"@Test\n public void testDeleteHandlesOtherExceptionsCorrectly() throws Exception {\n\n AmazonServiceException exception = new AmazonServiceException(\"Boom!\");\n exception.setErrorCode(\"SomeOtherArbitraryCode\");\n testDelete(true, Optional.of(exception), true);\n }",
"@Test\n\t// exception for when user inputs negative number\n\tpublic void testHappy_throwsException_incorrectNumber() {\n\n\t\tAssertions.assertThrows(InputMismatchException.class, () -> {\n//\t ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n//\t System.setErr(new PrintStream(outputStream));\n\n\t\t\tByteArrayInputStream in = new ByteArrayInputStream(\"happy\\ntest\\n\".getBytes());\n\t\t\tSystem.setIn(in);\n\n\t\t\tMovie movie = new Movie();\n\t\t\tmovie.Play();\n\t\t});\n\t}",
"@Test(timeout = 4000)\n public void test105() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type type0 = Type.DOUBLE_TYPE;\n Type type1 = Type.VOID_TYPE;\n Type type2 = Type.BOOLEAN_TYPE;\n Type type3 = Type.FLOAT_TYPE;\n Type type4 = Type.SHORT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(158);\n Item item0 = classWriter0.key2;\n Item item1 = new Item(10);\n // Undeclared exception!\n try { \n frame0.execute(176, 0, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }"
] |
[
"0.73354197",
"0.72402024",
"0.69650537",
"0.6805045",
"0.67729276",
"0.662129",
"0.6219039",
"0.60806525",
"0.6060323",
"0.60510844",
"0.5915686",
"0.58446693",
"0.58271015",
"0.5816575",
"0.5778458",
"0.575248",
"0.57181644",
"0.5699392",
"0.56629276",
"0.5653994",
"0.56447905",
"0.56403077",
"0.56356084",
"0.5634752",
"0.5634356",
"0.5616239",
"0.5570952",
"0.55526066",
"0.554719",
"0.55410814",
"0.5534988",
"0.5529117",
"0.5521754",
"0.5512749",
"0.5510558",
"0.54955727",
"0.5492005",
"0.549035",
"0.54815817",
"0.5481113",
"0.5474829",
"0.54728997",
"0.5470462",
"0.5455317",
"0.5450993",
"0.54417443",
"0.54388636",
"0.54341817",
"0.5424739",
"0.5423458",
"0.541648",
"0.541095",
"0.53974277",
"0.539383",
"0.53532654",
"0.5349516",
"0.5344905",
"0.5342454",
"0.53397644",
"0.53335327",
"0.5313931",
"0.5309889",
"0.5308229",
"0.5300935",
"0.529637",
"0.52765894",
"0.5275062",
"0.5273442",
"0.52576506",
"0.5255531",
"0.5251961",
"0.5250013",
"0.5249936",
"0.52485526",
"0.524425",
"0.5244223",
"0.52428955",
"0.5232867",
"0.52252084",
"0.52202743",
"0.5215663",
"0.52120346",
"0.5210611",
"0.520817",
"0.5204132",
"0.5199929",
"0.51898295",
"0.51889414",
"0.518879",
"0.518879",
"0.518582",
"0.51747036",
"0.51657575",
"0.51654637",
"0.51645505",
"0.51635504",
"0.51580507",
"0.5156762",
"0.5156739",
"0.51535445"
] |
0.7352833
|
0
|
Asserts that the execution of consumer throws an exception of the specific class.
|
public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass, final String message) {
assertThrows(consumer, exceptionClass, ex -> {
}, message);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n assertThrows(consumer, exceptionClass, ex -> {\n });\n }",
"public static void assertThrowsCompletionException(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n try {\n consumer.accept(null);\n } catch (final CompletionException completionEx) {\n final Throwable ex = completionEx.getCause();\n if (ex.getClass() == exceptionClass) {\n return;\n }\n\n Assert.fail(String.format(\"unexpected exception of type %s was thrown\", ex.getClass()));\n }\n\n Assert.fail(String.format(\"expected exception of type %s was not thrown\", exceptionClass));\n }",
"@SuppressWarnings(\"unchecked\")\n private static <T> void assertThrows(\n final Consumer<Void> consumer,\n final Class<T> exceptionClass,\n final Consumer<T> assertExceptionProperties,\n final String message) {\n final String normalizedMessage = null == message ? \"\" : String.format(\"[%s]: \", message);\n try {\n consumer.accept(null);\n } catch (final Exception ex) {\n if (exceptionClass.isAssignableFrom(ex.getClass())) {\n assertExceptionProperties.accept((T) ex);\n return;\n }\n\n Assert.fail(String.format(\"%sunexpected exception of type %s was thrown: '%s'\", normalizedMessage, ex.getClass(), ex.getMessage()));\n }\n\n Assert.fail(String.format(\"%sexpected exception of type %s was not thrown\", normalizedMessage, exceptionClass));\n }",
"public static <T> void assertThrows(\n final Consumer<Void> consumer,\n final Class<T> exceptionClass,\n final Consumer<T> assertExceptionProperties) {\n assertThrows(consumer, exceptionClass, assertExceptionProperties, null);\n }",
"OOPExpectedException expect(Class<? extends Exception> expected);",
"private void checkException(Runnable function, Class<?> expectedEx){\n try {\n function.run();\n assert false;\n }catch (Exception e){\n assert e.getClass() == expectedEx;\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void test_voidFoo_exception() throws IllegalAccessException {\n\t\t\n\t}",
"@Test\n\tvoid qutTestForExeception() {\n\t\tassertThrows(MyException.class, () -> { nopt.quot(100, 0);});\n\t}",
"boolean assertExpected(Exception e);",
"OOPExpectedException expectMessage(String msg);",
"@Test\n\tpublic void exception() {\n\t\t// ReactiveValue wraps all exceptions in CompletionException.\n\t\tCompletionException ce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new ArithmeticException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t\tassertThat(p.keys(), contains(\"key\"));\n\t\t// If we try to throw another exception second time around, we will still get the first one.\n\t\tce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new IllegalStateException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t}",
"@Test\n void testDoThrow() {\n\n doThrow(RuntimeException.class).when(dao).foo();\n // doThrow(new RuntimeException()).when(dao).foo();\n\n RuntimeException exception = Assertions.assertThrows(NullPointerException.class,\n () -> service.fetchBookById(42)\n );\n assertThat(exception.getClass(), is(equalTo(NullPointerException.class)));\n }",
"public void testInheritance() {\n assertTrue(\"ContestEligibilityValidatorException does not subclass Exception.\",\n new ContestEligibilityValidatorException() instanceof Exception);\n }",
"@Test\n public void throwWrappedExOrOriginEx() {\n assertThatThrownBy(() -> repository.findMemberWithSpringEx())\n .isInstanceOf(EmptyResultDataAccessException.class);\n\n // 2) throw origin ex\n assertThatThrownBy(() -> repository.findMemberWithOriginEx())\n .isInstanceOf(NoResultException.class);\n }",
"@Test(expected=Exception.class)\n public void withdraw1100FromAccount_shouldThrowException() throws Exception{\n account.withdraw(1100);\n }",
"@Test(expected = Exception.class)\n public void testOrganiseTalkExceptionTrown() throws Exception {\n // single talk should throw exception\n String title = \"Single Talk\";\n try{\n \n ConferenceCommittee.acceptTalkSubmission(title, new ArrayList<Talk>());\n } catch (Exception e) {\n assertEquals(e.getMessage(), \"Cant organise talk - \" + title); // TODO: check spelling in assertion messages\n throw e;\n }\n fail(\"Exception not thrown\");\n\n }",
"@Test\n\tvoid testInvalidCustomerType() {\n\t\tCustomerTypeFactory customerTypeFactory = new CustomerTypeFactory();\n\t\tassertThrows(CustomerTypeException.class, () -> {\n\t\t\tcustomerTypeFactory.getCustomerType(\"gold\");\n\t });\n\t}",
"@Test(expected = IllegalStateException.class)\r\n public void dummyThrowsExceptionWhenAttacked() {\n\r\n dummy.takeAttack(AXE_ATTACK);\r\n }",
"@Test\n void checkedExceptionFromConstructorDoesNotAttemptToStoreAggregate() {\n UnitOfWork<?> uow = CurrentUnitOfWork.get();\n uow.executeWithResult(() -> testSubject.newInstance(() -> {\n throw new Exception(\"Throwing checked exception\");\n }), RuntimeException.class::isInstance);\n\n assertFalse(uow.isActive());\n assertFalse(uow.isRolledBack());\n assertTrue(uow.getExecutionResult().isExceptionResult());\n assertEquals(\"Throwing checked exception\", uow.getExecutionResult().getExceptionResult().getMessage());\n }",
"@Factory\r\n public static Matcher<Proc> raisesException(Class<? extends Exception> clazz) {\r\n return new Raises(IsThrowable.exception(clazz));\r\n }",
"@CustomExceptionTest(ArithmeticException.class)\n public static void test5() {\n }",
"@Test\r\n public void findUserInvalidUserId() {\r\n\r\n assertThatThrownBy(() -> {\r\n this.usermanagement.findUserRole(-1L);\r\n }).isInstanceOf(Exception.class);\r\n }",
"public void testApplicationsManagerExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n ApplicationsManagerException ce = new ApplicationsManagerException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", ce.getMessage());\n assertEquals(\"cause is incorrect.\", e, ce.getCause());\n }",
"@Test\n public void shouldThrowIfInvalidActionInVersion() {\n\n // GIVEN\n ActionProcessor processor = new ActionProcessor(false, false);\n List<Action> actionsToProcess = asList(ADD_FILE, REMOVE_FILE, ADD_FILE);\n DeltaSourceException caughtException = null;\n\n // WHEN\n try {\n processor.processActions(prepareChangesToProcess(actionsToProcess));\n } catch (DeltaSourceException e) {\n caughtException = e;\n }\n\n // THEN\n assertThat(caughtException, notNullValue());\n assertThat(caughtException.getSnapshotVersion().orElse(null), equalTo(SNAPSHOT_VERSION));\n assertThat(caughtException.getTablePath().orElse(null), equalTo(TABLE_PATH));\n }",
"@Ignore(value = \"TODO\")\n @Test(expected = IllegalStateException.class)\n public void shouldThrowExceptionWhenDeletingAPlayerInTheMiddleOfAGame() {\n\n }",
"@Test\n public void test01() throws MessagingException {\n\n }",
"@Test\r\n void notEnoughFunds() {\n BankAccount account = new BankAccount(9);\r\n\r\n // Assertion for exception\r\n assertThrows(NotEnoughFundsException.class, () -> account.withdraw(10),\r\n \"Balance must be greater than amount of withdrawal\");\r\n }",
"@Test(timeout = 4000)\n public void test14() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.contractMsg((Contract) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n public void CollectPaymentException(){\n instance.scanItem(-6);\n }",
"public interface OOPExpectedException {\n\n /**\n * @return the expected exception type.\n */\n Class<? extends Exception> getExpectedException();\n\n /**\n * expect an exception with the given type to be thrown.\n *\n * @param expected - the expected exception type.\n * @return this object.\n */\n OOPExpectedException expect(Class<? extends Exception> expected);\n\n /**\n * expect the exception message to have a message as its substring.\n * Should be okay if the message expected is a substring of the entire exception message.\n * Can expect several messages.\n * Example: for the exception message: \"aaa bbb ccc\", for an OOPExpectedException e:\n * e.expectMessage(\"aaa\").expectMessage(\"bb c\");\n * - This should be okay.\n *\n * @param msg - the expected message.\n * @return this object.\n */\n OOPExpectedException expectMessage(String msg);\n\n /**\n * checks that the exception that was thrown, and passed as parameter,\n * is of a type as expected. Also checks expected message are contained in the exception message.\n * <p>\n * Should handle inheritance. For example, for expected exception A, if an exception B was thrown,\n * and B extends A, then it should be okay.\n *\n * @param e - the exception that was thrown.\n * @return whether or not the actual exception was as expected.\n */\n boolean assertExpected(Exception e);\n\n\n /**\n * @return an instance of an ExpectedException with no exception or expected messages.\n * <p>\n * This static method must be implemented in OOPExpectedExceptionImpl and return an actual object.\n * <p>\n * If this is the state of the ExpectedException object, then no exception is expected to be thrown.\n * So, if an exception is thrown, an OOPResult with ERROR should be returned\n */\n static OOPExpectedException none() {\n return OOPExpectedExceptionImpl.none();\n }\n}",
"public boolean isException(Class paramClass) {\n/* 162 */ if (paramClass == null) {\n/* 163 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 168 */ return (isCheckedException(paramClass) && !isRemoteException(paramClass) && isValue(paramClass));\n/* */ }",
"private void verifyExceptionThrown(Exception thrown, Class expected) {\n\n boolean exceptionFound = false;\n Throwable cause = thrown;\n while (cause != null) {\n if (expected.isInstance(cause)) {\n // good\n exceptionFound = true;\n break;\n }\n else {\n cause = cause.getCause();\n }\n }\n if (!exceptionFound) {\n Assert.fail(expected.getSimpleName() + \" was expected but not thrown\", thrown);\n }\n }",
"@Test\n public void overdraw_forSavingsAccount_shouldThrowException() {\n\n AccountWithEnum accountWithEnum = new AccountWithEnum(100, 12345, AccountType.SAVINGS);\n\n Assert.assertThrows(ArithmeticException.class,\n () -> {accountWithEnum.withdraw(150);});\n }",
"@Test(expected = WorkflowExecutionException.class)\n public void testExecuteWorkflowExecutionException() {\n action.execute(state);\n action.execute(state);\n }",
"public void testApplicationsManagerExceptionAccuracy1() throws Exception {\n ApplicationsManagerException ce = new ApplicationsManagerException(\"test\");\n assertEquals(\"message is incorrect.\", \"test\", ce.getMessage());\n }",
"@Test\n void testWithdraw() {\n //Exception e = assertThrows(IllegalArgumentException.class, () -> new Client(\"Sir\", \"Jack\", \"1234567890\",\"H91R7YX\", \"432111111111\",\"[email protected]\", 20, 5000.00) );\n assertEquals(true, t1.isWithdraw());\n }",
"@Test\n\tpublic final void testWriteException() {\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our test assertion exception\"), \"Unit Tests\",\n\t\t\t\t\"Test of logging exception attachment.\", null);\n\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our top exception\",\n\t\t\t\t\t\tnew RuntimeException(\"This is our middle exception\",\n\t\t\t\t\t\t\t\tnew RuntimeException(\"This is our bottom exception\"))),\n\t\t\t\t\"Unit Tests\", \"Test of logging exception attachment with nested exceptions.\", null);\n\t}",
"@Test\n void testDothrow() {\n Examen examen = Datos.EXAMEN;\n doThrow(IllegalArgumentException.class).when(preguntaRepository).guardarVarias(anyList());\n\n examen.setPreguntas(Datos.PREGUNTAS);\n assertThrows(IllegalArgumentException.class, () -> {\n service.guardar(examen);\n });\n }",
"public <T extends Throwable> void validateRootCause(Runnable runnable, Class<T> exceptionClass) {\n try {\n runnable.run();\n Assert.fail(\"Expected \" + exceptionClass.getName());\n } catch (Exception e) {\n Assert.assertThat(getRootCause(e), instanceOf(exceptionClass));\n }\n }",
"@Test(expected = IllegalStateException.class)\n\tpublic void testException() {\n\t\tsubGen.subset(11);\n\t}",
"@Test(expected = InvalidArgumentException.class)\r\n\tpublic void throwInvalidArgumentException() {\r\n\t\tthis.validator.doValidation(null);\r\n\t}",
"@Test(expected = InsufficientResourcesException.class )\npublic void testSubtractBalance() throws InsufficientResourcesException {\n sut.subtractBalance(100,1,new Account());\n}",
"@Test\r\nvoid test1() {\r\n\tassertThrows(RuntimeException.class,()-> Q2=new ArrayBasedQ(-5));\r\n}",
"@Test\n public void handleSavvyTaskerChangedEvent_exceptionThrown_eventRaised() throws IOException {\n Storage storage = new StorageManager(new XmlAddressBookStorageExceptionThrowingStub(\"dummy\"), new JsonUserPrefsStorage(\"dummy\"));\n EventsCollector eventCollector = new EventsCollector();\n storage.handleSavvyTaskerChangedEvent(new SavvyTaskerChangedEvent(new SavvyTasker()));\n assertTrue(eventCollector.get(0) instanceof DataSavingExceptionEvent);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testScanItemHighException(){\n instance.scanItem(1E6);\n }",
"@Factory\r\n public static Matcher<Proc> raisesException() {\r\n return raises(IsThrowable.exception());\r\n }",
"@Test(description=\"Testing Report if Exception is Occurred (Throwing Exception Intentionally)\")\n\tpublic void test() {\n\t\tReporter.log(\"Running test Method from TC010 class\", true);\n\t\tthrow new IllegalStateException();\n\t}",
"@Test\n public void swallowExceptionsAspect() throws Exception {\n ProductDemand demand = swallowing(parseDoc().getDemands().get(0));\n\n // probably will throw IllegalStateException\n demand.fancyBusinessLogic();\n\n List<Throwable> exceptions = exceptions(demand);\n Assertions.assertThat(exceptions).isNotEmpty();\n }",
"@Test\n public void testSecurityConfiguredWithTwoExceptions() throws Exception {\n MockEndpoint result = getMockEndpoint(ExceptionBuilderTest.RESULT_QUEUE);\n result.expectedMessageCount(0);\n MockEndpoint mock = getMockEndpoint(ExceptionBuilderTest.SECURITY_ERROR_QUEUE);\n mock.expectedMessageCount(1);\n mock.expectedHeaderReceived(ExceptionBuilderTest.MESSAGE_INFO, \"Damm some security error\");\n try {\n template.sendBody(\"direct:a\", \"I am not allowed to do this\");\n Assert.fail(\"Should have thrown a GeneralSecurityException\");\n } catch (RuntimeCamelException e) {\n Assert.assertTrue(((e.getCause()) instanceof GeneralSecurityException));\n // expected\n }\n MockEndpoint.assertIsSatisfied(result, mock);\n }",
"@Test\n\tvoid new_GebruikerMetLegeEmail_ThrowsException() {\n\t\tAssertions.assertThrows(IllegalArgumentException.class, ()-> new Klant( \"test\", \"test\", \"test\", \"test\", null, 4000,\n\t\t\t\tnew Bedrijf()));\n\t}",
"@Test(expected= VotingException.class)\n public void VotingMadeByAuthorThrowsException() throws Exception {\n\n bob.upVote(bobPost);\n bob.downVote(bobPost);\n alice.upVote(question);\n alice.downVote(question);\n }",
"@Test\n public void shouldThrownAccessExceptionWhenInnerMethodCallThrowsIt()\n throws Exception {\n\n // p4ic4idea: use a public, non-abstract class with default constructor\n executeAndExpectThrowsExceptions(\n AccessException.AccessExceptionForTests.class,\n AccessException.class\n );\n }",
"@Test\n public void testInvalidTransactionIdException() throws Exception {\n\n // login with sufficient rights\n shop.login(admin.getUsername(), admin.getPassword());\n\n // verify correct exception is thrown\n testInvalidValues(InvalidTransactionIdException.class, invalidTransactionIDs,\n (transactionId) -> shop.receiveCashPayment(transactionId, 10));\n }",
"@FunctionalInterface\npublic interface ConsumerWithException<T> {\n void accept(T t) throws Exception;\n}",
"@FunctionalInterface\npublic interface ThrowingConsumer<T, E extends Exception> {\n\n void accept(T t) throws E;\n\n}",
"@Test\n public void testVisitThrowingException() {\n ResetBasicData.reset();\n\n Query<Customer> query = DB.find(Customer.class).setAutoTune(false)\n .fetchQuery(\"contacts\").where().gt(\"id\", 0).order(\"id\")\n .setMaxRows(2).query();\n\n final AtomicInteger counter = new AtomicInteger(0);\n\n assertThrows(IllegalStateException.class, () -> {\n query.findEachWhile(customer -> {\n counter.incrementAndGet();\n if (counter.intValue() > 0) {\n throw new IllegalStateException(\"cause a failure\");\n }\n return true;\n });\n });\n }",
"@Test(expected = ChangeException.class)\n public void testGiveChangeException()throws ChangeException{\n instance.scanItem(0.55);\n instance.scanItem(1.27);\n instance.giveChange();\n }",
"public void testExecute2() throws Exception {\r\n try {\r\n handler.execute(null);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // ok.\r\n }\r\n }",
"@Test\n public void removing_item_that_does_not_exist_should_throw_exception() {\n\n assertThrows(itemNotFoundException.class,\n ()->restaurant.removeFromMenu(\"French fries\"));\n }",
"public void testPersistenceExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n PersistenceException pe = new PersistenceException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", pe.getMessage());\n assertEquals(\"cause is incorrect.\", e, pe.getCause());\n }",
"public void testOneJob_ExceptionInProcess() {\n WARCBatchJob job = new TestWARCBatchJob() {\n public void processRecord(WARCRecord record, OutputStream os) {\n super.processRecord(record, new ByteArrayOutputStream());\n if (!((processed - 1) \n < RECORDS_PROCESSED_BEFORE_EXCEPTION)) {\n throw new ArgumentNotValid(\n \"testOneJob_ExceptionInProcess\");\n }\n }\n };\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n assertEquals(\"Should have gotten through all records\",\n TOTAL_RECORDS, processed);\n final int numExceptions = TOTAL_RECORDS\n - RECORDS_PROCESSED_BEFORE_EXCEPTION;\n if (numExceptions != es.length) {\n printExceptions(es);\n }\n assertEquals(\"Exceptions list should have one entry per failing record\",\n numExceptions, es.length);\n for (int i = 0; i < numExceptions; i++) {\n assertTrue(\"Exception should be of type ArgumentNotValid\",\n es[i] instanceof ArgumentNotValid);\n }\n }",
"@Test(expected = AppException.class)\n public void shouldThrowAnAppException() throws Exception {\n Mockito.when(customerRepository.existsByEmail(view.getEmail())).thenReturn(false);\n //error on saving\n Mockito.when(customerRepository.save(Mockito.any(Customer.class))).thenThrow(new DataAccessException(\"Could not save customer\") {});\n\n customerService.create(view);\n Mockito.verify(customerRepository).existsByEmail(view.getEmail());\n Mockito.verify(customerRepository).save(Mockito.any(Customer.class));\n }",
"@Test(timeout = 4000)\n public void test31() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.deltaNeutralValidation((-2236), (UnderComp) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"private Statement wrapExpectedExceptions(final Statement s, TestCandidate c, Object instance) {\n Test ann = c.method.getAnnotation(Test.class);\n \n // If there's no expected class, don't wrap. Eh, None is package-private...\n final Class<? extends Throwable> expectedClass = ann.expected();\n if (expectedClass.getName().equals(\"org.junit.Test$None\")) {\n return s;\n }\n \n return new Statement() {\n @Override\n public void evaluate() throws Throwable {\n try {\n s.evaluate();\n } catch (Throwable t) {\n if (!expectedClass.isInstance(t)) {\n throw t;\n }\n // We caught something that was expected. No worries then.\n return;\n }\n \n // If we're here this means we passed the test that expected a failure.\n Assert.fail(\"Expected an exception but the test passed: \"\n + expectedClass.getName());\n }\n };\n }",
"public void testHookException() throws Exception {\n\n\t\tregisterThisHook();\n\n\t\ttry {\n\t\t\tConfigurableWeavingHook hook = new ConfigurableWeavingHook();\n\t\t\thook.setExceptionToThrow(new RuntimeException());\n\t\t\tServiceRegistration<WeavingHook>reg3 = hook.register(getContext());\n\t\t\ttry {\n\t\t\t\tweavingClasses.loadClass(TEST_CLASS_NAME);\n\t\t\t\tfail(\"Should blow up\");\n\t\t\t} catch (ClassFormatError cfe) {\n\t\t\t\tassertWiring();\n\n\t\t\t\tassertTrue(\"Should be complete now\", wc.isWeavingComplete());\n\t\t\t\tassertNotSame(\"Should get copies of the byte array now\", realBytes, wc.getBytes());\n\t\t\t\tassertTrue(\"Content should still be equal though\", Arrays.equals(realBytes, wc.getBytes()));\n\t\t\t\tassertEquals(\"Wrong class\", TEST_CLASS_NAME, wc.getClassName());\n\t\t\t\tassertNull(\"Should not be set\", wc.getDefinedClass());\n\n\t\t\t\tassertImmutableList();\n\n\t\t\t\ttry {\n\t\t\t\t\twc.setBytes(fakeBytes);\n\t\t\t\t\tfail(\"Should not be possible\");\n\t\t\t\t} catch (IllegalStateException ise) {\n\t\t\t\t\t//No action needed\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treg3.unregister();\n\t\t} finally {\n\t\t\tunregisterThisHook();\n\t\t}\n\t}",
"@Test\r\n void enoughFunds() {\n BankAccount account = new BankAccount(100);\r\n \r\n // Assertion for no exceptions\r\n assertDoesNotThrow(() -> account.withdraw(100));\r\n }",
"@Test\r\n public void testCatch() {\n }",
"public void test_5() throws Exception {\n\t\ttry {\n\t\t\tBoundedSharedQueue theBSQ = new BoundedSharedQueue(0);\n\t\t\tfail(\"should throw an IllegalArgumentException\");\n\t\t}\n\t\tcatch(IllegalArgumentException ex) {\n\t\t\t// OK\n\t\t}\n\t}",
"@Test\r\n public void findserUserIdNull() {\r\n\r\n assertThatThrownBy(() -> {\r\n this.usermanagement.findUserRole(null);\r\n }).isInstanceOf(Exception.class);\r\n }",
"void assertExceptionIsThrown(\n String sql,\n String expectedMsgPattern);",
"@Test\n void bankListIsAccountExistToTransfer_accountExistButInsufficientMoneyToTransfer_throwsException() {\n ByteArrayOutputStream outContent = new ByteArrayOutputStream();\n System.setOut(new PrintStream(outContent));\n BankList bankList = new BankList(storage);\n Ui uiTest = new Ui();\n Bank newSavingAccount = new Saving(\"Test Saving Account\", 1000, 2000);\n Bank newInvestmentAccount = new Investment(\"Test Investment Account\", 1000);\n try {\n bankList.bankListAddBank(newSavingAccount, uiTest);\n bankList.bankListAddBank(newInvestmentAccount, uiTest);\n } catch (BankException error) {\n System.out.println(\"Expected no throw, but error thrown\");\n }\n\n assertEquals(2, bankList.getBankListSize());\n outContent.reset();\n\n BankException thrown = assertThrows(BankException.class, () ->\n bankList.getTransferBankType(\"Test Investment Account\",\n 2000),\n \"Expected bankListIsAccountExistToTransfer to throw, but it didn't\");\n assertEquals(\"Insufficient amount for transfer in this bank: Test Investment Account\",\n thrown.getMessage());\n\n }",
"public void testCanCreateInvoice() throws Exception {\n try {\n invoiceSessionBean.canCreateInvoice(-1);\n fail(\"Should throw IllegalArgumentException\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }",
"@Test\n public void testProductMatchingExceptionThrown() throws Exception {\n service.loadFiles(); \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Reptile\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match Products\", correctExceptionThrown);\n\n }",
"@Test\n public void testError() {\n FutureRecordMetadata future = new FutureRecordMetadata(asyncRequest(baseOffset, new CorruptRecordException(), 50L),\n relOffset, RecordBatch.NO_TIMESTAMP, 0, 0, Time.SYSTEM);\n assertThrows(ExecutionException.class, future::get);\n }",
"@Test\n public void spendShouldThrowNotFoundExceptionException() throws Exception {\n UnsecureCompactBuilder compactBuilder = new UnsecureCompactBuilder();\n\n NonceClaim nonceClaim = new NonceClaim();\n nonceClaim.setNonce(\"nonce\");\n\n String jwt = compactBuilder.claims(nonceClaim).build().toString();\n\n when(mockHashToken.run(\"nonce\")).thenReturn(\"hashedNonce\");\n when(mockNonceRepository.getByTypeAndNonce(NonceName.WELCOME, \"hashedNonce\")).thenThrow(RecordNotFoundException.class);\n\n NotFoundException actual = null;\n try {\n subject.spend(jwt, NonceName.WELCOME);\n } catch(NotFoundException e) {\n actual = e;\n }\n\n assertThat(actual, is(notNullValue()));\n assertThat(actual.getCause(), instanceOf(RecordNotFoundException.class));\n\n verify(mockNonceRepository, never()).setSpent(any(UUID.class));\n verify(mockNonceRepository, never()).revokeUnSpent(any(String.class), any(UUID.class));\n }",
"@Test\n void borrowBookThrowsOperationStoppedException3(){\n Book book1 = new Book(\"Garry\", \"Fiction\", 0, 1234);\n User user1 = new User(\"Gayal\", \"Rupasinghe\", \"[email protected]\");\n user1.setUserID(1L);\n book1.setBookID(1L);\n\n //User and book both exist.\n Optional<User> optionalUser1 = Optional.of(user1);\n Optional<Book> optionalBook1 = Optional.of(book1);\n given(userService.getUserByID(user1.getUserID())).willReturn(optionalUser1);\n given(bookRepository.findById(book1.getBookID())).willReturn(optionalBook1);\n\n //book is not already borrowed by user.\n given(bookRepository.isBookBorrowedByUser(user1.getUserID(), book1.getBookID())).willReturn(false);\n\n //when and then\n assertThatThrownBy(() -> testBookServiceImpl.borrowBook(user1.getUserID(), book1.getBookID()) )\n .isExactlyInstanceOf(OperationStoppedException.class)\n .hasMessage(\"Book is not available to borrow, quantity is 0.\");\n }",
"@Test\n public void testHighLevelWeapon_invalid_shouldPass(){\n RPGCharacter warrior = CreateCharacter.createChar(4);\n Axe axe = new Axe(ItemType.Weapon, \"Common Axe\", 2, SlotType.WeaponSlot, WeaponType.Axe, 7, 1.1);\n Throwable exception = assertThrows(InvalidWeaponException.class, ()-> warrior.EquipWeapon(axe), \"Your level is too low\");\n }",
"public void testPersistenceExceptionAccuracy1() throws Exception {\n PersistenceException pe = new PersistenceException(\"test\");\n assertEquals(\"message is incorrect.\", \"test\", pe.getMessage());\n }",
"@Test\n @Category(Negative.class)\n public void divide_correctValues_exceptionthrown() {\n thrownException.expect(ArithmeticException.class);\n// thrownException.expectMessage(\"cannot divide by zero!\");\n thrownException.expectMessage(containsString(\"cannot divide by zero!\"));\n result = calc.divide(5, 0);\n }",
"@Test\n public void testInvalidPaymentException() throws Exception {\n\n // login with sufficient rights\n shop.login(admin.getUsername(), admin.getPassword());\n\n // verify correct exception is thrown\n testInvalidValues(InvalidPaymentException.class, invalidPaymentAmounts,\n (cash) -> shop.receiveCashPayment(saleId, cash));\n }",
"@Test\n public void when_SourceHasInvalidFormat_Then_ThrowException() {\n //then\n assertThrows(IllegalArgumentException.class, () -> {\n //when\n underTest.read(\"FhFXVE,,,\");\n });\n }",
"@Test\n public void findProductListExceptionTest(){\n }",
"@Test\n public void testUnwrapInvocationTargetExceptionWithOtherException() {\n RuntimeException rte = new RuntimeException();\n assertTrue(rte == ExceptionUtil.unwrapInvocationTargetException(rte));\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testScanItemLowException(){\n instance.scanItem(-0.5);\n }",
"@Test(expected = ArityMismatchException.class)\n public void testExecException1() throws Exception {\n mv.exec(new String[]{\"mv\", \"dir1\"}, io);\n }",
"private static void checkError(Class<?> expectedErrorClass, Throwable thrown,\n boolean in_invocation_exc) {\n if (expectedErrorClass != null && thrown == null) {\n fail(\"Expected error of type \" + expectedErrorClass);\n } else if (expectedErrorClass == null && thrown != null) {\n fail(\"Unexpected error \" + thrown);\n } else if (expectedErrorClass != null && thrown != null) {\n if (in_invocation_exc) {\n if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) {\n fail(\"Expected invocation target exception, but got \" + thrown);\n }\n thrown = thrown.getCause();\n }\n if (!expectedErrorClass.equals(thrown.getClass())) {\n thrown.printStackTrace(System.err);\n fail(\"Expected error of type \" + expectedErrorClass + \", but got \" +\n thrown.getClass());\n }\n }\n }",
"@Test(expected = Exception.class)\n public void shouldNotBookAnInvalidRoomAndInformTheClientWithAnException()\n\t throws Exception {\n\n\tfinal int index = 1;\n\tfinal String customerId = \"12\";\n\tfinal BookRoomCommand command = new BookRoomCommand(validRoomOffer,\n\t\tcustomerId);\n\n\twhen(dao.read(index)).thenReturn(validRoomOffer);\n\twhen(\n\t\tbuilder.createRoomOffer(Arrays.asList(validRoomOfferValues),\n\t\t\tindex)).thenThrow(\n\t\tnew ConstraintViolationException(\"Test\"));\n\twhen(isRoomBookable.isSatisfiedBy(validRoomOffer)).thenReturn(true);\n\n\tfinal UrlyBirdRoomOfferService roomOfferService = new UrlyBirdRoomOfferService(\n\t\tdao, builder, null, isRoomBookable);\n\n\troomOfferService.bookRoomOffer(command);\n }",
"@Test\n public void testSecurityConfiguredWithExceptionList() throws Exception {\n MockEndpoint result = getMockEndpoint(ExceptionBuilderTest.RESULT_QUEUE);\n result.expectedMessageCount(0);\n MockEndpoint mock = getMockEndpoint(ExceptionBuilderTest.ERROR_QUEUE);\n mock.expectedMessageCount(1);\n mock.expectedHeaderReceived(ExceptionBuilderTest.MESSAGE_INFO, \"Damm some access error\");\n try {\n template.sendBody(\"direct:a\", \"I am not allowed to access this\");\n Assert.fail(\"Should have thrown a GeneralSecurityException\");\n } catch (RuntimeCamelException e) {\n Assert.assertTrue(((e.getCause()) instanceof IllegalAccessException));\n // expected\n }\n MockEndpoint.assertIsSatisfied(result, mock);\n }",
"void exceptionCaught(Throwable cause) throws Exception;",
"void exceptionCaught(Throwable cause) throws Exception;",
"@Test(timeout = 4000)\n public void test15() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.bondContractDetails(2591, (ContractDetails) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"@Test\n public void testActiveTenantException(){\n ActiveTenantException exception = new ActiveTenantException(\"message\");\n assertEquals(\"message\",exception.getMessage());\n }",
"public void testVerifyOrderDoesntMatter(){\n _throws _tt = new _throws( );\n _tt.add( RuntimeException.class );\n _tt.add( IOException.class );\n\n _throws _ot = _throws.of( IOException.class, RuntimeException.class );\n assertEquals( _tt, _ot );\n }",
"@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }",
"@Test\n public void shouldThrowsConnectionExceptionWhenInnerMethodCallThrowsIt()\n throws Exception {\n\n executeAndExpectThrowsExceptions(\n ConnectionException.class,\n ConnectionException.class\n );\n }",
"public void testWovenClassListenerExceptionDoesNotCauseClassLoadToFail() throws Exception {\n\t\tfinal AtomicInteger integer = new AtomicInteger(0);\n\t\tServiceRegistration<WovenClassListener> reg = getContext().registerService(\n\t\t\t\tWovenClassListener.class, \n\t\t\t\tnew WovenClassListener() {\n\t\t\t\t\tpublic void modified(WovenClass wovenClass) {\n\t\t\t\t\t\tinteger.set(1);\n\t\t\t\t\t\tthrow new RuntimeException();\n\t\t\t\t\t}\n\t\t\t\t}, \n\t\t\t\tnull);\n\t\ttry {\n\t\t\tregisterAll();\n\t\t\ttry {\n\t\t\t\tClass<?> clazz = weavingClasses.loadClass(TEST_CLASS_NAME);\n\t\t\t\tassertEquals(\"Listener not called\", 1, integer.get());\n\t\t\t\tassertDefinedClass(listenerWovenClass, clazz);\n\t\t\t\tassertStates(WovenClass.TRANSFORMED, WovenClass.DEFINED);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tunregisterAll();\n\t\t\t}\n\t\t}\n\t\tfinally {\n\t\t\treg.unregister();\n\t\t}\n\t}",
"@Test(expectedExceptions = IOException.class, invocationCount = 3)\n public void testCase1() throws IOException {\n System.out.println(\"run testcase1\");\n throw new IOException(\"in test case 1\");\n }",
"@Test\n\t// exception for when user inputs negative number\n\tpublic void testHappy_throwsException_incorrectNumber() {\n\n\t\tAssertions.assertThrows(InputMismatchException.class, () -> {\n//\t ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n//\t System.setErr(new PrintStream(outputStream));\n\n\t\t\tByteArrayInputStream in = new ByteArrayInputStream(\"happy\\ntest\\n\".getBytes());\n\t\t\tSystem.setIn(in);\n\n\t\t\tMovie movie = new Movie();\n\t\t\tmovie.Play();\n\t\t});\n\t}",
"@Test\n public void testDeleteHandlesOtherExceptionsCorrectly() throws Exception {\n\n AmazonServiceException exception = new AmazonServiceException(\"Boom!\");\n exception.setErrorCode(\"SomeOtherArbitraryCode\");\n testDelete(true, Optional.of(exception), true);\n }",
"@Test(timeout = 4000)\n public void test105() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type type0 = Type.DOUBLE_TYPE;\n Type type1 = Type.VOID_TYPE;\n Type type2 = Type.BOOLEAN_TYPE;\n Type type3 = Type.FLOAT_TYPE;\n Type type4 = Type.SHORT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(158);\n Item item0 = classWriter0.key2;\n Item item1 = new Item(10);\n // Undeclared exception!\n try { \n frame0.execute(176, 0, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }"
] |
[
"0.73529667",
"0.7335362",
"0.72398454",
"0.696542",
"0.6774592",
"0.66217554",
"0.6220063",
"0.6079813",
"0.606205",
"0.6052916",
"0.59141755",
"0.58447516",
"0.582652",
"0.5815717",
"0.5779362",
"0.5753496",
"0.5717353",
"0.5700016",
"0.56616646",
"0.5653899",
"0.5645655",
"0.5640451",
"0.56354815",
"0.56350833",
"0.56347775",
"0.561719",
"0.5571036",
"0.55530214",
"0.55467874",
"0.55422",
"0.5534085",
"0.5531274",
"0.55224323",
"0.5513838",
"0.5510552",
"0.54963624",
"0.5490732",
"0.5490233",
"0.54822385",
"0.5481061",
"0.54756194",
"0.54740727",
"0.54703397",
"0.5452323",
"0.5450311",
"0.544119",
"0.5438458",
"0.54322124",
"0.5424361",
"0.5422931",
"0.5416735",
"0.54100794",
"0.5397508",
"0.53916204",
"0.5351096",
"0.53479034",
"0.53448385",
"0.5342119",
"0.53400385",
"0.5332796",
"0.53128093",
"0.5309621",
"0.53094125",
"0.53021705",
"0.52944463",
"0.5276835",
"0.5275251",
"0.5272965",
"0.52580273",
"0.5256708",
"0.52521276",
"0.5250888",
"0.5249815",
"0.52484953",
"0.52441967",
"0.5244095",
"0.5243304",
"0.5232203",
"0.52262455",
"0.52199584",
"0.5216681",
"0.52115655",
"0.52102274",
"0.52079904",
"0.5205692",
"0.5202129",
"0.5189331",
"0.51881224",
"0.5186678",
"0.5186678",
"0.51864296",
"0.51758003",
"0.51649576",
"0.51641995",
"0.5164164",
"0.5163694",
"0.5158851",
"0.51581913",
"0.5155971",
"0.51542646"
] |
0.6804898
|
4
|
Asserts that the execution of consumer throws an exception of the specific class.
|
public static <T> void assertThrows(
final Consumer<Void> consumer,
final Class<T> exceptionClass,
final Consumer<T> assertExceptionProperties) {
assertThrows(consumer, exceptionClass, assertExceptionProperties, null);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n assertThrows(consumer, exceptionClass, ex -> {\n });\n }",
"public static void assertThrowsCompletionException(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n try {\n consumer.accept(null);\n } catch (final CompletionException completionEx) {\n final Throwable ex = completionEx.getCause();\n if (ex.getClass() == exceptionClass) {\n return;\n }\n\n Assert.fail(String.format(\"unexpected exception of type %s was thrown\", ex.getClass()));\n }\n\n Assert.fail(String.format(\"expected exception of type %s was not thrown\", exceptionClass));\n }",
"@SuppressWarnings(\"unchecked\")\n private static <T> void assertThrows(\n final Consumer<Void> consumer,\n final Class<T> exceptionClass,\n final Consumer<T> assertExceptionProperties,\n final String message) {\n final String normalizedMessage = null == message ? \"\" : String.format(\"[%s]: \", message);\n try {\n consumer.accept(null);\n } catch (final Exception ex) {\n if (exceptionClass.isAssignableFrom(ex.getClass())) {\n assertExceptionProperties.accept((T) ex);\n return;\n }\n\n Assert.fail(String.format(\"%sunexpected exception of type %s was thrown: '%s'\", normalizedMessage, ex.getClass(), ex.getMessage()));\n }\n\n Assert.fail(String.format(\"%sexpected exception of type %s was not thrown\", normalizedMessage, exceptionClass));\n }",
"public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass, final String message) {\n assertThrows(consumer, exceptionClass, ex -> {\n }, message);\n }",
"OOPExpectedException expect(Class<? extends Exception> expected);",
"private void checkException(Runnable function, Class<?> expectedEx){\n try {\n function.run();\n assert false;\n }catch (Exception e){\n assert e.getClass() == expectedEx;\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void test_voidFoo_exception() throws IllegalAccessException {\n\t\t\n\t}",
"@Test\n\tvoid qutTestForExeception() {\n\t\tassertThrows(MyException.class, () -> { nopt.quot(100, 0);});\n\t}",
"boolean assertExpected(Exception e);",
"OOPExpectedException expectMessage(String msg);",
"@Test\n\tpublic void exception() {\n\t\t// ReactiveValue wraps all exceptions in CompletionException.\n\t\tCompletionException ce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new ArithmeticException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t\tassertThat(p.keys(), contains(\"key\"));\n\t\t// If we try to throw another exception second time around, we will still get the first one.\n\t\tce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new IllegalStateException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t}",
"@Test\n void testDoThrow() {\n\n doThrow(RuntimeException.class).when(dao).foo();\n // doThrow(new RuntimeException()).when(dao).foo();\n\n RuntimeException exception = Assertions.assertThrows(NullPointerException.class,\n () -> service.fetchBookById(42)\n );\n assertThat(exception.getClass(), is(equalTo(NullPointerException.class)));\n }",
"public void testInheritance() {\n assertTrue(\"ContestEligibilityValidatorException does not subclass Exception.\",\n new ContestEligibilityValidatorException() instanceof Exception);\n }",
"@Test\n public void throwWrappedExOrOriginEx() {\n assertThatThrownBy(() -> repository.findMemberWithSpringEx())\n .isInstanceOf(EmptyResultDataAccessException.class);\n\n // 2) throw origin ex\n assertThatThrownBy(() -> repository.findMemberWithOriginEx())\n .isInstanceOf(NoResultException.class);\n }",
"@Test(expected=Exception.class)\n public void withdraw1100FromAccount_shouldThrowException() throws Exception{\n account.withdraw(1100);\n }",
"@Test(expected = Exception.class)\n public void testOrganiseTalkExceptionTrown() throws Exception {\n // single talk should throw exception\n String title = \"Single Talk\";\n try{\n \n ConferenceCommittee.acceptTalkSubmission(title, new ArrayList<Talk>());\n } catch (Exception e) {\n assertEquals(e.getMessage(), \"Cant organise talk - \" + title); // TODO: check spelling in assertion messages\n throw e;\n }\n fail(\"Exception not thrown\");\n\n }",
"@Test\n\tvoid testInvalidCustomerType() {\n\t\tCustomerTypeFactory customerTypeFactory = new CustomerTypeFactory();\n\t\tassertThrows(CustomerTypeException.class, () -> {\n\t\t\tcustomerTypeFactory.getCustomerType(\"gold\");\n\t });\n\t}",
"@Test(expected = IllegalStateException.class)\r\n public void dummyThrowsExceptionWhenAttacked() {\n\r\n dummy.takeAttack(AXE_ATTACK);\r\n }",
"@Test\n void checkedExceptionFromConstructorDoesNotAttemptToStoreAggregate() {\n UnitOfWork<?> uow = CurrentUnitOfWork.get();\n uow.executeWithResult(() -> testSubject.newInstance(() -> {\n throw new Exception(\"Throwing checked exception\");\n }), RuntimeException.class::isInstance);\n\n assertFalse(uow.isActive());\n assertFalse(uow.isRolledBack());\n assertTrue(uow.getExecutionResult().isExceptionResult());\n assertEquals(\"Throwing checked exception\", uow.getExecutionResult().getExceptionResult().getMessage());\n }",
"@Factory\r\n public static Matcher<Proc> raisesException(Class<? extends Exception> clazz) {\r\n return new Raises(IsThrowable.exception(clazz));\r\n }",
"@CustomExceptionTest(ArithmeticException.class)\n public static void test5() {\n }",
"@Test\r\n public void findUserInvalidUserId() {\r\n\r\n assertThatThrownBy(() -> {\r\n this.usermanagement.findUserRole(-1L);\r\n }).isInstanceOf(Exception.class);\r\n }",
"public void testApplicationsManagerExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n ApplicationsManagerException ce = new ApplicationsManagerException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", ce.getMessage());\n assertEquals(\"cause is incorrect.\", e, ce.getCause());\n }",
"@Test\n public void shouldThrowIfInvalidActionInVersion() {\n\n // GIVEN\n ActionProcessor processor = new ActionProcessor(false, false);\n List<Action> actionsToProcess = asList(ADD_FILE, REMOVE_FILE, ADD_FILE);\n DeltaSourceException caughtException = null;\n\n // WHEN\n try {\n processor.processActions(prepareChangesToProcess(actionsToProcess));\n } catch (DeltaSourceException e) {\n caughtException = e;\n }\n\n // THEN\n assertThat(caughtException, notNullValue());\n assertThat(caughtException.getSnapshotVersion().orElse(null), equalTo(SNAPSHOT_VERSION));\n assertThat(caughtException.getTablePath().orElse(null), equalTo(TABLE_PATH));\n }",
"@Ignore(value = \"TODO\")\n @Test(expected = IllegalStateException.class)\n public void shouldThrowExceptionWhenDeletingAPlayerInTheMiddleOfAGame() {\n\n }",
"@Test\n public void test01() throws MessagingException {\n\n }",
"@Test\r\n void notEnoughFunds() {\n BankAccount account = new BankAccount(9);\r\n\r\n // Assertion for exception\r\n assertThrows(NotEnoughFundsException.class, () -> account.withdraw(10),\r\n \"Balance must be greater than amount of withdrawal\");\r\n }",
"@Test(timeout = 4000)\n public void test14() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.contractMsg((Contract) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n public void CollectPaymentException(){\n instance.scanItem(-6);\n }",
"public interface OOPExpectedException {\n\n /**\n * @return the expected exception type.\n */\n Class<? extends Exception> getExpectedException();\n\n /**\n * expect an exception with the given type to be thrown.\n *\n * @param expected - the expected exception type.\n * @return this object.\n */\n OOPExpectedException expect(Class<? extends Exception> expected);\n\n /**\n * expect the exception message to have a message as its substring.\n * Should be okay if the message expected is a substring of the entire exception message.\n * Can expect several messages.\n * Example: for the exception message: \"aaa bbb ccc\", for an OOPExpectedException e:\n * e.expectMessage(\"aaa\").expectMessage(\"bb c\");\n * - This should be okay.\n *\n * @param msg - the expected message.\n * @return this object.\n */\n OOPExpectedException expectMessage(String msg);\n\n /**\n * checks that the exception that was thrown, and passed as parameter,\n * is of a type as expected. Also checks expected message are contained in the exception message.\n * <p>\n * Should handle inheritance. For example, for expected exception A, if an exception B was thrown,\n * and B extends A, then it should be okay.\n *\n * @param e - the exception that was thrown.\n * @return whether or not the actual exception was as expected.\n */\n boolean assertExpected(Exception e);\n\n\n /**\n * @return an instance of an ExpectedException with no exception or expected messages.\n * <p>\n * This static method must be implemented in OOPExpectedExceptionImpl and return an actual object.\n * <p>\n * If this is the state of the ExpectedException object, then no exception is expected to be thrown.\n * So, if an exception is thrown, an OOPResult with ERROR should be returned\n */\n static OOPExpectedException none() {\n return OOPExpectedExceptionImpl.none();\n }\n}",
"public boolean isException(Class paramClass) {\n/* 162 */ if (paramClass == null) {\n/* 163 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 168 */ return (isCheckedException(paramClass) && !isRemoteException(paramClass) && isValue(paramClass));\n/* */ }",
"private void verifyExceptionThrown(Exception thrown, Class expected) {\n\n boolean exceptionFound = false;\n Throwable cause = thrown;\n while (cause != null) {\n if (expected.isInstance(cause)) {\n // good\n exceptionFound = true;\n break;\n }\n else {\n cause = cause.getCause();\n }\n }\n if (!exceptionFound) {\n Assert.fail(expected.getSimpleName() + \" was expected but not thrown\", thrown);\n }\n }",
"@Test\n public void overdraw_forSavingsAccount_shouldThrowException() {\n\n AccountWithEnum accountWithEnum = new AccountWithEnum(100, 12345, AccountType.SAVINGS);\n\n Assert.assertThrows(ArithmeticException.class,\n () -> {accountWithEnum.withdraw(150);});\n }",
"@Test(expected = WorkflowExecutionException.class)\n public void testExecuteWorkflowExecutionException() {\n action.execute(state);\n action.execute(state);\n }",
"public void testApplicationsManagerExceptionAccuracy1() throws Exception {\n ApplicationsManagerException ce = new ApplicationsManagerException(\"test\");\n assertEquals(\"message is incorrect.\", \"test\", ce.getMessage());\n }",
"@Test\n void testWithdraw() {\n //Exception e = assertThrows(IllegalArgumentException.class, () -> new Client(\"Sir\", \"Jack\", \"1234567890\",\"H91R7YX\", \"432111111111\",\"[email protected]\", 20, 5000.00) );\n assertEquals(true, t1.isWithdraw());\n }",
"@Test\n\tpublic final void testWriteException() {\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our test assertion exception\"), \"Unit Tests\",\n\t\t\t\t\"Test of logging exception attachment.\", null);\n\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our top exception\",\n\t\t\t\t\t\tnew RuntimeException(\"This is our middle exception\",\n\t\t\t\t\t\t\t\tnew RuntimeException(\"This is our bottom exception\"))),\n\t\t\t\t\"Unit Tests\", \"Test of logging exception attachment with nested exceptions.\", null);\n\t}",
"@Test\n void testDothrow() {\n Examen examen = Datos.EXAMEN;\n doThrow(IllegalArgumentException.class).when(preguntaRepository).guardarVarias(anyList());\n\n examen.setPreguntas(Datos.PREGUNTAS);\n assertThrows(IllegalArgumentException.class, () -> {\n service.guardar(examen);\n });\n }",
"public <T extends Throwable> void validateRootCause(Runnable runnable, Class<T> exceptionClass) {\n try {\n runnable.run();\n Assert.fail(\"Expected \" + exceptionClass.getName());\n } catch (Exception e) {\n Assert.assertThat(getRootCause(e), instanceOf(exceptionClass));\n }\n }",
"@Test(expected = IllegalStateException.class)\n\tpublic void testException() {\n\t\tsubGen.subset(11);\n\t}",
"@Test(expected = InvalidArgumentException.class)\r\n\tpublic void throwInvalidArgumentException() {\r\n\t\tthis.validator.doValidation(null);\r\n\t}",
"@Test(expected = InsufficientResourcesException.class )\npublic void testSubtractBalance() throws InsufficientResourcesException {\n sut.subtractBalance(100,1,new Account());\n}",
"@Test\r\nvoid test1() {\r\n\tassertThrows(RuntimeException.class,()-> Q2=new ArrayBasedQ(-5));\r\n}",
"@Test\n public void handleSavvyTaskerChangedEvent_exceptionThrown_eventRaised() throws IOException {\n Storage storage = new StorageManager(new XmlAddressBookStorageExceptionThrowingStub(\"dummy\"), new JsonUserPrefsStorage(\"dummy\"));\n EventsCollector eventCollector = new EventsCollector();\n storage.handleSavvyTaskerChangedEvent(new SavvyTaskerChangedEvent(new SavvyTasker()));\n assertTrue(eventCollector.get(0) instanceof DataSavingExceptionEvent);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testScanItemHighException(){\n instance.scanItem(1E6);\n }",
"@Factory\r\n public static Matcher<Proc> raisesException() {\r\n return raises(IsThrowable.exception());\r\n }",
"@Test(description=\"Testing Report if Exception is Occurred (Throwing Exception Intentionally)\")\n\tpublic void test() {\n\t\tReporter.log(\"Running test Method from TC010 class\", true);\n\t\tthrow new IllegalStateException();\n\t}",
"@Test\n public void swallowExceptionsAspect() throws Exception {\n ProductDemand demand = swallowing(parseDoc().getDemands().get(0));\n\n // probably will throw IllegalStateException\n demand.fancyBusinessLogic();\n\n List<Throwable> exceptions = exceptions(demand);\n Assertions.assertThat(exceptions).isNotEmpty();\n }",
"@Test\n public void testSecurityConfiguredWithTwoExceptions() throws Exception {\n MockEndpoint result = getMockEndpoint(ExceptionBuilderTest.RESULT_QUEUE);\n result.expectedMessageCount(0);\n MockEndpoint mock = getMockEndpoint(ExceptionBuilderTest.SECURITY_ERROR_QUEUE);\n mock.expectedMessageCount(1);\n mock.expectedHeaderReceived(ExceptionBuilderTest.MESSAGE_INFO, \"Damm some security error\");\n try {\n template.sendBody(\"direct:a\", \"I am not allowed to do this\");\n Assert.fail(\"Should have thrown a GeneralSecurityException\");\n } catch (RuntimeCamelException e) {\n Assert.assertTrue(((e.getCause()) instanceof GeneralSecurityException));\n // expected\n }\n MockEndpoint.assertIsSatisfied(result, mock);\n }",
"@Test\n\tvoid new_GebruikerMetLegeEmail_ThrowsException() {\n\t\tAssertions.assertThrows(IllegalArgumentException.class, ()-> new Klant( \"test\", \"test\", \"test\", \"test\", null, 4000,\n\t\t\t\tnew Bedrijf()));\n\t}",
"@Test(expected= VotingException.class)\n public void VotingMadeByAuthorThrowsException() throws Exception {\n\n bob.upVote(bobPost);\n bob.downVote(bobPost);\n alice.upVote(question);\n alice.downVote(question);\n }",
"@Test\n public void shouldThrownAccessExceptionWhenInnerMethodCallThrowsIt()\n throws Exception {\n\n // p4ic4idea: use a public, non-abstract class with default constructor\n executeAndExpectThrowsExceptions(\n AccessException.AccessExceptionForTests.class,\n AccessException.class\n );\n }",
"@Test\n public void testInvalidTransactionIdException() throws Exception {\n\n // login with sufficient rights\n shop.login(admin.getUsername(), admin.getPassword());\n\n // verify correct exception is thrown\n testInvalidValues(InvalidTransactionIdException.class, invalidTransactionIDs,\n (transactionId) -> shop.receiveCashPayment(transactionId, 10));\n }",
"@FunctionalInterface\npublic interface ConsumerWithException<T> {\n void accept(T t) throws Exception;\n}",
"@FunctionalInterface\npublic interface ThrowingConsumer<T, E extends Exception> {\n\n void accept(T t) throws E;\n\n}",
"@Test\n public void testVisitThrowingException() {\n ResetBasicData.reset();\n\n Query<Customer> query = DB.find(Customer.class).setAutoTune(false)\n .fetchQuery(\"contacts\").where().gt(\"id\", 0).order(\"id\")\n .setMaxRows(2).query();\n\n final AtomicInteger counter = new AtomicInteger(0);\n\n assertThrows(IllegalStateException.class, () -> {\n query.findEachWhile(customer -> {\n counter.incrementAndGet();\n if (counter.intValue() > 0) {\n throw new IllegalStateException(\"cause a failure\");\n }\n return true;\n });\n });\n }",
"@Test(expected = ChangeException.class)\n public void testGiveChangeException()throws ChangeException{\n instance.scanItem(0.55);\n instance.scanItem(1.27);\n instance.giveChange();\n }",
"public void testExecute2() throws Exception {\r\n try {\r\n handler.execute(null);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // ok.\r\n }\r\n }",
"@Test\n public void removing_item_that_does_not_exist_should_throw_exception() {\n\n assertThrows(itemNotFoundException.class,\n ()->restaurant.removeFromMenu(\"French fries\"));\n }",
"public void testPersistenceExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n PersistenceException pe = new PersistenceException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", pe.getMessage());\n assertEquals(\"cause is incorrect.\", e, pe.getCause());\n }",
"public void testOneJob_ExceptionInProcess() {\n WARCBatchJob job = new TestWARCBatchJob() {\n public void processRecord(WARCRecord record, OutputStream os) {\n super.processRecord(record, new ByteArrayOutputStream());\n if (!((processed - 1) \n < RECORDS_PROCESSED_BEFORE_EXCEPTION)) {\n throw new ArgumentNotValid(\n \"testOneJob_ExceptionInProcess\");\n }\n }\n };\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n assertEquals(\"Should have gotten through all records\",\n TOTAL_RECORDS, processed);\n final int numExceptions = TOTAL_RECORDS\n - RECORDS_PROCESSED_BEFORE_EXCEPTION;\n if (numExceptions != es.length) {\n printExceptions(es);\n }\n assertEquals(\"Exceptions list should have one entry per failing record\",\n numExceptions, es.length);\n for (int i = 0; i < numExceptions; i++) {\n assertTrue(\"Exception should be of type ArgumentNotValid\",\n es[i] instanceof ArgumentNotValid);\n }\n }",
"@Test(expected = AppException.class)\n public void shouldThrowAnAppException() throws Exception {\n Mockito.when(customerRepository.existsByEmail(view.getEmail())).thenReturn(false);\n //error on saving\n Mockito.when(customerRepository.save(Mockito.any(Customer.class))).thenThrow(new DataAccessException(\"Could not save customer\") {});\n\n customerService.create(view);\n Mockito.verify(customerRepository).existsByEmail(view.getEmail());\n Mockito.verify(customerRepository).save(Mockito.any(Customer.class));\n }",
"@Test(timeout = 4000)\n public void test31() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.deltaNeutralValidation((-2236), (UnderComp) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"private Statement wrapExpectedExceptions(final Statement s, TestCandidate c, Object instance) {\n Test ann = c.method.getAnnotation(Test.class);\n \n // If there's no expected class, don't wrap. Eh, None is package-private...\n final Class<? extends Throwable> expectedClass = ann.expected();\n if (expectedClass.getName().equals(\"org.junit.Test$None\")) {\n return s;\n }\n \n return new Statement() {\n @Override\n public void evaluate() throws Throwable {\n try {\n s.evaluate();\n } catch (Throwable t) {\n if (!expectedClass.isInstance(t)) {\n throw t;\n }\n // We caught something that was expected. No worries then.\n return;\n }\n \n // If we're here this means we passed the test that expected a failure.\n Assert.fail(\"Expected an exception but the test passed: \"\n + expectedClass.getName());\n }\n };\n }",
"public void testHookException() throws Exception {\n\n\t\tregisterThisHook();\n\n\t\ttry {\n\t\t\tConfigurableWeavingHook hook = new ConfigurableWeavingHook();\n\t\t\thook.setExceptionToThrow(new RuntimeException());\n\t\t\tServiceRegistration<WeavingHook>reg3 = hook.register(getContext());\n\t\t\ttry {\n\t\t\t\tweavingClasses.loadClass(TEST_CLASS_NAME);\n\t\t\t\tfail(\"Should blow up\");\n\t\t\t} catch (ClassFormatError cfe) {\n\t\t\t\tassertWiring();\n\n\t\t\t\tassertTrue(\"Should be complete now\", wc.isWeavingComplete());\n\t\t\t\tassertNotSame(\"Should get copies of the byte array now\", realBytes, wc.getBytes());\n\t\t\t\tassertTrue(\"Content should still be equal though\", Arrays.equals(realBytes, wc.getBytes()));\n\t\t\t\tassertEquals(\"Wrong class\", TEST_CLASS_NAME, wc.getClassName());\n\t\t\t\tassertNull(\"Should not be set\", wc.getDefinedClass());\n\n\t\t\t\tassertImmutableList();\n\n\t\t\t\ttry {\n\t\t\t\t\twc.setBytes(fakeBytes);\n\t\t\t\t\tfail(\"Should not be possible\");\n\t\t\t\t} catch (IllegalStateException ise) {\n\t\t\t\t\t//No action needed\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treg3.unregister();\n\t\t} finally {\n\t\t\tunregisterThisHook();\n\t\t}\n\t}",
"@Test\r\n void enoughFunds() {\n BankAccount account = new BankAccount(100);\r\n \r\n // Assertion for no exceptions\r\n assertDoesNotThrow(() -> account.withdraw(100));\r\n }",
"@Test\r\n public void testCatch() {\n }",
"public void test_5() throws Exception {\n\t\ttry {\n\t\t\tBoundedSharedQueue theBSQ = new BoundedSharedQueue(0);\n\t\t\tfail(\"should throw an IllegalArgumentException\");\n\t\t}\n\t\tcatch(IllegalArgumentException ex) {\n\t\t\t// OK\n\t\t}\n\t}",
"@Test\r\n public void findserUserIdNull() {\r\n\r\n assertThatThrownBy(() -> {\r\n this.usermanagement.findUserRole(null);\r\n }).isInstanceOf(Exception.class);\r\n }",
"void assertExceptionIsThrown(\n String sql,\n String expectedMsgPattern);",
"@Test\n void bankListIsAccountExistToTransfer_accountExistButInsufficientMoneyToTransfer_throwsException() {\n ByteArrayOutputStream outContent = new ByteArrayOutputStream();\n System.setOut(new PrintStream(outContent));\n BankList bankList = new BankList(storage);\n Ui uiTest = new Ui();\n Bank newSavingAccount = new Saving(\"Test Saving Account\", 1000, 2000);\n Bank newInvestmentAccount = new Investment(\"Test Investment Account\", 1000);\n try {\n bankList.bankListAddBank(newSavingAccount, uiTest);\n bankList.bankListAddBank(newInvestmentAccount, uiTest);\n } catch (BankException error) {\n System.out.println(\"Expected no throw, but error thrown\");\n }\n\n assertEquals(2, bankList.getBankListSize());\n outContent.reset();\n\n BankException thrown = assertThrows(BankException.class, () ->\n bankList.getTransferBankType(\"Test Investment Account\",\n 2000),\n \"Expected bankListIsAccountExistToTransfer to throw, but it didn't\");\n assertEquals(\"Insufficient amount for transfer in this bank: Test Investment Account\",\n thrown.getMessage());\n\n }",
"public void testCanCreateInvoice() throws Exception {\n try {\n invoiceSessionBean.canCreateInvoice(-1);\n fail(\"Should throw IllegalArgumentException\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }",
"@Test\n public void testProductMatchingExceptionThrown() throws Exception {\n service.loadFiles(); \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Reptile\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match Products\", correctExceptionThrown);\n\n }",
"@Test\n public void testError() {\n FutureRecordMetadata future = new FutureRecordMetadata(asyncRequest(baseOffset, new CorruptRecordException(), 50L),\n relOffset, RecordBatch.NO_TIMESTAMP, 0, 0, Time.SYSTEM);\n assertThrows(ExecutionException.class, future::get);\n }",
"@Test\n public void spendShouldThrowNotFoundExceptionException() throws Exception {\n UnsecureCompactBuilder compactBuilder = new UnsecureCompactBuilder();\n\n NonceClaim nonceClaim = new NonceClaim();\n nonceClaim.setNonce(\"nonce\");\n\n String jwt = compactBuilder.claims(nonceClaim).build().toString();\n\n when(mockHashToken.run(\"nonce\")).thenReturn(\"hashedNonce\");\n when(mockNonceRepository.getByTypeAndNonce(NonceName.WELCOME, \"hashedNonce\")).thenThrow(RecordNotFoundException.class);\n\n NotFoundException actual = null;\n try {\n subject.spend(jwt, NonceName.WELCOME);\n } catch(NotFoundException e) {\n actual = e;\n }\n\n assertThat(actual, is(notNullValue()));\n assertThat(actual.getCause(), instanceOf(RecordNotFoundException.class));\n\n verify(mockNonceRepository, never()).setSpent(any(UUID.class));\n verify(mockNonceRepository, never()).revokeUnSpent(any(String.class), any(UUID.class));\n }",
"@Test\n void borrowBookThrowsOperationStoppedException3(){\n Book book1 = new Book(\"Garry\", \"Fiction\", 0, 1234);\n User user1 = new User(\"Gayal\", \"Rupasinghe\", \"[email protected]\");\n user1.setUserID(1L);\n book1.setBookID(1L);\n\n //User and book both exist.\n Optional<User> optionalUser1 = Optional.of(user1);\n Optional<Book> optionalBook1 = Optional.of(book1);\n given(userService.getUserByID(user1.getUserID())).willReturn(optionalUser1);\n given(bookRepository.findById(book1.getBookID())).willReturn(optionalBook1);\n\n //book is not already borrowed by user.\n given(bookRepository.isBookBorrowedByUser(user1.getUserID(), book1.getBookID())).willReturn(false);\n\n //when and then\n assertThatThrownBy(() -> testBookServiceImpl.borrowBook(user1.getUserID(), book1.getBookID()) )\n .isExactlyInstanceOf(OperationStoppedException.class)\n .hasMessage(\"Book is not available to borrow, quantity is 0.\");\n }",
"@Test\n public void testHighLevelWeapon_invalid_shouldPass(){\n RPGCharacter warrior = CreateCharacter.createChar(4);\n Axe axe = new Axe(ItemType.Weapon, \"Common Axe\", 2, SlotType.WeaponSlot, WeaponType.Axe, 7, 1.1);\n Throwable exception = assertThrows(InvalidWeaponException.class, ()-> warrior.EquipWeapon(axe), \"Your level is too low\");\n }",
"public void testPersistenceExceptionAccuracy1() throws Exception {\n PersistenceException pe = new PersistenceException(\"test\");\n assertEquals(\"message is incorrect.\", \"test\", pe.getMessage());\n }",
"@Test\n @Category(Negative.class)\n public void divide_correctValues_exceptionthrown() {\n thrownException.expect(ArithmeticException.class);\n// thrownException.expectMessage(\"cannot divide by zero!\");\n thrownException.expectMessage(containsString(\"cannot divide by zero!\"));\n result = calc.divide(5, 0);\n }",
"@Test\n public void testInvalidPaymentException() throws Exception {\n\n // login with sufficient rights\n shop.login(admin.getUsername(), admin.getPassword());\n\n // verify correct exception is thrown\n testInvalidValues(InvalidPaymentException.class, invalidPaymentAmounts,\n (cash) -> shop.receiveCashPayment(saleId, cash));\n }",
"@Test\n public void when_SourceHasInvalidFormat_Then_ThrowException() {\n //then\n assertThrows(IllegalArgumentException.class, () -> {\n //when\n underTest.read(\"FhFXVE,,,\");\n });\n }",
"@Test\n public void findProductListExceptionTest(){\n }",
"@Test\n public void testUnwrapInvocationTargetExceptionWithOtherException() {\n RuntimeException rte = new RuntimeException();\n assertTrue(rte == ExceptionUtil.unwrapInvocationTargetException(rte));\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testScanItemLowException(){\n instance.scanItem(-0.5);\n }",
"@Test(expected = ArityMismatchException.class)\n public void testExecException1() throws Exception {\n mv.exec(new String[]{\"mv\", \"dir1\"}, io);\n }",
"private static void checkError(Class<?> expectedErrorClass, Throwable thrown,\n boolean in_invocation_exc) {\n if (expectedErrorClass != null && thrown == null) {\n fail(\"Expected error of type \" + expectedErrorClass);\n } else if (expectedErrorClass == null && thrown != null) {\n fail(\"Unexpected error \" + thrown);\n } else if (expectedErrorClass != null && thrown != null) {\n if (in_invocation_exc) {\n if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) {\n fail(\"Expected invocation target exception, but got \" + thrown);\n }\n thrown = thrown.getCause();\n }\n if (!expectedErrorClass.equals(thrown.getClass())) {\n thrown.printStackTrace(System.err);\n fail(\"Expected error of type \" + expectedErrorClass + \", but got \" +\n thrown.getClass());\n }\n }\n }",
"@Test(expected = Exception.class)\n public void shouldNotBookAnInvalidRoomAndInformTheClientWithAnException()\n\t throws Exception {\n\n\tfinal int index = 1;\n\tfinal String customerId = \"12\";\n\tfinal BookRoomCommand command = new BookRoomCommand(validRoomOffer,\n\t\tcustomerId);\n\n\twhen(dao.read(index)).thenReturn(validRoomOffer);\n\twhen(\n\t\tbuilder.createRoomOffer(Arrays.asList(validRoomOfferValues),\n\t\t\tindex)).thenThrow(\n\t\tnew ConstraintViolationException(\"Test\"));\n\twhen(isRoomBookable.isSatisfiedBy(validRoomOffer)).thenReturn(true);\n\n\tfinal UrlyBirdRoomOfferService roomOfferService = new UrlyBirdRoomOfferService(\n\t\tdao, builder, null, isRoomBookable);\n\n\troomOfferService.bookRoomOffer(command);\n }",
"@Test\n public void testSecurityConfiguredWithExceptionList() throws Exception {\n MockEndpoint result = getMockEndpoint(ExceptionBuilderTest.RESULT_QUEUE);\n result.expectedMessageCount(0);\n MockEndpoint mock = getMockEndpoint(ExceptionBuilderTest.ERROR_QUEUE);\n mock.expectedMessageCount(1);\n mock.expectedHeaderReceived(ExceptionBuilderTest.MESSAGE_INFO, \"Damm some access error\");\n try {\n template.sendBody(\"direct:a\", \"I am not allowed to access this\");\n Assert.fail(\"Should have thrown a GeneralSecurityException\");\n } catch (RuntimeCamelException e) {\n Assert.assertTrue(((e.getCause()) instanceof IllegalAccessException));\n // expected\n }\n MockEndpoint.assertIsSatisfied(result, mock);\n }",
"void exceptionCaught(Throwable cause) throws Exception;",
"void exceptionCaught(Throwable cause) throws Exception;",
"@Test(timeout = 4000)\n public void test15() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.bondContractDetails(2591, (ContractDetails) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"@Test\n public void testActiveTenantException(){\n ActiveTenantException exception = new ActiveTenantException(\"message\");\n assertEquals(\"message\",exception.getMessage());\n }",
"public void testVerifyOrderDoesntMatter(){\n _throws _tt = new _throws( );\n _tt.add( RuntimeException.class );\n _tt.add( IOException.class );\n\n _throws _ot = _throws.of( IOException.class, RuntimeException.class );\n assertEquals( _tt, _ot );\n }",
"@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }",
"@Test\n public void shouldThrowsConnectionExceptionWhenInnerMethodCallThrowsIt()\n throws Exception {\n\n executeAndExpectThrowsExceptions(\n ConnectionException.class,\n ConnectionException.class\n );\n }",
"public void testWovenClassListenerExceptionDoesNotCauseClassLoadToFail() throws Exception {\n\t\tfinal AtomicInteger integer = new AtomicInteger(0);\n\t\tServiceRegistration<WovenClassListener> reg = getContext().registerService(\n\t\t\t\tWovenClassListener.class, \n\t\t\t\tnew WovenClassListener() {\n\t\t\t\t\tpublic void modified(WovenClass wovenClass) {\n\t\t\t\t\t\tinteger.set(1);\n\t\t\t\t\t\tthrow new RuntimeException();\n\t\t\t\t\t}\n\t\t\t\t}, \n\t\t\t\tnull);\n\t\ttry {\n\t\t\tregisterAll();\n\t\t\ttry {\n\t\t\t\tClass<?> clazz = weavingClasses.loadClass(TEST_CLASS_NAME);\n\t\t\t\tassertEquals(\"Listener not called\", 1, integer.get());\n\t\t\t\tassertDefinedClass(listenerWovenClass, clazz);\n\t\t\t\tassertStates(WovenClass.TRANSFORMED, WovenClass.DEFINED);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tunregisterAll();\n\t\t\t}\n\t\t}\n\t\tfinally {\n\t\t\treg.unregister();\n\t\t}\n\t}",
"@Test(expectedExceptions = IOException.class, invocationCount = 3)\n public void testCase1() throws IOException {\n System.out.println(\"run testcase1\");\n throw new IOException(\"in test case 1\");\n }",
"@Test\n\t// exception for when user inputs negative number\n\tpublic void testHappy_throwsException_incorrectNumber() {\n\n\t\tAssertions.assertThrows(InputMismatchException.class, () -> {\n//\t ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n//\t System.setErr(new PrintStream(outputStream));\n\n\t\t\tByteArrayInputStream in = new ByteArrayInputStream(\"happy\\ntest\\n\".getBytes());\n\t\t\tSystem.setIn(in);\n\n\t\t\tMovie movie = new Movie();\n\t\t\tmovie.Play();\n\t\t});\n\t}",
"@Test\n public void testDeleteHandlesOtherExceptionsCorrectly() throws Exception {\n\n AmazonServiceException exception = new AmazonServiceException(\"Boom!\");\n exception.setErrorCode(\"SomeOtherArbitraryCode\");\n testDelete(true, Optional.of(exception), true);\n }",
"@Test(timeout = 4000)\n public void test105() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type type0 = Type.DOUBLE_TYPE;\n Type type1 = Type.VOID_TYPE;\n Type type2 = Type.BOOLEAN_TYPE;\n Type type3 = Type.FLOAT_TYPE;\n Type type4 = Type.SHORT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(158);\n Item item0 = classWriter0.key2;\n Item item1 = new Item(10);\n // Undeclared exception!\n try { \n frame0.execute(176, 0, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }"
] |
[
"0.73529667",
"0.7335362",
"0.72398454",
"0.6804898",
"0.6774592",
"0.66217554",
"0.6220063",
"0.6079813",
"0.606205",
"0.6052916",
"0.59141755",
"0.58447516",
"0.582652",
"0.5815717",
"0.5779362",
"0.5753496",
"0.5717353",
"0.5700016",
"0.56616646",
"0.5653899",
"0.5645655",
"0.5640451",
"0.56354815",
"0.56350833",
"0.56347775",
"0.561719",
"0.5571036",
"0.55530214",
"0.55467874",
"0.55422",
"0.5534085",
"0.5531274",
"0.55224323",
"0.5513838",
"0.5510552",
"0.54963624",
"0.5490732",
"0.5490233",
"0.54822385",
"0.5481061",
"0.54756194",
"0.54740727",
"0.54703397",
"0.5452323",
"0.5450311",
"0.544119",
"0.5438458",
"0.54322124",
"0.5424361",
"0.5422931",
"0.5416735",
"0.54100794",
"0.5397508",
"0.53916204",
"0.5351096",
"0.53479034",
"0.53448385",
"0.5342119",
"0.53400385",
"0.5332796",
"0.53128093",
"0.5309621",
"0.53094125",
"0.53021705",
"0.52944463",
"0.5276835",
"0.5275251",
"0.5272965",
"0.52580273",
"0.5256708",
"0.52521276",
"0.5250888",
"0.5249815",
"0.52484953",
"0.52441967",
"0.5244095",
"0.5243304",
"0.5232203",
"0.52262455",
"0.52199584",
"0.5216681",
"0.52115655",
"0.52102274",
"0.52079904",
"0.5205692",
"0.5202129",
"0.5189331",
"0.51881224",
"0.5186678",
"0.5186678",
"0.51864296",
"0.51758003",
"0.51649576",
"0.51641995",
"0.5164164",
"0.5163694",
"0.5158851",
"0.51581913",
"0.5155971",
"0.51542646"
] |
0.696542
|
3
|
Asserts that the execution of consumer throws an exception of the specific class.
|
@SuppressWarnings("unchecked")
private static <T> void assertThrows(
final Consumer<Void> consumer,
final Class<T> exceptionClass,
final Consumer<T> assertExceptionProperties,
final String message) {
final String normalizedMessage = null == message ? "" : String.format("[%s]: ", message);
try {
consumer.accept(null);
} catch (final Exception ex) {
if (exceptionClass.isAssignableFrom(ex.getClass())) {
assertExceptionProperties.accept((T) ex);
return;
}
Assert.fail(String.format("%sunexpected exception of type %s was thrown: '%s'", normalizedMessage, ex.getClass(), ex.getMessage()));
}
Assert.fail(String.format("%sexpected exception of type %s was not thrown", normalizedMessage, exceptionClass));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n assertThrows(consumer, exceptionClass, ex -> {\n });\n }",
"public static void assertThrowsCompletionException(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n try {\n consumer.accept(null);\n } catch (final CompletionException completionEx) {\n final Throwable ex = completionEx.getCause();\n if (ex.getClass() == exceptionClass) {\n return;\n }\n\n Assert.fail(String.format(\"unexpected exception of type %s was thrown\", ex.getClass()));\n }\n\n Assert.fail(String.format(\"expected exception of type %s was not thrown\", exceptionClass));\n }",
"public static <T> void assertThrows(\n final Consumer<Void> consumer,\n final Class<T> exceptionClass,\n final Consumer<T> assertExceptionProperties) {\n assertThrows(consumer, exceptionClass, assertExceptionProperties, null);\n }",
"public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass, final String message) {\n assertThrows(consumer, exceptionClass, ex -> {\n }, message);\n }",
"OOPExpectedException expect(Class<? extends Exception> expected);",
"private void checkException(Runnable function, Class<?> expectedEx){\n try {\n function.run();\n assert false;\n }catch (Exception e){\n assert e.getClass() == expectedEx;\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void test_voidFoo_exception() throws IllegalAccessException {\n\t\t\n\t}",
"@Test\n\tvoid qutTestForExeception() {\n\t\tassertThrows(MyException.class, () -> { nopt.quot(100, 0);});\n\t}",
"boolean assertExpected(Exception e);",
"OOPExpectedException expectMessage(String msg);",
"@Test\n\tpublic void exception() {\n\t\t// ReactiveValue wraps all exceptions in CompletionException.\n\t\tCompletionException ce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new ArithmeticException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t\tassertThat(p.keys(), contains(\"key\"));\n\t\t// If we try to throw another exception second time around, we will still get the first one.\n\t\tce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new IllegalStateException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t}",
"@Test\n void testDoThrow() {\n\n doThrow(RuntimeException.class).when(dao).foo();\n // doThrow(new RuntimeException()).when(dao).foo();\n\n RuntimeException exception = Assertions.assertThrows(NullPointerException.class,\n () -> service.fetchBookById(42)\n );\n assertThat(exception.getClass(), is(equalTo(NullPointerException.class)));\n }",
"public void testInheritance() {\n assertTrue(\"ContestEligibilityValidatorException does not subclass Exception.\",\n new ContestEligibilityValidatorException() instanceof Exception);\n }",
"@Test\n public void throwWrappedExOrOriginEx() {\n assertThatThrownBy(() -> repository.findMemberWithSpringEx())\n .isInstanceOf(EmptyResultDataAccessException.class);\n\n // 2) throw origin ex\n assertThatThrownBy(() -> repository.findMemberWithOriginEx())\n .isInstanceOf(NoResultException.class);\n }",
"@Test(expected=Exception.class)\n public void withdraw1100FromAccount_shouldThrowException() throws Exception{\n account.withdraw(1100);\n }",
"@Test(expected = Exception.class)\n public void testOrganiseTalkExceptionTrown() throws Exception {\n // single talk should throw exception\n String title = \"Single Talk\";\n try{\n \n ConferenceCommittee.acceptTalkSubmission(title, new ArrayList<Talk>());\n } catch (Exception e) {\n assertEquals(e.getMessage(), \"Cant organise talk - \" + title); // TODO: check spelling in assertion messages\n throw e;\n }\n fail(\"Exception not thrown\");\n\n }",
"@Test\n\tvoid testInvalidCustomerType() {\n\t\tCustomerTypeFactory customerTypeFactory = new CustomerTypeFactory();\n\t\tassertThrows(CustomerTypeException.class, () -> {\n\t\t\tcustomerTypeFactory.getCustomerType(\"gold\");\n\t });\n\t}",
"@Test(expected = IllegalStateException.class)\r\n public void dummyThrowsExceptionWhenAttacked() {\n\r\n dummy.takeAttack(AXE_ATTACK);\r\n }",
"@Test\n void checkedExceptionFromConstructorDoesNotAttemptToStoreAggregate() {\n UnitOfWork<?> uow = CurrentUnitOfWork.get();\n uow.executeWithResult(() -> testSubject.newInstance(() -> {\n throw new Exception(\"Throwing checked exception\");\n }), RuntimeException.class::isInstance);\n\n assertFalse(uow.isActive());\n assertFalse(uow.isRolledBack());\n assertTrue(uow.getExecutionResult().isExceptionResult());\n assertEquals(\"Throwing checked exception\", uow.getExecutionResult().getExceptionResult().getMessage());\n }",
"@Factory\r\n public static Matcher<Proc> raisesException(Class<? extends Exception> clazz) {\r\n return new Raises(IsThrowable.exception(clazz));\r\n }",
"@CustomExceptionTest(ArithmeticException.class)\n public static void test5() {\n }",
"@Test\r\n public void findUserInvalidUserId() {\r\n\r\n assertThatThrownBy(() -> {\r\n this.usermanagement.findUserRole(-1L);\r\n }).isInstanceOf(Exception.class);\r\n }",
"public void testApplicationsManagerExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n ApplicationsManagerException ce = new ApplicationsManagerException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", ce.getMessage());\n assertEquals(\"cause is incorrect.\", e, ce.getCause());\n }",
"@Test\n public void shouldThrowIfInvalidActionInVersion() {\n\n // GIVEN\n ActionProcessor processor = new ActionProcessor(false, false);\n List<Action> actionsToProcess = asList(ADD_FILE, REMOVE_FILE, ADD_FILE);\n DeltaSourceException caughtException = null;\n\n // WHEN\n try {\n processor.processActions(prepareChangesToProcess(actionsToProcess));\n } catch (DeltaSourceException e) {\n caughtException = e;\n }\n\n // THEN\n assertThat(caughtException, notNullValue());\n assertThat(caughtException.getSnapshotVersion().orElse(null), equalTo(SNAPSHOT_VERSION));\n assertThat(caughtException.getTablePath().orElse(null), equalTo(TABLE_PATH));\n }",
"@Ignore(value = \"TODO\")\n @Test(expected = IllegalStateException.class)\n public void shouldThrowExceptionWhenDeletingAPlayerInTheMiddleOfAGame() {\n\n }",
"@Test\n public void test01() throws MessagingException {\n\n }",
"@Test\r\n void notEnoughFunds() {\n BankAccount account = new BankAccount(9);\r\n\r\n // Assertion for exception\r\n assertThrows(NotEnoughFundsException.class, () -> account.withdraw(10),\r\n \"Balance must be greater than amount of withdrawal\");\r\n }",
"@Test(timeout = 4000)\n public void test14() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.contractMsg((Contract) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n public void CollectPaymentException(){\n instance.scanItem(-6);\n }",
"public interface OOPExpectedException {\n\n /**\n * @return the expected exception type.\n */\n Class<? extends Exception> getExpectedException();\n\n /**\n * expect an exception with the given type to be thrown.\n *\n * @param expected - the expected exception type.\n * @return this object.\n */\n OOPExpectedException expect(Class<? extends Exception> expected);\n\n /**\n * expect the exception message to have a message as its substring.\n * Should be okay if the message expected is a substring of the entire exception message.\n * Can expect several messages.\n * Example: for the exception message: \"aaa bbb ccc\", for an OOPExpectedException e:\n * e.expectMessage(\"aaa\").expectMessage(\"bb c\");\n * - This should be okay.\n *\n * @param msg - the expected message.\n * @return this object.\n */\n OOPExpectedException expectMessage(String msg);\n\n /**\n * checks that the exception that was thrown, and passed as parameter,\n * is of a type as expected. Also checks expected message are contained in the exception message.\n * <p>\n * Should handle inheritance. For example, for expected exception A, if an exception B was thrown,\n * and B extends A, then it should be okay.\n *\n * @param e - the exception that was thrown.\n * @return whether or not the actual exception was as expected.\n */\n boolean assertExpected(Exception e);\n\n\n /**\n * @return an instance of an ExpectedException with no exception or expected messages.\n * <p>\n * This static method must be implemented in OOPExpectedExceptionImpl and return an actual object.\n * <p>\n * If this is the state of the ExpectedException object, then no exception is expected to be thrown.\n * So, if an exception is thrown, an OOPResult with ERROR should be returned\n */\n static OOPExpectedException none() {\n return OOPExpectedExceptionImpl.none();\n }\n}",
"public boolean isException(Class paramClass) {\n/* 162 */ if (paramClass == null) {\n/* 163 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 168 */ return (isCheckedException(paramClass) && !isRemoteException(paramClass) && isValue(paramClass));\n/* */ }",
"private void verifyExceptionThrown(Exception thrown, Class expected) {\n\n boolean exceptionFound = false;\n Throwable cause = thrown;\n while (cause != null) {\n if (expected.isInstance(cause)) {\n // good\n exceptionFound = true;\n break;\n }\n else {\n cause = cause.getCause();\n }\n }\n if (!exceptionFound) {\n Assert.fail(expected.getSimpleName() + \" was expected but not thrown\", thrown);\n }\n }",
"@Test\n public void overdraw_forSavingsAccount_shouldThrowException() {\n\n AccountWithEnum accountWithEnum = new AccountWithEnum(100, 12345, AccountType.SAVINGS);\n\n Assert.assertThrows(ArithmeticException.class,\n () -> {accountWithEnum.withdraw(150);});\n }",
"@Test(expected = WorkflowExecutionException.class)\n public void testExecuteWorkflowExecutionException() {\n action.execute(state);\n action.execute(state);\n }",
"public void testApplicationsManagerExceptionAccuracy1() throws Exception {\n ApplicationsManagerException ce = new ApplicationsManagerException(\"test\");\n assertEquals(\"message is incorrect.\", \"test\", ce.getMessage());\n }",
"@Test\n void testWithdraw() {\n //Exception e = assertThrows(IllegalArgumentException.class, () -> new Client(\"Sir\", \"Jack\", \"1234567890\",\"H91R7YX\", \"432111111111\",\"[email protected]\", 20, 5000.00) );\n assertEquals(true, t1.isWithdraw());\n }",
"@Test\n\tpublic final void testWriteException() {\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our test assertion exception\"), \"Unit Tests\",\n\t\t\t\t\"Test of logging exception attachment.\", null);\n\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our top exception\",\n\t\t\t\t\t\tnew RuntimeException(\"This is our middle exception\",\n\t\t\t\t\t\t\t\tnew RuntimeException(\"This is our bottom exception\"))),\n\t\t\t\t\"Unit Tests\", \"Test of logging exception attachment with nested exceptions.\", null);\n\t}",
"@Test\n void testDothrow() {\n Examen examen = Datos.EXAMEN;\n doThrow(IllegalArgumentException.class).when(preguntaRepository).guardarVarias(anyList());\n\n examen.setPreguntas(Datos.PREGUNTAS);\n assertThrows(IllegalArgumentException.class, () -> {\n service.guardar(examen);\n });\n }",
"@Test(expected = IllegalStateException.class)\n\tpublic void testException() {\n\t\tsubGen.subset(11);\n\t}",
"public <T extends Throwable> void validateRootCause(Runnable runnable, Class<T> exceptionClass) {\n try {\n runnable.run();\n Assert.fail(\"Expected \" + exceptionClass.getName());\n } catch (Exception e) {\n Assert.assertThat(getRootCause(e), instanceOf(exceptionClass));\n }\n }",
"@Test(expected = InvalidArgumentException.class)\r\n\tpublic void throwInvalidArgumentException() {\r\n\t\tthis.validator.doValidation(null);\r\n\t}",
"@Test(expected = InsufficientResourcesException.class )\npublic void testSubtractBalance() throws InsufficientResourcesException {\n sut.subtractBalance(100,1,new Account());\n}",
"@Test\r\nvoid test1() {\r\n\tassertThrows(RuntimeException.class,()-> Q2=new ArrayBasedQ(-5));\r\n}",
"@Test\n public void handleSavvyTaskerChangedEvent_exceptionThrown_eventRaised() throws IOException {\n Storage storage = new StorageManager(new XmlAddressBookStorageExceptionThrowingStub(\"dummy\"), new JsonUserPrefsStorage(\"dummy\"));\n EventsCollector eventCollector = new EventsCollector();\n storage.handleSavvyTaskerChangedEvent(new SavvyTaskerChangedEvent(new SavvyTasker()));\n assertTrue(eventCollector.get(0) instanceof DataSavingExceptionEvent);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testScanItemHighException(){\n instance.scanItem(1E6);\n }",
"@Factory\r\n public static Matcher<Proc> raisesException() {\r\n return raises(IsThrowable.exception());\r\n }",
"@Test(description=\"Testing Report if Exception is Occurred (Throwing Exception Intentionally)\")\n\tpublic void test() {\n\t\tReporter.log(\"Running test Method from TC010 class\", true);\n\t\tthrow new IllegalStateException();\n\t}",
"@Test\n public void swallowExceptionsAspect() throws Exception {\n ProductDemand demand = swallowing(parseDoc().getDemands().get(0));\n\n // probably will throw IllegalStateException\n demand.fancyBusinessLogic();\n\n List<Throwable> exceptions = exceptions(demand);\n Assertions.assertThat(exceptions).isNotEmpty();\n }",
"@Test\n public void testSecurityConfiguredWithTwoExceptions() throws Exception {\n MockEndpoint result = getMockEndpoint(ExceptionBuilderTest.RESULT_QUEUE);\n result.expectedMessageCount(0);\n MockEndpoint mock = getMockEndpoint(ExceptionBuilderTest.SECURITY_ERROR_QUEUE);\n mock.expectedMessageCount(1);\n mock.expectedHeaderReceived(ExceptionBuilderTest.MESSAGE_INFO, \"Damm some security error\");\n try {\n template.sendBody(\"direct:a\", \"I am not allowed to do this\");\n Assert.fail(\"Should have thrown a GeneralSecurityException\");\n } catch (RuntimeCamelException e) {\n Assert.assertTrue(((e.getCause()) instanceof GeneralSecurityException));\n // expected\n }\n MockEndpoint.assertIsSatisfied(result, mock);\n }",
"@Test\n\tvoid new_GebruikerMetLegeEmail_ThrowsException() {\n\t\tAssertions.assertThrows(IllegalArgumentException.class, ()-> new Klant( \"test\", \"test\", \"test\", \"test\", null, 4000,\n\t\t\t\tnew Bedrijf()));\n\t}",
"@Test(expected= VotingException.class)\n public void VotingMadeByAuthorThrowsException() throws Exception {\n\n bob.upVote(bobPost);\n bob.downVote(bobPost);\n alice.upVote(question);\n alice.downVote(question);\n }",
"@Test\n public void shouldThrownAccessExceptionWhenInnerMethodCallThrowsIt()\n throws Exception {\n\n // p4ic4idea: use a public, non-abstract class with default constructor\n executeAndExpectThrowsExceptions(\n AccessException.AccessExceptionForTests.class,\n AccessException.class\n );\n }",
"@Test\n public void testInvalidTransactionIdException() throws Exception {\n\n // login with sufficient rights\n shop.login(admin.getUsername(), admin.getPassword());\n\n // verify correct exception is thrown\n testInvalidValues(InvalidTransactionIdException.class, invalidTransactionIDs,\n (transactionId) -> shop.receiveCashPayment(transactionId, 10));\n }",
"@FunctionalInterface\npublic interface ConsumerWithException<T> {\n void accept(T t) throws Exception;\n}",
"@FunctionalInterface\npublic interface ThrowingConsumer<T, E extends Exception> {\n\n void accept(T t) throws E;\n\n}",
"@Test\n public void testVisitThrowingException() {\n ResetBasicData.reset();\n\n Query<Customer> query = DB.find(Customer.class).setAutoTune(false)\n .fetchQuery(\"contacts\").where().gt(\"id\", 0).order(\"id\")\n .setMaxRows(2).query();\n\n final AtomicInteger counter = new AtomicInteger(0);\n\n assertThrows(IllegalStateException.class, () -> {\n query.findEachWhile(customer -> {\n counter.incrementAndGet();\n if (counter.intValue() > 0) {\n throw new IllegalStateException(\"cause a failure\");\n }\n return true;\n });\n });\n }",
"@Test(expected = ChangeException.class)\n public void testGiveChangeException()throws ChangeException{\n instance.scanItem(0.55);\n instance.scanItem(1.27);\n instance.giveChange();\n }",
"public void testExecute2() throws Exception {\r\n try {\r\n handler.execute(null);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // ok.\r\n }\r\n }",
"@Test\n public void removing_item_that_does_not_exist_should_throw_exception() {\n\n assertThrows(itemNotFoundException.class,\n ()->restaurant.removeFromMenu(\"French fries\"));\n }",
"public void testPersistenceExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n PersistenceException pe = new PersistenceException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", pe.getMessage());\n assertEquals(\"cause is incorrect.\", e, pe.getCause());\n }",
"public void testOneJob_ExceptionInProcess() {\n WARCBatchJob job = new TestWARCBatchJob() {\n public void processRecord(WARCRecord record, OutputStream os) {\n super.processRecord(record, new ByteArrayOutputStream());\n if (!((processed - 1) \n < RECORDS_PROCESSED_BEFORE_EXCEPTION)) {\n throw new ArgumentNotValid(\n \"testOneJob_ExceptionInProcess\");\n }\n }\n };\n job.processFile(WARC_FILE, new ByteArrayOutputStream());\n Exception[] es = job.getExceptionArray();\n assertEquals(\"Should have gotten through all records\",\n TOTAL_RECORDS, processed);\n final int numExceptions = TOTAL_RECORDS\n - RECORDS_PROCESSED_BEFORE_EXCEPTION;\n if (numExceptions != es.length) {\n printExceptions(es);\n }\n assertEquals(\"Exceptions list should have one entry per failing record\",\n numExceptions, es.length);\n for (int i = 0; i < numExceptions; i++) {\n assertTrue(\"Exception should be of type ArgumentNotValid\",\n es[i] instanceof ArgumentNotValid);\n }\n }",
"@Test(expected = AppException.class)\n public void shouldThrowAnAppException() throws Exception {\n Mockito.when(customerRepository.existsByEmail(view.getEmail())).thenReturn(false);\n //error on saving\n Mockito.when(customerRepository.save(Mockito.any(Customer.class))).thenThrow(new DataAccessException(\"Could not save customer\") {});\n\n customerService.create(view);\n Mockito.verify(customerRepository).existsByEmail(view.getEmail());\n Mockito.verify(customerRepository).save(Mockito.any(Customer.class));\n }",
"@Test(timeout = 4000)\n public void test31() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.deltaNeutralValidation((-2236), (UnderComp) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"private Statement wrapExpectedExceptions(final Statement s, TestCandidate c, Object instance) {\n Test ann = c.method.getAnnotation(Test.class);\n \n // If there's no expected class, don't wrap. Eh, None is package-private...\n final Class<? extends Throwable> expectedClass = ann.expected();\n if (expectedClass.getName().equals(\"org.junit.Test$None\")) {\n return s;\n }\n \n return new Statement() {\n @Override\n public void evaluate() throws Throwable {\n try {\n s.evaluate();\n } catch (Throwable t) {\n if (!expectedClass.isInstance(t)) {\n throw t;\n }\n // We caught something that was expected. No worries then.\n return;\n }\n \n // If we're here this means we passed the test that expected a failure.\n Assert.fail(\"Expected an exception but the test passed: \"\n + expectedClass.getName());\n }\n };\n }",
"public void testHookException() throws Exception {\n\n\t\tregisterThisHook();\n\n\t\ttry {\n\t\t\tConfigurableWeavingHook hook = new ConfigurableWeavingHook();\n\t\t\thook.setExceptionToThrow(new RuntimeException());\n\t\t\tServiceRegistration<WeavingHook>reg3 = hook.register(getContext());\n\t\t\ttry {\n\t\t\t\tweavingClasses.loadClass(TEST_CLASS_NAME);\n\t\t\t\tfail(\"Should blow up\");\n\t\t\t} catch (ClassFormatError cfe) {\n\t\t\t\tassertWiring();\n\n\t\t\t\tassertTrue(\"Should be complete now\", wc.isWeavingComplete());\n\t\t\t\tassertNotSame(\"Should get copies of the byte array now\", realBytes, wc.getBytes());\n\t\t\t\tassertTrue(\"Content should still be equal though\", Arrays.equals(realBytes, wc.getBytes()));\n\t\t\t\tassertEquals(\"Wrong class\", TEST_CLASS_NAME, wc.getClassName());\n\t\t\t\tassertNull(\"Should not be set\", wc.getDefinedClass());\n\n\t\t\t\tassertImmutableList();\n\n\t\t\t\ttry {\n\t\t\t\t\twc.setBytes(fakeBytes);\n\t\t\t\t\tfail(\"Should not be possible\");\n\t\t\t\t} catch (IllegalStateException ise) {\n\t\t\t\t\t//No action needed\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treg3.unregister();\n\t\t} finally {\n\t\t\tunregisterThisHook();\n\t\t}\n\t}",
"@Test\r\n void enoughFunds() {\n BankAccount account = new BankAccount(100);\r\n \r\n // Assertion for no exceptions\r\n assertDoesNotThrow(() -> account.withdraw(100));\r\n }",
"@Test\r\n public void testCatch() {\n }",
"public void test_5() throws Exception {\n\t\ttry {\n\t\t\tBoundedSharedQueue theBSQ = new BoundedSharedQueue(0);\n\t\t\tfail(\"should throw an IllegalArgumentException\");\n\t\t}\n\t\tcatch(IllegalArgumentException ex) {\n\t\t\t// OK\n\t\t}\n\t}",
"@Test\r\n public void findserUserIdNull() {\r\n\r\n assertThatThrownBy(() -> {\r\n this.usermanagement.findUserRole(null);\r\n }).isInstanceOf(Exception.class);\r\n }",
"void assertExceptionIsThrown(\n String sql,\n String expectedMsgPattern);",
"@Test\n void bankListIsAccountExistToTransfer_accountExistButInsufficientMoneyToTransfer_throwsException() {\n ByteArrayOutputStream outContent = new ByteArrayOutputStream();\n System.setOut(new PrintStream(outContent));\n BankList bankList = new BankList(storage);\n Ui uiTest = new Ui();\n Bank newSavingAccount = new Saving(\"Test Saving Account\", 1000, 2000);\n Bank newInvestmentAccount = new Investment(\"Test Investment Account\", 1000);\n try {\n bankList.bankListAddBank(newSavingAccount, uiTest);\n bankList.bankListAddBank(newInvestmentAccount, uiTest);\n } catch (BankException error) {\n System.out.println(\"Expected no throw, but error thrown\");\n }\n\n assertEquals(2, bankList.getBankListSize());\n outContent.reset();\n\n BankException thrown = assertThrows(BankException.class, () ->\n bankList.getTransferBankType(\"Test Investment Account\",\n 2000),\n \"Expected bankListIsAccountExistToTransfer to throw, but it didn't\");\n assertEquals(\"Insufficient amount for transfer in this bank: Test Investment Account\",\n thrown.getMessage());\n\n }",
"public void testCanCreateInvoice() throws Exception {\n try {\n invoiceSessionBean.canCreateInvoice(-1);\n fail(\"Should throw IllegalArgumentException\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }",
"@Test\n public void testProductMatchingExceptionThrown() throws Exception {\n service.loadFiles(); \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Reptile\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match Products\", correctExceptionThrown);\n\n }",
"@Test\n public void testError() {\n FutureRecordMetadata future = new FutureRecordMetadata(asyncRequest(baseOffset, new CorruptRecordException(), 50L),\n relOffset, RecordBatch.NO_TIMESTAMP, 0, 0, Time.SYSTEM);\n assertThrows(ExecutionException.class, future::get);\n }",
"@Test\n public void spendShouldThrowNotFoundExceptionException() throws Exception {\n UnsecureCompactBuilder compactBuilder = new UnsecureCompactBuilder();\n\n NonceClaim nonceClaim = new NonceClaim();\n nonceClaim.setNonce(\"nonce\");\n\n String jwt = compactBuilder.claims(nonceClaim).build().toString();\n\n when(mockHashToken.run(\"nonce\")).thenReturn(\"hashedNonce\");\n when(mockNonceRepository.getByTypeAndNonce(NonceName.WELCOME, \"hashedNonce\")).thenThrow(RecordNotFoundException.class);\n\n NotFoundException actual = null;\n try {\n subject.spend(jwt, NonceName.WELCOME);\n } catch(NotFoundException e) {\n actual = e;\n }\n\n assertThat(actual, is(notNullValue()));\n assertThat(actual.getCause(), instanceOf(RecordNotFoundException.class));\n\n verify(mockNonceRepository, never()).setSpent(any(UUID.class));\n verify(mockNonceRepository, never()).revokeUnSpent(any(String.class), any(UUID.class));\n }",
"@Test\n void borrowBookThrowsOperationStoppedException3(){\n Book book1 = new Book(\"Garry\", \"Fiction\", 0, 1234);\n User user1 = new User(\"Gayal\", \"Rupasinghe\", \"[email protected]\");\n user1.setUserID(1L);\n book1.setBookID(1L);\n\n //User and book both exist.\n Optional<User> optionalUser1 = Optional.of(user1);\n Optional<Book> optionalBook1 = Optional.of(book1);\n given(userService.getUserByID(user1.getUserID())).willReturn(optionalUser1);\n given(bookRepository.findById(book1.getBookID())).willReturn(optionalBook1);\n\n //book is not already borrowed by user.\n given(bookRepository.isBookBorrowedByUser(user1.getUserID(), book1.getBookID())).willReturn(false);\n\n //when and then\n assertThatThrownBy(() -> testBookServiceImpl.borrowBook(user1.getUserID(), book1.getBookID()) )\n .isExactlyInstanceOf(OperationStoppedException.class)\n .hasMessage(\"Book is not available to borrow, quantity is 0.\");\n }",
"@Test\n public void testHighLevelWeapon_invalid_shouldPass(){\n RPGCharacter warrior = CreateCharacter.createChar(4);\n Axe axe = new Axe(ItemType.Weapon, \"Common Axe\", 2, SlotType.WeaponSlot, WeaponType.Axe, 7, 1.1);\n Throwable exception = assertThrows(InvalidWeaponException.class, ()-> warrior.EquipWeapon(axe), \"Your level is too low\");\n }",
"public void testPersistenceExceptionAccuracy1() throws Exception {\n PersistenceException pe = new PersistenceException(\"test\");\n assertEquals(\"message is incorrect.\", \"test\", pe.getMessage());\n }",
"@Test\n @Category(Negative.class)\n public void divide_correctValues_exceptionthrown() {\n thrownException.expect(ArithmeticException.class);\n// thrownException.expectMessage(\"cannot divide by zero!\");\n thrownException.expectMessage(containsString(\"cannot divide by zero!\"));\n result = calc.divide(5, 0);\n }",
"@Test\n public void testInvalidPaymentException() throws Exception {\n\n // login with sufficient rights\n shop.login(admin.getUsername(), admin.getPassword());\n\n // verify correct exception is thrown\n testInvalidValues(InvalidPaymentException.class, invalidPaymentAmounts,\n (cash) -> shop.receiveCashPayment(saleId, cash));\n }",
"@Test\n public void when_SourceHasInvalidFormat_Then_ThrowException() {\n //then\n assertThrows(IllegalArgumentException.class, () -> {\n //when\n underTest.read(\"FhFXVE,,,\");\n });\n }",
"@Test\n public void findProductListExceptionTest(){\n }",
"@Test\n public void testUnwrapInvocationTargetExceptionWithOtherException() {\n RuntimeException rte = new RuntimeException();\n assertTrue(rte == ExceptionUtil.unwrapInvocationTargetException(rte));\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testScanItemLowException(){\n instance.scanItem(-0.5);\n }",
"@Test(expected = ArityMismatchException.class)\n public void testExecException1() throws Exception {\n mv.exec(new String[]{\"mv\", \"dir1\"}, io);\n }",
"private static void checkError(Class<?> expectedErrorClass, Throwable thrown,\n boolean in_invocation_exc) {\n if (expectedErrorClass != null && thrown == null) {\n fail(\"Expected error of type \" + expectedErrorClass);\n } else if (expectedErrorClass == null && thrown != null) {\n fail(\"Unexpected error \" + thrown);\n } else if (expectedErrorClass != null && thrown != null) {\n if (in_invocation_exc) {\n if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) {\n fail(\"Expected invocation target exception, but got \" + thrown);\n }\n thrown = thrown.getCause();\n }\n if (!expectedErrorClass.equals(thrown.getClass())) {\n thrown.printStackTrace(System.err);\n fail(\"Expected error of type \" + expectedErrorClass + \", but got \" +\n thrown.getClass());\n }\n }\n }",
"@Test(expected = Exception.class)\n public void shouldNotBookAnInvalidRoomAndInformTheClientWithAnException()\n\t throws Exception {\n\n\tfinal int index = 1;\n\tfinal String customerId = \"12\";\n\tfinal BookRoomCommand command = new BookRoomCommand(validRoomOffer,\n\t\tcustomerId);\n\n\twhen(dao.read(index)).thenReturn(validRoomOffer);\n\twhen(\n\t\tbuilder.createRoomOffer(Arrays.asList(validRoomOfferValues),\n\t\t\tindex)).thenThrow(\n\t\tnew ConstraintViolationException(\"Test\"));\n\twhen(isRoomBookable.isSatisfiedBy(validRoomOffer)).thenReturn(true);\n\n\tfinal UrlyBirdRoomOfferService roomOfferService = new UrlyBirdRoomOfferService(\n\t\tdao, builder, null, isRoomBookable);\n\n\troomOfferService.bookRoomOffer(command);\n }",
"@Test\n public void testSecurityConfiguredWithExceptionList() throws Exception {\n MockEndpoint result = getMockEndpoint(ExceptionBuilderTest.RESULT_QUEUE);\n result.expectedMessageCount(0);\n MockEndpoint mock = getMockEndpoint(ExceptionBuilderTest.ERROR_QUEUE);\n mock.expectedMessageCount(1);\n mock.expectedHeaderReceived(ExceptionBuilderTest.MESSAGE_INFO, \"Damm some access error\");\n try {\n template.sendBody(\"direct:a\", \"I am not allowed to access this\");\n Assert.fail(\"Should have thrown a GeneralSecurityException\");\n } catch (RuntimeCamelException e) {\n Assert.assertTrue(((e.getCause()) instanceof IllegalAccessException));\n // expected\n }\n MockEndpoint.assertIsSatisfied(result, mock);\n }",
"void exceptionCaught(Throwable cause) throws Exception;",
"void exceptionCaught(Throwable cause) throws Exception;",
"@Test(timeout = 4000)\n public void test15() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.bondContractDetails(2591, (ContractDetails) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"@Test\n public void testActiveTenantException(){\n ActiveTenantException exception = new ActiveTenantException(\"message\");\n assertEquals(\"message\",exception.getMessage());\n }",
"@Test\n public void shouldThrowsConnectionExceptionWhenInnerMethodCallThrowsIt()\n throws Exception {\n\n executeAndExpectThrowsExceptions(\n ConnectionException.class,\n ConnectionException.class\n );\n }",
"@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }",
"public void testVerifyOrderDoesntMatter(){\n _throws _tt = new _throws( );\n _tt.add( RuntimeException.class );\n _tt.add( IOException.class );\n\n _throws _ot = _throws.of( IOException.class, RuntimeException.class );\n assertEquals( _tt, _ot );\n }",
"public void testWovenClassListenerExceptionDoesNotCauseClassLoadToFail() throws Exception {\n\t\tfinal AtomicInteger integer = new AtomicInteger(0);\n\t\tServiceRegistration<WovenClassListener> reg = getContext().registerService(\n\t\t\t\tWovenClassListener.class, \n\t\t\t\tnew WovenClassListener() {\n\t\t\t\t\tpublic void modified(WovenClass wovenClass) {\n\t\t\t\t\t\tinteger.set(1);\n\t\t\t\t\t\tthrow new RuntimeException();\n\t\t\t\t\t}\n\t\t\t\t}, \n\t\t\t\tnull);\n\t\ttry {\n\t\t\tregisterAll();\n\t\t\ttry {\n\t\t\t\tClass<?> clazz = weavingClasses.loadClass(TEST_CLASS_NAME);\n\t\t\t\tassertEquals(\"Listener not called\", 1, integer.get());\n\t\t\t\tassertDefinedClass(listenerWovenClass, clazz);\n\t\t\t\tassertStates(WovenClass.TRANSFORMED, WovenClass.DEFINED);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tunregisterAll();\n\t\t\t}\n\t\t}\n\t\tfinally {\n\t\t\treg.unregister();\n\t\t}\n\t}",
"@Test(expectedExceptions = IOException.class, invocationCount = 3)\n public void testCase1() throws IOException {\n System.out.println(\"run testcase1\");\n throw new IOException(\"in test case 1\");\n }",
"@Test\n\t// exception for when user inputs negative number\n\tpublic void testHappy_throwsException_incorrectNumber() {\n\n\t\tAssertions.assertThrows(InputMismatchException.class, () -> {\n//\t ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n//\t System.setErr(new PrintStream(outputStream));\n\n\t\t\tByteArrayInputStream in = new ByteArrayInputStream(\"happy\\ntest\\n\".getBytes());\n\t\t\tSystem.setIn(in);\n\n\t\t\tMovie movie = new Movie();\n\t\t\tmovie.Play();\n\t\t});\n\t}",
"@Test\n public void testDeleteHandlesOtherExceptionsCorrectly() throws Exception {\n\n AmazonServiceException exception = new AmazonServiceException(\"Boom!\");\n exception.setErrorCode(\"SomeOtherArbitraryCode\");\n testDelete(true, Optional.of(exception), true);\n }",
"@Test(timeout = 4000)\n public void test105() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type type0 = Type.DOUBLE_TYPE;\n Type type1 = Type.VOID_TYPE;\n Type type2 = Type.BOOLEAN_TYPE;\n Type type3 = Type.FLOAT_TYPE;\n Type type4 = Type.SHORT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(158);\n Item item0 = classWriter0.key2;\n Item item1 = new Item(10);\n // Undeclared exception!\n try { \n frame0.execute(176, 0, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }"
] |
[
"0.7351521",
"0.7334193",
"0.6964372",
"0.68037903",
"0.6773751",
"0.66217923",
"0.62206954",
"0.6081665",
"0.60626453",
"0.6052734",
"0.59154004",
"0.5846108",
"0.58268255",
"0.5816073",
"0.57805264",
"0.57531667",
"0.57183504",
"0.5701236",
"0.56615084",
"0.56545216",
"0.5645945",
"0.5640428",
"0.5636278",
"0.5636109",
"0.5634959",
"0.5617094",
"0.5571536",
"0.55541754",
"0.5547111",
"0.55406547",
"0.5532276",
"0.5530204",
"0.5522435",
"0.551312",
"0.55110925",
"0.5497346",
"0.5491786",
"0.54914886",
"0.5482334",
"0.54812586",
"0.5476482",
"0.547431",
"0.547049",
"0.5453106",
"0.5450997",
"0.5442652",
"0.5439221",
"0.5433491",
"0.54245365",
"0.5424232",
"0.54173005",
"0.5410689",
"0.5398178",
"0.5391507",
"0.5351328",
"0.53493387",
"0.53458995",
"0.53427607",
"0.5340198",
"0.53338206",
"0.5313328",
"0.53107905",
"0.53099453",
"0.53010565",
"0.5294994",
"0.52774256",
"0.52761966",
"0.52725255",
"0.52580327",
"0.52571493",
"0.52530825",
"0.5251772",
"0.52510035",
"0.52492785",
"0.5245086",
"0.5244503",
"0.5243273",
"0.5232993",
"0.52271134",
"0.52210313",
"0.52173936",
"0.52126694",
"0.5211235",
"0.5208488",
"0.52055067",
"0.5200436",
"0.51902103",
"0.51885104",
"0.51880646",
"0.51880646",
"0.5187502",
"0.5175903",
"0.5165175",
"0.5165117",
"0.51644367",
"0.5163453",
"0.51591367",
"0.5158965",
"0.5156595",
"0.51541835"
] |
0.7239074
|
2
|
Asserts that the execution of consumer throws a completion exception wrapping an exception of the specific class.
|
public static void assertThrowsCompletionException(final Consumer<Void> consumer, final Class<?> exceptionClass) {
try {
consumer.accept(null);
} catch (final CompletionException completionEx) {
final Throwable ex = completionEx.getCause();
if (ex.getClass() == exceptionClass) {
return;
}
Assert.fail(String.format("unexpected exception of type %s was thrown", ex.getClass()));
}
Assert.fail(String.format("expected exception of type %s was not thrown", exceptionClass));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass) {\n assertThrows(consumer, exceptionClass, ex -> {\n });\n }",
"OOPExpectedException expect(Class<? extends Exception> expected);",
"@Test\n\tpublic void exception() {\n\t\t// ReactiveValue wraps all exceptions in CompletionException.\n\t\tCompletionException ce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new ArithmeticException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t\tassertThat(p.keys(), contains(\"key\"));\n\t\t// If we try to throw another exception second time around, we will still get the first one.\n\t\tce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new IllegalStateException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t}",
"@SuppressWarnings(\"unchecked\")\n private static <T> void assertThrows(\n final Consumer<Void> consumer,\n final Class<T> exceptionClass,\n final Consumer<T> assertExceptionProperties,\n final String message) {\n final String normalizedMessage = null == message ? \"\" : String.format(\"[%s]: \", message);\n try {\n consumer.accept(null);\n } catch (final Exception ex) {\n if (exceptionClass.isAssignableFrom(ex.getClass())) {\n assertExceptionProperties.accept((T) ex);\n return;\n }\n\n Assert.fail(String.format(\"%sunexpected exception of type %s was thrown: '%s'\", normalizedMessage, ex.getClass(), ex.getMessage()));\n }\n\n Assert.fail(String.format(\"%sexpected exception of type %s was not thrown\", normalizedMessage, exceptionClass));\n }",
"public static <T> void assertThrows(\n final Consumer<Void> consumer,\n final Class<T> exceptionClass,\n final Consumer<T> assertExceptionProperties) {\n assertThrows(consumer, exceptionClass, assertExceptionProperties, null);\n }",
"private void checkException(Runnable function, Class<?> expectedEx){\n try {\n function.run();\n assert false;\n }catch (Exception e){\n assert e.getClass() == expectedEx;\n }\n }",
"public static void assertThrows(final Consumer<Void> consumer, final Class<?> exceptionClass, final String message) {\n assertThrows(consumer, exceptionClass, ex -> {\n }, message);\n }",
"@Test\n\tvoid qutTestForExeception() {\n\t\tassertThrows(MyException.class, () -> { nopt.quot(100, 0);});\n\t}",
"@Test\n public void testError() {\n FutureRecordMetadata future = new FutureRecordMetadata(asyncRequest(baseOffset, new CorruptRecordException(), 50L),\n relOffset, RecordBatch.NO_TIMESTAMP, 0, 0, Time.SYSTEM);\n assertThrows(ExecutionException.class, future::get);\n }",
"@Test\n public void throwWrappedExOrOriginEx() {\n assertThatThrownBy(() -> repository.findMemberWithSpringEx())\n .isInstanceOf(EmptyResultDataAccessException.class);\n\n // 2) throw origin ex\n assertThatThrownBy(() -> repository.findMemberWithOriginEx())\n .isInstanceOf(NoResultException.class);\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void test_voidFoo_exception() throws IllegalAccessException {\n\t\t\n\t}",
"@Test(expected = WorkflowExecutionException.class)\n public void testExecuteWorkflowExecutionException() {\n action.execute(state);\n action.execute(state);\n }",
"@FunctionalInterface\npublic interface ConsumerWithException<T> {\n void accept(T t) throws Exception;\n}",
"@Test(timeout = 4000)\n public void test14() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.contractMsg((Contract) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"boolean assertExpected(Exception e);",
"@Test\n void borrowBookThrowsOperationStoppedException3(){\n Book book1 = new Book(\"Garry\", \"Fiction\", 0, 1234);\n User user1 = new User(\"Gayal\", \"Rupasinghe\", \"[email protected]\");\n user1.setUserID(1L);\n book1.setBookID(1L);\n\n //User and book both exist.\n Optional<User> optionalUser1 = Optional.of(user1);\n Optional<Book> optionalBook1 = Optional.of(book1);\n given(userService.getUserByID(user1.getUserID())).willReturn(optionalUser1);\n given(bookRepository.findById(book1.getBookID())).willReturn(optionalBook1);\n\n //book is not already borrowed by user.\n given(bookRepository.isBookBorrowedByUser(user1.getUserID(), book1.getBookID())).willReturn(false);\n\n //when and then\n assertThatThrownBy(() -> testBookServiceImpl.borrowBook(user1.getUserID(), book1.getBookID()) )\n .isExactlyInstanceOf(OperationStoppedException.class)\n .hasMessage(\"Book is not available to borrow, quantity is 0.\");\n }",
"public void performCompletion() {\n/* 536 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Test\n public void testCancel() throws Exception {\n\n try {\n client.makeBooking(\"Paul\", new Date(System.currentTimeMillis()), true);\n Assert.fail(\"Should have thrown a TransactionCompensatedException\");\n } catch (TransactionCompensatedException e) {\n //expected\n }\n\n Assert.assertTrue(\"Expected booking to be cancelled, but it wasn't\", client.getLastBookingStatus().equals(BookingStatus.CANCELLED));\n\n }",
"@Test\n void checkedExceptionFromConstructorDoesNotAttemptToStoreAggregate() {\n UnitOfWork<?> uow = CurrentUnitOfWork.get();\n uow.executeWithResult(() -> testSubject.newInstance(() -> {\n throw new Exception(\"Throwing checked exception\");\n }), RuntimeException.class::isInstance);\n\n assertFalse(uow.isActive());\n assertFalse(uow.isRolledBack());\n assertTrue(uow.getExecutionResult().isExceptionResult());\n assertEquals(\"Throwing checked exception\", uow.getExecutionResult().getExceptionResult().getMessage());\n }",
"@Test(expected = NullPointerException.class)\n public void testSubmitNPE() throws Exception {\n CompletionService<Void> completionService = new BoundedCompletionService<Void>(\n new ExecutorCompletionService<Void>(e));\n Callable<Void> c = null;\n completionService.submit(c);\n shouldThrow();\n }",
"OOPExpectedException expectMessage(String msg);",
"@Test(expected = IllegalArgumentException.class)\n public void CollectPaymentException(){\n instance.scanItem(-6);\n }",
"@FunctionalInterface\npublic interface ThrowingConsumer<T, E extends Exception> {\n\n void accept(T t) throws E;\n\n}",
"public void testDisposeFilePersistenceException() {\r\n BytesIterator iterator = new InputStreamBytesIterator(new MockInputStream(), 10);\r\n try {\r\n iterator.dispose();\r\n fail(\"if an exception occurs while performing the operation, throw FilePersistenceException\");\r\n } catch (FilePersistenceException e) {\r\n // good\r\n }\r\n }",
"public void testInheritance() {\n assertTrue(\"ContestEligibilityValidatorException does not subclass Exception.\",\n new ContestEligibilityValidatorException() instanceof Exception);\n }",
"@Test(expected = ChangeException.class)\n public void testGiveChangeException()throws ChangeException{\n instance.scanItem(0.55);\n instance.scanItem(1.27);\n instance.giveChange();\n }",
"private Statement wrapExpectedExceptions(final Statement s, TestCandidate c, Object instance) {\n Test ann = c.method.getAnnotation(Test.class);\n \n // If there's no expected class, don't wrap. Eh, None is package-private...\n final Class<? extends Throwable> expectedClass = ann.expected();\n if (expectedClass.getName().equals(\"org.junit.Test$None\")) {\n return s;\n }\n \n return new Statement() {\n @Override\n public void evaluate() throws Throwable {\n try {\n s.evaluate();\n } catch (Throwable t) {\n if (!expectedClass.isInstance(t)) {\n throw t;\n }\n // We caught something that was expected. No worries then.\n return;\n }\n \n // If we're here this means we passed the test that expected a failure.\n Assert.fail(\"Expected an exception but the test passed: \"\n + expectedClass.getName());\n }\n };\n }",
"public void checkException() {\n/* 642 */ checkException(voidPromise());\n/* */ }",
"@Test\n public void shouldThrowIfInvalidActionInVersion() {\n\n // GIVEN\n ActionProcessor processor = new ActionProcessor(false, false);\n List<Action> actionsToProcess = asList(ADD_FILE, REMOVE_FILE, ADD_FILE);\n DeltaSourceException caughtException = null;\n\n // WHEN\n try {\n processor.processActions(prepareChangesToProcess(actionsToProcess));\n } catch (DeltaSourceException e) {\n caughtException = e;\n }\n\n // THEN\n assertThat(caughtException, notNullValue());\n assertThat(caughtException.getSnapshotVersion().orElse(null), equalTo(SNAPSHOT_VERSION));\n assertThat(caughtException.getTablePath().orElse(null), equalTo(TABLE_PATH));\n }",
"public <T extends Throwable> void validateRootCause(Runnable runnable, Class<T> exceptionClass) {\n try {\n runnable.run();\n Assert.fail(\"Expected \" + exceptionClass.getName());\n } catch (Exception e) {\n Assert.assertThat(getRootCause(e), instanceOf(exceptionClass));\n }\n }",
"@Test\n public void testDeleteHandlesOtherExceptionsCorrectly() throws Exception {\n\n AmazonServiceException exception = new AmazonServiceException(\"Boom!\");\n exception.setErrorCode(\"SomeOtherArbitraryCode\");\n testDelete(true, Optional.of(exception), true);\n }",
"@Test\n public void testSecurityConfiguredWithTwoExceptions() throws Exception {\n MockEndpoint result = getMockEndpoint(ExceptionBuilderTest.RESULT_QUEUE);\n result.expectedMessageCount(0);\n MockEndpoint mock = getMockEndpoint(ExceptionBuilderTest.SECURITY_ERROR_QUEUE);\n mock.expectedMessageCount(1);\n mock.expectedHeaderReceived(ExceptionBuilderTest.MESSAGE_INFO, \"Damm some security error\");\n try {\n template.sendBody(\"direct:a\", \"I am not allowed to do this\");\n Assert.fail(\"Should have thrown a GeneralSecurityException\");\n } catch (RuntimeCamelException e) {\n Assert.assertTrue(((e.getCause()) instanceof GeneralSecurityException));\n // expected\n }\n MockEndpoint.assertIsSatisfied(result, mock);\n }",
"@Override // io.reactivex.functions.Consumer\n public void accept(Throwable th) {\n }",
"public boolean onExceptionalCompletion(Throwable paramThrowable, CountedCompleter<?> paramCountedCompleter)\n/* */ {\n/* 489 */ return true;\n/* */ }",
"void failed (Exception e);",
"@Test(expected = NullPointerException.class)\n public void testSubmitNPE2() throws Exception {\n CompletionService<Boolean> ecs = new BoundedCompletionService<Boolean>(\n new ExecutorCompletionService<Boolean>(e));\n Runnable r = null;\n ecs.submit(r, Boolean.TRUE);\n shouldThrow();\n }",
"default void failure(ConsumerRecord<K, V> record, Exception exception, Consumer<K, V> consumer) {\n\t}",
"@Test(expected = IllegalStateException.class)\n\tpublic void testException() {\n\t\tsubGen.subset(11);\n\t}",
"@Test(expected = Exception.class)\n public void testOrganiseTalkExceptionTrown() throws Exception {\n // single talk should throw exception\n String title = \"Single Talk\";\n try{\n \n ConferenceCommittee.acceptTalkSubmission(title, new ArrayList<Talk>());\n } catch (Exception e) {\n assertEquals(e.getMessage(), \"Cant organise talk - \" + title); // TODO: check spelling in assertion messages\n throw e;\n }\n fail(\"Exception not thrown\");\n\n }",
"@Test(expected = GenieServerException.class)\n public void testGetFileMethodFailureToFetch() throws GenieException {\n Mockito.when(this.s3Client.getObject(Mockito.any(GetObjectRequest.class), Mockito.any(File.class))).thenThrow(new AmazonS3Exception(\"something\"));\n final ArgumentCaptor<GetObjectRequest> argument = ArgumentCaptor.forClass(GetObjectRequest.class);\n try {\n this.s3FileTransfer.getFile(S3FileTransferImplUnitTests.S3_PATH, S3FileTransferImplUnitTests.LOCAL_PATH);\n } finally {\n Mockito.verify(this.s3Client).getObject(argument.capture(), Mockito.any());\n Assert.assertEquals(S3FileTransferImplUnitTests.S3_BUCKET, argument.getValue().getBucketName());\n Assert.assertEquals(S3FileTransferImplUnitTests.S3_KEY, argument.getValue().getKey());\n Mockito.verify(this.downloadTimer, Mockito.times(1)).record(Mockito.anyLong(), Mockito.eq(TimeUnit.NANOSECONDS));\n Mockito.verify(this.registry, Mockito.times(1)).timer(Mockito.eq(DOWNLOAD_TIMER_NAME), this.tagsCaptor.capture());\n Assert.assertEquals(MetricsUtils.newFailureTagsSetForException(new GenieServerException(\"blah\")), this.tagsCaptor.getValue());\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testScanItemHighException(){\n instance.scanItem(1E6);\n }",
"@Test(expected = IllegalStateException.class)\r\n public void dummyThrowsExceptionWhenAttacked() {\n\r\n dummy.takeAttack(AXE_ATTACK);\r\n }",
"@Test\n public void test01() throws MessagingException {\n\n }",
"private void verifyExceptionThrown(Exception thrown, Class expected) {\n\n boolean exceptionFound = false;\n Throwable cause = thrown;\n while (cause != null) {\n if (expected.isInstance(cause)) {\n // good\n exceptionFound = true;\n break;\n }\n else {\n cause = cause.getCause();\n }\n }\n if (!exceptionFound) {\n Assert.fail(expected.getSimpleName() + \" was expected but not thrown\", thrown);\n }\n }",
"void markFailed(Execution execution, Throwable cause);",
"Object proceed() throws Throwable;",
"public interface OOPExpectedException {\n\n /**\n * @return the expected exception type.\n */\n Class<? extends Exception> getExpectedException();\n\n /**\n * expect an exception with the given type to be thrown.\n *\n * @param expected - the expected exception type.\n * @return this object.\n */\n OOPExpectedException expect(Class<? extends Exception> expected);\n\n /**\n * expect the exception message to have a message as its substring.\n * Should be okay if the message expected is a substring of the entire exception message.\n * Can expect several messages.\n * Example: for the exception message: \"aaa bbb ccc\", for an OOPExpectedException e:\n * e.expectMessage(\"aaa\").expectMessage(\"bb c\");\n * - This should be okay.\n *\n * @param msg - the expected message.\n * @return this object.\n */\n OOPExpectedException expectMessage(String msg);\n\n /**\n * checks that the exception that was thrown, and passed as parameter,\n * is of a type as expected. Also checks expected message are contained in the exception message.\n * <p>\n * Should handle inheritance. For example, for expected exception A, if an exception B was thrown,\n * and B extends A, then it should be okay.\n *\n * @param e - the exception that was thrown.\n * @return whether or not the actual exception was as expected.\n */\n boolean assertExpected(Exception e);\n\n\n /**\n * @return an instance of an ExpectedException with no exception or expected messages.\n * <p>\n * This static method must be implemented in OOPExpectedExceptionImpl and return an actual object.\n * <p>\n * If this is the state of the ExpectedException object, then no exception is expected to be thrown.\n * So, if an exception is thrown, an OOPResult with ERROR should be returned\n */\n static OOPExpectedException none() {\n return OOPExpectedExceptionImpl.none();\n }\n}",
"@Test(expected = InsufficientResourcesException.class )\npublic void testSubtractBalance() throws InsufficientResourcesException {\n sut.subtractBalance(100,1,new Account());\n}",
"@Override public final boolean onExceptionalCompletion(Throwable ex, CountedCompleter caller ) {\n if( _nleft != null ) _nleft.cancel(true); _nleft = null;\n if( _nrite != null ) _nrite.cancel(true); _nrite = null;\n _left = null;\n _rite = null;\n return super.onExceptionalCompletion(ex, caller);\n }",
"public interface RoutineException {}",
"@Test(expected=Exception.class)\n public void withdraw1100FromAccount_shouldThrowException() throws Exception{\n account.withdraw(1100);\n }",
"@Test\n void testDoThrow() {\n\n doThrow(RuntimeException.class).when(dao).foo();\n // doThrow(new RuntimeException()).when(dao).foo();\n\n RuntimeException exception = Assertions.assertThrows(NullPointerException.class,\n () -> service.fetchBookById(42)\n );\n assertThat(exception.getClass(), is(equalTo(NullPointerException.class)));\n }",
"@Test(expected = SleepInterruptedException.class)\n public void shouldLetUncheckedInterruptedExceptionsPropagate() {\n timeKeeper.scheduleCallback(() -> { throw new SleepInterruptedException(); },\n THIRTY_MILLIS);\n\n new DefaultPollEvent<>(new NeverMetCondition(), timeKeeper)\n .waitUpTo(50, MILLIS);\n }",
"public void testCtorWithWrongTransferable() {\n try {\n new PasteAssociationAction(new ClassElementsTransfer(new DependencyImpl()), namespace);\n fail(\"InvalidDataContentException is expected.\");\n } catch (InvalidDataContentException idce) {\n // pass\n }\n }",
"@Override\n\tpublic void run(Throwable escalation) throws Throwable {\n\t\tAssert.assertFalse(\"Flow already flagged as complete\", this.isComplete);\n\t\tthis.failure = escalation;\n\t\tthis.isComplete = true;\n\t}",
"void acceptOrThrow(T t, U u, V v) throws Throwable;",
"public void testApplicationsManagerExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n ApplicationsManagerException ce = new ApplicationsManagerException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", ce.getMessage());\n assertEquals(\"cause is incorrect.\", e, ce.getCause());\n }",
"@Test\n void testDothrow() {\n Examen examen = Datos.EXAMEN;\n doThrow(IllegalArgumentException.class).when(preguntaRepository).guardarVarias(anyList());\n\n examen.setPreguntas(Datos.PREGUNTAS);\n assertThrows(IllegalArgumentException.class, () -> {\n service.guardar(examen);\n });\n }",
"@Test\n public void overdraw_forSavingsAccount_shouldThrowException() {\n\n AccountWithEnum accountWithEnum = new AccountWithEnum(100, 12345, AccountType.SAVINGS);\n\n Assert.assertThrows(ArithmeticException.class,\n () -> {accountWithEnum.withdraw(150);});\n }",
"@Test\n public void testUnwrapInvocationTargetExceptionWithCause() {\n RuntimeException rte = new RuntimeException();\n InvocationTargetException iteWithCause = new InvocationTargetException(rte);\n assertTrue(rte == ExceptionUtil.unwrapInvocationTargetException(iteWithCause));\n }",
"public void testExecute2() throws Exception {\r\n try {\r\n handler.execute(null);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // ok.\r\n }\r\n }",
"@Test(expected = NullPointerException.class)\n public void testConstructorNPE() throws NullPointerException {\n new BoundedCompletionService<Void>(null);\n shouldThrow();\n }",
"@Test\n public void testClassCoverageFail() throws Exception {\n Jenkins jenkins = jenkinsRule.jenkins;\n WorkflowJob project = jenkins.createProject(WorkflowJob.class, \"cob-test\");\n \n project.setDefinition(new CpsFlowDefinition(new ScriptBuilder()\n .setClassCoverage(\"80,101,0\").getScript()));\n \n copyCoverageFile(\"coverage-with-data.xml\", \"coverage.xml\", project);\n \n WorkflowRun run = project.scheduleBuild2(0).get();\n jenkinsRule.waitForCompletion(run);\n \n jenkinsRule.assertLogContains(\"Publishing Cobertura coverage report...\", run);\n jenkinsRule.assertLogContains(\"Unhealthy for the following metrics:\", run);\n jenkinsRule.assertLogContains(\"Classes's health is 100.0 and set minimum health is 101.0.\", run);\n jenkinsRule.assertLogContains(\"ERROR: [Cobertura] Failing build because it is unhealthy.\", run);\n jenkinsRule.assertLogContains(\"Finished: FAILURE\", run);\n }",
"private ChannelFuture checkException(ChannelPromise promise) {\n/* 624 */ Throwable t = this.lastException;\n/* 625 */ if (t != null) {\n/* 626 */ this.lastException = null;\n/* */ \n/* 628 */ if (promise.isVoid()) {\n/* 629 */ PlatformDependent.throwException(t);\n/* */ }\n/* */ \n/* 632 */ return (ChannelFuture)promise.setFailure(t);\n/* */ } \n/* */ \n/* 635 */ return (ChannelFuture)promise.setSuccess();\n/* */ }",
"Throwable cause();",
"@Test(expected = GenieServerException.class)\n public void testPutFileMethodFailureToFetch() throws GenieException {\n Mockito.when(this.s3Client.putObject(Mockito.any(), Mockito.any(), Mockito.any(File.class))).thenThrow(new AmazonS3Exception(\"something\"));\n final ArgumentCaptor<String> bucketArgument = ArgumentCaptor.forClass(String.class);\n final ArgumentCaptor<String> keyArgument = ArgumentCaptor.forClass(String.class);\n try {\n s3FileTransfer.putFile(S3FileTransferImplUnitTests.LOCAL_PATH, S3FileTransferImplUnitTests.S3_PATH);\n } finally {\n Mockito.verify(this.s3Client).putObject(bucketArgument.capture(), keyArgument.capture(), Mockito.any(File.class));\n Assert.assertEquals(S3FileTransferImplUnitTests.S3_BUCKET, bucketArgument.getValue());\n Assert.assertEquals(S3FileTransferImplUnitTests.S3_KEY, keyArgument.getValue());\n Mockito.verify(this.uploadTimer, Mockito.times(1)).record(Mockito.anyLong(), Mockito.eq(TimeUnit.NANOSECONDS));\n Mockito.verify(this.registry, Mockito.times(1)).timer(Mockito.eq(UPLOAD_TIMER_NAME), this.tagsCaptor.capture());\n Assert.assertEquals(MetricsUtils.newFailureTagsSetForException(new GenieServerException(\"blah\")), this.tagsCaptor.getValue());\n }\n }",
"@Test(timeout = 4000)\n public void test15() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.bondContractDetails(2591, (ContractDetails) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"@Test\n public void testTake() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Future<String> f = ecs.take();\n Assert.assertTrue(f.isDone());\n } catch (Exception ex) {\n unexpectedException();\n }\n }",
"@Test(expected = NullPointerException.class)\n public void testConstructorNPE2() throws NullPointerException {\n Executors.newCachedThreadPool();\n new BoundedCompletionService<Void>(null);\n shouldThrow();\n }",
"@Test(timeout = 4000)\n public void test271() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"!x\");\n // Undeclared exception!\n try { \n xmlEntityRef0.wrapSelf();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // No top level component found.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }",
"@Override public final boolean onExceptionalCompletion(Throwable ex, CountedCompleter caller ) {\n //if( _nleft != null ) _nleft.cancel(true); _nleft = null;\n //if( _nrite != null ) _nrite.cancel(true); _nrite = null;\n //if( _left != null ) _left.cancel(true); _left = null;\n //if( _rite != null ) _rite.cancel(true); _rite = null;\n _nleft = _nrite = null;\n _left = _rite = null;\n return super.onExceptionalCompletion(ex, caller);\n }",
"@Test\n public void testUnwrapInvocationTargetExceptionWithOtherException() {\n RuntimeException rte = new RuntimeException();\n assertTrue(rte == ExceptionUtil.unwrapInvocationTargetException(rte));\n }",
"@Test\n\tvoid testInvalidCustomerType() {\n\t\tCustomerTypeFactory customerTypeFactory = new CustomerTypeFactory();\n\t\tassertThrows(CustomerTypeException.class, () -> {\n\t\t\tcustomerTypeFactory.getCustomerType(\"gold\");\n\t });\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void testScanItemLowException(){\n instance.scanItem(-0.5);\n }",
"public InvalidEventHandlerException() {\n }",
"@Test(expected = ArityMismatchException.class)\n public void testExecException1() throws Exception {\n mv.exec(new String[]{\"mv\", \"dir1\"}, io);\n }",
"@Test\n public void testRevertSuccessCommitFailed() throws Exception {\n Mockito.when(delegateCli.executeAndSwitchPrompt(Mockito.any(Command.class), Mockito.any(Predicate.class)))\n .thenReturn(CompletableFuture.completedFuture(\"\"));\n thrown.expect(WriterRegistry.Reverter.RevertSuccessException.class);\n this.unit.getPostFailedHook(this.context)\n .run(null);\n }",
"@Test\r\n public void findUserInvalidUserId() {\r\n\r\n assertThatThrownBy(() -> {\r\n this.usermanagement.findUserRole(-1L);\r\n }).isInstanceOf(Exception.class);\r\n }",
"void exceptionCaught(Throwable cause) throws Exception;",
"void exceptionCaught(Throwable cause) throws Exception;",
"@Test(expected= VotingException.class)\n public void VotingMadeByAuthorThrowsException() throws Exception {\n\n bob.upVote(bobPost);\n bob.downVote(bobPost);\n alice.upVote(question);\n alice.downVote(question);\n }",
"@Test\n public void testTake2() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Callable<String> c = new StringTask();\n Future<String> f1 = ecs.submit(c);\n Future<String> f2 = ecs.take();\n Assert.assertSame(f1, f2);\n } catch (Exception ex) {\n unexpectedException();\n }\n }",
"@Factory\r\n public static Matcher<Proc> raisesException(Class<? extends Exception> clazz) {\r\n return new Raises(IsThrowable.exception(clazz));\r\n }",
"@Test(timeout = 4000)\n public void test105() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Type type0 = Type.DOUBLE_TYPE;\n Type type1 = Type.VOID_TYPE;\n Type type2 = Type.BOOLEAN_TYPE;\n Type type3 = Type.FLOAT_TYPE;\n Type type4 = Type.SHORT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(158);\n Item item0 = classWriter0.key2;\n Item item1 = new Item(10);\n // Undeclared exception!\n try { \n frame0.execute(176, 0, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test43() throws Throwable {\n ContractDetails contractDetails0 = new ContractDetails((Contract) null, \" tradingClass=\", \" tradingClass=\", 2230.42, \" tradingClass=\", \"A(Qmft.fObCA t\", 2508, \"q7qtU8+N|#Qs\", \" tradingClass=\", \" whyHeld=\", \"/9I>auS;,$\", \"cumQty = \", \" whyHeld=\", \"\", \"q7qtU8+N|#Qs\");\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.contractDetails((-1957), contractDetails0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test209() throws Throwable {\n Form form0 = new Form(\"?_AON\");\n // Undeclared exception!\n try { \n form0.end();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Could not end compoennt, already at root.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }",
"@Test\n public void testSecurityConfiguredWithExceptionList() throws Exception {\n MockEndpoint result = getMockEndpoint(ExceptionBuilderTest.RESULT_QUEUE);\n result.expectedMessageCount(0);\n MockEndpoint mock = getMockEndpoint(ExceptionBuilderTest.ERROR_QUEUE);\n mock.expectedMessageCount(1);\n mock.expectedHeaderReceived(ExceptionBuilderTest.MESSAGE_INFO, \"Damm some access error\");\n try {\n template.sendBody(\"direct:a\", \"I am not allowed to access this\");\n Assert.fail(\"Should have thrown a GeneralSecurityException\");\n } catch (RuntimeCamelException e) {\n Assert.assertTrue(((e.getCause()) instanceof IllegalAccessException));\n // expected\n }\n MockEndpoint.assertIsSatisfied(result, mock);\n }",
"void mo57276a(Exception exc);",
"@CustomExceptionTest(ArithmeticException.class)\n public static void test5() {\n }",
"@Test\n public void testVisitThrowingException() {\n ResetBasicData.reset();\n\n Query<Customer> query = DB.find(Customer.class).setAutoTune(false)\n .fetchQuery(\"contacts\").where().gt(\"id\", 0).order(\"id\")\n .setMaxRows(2).query();\n\n final AtomicInteger counter = new AtomicInteger(0);\n\n assertThrows(IllegalStateException.class, () -> {\n query.findEachWhile(customer -> {\n counter.incrementAndGet();\n if (counter.intValue() > 0) {\n throw new IllegalStateException(\"cause a failure\");\n }\n return true;\n });\n });\n }",
"public void ifFailure(@NotNull Consumer<Data> consumer) {\n if (_type == Type.FAILURE) {\n consumer.accept(_data);\n }\n }",
"@Test(timeout = 4000)\n public void test13() throws Throwable {\n Contract contract0 = new Contract();\n ContractDetails contractDetails0 = new ContractDetails(contract0, \"FkqJC9O=9\", (String) null, (-4322.0), (String) null, (String) null, 1274, (String) null, (String) null, (String) null, (String) null, \" underComp.conId =\", \"kJtj\", (String) null, (String) null);\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.execDetails(1274, contractDetails0.m_summary, (Execution) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"public void testVerifyOrderDoesntMatter(){\n _throws _tt = new _throws( );\n _tt.add( RuntimeException.class );\n _tt.add( IOException.class );\n\n _throws _ot = _throws.of( IOException.class, RuntimeException.class );\n assertEquals( _tt, _ot );\n }",
"@Test(timeout = 4000)\n public void test31() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.deltaNeutralValidation((-2236), (UnderComp) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }",
"public void testCtor3Accuracy() {\n ContestEligibilityValidatorException exception = new ContestEligibilityValidatorException(CAUSE);\n assertNotNull(\"Unable to instantiate ContestEligibilityValidatorException.\", exception);\n assertEquals(\"Cause is not properly propagated to super class.\", CAUSE, exception.getCause());\n }",
"void readFaultyRecipientsTest() {\n Assertions.assertThrows(RuntimeException.class,\n () -> Reader.readRecipients(Paths.get(\"src/test/resources/faulty_recipients.txt\")));\n }",
"@Factory\r\n public static Matcher<Proc> raisesException() {\r\n return raises(IsThrowable.exception());\r\n }",
"@Test(timeout = 4000)\n public void test143() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"oi\");\n // Undeclared exception!\n try { \n xmlEntityRef0.find(\"oi\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // No top level component found.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test150() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Submit submit0 = new Submit(errorPage0, \"X\", \"java.lang.String@0000000004\");\n // Undeclared exception!\n try { \n submit0.dt((Object) \"sub\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }",
"public static CatchBlock catch_(Class clazz, Expression expression) { throw Extensions.todo(); }"
] |
[
"0.6509256",
"0.62733823",
"0.62239534",
"0.61939543",
"0.60417235",
"0.58993495",
"0.5818325",
"0.5742876",
"0.5628149",
"0.5391673",
"0.5358445",
"0.52772504",
"0.52720195",
"0.52681804",
"0.52467763",
"0.52329576",
"0.5229506",
"0.52096593",
"0.520818",
"0.5199855",
"0.51915646",
"0.51914185",
"0.5183197",
"0.5179573",
"0.51737297",
"0.51706845",
"0.51668113",
"0.5163021",
"0.51463306",
"0.5144775",
"0.51367766",
"0.5121677",
"0.5093643",
"0.5082256",
"0.5081008",
"0.5078851",
"0.5068941",
"0.50642425",
"0.50617576",
"0.5052733",
"0.50526154",
"0.5047129",
"0.5041903",
"0.50299215",
"0.50290346",
"0.5022033",
"0.5015288",
"0.5000385",
"0.49995404",
"0.4998659",
"0.49974376",
"0.49959382",
"0.49941033",
"0.49884334",
"0.49792516",
"0.4978942",
"0.49782613",
"0.49622533",
"0.49608713",
"0.49509266",
"0.49509212",
"0.49454987",
"0.49306285",
"0.49304137",
"0.49250185",
"0.49158245",
"0.4909114",
"0.4903059",
"0.49022654",
"0.4898295",
"0.48972297",
"0.489685",
"0.48950085",
"0.48890588",
"0.48883402",
"0.4885737",
"0.48775417",
"0.4858621",
"0.48420393",
"0.48420393",
"0.48418346",
"0.48410916",
"0.48385292",
"0.48346692",
"0.4829189",
"0.4828571",
"0.482589",
"0.48190823",
"0.48171273",
"0.4815256",
"0.4814073",
"0.48127097",
"0.48121983",
"0.4812038",
"0.4810172",
"0.4802644",
"0.47960025",
"0.47946647",
"0.479357",
"0.4790577"
] |
0.77662766
|
0
|
Method responsible for washing if the obj is in appropriate state
|
public void wash() {
synchronized (this) {
LOGGER.info("{}:Actual machine state:{}", Thread.currentThread().getName(),
getWashingMachineState());
if (WashingMachineState.WASHING.equals(washingMachineState)) {
LOGGER.error("ERROR:Cannot wash if the machine has already been washing");
return;
}
washingMachineState = WashingMachineState.WASHING;
}
LOGGER.info("{}:Doing the washing", Thread.currentThread().getName());
try {
Thread.sleep(50);
} catch (Exception e) {
e.printStackTrace();
}
endWashing();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected boolean isObjectHeld() { return objHeld; }",
"private void backObject() {\n\t\tif(this.curr_obj != null) {\n this.curr_obj.uMoveToBack();\n }\n\t}",
"protected abstract List breakOutOfStateStack();",
"@SuppressWarnings(\"unchecked\")\n public boolean stillExists(Object obj) {\n \treturn true;\n }",
"public void recycle(Object object)\r\n/* 180: */ {\r\n/* 181:206 */ if (object != this.value) {\r\n/* 182:207 */ throw new IllegalArgumentException(\"object does not belong to handle\");\r\n/* 183: */ }\r\n/* 184:209 */ this.stack.push(this);\r\n/* 185: */ }",
"public void inscreaseHits(Object obj) {\n\t\tdao.updateHits(obj);\n\t}",
"@Override\n\tpublic void onCollision(WorldObj obj) {\n\t\tif(obj.removalFlag)\n\t\t\treturn;\n\t\t\n\t\t\n\t\tif(obj.item != null) {\n\t\t\t\n\t\t\t\n\t\t\tif(obj.stateTime > 0.2f) {\n\t\t\t\tAddItemToBag(obj.item,obj.stack);\n\t\t\t\tobj.removalFlag = true;\n\t\t\t\t\n\t\t\t\tGdx.app.debug(\"\", \"\"+obj.stack);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tsuper.onCollision(obj);\n\t}",
"protected boolean filterOutObject(PhysicalObject object) {\n return false;\n }",
"private synchronized void endWashing() {\n washingMachineState = WashingMachineState.ENABLE;\n LOGGER.info(\"{}:Washing complete.\", Thread.currentThread().getId());\n }",
"@Override\n\tpublic boolean update(Etape obj) {\n\t\treturn false;\n\t}",
"public boolean isUnsaved(Object obj) {\n return null;\r\n }",
"void check(){\n if(!data.up.isEmpty()){\r\n if(data.floor == data.up.get(0)){\r\n data.up.remove(0);\r\n data.state = 0;\r\n data.statePrv = 1;\r\n data.isMoving = false;\r\n }\r\n }\r\n if(!data.down.isEmpty()){\r\n if(data.floor == data.down.get(0)){\r\n data.down.remove(0);\r\n data.state = 0;\r\n data.statePrv = -1;\r\n data.isMoving = false;\r\n }\r\n }\r\n }",
"void clearObjectFlowStates();",
"@Override\n public void bankrupt() {\n this.mortgaged = false;\n }",
"protected synchronized void postObjectPresent(boolean objPresent) {\r\n this.objPresent = objPresent;\r\n }",
"boolean removeObjectFlowState(ObjectFlowState objectFlowState);",
"public final void putObject(Object obj) \n\t{\n\tif (obj == null)\n\t\treturn;\n\t\t\n\tif (fTop < fBin.length)\n\t\tfBin[fTop++] = obj;\n\telse\n\t\t{\n\t\tfOverflowCounter++;\n\t\tfHasOverflowed = true;\n\t\t}\n\t}",
"protected void checkAfterAnalyse(AbstractObjectWapper<?> srcObject, AbstractObjectWapper<?> destObject) {\n\t}",
"public void ejectTicket(){if(this.inProgress()){this.currentTicket=null;}}",
"private void breakSpecialState() {\n this.inSpecialState = false;\n this.resetXMovement();\n }",
"public void mo33169b(Object obj) {\n if (mo33171b()) {\n Log.e(this.f14707a, obj.toString());\n }\n }",
"public void checkSaveObjectData() {\r\n\t\tif (this.objectDescriptionTabItem != null) this.objectDescriptionTabItem.checkSaveObjectData();\r\n\t}",
"private void saveCurrentObject() {\n\t}",
"protected void processWakeUpObject(VObject inObject) {\n\t\tboolean doXmppStatus = true;\n\t\tfinal boolean isXmppObject = inObject.isXMPP();\n\n\t\t//Special case for xmpp object, we will check the resources\n\t\tString theRessource = null;\n\t\tif (isXmppObject) {\n\t\t\tfinal List<String> resources = inObject.getResources(); //IQResourcesQuery.getClientResources(inObject.getXmppAddress());\n\t\t\tif (resources.isEmpty()) {\n\t\t\t\tinObject.setState(VObject.STATUS_ACTIF);\n\t\t\t} else if (resources.contains(\"idle\") || resources.contains(\"streaming\") || resources.contains(\"itmode\") || resources.contains(\"busy\")) {\n\t\t\t\ttheRessource = resources.get(0);\n\t\t\t\tdoXmppStatus = false;\n\t\t\t}\n\t\t}\n\n\t\tfinal int inState = inObject.getObject_state();\n\t\tCrawlerCheckStatus.LOGGER.info(\"Processing wakeup for \" + inObject.getObject_serial() + \" / \" + inState + \" / \" + theRessource);\n\n\t\t//all STATUS_WILLBE_* are used only for xmpp objects\n\t\tswitch (inState) {\n\t\tcase VObject.STATUS_ACTIF: // special case because cache notification is slow/missing so i override this value in db. \n\t\t\tinObject.overrideState(VObject.STATUS_ACTIF);\n\t\t\tsendXmppStatus(inObject, Message.MODE.ACTIF.getId(), JabberMessageFactory.IQ_STATUS_ASLEEP_MODE);\n\t\t\tbreak;\n\t\tcase VObject.STATUS_VEILLE:\n\t\tcase VObject.STATUS_FORCE_ACTIF:\n\t\tcase VObject.STATUS_WILLBE_VEILLE:\n\t\tcase VObject.STATUS_WILLBE_ACTIF:\n\t\tcase VObject.STATUS_WILLBE_FORCE_ACTIF:\n\t\t\tif (inObject.isXMPP() && doXmppStatus) {\n\t\t\t\tsendXmppStatus(inObject, Message.MODE.ACTIF.getId(), JabberMessageFactory.IQ_STATUS_ASLEEP_MODE);\n\t\t\t} else {\n\t\t\t\tinObject.setState(VObject.STATUS_ACTIF);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase VObject.STATUS_WILLBE_FORCE_VEILLE: //normally, object ping do not enter in this condition\n\t\t\tif (inObject.isXMPP() && !doXmppStatus) {\n\t\t\t\tsendXmppStatus(inObject, Message.MODE.FORCE_VEILLE.getId(), JabberMessageFactory.IQ_STATUS_IDLE_MODE);\n\t\t\t} else {\n\t\t\t\tinObject.setState(VObject.STATUS_FORCE_VEILLE);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}",
"public void restore(Object obj) throws HibException;",
"protected void setObjectHeld(boolean oHeld) { objHeld = oHeld; }",
"@Override\n\tprotected void on_object_picked_up(GfxObject object) {\n\n\t}",
"@Override\r\n\tpublic void resetObject() {\n\t\t\r\n\t}",
"public boolean push(Serializable obj) throws JournalException {\n String b64;\n try {\n byte[] out = Serialization.encode(obj);\n b64 = Utility.toBase64(out);\n } catch (Serialization.EncodingException e) {\n return false;\n }\n\n this.pendingOps.offer(obj);\n try {\n log.write(b64 + \"\\n\");\n } catch (IOException e) {\n return false;\n }\n return true;\n }",
"public void enterHatchingState() {\n\n\t}",
"@Override\n public void updete(Object obj) {\n\n }",
"private boolean processMovingObject()\n {\n MovingObject[] ap_objects = p_gsb.ap_MovingObjects;\n for (int li = 0;li < ap_objects.length;li++)\n {\n MovingObject p_obj = ap_objects[li];\n\n if (!p_obj.lg_Active) continue;\n\n if (p_obj.process())\n {\n if (p_obj.i_State == MovingObject.STATE_EXPLODE)\n {\n p_obj.lg_Active = false;\n continue;\n }\n }\n\n if (p_obj.i_State == MovingObject.STATE_EXPLODE) continue;\n\n switch (p_obj.i_Type)\n {\n case MovingObject.TYPE_ARROW:\n {\n p_obj.i_scry -= ARROWSPEED;\n if (p_obj.i_scry <= (0 - p_obj.i_height))\n {\n p_obj.lg_Active = false;\n continue;\n }\n }\n ;\n break;\n case MovingObject.TYPE_ASSAULTER:\n {\n if (getRandomInt(1000) <= p_gsb.i_shotfreq)\n {\n MovingObject p_arrow = p_gsb.getInactiveMovingObject();\n if (p_arrow != null)\n {\n p_arrow.activate(MovingObject.TYPE_ARROW,MovingObject.STATE_UP);\n p_arrow.i_scrx = p_obj.i_scrx;\n p_arrow.i_scry = p_obj.i_scry - p_arrow.i_height;\n }\n }\n\n if (p_obj.i_State != MovingObject.STATE_DOWN) generateLadderAndDamForAssaulter(p_obj);\n\n switch (p_obj.i_State)\n {\n case MovingObject.STATE_LEFT:\n {\n if (p_obj.i_scrx - ASSAULTER_HORZSPEED < 0)\n {\n p_obj.setState(MovingObject.STATE_RIGHT,false);\n }\n else\n {\n p_obj.i_scrx -= ASSAULTER_HORZSPEED;\n }\n }\n ;\n break;\n case MovingObject.STATE_RIGHT:\n {\n if (p_obj.i_scrx + p_obj.i_width + ASSAULTER_HORZSPEED >= i_screenWidth)\n {\n p_obj.setState(MovingObject.STATE_LEFT,false);\n }\n else\n {\n p_obj.i_scrx += ASSAULTER_HORZSPEED;\n }\n }\n ;\n break;\n case MovingObject.STATE_UP:\n {\n p_obj.i_scry -= ASSAULTER_VERTSPEED;\n if ((p_obj.i_scry + (p_obj.i_height >> 1)) / VIRTUALCELL_HEIGHT == 0/*p_gsb.i_playeralt*/) return true;\n }\n ;\n break;\n case MovingObject.STATE_DOWN:\n {\n p_obj.i_scry += ASSAULTER_VERTSPEED;\n int i_cellx = p_obj.i_scrx / VIRTUALCELL_WIDTH;\n int i_celly = (p_obj.i_scry + p_obj.i_height - 1) / VIRTUALCELL_HEIGHT;\n boolean lg_stop = false;\n if (i_celly < FIELD_HEIGHT-p_gsb.i_playeralt)\n {\n if (Assault_GSB.getElement(i_cellx,i_celly) != Assault_GSB.CELL_NONE) lg_stop = true;\n }\n else\n {\n lg_stop = true;\n i_celly--;\n }\n\n if (lg_stop)\n {\n p_obj.i_scry = i_celly * VIRTUALCELL_HEIGHT;\n if (getRandomInt(40) >= 20)\n {\n p_obj.setState(MovingObject.STATE_LEFT,false);\n }\n else\n {\n p_obj.setState(MovingObject.STATE_RIGHT,false);\n }\n }\n }\n ;\n break;\n }\n }\n ;\n break;\n case MovingObject.TYPE_STONE:\n {\n if (p_obj.i_State == MovingObject.STATE_DOWN)\n {\n p_obj.i_scry += STONESPEED;\n if ((p_obj.i_scry + p_obj.i_height) >= FIELD_HEIGHT * VIRTUALCELL_HEIGHT)\n {\n p_obj.i_scry = (FIELD_HEIGHT * VIRTUALCELL_HEIGHT) - p_obj.i_height - 1;\n p_obj.setState(MovingObject.STATE_EXPLODE,false);\n }\n }\n }\n ;\n break;\n }\n }\n return false;\n }",
"@Override\r\n\tboolean isSunk() {\r\n\t\treturn false;\r\n\t}",
"private void maintain() {\n SoftObject obj;\n int count = 0;\n\n while ((obj = (SoftObject)queue.poll()) != null) {\n count++;\n collection.remove(obj);\n }\n\n if (count != 0) {\n // some temporary debugging fluff\n System.err.println(\"vm reclaimed \" + count + \" objects\");\n }\n }",
"@Override\n\tpublic boolean erTom() {\n\t\treturn (bak == null);\n\t}",
"private boolean isDiscarded(Object obj) {\n if (obj instanceof Item) {\n return isDiscardedStatus(((Item) obj).getStatus());\n } else if (obj instanceof Container) {\n return isDiscardedStatus(((Container) obj).getStatus());\n } else if (obj instanceof Space) {\n return isDiscardedStatus(((Space) obj).getStatus());\n } else if (obj instanceof MetadataProfile) {\n return isDiscardedStatus(((MetadataProfile) obj).getStatus());\n } else if (obj instanceof Person) {\n return false;\n } else if (obj instanceof Organization) {\n return false;\n }\n return false;\n }",
"public void take(GameObject obj)\n {\n if(obj.isTakeable())\n {\n getInventory().add(obj);\n\n int objIndex = -1;\n for(int i = 0; i<getRoom().getList().size(); i++)\n {\n if(getRoom().getList().get(i) == obj)\n {\n objIndex = i;\n }\n }\n\n if(!getRoom().getList().get(objIndex).getIsContained())\n {\n getRoom().getList().remove(getRoom().getList().get(objIndex));\n }\n else {\n getRoom().getList().get(objIndex).getContainer().removeObject(obj);\n getRoom().getList().remove(getRoom().getList().get(objIndex));\n }\n //System.out.println(\"You took the \" + obj.getName());\n }\n else\n {\n //System.out.println(\"You cannot take that\");\n throw new ArithmeticException(\"NPCs can't have that, something's wrong with the code!\");\n }\n }",
"private boolean noVacancy() {\r\n\t\t\treturn removed = false;\r\n\t\t}",
"private void writeObject(final java.io.ObjectOutputStream out) throws java.io.IOException {\n\t\t/*\n\t\t * out.writeInt(0); // Version of the stream. // Version 0 outstuff...\n\t\t * out.writeObject(states); out.writeObject(initialState);\n\t\t * out.writeObject(finalStates); out.writeObject(transitions); if (this\n\t\t * instanceof TuringMachine) { out.writeInt(((TuringMachine)\n\t\t * this).tapes); } out.writeObject(\"SENT\"); // The sentinel object.\n\t\t */\n\t}",
"public boolean status(){\n if(this.nbObj == 0)\n {\n try{\n writer.write(\"Stack is empty!\\n\",0,16);\n }\n catch(IOException e){\n printStream.println(\"I/O exception!!!\");\n }\n }\n if(this.nbObj == this.objTab.length)\n {\n try{\n writer.write(\"Stack is full!\\n\",0,15);\n }\n catch(IOException e){\n printStream.println(\"I/O exception!!!\");\n }\n return true;\n }\n return false;\n }",
"private void checkout() {\n\t\tif (bag.getSize() == 0) {\n\t\t\tSystem.out.println(\"Unable to check out, the bag is empty!\");\n\t\t} else {\n\t\t\tcheckoutNotEmptyBag();\n\t\t}\n\t}",
"public void empile(ObjEmp obj){\n try{\n this.objTab[this.nbObj] = obj;\n this.nbObj++;\n }\n catch(ArrayIndexOutOfBoundsException arrayOOBE){\n printStream.println(\"Stack is full, please use operators to free some space.\");\n try{\n writer.write(\"Stack is full, please use operators to free some space.\\n\");\n writer.flush();\n }\n catch(IOException e){\n printStream.println(\"I/O exception!!!\");\n }\n }\n }",
"public void push(Object obj) {\n stack.push(requireNonNull(obj));\n }",
"@Override\n\tpublic boolean isRefush() {\n\t\treturn false;\n\t}",
"public T caseStateRoot(StateRoot object) {\r\n\t\treturn null;\r\n\t}",
"private void frontObject() {\n\t\tif(this.curr_obj != null) {\n this.curr_obj.uMoveToFront();\n\t\t}\n\t}",
"@Override\r\n\tpublic boolean update(Moteur obj) {\n\t\treturn false;\r\n\t}",
"@Override\n public boolean update(Revue objet) {\n return false;\n }",
"public void mo16615c(Object obj) {\n this.f12436U.finish();\n }",
"@Override\n\t\tpublic void passivateObject(Object key, Object obj) throws Exception {\n\t\t}",
"private boolean isConsideredFresh() {\n \t\treturn this.isNew || this.area.getPolygon() == null;\n \t}",
"public boolean remove (Object obj) {\r\n\t\tboolean result = _list.remove (obj);\r\n\t\tHeapSet.heapify (this);\r\n\t\treturn result;\r\n\t}",
"@Override\r\n\t\t\tpublic void OnUnCheck(Object o) {\n\t\t\t\tchecAll(getSchTbl().getModel().getData(), false);\r\n\t\t\t\tgetSchTbl().updateUI();\r\n\t\t\t}",
"@Override\n\tpublic void extraEffect(PhysObject obj) {\n\t\tif (obj instanceof BreakableObject) {\n\t\t\t((BreakableObject)obj).breakObject();\n\t\t}\n\t}",
"public boolean advanceStep() {\n\t\t// TODO: Implement\n\t\t/*System.out.println(\"Before:\");\n\t\tfor(int i=0; i < getSlotCount(); i++)\n\t\t{\n\t\t\tif(inFlightBeans.get(i)==null)\n\t\t\t\tSystem.out.println(i+\"=null\");\n\t\t\telse\n\t\t\t\tSystem.out.println(i+\" not null:\" + inFlightBeans.get(i).getXPos());\n\t\t}*/\n\t\t\n\t\tboolean anyStatusChange=false;\n\t\tBean prev=null; \n\t\tBean bean=inFlightBeans.get(0);\n\t\t\n\t\tfor(int i=0; i < getSlotCount(); i++)\n\t\t{\n\t\t\tif(i < getSlotCount()-1)\n\t\t\t{\n\t\t\t\t//System.out.println(\"i < count-2\");\n\t\t\t\tprev = bean;\n\t\t\t\tbean = inFlightBeans.get(i+1);\n\t\t\t\tif(prev!=null) prev.choose();\n\t\t\t\tinFlightBeans.set(i+1, prev);\t\t\n\t\t\t\tanyStatusChange = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//System.out.println(\"i else: \" + i);\n\t\t\t\tif(bean != null) {\n\t\t\t\t\tthis.slotBean.get(bean.getXPos()).add(bean);\n\t\t\t\t\tanyStatusChange= true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\t\t\t\n\t\t}\n\t\tinsertBean();\n\t\tif(inFlightBeans.get(0) != null) inFlightBeans.get(0).reset();\n\t\t//System.out.println(\"After:\");\n\t\t/*for(int i=0; i < getSlotCount(); i++)\n\t\t{\n\t\t\tif(inFlightBeans.get(i)==null)\n\t\t\t\tSystem.out.println(i+\"=null\");\n\t\t\telse\n\t\t\t\tSystem.out.println(i+\" not null:\" + inFlightBeans.get(i).getXPos());\n\t\t}*/\n\t\treturn anyStatusChange;\n\n\t}",
"public void storeInObject() {\r\n lockValueStored = IN_OBJECT;\r\n }",
"public boolean add (T obj) {\r\n\t\tboolean result = _list.add (obj);\r\n\t\tHeapSet.siftUp (this, _list.size () - 1);\r\n\t\treturn result;\r\n\t}",
"@Override\r\n public boolean canBePushed()\r\n {\r\n return true;\r\n }",
"@Override\n\tpublic boolean isClassObject() {\n\t\treturn heldObj.isClassObject();\n\t}",
"public void DoesNeedCleaning() {\n\t\tSystem.out.println(\"Table is being cleaned right now.\");\n\t}",
"@Override\n\tpublic void bumped(SpaceObject object) {\n\t\thit = true;\t\n\t}",
"public void hasLost() {\n\t\tthis.hasLost = true;\n\t}",
"@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}",
"public void c(Object obj) {\n if (!this.i.get()) {\n d(obj);\n }\n }",
"@Override\n\tpublic boolean update(Langues obj) {\n\t\treturn false;\n\t}",
"public final boolean checkIfInZone(L2Object obj) { return (getSiege(obj) != null); }",
"public void mo33172c(Object obj) {\n if (mo33173c()) {\n obj.toString();\n }\n }",
"public void onUnhandledInboundMessage(Object obj) {\n try {\n logger.debug(\"Discarded inbound message {} that reached at the tail of the pipeline. Please check your pipeline configuration.\", obj);\n } finally {\n ReferenceCountUtil.release(obj);\n }\n }",
"void overrideState(int object_state);",
"protected final void checkGC() {\n if (appliedState.relativeClip != currentState.relativeClip) {\n appliedState.relativeClip = currentState.relativeClip;\n currentState.relativeClip.setOn(gc, translateX, translateY);\n }\n\n if (appliedState.graphicHints != currentState.graphicHints) {\n reconcileHints(gc, appliedState.graphicHints,\n currentState.graphicHints);\n appliedState.graphicHints = currentState.graphicHints;\n }\n }",
"@Override\r\n\t\t\tpublic void OnUnCheck(Object o) {\n\t\t\t\tchecAll(getPackTbl().getModel().getData(), false);\r\n\t\t\t\tgetPackTbl().updateUI();\r\n\t\t\t}",
"private boolean rollBack(TaskState state){\n\n do state.moveStack.pop().rollBack();\n while(!state.moveStack.isEmpty() && !state.moveStack.peek().hasNextMove());\n\n return !state.moveStack.isEmpty();\n\n }",
"@Override\n public boolean equals(Object obj){\n \tState s=(State) obj;\n if (this.state==s.getState())\n \treturn true;\n else\n \treturn false;\n \t\t\n }",
"private boolean canUndo() {\n return !frozen && !past.isEmpty();\n }",
"protected boolean isDiscarded()\n {\n return m_cUnits == -1;\n }",
"private static boolean empty(Object object) {\n\t\treturn false;\n\t}",
"public final void zzc(zzix object) {\n Object object2 = this.zza;\n if (object2 != null) {\n return;\n }\n synchronized (this) {\n object2 = this.zza;\n if (object2 != null) {\n return;\n }\n try {\n this.zza = object;\n this.zzc = object2 = zzgs.zzb;\n }\n catch (zzic zzic2) {\n this.zza = object;\n this.zzc = object = zzgs.zzb;\n }\n return;\n }\n }",
"protected abstract void restoreStateStackAfterBreakOut(\n final List breakOutList);",
"@Override\r\n\tpublic boolean insertLostProperty(ReportDto dto) {\n\t\treturn false;\r\n\t}",
"private ObjEmp depile(){\n ObjEmp obj = null;\n try{\n obj = this.objTab[this.nbObj-1];\n this.nbObj--;\n }\n catch(ArrayIndexOutOfBoundsException arrayOOBE){\n printStream.println(\"Stack is empty, please provide some integers to operate on.\");\n try{\n writer.write(\"Stack is empty, please provide some integers to operate on.\\n\");\n writer.flush();\n }\n catch(IOException e){\n printStream.println(\"I/O exception!!!\");\n }\n }\n return obj; \n }",
"private void removeObject() {\n\t\tif(this.curr_obj != null) {\n this.canvas.uRemove(this.curr_obj);\n\t\t\tthis.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n\n this.curr_obj = null;\n }\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}",
"private void handleObjectStateChange(GameObject obj){\n ImageView imageView = (ImageView) getNodeById(obj.getObjID());\n if(imageView != null) {\n imageView.setImage(resources.getImage(obj.getClassName(), obj.getState()));\n System.out.println(obj + \" changed state to: \" + obj.getState());\n }\n }",
"public void onRestorePendingState() {\n }",
"protected void beforeSerialization(TargetType object) {\n // This method intentionally left blank in the base class.\n }",
"void evict(Object obj);",
"ControllerState getNewObjectState();",
"private final void kill() {\n\t\tgrown=false;\t\t\n\t}",
"@java.lang.Override\n public boolean hasObject() {\n return object_ != null;\n }",
"@Override\n void undo() {\n assert false;\n }",
"public boolean updateState(Landscape scape) {\n\t\tboolean[] emptyElevators = new boolean[this.elevators.length];\n\t\tint emptyCount = 0;\n\t\t\n\t\t\n\t\t\t\t\n\t\t// this finds out which elevators are in which state and what direction they are traveling in so that\n\t\t// we can only act on ones that are in similar situations\n\t\tfor( int i = 0 ; i < this.elevators.length ; i++){\n\t\t\t// empty and has no target floor\n\t\t\tif( this.elevators[i].isEmpty() ){\n\t\t\t\temptyElevators[i] = true;\n\t\t\t\temptyCount++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\temptyElevators[i] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif( ElevatorBank.strategy == ElevatorBank.STRATEGY.GROUP_3){\n\t\t\temptyRule2(emptyElevators, emptyCount);\n\t\t}\n\t\telse{\n\t\t\temptyRule(emptyElevators, emptyCount);\n\t\t}\n\t\t// never dies\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic Parcelable saveState() {\n\t\t\treturn null;\n\t\t}",
"public boolean putQueue(Object obj)\r\n {\r\n boolean returnval = false;\r\n\r\n try\r\n {\r\n returnval = event_q.add(obj);\r\n } catch (Exception ex)\r\n {\r\n return returnval;\r\n }\r\n\r\n return returnval;\r\n }",
"public void upkeep() {\r\n // Take poison damage\r\n if(poison > 0) {\r\n this.takeDamage(poison);\r\n this.poison--;\r\n }\r\n\r\n // Check if the entity is finished\r\n if(this.health <= 0)\r\n isFinished = true;\r\n }",
"public boolean willNotBeResurrected() {\n return state == State.FRESH || state == State.ERROR;\n }",
"@Override\n\tpublic JSONObject update(JSONObject obj) {\n\t\treturn null;\n\t}",
"public boolean isLeashed ( ) {\n\t\treturn extract ( handle -> handle.isLeashed ( ) );\n\t}",
"private void carsReadyToLeave(){\n\t\t\tCar car = getFirstLeavingCar();\r\n\t\t\twhile (car!=null) {\r\n\t\t\t\tif (car.getHasToPay()){\r\n\t\t\t\t\tcar.setIsPaying(true);\r\n\t\t\t\t\tpaymentCarQueue.addCar(car);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tcarLeavesSpot(car);\r\n\t\t\t\t}\r\n\t\t\t\tcar = getFirstLeavingCar();\r\n\t\t\t}\r\n\t\t}",
"public boolean burn(){\r\n for(ListIterator<Item> iter = listIterator();iter.hasNext();)\r\n if(iter.next().flammable) iter.remove();\r\n return isEmpty();\r\n }",
"public void push(Object obj) {\n if (top < stack.length - 1) {\n stack[++top] = obj;\n }\n else\n {\n increaseStackSize(1);\n stack[++top] = obj; \n }\n }"
] |
[
"0.6152809",
"0.5984031",
"0.57728326",
"0.57497233",
"0.568355",
"0.5661265",
"0.5589849",
"0.5583067",
"0.5516354",
"0.5439958",
"0.5429789",
"0.5422563",
"0.5420227",
"0.53938437",
"0.53849494",
"0.53795683",
"0.53704304",
"0.5363342",
"0.53072304",
"0.52981555",
"0.52917093",
"0.5284464",
"0.5276278",
"0.52557576",
"0.5247644",
"0.5244671",
"0.5207272",
"0.5193081",
"0.51822454",
"0.516614",
"0.5147057",
"0.5144071",
"0.5135263",
"0.51195246",
"0.51156455",
"0.5111579",
"0.51009977",
"0.50980186",
"0.509456",
"0.50937706",
"0.5073442",
"0.5070371",
"0.5065888",
"0.5065058",
"0.50482786",
"0.50312066",
"0.50304824",
"0.50286686",
"0.5016088",
"0.5008984",
"0.5008897",
"0.5004626",
"0.50015527",
"0.49908602",
"0.49907976",
"0.4988212",
"0.4987239",
"0.49788266",
"0.4977978",
"0.4969144",
"0.49583003",
"0.49571818",
"0.49372455",
"0.49331173",
"0.49323168",
"0.49302816",
"0.49266082",
"0.49223644",
"0.4922203",
"0.4919764",
"0.49183074",
"0.49126577",
"0.4897994",
"0.48973644",
"0.48969337",
"0.4896291",
"0.48948824",
"0.48934126",
"0.48875985",
"0.48854536",
"0.48819086",
"0.4879586",
"0.48771104",
"0.48769233",
"0.4876886",
"0.48706833",
"0.48685122",
"0.4866756",
"0.48627552",
"0.48621175",
"0.48619685",
"0.48615232",
"0.4860071",
"0.48599547",
"0.48577362",
"0.4856584",
"0.4855674",
"0.48549953",
"0.48547202",
"0.485"
] |
0.51734424
|
29
|
Method responsible of ending the washing by changing machine state
|
private synchronized void endWashing() {
washingMachineState = WashingMachineState.ENABLE;
LOGGER.info("{}:Washing complete.", Thread.currentThread().getId());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void wash() {\n synchronized (this) {\n LOGGER.info(\"{}:Actual machine state:{}\", Thread.currentThread().getName(),\n getWashingMachineState());\n if (WashingMachineState.WASHING.equals(washingMachineState)) {\n LOGGER.error(\"ERROR:Cannot wash if the machine has already been washing\");\n return;\n }\n washingMachineState = WashingMachineState.WASHING;\n }\n LOGGER.info(\"{}:Doing the washing\", Thread.currentThread().getName());\n try {\n Thread.sleep(50);\n } catch (Exception e) {\n e.printStackTrace();\n }\n endWashing();\n }",
"@Override\r\n\tpublic void offMachine() {\n\t\t System.out.println(\"Off the machine when the cook is done \");\r\n\t}",
"@Override\n public void stopMachine() {\n cleanOrExplode();\n\n for (GT_MetaTileEntity_Hatch_OutputData data : eOutputData) {\n data.q = null;\n }\n\n mOutputItems = null;\n mOutputFluids = null;\n mEfficiency = 0;\n mEfficiencyIncrease = 0;\n mProgresstime = 0;\n mMaxProgresstime = 0;\n eAvailableData = 0;\n hatchesStatusUpdate_EM();\n getBaseMetaTileEntity().disableWorking();\n }",
"@Override\n\tpublic void stateMachineStop() {\n\t}",
"@Override\n\tpublic void stateMachineStop() {\n\n\t}",
"@Override\n\tpublic void stateMachineStop() {\n\n\t}",
"@Override\n\tpublic void stateMachineStop() {\n\n\t}",
"@Override\n\tpublic void stateMachineStop() {\n\n\t}",
"private void endGame() {\r\n\t\t// Change state (if not already done)\r\n\t\tstate = GameState.STOPPED;\r\n\t\t\r\n\t\t// End simulator\r\n\t\tsimulator.endGame();\r\n\t}",
"private void exit() {\n this.isRunning = false;\n }",
"public synchronized void shutDown() {\n\t state.shutDown();\n\t}",
"private void endBreak(){\n\tDo(name + \" is back from break!\");\n\thost.msgChangeWorkStatus(this, true);\n\tworking = true;\n\tonBreak = false;\n\tstartedBreak = false;\n\n\t//Commented out for gui\n\t//startBreakTimer(15000);\n }",
"public void halt ( )\n\t{\n\t\tthis.running = false;\n\t}",
"private void shutDown() {\r\n\t\t\r\n\t\t// send shutdown to children\r\n\t\tlogger.debug(\"BagCheck \"+ this.lineNumber+\" has sent an EndOfDay message to it's Security.\");\r\n\t\tthis.securityActor.tell(new EndOfDay(1));\r\n\r\n\t\t// clear all references\r\n\t\tthis.securityActor = null;\r\n\t}",
"public void halt();",
"protected void end() {\n\t\tRobot.conveyor.Stop();\n\t}",
"@Override\n\tpublic void stopMachine() {\n\t\t\n\t}",
"protected void end() {\n \tRobot.conveyor.stop();\n }",
"protected void end() {\n \tRobotMap.gearIntakeRoller.set(0);\n }",
"protected void end() {\n \tRobotMap.feedMotor1.set(0);\n \tRobotMap.shootAgitator.set(0);\n }",
"private final void kill() {\n\t\tgrown=false;\t\t\n\t}",
"protected void end() {\n \tintake.setLeftPower(0.0);\n\t\tintake.setRightPower(0.0);\n }",
"public void end()\n\t{\n\t\tStateManager.setState(StateManager.GameState.MAINMENU);\n\t\tStateManager.setGame(null);\n\t}",
"private void exitAction() {\n\t}",
"public void exitRoutine() {\n\t\tboardController.saveSampleData();\n\t}",
"public void endGame() {\n\r\n\t\tplaying = false;\r\n\t\tstopShip();\r\n\t\tstopUfo();\r\n\t\tstopMissle();\r\n\t}",
"protected void end() {\n \tRobot.hand.setWrist(0.0);\n }",
"protected void end() {\n \tif (Robot.clawElevator.getLowerSwitch()) {\n \t\tRobot.clawElevator.setContainerHeight(0);\n \t\tRobot.clawElevator.resetEncoder();\n \t}\n \tRobot.clawElevator.stop();\n }",
"@Override\n protected void end() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.STOPPED, 0.0);\n }",
"private static void exit() {\n dvm.exit();\n stop = true;\n }",
"@Override\n public void endState() {\n spells.clear();\n spellButtons.clear();\n }",
"@Override\n\tpublic void stateMachineAbort() {\n\n\t}",
"@Override\n\tpublic void stateMachineAbort() {\n\n\t}",
"@Override\n\tpublic void stateMachineAbort() {\n\n\t}",
"@Override\n\tpublic void stateMachineAbort() {\n\n\t}",
"public void stopThread() \n {\n \tthis.exit = true;\n \t//ctr.getMemory().programmcounter = 65536;\n }",
"@Override\n public void shutdown() {\n debugLogger.finest(\"enter\");\n userLogger.info(\"Initiating shutdown\");\n\n if (state == SMState.RUNNING) {\n debugLogger.info(\"state == RUNNING\");\n state = SMState.STARTED;\n interruptThread(runThread);\n }\n\n if (state == SMState.STARTED) {\n debugLogger.info(\"state == STARTED\");\n sessionPool.empty();\n\n state = SMState.STOPPED;\n }\n\n debugLogger.info(\"state == STOPPED\");\n\n userLogger.info(\"Shutdown complete\");\n debugLogger.finest(\"exit\");\n }",
"@Override\n protected void end() {\n Robot.hatchIntake.hatchOFF();\n }",
"public void end() {\n\t\tsigue = false;\n\t}",
"void finishSwitching();",
"protected void end() {\n\t\tL.ogEnd(this);\n\t\t_xboxControllerToRumble.setRumble(_rumbleType, 0);\n\t}",
"void exitCurrentStationCard();",
"public void endPhase(){\n if(this.actionPhase) {\n this.buyPhase = true;\n this.actionPhase = false;\n }else{\n endTurn();\n }\n }",
"@Override\n\tpublic void stateMachineAbort() {\n\t}",
"void unsetStaEnd();",
"public synchronized void stop()\r\n\t\t{\r\n\t\tstate = CLOSING_DOWN;\r\n\t\t}",
"public void shutdown() {\n this.shallRun = false;\n this.interrupt();\n Log.getLog().info(\"catched caretaker termination signal\");\n }",
"public void endTurn() {\r\n\t\tcontraband.clear();\r\n\t\tactions = 1;\r\n\t\tbuys = 1;\r\n\t\tif(treasure > 0) treasure = 0;\r\n\t\tpotion = 0;\r\n\t\tcoppersmith = 0;\r\n\t\tbridge = 0;\r\n\t\tquarry = 0;\r\n\t\tdeck.cleanUp();\r\n\t\taccess.log(getPlayerName() + \"'s Deck: \" + deck.toString());\r\n\t\taccess.log(getPlayerName() + \"'s turn ended\");\r\n\t\tnotifyObservers();\r\n\t}",
"public void simulationTerminating() {\n }",
"protected void end()\n\t{\n\t\tstop();\n\t}",
"protected void end() {\n \tshooterWheel.shooterWheelSpeedControllerAft.Pause();\n }",
"public static void end() {\n\t\tif(firstTime)\r\n\t\t\tfirstTime=false;\r\n\t\tif (over) {\r\n\t\t\treset();\r\n\t\t\tover = false;\r\n\t\t}\r\n\t\tGUI.panel.changeGame();\r\n\t}",
"protected void end() {\n \t\n \tlift.liftStop();\n }",
"public void terminate() {\r\n running = false;\r\n }",
"public void finish() {\n if ( actor.hasActions() )\r\n actor.getActions().first().act(100000);\r\n // remove any remaining actions\r\n actor.clearActions();\r\n }",
"public void endMSRSwipe() throws DeviceException;",
"public void endGame()\r\n {\r\n for (Cell c : gameBoard.bombList)\r\n {\r\n if (c.isBomb())\r\n {\r\n if (c.getText() == \"X\")\r\n {\r\n c.setId(\"correctFlag\");\r\n }\r\n else\r\n {\r\n c.setId(\"bombClicked\");\r\n }\r\n }\r\n else if (c.getText() == \"X\")\r\n {\r\n c.setId(\"incorrectFlag\");\r\n }\r\n c.setDisable(true);\r\n }\r\n if (gameBoard.emptyRemaining == 0)\r\n {\r\n win();\r\n }\r\n else\r\n {\r\n lose();\r\n }\r\n System.out.println(\"Game Over...\");\r\n scoreBoard.resetBtn.setDisable(false);\r\n }",
"public void stopDishwasher() {\n if (dishwasherState != State.RUNNING) {\n throw new InvalidStateException(\"The dishwasher is not running\");\n }\n dishwasherState = State.UNLOADING;\n System.out.println(\"The dishwasher is stopped\");\n }",
"public void shutDown() {\n StunStack.shutDown();\n stunStack = null;\n stunProvider = null;\n requestSender = null;\n\n this.started = false;\n\n }",
"protected void end() {\n \tlift.stop();\n }",
"public void shutdown(boolean endGame) {\n\t\tif (!endGame) trayicon.shutdown();\n\t\t\n\t\tsaveTabs();\n\t\t\n\t\tstatus.shutdown();\n\t\t\n\t\t//do this last:\n\t\tif (!endGame) {\n\t\t\tdispose();\n\t\t}\n\t}",
"public void terminate(){\n running = false;\n }",
"public void exitAfterTransfers() {\n /*\n * Note: on Windows, this is called from the Windows system tray\n * handler thread (created in the Windows DLL), and not from the\n * Swing Event handler thread. It is unsafe to call\n * GUIMediator.shutdownAfterTransfers();\n * directly as Swing is not synchronized!\n * Instead, we should create an AWT Event and post it to the\n * default Toookit's EventQueue, and the application should\n * implement a Listener for that Event.\n */\n SwingUtilities.invokeLater(\n new Runnable() {\n public void run() {\n GUIMediator.shutdownAfterTransfers();\n }\n });\n }",
"protected void terminate(){\r\n\t\tsetTerminate(true);\r\n\t\tHolder holder = this.getDirectHolder();\r\n\t\tsetHolder(null);\r\n\t\tholder.removeItem(this);\r\n\t}",
"public void endRoutine()\r\n\t{\r\n\t\ttimer.stop();\r\n\t\ttimer.reset();\r\n\t\ttimer.start();\r\n\t\tdrive.encReset();\r\n\t\tautoStep++;\r\n\t}",
"protected void end() {\n \tRobot.driveTrain.setPower(0, 0);\n }",
"@Override\n public void exit(EventObject event)\n {\n shutdown();\n }",
"private void ending() {\n\t\tstartView.ending();\n\t\tSystem.exit(-1);\n\t}",
"WorkoutBatch end(boolean wasInVehicle);",
"public void exit() {\n\tif (hasPlayed) {\n\t hasPlayed = false;\n\t lastExit = System.currentTimeMillis(); // note the time of exit\n\t}\n }",
"protected void end() {\n \tRobot.gearIntake.setIsDown(false);\n \tRobot.gearIntake.setGearRollerSpeed(0);\n }",
"protected void end() {\n \tif (waitForMovement) Robot.intake.setHopperTracker(deploy ? Status.deployed : Status.stowed);\n }",
"public void quit() {\r\n\t\trunning = false;\r\n\t\tt= null;\r\n\t}",
"void stop() {\n\t\texitTesting = true;\n\t}",
"public void finish(){\n\t\tnotfinish = false;\n\t}",
"@Override\r\n\tpublic void exit() {\n\t\t\r\n\t}",
"public void terminate() {\n\t\trunning = false;\n\t}",
"public void endHold();",
"public void toEndingTurn() {\n }",
"protected void end() {\r\n // stop motor, reset position on the dumper, enable closed loop\r\n }",
"@Override\n\tprotected void onTermination() throws SimControlException {\n\t\t\n\t}",
"public void stop(){\n return;\n }",
"public void abnormalShutDown() {\n\t}",
"protected void end() {\n\t\tcrossLine.cancel();\n\t\tapproachSwitch.cancel();\n\t\tdriveToSwitch.cancel();\n\t\tdriveToScale.cancel();\n\t\tapproachScale.cancel();\n\t\tturnTowardsSwitchOrScale.cancel();\n\t\t\n\t\tdrivetrain.stop();\n\t}",
"public abstract void systemActionEnds(long ms);",
"private static void exit(){\n\t\t\n\t\tMain.run=false;\n\t\t\n\t}",
"public void stop() {\n System.setErr(saveErr);\n System.setOut(saveOut);\n running = false;\n try {\n flushThread.join();\n } catch (InterruptedException e) {\n }\n }",
"public void stopping();",
"private void exitGame() {\n System.exit(0);\n }",
"@Override\n protected void end() {\n Robot.SCISSOR.extendLift(0);\n }",
"public void shutdown()\n {\n this.running = false;\n }",
"public void terminate() {\n\t}",
"public void terminate() {\n\t}",
"public void terminate() {\n\t}",
"public void endGame() {\r\n if (state[0]) {\r\n if (state[1]) {\r\n frame.remove(pause);\r\n state[1] = false;\r\n }\r\n records.newRecord(game.map, game.end());\r\n frame.remove(game);\r\n records.saveRecords();\r\n state[0] = false;\r\n menu.setVisible(true);\r\n }\r\n }",
"public void killAndFinish()\n\t{\n\t\tif (isKilled()) return;\n\t\tupdate(Float.MAX_VALUE);\n\t}",
"protected void end() {\n\t\tLiquidCrystal lcd = RobotMap.lcd;\n\t\tlcd.clear();\n\n\t\tRobotMap.chassisfrontLeft.set(0);\n\t\tRobotMap.chassisfrontRight.set(0);\n\t\tRobotMap.chassisrearLeft.set(0);\n\t\tRobotMap.chassisrearRight.set(0);\n\t\t\n\t\tRobotMap.climberclimbMotor.set(0);\n\t\tRobotMap.floorfloorLift.set(0);\n\t\tRobotMap.acquisitionacquisitionMotor.set(0);\n\n\n\t}",
"public void shutdown() {\n/* 188 */ this.shutdown = true;\n/* */ }",
"protected void end() {\n Robot.wedge.stop();\r\n Robot.driveTrain.stop();\r\n Robot.ballIntake.stop();\r\n }",
"public void stop() {\n intake(0.0);\n }"
] |
[
"0.72432506",
"0.678401",
"0.6646419",
"0.6640341",
"0.66003996",
"0.66003996",
"0.66003996",
"0.66003996",
"0.65967876",
"0.6535463",
"0.6476627",
"0.64743316",
"0.64685833",
"0.64534223",
"0.63657355",
"0.6314545",
"0.63083255",
"0.63039654",
"0.62991196",
"0.62658036",
"0.6217281",
"0.6217221",
"0.61792606",
"0.6168507",
"0.61634153",
"0.6162805",
"0.6149749",
"0.614522",
"0.6144804",
"0.61443543",
"0.61421305",
"0.61375713",
"0.61375713",
"0.61375713",
"0.61375713",
"0.6128853",
"0.61252034",
"0.61152107",
"0.61150455",
"0.6113983",
"0.6111495",
"0.6105793",
"0.6105003",
"0.6097574",
"0.6091722",
"0.60724515",
"0.6072098",
"0.6066455",
"0.6061291",
"0.60582083",
"0.605727",
"0.6035322",
"0.6032711",
"0.60270727",
"0.6026877",
"0.602609",
"0.60202724",
"0.60165757",
"0.60117507",
"0.6004366",
"0.6003005",
"0.5986411",
"0.59860885",
"0.5982141",
"0.59713894",
"0.5968465",
"0.5967908",
"0.59676015",
"0.5958177",
"0.59524196",
"0.59510183",
"0.5946197",
"0.5920503",
"0.59204817",
"0.59200734",
"0.59161645",
"0.59157294",
"0.5915686",
"0.59030676",
"0.590114",
"0.5896588",
"0.58957094",
"0.5892051",
"0.5891136",
"0.58882153",
"0.58869445",
"0.5879575",
"0.5872626",
"0.58693767",
"0.5863433",
"0.5860551",
"0.5853959",
"0.5853959",
"0.5853959",
"0.58444715",
"0.5841651",
"0.58401585",
"0.5837752",
"0.5836254",
"0.58342206"
] |
0.8549731
|
0
|
/ Constructor destination: the destination address sendPort: the sendPort number myPort: the myPort
|
Client(String destination, int sendPort, int myPort, String myIP) {
this.destination = destination;
this.sendPort = sendPort;
this.myPort = myPort;
this.myIP = myIP;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int getDestinationPort();",
"int getDestinationPort();",
"Integer destinationPort();",
"public Receiver(String ip_1, int port_1, String ip_2, int port_2, routingTableClass routingTableObject1) {\r\n\t\treceive_port = port_1;\r\n\t\treceive_ip = ip_1;\r\n\t\tsend_port = port_2;\r\n\t\tsend_ip = ip_2;\r\n\t\tthis.ownRoutingTable = routingTableObject1;\r\n\t}",
"public Destination() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public FileTransfer(int myPort){ //Receiver\n socket = new MySocket(ProtocolStack.getLocalhost().getLogicalID(),myPort);\n socket.bindServer();\n socket.accept();\n step = STEP_WAITING_TO_RECEIVE;\n }",
"Port createPort();",
"Port createPort();",
"public int getDestinationPort() {\n return destinationPort_;\n }",
"public int getDestinationPort() {\n return destinationPort_;\n }",
"public CameraPiSocket(int port_arg){\n\t\tport = port_arg;\n\t}",
"SR(String host, int targetPort, int ownPort) throws UnknownHostException {\n this.ownPort = ownPort;\n this.host = InetAddress.getByName(host);\n this.targetPort = targetPort;\n }",
"public Builder setDestinationPort(int value) {\n \n destinationPort_ = value;\n onChanged();\n return this;\n }",
"public void setDestination(String host, int port) {\n this.host = host;\n this.port = port;\n }",
"Client(Terminal terminal, String dstHost, int dstPort, int srcPort) {\n\t\ttry {\n\t\t\tthis.terminal= terminal;\n\t\t\tdstAddress= new InetSocketAddress(dstHost, dstPort);\n\t\t\tsocket= new DatagramSocket(srcPort);\n\t\t\tlistener.go();\n\t\t}\n\t\tcatch(java.lang.Exception e) {e.printStackTrace();}\n\t}",
"int getDestinationPort() {\n return this.resolvedDestination.destinationPort;\n }",
"private void teletransportar(Personaje p, Celda destino) {\n // TODO implement here\n }",
"public int getPort(){\r\n return localPort;\r\n }",
"public int getPort(){\r\n return localPort;\r\n }",
"Port getPort2();",
"public Teleporter(Location location)\r\n\t{ this.destination = location; }",
"public Packet(int source, int dest, int DSCP){\r\n\t\ttry{\r\n\t\t\tthis.source = source;\r\n\t\t\tthis.dest = dest;\r\n\t\t\tthis.DSCP = DSCP;\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public ChatRoomServer(int portNumber){\n this.ClientPort = portNumber;\n }",
"public WebServer (int port)\t\t\t\t\t\t\t\t\t\t\t\r\n\t{\r\n\t\tthis.shost = DEF_HOST; \t\t\t\t\t\t\t\t\r\n\t\tthis.sPort = port; \t\t\t\t\t\t\t\t\t\t\r\n\t}",
"StartPort createStartPort();",
"Port getPort1();",
"public TCPReceiver(NetWorkInterface ni){\n\t\tthis.ni = ni;\n\t\ttry {\n\t\t\tmySocket = new ServerSocket(NetWorkInterface.portReceiver);\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void port(int port);",
"void port(int port);",
"public void setDestination(int destination) {\r\n\t\tthis.destination = destination;\r\n\t}",
"public ServerConnection()\n {\n //Initializing of the variables used in the constructor\n this.hostAddress = \"http://localhost\";\n this.port = 8882;\n }",
"private void handlePort(String args) {\n // Extract IP address and port number from arguments\n String[] stringSplit = args.split(\",\");\n String hostName = stringSplit[0] + \".\" + stringSplit[1] + \".\" + stringSplit[2] + \".\" + stringSplit[3];\n\n int p = Integer.parseInt(stringSplit[4]) * 256 + Integer.parseInt(stringSplit[5]);\n\n // Initiate data connection to client\n openDataConnectionActive(hostName, p);\n sendMsgToClient(\"200 Command OK\");\n }",
"public interface Port {\n\t/**\n\t * Initialize of this <code>Port</code>. When writing message, this method\n\t * is invoked first and create a new packet this cycle should report. It\n\t * will create nothing when there is no new message to reporte.\n\t * \n\t * @param changed\n\t * the change set\n\t */\n\tpublic void init(final ChangeSet changed);\n\n\t/**\n\t * Determines whether this <code>Port</code> still has packet to write.\n\t * Gernelly, each <code>Port</code> has one packet to write in each cycle.\n\t */\n\tpublic boolean hasNext();\n\n\t/**\n\t * This method return a packet of this kind of message.\n\t * \n\t * @return a packet of this kind of message\n\t */\n\tpublic MessageBitSection next();\n\n\t/**\n\t * This method used to read the packet contents of this <code>Port</code>.\n\t * \n\t * @param sender\n\t * the sender of this message\n\t * @param time\n\t * the time this message was send\n\t * @param stream\n\t * input stream\n\t */\n\tpublic void read(final EntityID sender, final int time, final BitArrayInputStream stream);\n\n\t/**\n\t * Get the reported type of this kind of message which determines what kind\n\t * of Agent this message will send to.\n\t * \n\t * @return the reported type of this kind of message\n\t */\n\tpublic MessageReportedType getMessageReportedType();\n\t\n\t/**\n\t * Print the message this Port write. Only used for test.\n\t * \n\t * @param packet\n\t * the packet will write into channel\n\t * @param channel\n\t * the channel this message will write to\n\t */\n\tpublic void printWrite(MessageBitSection packet, int channel);\n\t\n\t/**\n\t * Print the message this Port read. Only used for test.\n\t * \n\t * @param channel\n\t * the channel read message from\n\t */\n\tpublic void printRead(int channel);\n\t\n\tpublic void resetCounter();\n\n}",
"public void setPort(int port);",
"public void setPort(int port);",
"public void setDestination(String destination1) {\r\n this.destination = destination1;\r\n }",
"protected UDPMessageChannel(\n InetAddress targetAddr,\n int port,\n SIPMessageStack sipStack,\n UDPMessageProcessor messageProcessor) {\n peerAddress = targetAddr;\n peerPort = port;\n peerProtocol = \"UDP\";\n super.messageProcessor = messageProcessor;\n this.myAddress = sipStack.getHostAddress();\n this.myPort = messageProcessor.getPort();\n this.stack = sipStack;\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"Creating message channel \"\n + targetAddr.getHostAddress()\n + \"/\"\n + port);\n }\n }",
"public TCPServer(TCPViewModel viewModel, int port) {\n this.viewModel = viewModel;\n this.port = port;\n startServerMsg = \"TCP server listener successfully started on port [\"+port+\"]... listening for incoming connections.\";\n }",
"public PeerToPeerConnection(GameController controller, String ip, int port){\n this.controller = controller;\n this.ip = ip;\n this.port = port;\n clientID = \"ConnectingClient\";\n isHost = false;\n System.out.println(\"PeerToPeerConnection: Constructor: ConnectingClient\");\n }",
"private void run()throws IOException{\r\n Port = portNumb(); \r\n}",
"public Node(int port) {\n this();\n portnum = port;\n }",
"public void sendTo(P2PUser dest, Object msg) throws IOException;",
"public AssignBus() {\n initComponents();\n source();\n destination();\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02-25 10:38:11.976 -0500\", hash_original_method = \"24A3E423DE78176900F1058E127BC8B2\", hash_generated_method = \"5B5F51BF25DAE30DEF4DFB5C781A6B4A\")\n \npublic void send(InetAddress host, int port) throws IOException\n {\n __sendPacket.setAddress(host);\n __sendPacket.setPort(port);\n _socket_.send(__sendPacket);\n }",
"public PortRange() {\n }",
"protected UDPMessageChannel(InetAddress targetAddr, int port,\n SIPTransactionStack sipStack, UDPMessageProcessor messageProcessor) {\n peerAddress = targetAddr;\n peerPort = port;\n peerProtocol = \"UDP\";\n super.messageProcessor = messageProcessor;\n this.myAddress = messageProcessor.getIpAddress().getHostAddress();\n this.myPort = messageProcessor.getPort();\n this.sipStack = sipStack;\n // jeand : Create a new string message parser to parse the list of\n // messages.\n myParser = sipStack.getMessageParserFactory().createMessageParser(\n sipStack);\n\n if (logger.isLoggingEnabled(LogWriter.TRACE_DEBUG)) {\n logger.logDebug(\n \"Creating message channel \" + targetAddr.getHostAddress()\n + \"/\" + port);\n }\n }",
"static public void startSending(String add,int port,byte[] data,int mode){\n }",
"Builder port(int port);",
"public JSONClientAddress(int p, InetAddress a) {\n port = p;\n address = a;\n }",
"public abstract void stream(int port);",
"private final void forwardVirtualConnect(DirectSocketAddress source,\n DirectSocketAddress sourceHub, DirectSocketAddress target,\n DirectSocketAddress targetHub, long index, int timeout, int port,\n int fragment, int buffer) {\n try {\n synchronized (out) {\n out.write(MessageForwarderProtocol.CREATE_VIRTUAL);\n\n DirectSocketAddress.write(source, out);\n DirectSocketAddress.write(sourceHub, out);\n\n DirectSocketAddress.write(target, out);\n DirectSocketAddress.write(targetHub, out);\n\n out.writeLong(index);\n\n out.writeInt(timeout);\n out.writeInt(port);\n out.writeInt(fragment);\n out.writeInt(buffer);\n\n out.flush();\n }\n } catch (Exception e) {\n handleDisconnect(e);\n }\n }",
"public abstract void send(String data, String toAddress);",
"public Communicator(int localPort) throws java.net.SocketException\r\n {\r\n datagramSocket = new DatagramSocket(localPort);\r\n }",
"public Receiver()\r\n/* 15: */ throws Connections.NetWireException\r\n/* 16: */ {\r\n/* 17:14 */ Connections.getPorts(this).addSignalProcessor(\"process\");\r\n/* 18: */ \r\n/* 19:16 */ Connections.publish(this, ID);\r\n/* 20: */ }",
"public MessageReceiver(String ip, int port) throws UnknownHostException, IOException {\r\n\t\tsuper();\r\n\t\tthis.ip = ip;\r\n\t\tthis.port = port;\r\n\t\tSocket mainSocket = new Socket(this.ip, this.port);\r\n\t\tsetSocket(mainSocket);\r\n\t}",
"public WOHTTPConnection(java.lang.String aHost, int portNumber){\n //TODO codavaj!!\n }",
"private Destination createDestination(String originCode, TopRoute route) {\n\t\tString countryCode = cityService.getCountry(originCode);\n\t\tFlight flight = flightService.cheapestFlightReader(countryCode, route.getFrom(), route.getTo());\n\t\tDestination destination = new Destination(route.getTo(), flight);\n\t\treturn destination;\n\t}",
"int getDestination();",
"public Sender(WorkerThread ownerThread, ProcessType receiverProcess, DatagramSocket socket,InetAddress ip, int senderPort){\r\n\t\tthis(receiverProcess, socket,ip, senderPort);\t\t\r\n\t\tthis.ownerThread = ownerThread;\r\n\t\tthreadLabel = ownerThread.getName() + \": \";\r\n\t}",
"public GameServer(int portNum)\n\t{\n\t\tport = portNum;\n\t}",
"public void setDestination (InetSocketAddress o) {\n\t\torigin = o;\n\t}",
"ChordNode(String address, int port, String existingAddress, int existingPort) {\n this.address = address;\n this.port = port;\n this.existingAddress = existingAddress;\n this.existingPort = existingPort;\n\n SHA1Hasher sha1Hash = new SHA1Hasher(this.address + \":\" + this.port);\n this.id = sha1Hash.getLong();\n this.hex = sha1Hash.getHex();\n\n // Print statements\n System.out.println(\"Welcome to the Chord Network!\");\n System.out.println(\"You are running on IP: \" + this.address + \" and port: \" + this.port);\n System.out.println(\"Your ID: \" + this.getId());\n\n // initialize finger table and successor\n this.initializeFingerTable();\n this.initializeSuccessors();\n\n // Launch server thread that will listen to clients\n new Thread(new ChordServer(this)).start();\n\n this.printFingerTable();\n }",
"DynamicPort createDynamicPort();",
"public DataHandler(int port, int receiveLength, int sendLength) {\r\n\r\n\t\ttry {\r\n\t\t\tserverSocket = new DatagramSocket(port);\r\n\t\t} catch (SocketException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t\t//Exit Program is another instance is running, it throws error when trying to take a socket\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Another instance is already running\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\treceiveData = new byte[receiveLength];\r\n\t\tthread = new ListenThread(this);\r\n\t\t\r\n\t}",
"@Override\n \tpublic void setOutboundInterface(InetSocketAddress arg0) {\n \t\t\n \t}",
"public Server(int port){\n\t\ttry {\n\t\t\tdatagramSocket = new DatagramSocket(port);\n\t\t\trequest = new byte[280];\n\t\t} catch (SocketException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t}",
"public ClientThread(String ip, String port){ // initiate with IP and port\n this.Port = port;\n this.IP = ip;\n }",
"public void port (int port) {\n this.port = port;\n }",
"public void testSetPort() {\n }",
"public int getPort() { return port; }",
"EndPoint createEndPoint();",
"OutputPort createOutputPort();",
"public PhysicalLink(Device deviceSource, int portSource, Device deviceDestination, int portDestination) {\n this.deviceSource = deviceSource;\n this.deviceDestination = deviceDestination;\n this.portSource = portSource;\n this.portDestination = portDestination;\n }",
"EventChannelDestination destination();",
"public CreateConnection(int portNumber, List<Integer> adjList, Integer key,int fromPeerid,Integer v2,int originate) //CreateConnection Constructor\n {\n this.portNumber=portNumber;\n this.adjList=adjList;\n this.key=key;\n this.fromPeerid=fromPeerid;\n this.v2=v2;\n this.originateId = originate;\n }",
"public int getViaPort() {\n return this.myPort;\n }",
"public int getViaPort() {\n return this.myPort;\n }",
"public int getSenderPort() {\n return senderPort;\n }",
"public Builder clearDestinationPort() {\n \n destinationPort_ = 0;\n onChanged();\n return this;\n }",
"public int getPort();",
"public int getPort();",
"public int getPort();",
"public PeerBuilder portsExternal(int port) {\n\t\tthis.udpPortForwarding = port;\n\t\tthis.tcpPortForwarding = port;\n\t\treturn this;\n\t}",
"public Server(int port, Consumer<Serializable> onReceiveCallBack)\r\n {\r\n //superclass Constructor called \r\n super(onReceiveCallBack);\r\n \r\n //\r\n this.port = port;\r\n }",
"public Server(int port, String pickrequest) {\n\t\tString[] request = new String[3];\n\t\tif(pickrequest.equals(fcfs){\n\t\t\t\n\t\t}\n\t\tchannel = new TCPChannel(port);\n\t\tchannel.setMessageListener(this);\n\t\t\n\t\t\n\t}",
"int getSourcePort();",
"public proxyt(int tpport) {\n\t\tproxyt.tpport = tpport;\n\t}",
"public java.lang.String getDestination(){return this.destination;}",
"public Teleporter setDestination(Location location)\r\n\t{ this.destination = location; return this; }",
"void sendTo(String from, String to, String m_id);",
"@Override\n\tpublic void setDestination(int x, int y) {\n\t\t\n\t}",
"public WebServer (String sHost, int port)\t\t\t\t\t\t\t\r\n\t{\r\n\t\tthis.shost = sHost; \t\t\t\t\t\t\t\t\t\t\r\n\t\tthis.sPort = port; \t\t\t\t\t\t\t\t\t\t\r\n\t}",
"void open(String nameNport) {\n\tString[] token=nameNport.split(\":\");\n\tString host=token[0];\n\tint port=Integer.parseInt(token[1]);\n\tint proceedFlag=1;\n\tIterator<Socket> iterator=Connection.connections.iterator();\n\tif(host.equalsIgnoreCase(\"localhost\") || host.equals(\"127.0.0.1\"))\n\t\thost=simpella.infoSocket.getLocalAddress().getHostAddress();\n\tif((host.equalsIgnoreCase(simpella.infoSocket.getLocalAddress().getHostAddress())||host.equalsIgnoreCase(simpella.infoSocket.getLocalAddress().getCanonicalHostName()))&&(simpella.serverPortNo==port || simpella.downloadPortNo==port)){\n\t\tproceedFlag=0;\n\t\tSystem.out.println(\"Client: Self Connect not allowed\");\n\t\t}\n\twhile(iterator.hasNext() && proceedFlag==1)\n\t{\n\t\tSocket sock=(Socket)iterator.next();\n\t\t\n\t\tif((host.equalsIgnoreCase(sock.getInetAddress().getHostAddress()) || host.equalsIgnoreCase(sock.getInetAddress().getCanonicalHostName())) && port==sock.getPort()){\n\t\t\tproceedFlag=0; \n\t\t\tSystem.out.println(\"Client: Duplicate connection to same IP/port not allowed\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}\n\tif(proceedFlag==1)\n\t\t{\n\t\n\t\n\tbyte type=04;\n\tMessage msg=new Message(type);\n\ttry {\n\t\tConnection.outgoingConnPackRecv[noOfConn]=0;\n\t\tConnection.outgoingConnPackSent[noOfConn]=0;\n\t\tConnection.outgoingConnPackSentSize[noOfConn]=0;\n\t\tConnection.outgoingConnPackRecvSize[noOfConn]=0;\n\t\t\n\t\tclientSideSocket[noOfConn]=new Socket(host,port);\n\t\tSystem.out.println(\"Client:TCP Connection established...Begin handshake\");\n\t\toutToServer[noOfConn]=new ObjectOutputStream(clientSideSocket[noOfConn].getOutputStream());\n\t\tinFromServer[noOfConn]=new ObjectInputStream(clientSideSocket[noOfConn].getInputStream());\n\t\tString strToServer=\"SIMPELLA CONNECT/0.6\\r\\n\";\n\t\tbyte[] byteArray= strToServer.getBytes(\"UTF-16LE\");\n\t\tmsg.setPayload(byteArray);\n \t\n\t\tSystem.out.println(\"Client:\"+new String(byteArray));\n\t\t//outToServer.writeUTF(\"SIMPELLA CONNECT/0.6\\r\\n\");\n\t\tConnection.outgoingConnPackSent[noOfConn]++;\n\t\tConnection.outgoingConnPackSentSize[noOfConn]+=byteArray.length+23;\n\t\toutToServer[noOfConn].writeObject((Object)msg);\n\t\tConnection.outgoingConnPackRecv[noOfConn]++;\n\t\t\n\t\tMessage msg1=(Message) inFromServer[noOfConn].readObject();\n\t\tbyte[] fromServer=msg1.getPayload();\n\t\tConnection.outgoingConnPackRecvSize[noOfConn]+=fromServer.length+23;\n\t\tString strFromServer=new String(fromServer);\n\t\tSystem.out.println(\"Server:\"+strFromServer);\n\t\tif(msg1.getMessage_type()==05)\n\t\t\t{\n\t\t\tstrToServer=\"SIMPELLA/0.6 200 thank you for accepting me\\r\\n\";\n\t\t\tbyte[] byteArray1= strToServer.getBytes(\"UTF-16LE\");\n\t\t\tMessage m=new Message((byte)05);\n\t\t\tm.setPayload(byteArray1);\n\t\t\tConnection.outgoingConnPackSent[noOfConn]++;\n\t\t\tConnection.outgoingConnPackSentSize[noOfConn]+=byteArray1.length+23;\n\t\t\toutToServer[noOfConn].writeObject((Object)m);\n\t\t\t\n\t\t\tConnection.connections.add(clientSideSocket[client.noOfConn]);\n\t\t\tConnection.outgoingConnection[client.noOfConn]=clientSideSocket[client.noOfConn];\n\t\t\tConnection.clientOutStream[client.noOfConn]=outToServer[client.noOfConn];\n\t\t\tnew clientSocketListen(clientSideSocket[noOfConn],outToServer[noOfConn],inFromServer[noOfConn]);\n\t\t\tupdate();\n\t\t\tnoOfConn++;\n\t\t\t//System.out.println(\"Client:num of conn=\"+noOfConn);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"<open>:Cannot open connection to \"+host+\" at this time\");\n\t\t\t\tclientSideSocket[noOfConn].close();\n\t\t\t\tinFromServer[noOfConn].close();\n\t\t\t\toutToServer[noOfConn].close();\n//\t\t\t\tSystem.out.println(\"Client:num of conn=\"+noOfConn);\n\t\t\t}\n\t\t\n\t\t\n\t} catch (UnknownHostException e) {\n\t\tSystem.out.println(\"Unknown Host: Destination host unreachable\");\n\t\t//e.printStackTrace();\n\t} catch (Exception e) {\n\t\tSystem.out.println(\"Connection Refused/Destination host unreachable\");\n\t}\n\t\t}\n\t}",
"public MockSocket (InetAddress remoteAddr, int remotePort, \n InetAddress localAddr, int localPort) \n throws IOException {\n bind ( new InetSocketAddress (localAddr, localPort) );\n connect ( new InetSocketAddress (remoteAddr, remotePort) );\n }",
"public void setPort(final int p) {\n this.port = p;\n }",
"public void startNetwork(int port);",
"Route(String source,String destination,String departingDate,String returningDate)\r\n {\r\n this.Source=source;\r\n this.destination=destination;\r\n this.departingDate=departingDate;\r\n this.returningDate=returningDate;\r\n }",
"public MediaStreamTarget(InetAddress rtpAddr, int rtpPort, InetAddress rtcpAddr, int rtcpPort)\n {\n this(new InetSocketAddress(rtpAddr, rtpPort), new InetSocketAddress(rtcpAddr, rtcpPort));\n }",
"public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }",
"public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }"
] |
[
"0.6847186",
"0.6847186",
"0.6798193",
"0.672229",
"0.65893704",
"0.65275073",
"0.64896184",
"0.64896184",
"0.6434479",
"0.6318585",
"0.6282945",
"0.61799765",
"0.61389714",
"0.6120661",
"0.6115845",
"0.60171753",
"0.5958359",
"0.590497",
"0.590497",
"0.5899336",
"0.5866847",
"0.5833132",
"0.5786166",
"0.57347953",
"0.57283026",
"0.5719739",
"0.5704363",
"0.56456524",
"0.56456524",
"0.56318384",
"0.56120294",
"0.56116295",
"0.56042916",
"0.5603709",
"0.5603709",
"0.5600727",
"0.5596525",
"0.5594464",
"0.5590303",
"0.55840635",
"0.55810547",
"0.5575714",
"0.556855",
"0.55633914",
"0.5542826",
"0.5540944",
"0.55363876",
"0.55363303",
"0.5536121",
"0.55344445",
"0.55322313",
"0.5516614",
"0.5510048",
"0.5505766",
"0.55042034",
"0.55020654",
"0.54966486",
"0.54963374",
"0.54912025",
"0.54895073",
"0.5481204",
"0.54804516",
"0.54783267",
"0.5471352",
"0.54690087",
"0.54689634",
"0.54505193",
"0.5450093",
"0.5448832",
"0.5445948",
"0.5444724",
"0.5444499",
"0.5444418",
"0.5438668",
"0.5437804",
"0.5437008",
"0.5437008",
"0.54281867",
"0.5427686",
"0.5420002",
"0.5420002",
"0.5420002",
"0.5419874",
"0.5412784",
"0.5409046",
"0.540707",
"0.54048795",
"0.54033047",
"0.5401623",
"0.5401253",
"0.5397381",
"0.5396594",
"0.5390232",
"0.5382359",
"0.5380125",
"0.537727",
"0.5373187",
"0.53725684",
"0.5371909",
"0.5371909"
] |
0.7607452
|
0
|
To start the dialog
|
public boolean start() {
// try to connect to the destination
try {
socket = new Socket(this.destination, this.sendPort);
}
// if it failed not much I can so
catch(Exception ec) {
display("Error connecting to destination: " + this.destination + "\n\t\t" + ec);
return false;
}
display("Connection accepted " + socket.getInetAddress() + ":" + socket.getPort());
/* Creating both Data Stream */
try
{
sInput = new ObjectInputStream(socket.getInputStream());
sOutput = new ObjectOutputStream(socket.getOutputStream());
}
catch (IOException eIO) {
display("Exception creating new Input/output Streams: " + eIO);
return false;
}
// creates the Thread to listen from the destination
new ListenFromdestination().start();
// Send our myPort to the destination this is the only message that we
// will send as a String. All other messages will be ChatMessage objects
try
{
String username = myIP + " " + myPort;
sOutput.writeObject(username);
}
catch (IOException eIO) {
display("Exception doing login : " + eIO);
disconnect();
return false;
}
// success we inform the caller that it worked
return true;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void onStart() {\n pDialog.show();\n }",
"DialogResult show();",
"@Override\n public void run() {\n showDialog(ZDisMainActivity.this,\"dialog\");\n }",
"public void start() {\n dialogContainer.getChildren().addAll(\n DialogBox.getDukeDialog(Messages.START, dukeImage)\n );\n }",
"@Override\n public void run() {\n showDialog(ZDisMainActivity.this,\"dialog\");\n }",
"private void showDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }",
"private void initDialog() {\n }",
"void startScript() {\n\n\t\tif (UIHANDLER_WS_NAME.equalsIgnoreCase((String) core.readDataPool(\n\t\t\t\tDP_ACTUAL_UIHANDLER, preferences.getString(\n\t\t\t\t\t\tPropName_UIHander, UIHANDLER_WS_NAME)))) {\n\n\t\t\t// startButtonLabel.setIcon(resourceMap.getIcon(\"startButtonLabel.icon\"));\n\t\t\tcore.getSystemIF().openBrowser();\n\t\t} else {\n\t\t\tArchive ActiveArchive = (Archive) mSourceSpinner.getSelectedItem();\n\t\t\tif (ActiveArchive == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tpreferences\n\t\t\t\t\t.edit()\n\t\t\t\t\t.putString(PropName_ScriptName,\n\t\t\t\t\t\t\tActiveArchive.getFileName()).commit();\n\t\t\tcore.writeDataPool(DP_ACTIVE_ARCHIVE, ActiveArchive);\n\t\t\tcore.startScriptArchive(ActiveArchive);\n\n\t\t\t// ----------------------------------------------------------\n\t\t\t// prepare the \"load Script\" message\n\t\t\tDiagnose.showDialog = true;\n\t\t\t// the following trick avoids a recreation of the Diagnose\n\t\t\t// TapActivity as long as the previous created one is still\n\t\t\t// in memory\n\t\t\tIntent i = new Intent();\n\t\t\ti.setClass(MainActivity.this, DiagnoseTab.class);\n\t\t\ti.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t\tstartActivity(i);\n\n\t\t}\n\n\t}",
"private void showDialog() {\n if (!progressDialog.isShowing())\n progressDialog.show();\n }",
"public void working() {\n\t\t Dialog d = new Dialog(this);\r\n\t\t d.setTitle(\"hech yea!\");\r\n\t\t TextView tv = new TextView(this);\r\n\t\t tv.setText(\"Success\");\r\n\t\t d.setContentView(tv);\r\n\t\t d.show();\t\r\n\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog.show();\n\t\t}",
"@Override\n protected void onPreExecute()\n {\n dialog.show();\n super.onPreExecute();\n }",
"@Override\n\tpublic void show() {\n\t\tGameView.VIEW.addDialog(this);\n\t\tsuper.show();\n\t}",
"public void display() {\n dialog.setVisible(true);\n }",
"public void show() {\n listenerHandler.onShow(dialog);\n dialog.show();\n }",
"public void start() {\n\t\tPetriNetView pnmlData = ApplicationSettings.getApplicationView()\n\t\t\t\t.getCurrentPetriNetView();\n\t\t//if (pnmlData.getTokenViews().size() > 1) {\n\t\tif(pnmlData.getEnabledTokenClassNumber() > 1){\n\t\t\tExpander expander = new Expander(pnmlData);\n\t\t\tpnmlData = expander.unfold();\n\t\t\tJOptionPane.showMessageDialog(null, \"This is CGSPN. The analysis will only apply to default color (black)\",\n\t\t\t\t\t\"Information\", JOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\t\t// Build interface\n\t\tEscapableDialog guiDialog = new EscapableDialog(\n\t\t\t\tApplicationSettings.getApplicationView(), MODULE_NAME, true);\n\n\t\t// 1 Set layout\n\t\tContainer contentPane = guiDialog.getContentPane();\n\t\tcontentPane.setLayout(new BoxLayout(contentPane, BoxLayout.PAGE_AXIS));\n\n\t\t// 2 Add file browser\n\t\tsourceFilePanel = new PetriNetChooserPanel(\"Source net\", pnmlData);\n\t\tcontentPane.add(sourceFilePanel);\n\n\t\t// 3 Add results pane\n\t\tresults = new ResultsHTMLPane(pnmlData.getPNMLName());\n\t\tcontentPane.add(results);\n\n\t\t// 4 Add button's\n\t\tcontentPane.add(new ButtonBar(\"Analyse GSPN\", runAnalysis, guiDialog\n\t\t\t\t.getRootPane()));\n\n\t\t// 5 Make window fit contents' preferred size\n\t\tguiDialog.pack();\n\n\t\t// 6 Move window to the middle of the screen\n\t\tguiDialog.setLocationRelativeTo(null);\n\n\t\ttry {\n\t\t\tguiDialog.setVisible(true);\n\t\t} catch (NullPointerException e) {\n\t\t}\n\n\t}",
"private void openCreateAccountDialog()\n {\n testDialog();\n\n }",
"public void start()\n\t{\n\t\tview.showWindow();\n\t\taddListeners();\n\t}",
"public void start() {\n\t\t setVisible(true);\n\t}",
"@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tthread.start();\n\t\t\t\t\t\t}",
"public static void showDialog() {\n\t\tdialog.setLocationRelativeTo(Cytoscape.getDesktop());\n\t\tdialog.setVisible(true);\n\t}",
"private void process() {\n final PluginsDialog dialog = new PluginsDialog();\n dialog.show();\n }",
"public void open(){\n dialog.setLocation\n (parent.getLocation().x + 10, parent.getLocation().y + 10);\n dialog.setSize(PREF_SIZE);\n dialog.setResizable(false);\n dialog.setVisible(true);\n dialog.setResizable(true);\n }",
"private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}",
"public abstract void initDialog();",
"private void showpDialog() {\n if (!pDialog.isShowing())\n pDialog.show();\n }",
"public void showDialog(Context context) {\n \n }",
"public void actionPerformed(ActionEvent evt) {\r\n super.actionPerformed(evt);\r\n createDialog().show();\r\n }",
"private void dialogAbout() {\n\t\tGraphicalUserInterfaceAbout.start();\r\n\t}",
"private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}",
"protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }",
"public void run() {\n\t\t\tshowSystemDialog(ResultMsg);\r\n\t\t}",
"public void startDialog(int self, int ctype, int sid, int[] ids) {\n\t\tif (sessionApi != null)\n\t\t\tsessionApi.startDialog(self, ctype, sid, ids);\n\t}",
"private void initialView(){\n // 进度条还有二级进度条的那种形式,这里就不演示了\n final ProgressDialog dialog = new ProgressDialog(this);\n dialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);// 设置水平进度条\n dialog.setCancelable(true);// 设置是否可以通过点击Back键取消\n dialog.setCanceledOnTouchOutside(false);// 设置在点击Dialog外是否取消Dialog进度条\n\n dialog.setTitle(\"正在下载\");\n dialog.setMax(100);\n dialog.setMessage(\"请等待\");\n dialog.show();\n\n\n /*ThreadA t1 = new ThreadA(\"t1\");\n\n synchronized (t1){\n t1.start();\n while(!isExists()){\n try{\n t1.wait();\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }*/\n\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n // TODO Auto-generated method stub\n try {\n Thread.sleep(25000);\n dialog.cancel();\n Intent intent=new Intent(ProgressActivity.this,SudokuActivity.class);\n startActivity(intent);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }).start();\n }",
"private void startMealToDatabaseAlert() {\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);\n TextView dialogTitle = new TextView(this);\n int blackValue = Color.parseColor(\"#000000\");\n dialogTitle.setText(R.string.title_dialog_meal);\n dialogTitle.setGravity(Gravity.CENTER_HORIZONTAL);\n dialogTitle.setPadding(0, 30, 0, 0);\n dialogTitle.setTextSize(25);\n dialogTitle.setTextColor(blackValue);\n dialogBuilder.setCustomTitle(dialogTitle);\n View dialogView = getLayoutInflater().inflate(R.layout.dialog_add_meal, null);\n\n this.startEditTexts(dialogView);\n this.startLocationSpinner(dialogView);\n this.startAddPhotoButton(dialogView);\n this.startMealDialogButtonListeners(dialogBuilder);\n\n dialogBuilder.setView(dialogView);\n AlertDialog permission_dialog = dialogBuilder.create();\n permission_dialog.show();\n }",
"private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }",
"void openDialog()\n {\n if(main.copyCmd.listEvCopy.size() >0){\n widgCopy.setBackColor(GralColor.getColor(\"rd\"), 0);\n } else {\n widgCopy.setBackColor(GralColor.getColor(\"wh\"), 0);\n }\n \n windStatus.setFocus(); //setWindowVisible(true);\n\n }",
"public void show() {\n dialog = new Dialog(mActivity);\n dialog.setCancelable(false);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_progess);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);\n\n ProgressBar progressBar = dialog.findViewById(R.id.progressBar);\n progressBar.getIndeterminateDrawable()\n .setColorFilter(0xFFFFFFFF, android.graphics.PorterDuff.Mode.MULTIPLY);\n\n dialog.show();\n }",
"@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}",
"public void onOpen() {\n\t\t\n\t\t//if things are dirty, ask if they're sure they want to do this\n\t\tif(FormDesignerController.getIsDirty())\n\t\t{\n\t\t\t//if the use says no, then bounce\n\t\t\tif(!Window.confirm(LocaleText.get(\"newFormConfirm\")))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\txformsWidget.hideWindow();\n\t\tFormUtil.dlg.setText(\"Opening...\");\n\t\tFormUtil.dlg.show();\n\n\n\t\tScheduler.get().scheduleDeferred(new Command() {\n\t\t\tpublic void execute() {\n\t\t\t\ttry {\n\t\t\t\t\t//openFile();\n\t\t\t\t\txformsWidget.setXform(\"\");\n\t\t\t\t\txformsWidget.showOpenButton(true);\n\t\t\t\t\txformsWidget.showWindow();\n\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tFormUtil.displayException(ex);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public static void run()\n {\n JFrame invisibleFrame = new InvisibleFrame(TITLE);\n try {\n MainDialog mainDialog = new MainDialog(invisibleFrame);\n mainDialog.setVisible(true);\n } finally {\n invisibleFrame.dispose();\n }\n }",
"public void openDialog(){\n DialogforTheboysHeroImage dialogforTheboysHeroImage = new DialogforTheboysHeroImage();\n dialogforTheboysHeroImage.show(getSupportFragmentManager(), \"Heros info\");\n }",
"@Override\n\t\t\tpublic void onStart()\n\t\t\t{\n\t\t\t\tsuper.onStart();\n\t\t\t\tdialog = MessageDialog.createLoadingDialog(HelpActivity.this, \"Loadding\");\n\t\t\t\tdialog.show();\n\t\t\t}",
"public void showStartDialog(final View rootView) {\r\n AlertDialog.Builder startBuilder = new AlertDialog.Builder(getActivity());\r\n LayoutInflater startInflater = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n final View dialogView = startInflater.inflate(R.layout.start_screen, null); // create view for custom dialog\r\n startBuilder.setCancelable(false);\r\n startBuilder.setView(dialogView); // set view to start screen layout\r\n\r\n // set up username input\r\n usernameEntry = (EditText) dialogView.findViewById(R.id.username_input);\r\n\r\n // handle start button to begin the game\r\n final Button start = (Button) dialogView.findViewById(R.id.btn_start);\r\n start.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n startDialog.dismiss();\r\n initTimer(rootView);\r\n }\r\n });\r\n\r\n // button to submit username\r\n final Button enterUserName = (Button) dialogView.findViewById(R.id.enter_username);\r\n enterUserName.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n\r\n // username information\r\n userName.append(usernameEntry.getText());\r\n userNameString = userName.toString();\r\n\r\n // hide the enter button\r\n enterUserName.setVisibility(View.INVISIBLE);\r\n\r\n // text view that shows what the user has submitted their name as\r\n TextView welcomeUser = (TextView) dialogView.findViewById(R.id.welcome_user);\r\n welcomeUser.setText(\"Welcome \" + userNameString + \"!\");\r\n welcomeUser.setVisibility(View.VISIBLE);\r\n start.setVisibility(View.VISIBLE); // once user has entered user name, make start button visible\r\n }\r\n });\r\n\r\n startDialog = startBuilder.show();\r\n\r\n }",
"@Override\n\t\t\t\t\tprotected Void doInBackground() {\n\t\t\t\t\t\tinfomation.drawStart();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnew Thread(new Runnable() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}}).start();\n\t\t\t\t\t\t\tcenter.start();\n\t\t\t\t\t\t\twait.startSucess();\n\t\t\t\t\t\t\tstartButton.setEnabled(false);\n\t\t\t\t\t\t\tcloseButton.setEnabled(true);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew IODialog();\n\t\t\t\t\t\t} catch (CipherException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew BlockChainDialog();\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tnew ExceptionDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}",
"protected void doDialog(int id) {\n BlindManDialogFragment.newInstance(id, centerDialogs).show(getFragmentManager(), \"dialog\");\n }",
"void startView();",
"public void started()\n {\n playerOneName = JOptionPane.showInputDialog( null, \"Please enter your name:\", \"PlayerOne Name\", JOptionPane.QUESTION_MESSAGE );\n playerTwoName = JOptionPane.showInputDialog( null, \"Please enter your name:\", \"PlayerTwo Name\", JOptionPane.QUESTION_MESSAGE );\n }",
"void showDialog() {\n\t\tDFTimePicker dtf = DFTimePicker.newInstance();\n DialogFragment newFragment = dtf;\n newFragment.show(getFragmentManager(), \"dialog\");\n }",
"private void showImportDialog() {\r\n ImportRecipeDialog dialog = new ImportRecipeDialog();\r\n dialog.addImportRecipeDialogListener(new ImportRecipeDialog.ImportRecipeDialogListener() {\r\n @Override\r\n public void onDialogPositiveClick(String recipeUrl) {\r\n ActivityRecipeList.this.onDialogPositiveClick(recipeUrl);\r\n }\r\n });\r\n String IMPORT_DIALOG = \"ImportRecipeDialog\";\r\n dialog.show(getFragmentManager(), IMPORT_DIALOG);\r\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}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSwingWorker<Void,Void> worker = new SwingWorker<Void,Void>()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected Void doInBackground() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t//frmIpfs.getContentPane().add(infomation,BorderLayout.CENTER);\n\t\t\t\t\t\t//new Thread(infomation).start();\n\t\t\t\t\t\tinfomation.drawStart();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnew Thread(new Runnable() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}}).start();\n\t\t\t\t\t\t\tcenter.start();\n\t\t\t\t\t\t\twait.startSucess();\n\t\t\t\t\t\t\tstartButton.setEnabled(false);\n\t\t\t\t\t\t\tcloseButton.setEnabled(true);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew IODialog();\n\t\t\t\t\t\t} catch (CipherException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t\t\t\tnew BlockChainDialog();\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tnew ExceptionDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t};\n\t\t\t\tworker.execute();\n\t\t\t}",
"private void startViewer() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n finish();\n }",
"@FXML\n void launcherButtonOnAction() {\n openParamDialog();\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\tstartGame();\n\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\n\t\t\t\tshowdialog();\n\n\t\t\t}",
"@Override\n public void run() {\n new ExpenseDaoImpl().init();\n new PopupDescDaoImpl().init();\n new ScheduleDaoImpl().init();\n\n Main dialog = new Main(new javax.swing.JFrame(), true);\n dialog.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent e) { \n System.exit(0);\n }\n });\n dialog.setVisible(true);\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.show();\n\t\t\t\t}",
"public void howtouse(View view) {\n showdialog();\n }",
"private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}",
"public StandardDialog() {\n super();\n init();\n }",
"public void show() {\r\n isOkPressed = false;\r\n\r\n dialog = RitDialog.create(context);\r\n dialog.setTitle(\"Inline Method\");\r\n dialog.setContentPane(contentPanel);\r\n\r\n buttonOk.requestFocus();\r\n\r\n HelpViewer.attachHelpToDialog(dialog, buttonHelp, \"refact.inline_method\");\r\n SwingUtil.initCommonDialogKeystrokes(dialog, buttonOk, buttonCancel, buttonHelp);\r\n\r\n dialog.show();\r\n }",
"public void diler(View view) {\n//dialogi stexcman mek ayl dzev en kirarel\n dialog_diler.show();\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t progressDialog = new AutoTuningInitDialog(mChannelActivity, R.style.dialog);\n\t\t\tprogressDialog.show();\t\t\n\t\t\tsuper.onPreExecute();\n\t\t}",
"protected void do_mntmStartNewForm_actionPerformed(ActionEvent arg0) {\n\t\tthis.dispose();\n\t\tmain(null);\n\t}",
"public void begin() {\n\t\tview.setVisible(true);\n\t}",
"public void start()\n\t{\n\t\tChatbotPanel myAppPanel = (ChatbotPanel) baseFrame.getContentPane();\n\t\tmyAppPanel.displayTextToUser(startMessage);\n\t\t\n\t\t\n//\t\tString result = applicationView.showChatbot(startMessage);\n\t\t\t\n//\t\twhile(!mySillyChatbot.quitChecker(result))\n//\t\t{\n//\t\t\tresult = mySillyChatbot.processText(result);\n//\t\t\tresult = applicationView.showChatbot(result);\n//\t\t}\n//\t\tquit();\n\t}",
"public void execute() {\n _plugin.openNavigator();\n }",
"public void launchHearingAidInstructionDialog() {\n HearingAidDialogFragment.newInstance().show(this.mFragmentManager, HearingAidDialogFragment.class.toString());\n }",
"private void showDialog() {\n\t\tAlertDialog.Builder ab = new AlertDialog.Builder(SplashActivity.this);\n\t\tab.setTitle(\"最新版本2.0\");\n\t\tab.setMessage(mDesc);\n\t\tab.setPositiveButton(\"立即更新\", new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// 在这使用xutils异步下载并提示安装,和显示下载进度条\n\n\t\t\t}\n\t\t});\n\n\t\tab.setNegativeButton(\"下次再说\", new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// 进入主界面\n\n\t\t\t}\n\t\t});\n\t\tab.create().show();\n\t}",
"private void showDialog(){\n progress = new ProgressDialog(this);\n progress.setTitle(getString(R.string.progress_dialog_loading));\n progress.setMessage(getString(R.string.progress_dialog_authenticating_with_firebase));\n progress.setCancelable(false);\n progress.show();\n }",
"private void startGame() {\n betOptionPane();\n this.computerPaquetView.setShowJustOneCard(true);\n blackjackController.startNewGame(this);\n }",
"public void launchRingDialog() {\n final ProgressDialog ringProgressDialog = ProgressDialog.show(CarActivity.this, \"Initializing ...\", \"Connecting to adapter ...\", true);\n ringProgressDialog.setCancelable(false);\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n connectToAdapter();\n } catch (Exception e) {\n Log.d(TAG, \"exception during launc ring dialog\");\n }\n ringProgressDialog.dismiss();\n ////////////////////////\n\n }\n }).start();\n\n }",
"public void launch() {\n m_frame.pack();\n m_frame.setVisible(true);\n }",
"private void showHelpDialog() {\n\n view.helpDialog();\n }",
"public void openDialog() {\r\n\t\tString filename = this.getFileName();\r\n\t\tif (filename.equals(null) || filename.equals(\"\") ) {\r\n\t\t\ttext.append(\"\\nPlease select valid image\");\r\n\t\t\topenDialog();\r\n\t\t}\r\n\t\tdisplay_img = this.loadImage(filename);\r\n\r\n\t}",
"public OpenMonitorInstanceDialog() {\n super();\n setTitle(\"Open Monitor Instance\");\n initComponents();\n setLocationRelativeTo(getOwner());\n getRootPane().setDefaultButton(btnOpen);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tshowDialog();\n\t\t\t}",
"public void startPage() {\n\t\tthis.dataComposer.startPage();\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\tint which) \n\t\t\t\t\t{\n\t\t\t\t\t\tIntent intent = new Intent(MainActivity.this,\n\t\t\t\t\t\t\t\tSimulation.class);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t}",
"@Override\n\tprotected void onPreExecute() {\n\t\tthis.dialog.setMessage(\"Mise à jour des horaires ....\");\n\t\tthis.dialog.show();\n\t}",
"public TranslationStartDialog(JFrame parent) {\n super();\n initialize();\n pack();\n setLocationRelativeTo(parent);\n }",
"public void open() {\r\n\t\tthis.setVisible(true);\r\n\t}",
"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 }",
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"private void mostrarDialogoCargar(){\n materialDialog = new MaterialDialog.Builder(this)\n .title(\"Validando datos\")\n .content(\"Por favor espere\")\n .progress(true, 0)\n .contentGravity(GravityEnum.CENTER)\n .widgetColorRes(R.color.colorPrimary)\n .show();\n\n materialDialog.setCancelable(false);\n materialDialog.setCanceledOnTouchOutside(false);\n }",
"public void run() {\n\t\t\t\tfinal Dialog dialog = new Dialog(Main.this);\n\t\t\t\tdialog.setContentView(R.layout.dialog);\n\t\t\t\tdialog.setTitle(\"Test completes!\");\n\t\t\t\tdialog.setCancelable(true);\n\t\t\t\tdialog.setCanceledOnTouchOutside(true);\n\n\t\t\t\t//set up text\n\t\t\t\tTextView text = (TextView) dialog.findViewById(R.id.TextView01);\n\t\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\t\t\ttext.setText(\"Average downlink speed\\n\"+ df.format(down) + \" kbps\\n\\nAverage uplink speed\\n\" + \n\t\t\t\t\t\tdf.format(up) + \" kbps\\n\\nLatency\\n\" + df.format(rtt) + \" ms\"); \n\n\n\t\t\t\t//Create the button \n\t\t\t\tButton button = (Button) dialog.findViewById(R.id.Button01);\n\t\t\t\tbutton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t//When the button is clicked, call up android test menu\n\t\t\t\t\t//@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tdialog.show();\n\n\t\t\t}",
"public void open() {\n display = Display.getDefault();\n createContents();\n shell.open();\n shell.layout();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch()) {\n display.sleep();\n }\n }\n\n // programme stop with exit 0\n System.exit(0);\n\n }",
"public void showDialog() {\n mDialogInfoWithTwoButtons = new DialogInfoWithTwoButtons(mContext,\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n saveTemplate(mToastEdited);\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n }\n }, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mTemplateId = mDatabaseManager.getTemplateNewId();\n mPreferenceManager.setTemplateId(mTemplateId);\n saveTemplate(mToastCreated);\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n }\n }, mTitle, mMessage, mTitleButtonOne, mTitleButtonTwo);\n mDialogInfoWithTwoButtons.getDialog().show();\n }",
"public void start() {\r\n view.addListener(this);\r\n view.makeVisible();\r\n view.display();\r\n }",
"public void Open() {\r\n\t click();\r\n\t }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tdialog.show();\n\t\t\t\t//alert.show();\n\t\t\t\t\n\t\t\t}",
"private void initDialog() {\n dialog = new Dialog(context);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_custom_ok);\n }",
"@Override\n\t\t\t\t\tpublic void run(){\n\t\t\t\t\t\t//status of 1 is success\n\t\t\t\t\t\tif (status==1){\n\t\t\t\t\t\t\tmainDialog.dispose();\n\t\t\t\t\t\t\tbuildSuccessDialog();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//else error\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tmainDialog.dispose();\n\t\t\t\t\t\t\tbuildErrorDialog(status);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"public void start()\n {\n uploadDataFromFile();\n menu.home();\n home();\n }",
"public void show_dialog_box (){\n //show the message of turning on the location\n Dialog dialog = new Dialog(this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.location_message_r);\n dialog.show();\n }",
"private void showCustomDialog() {\n final Dialog dialog = new Dialog(getContext());\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); //before\n // Include dialog.xml file\n dialog.setContentView(R.layout.success_dialog);\n TextView btn_home = dialog.findViewById(R.id.btn_home);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n startActivity(new Intent(getContext(), MainActivity.class));\n getActivity().finish();\n }\n });\n btn_home.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(getContext(), MainActivity.class));\n getActivity().finish();\n }\n });\n // Set dialog title\n\n dialog.show();\n }",
"public Object open() {\n // Create a new shell object and set the text for the dialog.\n Shell parent = getParent();\n shell = new Shell(parent, SWT.DIALOG_TRIM);\n shell.setText(\"Edit Colormaps\");\n\n // Setup all of the layouts and the controls.\n setup();\n\n // Open the shell to display the dialog.\n shell.open();\n\n // Wait until the shell is disposed.\n Display display = parent.getDisplay();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch())\n display.sleep();\n }\n\n return null;\n }",
"public void dialogoAgregarUsuario() {\n vAgregarUsuario = new V_AgregarUsuario(new JFrame(), true);\n vAgregarUsuario.setVisible(true);\n }",
"@Override\n public void start() {\n f.setVisible(true);\n }"
] |
[
"0.76467586",
"0.72553414",
"0.7105938",
"0.7099855",
"0.7090959",
"0.70747495",
"0.70530486",
"0.69580734",
"0.6935034",
"0.69314045",
"0.6925784",
"0.69130665",
"0.6883782",
"0.68705004",
"0.6864612",
"0.68189806",
"0.6812552",
"0.6803837",
"0.6764944",
"0.6756483",
"0.6732134",
"0.6696847",
"0.6691567",
"0.6684131",
"0.66733795",
"0.6670251",
"0.66325337",
"0.6592704",
"0.6563144",
"0.656049",
"0.65399927",
"0.6537828",
"0.6533878",
"0.6527829",
"0.6518693",
"0.6513221",
"0.64994437",
"0.6482332",
"0.64800274",
"0.6476445",
"0.64732283",
"0.64152515",
"0.6408419",
"0.6403099",
"0.6383304",
"0.6379435",
"0.63717705",
"0.6370442",
"0.63681996",
"0.63651955",
"0.63651955",
"0.6363874",
"0.635975",
"0.63543636",
"0.63512737",
"0.6350024",
"0.6344158",
"0.633439",
"0.633168",
"0.631452",
"0.6302881",
"0.62952137",
"0.62663597",
"0.6264645",
"0.62559545",
"0.62486297",
"0.62452006",
"0.62343997",
"0.62335825",
"0.6226834",
"0.6225362",
"0.6220738",
"0.6217855",
"0.62178254",
"0.6217721",
"0.62034464",
"0.62034017",
"0.6202569",
"0.6201282",
"0.6188828",
"0.6177167",
"0.61705524",
"0.6169272",
"0.6167933",
"0.6162627",
"0.61563325",
"0.61557597",
"0.61543924",
"0.6152493",
"0.6151544",
"0.6140069",
"0.61352044",
"0.61309624",
"0.61263376",
"0.6123925",
"0.6117097",
"0.611669",
"0.6113786",
"0.6111875",
"0.61064774",
"0.6106401"
] |
0.0
|
-1
|
To send a message to the console
|
private void display(String msg) {
String msgF = "\tClient- " + msg + "\n\n >> ";
System.out.print(msgF);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void sendToConsole(String message) {\n if (message == null) {\n throw new IllegalArgumentException(\"Message cannot be null\");\n }\n if (Loader.queueMessages) {\n MessageQueue.console.add(message);\n } else {\n sendMessageInternal(Loader.consoleChannelId, message);\n }\n }",
"public void console(String message){\n\t\tactivity.append(message + \"\\n\");\n\t\tactivity.selectAll();\n\t}",
"private void printConsole(String text) {\n\t\tMessage msg = getHandler().obtainMessage(MESSAGE_CONSOLE_CHANGED);\n\t\tmsg.obj = \"\\n\" + text ;\n\t\tmsg.sendToTarget();\t\t\n\t}",
"public void sendCommands(String command) {\n try {\n printStream.print(command);\n }\n catch (Exception e){\n\n }\n\n\n }",
"abstract void consoleMessage(String message);",
"public void MessageInvitCommand(String msg)\n {\n System.out.println(\"> \"+msg);\n }",
"public void sendMessage(String message){\n pw.print(message);\n pw.flush();\n }",
"public void sendMessage(String text)\n\t{\n\t\ttry\n\t\t{\n\t\t\tout.println(text);\n\t\t\tout.flush();\n\t\t}\n\t\tcatch(NullPointerException e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}",
"public void send(String command)\n {\n if (connected) { \n writer.println(command + \";\");\n }\n }",
"public void logToConsole(String message) {\n Bukkit.getServer().getConsoleSender().sendMessage(color(message));\n }",
"public static void echo(String msg)\n {\n System.out.println(msg);\n }",
"void sendMessage(String msg);",
"void sendMessage(String message) {\n writer.println(message);\n }",
"public void sendMessage(String message) {\n printWriter.append(message);\n printWriter.flush();\n }",
"public static void sendMessage(int command) {\n\t\tfindWindow();\n\t\t\n\t\tuser32.SendMessageA(handle, IUser32.WM_COMMAND, command, 0x00000000);\n\t}",
"public void consoleWrite(String message) {\n if (console == null) {\n console = new ConsoleWindowPane();\n getDefaultWindow().getContent().add(console);\n } else if (console.getParent() == null) {\n getDefaultWindow().getContent().add(console);\n }\n if (message != null) {\n console.writeMessage(message);\n }\n }",
"public void sendCommand(Command cmd);",
"private void sendMsgToClient(String msg) {\n controlOutWriter.println(msg);\n }",
"public void sendMessage()\r\n {\r\n MessageScreen messageScreen = new MessageScreen(_lastMessageSent);\r\n pushScreen(messageScreen);\r\n }",
"protected void echo(String msg){\n\tSystem.out.println(\"*ECHO*: \" + msg);\n }",
"void sendMessage() {\n\n\t}",
"void message(){\n\t\tSystem.out.println(\"Hello dude as e dey go \\\\ we go see for that side\");\n\t\tSystem.out.print (\" \\\"So it is what it is\\\" \");\n\n\t}",
"@Override\n\tpublic void SendMessage(String message) {\n\t\t\n\t\ttry\n\t\t{\n\t\tprintWriters.get(clients.get(0)).println(message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t}",
"public void print(String message);",
"private void sendMessage(String message){\n\t\ttry{\n\t\t\toutput.writeObject(\"Punk Ass Server: \" + message);\n\t\t\toutput.flush();\n\t\t\tshowMessage(\"\\nPunk Ass Server: \" + message); \n\t\t}catch(IOException ioe){\n\t\t\tchatWindow.append(\"\\n Message not sent, try again or typing something else\");\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private void sendLineCommand(String message) throws IOException,\n \t\t\tIllegalStateException {\n \t\tif (!connected) {\n \t\t\tthrow new IllegalStateException(\"Client not connected\");\n \t\t}\n \t\toutput.write(message + \"\\r\");\n \t\toutput.newLine();\n \t\toutput.flush();\n \t}",
"public void sendMessage(String message){\n\t if (mOut != null && !mOut.checkError()) {\n\t mOut.println(message+\"\\n\");\n\t mOut.flush();\n\t }\n\t }",
"public void sendMessage(String msg) {\n try {\n out.write(msg);\n out.newLine();\n out.flush();\n \n } catch (IOException e) {\n \tshutdown();\n e.printStackTrace();\n }\n }",
"private void consoleRun() {\n try {\n var scan = new Scanner(System.in);\n while (scan.hasNextLine()) {\n var msg = scan.nextLine();\n sendCommand(msg);\n }\n } catch (InterruptedException e) {\n logger.info(\"Console thread has been interrupted\");\n } finally {\n logger.info(\"Console thread stopping\");\n }\n }",
"public void echo(final String message);",
"public void println(String message) {\r\n chatFrame.println(message);\r\n }",
"@Override\n public void send() {\n System.out.println(\"send message by SMS\");\n }",
"private void sendMessageToClient(String messageToClient){\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n output.println(\"\\n\" + \"Server: \" + messageToClient);\n output.flush();\n }\n });\n }",
"public static void sendMessage(String s) {\r\n sendRaw(\"PRIVMSG \" + channel + \" :\" + s + \"\\n\");\r\n Console.writeLine(nick + \": \" + s);\r\n }",
"void println(String message);",
"public void sendMessage ( String message ) {\n\t\texecute ( handle -> handle.sendMessage ( message ) );\n\t}",
"public void sendMessage(String message) {}",
"void send(String message);",
"public static void write(String message) {\n System.out.println(message);\n }",
"@Override\n\tpublic void tellPlayer(String message) {\n\t\tSystem.out.println(message);\n\t}",
"public static void sendMessage(String message) {\r\n\t\tbtService.write(message.getBytes());\r\n\t}",
"public void sendMessage(String message);",
"@Override\n public void send(String message) {\n\n out.println(message);\n out.flush();\n\n }",
"public void writeToConsole(String text) {\n\t\tconsole.append(text);\n\t}",
"public void sendMessage(String message) {\n\t\tsocketTextOut.println(message);\n\t\tsocketTextOut.flush();\n\t}",
"public void sendMessage(String message)\n\t\t{\n\t\t\twriter.println(message);\n\t\t\twriter.flush();\n\t\t}",
"public void sendMessage(String message) {\n\t\tSystem.out.println(\"DEBUG : response sent by server = \" + message);\n\t\tprinter.println(message);\n\t}",
"protected void sendMessage(final String message) {\n\n logger.debug(LOG_TAG + \".sendMessage()\");\n\n // send message to client\n printWriter.println(message);\n\n }",
"private static void print(String message)\n {\n System.out.println(message);\n }",
"public void sendMessage(String msg) {\n\t\tplayer.sendMessage(msg);\n\t}",
"private void sendMessage() throws Exception {\n\t\tGetTimestamp(\"Sending Message: \");\n\t\tString inputMessage;\n\t\tinputMessage = input.nextLine();\n\t\tString tosend = encrypt(clientkey, inputMessage);\n\t\t\n\t\tJSONObject RESPONSE = new JSONObject();\n\t\tRESPONSE.put(\"payload\",tosend);\n\t\tSystem.out.println(RESPONSE);\n\t\t\n\t\tpw.println(tosend);\n\t\tpw.flush();\n\t\tSystem.out.println(\"Message sent to the client : \" + inputMessage);\n\t\tif (inputMessage.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"sending close command\");\n\t\t\tcloseConnection();\n\t\t} else {\n\t\t\tgetMessage();\n\t\t}\n\t}",
"void print(String message);",
"private static void printLine(String message){\n\t\tSystem.out.println(message);\n\t}",
"public void printMessage() {\n printMessage(System.out::print);\n }",
"public void sendMessage2Client(String msg){\n\t\t\t\n\t\t\toutPrintStream.println(msg);\n\t\t\t\n\t\t}",
"@Override\n\tpublic void sendMessage() {\n\t\t\n\t}",
"public void showMessage(String message);",
"public void sendMessage(final String message) {\n\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n\n if (null != sendBuffer) {\n Log.d(TAG, \"Sending: \" + message);\n sendBuffer.println(message);\n sendBuffer.flush();\n }\n }\n };\n\n Thread thread = new Thread(runnable);\n thread.start();\n }",
"public void print(String message) {\n System.out.println(message);\n }",
"public void print(String message) {\n System.out.println(message);\n }",
"public void sendMessage(String str) {\n\t\ttry {\n\t\t\tsession.getRemote().sendString(str);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void displayTextToConsole();",
"@Override\n\tpublic void onMessage(String arg0, String arg1) {\n\t\tSystem.out.print(arg0+arg1);\n\t}",
"void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Não foi possível enviar a mesagem !!!\");\n\t\t}\n\t}",
"void showInConsole();",
"public void writeToConsole(String text) {\n consoleToWrite += text;\n\n class ConsoleNodeWriteConsole implements Runnable {\n public void run() {\n if (consoleTextArea != null) {\n consoleTextArea.appendText(consoleToWrite);\n\n List<Trigger> triggers = getProgram().getFlowController().getActiveTriggers(getContainedText(), \"New line\");\n for (Trigger trigger : triggers) {\n NodeRunParams nodeRunParams = new NodeRunParams();\n nodeRunParams.setOneTimeVariable(consoleToWrite);\n Program.runHelper(trigger.getParent().getNextNodeToRun(), getProgram().getFlowController().getReferenceID(), trigger.getParent(), false, true, null, nodeRunParams);\n }\n\n consoleToWrite = \"\";\n }\n }\n }\n\n Platform.runLater(new ConsoleNodeWriteConsole());\n }",
"public void print() {\n System.out.println(\"Command: \" + command);\n }",
"private void sendMessage(String message){\n try{\n output.writeObject(nickname+\" : \" + message);\n output.flush();\n showMessage(\"\\n\"+nickname+\" : \" + message);\n }catch(IOException ioException){\n chatWindow.append(\"\\n Oops! Something went wrong!\");\n }\n }",
"private static void echo(String msg) {\n assert msg != null;\n\n System.out.println(msg);\n }",
"public static void send(CommandSender sender, String message) {\n\n\t\tif (sender == null) {\n\t\t\tlog(message);\n\t\t}\n\n\t\tsender.sendMessage(Tools.parseColors(message, (sender instanceof ConsoleCommandSender && !RecipeManager.getSettings().COLOR_CONSOLE)));\n\t}",
"public void send(Message msg);",
"public void processMessage(final String message){\n SwingUtilities.invokeLater(\n new Runnable(){\n @Override\n public void run(){\n consoleWindow.append(message + \"\\n\");\n }\n }\n );\n }",
"public synchronized void send(String message) {\n writer.println(message);\n writer.flush();\n }",
"private static void println(String message) {// metodo imprimir\r\n\t\tString threadName = Thread.currentThread().getName();\r\n\t\tSystem.out.println(threadName + \": \" + message);\r\n\t}",
"public Map consoleCommand(String id, String cmd) throws IOException\n\t{\n\t\treturn request(POST, address(id, \"msg\"), new AbstractMap.SimpleEntry<>(\"msg\", cmd));\n\t}",
"public void printMsg() {\n System.out.println(\"This is an example RMI program\");\n }",
"void sendCommand(CommandEvent event);",
"private void sendMessageToPrompt(String txt){\n\t\tMessage msg = new Message();\n\t\tmsg.obj = \"UDPReceiver: \" + txt;\n\t\tthis.msgPromptHandler.sendMessage(msg);\n\t}",
"private void sendCommand(int recipient, int action) {\r\n\t\tString command = \"*\" + recipient + \";\" + action + \";\" + \"0\" + \";\" + \"0\"\r\n\t\t\t\t+ \"#\";\r\n\t\tlogger.debug(\"Sende Kommando\");\r\n\t\tcom.sendString(command);\r\n\t\tlogger.debug(\"Senden des Kommandos beendet\");\r\n\t}",
"public void printToUser(String message){\n System.out.println(message);\n }",
"public void say(String message)\r\n {\r\n System.out.println(\"*\" + name + \" - \" + message);\r\n }",
"public void run() {\n\t\ttry {\n\t\t\tinternalSocket = new Socket(\"localhost\", getPort());\n\t\t\tin = new ObjectInputStream(socket.getInputStream());\n\n\t\t\tinternalOut = new ObjectOutputStream(\n\t\t\t\t\tinternalSocket.getOutputStream());\n\t\t} catch (IOException e1) {\n\t\t\tconsoleOut(MESSAGE_ERROR_EXEC);\n\t\t\treturn;\n\t\t}\n\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tString message = in.readUTF();\n\n\t\t\t\t// take message and redirect this message to\n\t\t\t\t// second console\n\t\t\t\tsendMessage(message);\n\n\t\t\t\tif (message.equalsIgnoreCase(\"bye\")) {\n\t\t\t\t\tclose();\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} catch (Exception efEx) {\n\t\t\t\tconsoleOut(MESSAGE_ERROR_EXEC);\n\t\t\t\ttry {\n\t\t\t\t\tclose();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tconsoleOut(MESSAGE_ERROR_EXEC);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"public void sendChat(String message) {\n\t\tenqueue(\"PRIVMSG #\"+Executable.targetChannel+\" :imGlitch \"+message);\n\t}",
"public void send(String str){\n\t\tif(out != null){\n\t\t\tout.println(str);\n\t\t}\n\t}",
"@NotNull\n CommandResult onConsoleCommand(@NotNull ConsoleCommandSender console,\n @NotNull String[] params);",
"public void sendMessage(String message) {\n try {\n bos.write(message);\n bos.newLine();\n bos.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private synchronized void sendToClient(PrintWriter pw, String message)\n {\n pw.write(message + \"\\n\");\n pw.flush();\n }",
"public void print()\n {\n chatarea.append(\"Sender:(\"+port.getText()+\")\"+System.lineSeparator()+msgarea.getText()+System.lineSeparator());\n }",
"public void print(String message){\n if (this.okToPrint){\n System.out.print(message);\n }\n }",
"public void sendln(String msg)\n\t{\n\t\tsendPlain(codeFilter(msg+\"\\n\\r\"));\n\t}",
"public void printMsg(String msg) {\n\t\tSystem.out.println(msg);\n\t}",
"public void log(String message) {\n Bukkit.getConsoleSender().sendMessage(getPrefix() + message);\n }",
"public void printMessage(String message) {\n\r\n\t}",
"public static void print(String message)\n {\n\tSystem.out.println(message);\n }",
"public static void print(String message) {\n System.out.print(message);\n }",
"public void tellServer(String message)\n\t{\n\t\ttoServer.println(message);\n\t\ttoServer.flush();\n\t}",
"@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}",
"@Override\n\tpublic void send() {\n\t\tSystem.out.println(\"this is send\");\n\t}",
"public String sendCommand(String command) {\n try {\n write(command);\n return readUntil(prompt + \"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"private void PrintMessageOnTextChat(MessageWithTime message)\n\t{\n\t\tApplicationManager.textChat.write(message);\n\n\t}",
"public void println(String message){\n if (this.okToPrint){\n System.out.println(message);\n }\n }"
] |
[
"0.74030375",
"0.7266407",
"0.7097701",
"0.7040922",
"0.69464064",
"0.69409394",
"0.68856746",
"0.67703855",
"0.67416775",
"0.6740349",
"0.6723361",
"0.6681138",
"0.6680669",
"0.66772527",
"0.6661131",
"0.6641001",
"0.6639117",
"0.66200536",
"0.6614042",
"0.6569617",
"0.6540528",
"0.6540013",
"0.65291107",
"0.65258765",
"0.65254146",
"0.6522346",
"0.6497984",
"0.64848334",
"0.6470357",
"0.64341056",
"0.64283824",
"0.6413957",
"0.64102167",
"0.64090765",
"0.64015895",
"0.63992786",
"0.6397049",
"0.6396762",
"0.6355168",
"0.63432056",
"0.63297033",
"0.631074",
"0.62899536",
"0.623919",
"0.6235146",
"0.6234669",
"0.6234159",
"0.62236565",
"0.62186664",
"0.62155706",
"0.6203611",
"0.6203572",
"0.6202984",
"0.6199402",
"0.6198393",
"0.61936384",
"0.619174",
"0.6188642",
"0.6174746",
"0.6174746",
"0.6168968",
"0.616566",
"0.61631995",
"0.61583364",
"0.61554617",
"0.61473024",
"0.6145797",
"0.61355937",
"0.61318934",
"0.61260736",
"0.61186177",
"0.6112685",
"0.6102953",
"0.6096136",
"0.60881233",
"0.6083559",
"0.60793763",
"0.6065732",
"0.6064149",
"0.6049776",
"0.60451835",
"0.6045064",
"0.60439956",
"0.6043265",
"0.60271674",
"0.6023687",
"0.60214406",
"0.6019854",
"0.60164696",
"0.60101235",
"0.60069394",
"0.60051894",
"0.60016525",
"0.60014176",
"0.5996295",
"0.59904087",
"0.5988993",
"0.5988883",
"0.5984063",
"0.59815395",
"0.5971481"
] |
0.0
|
-1
|
To send a message to the destination
|
public void sendMessage(ChatMessage msg) {
try {
sOutput.writeObject(msg);
}
catch(IOException e) {
System.out.print("\n\tException writing to destination: \n\t\t" + e
+ "\n\tIf error persists, terminate connection and reconnect.");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void send(String destination, String message, String identifier){\n return;\n }",
"public void sendTo(P2PUser dest, Object msg) throws IOException;",
"void sendTo(String from, String to, String m_id);",
"public void send(Address from, String message);",
"public void send(Message msg);",
"public Transmission sendMessage(NodeInfo destination,\n MendelMessage message) throws IOException {\n\n NetworkDestination dest = new NetworkDestination(destination\n .getHostname(), destination.getPort());\n return sendMessage(dest,message);\n }",
"protected void sendMessage() throws IOException {\r\n\t\tif (smscListener != null) {\r\n\t\t\tint procCount = processors.count();\r\n\t\t\tif (procCount > 0) {\r\n\t\t\t\tString client;\r\n\t\t\t\tSimulatorPDUProcessor proc;\r\n\t\t\t\tlistClients();\r\n\t\t\t\tif (procCount > 1) {\r\n\t\t\t\t\tSystem.out.print(\"Type name of the destination> \");\r\n\t\t\t\t\tclient = keyboard.readLine();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(0);\r\n\t\t\t\t\tclient = proc.getSystemId();\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = 0; i < procCount; i++) {\r\n\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(i);\r\n\t\t\t\t\tif (proc.getSystemId().equals(client)) {\r\n\t\t\t\t\t\tif (proc.isActive()) {\r\n\t\t\t\t\t\t\tSystem.out.print(\"Type the message> \");\r\n\t\t\t\t\t\t\tString message = keyboard.readLine();\r\n\t\t\t\t\t\t\tDeliverSM request = new DeliverSM();\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\trequest.setShortMessage(message);\r\n\t\t\t\t\t\t\t\tproc.serverRequest(request);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Message sent.\");\r\n\t\t\t\t\t\t\t} catch (WrongLengthOfStringException e) {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Message sending failed\");\r\n\t\t\t\t\t\t\t\tevent.write(e, \"\");\r\n\t\t\t\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t\t\t\t} catch (PDUException pe) {\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tSystem.out.println(\"This session is inactive.\");\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} else {\r\n\t\t\t\tSystem.out.println(\"No client connected.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void sendMessage(Message message) {\n\t\tterminal.println(\"Sending Message to: \" + message.getUserTo());\n\t\tDatagramPacket packet = null;\n\t\tString routerDestination = table.getRouterToSendTo(message.getUserTo());\n\t\tRouter routerToSendTo = null;\n\t\tfor(Router routerToSend: listOfRouters) {\n\t\t\tif(routerToSend.getName().equals(routerDestination)) {\n\t\t\t\trouterToSendTo = routerToSend;\n\t\t\t}\n\t\t}\n\n\t\tif(routerToSendTo == null) {\n\t\t\tterminal.println(\"User not found on network.\");\n\t\t}\telse {\n\t\t\t/*\n\t\t\t * need to change the message to include the router that needs to receive the message as well!!!!!!!!!!!!!!\n\t\t\t */\n\t\t\tInetSocketAddress dstAddress = new InetSocketAddress(DEFAULT_DST_NODE, routerToSendTo.getPort());\n\t\t\tpacket = message.toDatagramPacket();\n\t\t\tpacket.setSocketAddress(dstAddress);\n\t\t\ttry {\n\t\t\t\tsocket.send(packet);\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}",
"void send(String message);",
"private void sendMessage() {\n Log.d(\"sender\", \"Broadcasting message\");\n Intent intent = new Intent(\"custom-event-name\");\n // You can also include some extra data.\n double[] destinationArray = {getDestination().latitude,getDestination().longitude};\n intent.putExtra(\"destination\", destinationArray);\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }",
"public void message(String from,String msg,String to);",
"public void sendMessage(String message);",
"void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Não foi possível enviar a mesagem !!!\");\n\t\t}\n\t}",
"public void sendMessage(String message) {}",
"@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}",
"void sendMessage(String msg);",
"public void sendMessage ( UUID sender , String message ) {\n\t\texecute ( handle -> handle.sendMessage ( sender , message ) );\n\t}",
"public void sendMsg(String address, String title, String content);",
"@Override\n public void sendMessage(Message m) {\n commSender.sendMessage(m);\n }",
"public abstract void send(String data, String toAddress);",
"@Override\n\tpublic void sendMessage() {\n\t\t\n\t}",
"@Override\r\n\tpublic void sendMessage(String message) {\n\t\tmediator.send(message, this);\r\n\t}",
"private void sendMessage() {\n if (mRecipientAddress == null) {\n if (mDevices.getSelectedItem() == null) {\n mStatusText.append(\"Please select a device to message.\\n\");\n return;\n }\n if (mMessage.getText() == null || mMessage.getText().toString().equals(\"\")) {\n mStatusText.append(\"Please enter a message to send.\\n\");\n return;\n }\n }\n WifiDirectClientAsyncTask t = new WifiDirectClientAsyncTask(this, mMessage.getText().toString());\n if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n t.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n else\n t.execute();\n }",
"public void sendMessage(String message){\n\t if (mOut != null && !mOut.checkError()) {\n\t mOut.println(message+\"\\n\");\n\t mOut.flush();\n\t }\n\t }",
"public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}",
"@DSSink({DSSinkKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.513 -0500\", hash_original_method = \"9DAC7AFA4C14A1022E9DEC304018391F\", hash_generated_method = \"B2E7772166FCACAF852F55F44CB46D51\")\n \npublic void sendMessage(Message msg) {\n msg.replyTo = mSrcMessenger;\n try {\n mDstMessenger.send(msg);\n } catch (RemoteException e) {\n replyDisconnected(STATUS_SEND_UNSUCCESSFUL);\n }\n }",
"void sendMessage() {\n\n\t}",
"public void sendMessage(Message msg) {\n network.sendAsync(msg);\n }",
"public void sendMessage ( String message ) {\n\t\texecute ( handle -> handle.sendMessage ( message ) );\n\t}",
"@Override\n\tpublic void send(String msg) {\n\t\t\n\t\t\n\t\n\t}",
"public void sendMessage(String message){\n pw.print(message);\n pw.flush();\n }",
"public void sendMessage(View v) {\n // retrieve the text typed in by the user in the EditText\n String message = ((EditText)(findViewById(R.id.editText_message))).getText().toString();\n // create an implicit intent to any app with SENDTO capability\n // set the destination (5556 is the phone number of the second emulator instance)\n Uri destination = Uri.parse(\"smsto:5556\");\n Intent smsIntent = new Intent(Intent.ACTION_SENDTO, destination);\n // pass the composed message to the messaging activity\n smsIntent.putExtra(\"sms_body\", message);\n // launch the intent\n startActivity(smsIntent);\n }",
"private void sendMessage(String message){\n\t\ttry{\n\t\t\toutput.writeObject(\"Punk Ass Server: \" + message);\n\t\t\toutput.flush();\n\t\t\tshowMessage(\"\\nPunk Ass Server: \" + message); \n\t\t}catch(IOException ioe){\n\t\t\tchatWindow.append(\"\\n Message not sent, try again or typing something else\");\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void send() {\n\t}",
"@Override\n public void send() {\n System.out.println(\"send message by SMS\");\n }",
"private void sendMessage(String content, String room) {\n }",
"void send();",
"void sendMessage(Message m) throws IOException {\n String msg = m.toString();\n\n buffer = msg.getBytes(\"Windows-1256\");\n toServer = new DatagramPacket(buffer, buffer.length,\n InetAddress.getByName(sendGroup), port);\n if (m.getType() == Message.DATA) {\n manager.mManager.addMessage(m);\n }\n\n System.out.println(getName() + \"-->\" + m);\n serverSocket.send(toServer);\n }",
"public void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Exception writing to server: \" + e);\n\t\t}\n\t}",
"private void sendMessage(ChatMessage msg) {\n try {\n sOutput.writeObject(msg);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void sendMessage(NetMessage message) {\n ClientDirector.getDataManager().sendMessage(message);\n }",
"public void sendMessage(String content, String toUser) throws IOException, BadLocationException{\r\n\t\tdataSending.sendMessage(content, toUser);\r\n\t\tuserModel.getArchive().getArchiveWriter().addNewTalk(toUser,\"Messeage sent to user\" +toUser + System.lineSeparator() + content);\r\n\t\tclientView.addNewMesseage(content, \"sent to user: \"+toUser);\r\n\t\t\r\n\t}",
"@Override\n\tpublic void send(String msg) {\n\t}",
"public void sendMessageXMPP(String message, String targetUser, MainActivity mainActivity) {\n ChatManager chatmanager = xmppConnection.getChatManager();\n Chat newChat = chatmanager.createChat(targetUser, new MessageListener(mainActivity));\n\n try {\n newChat.sendMessage(message);\n System.out.println(\"yohoo message sent\");\n// receiveMessage(connection);\n } catch (XMPPException e) {\n System.out.println(\"Error Delivering block\");\n System.out.println(\"----------sendMessageXMPP---------\" + e.getMessage());\n } catch (Exception e) {\n System.out.println(\"----------sendMessageXMPP---------\" + e.getMessage());\n }\n\n }",
"public void sendMessage(String message) {\n\t\ttry {\n\t\t\tout.writeUTF(message);\n\t\t\tserver.CommunicationLog.info(\"Sent:\" + message + \" to \" + clientSocket.getInetAddress().toString());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void sendMessage() {\n\t\tString myPosition=this.agent.getCurrentPosition();\n\t\tif (myPosition!=null){\n\t\t\t\n\t\t\tList<String> wumpusPos = ((CustomAgent)this.myAgent).getStenchs();\n\t\t\t\n\t\t\tif(!wumpusPos.isEmpty()) {\n\t\t\t\tList<String> agents =this.agent.getYellowpage().getOtherAgents(this.agent);\n\t\t\t\t\n\t\t\t\tACLMessage msg=new ACLMessage(ACLMessage.INFORM);\n\t\t\t\tmsg.setSender(this.myAgent.getAID());\n\t\t\t\tmsg.setProtocol(\"WumpusPos\");\n\t\t\t\tmsg.setContent(wumpusPos.get(0)+\",\"+myPosition);\n\t\t\t\t\n\t\t\t\tfor(String a:agents) {\n\t\t\t\t\tif(this.agent.getConversationID(a)>=0) {\n\t\t\t\t\t\tif(a!=null) msg.addReceiver(new AID(a,AID.ISLOCALNAME));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.agent.sendMessage(msg);\n\t\t\t\tthis.lastPos=myPosition;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}",
"void send(String message, String uri);",
"public void sendMessage()\r\n {\r\n MessageScreen messageScreen = new MessageScreen(_lastMessageSent);\r\n pushScreen(messageScreen);\r\n }",
"@Override\n public void sendMessage(String from, String to, Message message){\n this.sendingPolicy.sendViaPolicy(from, to, message);\n //local persistence\n updateMessage(message);\n }",
"<T> Promise<Message<T>> send(String address, Short message);",
"protected int route(byte buffer[], int source) {\n \n // Get the message level\n byte messageLevel = getMessageLevel( buffer );\n // get the messageID\n byte messageID[] = getMessageID( buffer );\n \n // Check that the message was not received before\n if( messageIsNew( messageID )){\n \trecordMessageID( messageID );\n }\n else{\n \treturn Constants.SUCCESS;\n }\n \n // If I am not the sender of the message\n // add it to the message queue\n if (messageLevel == Constants.MESSAGE_ALL && source != Constants.SRC_ME){\n // Add message to message queue\n \taddMessageToQueue( buffer );\n }\n else if (messageLevel == Constants.MESSAGE_TARGET){\n \tbyte[] target = getTarget( buffer );\n \tif (target == this.address) {\n \t\t//Add to the message queue\n \t\treturn Constants.SUCCESS; //DO NOT send to all threads.\n \t}\n }\n \n // Send the message to all the threads\n synchronized (this.rwThreads) {\n for (ReadWriteThread aThread : rwThreads) {\n Log.d(TAG, \"Writing to device on thread: \" + aThread.getName());\n aThread.write(buffer);\n }\n }\n \n return Constants.SUCCESS;\n }",
"public void sendMessage(String message) {\n\t\tif (!connectionActive()) {\n\t\t\tthrow new IllegalOperationException(\"Cannot send a message if you are not connected to a server!\\n\");\n\t\t}\n\t\tMessage bctMessage = Message.makeBroadcastMessage(userName, message);\n\t\tsocketConnection.print(bctMessage);\n\t}",
"void sendMessage(String message) {\n writer.println(message);\n }",
"private void sendCommand(int recipient, int action) {\r\n\t\tString command = \"*\" + recipient + \";\" + action + \";\" + \"0\" + \";\" + \"0\"\r\n\t\t\t\t+ \"#\";\r\n\t\tlogger.debug(\"Sende Kommando\");\r\n\t\tcom.sendString(command);\r\n\t\tlogger.debug(\"Senden des Kommandos beendet\");\r\n\t}",
"private void sendMessageToClient(String message) {\n try {\n outputStream.writeObject(message);\n outputStream.flush();\n } catch (IOException e) {\n System.out.println(\"Erreur lors de l'envoi du message au client\");\n }\n }",
"private void sendMessage(String message){\n PostTask pt = new PostTask();\n pt.execute();\n }",
"@Override\n\tpublic void sendMessage(String destinationUID, byte[] message) {\n\t\tbyte[] temp = new byte[ICD.UID_LENGTH + message.length];\n\t\tUtils.hexStringToBytes(destinationUID, temp, 0);\n\t\tSystem.arraycopy(message, 0, temp, ICD.UID_LENGTH, message.length);\n\t\tmessage = temp;\n\t\t\n // Create temporary object\n UdpConnectionThread thread;\n // Synchronize a copy of the ConnectedThread\n synchronized (this) {\n if (getState() != STATE_CONNECTED) return;\n thread = mUdpConnectionThread;\n } \n // Perform the write unsynchronized\n thread.sendMessage(message);\n\t}",
"public void sendMessage(String msg) {\n\t\tplayer.sendMessage(msg);\n\t}",
"protected void sendMessage(Streamable zMessageType, Streamable zMessage) {\n\t\t//Send it..\n\t\ttry {\n\t\t\t//First write the Message type..\n\t\t\tzMessageType.writeDataStream(mOutput);\n\t\t\t\n\t\t\tif(zMessage != null) {\n\t\t\t\t//And now write the message\n\t\t\t\tzMessage.writeDataStream(mOutput);\n\t\t\t}\n\t\t\t\n\t\t\t//Send..\n\t\t\tmOutput.flush();\n\t\t\t\n\t\t}catch(Exception ec) {\n\t\t\t//Show..\n\t\t\tMinimaLogger.log(\"Error sending message : \"+zMessage+\" \"+ec);\n//\t\t\tec.printStackTrace();\n\t\t\t\n\t\t\t//Tell the network Handler\n\t\t\tmNetworkMain.PostMessage(new Message(NetworkHandler.NETWORK_CLIENTERROR).addObject(\"client\", this));\n\t\t}\n\t}",
"public void sendMove (Move m){\n connect();\n try{\n doStream.writeUTF(\"MOVE\");\n doStream.writeUTF(currentUser.getUserName());\n doStream.writeUTF(m.toString());\n } catch (IOException e){\n e.printStackTrace();\n }\n\n disconnect();\n }",
"private void sendCommand(int recipient, int action, int parameter) {\r\n\t\tString command = \"*\" + recipient + \";\" + action + \";\" + parameter + \";\"\r\n\t\t\t\t+ \"0\" + \"#\";\r\n\t\tlogger.debug(\"Sende Kommando\");\r\n\t\tcom.sendString(command);\r\n\t\tlogger.debug(\"Senden des Kommandos beendet\");\r\n\t}",
"void send() throws ImsException;",
"private void sendSMS(String msg) {\n SmsManager smsManager = SmsManager.getDefault();\n for (String destinationAddress : destinationAddresses) {\n smsManager.sendTextMessage(\n destinationAddress,\n null,\n msg,\n null,\n null\n );\n }\n }",
"public void sendMessage(String message)\n\t\t{\n\t\t\twriter.println(message);\n\t\t\twriter.flush();\n\t\t}",
"void sendMessage(ZMQ.Socket socket);",
"public void sendMessage(String message) {\n try {\n bos.write(message);\n bos.newLine();\n bos.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public Transmission sendMessage(NetworkDestination destination,\n MendelMessage message)\n throws IOException {\n\n /* Make sure this destination has been connected. If not, this kicks\n * off the connection process. */\n TransmissionTracker tracker = ensureConnected(destination);\n\n /* Queue the data to be written */\n Transmission trans = null;\n ByteBuffer payload = wrapWithPrefix(message);\n try {\n trans = tracker.queueOutgoingData(payload);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n /* Request for interestOps change. */\n SocketChannel channel = destinationToSocket.get(destination);\n if (channel.isRegistered() && channel.isConnected()) {\n changeInterest.put(channel.keyFor(this.selector),\n SelectionKey.OP_READ | SelectionKey.OP_WRITE);\n }\n\n selector.wakeup();\n return trans;\n }",
"public void sendMessagePacket(String to, String message, Message.Type type) {\n Message msg = new Message(to, type);\n msg.setBody(message);\n xmppConnection.sendPacket(msg);\n// receiveMessage(connection);\n }",
"private void sendMessage(ChatMessage msg) throws IOException {\n try {\n sOutput.writeObject(msg);\n } catch (IOException e) {\n sOutput.close();\n sInput.close();\n e.printStackTrace();\n }\n //sOutput.flush();\n }",
"protected void sendViaUnderlyingTransport(final String message){\n log.debug(\"Message to send {}\", message);\n\n Message.creator(phoneReceiver, phoneSender, message)\n .create();\n }",
"void sendMessage(String msg) {\n\t\ttry {\n\t\t\tout.writeObject(msg);\n\t\t\tout.flush();\n\t\t\tSystem.out.println(\"Sending to server => \" + msg);\n\t\t} catch (IOException ioException) {\n\t\t\tioException.printStackTrace();\n\t\t}\n\t}",
"void send(IMessage message, IChannel channel);",
"public void sendMessage(String message) {\n\t\tsocketTextOut.println(message);\n\t\tsocketTextOut.flush();\n\t}",
"void sendMulticast(String message);",
"public static void sendMessage(String message) throws IOException {\n controllerChannel.basicPublish(\n \"\",\n CONTROLLER_QUEUE_NAME,\n null,\n message.getBytes());\n }",
"protected void sendMessage(String addr, Object[] args) {\n\t\ttry {\n\t\t\t_sender.send(args == null ? new OSCMessage(addr) : new OSCMessage(\n\t\t\t\t\taddr, args));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"<T> Promise<Message<T>> send(String address, Character message);",
"public void send(String msg) throws CcException\n {\n commWriter.send(msg);\n }",
"@Override\n\tpublic void Send(String message) {\n\t\tgetReceiveArea().append(\"我:\"+message + \"\\n\");\n\t\tgetMediator().sendMessage(getName(), message);\n\t}",
"protected void send(Node dst) {\n\t\tnew Message(this, dst).send();\n\t}",
"public void sendToWard(){\r\n\t\t//here is some code that we do not have access to\r\n\t}",
"private void send() {\n Toast.makeText(this, getString(R.string.message_sent, mBody, Contact.byId(mContactId).getName()),\n Toast.LENGTH_LONG).show();\n finish(); // back to DirectShareActivity\n }",
"public void sendMessage(Message message) {\r\n\t\tObjectOutputStream out;\r\n\t\ttry {\r\n\t\t\tout = new ObjectOutputStream(client.getSocket().getOutputStream());\r\n\t\t\tout.writeObject(message);\r\n\t\t\tout.flush();\r\n\t\t} catch (IOException e) {\r\n\t\t\texceptionLogger.writeException(Level.SEVERE,\r\n\t\t\t\t\tMessages.getString(\"Controller.IOExceptionNachricht\")); //$NON-NLS-1$\r\n\t\t}\r\n\t}",
"public void sendMessage(String msg){\n \n try{\n out.writeObject(msg.toString()); \n \n }catch(Exception e){\n e.printStackTrace();\n }\n }",
"private void sendMessage(CommandSender p, String msg) {\n\t\tif (p instanceof Player) {\n\t\t\tif (!((Player) p).isOnline()) return;\n\t\t}\n\t\t_.msg(p, GameMode.Sonic, msg);\n\t}",
"@Override\n public void sendMessage(Message<JsonPayload> message) throws IOException {\n System.out.println(\"Trying to send a message...\");\n outputMessageStream.write(message.getContent().getJson());\n outputMessageStream.newLine();\n outputMessageStream.flush();\n socket.shutdownOutput();\n }",
"public synchronized void send() throws RemoteException {\n\n if (this.temperatureQueue.isEmpty()) {\n //logger.log(Level.INFO, \"Nothing to send, bailing.\");\n return;\n }\n\n for (TemperatureMessage message : this.temperatureQueue) {\n // TODO\n // lookup the node and deliver the message.\n\n TemperatureNode destinationNode = owner.lookupNode(message.getDestination());\n if (destinationNode == null) {\n // Classic comment; this should never happen.\n System.out.println(\"Refusing to send to null node \" + message.getDestination());\n return;\n }\n destinationNode.sendMeasurement(message);\n this.owner.incrementVectorClock();\n //System.out.println(this.owner.ID() + \"Sent a message to \" + destinationNode.ID());\n\n }\n\n temperatureQueue.clear();\n }",
"void sendMessage(String msg) {\n\t\ttry {\n\t\t\tout.writeObject(msg);\n\t\t\tout.flush();\n\t\t\tSystem.out.println(\"Sending to client => \" + msg);\n\t\t} catch (IOException ioException) {\n\t\t\tioException.printStackTrace();\n\t\t}\n\t}",
"public void sendMessage(String message) {\r\n\r\n synchronized (this) {\r\n //count++;\r\n if (mBufferOut != null && !mBufferOut.checkError()) {\r\n Log.i(TAG, \"message: \" + message);\r\n mBufferOut.print(message);\r\n mBufferOut.flush();\r\n }\r\n }\r\n }",
"protected void sendMessage(final String message) {\n\n logger.debug(LOG_TAG + \".sendMessage()\");\n\n // send message to client\n printWriter.println(message);\n\n }",
"public void send(Message message) {\r\n channel.writeAndFlush(message);\r\n }",
"public void sendMessage( MessagingV2 friend )\n {\n if( msg.length() == 0 )\n System.err.println( \"There is no message to send\" );\n else\n {\n System.out.println( user + \", your message has been sent\" );\n friend.receiveMessage( msg, user );\n msg = \"\";\n }\n }",
"public abstract void send(String message) throws IOException;",
"private void sendCommand(int recipient, int action, int parameter,\r\n\t\t\tint options) {\r\n\t\tString command = \"*\" + recipient + \";\" + action + \";\" + parameter + \";\"\r\n\t\t\t\t+ options + \"#\";\r\n\t\tlogger.debug(\"Sende Kommando\");\r\n\t\tcom.sendString(command);\r\n\t\tlogger.debug(\"Senden des Kommandos beendet\");\r\n\r\n\t}",
"public void sendMessageToServer(String message) {\n if (outputStream != null) {\n outputStream.println(message);\n } else {\n System.out.println(\"No OutputStream!\");\n }\n }",
"public void relay(Message msg) throws IOException {\n if (Destination.BROADCAST.name().equals(msg.getDestination())) {\n bradcast(msg);\n return;\n }\n usersConnected.get(msg.getDestination()).sendMessage(msg);\n }",
"public boolean message( Who sender, Message msg ) throws Exception;",
"synchronized void sendMessage(Message message) throws IOException {\n socketOutput.reset();\n socketOutput.writeObject(message);\n socketOutput.flush();\n }",
"public abstract void sendMessage(String message);",
"public synchronized void sendPublicMessageToPlayer(Player recipient, String message) {\n session.sendMessage(gameChannel, recipient.getUserName() + \", \" + message,null);\n }"
] |
[
"0.76843965",
"0.744713",
"0.73067015",
"0.7299582",
"0.7260845",
"0.7153931",
"0.71294373",
"0.7002915",
"0.68835384",
"0.68776566",
"0.68715376",
"0.6858663",
"0.6841837",
"0.68405396",
"0.6794776",
"0.6769302",
"0.6757579",
"0.673262",
"0.6726033",
"0.67232084",
"0.6721928",
"0.6710882",
"0.6695374",
"0.6694284",
"0.6673235",
"0.665079",
"0.6647452",
"0.6647232",
"0.66188335",
"0.6617412",
"0.6608564",
"0.65876836",
"0.65584856",
"0.65548813",
"0.654773",
"0.65373003",
"0.65310603",
"0.6512563",
"0.65051466",
"0.6502947",
"0.650169",
"0.6497969",
"0.6496759",
"0.6467498",
"0.64674395",
"0.64599097",
"0.64584774",
"0.64488333",
"0.6441254",
"0.64387274",
"0.64286005",
"0.6424408",
"0.64230245",
"0.6423023",
"0.64174885",
"0.6416636",
"0.64103633",
"0.6407022",
"0.6402142",
"0.63935673",
"0.63836265",
"0.6383336",
"0.63797456",
"0.6379192",
"0.6373592",
"0.6371777",
"0.6362536",
"0.63515705",
"0.6346076",
"0.63451576",
"0.6339077",
"0.6334629",
"0.6314648",
"0.63072217",
"0.63050723",
"0.63004446",
"0.629794",
"0.62975234",
"0.6297026",
"0.62881005",
"0.6286688",
"0.62862986",
"0.62758493",
"0.62757117",
"0.62750703",
"0.6274189",
"0.6273536",
"0.6273194",
"0.62723523",
"0.6261579",
"0.6261133",
"0.62532496",
"0.62458843",
"0.62454283",
"0.6242593",
"0.62345296",
"0.62338865",
"0.62263995",
"0.62253165",
"0.62246066"
] |
0.688831
|
8
|
When something goes wrong Close the Input/Output streams and disconnect not much to do in the catch clause
|
public void disconnect() {
try {
if(sInput != null) sInput.close();
}
catch(Exception e) {} // not much else I can do
try {
if(sOutput != null) sOutput.close();
}
catch(Exception e) {} // not much else I can do
try{
if(socket != null) socket.close();
}
catch(Exception e) {} // not much else I can do
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void close()\r\n {\r\n try \r\n {\r\n if(out != null) out.close();\r\n }\r\n catch(Exception e) {\r\n \r\n }\r\n try \r\n {\r\n if(in != null) in.close();\r\n }\r\n\r\n catch(Exception e) {\r\n \r\n };\r\n try \r\n {\r\n if(socket != null) socket.close();\r\n }\r\n catch (Exception e) {\r\n \r\n }\r\n }",
"private void disconnect() {\n\n if (inStream != null) {\n try {inStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (outStream != null) {\n try {outStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (socket != null) {\n try {socket.close();} catch (Exception e) { e.printStackTrace(); }\n }\n }",
"public void disconnect() {\n\t\ttry { \n\t\t\tif(loginInput != null) loginInput.close();\n\t\t\tif(registerInput != null) registerInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(loginOutput != null) loginOutput.close();\n\t\t\tif(registerOutput != null) registerOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(loginSocket != null) loginSocket.close();\n\t\t\tif(registerSocket != null) registerSocket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\t\tcg.connectionFailed();\n\t\t\t\n }",
"private void closeOutput() throws Exception \n { Close the fifo file...\n //\n data.fifoStream.close();\n data.fifoStream=null;\n \n // wait for the INSERT statement to finish and check for any\n // error and/or warning...\n // \n data.sqlRunner.join();\n SqlRunner sqlRunner = data.sqlRunner;\n data.sqlRunner = null;\n sqlRunner.checkExcn();\n \n //wait for UNIX/Linux Process to be finished\n data.sqlProcess.waitFor();\n \n data.sqlOutputStream.close();\n data.sqlOutputStream=null;\n }",
"private void CloseInputAndOutputStreams() {\n if (mOut != null)\n mOut.close();\n\n if (mIn != null)\n try {\n mIn.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"private void close()\n {\n try\n {\n if (outputStream != null)\n {\n outputStream.close();\n }\n } catch (Exception e)\n {\n\n }\n try\n {\n if (inputStream != null)\n {\n inputStream.close();\n }\n } catch (Exception e)\n {\n\n }\n try\n {\n if (socket != null)\n {\n socket.close();\n }\n } catch (Exception e)\n {\n\n }\n }",
"private void closeStreams() {\n try {\n windowForCommunication.append(\"Closing connection now.\" + \"\\n\");\n sendMessageToClient(\"ENDING CHAT: Closing connection now\");\n input.close();\n output.close();\n serverSocket.close();\n }\n catch(IOException e) {\n System.out.println(e);\n windowForCommunication.append(\"Uh oh. Seems like there was a communication error....!\");\n }\n }",
"private void disconnect() {\n\t\t\n\t\ttry { \n\t\t\tif(sInput != null) sInput.close();\n\t\t} catch(Exception e) {} \n\t\t\n\t\t\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t} catch(Exception e) {} \n\t\t\n\t\t\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t} catch(Exception e) {}\n\t\t\n // informa ao Gui\n if(clientGui != null) clientGui.connectionFailed();\n\t\t\t\n\t}",
"private void disconnect() {\n\t\ttry { \n\t\t\tif(sInput != null) sInput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\t\n\t\t// Notify the GUI\n \n\t\tif(cg != null)\n\t\t\tcg.connectionFailed();\n\t\t\t\n\t}",
"private void gracefullyShutdown() {\n try {\n this.inputStream.close();\n this.outputStream.close();\n } catch (IOException e) {\n // If there is an exception then there's nothing to be done.\n }\n }",
"private void close() {\n\t\ttry {\n\t\t\tsendCommand(\"end\\n\");\n\t\t\tout.close();\n\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (MossException e) {\n\t\t} catch (IOException e2) {\n\t\t} finally {\n\t\t\tcurrentStage = Stage.DISCONNECTED;\n\t\t}\n\n\t}",
"void close() {\n try {\n socketInput.close();\n socketOutput.close();\n this.connected = false;\n } catch (IOException e) {\n throw new UnexpectedBehaviourException();\n }\n }",
"private void close() {\r\n try {\r\n if (m_in != null) {\r\n m_in.close();\r\n }\r\n if (m_out != null) {\r\n m_out.close();\r\n }\r\n if (m_socket != null) {\r\n m_socket.close();\r\n }\r\n } catch (IOException e) {\r\n throw new WrappedRuntimeException(e);\r\n }\r\n }",
"private void ensureOpen() throws IOException {\n if (out == null) {\n throw new IOException(\n/* #ifdef VERBOSE_EXCEPTIONS */\n/// skipped \"Stream closed\"\n/* #endif */\n );\n }\n }",
"public void closeConnection() {\n try {\n stdIn.close();\n socketIn.close();\n socketOut.close();\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n }",
"private void closeConnection() {\n\t\t\tSystem.out.println(\"\\nTerminating connection \" + myConID + \"\\n\");\n\t\t\ttry {\n\t\t\t\toutput.close(); // close output stream\n\t\t\t\tinput.close(); // close input stream\n\t\t\t\tconnection.close(); // close socket\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"Exception occured in closing connection\"\n\t\t\t\t\t\t+ ioException);\n\t\t\t}\n\t\t}",
"@Override\r\n\tpublic void disconnect() throws Exception\r\n\t\t{\r\n\t\treader.close();\r\n\t\toutputStream.close();\r\n\t\tport.close();\r\n\t\t}",
"public static void closeIO()\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tinStream.close();\r\n\t\t\toutStream.close();\r\n\t\t}\r\n\t\tcatch(IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void cerrarRecibir() {\n \t try {\r\n \t \tout.flush(); \r\n \t in.close();\r\n \t out.close(); \r\n \t }catch(Exception e) {}\r\n\t}",
"public synchronized void closeAllSocket()\n {\n \ttry {\n \t\toutput.close();\n \t}\n \tcatch(Exception e)\n \t{\n \t\terror(e);\n \t}\t\n }",
"@Override\n public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) {\n log.error(\"Input Stream {} : {}\", name, e.getCause());\n Channel ch = e.getChannel();\n ch.close();\n channelAtomicReference.set(null);\n }",
"@Override\n public void disconnect() {\n if(!isConnected)\n return;\n\n if(out!=null)\n out.close();\n\n if(in!=null) {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"protected void cleanup() {\n try {\n if (_in != null) {\n _in.close();\n _in = null;\n }\n if (_out != null) {\n _out.close();\n _out = null;\n }\n if (_socket != null) {\n _socket.close();\n _socket = null;\n }\n } catch (java.io.IOException e) {\n }\n }",
"protected void cleanExit() throws IOException, InterruptedException {\n if (!socket.isClosed()) {\n serverInput.close();\n clientOutput.close();\n socket.close();\n if (pingThread.isAlive())\n pingThread.join();\n } else {\n view.showError(\"Match terminated due to server disconnection\");\n }\n }",
"private void close() {\n\t\t\n//\t\tif (handlingEvent) { return; } // hopefully this is never used\n\t\t\n\t\tif (serialPort != null) {\n\t\t\tUtil.debug(\"close port: \" + serialPort.getName() + \" baud: \" + serialPort.getBaudRate(), this);\n\t\t\t// serialPort.removeEventListener();\n\t\t\tserialPort.close();\n\t\t\tserialPort = null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tif (inputStream != null) inputStream.close();\n\t\t} catch (Exception e) {\n\t\t\tUtil.log(\"input stream close():\" + e.getMessage(), this);\n\t\t}\n\t\ttry {\n\t\t\tif (outputStream != null) outputStream.close();\n\t\t} catch (Exception e) {\n\t\t\tUtil.log(\"output stream close():\" + e.getMessage(), this);\n\t\t}\n\t\t\n\t\tbuffer = null;\n\t\t// Util.delay(TIMEOUT);\n\n\t}",
"public void close() {\n try {\n inputStream.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the socket's input stream!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n try {\n outputStream.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the socket's output stream!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n try {\n commSocket.close();\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not close the communication socket!\");\n e.printStackTrace();\n System.exit(1);\n }\n }",
"@Override\n public synchronized void close() throws IOException {\n disconnect(false);\n }",
"@Override\n public void close() throws IOException {\n opened = false;\n if (socket != null) {\n Utils.closeSilent(dis);\n Utils.closeSilent(dos);\n socket.close();\n }\n }",
"public void shutdown() {\n try {\n this.writer.close();\n } catch (IOException e) {\n log.warn(i18n.getString(\"problemCloseOutput\", e), e);\n }\n }",
"final private void closeAll() throws IOException {\n // This method is final since version 2.2\n\n try {\n // Close the socket\n if (clientSocket != null)\n clientSocket.close();\n\n // Close the output stream\n if (output != null)\n output.close();\n\n // Close the input stream\n if (input != null)\n input.close();\n } finally {\n // Set the streams and the sockets to NULL no matter what\n // Doing so allows, but does not require, any finalizers\n // of these objects to reclaim system resources if and\n // when they are garbage collected.\n output = null;\n input = null;\n clientSocket = null;\n }\n }",
"private void close(){\n try {\n socket.close();\n objOut.close();\n line.close();\n audioInputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void dispose() {\n resetInputConnection();\n }",
"public void close() {\n if (closed) {\n return;\n }\n try {\n disconnect();\n } catch (Exception e) {\n throw new IOError(e);\n }\n closed = true;\n }",
"@Override\n public void cleanup() throws Exception {\n outputStream.close();\n }",
"private void closeEverything() {\n\t \t// free up I/O streams and close the socket connection\n \ttry {\n \tif (in != null)\n \t\tin.close();\n \t} catch (Exception ignored) {}\n \ttry {\n \tif (out != null)\n \t\tout.close();\n \t} catch (Exception ignored) {}\n \ttry {\n \tif (out != null)\n \t\tout.close();\n \t} catch (Exception ignored) {}\n \ttry {\n \tif (in != null)\n \t\tin.close();\n \t} catch (Exception ignored) {}\n \ttry {\n \t\tif (inToRobot != null){\n \t\t\tinToRobot.close();\n \t\t}\n \t} catch (Exception ignored) {}\n \ttry {\n \t\tif (outFromRobot != null){\n \t\t\toutFromRobot.close();\n \t\t}\n \t} catch (Exception ignored) {}\n\t}",
"public void disconnect()\t{\n try {\n doStream.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n try {\n diStream.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n try {\n sServidor.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n }",
"@Override\n\tpublic void close() {\n\t\tfinal Socket input = getSocket();\n\n\t\tif (input != null) {\n\t\t\tif (!input.isClosed()) {\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (final IOException e) {\n\t\t\t\t\t// we cannot do anything\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected void onEndOfStream()\n {\n synchronized (f_aBuffSingleInbound)\n {\n synchronized (f_aBuffSingleOutbound)\n {\n if (f_engine.getSession().isValid())\n {\n try\n {\n f_engine.closeInbound();\n closeOutbound(false);\n }\n catch (SSLException e)\n {\n // mimicking SSLSocket\n }\n catch (IOException ignored)\n {\n // won't occur\n }\n }\n }\n }\n }",
"private void close() {\n\t\tif (socketChannel != null) {\n\t\t\ttry {\n\t\t\t\tif (in != null) {\n\t\t\t\t\tin.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.log(Level.SEVERE, \"Close in stream \", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (out != null) {\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.log(Level.SEVERE, \"Close out stream \", e);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tsocketChannel.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tlog.log(Level.SEVERE, \"Can't close socket channel\", ex);\n\t\t\t}\n\n\t\t}\n\t\t//Defender.stopConnection();\n\t}",
"public void close(){\r\n\t\tif(managedOutputSocket != null) managedOutputSocket.close();\r\n\t\tmanagedOutputSocket = null;\r\n\t\tsuper.close();\r\n\t}",
"private void close() {\n // try to close the connection\n try {\n if (sOutput != null)\n sOutput.close();\n } catch(Exception e) {\n //handle exception\n }\n try {\n if (sInput != null)\n sInput.close();\n } catch(Exception e) {\n //handle exception\n }\n try {\n if (socket != null)\n socket.close();\n } catch (Exception e) {\n //handle exception\n }\n //save the chatlist array\n chatSave();\n }",
"void close()\n {\n DisconnectInfo disconnectInfo = connection.getDisconnectInfo();\n if (disconnectInfo == null)\n {\n disconnectInfo = connection.setDisconnectInfo(\n new DisconnectInfo(connection, DisconnectType.UNKNOWN, null, null));\n }\n\n // Determine if this connection was closed by a finalizer.\n final boolean closedByFinalizer =\n ((disconnectInfo.getType() == DisconnectType.CLOSED_BY_FINALIZER) &&\n socket.isConnected());\n\n\n // Make sure that the connection reader is no longer running.\n try\n {\n connectionReader.close(false);\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n outputStream.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n socket.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n if (saslClient != null)\n {\n try\n {\n saslClient.dispose();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n finally\n {\n saslClient = null;\n }\n }\n\n debugDisconnect(host, port, connection, disconnectInfo.getType(),\n disconnectInfo.getMessage(), disconnectInfo.getCause());\n if (closedByFinalizer && debugEnabled(DebugType.LDAP))\n {\n debug(Level.WARNING, DebugType.LDAP,\n \"Connection closed by LDAP SDK finalizer: \" + toString());\n }\n disconnectInfo.notifyDisconnectHandler();\n }",
"public void disconnect() {\n\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n\n if (outputStream != null) {\n outputStream.close();\n }\n\n if (socket != null ) {\n socket.close();\n connected = socket.isClosed();\n }\n } catch (IOException e) {\n logger.error(\"S7Client error [disconnect]: \" + e);\n }\n }",
"protected void shutdownOutput() throws IOException\n {\n if (fd == null) {\n throw new IOException(\"socket not created\");\n }\n\n try {\n Os.shutdown(fd, OsConstants.SHUT_WR);\n } catch (ErrnoException e) {\n throw e.rethrowAsIOException();\n }\n }",
"void close_Connection(){\n\t\ttry{\n\t\t\toutfile.close();\n\t\t\tcon.close();\n\t\t\tSystem.out.println(\"MYSQL is disconnected\");\n\t\t//Catch SQL exception\t\t\n\t\t}catch(SQLException sqle){ \n\t\t\tsqle.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t//Catch I/O exception\t\n\t\tcatch(IOException ioe){ \n\t\t\tioe.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\t\t\n\t}",
"protected boolean closeOnReadError(Throwable cause) {\n/* 606 */ if (cause instanceof SocketException) {\n/* 607 */ return false;\n/* */ }\n/* 609 */ return super.closeOnReadError(cause);\n/* */ }",
"public void close() throws Exception{\r\n\tout.close();\r\n}",
"@Override\n public void close() {\n try {\n stdIn.write(\"exit;\");\n stdIn.flush();\n } catch (IOException ioe) {\n // ignore\n } finally {\n silentlyCloseStdIn();\n }\n\n stdOut.interrupt();\n stdErr.interrupt();\n shell.destroy();\n }",
"@Override\n public synchronized void forceClose() throws IOException {\n disconnect(true);\n }",
"@Override\n public void close() throws IOException\n {\n try\n {\n fAVMRemote.closeInputHandle(fTicketHolder.getTicket(), fHandle);\n }\n catch (Exception e)\n {\n throw new IOException(\"Remote Error closing input stream.\");\n }\n }",
"private void closeStreams() {\n try {\n System.out.println(\"Closing streams and terminating thread.\");\n running = false;\n outputStream.close();\n inputStream.close();\n clientSocket.close();\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n }",
"@Override\n public void onClose() {\n logger.info(\"Closing {} streams for file {}\", this.getTransferType(), this.getResource().file);\n try {\n if (inputChannel != null) {\n inputChannel.close();\n inputChannel = null;\n inputBuffer.clear();\n inputBuffer = null;\n }\n if (outputStream != null) {\n outputStream.close();\n outputStream = null;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void close() throws IOException {\n input.close();\n }",
"public void close() {\n try {\n socket.close();\n outputStream.close();\n inputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void close(){\n\t\tlog.debug(\"[SC] Close called\", 5);\n\t\tif(socket!=null){\n\t\t\tlog.debug(\"[SC] Closing socket\", 4);\n\t\t\ttry {\n\t\t\t\tThread.sleep(10);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t//Silly impatient thread\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tout.close();\n\t\t\t\tin.close();\n\t\t\t\tsocket.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t//we're going to close it anyway\n\t\t\t}\n\t\t\tsocket = null;\n\t\t\trun = false;\n\t\t}\n\t}",
"protected void shutdownInput() throws IOException\n {\n if (fd == null) {\n throw new IOException(\"socket not created\");\n }\n\n try {\n Os.shutdown(fd, OsConstants.SHUT_RD);\n } catch (ErrnoException e) {\n throw e.rethrowAsIOException();\n }\n }",
"public void close(){\n\t\ttry{\n\t\t\tflush();\n\t\t\tse.close();\n\t\t}catch(IOException ioex){\n\t\t\tfailures = true;\n\t\t}\n\t}",
"public void \n close() \n throws PipeException \n {\n in = -1;\n closedByReader = true;\n }",
"public void cancelStdInStream() {\n\t\tstdInLatch.countDown();\n\t\tif(pipeOut!=null) {\n\t\t\tlog.debug(\"Closing PipeOut\");\n\t\t\ttry { pipeOut.flush(); } catch (Exception e) {}\n\t\t\ttry { pipeOut.close(); } catch (Exception e) {}\n\t\t\tlog.debug(\"Closed PipeOut\");\n\t\t}\n\t\tpipeOut = null;\n\t\tif(pipeIn!=null) try { \n\t\t\tlog.debug(\"Closing PipeIn\");\n\t\t\tpipeIn.close(); \n\t\t\tlog.debug(\"Closed PipeIn\");\n\t\t} catch (Exception e) {}\n\t\tpipeIn = null;\t\t\n\t}",
"protected final void disconnect() {\n\t\trunning = false;\n\t\ttry {\n\t\t\tif (out != null)\n\t\t\t\tout.close();\n\t\t\tif (in != null)\n\t\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {e.printStackTrace();}\n\t}",
"@Override\n public void close() throws IOException {\n inputMessageStream.close();\n outputMessageStream.close();\n socket.close();\n }",
"private void cerrarEnviar() {\n \t try {\r\n \t bis.close();\r\n bos.close();\r\n \t }catch(Exception e ) {}\r\n\t}",
"protected void doClose() throws Exception {\n/* */ try {\n/* 693 */ super.doClose();\n/* */ } finally {\n/* 695 */ safeClosePipe(this.pipeIn);\n/* 696 */ safeClosePipe(this.pipeOut);\n/* 697 */ clearSpliceQueue();\n/* */ } \n/* */ }",
"@Override\n public void close() {\n for ( TunnelConnection tunnelConnection : tunnelConnections ) {\n IOUtils.closeAndLogException( tunnelConnection );\n }\n }",
"private void fermerConnexion() throws IOException {\n this.reader.close();\n this.serverSocket.close();\n this.coTerminee = true ;\n }",
"protected void close() {\n\t\tif(sOutput != null) {\n\t\t\ttry {\n\t\t\t\tsOutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"error closing output stream\");\n\t\t\t}\n\t\t\t\n\t\t\tsOutput = null;\n\t\t}\n\t}",
"public void close()\n\t{\n\t\ttry { stream.close(); } catch(Exception ex1) {}\n\t\ttry { channel.close(); } catch(Exception ex2) {}\n\t}",
"protected HttpRequest closeOutput() throws IOException {\n block6: {\n if (this.output == null) {\n return this;\n }\n if (this.multipart) {\n this.output.write(\"\\r\\n--00content0boundary00--\\r\\n\");\n }\n if (this.ignoreCloseExceptions) {\n this.output.close();\n ** GOTO lbl13\n } else {\n this.output.close();\n }\n break block6;\n catch (IOException var1_1) {}\n }\n this.output = null;\n return this;\n }",
"protected void closeNotSuccessful() {\n\t\tthis.writer.deblockQueue();\n\t}",
"public static void closeResources() {\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n try {\n if (inputStreamReader != null) {\n inputStreamReader.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n try {\n if (reader != null) {\n reader.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n try {\n if (writer != null) {\n writer.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n try {\n if (outputStream != null) {\n outputStream.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n try {\n if (outputStreamWriter != null) {\n outputStreamWriter.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n try {\n if (writer != null) {\n writer.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n }",
"private void close() {\n try {\n if (reader != null) {\n this.reader.close();\n }\n if (writer != null) {\n this.writer.close();\n }\n }\n catch (IOException e) {\n log.error(e);\n log.debug(Constants.STREAM_IS_CLOSED);\n }\n }",
"private void closeDataConnection() {\n try {\n dataOutWriter.close();\n dataConnection.close();\n if (dataSocket != null) {\n dataSocket.close();\n }\n\n debugOutput(\"Data connection was closed\");\n } catch (IOException e) {\n debugOutput(\"Could not close data connection\");\n e.printStackTrace();\n }\n dataOutWriter = null;\n dataConnection = null;\n dataSocket = null;\n }",
"public void close() {\n try { out.flush(); } catch (Exception e) {}; // just to be sure\n \n cleanup();\n }",
"private void disconnect() {\n if (readerThread != null)\n readerThread.kill();\n if (writerThread != null)\n writerThread.kill();\n if (nonblockReader != null) {\n nonblockReader.close();\n }\n isConnected = false;\n }",
"public boolean closeRead() throws Exception;",
"@Override\n public void close() throws IOException\n {\n InputStream in = _inputSource;\n\n if (in != null) {\n _inputSource = null;\n if (_autoClose) {\n in.close();\n }\n }\n freeBuffers();\n }",
"public void quit()throws IOException {\n if(s.isConnected()) {\n reader.close();\n writer.close();\n s.close();\n System.out.println(\"Disconnected from the server.\");\n }\n }",
"public void closeAll() throws IOException {\r\n\t\ttry {\r\n\t\t\t// Close the socket\r\n\t\t\tif (this.clientSocket != null)\r\n\t\t\t\tthis.clientSocket.close();\r\n\t\t\t// Close the output stream\r\n\t\t\tif (this.out != null)\r\n\t\t\t\tthis.out.close();\r\n\t\t\t// Close the input stream\r\n\t\t\tif (this.in != null)\r\n\t\t\t\tthis.in.close();\r\n\t\t} finally {\r\n\t\t\t// Set the streams and the sockets to NULL no matter what.\r\n\t\t\tthis.in = null;\r\n\t\t\tthis.in = null;\r\n\t\t\tthis.clientSocket = null;\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void closeConnection() {\n try {\n dis.close();\n dos.close();\n socket.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic void disconnect() throws IOException {\n\t\tif (this.mode.equals(\"r\")) {\r\n\t\t\tthis.scanner.close();\r\n\t\t} else {\r\n\t\t\tthis.writer.close();\r\n\t\t}\r\n\t}",
"public void close() throws IOException {\n\t\tistream.close();\n\t\tostream.close();\n\t\tsocket.close();\n\t}",
"public void disconnect() {\n\t\tif (sock != null) {\n\t\t\ttry {\n\t\t\t\tsock.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t} finally {\n\t\t\t\tsock = null;\n\t\t\t}\n\t\t}\n\t\toutStream.reset();\n\t\tdisconnected();\n\t}",
"private void close() {\n\t\ttry {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlog(e);\n\t\t} finally {\n\t\t\tisConnected = false;\n\t\t}\n\t}",
"public synchronized void close() {\n if (serialPort != null) {\n try {\n output.close();\n input.close();\n serialPort.removeEventListener();\n serialPort.close();\n connected = false;\n if (log != null) {\n log.close();\n log = null;\n }\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n\n DisconnectedRS232Event event = new DisconnectedRS232Event();\n RS232ConnectionAPI.getInstance().notifyObservers(event);\n\n }\n }",
"void close(){\n try{\n debugWriter.write(\"quit\\n\");\n debugWriter.flush();\n Thread.sleep(100);\n debugWriter.write(\"yes\\n\");\n debugWriter.flush();\n Thread.sleep(100);\n debugWriter.close();\n debugReader.kill();\n debugReader.interrupt();\n debugReader.kill();\n debugger.destroy();\n }catch(Exception e){\n System.out.println(\"Close exception\");\n //Eat it\n }\n }",
"@Override\n\t\t\tpublic void disconnected() {\n\t\t\t\ttoast(\"IOIO disconnected\");\n\t\t\t}",
"protected final void doShutdownOutput() throws Exception {\n/* 556 */ this.socket.shutdown(false, true);\n/* */ }",
"public void closeStream() {\n output.close();\n input.close();\n }",
"protected void close() {\r\n\t\ttry {\r\n\t\t\t_asciiIn.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"Error ocurred while closing file \" + _directory + _filename + _filetype + \":\" + e.getMessage());\r\n\t\t} // catch\r\n\t}",
"@Override\n protected boolean closeOnReadError(Throwable cause) {\n if (cause instanceof SocketException) {\n return false;\n }\n return super.closeOnReadError(cause);\n }",
"private void closeConnection() {\r\n try {\r\n socket.close();\r\n } catch (IOException ex) {\r\n // Ex on close\r\n }\r\n }",
"public void cancel() {\n try {mmInStream.close();\n mmOutStream.close();\n mmSocket.close();\n } catch (IOException e) { }\n }",
"void disconnect() throws IOException;",
"public void disconnect()\r\n\t{\r\n\t\ttry {\r\n\t\t\tconnection_.close();\r\n\t\t} catch (IOException e) {} // How can closing a connection fail?\r\n\t\t\r\n\t}",
"public void close() throws CcException\n {\n if (serialPort != null)\n {\n try\n {\n // Close I/O streams\n in.close();\n out.close();\n }\n catch (IOException ex)\n {\n throw new CcException(\"Unable to close I/O streams\\n\" + ex.getMessage());\n }\n\n // Close serialport\n serialPort.close();\n }\n }",
"public void close() {\n\t\ttry {\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void closeConn() {\n try {\n if (writer != null) {\n writer.close();\n }\n if (sockoutOs != null) {\n sockoutOs.close();\n }\n if (null != socket || !socket.isClosed()) {\n socket.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n }",
"public synchronized void close(){\n if(connected){\n try{\n socket.close();\n streamIn.close();\n streamOut.close();\n System.out.println(clientID+\": close: socket\"); \n }catch(IOException ioe){\n System.out.println(clientID+\": close: IOException:\"+ioe);\n }\n }else if(isHost){\n try{\n hostSocket.close();\n System.out.println(clientID+\": close: hostSocket\"); \n }catch(IOException ioe){\n System.out.println(clientID+\": close: IOException:\"+ioe);\n }\n }\n }",
"public void closeUp(){\n\t\ttry{\n\t\t\tif (socket!=null){\n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t\tif (input!=null){\n\t\t\t\tinput.close();\n\t\t\t}\n\t\t\tif (output!=null){\n\t\t\t\toutput.close();\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tmainDialog.dispose();\n\t\tmainDialog.dispose();\n\t\tSystem.exit(0);\n\t}",
"protected void close()\n {\n out.close();\n }"
] |
[
"0.69861495",
"0.69168425",
"0.6874262",
"0.6816552",
"0.6803257",
"0.67782015",
"0.67631066",
"0.6615842",
"0.6597322",
"0.6576875",
"0.65406895",
"0.65375805",
"0.6528358",
"0.6521107",
"0.64252096",
"0.64215755",
"0.63688964",
"0.63572574",
"0.6353259",
"0.6349115",
"0.63337433",
"0.6332238",
"0.6311907",
"0.6284977",
"0.62741554",
"0.6242555",
"0.62137103",
"0.6177542",
"0.6167869",
"0.61501336",
"0.61460835",
"0.61347425",
"0.61345834",
"0.6116466",
"0.610942",
"0.6105827",
"0.60936177",
"0.6091779",
"0.6083419",
"0.6082207",
"0.60669136",
"0.60577863",
"0.6050605",
"0.6050076",
"0.60383236",
"0.6034417",
"0.6026401",
"0.6022115",
"0.6009086",
"0.60075045",
"0.5994526",
"0.59820986",
"0.59724367",
"0.59657604",
"0.59554845",
"0.59510857",
"0.59407985",
"0.5928794",
"0.5918181",
"0.59159875",
"0.5903217",
"0.58867544",
"0.58825976",
"0.58813226",
"0.5877643",
"0.5877189",
"0.58754367",
"0.5863931",
"0.58616126",
"0.5852264",
"0.58510065",
"0.5848957",
"0.584419",
"0.5815884",
"0.5814695",
"0.57989424",
"0.57924646",
"0.5786813",
"0.5781765",
"0.5779647",
"0.57736826",
"0.57688147",
"0.57663417",
"0.57620996",
"0.5756927",
"0.57491577",
"0.5748718",
"0.57477355",
"0.5747151",
"0.5743685",
"0.57428926",
"0.5739793",
"0.5739017",
"0.5737375",
"0.57304645",
"0.5729385",
"0.57235575",
"0.57172114",
"0.57143617",
"0.57111096"
] |
0.7084255
|
0
|
define a bean for ViewResolver
|
@Bean
public ViewResolver viewResolver() {
InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
viewResolver.setPrefix("/WEB-INF/view/");
viewResolver.setSuffix(".jsp");
return viewResolver;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Bean\n\tpublic ViewResolver viewResolver() {\n\t\tInternalResourceViewResolver resolver = new InternalResourceViewResolver();\n\t\tresolver.setPrefix(\"/WEB-INF/views/\");\n\t\tresolver.setSuffix(\".jsp\");\n\t\tresolver.setExposeContextBeansAsAttributes(true);\n\t\treturn resolver;\n\t}",
"@Bean\n\tpublic ViewResolver viewResolver() {\n\t\tInternalResourceViewResolver view = new InternalResourceViewResolver();\n\t\t\n\t\tview.setPrefix(\"/WEB-INF/view/\");\n\t\tview.setSuffix(\".jsp\");\n\t\t\n\t\treturn view;\n\t}",
"@Bean\n\tpublic ViewResolver viewResolver() {\n\t\tInternalResourceViewResolver viewResolver=new InternalResourceViewResolver();\n\t\tviewResolver.setPrefix(\"/WEB-INF/view/\");\n\t\tviewResolver.setSuffix(\".jsp\");\n\t\treturn viewResolver;\n\t}",
"@Bean\n\tpublic InternalResourceViewResolver viewResolver(){\n\t\tInternalResourceViewResolver viewResolver=new InternalResourceViewResolver();\n\t\tviewResolver.setPrefix(\"/WEB-INF/views/\");\n\t\tviewResolver.setSuffix(\".jsp\");\n\t\treturn viewResolver;\n\t}",
"@Bean\n public ViewResolver viewResolver() {\n\n InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();\n\n viewResolver.setPrefix(\"/WEB-INF/view/\");\n viewResolver.setSuffix(\".jsp\");\n\n return viewResolver;\n }",
"@Bean\r\n\tpublic ViewResolver viewResolver() {\r\n\t\tInternalResourceViewResolver viewResolver =\r\n\t\t\t\tnew InternalResourceViewResolver();\r\n\t\tviewResolver.setPrefix(\"/WEB-INF/views/\");\r\n\t\tviewResolver.setSuffix(\".jsp\");\r\n\t\t\r\n\t\treturn viewResolver;\r\n\t}",
"@Bean\r\n public ViewResolver viewResolver() {\r\n InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();\r\n viewResolver.setViewClass(JstlView.class);\r\n viewResolver.setPrefix(\"/WEB-INF/views/\");\r\n viewResolver.setSuffix(\".jsp\");\r\n\r\n return viewResolver;\r\n }",
"@Bean\n public ViewResolver viewResolver() {\n InternalResourceViewResolver bean = new InternalResourceViewResolver();\n bean.setPrefix(\"/WEB-INF/jsp/\");\n bean.setSuffix(\".jsp\");\n bean.setOrder(1);\n return bean;\n }",
"@Bean\n public ViewResolver viewResolver() {\n InternalResourceViewResolver internalResourceViewResolver = new InternalResourceViewResolver();\n internalResourceViewResolver.setPrefix(\"/WEB-INF/jsp/\");\n internalResourceViewResolver.setSuffix(\".jsp\");\n return internalResourceViewResolver;\n }",
"void setViewResolver(ViewResolver resolver);",
"@Bean\n public ViewResolver jspViewResolver() {\n InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();\n viewResolver.setViewClass(JstlView.class);\n viewResolver.setPrefix(\"/WEB-INF/views/\");\n viewResolver.setSuffix(\".jsp\");\n return viewResolver;\n }",
"public interface ViewManagerResolver {\n ViewManager getViewManager(String str);\n\n List<String> getViewManagerNames();\n }",
"@Override\n public void configureViewResolvers(ViewResolverRegistry registry) {\n \n InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();\n viewResolver.setViewClass(JstlView.class);\n viewResolver.setPrefix(\"/WEB-INF/\");\n viewResolver.setSuffix(\".jsp\");\n registry.viewResolver(viewResolver);\n }",
"@Override\n\tpublic ModelAndView resolverView(PageContainer pContainer) throws Exception{\n\t\treturn null;\n\t}",
"@Bean\n public ViewResolver contentNegotiatingViewResolver(\n ContentNegotiationManager manager) {\n ViewResolver beanNameViewResolver = new BeanNameViewResolver();\n List<ViewResolver> resolvers = Lists.newArrayList(beanNameViewResolver);\n\n ContentNegotiatingViewResolver resolver = new ContentNegotiatingViewResolver();\n resolver.setViewResolvers(resolvers);\n resolver.setContentNegotiationManager(manager);\n return resolver;\n }",
"public interface IViewGetter<T,V extends View> {\n V createView(Context context);\n void initView(V view, T bean);\n}",
"private void registerViews() {\n\t}",
"@Override\n public void configureViewResolvers(ViewResolverRegistry registry) {\n TilesViewResolver viewResolver = new TilesViewResolver();\n registry.viewResolver(viewResolver);\n }",
"public void configure(T aView) { }",
"@Bean\n public ViewResolver jsonViewResolver() {\n return new JsonViewResolver();\n }",
"public interface ViewDefinitionService {\n \n /**\n * Return the view definition matching the given plugin's identifier and view's name. The method checks if user has sufficient\n * permissions.\n * \n * @param pluginIdentifier\n * plugin's identifier\n * @param viewName\n * view's name\n * @return the view definition, null if not found\n */\n @PreAuthorize(\"hasRole('ROLE_ADMIN') or (#pluginIdentifier == 'dictionaries') or (#pluginIdentifier == 'products' \"\n + \"and (#viewName != 'orders' and #viewName != 'order' or hasRole('ROLE_SUPERVISOR'))) or \"\n + \"(#pluginIdentifier == 'basic') or \"\n + \"(#pluginIdentifier == 'users' and #viewName == 'profile') or (#pluginIdentifier == 'core' and #viewName == 'systemInfo')\")\n ViewDefinition get(String pluginIdentifier, String viewName);\n \n /**\n * Return the view definition matching the given plugin's identifier and view's name.\n * \n * @param pluginIdentifier\n * plugin's identifier\n * @param viewName\n * view's name\n * @return the view definition, null if not found\n */\n ViewDefinition getWithoutSession(String pluginIdentifier, String viewName);\n \n /**\n * Return all defined view definitions.\n * \n * @return the data definitions\n */\n List<ViewDefinition> list();\n \n /**\n * Return all view definitions which can be displayed in menu.\n * \n * @return the data definitions\n */\n List<ViewDefinition> listForMenu();\n \n /**\n * Save the data definition.\n * \n * @param viewDefinition\n * view definition\n */\n void save(ViewDefinition viewDefinition);\n \n /**\n * Delete the data definition.\n * \n * @param viewDefinition\n * view definition\n */\n void delete(ViewDefinition viewDefinition);\n \n }",
"public interface ModelViewFactory {\r\n\r\n /**\r\n * Get {@link ModelAndView} of given {@link ModelViewType}.\r\n * \r\n * @param type {@link ModelViewType} - type of the view\r\n * @param voucher {@link Voucher} - voucher is used before (submit form) and\r\n * after submit (status form).\r\n * @return {@link ModelAndView}\r\n */\r\n ModelAndView getModelView(ModelViewType type, Voucher voucher);\r\n}",
"@Override\n public void configureViewResolvers(ViewResolverRegistry registry) {\n ThymeleafViewResolver resolver = new ThymeleafViewResolver();\n resolver.setTemplateEngine(templateEngine());\n registry.viewResolver(resolver);\n }",
"@View(navigation = NavigationMode.REDIRECT, viewParams = ViewParameterMode.INCLUDE)\n@Folder(name = \"pages/\")\npublic interface WebRoot extends ViewConfig {\n\n\t@View\n\tclass index implements WebRoot { // br\n\t}\n\n\t@Folder(name = \"lazy\")\n\tinterface Lazy extends WebRoot {\n\t\t@View\n\t\t@ViewControllerRef(Testbean.class)\n\t\tclass audilazy implements Lazy { // br\n\t\t}\n\n\t\t@View\n\t\t@ViewControllerRef(Testbean2.class)\n\t\tclass bmwlazy implements Lazy { // br\n\t\t}\n\t}\n\n\n}",
"public interface ApplicationView {\n}",
"public interface SomeInterface {\n ViewResolver testMethod();\n}",
"public interface PropsViewsContainer {\n\n /**\n * Adds a new properties view configuration. The id must be unique. The\n * configuration must be an string with the namespace of the entity to be\n * loaded at a minimum.\n */\n void addPropsView(String id, String className);\n\n /**\n * Sets the configuration for the properties view. Each value of the map\n * can be an string (full name of an entity) or a map with options to be\n * passed to the builder.<br/>\n * See <b>addPropsView</b> method for details.\n * @param configuration\n */\n void setPropsViews(Map<String, String> propertiesView);\n\n /**\n * Gets the configuration for the properties view\n * @return the map with the configuration\n */\n Map<String, String> getPropsViews();\n}",
"@Bean\n\tpublic SpringResourceTemplateResolver templateResolver() {\n\n\t\tSystem.out.println(\"execution is reaching templateResolver()\");\n\t\tSpringResourceTemplateResolver resolver = new SpringResourceTemplateResolver();\n\t\tresolver.setApplicationContext(applicationContext);\n\t\tresolver.setPrefix(\"/WEB-INF/views/templetes/\");\n\t\tresolver.setSuffix(\".html\");\n\t\tresolver.setTemplateMode(TemplateMode.HTML);\n\t\tresolver.setCacheable(false);\n\t\treturn resolver;\n\t}",
"@Bean\n public SpringResourceTemplateResolver templateResolver() {\n SpringResourceTemplateResolver templateResolver = new SpringResourceTemplateResolver();\n templateResolver.setApplicationContext(applicationContext);\n templateResolver.setPrefix(\"/WEB-INF/views/\");\n templateResolver.setSuffix(\".html\");\n return templateResolver;\n }",
"public interface IUserInfoView extends BaseView {\n void showUserData(UserBean userBean);\n}",
"@Bean\n\tpublic ViewScope viewScope() {\n\t\treturn new ViewScope();\n\t}",
"@Override\n\tpublic void setView(Resultado resultado, HttpServletRequest request, HttpServletResponse response) {\n\n\t}",
"private ViewFactory() {}",
"public interface BusinView {\n\n void showBusin(BusinBean businBean);\n\n void onBusinErr(String err);\n}",
"public ViewFactory getViewFactory()\n {\n return this;\n }",
"public interface HomePageView extends BaseView{\n Context getContext();\n\n void getSummary(SummaryBean.Data repest);\n\n void getUserinfo(UserInfoBean.Data userInfo);\n\n}",
"public interface MydiscountView extends BaseMvpView {\n void getMydiscountS(MydiscountBean mydiscountBean);\n}",
"@Override\r\n\t\tpublic ViewBinder getViewBinder() {\n\t\t\treturn super.getViewBinder();\r\n\t\t}",
"public void register (View view)\n {\n //omer\n }",
"public interface SearchView extends BaseView {\n\n void refersh(SearchBean searchBean);\n void refreshList(DetailListBean listBean);\n}",
"public interface RegisterView {\n void success(BaseBean bean);\n void error(Throwable e);\n void fail(String str);\n void countDown();\n}",
"protected void populateFacesELResolverForJsp(FacesContext context) {\n \n Map<String,Object> applicationMap = \n context.getExternalContext().getApplicationMap();\n String requestServiced = (String) \n applicationMap.get(this.FIRST_REQUEST_SERVICED);\n if (requestServiced != null) {\n // first request has been serviced, so ELResolvers have\n // been populated already.\n return;\n }\n \n synchronized(applicationMap) { \n requestServiced = (String) \n applicationMap.get(this.FIRST_REQUEST_SERVICED);\n if (requestServiced == null) {\n // this needs to be set irrespective whether the FacesResolvers\n // are added to compositeELResolverForJsp or not.\n applicationMap.put(this.FIRST_REQUEST_SERVICED, \"true\"); \n \n ApplicationAssociate appAssociate = \n ApplicationAssociate.getInstance(context.getExternalContext());\n CompositeELResolver compositeELResolverForJsp = \n appAssociate.getFacesELResolverForJsp();\n if (compositeELResolverForJsp == null) {\n if (logger.isLoggable(Level.INFO)) {\n logger.info(\"FacesELResolvers not registered with Jsp.\");\n }\n return;\n }\n compositeELResolverForJsp.add(new ImplicitObjectELResolverForJsp());\n compositeELResolverForJsp.add(new ManagedBeanELResolver());\n compositeELResolverForJsp.add(new FacesResourceBundleELResolver());\n \n // add ELResolvers from faces-config.xml\n ArrayList elResolversFromFacesConfig = \n appAssociate.geELResolversFromFacesConfig();\n if (elResolversFromFacesConfig != null) {\n Iterator it = elResolversFromFacesConfig.iterator();\n while (it.hasNext()) {\n compositeELResolverForJsp.add((ELResolver) it.next());\n }\n }\n \n // register legacy VariableResolver if any.\n if (appAssociate.getLegacyVariableResolver() != null ) {\n compositeELResolverForJsp.add(new VariableResolverChainWrapper(\n appAssociate.getLegacyVariableResolver()));\n } else if (appAssociate.getLegacyVRChainHead() != null) {\n compositeELResolverForJsp.add(new VariableResolverChainWrapper(\n appAssociate.getLegacyVRChainHead())); \n }\n \n // add legacy PropertyResolvers if any\n if (appAssociate.getLegacyPropertyResolver() != null ) {\n compositeELResolverForJsp.add(new PropertyResolverChainWrapper(\n appAssociate.getLegacyPropertyResolver()));\n } else if (appAssociate.getLegacyPRChainHead() != null) {\n compositeELResolverForJsp.add(new PropertyResolverChainWrapper(\n appAssociate.getLegacyPRChainHead())); \n }\n \n // add ELResolvers added via Application.addELResolver()\n ArrayList elResolversFromApplication = \n appAssociate.getApplicationELResolvers();\n if (elResolversFromApplication != null) {\n Iterator it = elResolversFromApplication.iterator();\n while (it.hasNext()) {\n compositeELResolverForJsp.add((ELResolver) it.next());\n }\n }\n \n }\n }\n }",
"ViewComponent createViewComponent();",
"PageResolver getPageResolver();",
"public PageView(WebFrameworkServiceRegistry serviceRegistry)\r\n {\r\n super(serviceRegistry);\r\n }",
"protected ComponentResolver createComponentResolver() {\n return new DefaultComponentResolver();\n }",
"public interface View\n{\n void refresh(ModelData modelData);\n\n void setController(Controller controller);\n}",
"protected ReliedOnView() {}",
"ViewMap<IBranchMapping> getView();",
"public interface MyAcountView extends BaseView{\n void renderBalance(BalanceBean bean);\n}",
"IViewParserConfiguration getViewParserConfiguration();",
"@Override\n protected void initViewSetup() {\n }",
"public interface RegisterView {\n void setObjData(BaseBean<UserRegisterBean> result);//设置注册信息结果\n void setVerifycode(BaseBean result);\n}",
"public interface View {\n}",
"public interface View {\n}",
"@Override\r\n\t\tpublic void setViewBinder(ViewBinder viewBinder) {\n\t\t\tsuper.setViewBinder(viewBinder);\r\n\t\t}",
"public interface IGroupMemberView extends IView {\n void showMembers(GroupMemberBean bean);\n\n}",
"String getViewClass();",
"public interface ISettingsView {\r\n void initViews();\r\n}",
"public interface SettingsView extends BaseView {\n}",
"public ViewConfiguration invoke() {\n return ViewConfiguration.get(this.f64333a);\n }",
"public interface FriendView extends IBaseView{\r\n void showFriendResult(MyFriend bean);\r\n}",
"public interface BaseView {\n\n}",
"public interface BaseView {\n\n}",
"public interface BaseView {\n\n}",
"public interface BaseView {\n\n}",
"@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n FacesContext context = FacesContext.getCurrentInstance();\n oferenteController = context.getApplication().evaluateExpressionGet(context, \"#{oferenteController}\", OferenteController.class);\n expedienteprocesoController = context.getApplication().evaluateExpressionGet(context, \"#{expedienteprocesoController}\", ExpedienteprocesoController.class);\n }",
"public interface BaseView {\n}",
"public interface BaseView {\n}",
"public interface BaseView {\n}",
"public interface BaseView {\n}",
"public interface BaseView {\n}",
"public interface BaseView {\n}",
"public interface BaseView {\n}",
"public interface CDOViewProvider\n{\n public static final int DEFAULT_PRIORITY = 500;\n\n /**\n * Returns the priority of this provider. Usually used to choose between several <code>CDOViewProvider</code> that\n * match the same repository URI.\n */\n public int getPriority();\n\n /**\n * Returns the regular expression that determines if the provider can handle certain URI\n */\n public String getRegex();\n\n /**\n * Checks if the URI matches with the regular expression of this provider\n */\n public boolean matchesRegex(URI uri);\n\n /**\n * Receives a URI and returns an opened <code>CDOView</code> against the repository. The implementer is responsible to\n * do the UUID to physical host map in case necessary.\n *\n * @return a wired-up and opened <code>CDOView</code>\n */\n public CDOView getView(URI uri, ResourceSet resourceSet);\n\n /**\n * @since 4.0\n */\n public URI getResourceURI(CDOView view, String path);\n}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"View createView();",
"public PostViewBean() {\n }",
"public interface GoodsInfoView {\n public void infoShow(GoodsInfoBean goodsInfoBean);\n}",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"public interface IViewConfiguration {\r\n\r\n\t/** Get the filter defining how to handle conditional directives */\r\n\tIViewFilter getViewFilter();\r\n\t\r\n\t/** Get the fixed macros (macro name or name=value).\r\n\t * This array should not change after creation since this\r\n\t * configuration is stored in a view.\r\n\t */\r\n\tCollection<IDefine> getMacros();\r\n\r\n\t/**\r\n\t * Get the configuration for the parser. This may differ based\r\n\t * on SDK (i.e. different include paths or different keywords, etc.)\r\n\t */\r\n\tIViewParserConfiguration getViewParserConfiguration();\r\n}",
"public interface IView {\n\n\n\n\n\n}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"public interface LoginView {\n void setError();\n void loginSuccess(UserBean userInfo);\n}",
"public interface DiscoverView {\n void loadDiscoverData(DiscoverListBean bean);\n}",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"public ContenedorloginviewmodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"@Override\n protected AbstractUrlBasedView buildView(String viewName) throws Exception {\n try (InputStream stream = getServletContext().getResourceAsStream(getPrefix() + \"/custom/jsp/\" + viewName + getSuffix())) {\n return super.buildView(\"/\" + (stream == null ? \"common\" : \"custom\") + \"/jsp/\" + viewName);\n }\n }",
"public PageView(WebFrameworkConfigElement webFrameworkConfiguration,\r\n ModelObjectService modelObjectService,\r\n ResourceService resourceService,\r\n RenderService renderService,\r\n TemplatesContainer templatesContainer)\r\n {\r\n super(webFrameworkConfiguration, \r\n modelObjectService, \r\n resourceService, \r\n renderService, \r\n templatesContainer);\r\n }",
"public interface ProfileContactView {\n\n\n}",
"public interface PayView extends BaseView{\n void renderData(PayInfoBean bean);\n void paySuccess(PayResultBean bean);\n void payBalanceNotEnough();\n void payFail();\n void renderMyTaoCan(MyTaocanBean bean);\n}",
"@RequestMapping(value = ViewNameConstants.TEMPLATE)\n\tpublic void Viewtemplate() {\n\t}",
"public void setBeanResolver(BeanResolver beanResolver) {\n\t\tthis.evalContext.setBeanResolver(beanResolver);\n\t\tthis.evalContext.setTypeConverter(new StandardTypeConverter());\n\t\tthis.evalContext.addPropertyAccessor(new MapAccessor());\n\t}",
"public interface MvpView {\n\n}",
"public interface MvpView {\n\n}",
"protected abstract ViewPreparer getPreparer(String name, WebApplicationContext context) throws TilesException;",
"protected void viewSetup() {\n\t\t// TODO Auto-generated method stub\n\n\t}"
] |
[
"0.7566506",
"0.75319886",
"0.7456525",
"0.7302111",
"0.7244388",
"0.71981287",
"0.7081641",
"0.6783893",
"0.67544574",
"0.65368843",
"0.6498252",
"0.61960363",
"0.6159581",
"0.61336267",
"0.60701513",
"0.6068618",
"0.606033",
"0.59950227",
"0.5958072",
"0.5767576",
"0.5747279",
"0.5721849",
"0.5664316",
"0.55906016",
"0.5573587",
"0.5555604",
"0.55482",
"0.55480766",
"0.554026",
"0.5532916",
"0.5486529",
"0.54732126",
"0.5455648",
"0.5452235",
"0.5448791",
"0.5434617",
"0.54337645",
"0.5416186",
"0.5395053",
"0.5387099",
"0.53719044",
"0.5339966",
"0.53368795",
"0.5332902",
"0.5327145",
"0.531235",
"0.5299669",
"0.52685255",
"0.52441835",
"0.5221409",
"0.52160454",
"0.520944",
"0.5206102",
"0.5204021",
"0.5204021",
"0.5200913",
"0.51926166",
"0.5188925",
"0.5187416",
"0.5171863",
"0.5159539",
"0.5129309",
"0.5127189",
"0.5127189",
"0.5127189",
"0.5127189",
"0.5124033",
"0.5122882",
"0.5122882",
"0.5122882",
"0.5122882",
"0.5122882",
"0.5122882",
"0.5122882",
"0.51005787",
"0.5073724",
"0.5073724",
"0.5063268",
"0.50631064",
"0.5060554",
"0.5052714",
"0.50520134",
"0.50514174",
"0.504995",
"0.504995",
"0.50425607",
"0.50246966",
"0.5023581",
"0.5023581",
"0.5014005",
"0.501366",
"0.5012442",
"0.5011635",
"0.500862",
"0.5007386",
"0.500554",
"0.4986921",
"0.4986921",
"0.4985521",
"0.49855185"
] |
0.71900445
|
6
|
helper method to convert string properties to int
|
private int getIntProperty(String propName) {
return Integer.parseInt(Objects.requireNonNull(env.getProperty(propName)));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static Integer getIntegerProperty(Dictionary<?, ?> properties,\n String propertyName) {\n Integer value = null;\n try {\n String s = Tools.get(properties, propertyName);\n value = isNullOrEmpty(s) ? value : Integer.parseInt(s);\n } catch (NumberFormatException | ClassCastException e) {\n value = null;\n }\n return value;\n }",
"@Override\n\t\tpublic Integer convert(String s) {\n\t\t\treturn Integer.parseInt(s);\n\t\t}",
"public\n int getProperty_int(String key)\n {\n if (key == null)\n return 0;\n\n String val = getProperty(key);\n\n if (val == null)\n return 0;\n\n int ret_int = 0;\n try\n {\n Integer workint = new Integer(val);\n ret_int = workint.intValue();\n }\n catch(NumberFormatException e)\n {\n ret_int = 0;\n }\n\n return ret_int;\n }",
"private int getIntProperty(String p) {\n\t\tString propval=env.getProperty(p);\n\t\tint propvalint=Integer.parseInt(propval);\n\t\treturn propvalint;\n\t}",
"private static int getIntegerProperty(String key) {\n String value = PROPERTIES.getProperty(key);\n // if the key is not found, Properties will return null and we should return a default value\n if (value == null) {\n return 0;\n }\n return Integer.parseInt(value);\n }",
"public int toInt(String entity) { return ent_2_i.get(entity); }",
"public int getIntegerProperty(String key) {\n String val = getProperty(key);\n return (null == val ? 1 : Integer.parseInt(val));\n }",
"private int getIntProperty(String propName) {\n\t\t\n\t\tString propVal = env.getProperty(propName);\n\t\t\n\t\t// convert to int \n\t\tint intPropVal = Integer.parseInt(propVal);\n\t\t\n\t\treturn intPropVal;\n\t}",
"public int getIntegerProperty(String key) {\n\t\treturn Integer.parseInt(this.getProperty(key));\n\t}",
"public static int getPropertyInt(String prop) {\n int ret = 0;\n try{\n ret = Integer.valueOf(properties.getProperty(prop));\n } catch (NumberFormatException e){\n log.log(Level.SEVERE, \"Integer return could not be found for property: \" + prop + \" - Exception: \" + e, e);\n }\n return ret;\n }",
"public static int getIntProperty(String key) {\r\n\t\treturn getIntProperty(key, 0);\r\n\t}",
"public Integer getPropertyAsInteger(String property) {\n try {\n return Integer.valueOf(properties.getProperty(property));\n } catch (NumberFormatException e) {\n }\n return null;\n }",
"@Override\n public Integer fromString(String value) {\n if (value == null) {\n return null;\n }\n\n // Take off the spaces\n value = value.trim();\n\n // If it's 0 (Was full of spaces) return 0\n if (value.length() < 1) {\n return null;\n }\n int valueConverted = 0;\n try {\n valueConverted = Integer.valueOf(value);\n } catch (NumberFormatException e) {\n System.err.println(\"[ERROR-INFO (IntegerString Converter)] - \" + e);\n }\n return valueConverted;\n }",
"public int getInt(String property)\n\tthrows PropertiesPlusException\n\t{\n\t\tString value = getProperty(property);\n\t\tif (value == null)\n\t\t\tthrow new PropertiesPlusException(property+\" is not defined.\");\n\t\ttry\n\t\t{\n\t\t\treturn Integer.valueOf(value);\n\t\t}\n\t\tcatch (NumberFormatException ex)\n\t\t{\n\t\t\tthrow new PropertiesPlusException(String.format(\n\t\t\t\t\t\"%s = %s cannot be converted to type int\", property, value));\n\t\t}\n\t}",
"public static int toInt(String str){\r\n\t\tInteger i = toInteger(str);\r\n\t\treturn i==null?0:i;\r\n\t}",
"@Override\n public int strToInt(String source) {\n try {\n return Integer.parseInt(source);\n } catch (NumberFormatException nfe) {\n return 0;\n }\n }",
"public static int stringToInt(Object val) {\n String intStr = String.valueOf(val);\n return Integer.parseInt(intStr);\n }",
"public int toInt(){\n\t\tString s = txt().trim();\n\t\tint i;\n\t\ttry{\n\t\t\ti = Integer.parseInt(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t\treturn i;\t\n\t}",
"public int getPropertyInt(String key);",
"@Override\r\n\tpublic int getInt(String string) {\n\t\treturn 0;\r\n\t}",
"int toInt(String a){\n\t\tint name=0;\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tname+=(int)a.charAt(i);\r\n\t\t}\r\n\t\treturn name;\r\n\t}",
"public int convertStringToInt(String value) throws NumberFormatException, IOException {\n\t\t\t\ttry {\n\t\t\t\t return Integer.parseInt(value);\n\t\t\t\t } catch(NumberFormatException e) {\n\t\t\t\t \tfileWriterPrinter(\"NullPointerException:\\nString '\" + value + \"is not convertable to Integer...\");\n\t\t\t\t \treturn 0;\n\t\t\t\t }\n\t\t\t\t}",
"int toInteger(String value) {\n value = value.trim();\n if (\"9999\".equals(value)) value = \"\";\n return (!\"\".equals(value)\n ? new Integer(value).intValue()\n : Tables.INTNULL);\n }",
"public static Integer getInteger(String inKey) {\r\n Object o = getProperties().get(inKey);\r\n\r\n if (o == null) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getInteger: \" + inKey + \", result null\");\r\n }\r\n return null;\r\n }\r\n\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getInteger: \" + inKey + \", result \" + o);\r\n }\r\n if (o instanceof Integer) {\r\n return (Integer) o;\r\n }\r\n if (!(o instanceof String)) {\r\n throw new IllegalArgumentException(\"Config property: \" + inKey\r\n + \" is not an Integer or String: \" + o.getClass());\r\n }\r\n try {\r\n return new Integer((String) o);\r\n } catch (Exception e) {\r\n LOG.warn(\"Not an integer value: \" + o + \" for property \" + inKey);\r\n return null;\r\n }\r\n }",
"static int convertToInt(String s){\n\n int value = -1;\n\n try{\n value = Integer.parseInt(s);\n return value;\n }\n catch(NumberFormatException e) {\n return value;\n }\n catch(NullPointerException e) {\n return value;\n }\n }",
"public static int getInt(String pName) {\n int out = 0;\n try {\n out = Integer.parseInt(properties.getProperty(pName));\n } catch (NumberFormatException e) {\n out = Integer.parseInt(defaults.getProperty(pName));\n Log.debug(\"Cannot parse property: \" + pName);\n Log.debug(e);\n }\n return out;\n }",
"private int strToInt(String str) {\n\t\tif (str.equals(\"\")) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn Integer.parseInt(str);\n\t}",
"public static int convertStringToValue(String value) {\n\t\treturn Integer.valueOf(value);\n\t}",
"public int convertToInt(String i) {\n\t\tswitch (i) {\n\t\t\tcase \".\": return 0;\n\t\t\tcase \"1\": return 1;\n\t\t\tcase \"2\": return 2;\n\t\t\tcase \"3\": return 3;\n\t\t\tcase \"4\": return 4;\n\t\t\tcase \"5\": return 5;\n\t\t\tcase \"6\": return 6;\n\t\t\tcase \"7\": return 7;\n\t\t\tcase \"8\": return 8;\n\t\t\tcase \"9\": return 9;\n\t\t\tcase \"A\": return 10;\n\t\t\tcase \"B\": return 11;\n\t\t\tcase \"C\": return 12;\n\t\t\tcase \"D\": return 13;\n\t\t\tcase \"E\": return 14;\n\t\t\tcase \"F\": return 15;\n\t\t\tcase \"G\": return 16;\n\t\t\tcase \"H\": return 17;\n\t\t\tcase \"I\": return 18;\n\t\t\tcase \"J\": return 19;\n\t\t\tcase \"K\": return 20;\n\t\t\tcase \"L\": return 21;\n\t\t\tcase \"M\": return 22;\n\t\t\tcase \"N\": return 23;\n\t\t\tcase \"O\": return 24;\n\t\t\tcase \"P\": return 25;\n\t\t\tcase \"Q\": return 26;\n\t\t\tcase \"R\": return 27;\n\t\t\tcase \"S\": return 28;\n\t\t\tcase \"T\": return 29;\n\t\t\tcase \"U\": return 30;\n\t\t\tcase \"V\": return 31;\n\t\t\tcase \"W\": return 32;\n\t\t\tcase \"X\": return 33;\n\t\t\tcase \"Y\": return 34;\n\t\t\tcase \"Z\": return 35;\n\t\t\tdefault: System.out.println(\"The number is too high.\");\n\t\t\t return 9000;\n\t\t}\n }",
"protected synchronized int getIntegerValue(String tag) {\n int returnInt = 0;\n if (actualProperties != null) {\n returnInt = Integer.decode(actualProperties.getProperty(tag, \"0\"));\n }\n return returnInt;\n }",
"private int convertInteger(String val)\n\t{\n\t\tint value = 0;\n\t\ttry {\n\t\t\tvalue = Integer.parseInt(val);\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\tSystem.err.print(\"\");\n\t\t}\n\t\treturn value;\n\t}",
"@Override\n public Object stringToValue(String text) {\n String result = text.trim();\n result = result.replaceAll(\"\\\\D\", \"\");\n int difference = result.length() - MAX_LENGTH_AS_STRING;\n if (0 < difference)\n result = result.substring(0, result.length() - difference);\n return result.equals(\"\") ? \"\" : Integer.parseInt(result);\n }",
"private int getInt(String next) {\n\t\ttry {\n\t\t\tint a = Integer.parseInt(next);\n\t\t\tif (a > 10) {\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\treturn a;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn 0;\n\t\t}\n\t}",
"public int toInteger(String stringItem) {\n Integer integerItem = 0;\n try {\n integerItem = Integer.valueOf(stringItem);\n } // try\n catch (NumberFormatException ioError) {\n System.out.print(\"Error converting \" + stringItem);\n System.out.print(\" to an integer number::\");\n System.out.println(\" Termio.ToInteger method.\");\n } // catch\n return integerItem;\n }",
"public static int convert(String entry) throws InvalidInputException {\r\n\r\n\t\ttry {\r\n\t\t\tint x = Integer.parseInt(entry);\r\n\t\t\treturn x;\r\n\t\t}catch(NumberFormatException nf) {\r\n\t\t\tthrow new InvalidInputException(\"The input is not an integer\");\r\n\t\t}\r\n\t\t\r\n\t}",
"public int convertStringDateToInteger(String date);",
"public int Converter(String string)\r\n {\r\n if(string.equals(\"0\"))\r\n return 0;\r\n else\r\n if(string.equals(\"1\"))\r\n return 1;\r\n else if(string.equals(\"2\"))\r\n {\r\n return 2;\r\n }else if(string.equals(\"3\"))\r\n {\r\n return 3;\r\n }else if(string.equals(\"4\"))\r\n {\r\n return 4;\r\n }\r\n \r\n return 1;\r\n }",
"public int getInteger(String key) {\r\n try {\r\n return Integer.decode(getString(key)).intValue();\r\n }\r\n catch (Exception e) {\r\n return 0;\r\n }\r\n }",
"String getInt();",
"public Integer getAsInt(final String name) {\r\n Integer returnValue = null;\r\n try {\r\n returnValue = Integer.parseInt(getProperty(name));\r\n }\r\n catch (final NumberFormatException e) {\r\n LOGGER.error(\"Error on parsing configuration property '\" + name + \"'. Property must be a integer!.\");\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on parsing configuration property '\" + name + \"'. Property must be a integer!\", e);\r\n }\r\n }\r\n return returnValue;\r\n }",
"protected static final int m2866a(XmlPullParser xmlPullParser, String str) {\n String attributeValue = xmlPullParser.getAttributeValue(null, str);\n if (attributeValue == null) {\n return -1;\n }\n try {\n return Integer.parseInt(attributeValue);\n } catch (NumberFormatException e) {\n throw new ako(e);\n }\n }",
"int getInt(int index) throws PropertyException {\n return this.getNumber(index).intValue();\n }",
"public static int m2197ao(String str) {\n try {\n return Integer.valueOf(str).intValue();\n } catch (Exception e) {\n return -1;\n }\n }",
"String toStringAsInt();",
"public static int getInt() throws IOException {\n\t\nString s = getString();\nreturn Integer.parseInt(s);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns the integer in the string as an Int.\n\t\n}",
"private static List<Integer> StringToIntForSelectBoxes(){\n\t\tString[] noOfEachPaxType = {pro.getProperty(\"noOfAdults\"), pro.getProperty(\"noOfChildren\"), pro.getProperty(\"noOfInfants\")};\n\t\tList<String> noOfEachPaxTypeList = Arrays.asList(noOfEachPaxType);\n\t\tList<Integer> noOfEachPaxTypeListAsInt = new ArrayList<>();\n\n\t\tfor(int i = 0; i < noOfEachPaxTypeList.size(); i++){\n\t\t\tInteger paxCount = Integer.parseInt(noOfEachPaxTypeList.get(i));\n\t\t\tnoOfEachPaxTypeListAsInt.add(paxCount);\n\t\t}\n\t\treturn noOfEachPaxTypeListAsInt;\n\t}",
"public int stringIntegerEncoding(String str) {\n if (!str.matches(\"[0-9-]+\"))\n return -1;\n\n char[] strArr = str.toCharArray();\n int number = (strArr[0] != '-') ? Character.getNumericValue(strArr[0]) : 0;\n for (int i =1; i < strArr.length; i++) {\n number = 10*number + Character.getNumericValue(strArr[i]);\n }\n return (strArr[0] == '-')? -number : number;\n }",
"public static int getIntegerValue(String value)\n\t{\n\t\treturn Integer.parseInt(value);\n\t}",
"@Override\n public Number fromString(String string) {\n return Double.valueOf(string).intValue();\n }",
"public int getInt(String name)\r\n throws NumberFormatException\r\n {\r\n return Integer.parseInt(getString(name));\r\n }",
"public Integer getInt(String attr) {\n return (Integer) super.get(attr);\n }",
"public static int getInt() throws IOException {\r\n String s = getString();\r\n return Integer.parseInt(s);\r\n }",
"public Integer toInt(String lex) {\r\n\t\tInteger i=-1;\r\n\t\ttry{\r\n\t\t\ti=Integer.parseInt(lex);\r\n\t\t}catch(NumberFormatException e){\r\n\t\t\tSystem.err.println(\"error, numero demasiado largo\");\r\n\t\t}\r\n\t\treturn i;\r\n\t}",
"public static int getInt() throws IOException {\n String s = getString();\n return Integer.parseInt(s);\n }",
"public int getInteger(String key) {\n\t\tint defaultValue = 0;\n\t\tif (getDefault(key) != null)\n\t\t\tdefaultValue = (Integer) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tint value;\n\t\ttry {\n\t\t\tvalue = Integer.parseInt(sp);\n\t\t} catch (NumberFormatException ex) {\n\t\t\tinternal.remove(key);\n\t\t\treturn defaultValue;\n\t\t}\n\t\treturn value;\n\t}",
"@FieldDeclaration(name = \"intValue\")\n public static int toNumber(String fact) {\n return Integer.parseInt(fact);\n }",
"private int priorityStringToInt(String string) {\n // Convert the priority of the editText from letters to a single digit\n switch (string) {\n case \"High Priority\":\n return 0;\n case \"Medium Priority\":\n return 1;\n case \"Low Priority\":\n return 2;\n default:\n return -1;\n }\n }",
"private int convertStringToInt(String stringToConvert) throws InvalidFileException {\r\n int convertedInteger = -1;\r\n\r\n try {\r\n convertedInteger = Integer.parseInt(stringToConvert);\r\n } catch (NumberFormatException e) {\r\n throw new InvalidFileException();\r\n }\r\n\r\n return convertedInteger;\r\n }",
"public int intValue(Map<Prop, Object> map) {\n assert type == Integer.class;\n Object o = map.get(this);\n return this.<Integer>typeValue(o);\n }",
"@Override\n public int getInt(int from, int length) {\n return Integer.parseInt(this.getString().substring(from, from+length));\n }",
"private static int i(String s) {\n return Integer.parseInt(s);\n }",
"private int getValueAsInteger(String valueToBeReturnAsInteger) {\n\t\t\n\t\tint defaultValue = 0;\n\t\t\n\t\ttry {\n\t\t\tif(null != valueToBeReturnAsInteger && StringUtils.isNotBlank(valueToBeReturnAsInteger)) {\n\t\t\t\tdefaultValue = Integer.parseInt(valueToBeReturnAsInteger);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"Error in parsing the String value to Integer for[{}]\", valueToBeReturnAsInteger);\n\t\t}\n\t\t\n\t\treturn defaultValue;\n\t}",
"public static double getInteger(String prop, int def)\n {\n return Integer.parseInt(props.getProperty(prop, \"\" + def));\n }",
"public static int getInt(String value)\r\n\t{\r\n\t\treturn getInt(value, 0);\r\n\t}",
"public static int toInt(java.lang.Object o)\n {\n if(o == null)\n {\n return 0;\n }\n else if(o.toString().equals(\"\"))\n {\n return 0;\n }\n else\n {\n return Integer.parseInt(o.toString());\n }\n }",
"private static int extractInt(String str) {\n\n String num = \"\";\n for (int i = 0; i < str.length(); i++) {\n if (java.lang.Character.isDigit(str.charAt(i))) num += str.charAt(i);\n }\n return (num.equals(\"\")) ? 0 : java.lang.Integer.parseInt(num);\n\n }",
"public int getInt(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? ((Long)value).intValue() : 0);\n }",
"private int getInt(String whatProperty, String levelConfigFilePath) {\n return getInt(levelConfig, whatProperty, levelConfigFilePath);\n }",
"public int getInt(String key) {\n return Integer.parseInt(mMap.get(key));\n }",
"int getInt(String key);",
"private static Integer parseIntString( String valueString ) {\n return Integer.parseInt( valueString.replaceAll( \"[^0-9]\", \"\" ) );\n }",
"public static int getIntProperty(OWLIndividual owlIndi, String property, OWLOntology onto, OWLDataFactory factory){\n\t\tint i = -5;\n\t\tOWLLiteral o = null;\n\t\ttry{\n\t\t\tOWLDataProperty p = factory.getOWLDataProperty(IRI.create(Settings.uri+property));\n\t\t\to = owlIndi.getDataPropertyValues(p, onto).iterator().next();\n\t\t\ti = Integer.parseInt(o.getLiteral());\n\t\t}catch(Exception e){}\t\n\t\tif (i!=-5){\n\t\t\treturn i;\n\t\t}else{\n\t\t\treturn 420;\n\t\t}\n\t}",
"int getInt(String key) throws KeyValueStoreException;",
"public Integer fromString(String s) {\n if (s == null || s.trim().length() == 0)\n return 0;\n try {\n return Integer.parseInt(s);\n }\n catch (NumberFormatException e) {\n return null;\n }\n }",
"public static int convertStringToInt(String input){\n\t if(input.length()==0)\n\t return 0;\n\t \n\t int m=(int)input.charAt(0)-48;\n\t int n=input.length();\n\t \n\t while(n!=1)\n\t {\n\t m*=10;\n\t n--;\n\t }\n\t \n\t return m+convertStringToInt(input.substring(1,input.length()));\n\t \n\t \n\t\t\n\t}",
"private static int parseInt(String s) {\n int value;\n try {\n value = Integer.parseInt(s);\n } catch (NumberFormatException e) {\n value = 0;\n }\n return value;\n }",
"public static Integer toInteger(String str){\r\n\t\tif(isEmpty(str)){\r\n\t\t\treturn null;\r\n\t\t}else{\r\n\t\t\ttry {\r\n\t\t\t\treturn Integer.valueOf(str.trim());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static int toInternal(String value) {\n try {\n double qty = Double.valueOf(value);\n return toInternal(qty);\n } catch (NumberFormatException e) {\n return 0;\n }\n }",
"static int stringToNumber(String value)throws IllegalArgumentException{\r\n\t\tif (!isNumber(value))\r\n\t\t\tthrow new IllegalArgumentException(\"This is not a number!\");\r\n\t\tint number = 0;\r\n\t\tfor (int i = 0; i < value.length(); i++)\r\n\t\t\tnumber += (value.charAt(i)-48)* Math.pow(10, value.length()-1-i);\r\n\t\treturn number;\r\n\t}",
"public static Integer stringToInteger(String s) {\n\t Integer ret = null;\n\t if (!Controleur.isVide(s))\n\t try {\n ret = Integer.valueOf(s);\n } catch (NumberFormatException e) {\n }\n\t\treturn ret;\n\t}",
"protected Object getMapKeyForTradingProperty(TradingProperty tradingProperty)\n {\n return new Integer(((SimpleIntegerTradingProperty)tradingProperty).getIntegerValue());\n }",
"private static String toNumber(String in) {\n in = in.toLowerCase();\n for (int i = 0; i < MONTHS.length; i++)\n if (MONTHS[i].equals(in))\n return Integer.toString(i + 1);\n for (int i = 0; i < DAYS.length; i++)\n if (DAYS[i].equals(in))\n return Integer.toString(i);\n try {\n Integer.parseInt(in);\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"'\" + in + \"' is not a number!\");\n }\n return in;\n }",
"private int getRequiredProperty(String propName, Properties prop)\n {\n if ((propName == null) || (propName.trim().length() < 1))\n throw new IllegalArgumentException(\"propName may not be null or empty\");\n if (prop == null)\n throw new IllegalArgumentException(\"prop may not be null\");\n\n String strValue = prop.getProperty(propName);\n if ((strValue == null) || (strValue.trim().length() < 1))\n {\n PSLogger.logInfo(\n \"Value of property : \" + propName + \" is null or empty.\");\n return -1;\n }\n\n int value = -1;\n try\n {\n value = Integer.parseInt(strValue);\n }\n catch (Throwable t)\n {\n PSLogger.logInfo(\n \"Value of property : \" + propName + \" is invalid.\");\n PSLogger.logInfo(t.getLocalizedMessage());\n return -1;\n }\n return value;\n }",
"public static int getValue(String string){\n for (ItemAttributeEnum item : ItemAttributeEnum.values()) {\n if (string.equals(item.toString())){\n return item.intValue;\n }\n }\n return -1;\n }",
"public int getInt(String property, int defaultValue)\n\tthrows PropertiesPlusException\n\t{\n\t\tString value = getProperty(property);\n\t\t\n\t\tif (value == null)\n\t\t{\n\t\t\taddRequestedProperty(property, Integer.toString(defaultValue));\n\t\t\treturn defaultValue;\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\treturn Integer.valueOf(value);\n\t\t}\n\t\tcatch (NumberFormatException ex)\n\t\t{\n\t\t\tthrow new PropertiesPlusException(String.format(\n\t\t\t\t\t\"%s = %s cannot be converted to type int\", property, value));\n\t\t}\n\t}",
"private int toInt(String binary){\n if (bitToInt(binary.charAt(0)) == 0){\n return positiveBinToInt(binary);\n }\n else{\n return negativeBinaryToInt(binary);\n }\n }",
"public int getPropertyInt(String key, int defaultValue);",
"public static Integer parseInt(Object s) {\n\t\tif (s == null)\n\t\t\treturn 0;\n\t\tif (s != null && s.toString().isEmpty())\n\t\t\t;\n\t\treturn Integer.parseInt(s.toString());\n\t}",
"protected static final int m2868b(XmlPullParser xmlPullParser, String str) {\n String attributeValue = xmlPullParser.getAttributeValue(null, str);\n if (attributeValue != null) {\n try {\n return Integer.parseInt(attributeValue);\n } catch (NumberFormatException e) {\n throw new ako(e);\n }\n } else {\n throw new bdc(str);\n }\n }",
"public int convert(String str) {\n if(str == null || str.length() == 0)\n return 0;\n// Integer pre = null;\n int i = str.length() - 1;\n int res = 0; // assume there will not be overflow\n while(i >= 0) {\n Character cur = str.charAt(i);\n Character pre = i - 1 > 0 ? str.charAt(i-1) : null;\n if(pre != null && pre <= cur) {\n res += map.get(cur) - map.get(pre);\n i--;\n }\n else {\n res += map.get(cur);\n }\n i--;\n }\n return res;\n }",
"public int getInt(String key) {\n\t\tString value = getString(key);\n\t\t\n\t\ttry {\n\t\t\treturn Integer.parseInt(value);\n\t\t}\n\t\tcatch( NumberFormatException e ) {\n\t\t\tthrow new IllegalStateException( \"Illegal value for integer configuration parameter: \" + key);\n\t\t}\n\t}",
"private int getIntAttribute(Element element, String attributeName)\n {\n try\n {\n return Integer.parseInt(getAttribute(element,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0;\n }\n }",
"public int getSpecialIntProperty(String key,\n Hashtable valueSet,\n String defaultValue) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n String val = this.attributes.getProperty(key);\n Integer result;\n\n if (val == null) {\n val = defaultValue;\n }\n\n try {\n result = (Integer) (valueSet.get(val));\n } catch (ClassCastException e) {\n throw this.invalidValueSet(key);\n }\n\n if (result == null) {\n try {\n return Integer.parseInt(val);\n } catch (NumberFormatException e) {\n throw this.invalidValue(key, val, this.lineNr);\n }\n }\n\n return result.intValue();\n }",
"public static int convertToInt(String number) {\n try {\n return Integer.parseInt(number);\n } catch (Exception e) {\n e.printStackTrace();\n return 0;\n }\n }",
"public static int parseInt(String S1){\n return Integer.parseInt(S1);\n }",
"@Test\n\tvoid teststringtoint(){\n\t\tCalendar cal=Calendar.getInstance();\n\t\tint m=cal.get(Calendar.MONTH);\n\t\tint d=cal.get(Calendar.DATE);\n\t\tSystem.out.println(\"m==\"+m+\" d==\"+d);\n\t}",
"public static void main(String[] args){\n String test = \" +3 21\";\n int value = atoi(test);\n System.out.println(\"Conversion result is: \" + value);\n }",
"public static int stringToInt(String numb) {\r\n\t\tint temp = 0;\r\n\t\t\r\n\t\t//Convert the string to an int. Set it to a value of zero if not a number.\r\n\t\ttry {\r\n\t\t\ttemp = Integer.parseInt(numb);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\ttemp = 0;\r\n\t\t}\r\n\t\t\r\n\t\treturn temp;\r\n\t}",
"public int getInt(String name) {\n\t\tfinal Object val = values.get(name);\n\t\tif (val == null) {\n\t\t\tthrow new IllegalArgumentException(\"Integer value required, but not specified\");\n\t\t}\n\t\tif (val instanceof Number) {\n\t\t\treturn ((Number) val).intValue();\n\t\t}\n\t\ttry {\n\t\t\treturn Integer.parseInt((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Integer value required, but found: \" + val);\n\t\t}\n\t}",
"public int getInt(String fieldname) {\n\t\tString value = getField(fieldname);\n\t\tif (value == null) return 0;\n\t\treturn Integer.parseInt(value);\n\t}"
] |
[
"0.72224396",
"0.71049947",
"0.7020834",
"0.699975",
"0.6922135",
"0.68439114",
"0.68167233",
"0.67750496",
"0.6711509",
"0.66832626",
"0.66153085",
"0.6579474",
"0.65526235",
"0.6519194",
"0.6506678",
"0.64870906",
"0.648595",
"0.6421706",
"0.64151603",
"0.6322379",
"0.62634057",
"0.6238961",
"0.62332296",
"0.62068784",
"0.618141",
"0.61803037",
"0.6156258",
"0.6142233",
"0.6136685",
"0.61294174",
"0.612265",
"0.6122042",
"0.61083966",
"0.60756314",
"0.60736006",
"0.60734826",
"0.6072173",
"0.6067699",
"0.6059034",
"0.60436445",
"0.6035392",
"0.6029232",
"0.60281587",
"0.6025527",
"0.60098904",
"0.59922785",
"0.59861684",
"0.59853095",
"0.5975984",
"0.5970669",
"0.5960829",
"0.5955431",
"0.5947602",
"0.594052",
"0.5926839",
"0.59247386",
"0.5912969",
"0.59095436",
"0.58860296",
"0.5877043",
"0.5870765",
"0.58706796",
"0.5869259",
"0.5863083",
"0.5851737",
"0.5849608",
"0.5843479",
"0.5828867",
"0.5817612",
"0.5817508",
"0.58087814",
"0.5795063",
"0.57778215",
"0.5774544",
"0.57647866",
"0.57634485",
"0.575598",
"0.57515603",
"0.5745924",
"0.5739",
"0.5736167",
"0.5735872",
"0.57336676",
"0.5733334",
"0.5729575",
"0.5718226",
"0.5717474",
"0.57167906",
"0.57133037",
"0.5710805",
"0.57020324",
"0.56897193",
"0.56864804",
"0.56793267",
"0.5672597",
"0.56711924",
"0.5671166",
"0.56391245",
"0.56374186",
"0.5629745"
] |
0.6434251
|
17
|
setup transaction manager based on entity manager factory
|
@Bean
@Autowired
public JpaTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {
JpaTransactionManager txManager = new JpaTransactionManager();
txManager.setEntityManagerFactory(entityManagerFactory);
return txManager;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Bean\n\tpublic JpaTransactionManager transactionManager() {\n\t\tJpaTransactionManager transactionManager = new JpaTransactionManager();\n\t\ttransactionManager.setEntityManagerFactory(entityManagerFactory().getObject());\n\t\treturn transactionManager;\n\t}",
"@Bean\n public PlatformTransactionManager transactionManager() {\n JpaTransactionManager manager = new JpaTransactionManager();\n manager.setEntityManagerFactory(entityManagerFactory());\n\n return manager;\n }",
"private static void init(){\n entityManager = HibernateUtil.getEntityManager();\n transaction = entityManager.getTransaction();\n }",
"@Bean\n\tpublic PlatformTransactionManager transactionManager() {\n\t\tEntityManagerFactory factory = this.entityManagerFactory().getObject();\n\t\treturn new JpaTransactionManager(factory);\n\t}",
"EntityManager createEntityManager();",
"@Bean\n JpaTransactionManager jpaTransactionManagerProvider(EntityManagerFactory emf) {\n JpaTransactionManager transactionManager = new JpaTransactionManager(emf);\n return transactionManager;\n }",
"@Primary\n @Bean\n JpaTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {\n JpaTransactionManager transactionManager = new JpaTransactionManager();\n transactionManager.setEntityManagerFactory(entityManagerFactory);\n return transactionManager;\n }",
"@Bean\r\n public JpaTransactionManager transactionManager() {\r\n String message = messageSource.getMessage(\"begin\", null, \"locale not found\", Locale.getDefault())\r\n + \" \" + messageSource.getMessage(\"config.data.transaction\", null, \"locale not found\", Locale.getDefault());\r\n logger.info(message);\r\n JpaTransactionManager transactionManager = new JpaTransactionManager();\r\n transactionManager.setEntityManagerFactory(entityManagerFactory().getObject());\r\n message = messageSource.getMessage(\"end\", null, \"locale not found\", Locale.getDefault())\r\n + \" \" + messageSource.getMessage(\"config.data.transaction\", null, \"locale not found\", Locale.getDefault());\r\n logger.info(message);\r\n return transactionManager;\r\n }",
"TransactionalRepositoryManager getTransactionalRepositoryManager() throws DaoException;",
"@Bean\n public PlatformTransactionManager transactionManager(EntityManagerFactory entityManagerFactory) {\n JpaTransactionManager transactionManager = new JpaTransactionManager();\n transactionManager.setEntityManagerFactory(entityManagerFactory);\n\n return transactionManager;\n }",
"@Bean(name = \"transactionManagerServiceReg\")\n public JpaTransactionManager transactionManagerServiceReg(@Qualifier(\"serviceEntityManagerFactory\") \n final EntityManagerFactory emf) {\n final JpaTransactionManager mgmr = new JpaTransactionManager();\n mgmr.setEntityManagerFactory(emf);\n return mgmr;\n }",
"static EntityManager getEntityManager(){\n return ENTITY_MANAGER_FACTORY.createEntityManager();\n }",
"protected abstract EntityManagerFactory getEntityManagerFactory();",
"public void setTransactionManager(TransactionManager tm)\n {\n _tm = tm;\n }",
"private static void init() {\n\t\tif (factory == null) {\n\t\t\tfactory = Persistence.createEntityManagerFactory(\"hibernatePersistenceUnit\");\n\t\t}\n\t\tif (em == null) {\n\t\t\tem = factory.createEntityManager();\n\t\t}\n\t}",
"public BookJPAImpl(TxDAOFactoryImpl factory) {\n\t\t//emf = Persistence.createEntityManagerFactory(\"sistemiDistribuitiLS\");\n\t\tthis.em = factory.getEntityManager();\n\t}",
"@BeforeClass\n public static void initTestFixture() throws Exception {\n entityManagerFactory = Persistence.createEntityManagerFactory(\"test\");\n entityManager = entityManagerFactory.createEntityManager();\n }",
"@Before\n\tpublic void setUp() throws Exception {\n\t\tydelseService.setEntityManager(entityManager);\n\t}",
"public MapJobRepositoryFactoryBean(PlatformTransactionManager transactionManager) {\n\t\tsetTransactionManager(transactionManager);\n\t}",
"TransactionManager getTransactionManager();",
"public DataSourceTransactionManager() {\r\n\t\tthis.transactionClass = DataSourceTransaction.class;\r\n\t}",
"public abstract void setEntityManager(EntityManager em);",
"@Autowired\n\t@Bean(name=\"transactionManager\")\n\tpublic HibernateTransactionManager getTransactionManager(SessionFactory sessionFactory) {\n\t\tHibernateTransactionManager transactionManager = new HibernateTransactionManager(sessionFactory);\n\t\t\n\t\treturn transactionManager;\n\t}",
"@Bean\r\n public PlatformTransactionManager transactionManager() {\r\n return new DataSourceTransactionManager(dynamicDataSource());\r\n }",
"@PersistenceContext(unitName = \"persistenceUnit\", type = PersistenceContextType.TRANSACTION)\n public void setEntityManager(EntityManager entityManager) {\n Helper.checkNull(entityManager, \"entityManager\");\n this.entityManager = entityManager;\n }",
"public interface RepositoryManagerFactory {\n\n /**\n * Returns a new instance of AutoCommittalRepositoryManager that can provide concrete repositories\n * that has methods that will auto-commit changes upon each call.\n *\n * @return AutoCommittalRepositoryManager\n */\n AutoCommittalRepositoryManager getAutoCommittalRepositoryManager();\n\n /**\n * Returns a new instance of TransactionalRepositoryManager and stating the transaction.\n * For all operations invoked via that instance to be committed, one should explicitly call\n * its commit method thus finishing the transaction.\n * Alternatively, one can call its rollback method to finish the transaction by discard all changes\n * invoked by it.\n *\n * @return TransactionalRepositoryManager\n * @throws DaoException if it failed to start a transaction.\n */\n TransactionalRepositoryManager getTransactionalRepositoryManager() throws DaoException;\n\n}",
"@Before\n\tpublic void init()\n\t{\n\t\tEntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(\"persistenceUnit\");\n\t\tEntityManager entityManager = entityManagerFactory.createEntityManager();\n\t\tcacheManager = new CacheManagerDefaultImpl();\n\t\t((CacheManagerDefaultImpl) cacheManager).setEntityManager(entityManager);\n\t}",
"@Bean\r\n\tpublic HibernateTransactionManager getTransactionManager(SessionFactory sessionFactory) {\r\n\t\treturn new HibernateTransactionManager(sessionFactory);\r\n\t}",
"EMInitializer() {\r\n try {\r\n emf = Persistence.createEntityManagerFactory(\"pl.polsl_MatchStatist\"\r\n + \"icsWeb_war_4.0-SNAPSHOTPU\");\r\n em = emf.createEntityManager();\r\n } catch (Exception e) {\r\n em = null;\r\n emf = null;\r\n }\r\n\r\n }",
"public void setTransactionManager(Object transactionManager)\n\t{\n\t\tthis.transactionManager = transactionManager;\n\t}",
"protected abstract EntityManager getEntityManager();",
"public interface IEntityManagerFactory {\r\n\r\n\t/**\r\n\t * Called when entity manager factory will help to create DAO objects.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tEntityManager createEntityManager();\r\n}",
"@Bean\n public PlatformTransactionManager transactionManager() {\n DataSourceTransactionManager transactionManager = new DataSourceTransactionManager();\n transactionManager.setDataSource(dataSource());\n return transactionManager;\n }",
"public SettlementBean() {\r\n entitymanagerbean = new EntityManagerBean();\r\n }",
"@BeforeClass\r\n public static void initTextFixture(){\r\n entityManagerFactory = Persistence.createEntityManagerFactory(\"itmd4515PU\");\r\n }",
"public void setTransactionManager(Object txnMgr) {\r\n \r\n // RB: At this stage not exposing TransactionManager to \r\n // the public API and hence the Object type and casting here\r\n \r\n this.transactionManager = (TransactionManager) txnMgr;\r\n this.dataSource = transactionManager.getDataSource();\r\n this.serverName = transactionManager.getServerName();\r\n }",
"@BeforeEach\n void init() {\n\n EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(\"pu\");\n employeeDao = new EmployeeDao(entityManagerFactory);\n\n\n }",
"@Before\n public void onSetUpBeforeTransaction() throws Exception {\n super.onSetUpBeforeTransaction();\n\n // load up any other needed spring beans\n\n // setup the mock objects if needed\n\n // create and setup the object to be tested\n hierarchyLogicImpl = new ExternalHierarchyLogicImpl();\n hierarchyLogicImpl.setDao(evaluationDao);\n //hierarchyLogicImpl.setHierarchyService(hierarchyService);\n\n }",
"@Before\n\tpublic void onSetUpBeforeTransaction() throws Exception {\n\t\t// load the spring created dao class bean from the Spring Application\n\t\t// Context\n\t\tQnaDao dao = (QnaDao) applicationContext.getBean(\"org.sakaiproject.qna.dao.impl.QnaDaoTarget\");\n\t\tif (dao == null) {\n\t\t\tlog.error(\"onSetUpBeforeTransaction: DAO could not be retrieved from spring context\");\n\t\t}\n\t\t\t\n\t\tpermissionLogic = new PermissionLogicImpl();\n\t\tpermissionLogic.setExternalLogic(externalLogicStub);\n\t\t\n\t\t// create and setup options\n\t\toptionsLogic = new OptionsLogicImpl();\n\t\toptionsLogic.setDao(dao);\n\t\toptionsLogic.setPermissionLogic(permissionLogic);\n\t\toptionsLogic.setExternalLogic(externalLogicStub);\n\t\toptionsLogic.setExternalEventLogic(externalEventLogicStub);\n\t\toptionsLogic.setServerConfigurationService(serverConfigurationServiceStub);\n\t\t\n\t\t// create and setup category logic\n\t\tcategoryLogic = new CategoryLogicImpl();\n\t\tcategoryLogic.setDao(dao);\n\t\tcategoryLogic.setExternalEventLogic(externalEventLogicStub);\n\t\tcategoryLogic.setExternalLogic(externalLogicStub);\n\t\tcategoryLogic.setPermissionLogic(permissionLogic);\n\t\tcategoryLogic.setQnaBundleLogic(bundleLogicStub);\n\t\t\n\t\t// create and setup the question logic\n\t\tquestionLogic = new QuestionLogicImpl();\n\t\tquestionLogic.setDao(dao);\n\t\tquestionLogic.setPermissionLogic(permissionLogic);\n\t\tquestionLogic.setOptionsLogic(optionsLogic);\n\t\tquestionLogic.setExternalLogic(externalLogicStub);\n\t\tquestionLogic.setExternalEventLogic(externalEventLogicStub);\n\t\tquestionLogic.setDeveloperHelperService(developerHelperServiceStub);\n\t\tquestionLogic.setNotificationLogic(notificationLogicStub);\n\t\tquestionLogic.setCategoryLogic(categoryLogic);\n\t\t\n\t\tquestionSmsCommand = new QuestionSmsCommand();\n\t\tquestionSmsCommand.setOptionsLogic(optionsLogic);\n\t\tquestionSmsCommand.setQnaBundleLogic(bundleLogicStub);\n\t\tquestionSmsCommand.setQuestionLogic(questionLogic);\n\t\tquestionSmsCommand.setCategoryLogic(categoryLogic);\n\t\tquestionSmsCommand.setExternalLogic(externalLogicStub);\n\t\tquestionSmsCommand.setPermissionLogic(permissionLogic);\n\n\t}",
"public interface TransactionService {\n\n /**\n * @return TransactionManager\n */\n TransactionManager getTransactionManager();\n\n /**\n * @return UserTransaction\n */\n UserTransaction getUserTransaction();\n\n /**\n * @return default timeout in seconds\n */\n int getDefaultTimeout();\n\n /**\n * Sets timeout in seconds,\n * \n * @param seconds int\n * @throws SystemException\n */\n void setTransactionTimeout(int seconds) throws SystemException;\n\n /**\n * Enlists XA resource in transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void enlistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Delists XA resource from transaction manager.\n * \n * @param xares XAResource\n * @throws RollbackException\n * @throws SystemException\n */\n void delistResource(ExoResource xares) throws RollbackException, SystemException;\n\n /**\n * Creates unique XA transaction identifier.\n * \n * @return Xid\n */\n Xid createXid();\n\n}",
"Transaction createTransaction();",
"@Primary\n @Bean\n public PlatformTransactionManager ildaTransactionManager() {\n final JpaTransactionManager txManager = new JpaTransactionManager();\n txManager.setEntityManagerFactory(ildaEntityManagerFactory().getObject());\n return txManager;\n }",
"protected TransactionManager getTransactionManager()\n {\n if (getTransactionIntegration() != null)\n return getTransactionIntegration().getTransactionManager();\n\n return null;\n }",
"public TransactionManagerLookup transactionManagerLookup() {\n return transactionManagerLookup;\n }",
"public Object getObject()\n\t{\n\t\treturn transactionManager;\n\t}",
"public void setTransactionManager(\n\t\t\tPlatformTransactionManager transactionManager) {\n\t\tthis.transactionManager = transactionManager;\n\t}",
"HibernateTransactionTemplate() {\n _transactionTemplate = getTransactionTemplate();\n _hibernateTemplate = getHibernateTemplate();\n }",
"protected EntityManager getEntityManager() {\n return emf.createEntityManager();\n }",
"public Object getTransactionManager()\n\t{\n\t\treturn transactionManager;\n\t}",
"@Bean(name = \"masterEntityManager\")\n\tpublic LocalContainerEntityManagerFactoryBean entityManagerFactory() {\n\t\tJpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();\n\t\tLocalContainerEntityManagerFactoryBean em = new LocalContainerEntityManagerFactoryBean();\n\t\tem.setDataSource(dataSource());\n\t\tem.setPackagesToScan(\"model\");\n\t\tem.setJpaVendorAdapter(vendorAdapter);\n\t\tem.setJpaProperties(new Properties());\n\t\tem.setPersistenceUnitName(\"master\");\n\t\treturn em;\n\t}",
"@Bean\n EntityManagerFactory entityManagerFactoryProvider() {\n \tEntityManagerFactory emf = Persistence.createEntityManagerFactory(DATA_SOURCE_NAME);\n return emf;\n }",
"@Autowired\n\tpublic HibernateAccountManager(SessionFactory sessionFactory) {\n\t\tthis.sessionFactory = sessionFactory;\n\t\tthis.hibernateTemplate = new HibernateTemplate(sessionFactory);\n\t}",
"public interface EntityManagerCreator {\n EntityManager createEntityManager();\n}",
"@Bean\n\tpublic PlatformTransactionManager transactionManager(DataSource dataSource) {\n\t\treturn new DataSourceTransactionManager(dataSource);\n\t}",
"public void setEntityManagerFactory(EntityManagerFactory entityManagerFactory) {\r\n\t\tLOG.info(DOLLAR + INSIDE_METHOD + DOLLAR);\r\n\t\tthis.entityManagerFactory = entityManagerFactory;\r\n\t\tLOG.info(DOLLAR + OUTSIDE_METHOD + DOLLAR);\r\n\t}",
"public SpringAwareJdbcTransactionManager() {\r\n }",
"@Override\n\tprotected EntityManager getEntityManager() {\n\t\treturn entityManager;\n\t}",
"public interface TransactionManager {\n\n\t/**\n\t * Start a new read only transaction.\n\t */\n\n\tStableView view();\n\n\t/**\n\t * Start a transaction for mutation.\n\t */\n\n\tMutableView begin();\n\n\t/**\n\t * Commit a previously prepared transaction for a two phase commit.\n\t *\n\t * @param tpcid\n\t * The client supplied two phase commit identifier.\n\t */\n\n\tvoid commit(String tpcid);\n\n}",
"@Before\n\tpublic void setUp() throws Exception {\n\t\ttry {\n\t\t\temf = Persistence.createEntityManagerFactory(\"DistribSubastaCoreEM\");\n\t\t dao.setEm(emf.createEntityManager());\n\t\t dao.getEm().setFlushMode(FlushModeType.COMMIT);\n\t\t dao.getEm().getEntityManagerFactory().getCache().evictAll();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t}",
"public void setEntityManager(EntityManager entityManager) {\n\t\tthis.entityManager = entityManager;\n\t}",
"public void setEntityManager(EntityManager entityManager) {\n\t\tthis.entityManager = entityManager;\n\t}",
"@Bean\n @Scope(SCOPE_PROTOTYPE)\n EntityManager entityManagerProvider(EntityManagerFactory emf) {\n EntityManagerHolder holder = (EntityManagerHolder) getResource(emf);\n if (holder == null) {\n return emf.createEntityManager();\n }\n return holder.getEntityManager();\n }",
"private TransactionManager obtainTransactionManager()\n {\n TransactionManager tm = ec.getNucleusContext().getJtaTransactionManager();\n if (tm == null)\n {\n throw new NucleusTransactionException(LOCALISER.msg(\"015030\"));\n }\n else\n {\n return tm;\n }\n }",
"@Bean\n\tpublic LocalContainerEntityManagerFactoryBean entityManagerFactory() {\n\t\tLocalContainerEntityManagerFactoryBean entityManagerFactory = new LocalContainerEntityManagerFactoryBean();\n\t\tentityManagerFactory.setDataSource(dataSource());\n\t\t// Classpath scanning of @Component, @Service, etc annotated class\n\t\tentityManagerFactory.setPackagesToScan(\"com.jpa\");\n\t\t// Vendor adapter\n\t\tHibernateJpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();\n\t\tentityManagerFactory.setJpaVendorAdapter(vendorAdapter);\n\t\t// Hibernate properties\n\t\tProperties additionalProperties = new Properties();\n\t\tadditionalProperties.put(\"hibernate.show_sql\", \"true\");\n\t\tadditionalProperties.put(\"hibernate.hbm2ddl.auto\", \"none\");\n\t\tadditionalProperties.put(\"hibernate.jdbc.batch_size\", \"10\");\n\t\tadditionalProperties.put(\"hibernate.order_inserts\", \"true\");\n\t\tadditionalProperties.put(\"hibernate.order_updates\", \"true\");\n\t\tadditionalProperties.put(\"hibernate.jdbc.batch_versioned_data\", \"true\");\n\t\tentityManagerFactory.setJpaProperties(additionalProperties);\n\t\treturn entityManagerFactory;\n\t}",
"@Bean\n public LocalContainerEntityManagerFactoryBean managerFactory() {\n HibernateJpaVendorAdapter adapter = new HibernateJpaVendorAdapter();\n adapter.setGenerateDdl(false);\n\n Properties jpaProps = new Properties();\n jpaProps.put(\"hibernate.dialect\",\"org.hibernate.dialect.H2Dialect\");\n\n LocalContainerEntityManagerFactoryBean factory = new LocalContainerEntityManagerFactoryBean();\n factory.setJpaVendorAdapter(adapter);\n factory.setPackagesToScan(\"com.webmvc.mywebmvc\");\n factory.setDataSource(dataSource);\n factory.setJpaProperties(jpaProps);\n\n\n return factory;\n }",
"private JpaModule(JpaModuleConfig config, EntityManagerFactory emFactory, Supplier<EntityManager> em, TransactionRunner\n transactionRunner) {\n this();\n\n this.config = config;\n this.emFactory = emFactory;\n this.emSupplier = em;\n this.transactionRunner = transactionRunner;\n }",
"@BeforeEach\n\tpublic void initDbManagerThreadInstance() throws Exception {\n\t\tDbManager.setThreadInstance(dbManager);\n\t}",
"@Override\n public EntityManager getEntityManager() {\n return entityManager;\n }",
"protected TransactionManager acquireTransactionManager() throws Exception {\n if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){\n try{\n Class clazz = (Class) AccessController.doPrivileged(new PrivilegedClassForName(TX_MANAGER_FACTORY_CLASS));\n Method method = (Method)AccessController.doPrivileged(new PrivilegedGetMethod(clazz, TX_MANAGER_FACTORY_METHOD, null, false));\n return (TransactionManager) AccessController.doPrivileged(new PrivilegedMethodInvoker(method, null, null));\n }catch (PrivilegedActionException ex){\n if (ex.getCause() instanceof ClassNotFoundException){\n throw (ClassNotFoundException)ex.getCause();\n }\n if (ex.getCause() instanceof NoSuchMethodException){\n throw (NoSuchMethodException)ex.getCause();\n }\n if (ex.getCause() instanceof IllegalAccessException){\n throw (IllegalAccessException)ex.getCause();\n }\n if (ex.getCause() instanceof InvocationTargetException){\n throw (InvocationTargetException)ex.getCause();\n }\n throw (RuntimeException) ex.getCause();\n }\n }else{\n Class clazz = PrivilegedAccessHelper.getClassForName(TX_MANAGER_FACTORY_CLASS);\n Method method = PrivilegedAccessHelper.getMethod(clazz, TX_MANAGER_FACTORY_METHOD, null, false);\n return (TransactionManager)PrivilegedAccessHelper.invokeMethod(method, null, null);\n }\n }",
"@Override\r\n public void setTxnDao(TxnDAO txnDao) {\n }",
"@Override\n public void setUp() throws Exception\n {\n transactionService = (TransactionService) ctx.getBean(\"TransactionService\");\n subscriptionService = (SubscriptionService) ctx.getBean(\"SubscriptionService\");\n personService = (PersonService) ctx.getBean(\"PersonService\");\n\n AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getSystemUserName());\n\n txn = transactionService.getNonPropagatingUserTransaction(false);\n txn.begin();\n\n createPerson(USER_BOB);\n createPerson(USER_TOM);\n createPerson(USER_LISA);\n }",
"private EntityManagerProvider(){}",
"@Before\n\tpublic void onSetUpBeforeTransaction() throws Exception {\n\t\t// load the spring created dao class bean from the Spring Application\n\t\t// Context\n\t\tQnaDao dao = (QnaDao) applicationContext.getBean(\"org.sakaiproject.qna.dao.impl.QnaDaoTarget\");\n\t\tif (dao == null) {\n\t\t\tlog.error(\"onSetUpBeforeTransaction: DAO could not be retrieved from spring context\");\n\t\t\treturn;\n\t\t}\n\n\t\tpermissionLogic = new PermissionLogicImpl();\n\t\tpermissionLogic.setExternalLogic(externalLogicStub);\n\n\t\t// create and setup OptionsLogic\n\t\toptionsLogic = new OptionsLogicImpl();\n\t\toptionsLogic.setDao(dao);\n\t\toptionsLogic.setPermissionLogic(permissionLogic);\n\t\toptionsLogic.setExternalLogic(externalLogicStub);\n\t\toptionsLogic.setExternalEventLogic(externalEventLogicStub);\n\t\t\n\t\t\n\t\t// create and setup CategoryLogic\n\t\tcategoryLogic = new CategoryLogicImpl();\n\t\tcategoryLogic.setDao(dao);\n\t\tcategoryLogic.setExternalLogic(externalLogicStub);\n\t\tcategoryLogic.setPermissionLogic(permissionLogic);\n\t\tcategoryLogic.setExternalEventLogic(externalEventLogicStub);\n\t\t\n\t\t// create and setup the object to be tested\n\t\tquestionLogic = new QuestionLogicImpl();\n\t\tquestionLogic.setDao(dao);\n\t\tquestionLogic.setPermissionLogic(permissionLogic);\n\t\tquestionLogic.setOptionsLogic(optionsLogic);\n\t\tquestionLogic.setExternalLogic(externalLogicStub);\n\t\tquestionLogic.setCategoryLogic(categoryLogic);\n\t\tquestionLogic.setNotificationLogic(notificationLogicStub);\n\t\tquestionLogic.setExternalEventLogic(externalEventLogicStub);\n\t\tquestionLogic.setDeveloperHelperService(developerHelperServiceStub);\n\t\t\n\t\t// preload testData\n\t\ttdp.preloadTestData(dao);\n\t}",
"@Before\n\tpublic void setup(){\n\t\ttarget = new MakeDaoImpl();\n\t\tmockEm = mock(EntityManager.class);\n\t\ttarget.setEm(mockEm);\n\t}",
"@Override\n\t@PersistenceContext(unitName=\"PU-POC\")\t\n\tpublic void setEntityManager(EntityManager entityManager) {\n\t\tsuper.setEntityManager(entityManager);\n\t}",
"@BeforeClass\n\tpublic static void init() {\n\t\ttry {\n\t\t\tif (emf == null) {\n\t\t\t\temf = Persistence.createEntityManagerFactory(\"application\");\n\t\t\t\tif (em == null) {\n\t\t\t\t\tem = loadConfiguration(emf);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Bean\n public ResourcelessTransactionManager transactionManager() {\n return new ResourcelessTransactionManager();\n }",
"@Override\n protected EntityManager getEntityManager() {\n return em;\n }",
"@PersistenceContext\n public void setEntityManager(EntityManager em) {\n this.em = em;\n }",
"@PersistenceContext\n public void setEntityManager(EntityManager em) {\n this.em = em;\n }",
"@PersistenceContext\n public void setEntityManager(EntityManager em) {\n this.em = em;\n }",
"protected JtxTransactionManager createJtxTransactionManager(final ConnectionProvider connectionProvider) {\n\t\treturn new DbJtxTransactionManager(connectionProvider);\n\t}",
"Transaction createTransaction(Settings settings);",
"String resolveTransactionManager(Transactional transactional);",
"public MessageService(PlatformTransactionManager transactionManager) {\n this.transactionTemplate = new TransactionTemplate(transactionManager);\n }",
"@Override\n\tpublic EntityManagerFactory getEntityManagerFactory() {\n\t\treturn null;\n\t}",
"@PersistenceContext\r\n public void setEntityManager(EntityManager em) {\r\n this.em = em;\r\n }",
"@Bean\n @DependsOn(\"flyway\")\n public LocalContainerEntityManagerFactoryBean entityManagerFactory() {\n LocalContainerEntityManagerFactoryBean entityManagerFactoryBean = new LocalContainerEntityManagerFactoryBean();\n entityManagerFactoryBean.setDataSource(dataSource());\n entityManagerFactoryBean.setPackagesToScan(env.getRequiredProperty(ENTITY_PACKAGES_TO_SCAN));\n\n JpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();\n entityManagerFactoryBean.setJpaVendorAdapter(vendorAdapter);\n entityManagerFactoryBean.setJpaProperties(hibernateProperties());\n\n return entityManagerFactoryBean;\n }",
"private static EntityManagerFactory createNewEntityManagerFactory()\n\t\t\tthrows NamingException, PersistenceException, UnsupportedUserAttributeException {\n\n\t\tInitialContext ctx = new InitialContext();\n\t\tDataSource ds = (DataSource) ctx.lookup(DATA_SOURCE_NAME);\n\n\t\tMap<String, Object> properties = new HashMap<String, Object>();\n\t\tproperties.put(PersistenceUnitProperties.NON_JTA_DATASOURCE, ds);\n\n\t\t// As replication will change the underlying database without\n\t\t// notifying the hub the JPA cache needs to be disabled.\n\t\t// Else the hub might provide outdated data\n\t\tproperties.put(PersistenceUnitProperties.CACHE_SHARED_DEFAULT, \"false\");\n\n\t\treturn Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME, properties);\n\t}",
"public void createTransaction(Transaction trans);",
"private AdminEntity() {\n \tsuper();\n\n this.emf = Persistence.createEntityManagerFactory(\"entityManager\");\n\tthis.em = this.emf.createEntityManager();\n\tthis.tx = this.em.getTransaction();\n }",
"protected void onSetUpInTransaction() throws Exception {\r\n\t\ttry {\r\n\r\n\t\t\tlevelOfCourtInstance.setName(\"delta\");\r\n\r\n\t\t\tTestDataFactory jurisdictionTestDataFactory = (TestDataFactory) BeanHelper\r\n\t\t\t\t\t.getBean(\"jurisdictionTestDataFactory\");\r\n\r\n\t\t\tlevelOfCourtInstance\r\n\t\t\t\t\t.setJurisdiction((com.cc.civlit.domain.courtdivisions.Jurisdiction) jurisdictionTestDataFactory\r\n\t\t\t\t\t\t\t.loadOneRecord());\r\n\r\n\t\t\tlevelOfCourtService.save(levelOfCourtInstance);\r\n\t\t} catch (PersistenceException pe) {\r\n\t\t\t//if this instance can't be created due to back references e.g an orderItem needs an Order - \r\n\t\t\t// - we will simply skip generated tests.\r\n\t\t\tif (pe.getCause() instanceof PropertyValueException\r\n\t\t\t\t\t&& pe.getMessage().contains(\"Backref\")) {\r\n\t\t\t\tbTest = false;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tfail(e.getMessage());\r\n\t\t}\r\n\r\n\t}",
"public CustomerJPAImpl(EntityManagerFactory emfPassed) {\n\t\temf = emfPassed;\n\t}",
"public void setEntityManager(EntityManager em) {\n this.em = em;\n }",
"@PersistenceContext\r\n\tpublic void setEntityManager(EntityManager em) {\r\n\t\tthis.em = em;\r\n\t}",
"@Bean\n public LocalContainerEntityManagerFactoryBean entityManagerFactory() throws NamingException {\n LocalContainerEntityManagerFactoryBean factoryBean = new LocalContainerEntityManagerFactoryBean();\n factoryBean.setDataSource(dataSource());\n factoryBean.setPackagesToScan(new String[]{\"com.group.project.entities\"});\n factoryBean.setJpaVendorAdapter(jpaVendorAdapter());\n factoryBean.setJpaProperties(jpaProperties());\n return factoryBean;\n }",
"public static Transaction createEntity(EntityManager em) {\n Transaction transaction = new Transaction()\n .date(DEFAULT_DATE);\n return transaction;\n }",
"public void setEntityManager(AV3DEntityManager entityManager) {\n\t}",
"public final void mT__189() throws RecognitionException {\r\n try {\r\n int _type = T__189;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:190:8: ( 'transaction-manager=' )\r\n // InternalSpringConfigDsl.g:190:10: 'transaction-manager='\r\n {\r\n match(\"transaction-manager=\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"@BeforeClass\n\tpublic static void setUpBeforeClass() throws Exception {\n\t\temf = Persistence.createEntityManagerFactory(\"si-database\");\n\t}"
] |
[
"0.7246276",
"0.7018551",
"0.70041233",
"0.69024533",
"0.6902266",
"0.6898758",
"0.6880541",
"0.68154633",
"0.6808137",
"0.67593473",
"0.66646403",
"0.6631139",
"0.65481377",
"0.652252",
"0.6457364",
"0.6450784",
"0.6437998",
"0.64349306",
"0.6430578",
"0.6409356",
"0.6397755",
"0.6309684",
"0.6272175",
"0.6246728",
"0.6240808",
"0.6238154",
"0.622852",
"0.6227506",
"0.62047756",
"0.6191145",
"0.6137721",
"0.6135383",
"0.6115223",
"0.61040634",
"0.609763",
"0.60949475",
"0.60670525",
"0.6054915",
"0.6048542",
"0.60366315",
"0.60139316",
"0.6001634",
"0.599603",
"0.5976104",
"0.59704757",
"0.59630114",
"0.59547204",
"0.5952816",
"0.5940077",
"0.5921672",
"0.5918756",
"0.591831",
"0.5894759",
"0.58896565",
"0.58883643",
"0.58758247",
"0.5866042",
"0.58589965",
"0.5853769",
"0.58526444",
"0.58526444",
"0.5843531",
"0.5832823",
"0.58306086",
"0.58208376",
"0.58179206",
"0.58175653",
"0.58034724",
"0.57931954",
"0.57873577",
"0.57853496",
"0.57679075",
"0.57619673",
"0.5751836",
"0.5730808",
"0.5726219",
"0.5719364",
"0.571882",
"0.57081175",
"0.57081175",
"0.57081175",
"0.5707486",
"0.56881666",
"0.56859773",
"0.56855524",
"0.5681142",
"0.56771016",
"0.56697136",
"0.566918",
"0.56637293",
"0.5657727",
"0.5656053",
"0.56509197",
"0.5649174",
"0.563186",
"0.56256807",
"0.56184655",
"0.56089735",
"0.560848",
"0.5606478"
] |
0.6968561
|
3
|
Creates new form FrmMain
|
public FrmMain() {
initComponents();
setLocationRelativeTo(this);
setExtendedState(JFrame.MAXIMIZED_BOTH);
try {
Communication.getInstance();
lblKonekcija.setText("Uspesno ste povezani na server!");
} catch (Exception ex) {
ex.printStackTrace();
lblKonekcija.setText("Niste povezani na server. Doslo je do greske. "+ex.getMessage());
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private FrmMainForm() {\n }",
"public FrmMainVIEW() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"FORM createFORM();",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public frmModelMainForm() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }",
"public frmAfiliado() {\n initComponents();\n \n }",
"public frmMain() {\n initComponents();\n pnlMemoria.setBackground(Color.GRAY);\n g = pnlMemoria.getGraphics();\n pnlMemoria.paintComponents(g);\n txtTablaProcesos.setEditable(false);\n listProcesos.setModel(procesos_en_disco);\n Proceso proceso = new Proceso(\"Sistema Operativo\");\n proceso.start();\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 FrmMain() {\n initComponents();\n try {\n acbrncm = new ACBrNCM();\n } catch (Exception ex) {\n Logger.getLogger(FrmMain.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public frmMain() {\n initComponents();\n setTanggal();\n setJam();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public Frm_Test() {\n initComponents();\n }",
"public frm_tutor_subida_prueba() {\n }",
"public frmPrincipal() {\n initComponents(); \n inicializar();\n \n }",
"protected void do_mntmStartNewForm_actionPerformed(ActionEvent arg0) {\n\t\tthis.dispose();\n\t\tmain(null);\n\t}",
"public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public FormInserir() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n Utility.centerScreen(this);\n myself = this;\n }",
"public FrmInicioSesion() {\n initComponents();\n\n }",
"public Form getForm() {\n if (form == null) {//GEN-END:|14-getter|0|14-preInit\n // write pre-init user code here\n form = new Form(\"Form\", new Item[] { getStringItem() });//GEN-BEGIN:|14-getter|1|14-postInit\n form.addCommand(getExitCommand());\n form.setCommandListener(this);//GEN-END:|14-getter|1|14-postInit\n // write post-init user code here\n }//GEN-BEGIN:|14-getter|2|\n return form;\n }",
"public frmPrincipal() {\n initComponents();\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 }",
"public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}",
"private void initialize() {\n\t\tfrmAddForm = new JFrame();\n\t\tfrmAddForm.setTitle(\"Add Form\");\n\t\tfrmAddForm.setBounds(100, 100, 450, 300);\n\t\tfrmAddForm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmAddForm.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel addFormTitle = new JLabel(\"Add Form\");\n\t\taddFormTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 19));\n\t\taddFormTitle.setBounds(174, 10, 108, 23);\n\t\tfrmAddForm.getContentPane().add(addFormTitle);\n\t\t\n\t\tJLabel firstNameLabel = new JLabel(\"First Name:\");\n\t\tfirstNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tfirstNameLabel.setBounds(10, 72, 76, 13);\n\t\tfrmAddForm.getContentPane().add(firstNameLabel);\n\t\t\n\t\tJLabel lastNameLabel = new JLabel(\"Last Name:\");\n\t\tlastNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlastNameLabel.setBounds(10, 120, 76, 13);\n\t\tfrmAddForm.getContentPane().add(lastNameLabel);\n\t\t\n\t\tJLabel ageLabel = new JLabel(\"Age:\");\n\t\tageLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tageLabel.setBounds(10, 165, 76, 13);\n\t\tfrmAddForm.getContentPane().add(ageLabel);\n\t\t\n\t\tfirstNameText = new JTextField();\n\t\tfirstNameText.setToolTipText(\"Enter first name.\");\n\t\tfirstNameText.setBounds(146, 70, 96, 19);\n\t\tfrmAddForm.getContentPane().add(firstNameText);\n\t\tfirstNameText.setColumns(10);\n\t\t\n\t\tlastNameText = new JTextField();\n\t\tlastNameText.setToolTipText(\"Enter last name.\");\n\t\tlastNameText.setColumns(10);\n\t\tlastNameText.setBounds(146, 118, 96, 19);\n\t\tfrmAddForm.getContentPane().add(lastNameText);\n\t\t\n\t\tageText = new JTextField();\n\t\tageText.setToolTipText(\"Enter age.\");\n\t\tageText.setColumns(10);\n\t\tageText.setBounds(146, 163, 96, 19);\n\t\tfrmAddForm.getContentPane().add(ageText);\n\t\t\n\t\tJLabel statusLabel = new JLabel(\"\");\n\t\tstatusLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tstatusLabel.setBounds(294, 121, 122, 23);\n\t\tfrmAddForm.getContentPane().add(statusLabel);\n\t\t\n\t\tJButton addButton = new JButton(\"Add\");\n\t\taddButton.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\taddButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t// holds the values from text fields later\n\t\t\t\t\tString firstName = \"\";\n\t\t\t\t\tString lastName = \"\";\n\t\t\t\t\tint age = 0;\n\t\t\t\t\t\n\t\t\t\t\tString user = \"root\";\n\t\t\t\t\tString password = \"\";\n\t\t\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/test\", user, password);\n\t\t\t\t\tStatement stmnt = con.createStatement();\n\t\t\t\t\t\n\t\t\t\t\t// get the values from text field\n\t\t\t\t\tfirstName = firstNameText.getText();\n\t\t\t\t\tlastName = lastNameText.getText();\n\t\t\t\t\tage = Integer.parseInt(ageText.getText());\n\t\t\t\t\t\n\t\t\t\t\tString sql = \"insert into test (firstName, lastName, age)\" + \n\t\t\t\t\t\"values (\" + \"'\" + firstName + \"',\" + \"'\" + lastName + \"',\" + \"'\" + age + \"')\"; \n\t\t\t\t\t\n\t\t\t\t\tif (stmnt.execute(sql) == false) {\n\t\t\t\t\t\t//System.out.println(\"Record added.\");\n\t\t\t\t\t\tString message = \"Record added.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t\tfirstNameText.setText(null);\n\t\t\t\t\t\tlastNameText.setText(null);\n\t\t\t\t\t\tageText.setText(null);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//System.out.println(\"Recorded failed to add.\");\n\t\t\t\t\t\tString message = \"Failed to add record.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception a) {\n\t\t\t\t\ta.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\taddButton.setToolTipText(\"Add record to database.\");\n\t\taddButton.setBounds(157, 211, 85, 42);\n\t\tfrmAddForm.getContentPane().add(addButton);\n\t\t\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmAddForm.setVisible(false);\n\t\t\t\tMenu menu = new Menu();\n\t\t\t\tmenu.run();\n\t\t\t}\n\t\t});\n\t\tbackButton.setBounds(0, 0, 85, 21);\n\t\tfrmAddForm.getContentPane().add(backButton);\n\t}",
"public MainForm getMainForm(){\n\t\treturn this.mainForm;\n\t}",
"private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public FrmFerramentas() throws IOException {\n initComponents();\n SelecionaLocal();\n //PreencheLook();\n }",
"public static void main (String [] args){\r\n //Creo el objeto\r\n Formulario Form= new Formulario();\r\n Form.setBounds(0,0,400,550);\r\n Form.setVisible(true);\r\n Form.setLocationRelativeTo(null);\r\n \r\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 FrmFactura() {\n initComponents();\n }",
"public FrmInCadLocal() {\n initComponents();\n }",
"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 setFrame(new JFrame());\n getFrame().setBounds(100, 100, 310, 270);\n getFrame().setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n getFrame().getContentPane().setLayout(null);\n\n JLabel lblTitle = new JLabel(\"Crear nuevo profesor\");\n lblTitle.setFont(new Font(\"Arial\", Font.BOLD | Font.ITALIC, 13));\n lblTitle.setBounds(10, 11, 264, 16);\n getFrame().getContentPane().add(lblTitle);\n\n JLabel lblNombre = new JLabel(\"Nombre\");\n lblNombre.setBounds(10, 36, 46, 14);\n getFrame().getContentPane().add(lblNombre);\n\n textNombre = new JTextField();\n textNombre.setBounds(66, 33, 86, 20);\n getFrame().getContentPane().add(textNombre);\n textNombre.setColumns(10);\n\n JLabel lbDni = new JLabel(\"DNI\");\n lbDni.setBounds(10, 61, 46, 14);\n getFrame().getContentPane().add(lbDni);\n\n textDni = new JTextField();\n textDni.setBounds(66, 58, 86, 20);\n getFrame().getContentPane().add(textDni);\n textDni.setColumns(10);\n\n JLabel lblEdad = new JLabel(\"Edad\");\n lblEdad.setBounds(10, 86, 46, 14);\n getFrame().getContentPane().add(lblEdad);\n\n textEdad = new JTextField();\n textEdad.setBounds(66, 83, 86, 20);\n getFrame().getContentPane().add(textEdad);\n textEdad.setColumns(10);\n\n JLabel lbCurso = new JLabel(\"Curso\");\n lbCurso.setBounds(10, 111, 46, 14);\n getFrame().getContentPane().add(lbCurso);\n\n textCurso = new JTextField();\n textCurso.setBounds(66, 108, 86, 20);\n getFrame().getContentPane().add(textCurso);\n textCurso.setColumns(10);\n\n JLabel lblSueldo = new JLabel(\"Sueldo\");\n lblSueldo.setBounds(10, 136, 46, 14);\n getFrame().getContentPane().add(lblSueldo);\n\n textSueldo = new JTextField();\n textSueldo.setBounds(66, 133, 86, 20);\n getFrame().getContentPane().add(textSueldo);\n textSueldo.setColumns(10);\n\n JLabel lblNewLabel = new JLabel(\"Todos los campos son obligatorios\");\n lblNewLabel.setForeground(Color.RED);\n lblNewLabel.setFont(new Font(\"Arial\", Font.BOLD | Font.ITALIC, 11));\n lblNewLabel.setBounds(10, 161, 264, 14);\n getFrame().getContentPane().add(lblNewLabel);\n\n JButton btnCrear = new JButton(\"Crear profesor\");\n btnCrear.setForeground(Color.WHITE);\n btnCrear.setBackground(Color.DARK_GRAY);\n btnCrear.setFont(new Font(\"Arial\", Font.BOLD, 12));\n btnCrear.addActionListener(new ActionListener() {\n\n /**\n * Al presionar el boton 'btnCrear' este crea un objeto de tipo Profesor y\n * accede la informacion dentreo de cada JTextField() asignanco al objeto creado\n * estos valores obtenidos.\n *\n * @param e el evento.\n * @see #Ficheros.\n */\n public void actionPerformed(ActionEvent e) {\n Profesor p = new Profesor();\n p.setNombre(textNombre.getText().toUpperCase());\n p.setDni(textDni.getText().toUpperCase());\n p.setEdad(Integer.parseInt(textEdad.getText()));\n p.setCurso(Integer.parseInt(textCurso.getText()));\n p.setSueldo(Integer.parseInt(textSueldo.getText()));\n try {\n Ficheros.guardar(p, Ficheros.D_PROFESORES);\n } catch (IOException e2) {\n System.out.println(\"Fichero no encontrado - guardarAlumno()\");\n }\n }\n });\n btnCrear.setBounds(10, 186, 119, 33);\n getFrame().getContentPane().add(btnCrear);\n\n JButton btnMostrar = new JButton(\"Mostrar profesores\");\n btnMostrar.setForeground(Color.WHITE);\n btnMostrar.setBackground(Color.DARK_GRAY);\n btnMostrar.setFont(new Font(\"Arial\", Font.BOLD, 12));\n btnMostrar.setBounds(139, 186, 145, 33);\n btnMostrar.addActionListener(new ActionListener() {\n /**\n * Muestra los profesores almacenados en los ficheros desde Class Ficheros.\n *\n * @param e el evento.\n * @see #Ficheros.\n */\n public void actionPerformed(ActionEvent e) {\n Profesor p = null;\n System.out.println(\"---- Profesores ----\");\n Ficheros.leerFicheros(p, Ficheros.D_PROFESORES);\n }\n });\n getFrame().getContentPane().add(btnMostrar);\n }",
"public Main_Etudiant() {\n initComponents();\n }",
"public FrmInsertar() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public frmCliente() {\n initComponents();\n CargarProvinciasRes();\n CargarProvinciasTra();\n ManejadorCliente objCli = new ManejadorCliente();\n }",
"public form() {\n initComponents();\n }",
"public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}",
"public void factoryMainScreen()\n\t{\n\t\t\n\t}",
"public FrmCadastro() {\n initComponents();\n\n }",
"public FrmMenu() {\n initComponents();\n }",
"public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}",
"public FrmNuevoEmpleado() {\n initComponents();\n }",
"FrmViewContacts() {\n startupForm();\n }",
"public FrmAbmAfiliado() {\n initComponents();\n }",
"protected void limparCampos() {\n\t\tdispose();\r\n\t\tFrmCadastroMidias f = new FrmCadastroMidias();\r\n\t\tf.setLocationRelativeTo(null);\r\n\t\tf.setVisible(true);\r\n\t}",
"public MainForm(IEngine engine) {\n\n this.engine = engine;\n generalConfigurationButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n PanelForm panelForm = new PanelForm(engine);\n panelForm.initialize();\n }\n });\n //preferencje\n edytujPreferencjeButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n Choice preferencje=new Choice(engine,preferences);\n }\n });\n\n generateButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n List<Group> g= DataLoader.loadGroups();\n List<Room> r = DataLoader.loadRooms();\n try {\n List<Teacher> t = DataLoader.loadTeachers(preferences);\n JOptionPane.showMessageDialog(new JFrame(), GenereteTametable.generuj(g,r,t) );\n }\n catch (Exception e)\n {\n JOptionPane.showMessageDialog(new JFrame(), \"Brak przedmiotu! \\n\" +\n \"Przedmioty odpowiadaja prowadzacy w kolejnosci wpisywania\\n\" +\n \"upewnij sie ze dane zostaly wprowadzone poprawnie!\");\n }\n\n }\n });\n }",
"public AbsenFrm() {\n initComponents();\n setLocationRelativeTo(null);\n loadUser();\n \n \n \n }",
"public frmVerzamelingBeheer() {\n try {\n initComponents();\n \n lblId.setVisible(false);\n\n pnlEdit.setVisible(false);\n\n for (VerzamelingsType type : TypeService.GetAllTypes()) {\n cmbType.addItem(new VerzamelingsType(type.getId(), type.getNaam()));\n cmbEditType.addItem(new VerzamelingsType(type.getId(), type.getNaam()));\n }\n\n \n for (Categorie categorie : CategorieService.GetAllCategories()) {\n cmbCategorie.addItem(new Categorie(categorie.getId(), categorie.getNaam()));\n cmbEditCategorie.addItem(new Categorie(categorie.getId(), categorie.getNaam()));\n }\n \n //vertaling voor JOptionpane\n UIManager.put(\"OptionPane.cancelButtonText\", \"Annuleren\");\n UIManager.put(\"OptionPane.noButtonText\", \"Nee\");\n UIManager.put(\"OptionPane.okButtonText\", \"Oke\");\n UIManager.put(\"OptionPane.yesButtonText\", \"Ja\");\n \n this.setTitle(\"Verzamelingen beheren - Verzamelingenbeheer\");\n \n ShowEditItems(false);\n RefreshList();\n }\n catch (ExceptionInInitializerError ex)\n {\n JOptionPane.showMessageDialog(null, \"Er kan geen verbinding worden gemaakt met de database (\" + ex.getMessage() + \").\", \"Fout\", ERROR_MESSAGE);\n System.exit(1);\n }\n\n }",
"public FormPpal() {\n initComponents();\n setIconImage(Toolkit.getDefaultToolkit().getImage(this.getClass().getResource(\"Imagenes/icon.png\")));\n setLocationRelativeTo(null);\n setTitle(\"Men\\372 principal\");\n setResizable(false);\n formBackUp = null;\n formBuscador = null;\n fb1 = null;\n fb2 = null;\n formListado = null;\n conn = new Conn();\n pacientesCumpleanos = new LinkedList();\n pacientesControl = new LinkedList();\n cargarCumpleanos();\n cargarControlesHoy();\n }",
"public Formulario() {\n initComponents();\n }",
"public FrmCrearFotoEmpresa() {\n initComponents();\n }",
"public static void main(String[] args) \n\t{\n RegistrationForm r = new RegistrationForm(); \n \n\t}",
"public MainEntry() {\n initComponents();\n }",
"public frmPessoa() {\n initComponents();\n }",
"public formPrincipal() {\n initComponents();\n }",
"public FichaDeContactoJFrame() {\n initComponents();\n }",
"public Frmvoto() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public FormCadastroAutomovel() {\n initComponents();\n }",
"public FrmKashidashi() {\n initComponents();\n }",
"public FrmCampus() {\n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public frmMantEmpresas() {\n initComponents();\n this.presentarDatos();\n ClaseUtil.activarComponente(jPanelDatos, false);\n ClaseUtil.activarComponente(jPanelTabla, true);\n ClaseUtil.activarComponente(jPanelAcciones, false);\n }",
"private void initialize() {\r\n\t\tfrmCadastro = new JFrame();\r\n\t\tfrmCadastro.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\r\n\t\tfrmCadastro.setTitle(\"Cadastro\");\r\n\t\tfrmCadastro.setBounds(100, 100, 410, 213);\r\n\t\tfrmCadastro.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmCadastro.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Aluno\");\r\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(25, 65, 160, 74);\r\n\t\tfrmCadastro.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Funcionario\");\r\n\t\tbtnNewButton_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtnNewButton_1.setBounds(217, 65, 152, 74);\r\n\t\tfrmCadastro.getContentPane().add(btnNewButton_1);\r\n\t\t\r\n\t\tJLabel lblQualCadastroDeseja = new JLabel(\"Qual cadastro deseja realizar?\");\r\n\t\tlblQualCadastroDeseja.setFont(new Font(\"Nirmala UI\", Font.BOLD | Font.ITALIC, 20));\r\n\t\tlblQualCadastroDeseja.setBounds(49, 20, 305, 34);\r\n\t\tfrmCadastro.getContentPane().add(lblQualCadastroDeseja);\r\n\r\n\t\t\r\n\t}",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public SpeciesForm() {\n initComponents();\n setTitle(Application.TITLE_APP + \" Species\");\n processor = new SpeciesProcessor();\n loadData(); \n \n \n }",
"public ProfilsFIForm() {\r\n\t\tsuper();\r\n\t}",
"private void formFiller(FormLayout fl)\n\t{\n fl.setSizeFull();\n\n\t\ttf0=new TextField(\"Name\");\n\t\ttf0.setRequired(true);\n\t\t\n sf1 = new Select (\"Customer\");\n try \n {\n\t\t\tfor(String st :db.selectAllCustomers())\n\t\t\t{\n\t\t\t\tsf1.addItem(st);\n\t\t\t}\n\t\t} \n \tcatch (UnsupportedOperationException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t UI.getCurrent().addWindow(wind);\n \t\te.printStackTrace();\n \t}\n sf1.setRequired(true);\n \n sf2 = new Select (\"Project Type\");\n sf2.addItem(\"In house\");\n sf2.addItem(\"Outsourcing\");\n df3=new DateField(\"Start Date\");\n df3.setDateFormat(\"d-M-y\");\n df3.setRequired(true);\n \n df4=new DateField(\"End Date\");\n df4.setDateFormat(\"d-M-y\");\n \n df4.setRangeStart(df3.getValue());\n \n df5=new DateField(\"Next DeadLine\");\n df5.setDateFormat(\"d-M-y\");\n df5.setRangeStart(df3.getValue());\n df5.setRangeEnd(df4.getValue());\n sf6 = new Select (\"Active\");\n sf6.addItem(\"yes\");\n sf6.addItem(\"no\");\n sf6.setRequired(true);\n \n tf7=new TextField(\"Budget(mandays)\");\n \n tf8=new TextArea(\"Description\");\n \n tf9=new TextField(\"Inserted By\");\n \n tf10=new TextField(\"Inserted At\");\n \n tf11=new TextField(\"Modified By\");\n \n tf12=new TextField(\"Modified At\");\n \n if( project.getName()!=null)tf0.setValue(project.getName());\n else tf0.setValue(\"\");\n\t\tif(!editable)tf0.setReadOnly(true);\n fl.addComponent(tf0, 0);\n \n\n if(project.getCustomerID()!=-1)\n\t\t\ttry \n \t{\n\t\t\t\tsf1.setValue(db.selectCustomerforId(project.getCustomerID()));\n\t\t\t}\n \tcatch (ReadOnlyException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t\t UI.getCurrent().addWindow(wind);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\telse sf1.setValue(\"\");\n if(!editable)sf1.setReadOnly(true);\n fl.addComponent(sf1, 1);\n \n \n if(project.getProjectType()!=null)sf2.setValue(project.getProjectType());\n else sf2.setValue(\"\");\n if(!editable)sf2.setReadOnly(true);\n fl.addComponent(sf2, 2);\n \n if(project.getStartDate()!=null) df3.setValue(project.getStartDate());\n if(!editable)df3.setReadOnly(true);\n fl.addComponent(df3, 3);\n \n if(project.getEndDate()!=null) df4.setValue(project.getEndDate());\n if(!editable)df4.setReadOnly(true);\n fl.addComponent(df4, 4);\n \n if(project.getNextDeadline()!=null)df5.setValue(project.getNextDeadline());\n if(!editable)df5.setReadOnly(true);\n fl.addComponent(df5, 5);\n \n if (project.isActive())sf6.setValue(\"yes\");\n else sf6.setValue(\"no\");\n if(!editable)sf6.setReadOnly(true);\n fl.addComponent(sf6, 6);\n \n if(project.getBudget()!=-1.0) tf7.setValue(String.valueOf(project.getBudget()));\n else tf7.setValue(\"\");\n if(!editable)tf7.setReadOnly(true);\n fl.addComponent(tf7, 7);\n \n if(project.getDescription()!=null)tf8.setValue(project.getDescription());\n else tf8.setValue(\"\");\n if(!editable)tf8.setReadOnly(true);\n fl.addComponent(tf8, 8);\n \n if(project.getInserted_by()!=null)tf9.setValue(project.getInserted_by());\n else tf9.setValue(\"\");\n tf9.setEnabled(false);\n fl.addComponent(tf9, 9);\n \n if(project.getInserted_at()!=null)tf10.setValue(project.getInserted_at().toString());\n else tf10.setValue(\"\");\n tf10.setEnabled(false);\n fl.addComponent(tf10, 10);\n \n if(project.getModified_by()!=null)tf11.setValue(project.getModified_by());\n else tf11.setValue(\"\");\n tf11.setEnabled(false);\n fl.addComponent(tf11, 11);\n \n if(project.getModified_at()!=null)tf12.setValue(project.getModified_at().toString());\n else tf12.setValue(\"\");\n tf12.setEnabled(false);\n fl.addComponent(tf12, 12);\n \n \n\t}",
"public FrmIguana() {\n initComponents();\n }",
"public CreateTremaDbDialogForm(AnActionEvent event) {\n this.event = event;\n this.windowTitle = \"New Trema XML database file\";\n init();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n setExtendedState(MAXIMIZED_BOTH);\n }",
"public frmHome() {\n initComponents();\n }",
"public FmrMaestros() {\n initComponents();\n ver_Maestros();\n this.setLocationRelativeTo(null);\n }",
"public TorneoForm() {\n initComponents();\n }",
"public Formulario_principal() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public FrmAdmin() {\n initComponents();\n // mengambil ukuran layar\n Dimension layar = Toolkit.getDefaultToolkit().getScreenSize();\n\n // membuat titik x dan y\n int x = layar.width / 2 - this.getSize().width / 2;\n int y = layar.height / 2 - this.getSize().height / 2;\n\n this.setLocation(x, y);\n tampilkanData();\n kosongkanForm();\n }",
"public Ventaform() {\n initComponents();\n }",
"public FGlavna() {\n initComponents();\n pripremiFormu();\n }",
"public static void main(String[] args) {\r\n form_menu form_menu1 = new form_menu();\r\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 FORMRECOMP() {\n initComponents();\n this.setLocationRelativeTo(null);\n inicializa_controles();\n cerrar_ventan_recibo();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public FrmMain(Usuario pUsuario) {\n initComponents();\n this.setUsuario(pUsuario);\n this.setIconImage(new ImageIcon(getClass().getResource(\"/image/solar-panel1.png\")).getImage());\n this.setIconsMenus();\n this.HabilitaMenusItensDeAcordoComPerfilDoUsuario();\n }",
"protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }",
"public FrmWorkOn() {\n initComponents();\n }",
"public EventForm(String type, int eventID, Day day, CalendarForm mainForm) {\n formType = type;\n this.eventID = eventID;\n initialDay = day;\n chosenDay = day;\n this.mainForm = mainForm;\n eventToEdit = day.getEvent(eventID);\n frame = new JFrame();\n lblDay = new JLabel(\"Day:\");\n lblMonth = new JLabel(\"Month:\");\n lblName = new JLabel(\"Event name:\");\n lblTime = new JLabel(\"Start Time:\");\n lblDuration = new JLabel(\"Duration:\");\n cmbDay = new JComboBox();\n cmbMonth = new JComboBox();\n txtName = new JTextField(10);\n radSelectTime = new JRadioButton(\"Choose Time\", true);\n radAutoTime = new JRadioButton(\"Generate Time\", false);\n buttonGroup = new ButtonGroup();\n cmbTime = new JComboBox();\n cmbDuration = new JComboBox();\n btnSubmit = new JButton(type);\n DateFormatSymbols cal = new DateFormatSymbols();\n monthNames = cal.getMonths();\n gbc = new GridBagConstraints();\n freeTimes = new ArrayList();\n usedTimes = new ArrayList();\n txtName.requestFocus();\n }",
"public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}"
] |
[
"0.79298407",
"0.7170307",
"0.71328",
"0.7114715",
"0.711288",
"0.70025796",
"0.70025796",
"0.70025796",
"0.6974922",
"0.692342",
"0.6852149",
"0.6852149",
"0.68201154",
"0.67261714",
"0.6691188",
"0.66607136",
"0.6642099",
"0.6614641",
"0.65890616",
"0.65816003",
"0.6555839",
"0.6482836",
"0.6453647",
"0.64021397",
"0.6401384",
"0.63882035",
"0.6360987",
"0.6348138",
"0.63371116",
"0.63355756",
"0.6333088",
"0.6330186",
"0.6304926",
"0.6298055",
"0.62965375",
"0.62930334",
"0.6280569",
"0.6276043",
"0.62755495",
"0.62735337",
"0.6273289",
"0.6272807",
"0.6271439",
"0.6268612",
"0.62624735",
"0.6240787",
"0.6205609",
"0.6191813",
"0.61917865",
"0.61810255",
"0.61744285",
"0.6171438",
"0.61698276",
"0.6167404",
"0.61635274",
"0.6159255",
"0.61563885",
"0.61448056",
"0.6141128",
"0.6135903",
"0.61354834",
"0.6132019",
"0.6129626",
"0.6124677",
"0.6107184",
"0.61022925",
"0.6095542",
"0.6095061",
"0.6092021",
"0.60844666",
"0.60807014",
"0.6077595",
"0.60758686",
"0.60697675",
"0.60685104",
"0.60659057",
"0.60622704",
"0.60600764",
"0.6055436",
"0.60534644",
"0.60531753",
"0.60497344",
"0.602836",
"0.6027475",
"0.60221577",
"0.6019325",
"0.60067016",
"0.6001083",
"0.5995294",
"0.59947944",
"0.59903824",
"0.5987138",
"0.5980443",
"0.59779906",
"0.5974851",
"0.59644246",
"0.59599626",
"0.5958074",
"0.5948921",
"0.5948888"
] |
0.6360476
|
27
|
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
|
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jMenuBar2 = new javax.swing.JMenuBar();
jMenu2 = new javax.swing.JMenu();
jMenu3 = new javax.swing.JMenu();
jPanel2 = new javax.swing.JPanel();
lblKonekcija = new javax.swing.JLabel();
lblPozadina = new javax.swing.JLabel();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jmiKreirajClana = new javax.swing.JMenuItem();
jmiPrikaziSve = new javax.swing.JMenuItem();
jmiStatistike = new javax.swing.JMenuItem();
jMenu4 = new javax.swing.JMenu();
jmiKreirajTakmicenje = new javax.swing.JMenuItem();
jmiKreirajTakmicara = new javax.swing.JMenuItem();
jmiRezultatTakmicenja = new javax.swing.JMenuItem();
jmiPrikaziTakmicare = new javax.swing.JMenuItem();
jMenu5 = new javax.swing.JMenu();
jmiKreirajPolaganje = new javax.swing.JMenuItem();
jmiRezultatPolaganja = new javax.swing.JMenuItem();
jMenu6 = new javax.swing.JMenu();
jmiKreirajTim = new javax.swing.JMenuItem();
jmiPogledajSveTimove = new javax.swing.JMenuItem();
jMenu2.setText("File");
jMenuBar2.add(jMenu2);
jMenu3.setText("Edit");
jMenuBar2.add(jMenu3);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
lblKonekcija.setFont(new java.awt.Font("Segoe UI", 0, 36)); // NOI18N
lblKonekcija.setForeground(new java.awt.Color(20, 34, 89));
lblKonekcija.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
lblPozadina.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addComponent(lblKonekcija, javax.swing.GroupLayout.DEFAULT_SIZE, 606, Short.MAX_VALUE)
.addContainerGap())
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(164, 164, 164)
.addComponent(lblPozadina, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(185, 185, 185))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addComponent(lblPozadina, javax.swing.GroupLayout.DEFAULT_SIZE, 260, Short.MAX_VALUE)
.addGap(18, 18, 18)
.addComponent(lblKonekcija, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE)
.addGap(29, 29, 29))
);
jMenuBar1.setBackground(new java.awt.Color(20, 34, 89));
jMenuBar1.setPreferredSize(new java.awt.Dimension(258, 40));
jMenu1.setForeground(new java.awt.Color(255, 255, 255));
jMenu1.setText("Clan");
jmiKreirajClana.setBackground(new java.awt.Color(20, 34, 89));
jmiKreirajClana.setForeground(new java.awt.Color(255, 255, 255));
jmiKreirajClana.setText("Kreiraj");
jMenu1.add(jmiKreirajClana);
jmiPrikaziSve.setBackground(new java.awt.Color(20, 34, 89));
jmiPrikaziSve.setForeground(new java.awt.Color(255, 255, 255));
jmiPrikaziSve.setText("Prikazi sve");
jMenu1.add(jmiPrikaziSve);
jmiStatistike.setBackground(new java.awt.Color(20, 34, 89));
jmiStatistike.setForeground(new java.awt.Color(255, 255, 255));
jmiStatistike.setText("Statistike clanova");
jMenu1.add(jmiStatistike);
jMenuBar1.add(jMenu1);
jMenu4.setForeground(new java.awt.Color(255, 255, 255));
jMenu4.setText("Takmicenje");
jmiKreirajTakmicenje.setBackground(new java.awt.Color(20, 34, 89));
jmiKreirajTakmicenje.setForeground(new java.awt.Color(255, 255, 255));
jmiKreirajTakmicenje.setText("Kreiraj takmicenje");
jMenu4.add(jmiKreirajTakmicenje);
jmiKreirajTakmicara.setBackground(new java.awt.Color(20, 34, 89));
jmiKreirajTakmicara.setForeground(new java.awt.Color(255, 255, 255));
jmiKreirajTakmicara.setText("Kreiraj takmicara");
jMenu4.add(jmiKreirajTakmicara);
jmiRezultatTakmicenja.setBackground(new java.awt.Color(20, 34, 89));
jmiRezultatTakmicenja.setForeground(new java.awt.Color(255, 255, 255));
jmiRezultatTakmicenja.setText("Unesi rezultate takmicenja");
jMenu4.add(jmiRezultatTakmicenja);
jmiPrikaziTakmicare.setBackground(new java.awt.Color(20, 34, 89));
jmiPrikaziTakmicare.setForeground(new java.awt.Color(255, 255, 255));
jmiPrikaziTakmicare.setText("Prikazi sve takmicare");
jMenu4.add(jmiPrikaziTakmicare);
jMenuBar1.add(jMenu4);
jMenu5.setForeground(new java.awt.Color(255, 255, 255));
jMenu5.setText("Polaganje");
jmiKreirajPolaganje.setBackground(new java.awt.Color(20, 34, 89));
jmiKreirajPolaganje.setForeground(new java.awt.Color(255, 255, 255));
jmiKreirajPolaganje.setText("Kreiraj polaganje");
jMenu5.add(jmiKreirajPolaganje);
jmiRezultatPolaganja.setBackground(new java.awt.Color(20, 34, 89));
jmiRezultatPolaganja.setForeground(new java.awt.Color(255, 255, 255));
jmiRezultatPolaganja.setText("Dodaj rezultate polaganja");
jMenu5.add(jmiRezultatPolaganja);
jMenuBar1.add(jMenu5);
jMenu6.setForeground(new java.awt.Color(255, 255, 255));
jMenu6.setText("Timovi");
jmiKreirajTim.setBackground(new java.awt.Color(20, 34, 89));
jmiKreirajTim.setForeground(new java.awt.Color(255, 255, 255));
jmiKreirajTim.setText("Kreiraj tim");
jMenu6.add(jmiKreirajTim);
jmiPogledajSveTimove.setBackground(new java.awt.Color(20, 34, 89));
jmiPogledajSveTimove.setForeground(new java.awt.Color(255, 255, 255));
jmiPogledajSveTimove.setText("Pogledaj sve timove");
jMenu6.add(jmiPogledajSveTimove);
jMenuBar1.add(jMenu6);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(0, 0, 0)
.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(0, 0, 0))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(0, 0, 0)
.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(1, 1, 1))
);
pack();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] |
[
"0.731952",
"0.72909003",
"0.72909003",
"0.72909003",
"0.72862417",
"0.7248404",
"0.7213685",
"0.72086793",
"0.7195972",
"0.71903807",
"0.71843296",
"0.7158833",
"0.71475875",
"0.70933676",
"0.7081167",
"0.7056787",
"0.69876975",
"0.6977383",
"0.6955115",
"0.6953839",
"0.69452274",
"0.6942602",
"0.6935845",
"0.6931919",
"0.6928187",
"0.6925288",
"0.69251484",
"0.69117147",
"0.6911646",
"0.6892842",
"0.68927234",
"0.6891408",
"0.68907607",
"0.68894386",
"0.68836755",
"0.688209",
"0.6881168",
"0.68787616",
"0.68757504",
"0.68741524",
"0.68721044",
"0.685922",
"0.68570775",
"0.6855737",
"0.6855207",
"0.68546575",
"0.6853559",
"0.6852262",
"0.6852262",
"0.68443567",
"0.6837038",
"0.6836797",
"0.68291426",
"0.6828922",
"0.68269444",
"0.6824652",
"0.682331",
"0.68175536",
"0.68167555",
"0.6810103",
"0.6809546",
"0.68085015",
"0.68083894",
"0.6807979",
"0.68027437",
"0.67950374",
"0.67937446",
"0.67921823",
"0.67911226",
"0.67900467",
"0.6788873",
"0.67881",
"0.6781613",
"0.67669237",
"0.67660683",
"0.6765841",
"0.6756988",
"0.675558",
"0.6752552",
"0.6752146",
"0.6742482",
"0.67395985",
"0.673791",
"0.6736197",
"0.6733452",
"0.67277217",
"0.6726687",
"0.67204696",
"0.67168",
"0.6714824",
"0.6714823",
"0.6708782",
"0.67071444",
"0.670462",
"0.67010295",
"0.67004406",
"0.6699407",
"0.6698219",
"0.669522",
"0.66916007",
"0.6689694"
] |
0.0
|
-1
|
End of variables declaration//GENEND:variables
|
public JMenuItem getJmiKreirajClana() {
return jmiKreirajClana;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo21779D() {\n }",
"public final void mo51373a() {\n }",
"protected boolean func_70041_e_() { return false; }",
"public void mo4359a() {\n }",
"public void mo21782G() {\n }",
"private void m50366E() {\n }",
"public void mo12930a() {\n }",
"public void mo115190b() {\n }",
"public void method_4270() {}",
"public void mo1403c() {\n }",
"public void mo3376r() {\n }",
"public void mo3749d() {\n }",
"public void mo21793R() {\n }",
"protected boolean func_70814_o() { return true; }",
"public void mo21787L() {\n }",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo21780E() {\n }",
"public void mo21792Q() {\n }",
"public void mo21791P() {\n }",
"public void mo12628c() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo97908d() {\n }",
"public void mo21878t() {\n }",
"public void mo9848a() {\n }",
"public void mo21825b() {\n }",
"public void mo23813b() {\n }",
"public void mo3370l() {\n }",
"public void mo21879u() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo21785J() {\n }",
"public void mo21795T() {\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 }",
"public void m23075a() {\n }",
"public void mo21789N() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo21794S() {\n }",
"public final void mo12688e_() {\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public void mo6944a() {\n }",
"public static void listing5_14() {\n }",
"public void mo1405e() {\n }",
"public final void mo91715d() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public void mo9137b() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void func_70295_k_() {}",
"void mo57277b();",
"public void mo21877s() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"void berechneFlaeche() {\n\t}",
"public void mo115188a() {\n }",
"public void mo21880v() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void mo21784I() {\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public void mo56167c() {\n }",
"public void mo44053a() {\n }",
"public void mo21781F() {\n }",
"public void mo2740a() {\n }",
"public void mo21783H() {\n }",
"public void mo1531a() {\n }",
"double defendre();",
"private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }",
"public void stg() {\n\n\t}",
"void m1864a() {\r\n }",
"private void poetries() {\n\n\t}",
"public void skystonePos4() {\n }",
"public void mo2471e() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void yy() {\n\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }",
"static void feladat4() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }",
"public void furyo ()\t{\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"protected void mo6255a() {\n }"
] |
[
"0.6359434",
"0.6280371",
"0.61868024",
"0.6094568",
"0.60925734",
"0.6071678",
"0.6052686",
"0.60522056",
"0.6003249",
"0.59887564",
"0.59705925",
"0.59680873",
"0.5967989",
"0.5965816",
"0.5962006",
"0.5942372",
"0.5909877",
"0.5896588",
"0.5891321",
"0.5882983",
"0.58814824",
"0.5854075",
"0.5851759",
"0.58514243",
"0.58418584",
"0.58395296",
"0.5835063",
"0.582234",
"0.58090156",
"0.5802706",
"0.5793836",
"0.57862717",
"0.5784062",
"0.5783567",
"0.5782131",
"0.57758564",
"0.5762871",
"0.5759349",
"0.5745087",
"0.57427835",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.57326084",
"0.57301426",
"0.57266665",
"0.57229686",
"0.57175463",
"0.5705802",
"0.5698347",
"0.5697827",
"0.569054",
"0.5689405",
"0.5686434",
"0.56738997",
"0.5662217",
"0.56531453",
"0.5645255",
"0.5644223",
"0.5642628",
"0.5642476",
"0.5640595",
"0.56317437",
"0.56294966",
"0.56289655",
"0.56220204",
"0.56180173",
"0.56134313",
"0.5611337",
"0.56112075",
"0.56058615",
"0.5604383",
"0.5602629",
"0.56002104",
"0.5591573",
"0.55856615",
"0.5576992",
"0.55707216",
"0.5569681",
"0.55570376",
"0.55531484",
"0.5551123",
"0.5550893",
"0.55482954",
"0.5547471",
"0.55469507",
"0.5545719",
"0.5543553",
"0.55424106",
"0.5542057",
"0.55410767",
"0.5537739",
"0.55269134",
"0.55236584",
"0.55170715",
"0.55035424",
"0.55020875"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
public void createemployee(Employeee em) {
employeerepo.save(em);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
public void updateemployee(Employeee em) {
employeerepo.save(em);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
public List<Employeee> findAll(Class c) {
return employeerepo.findAll();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
public Optional<Employeee> findById(int id) {
return employeerepo.findById(id);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
public Optional<Employeee> findByUuid(String uuid) {
return employeerepo.findByUuid(uuid);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
public void delete(Employeee em) {
employeerepo.delete(em);
}
|
{
"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
|
Spring Data JPA repository for the StudentClassLog entity.
|
@SuppressWarnings("unused")
@Repository
public interface StudentClassLogRepository extends JpaRepository<StudentClassLog, Long>, JpaSpecificationExecutor<StudentClassLog> {
List<StudentClassLog> findByStudent_Id(Long studentId);
@Query(nativeQuery = true, value = "select count(0) as studentClassLogCount from student_class_log where arrangement_id = :1")
Integer getStudentClassLogCount(Long arrangementId);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Repository\npublic interface StudentRepository extends JpaRepository<Student,Long> {\n}",
"public interface StudentRepository extends CrudRepository<Student, Long> {\n}",
"@Repository\npublic interface RimsMmsLogRepository extends CrudRepository<RimsMmsLog, Long> {\n}",
"public interface StudentRepository extends JpaRepository<Student,Integer> {\n\n}",
"public interface UserLogRepository extends JpaRepository<UserLog,Integer> {\n}",
"public interface StudentRespository extends JpaRepository<Student, Long> {\n List<Student> findAll();\n}",
"public interface StudentScoreDao extends JpaRepository<StudentScoreEntity, Long> {\n}",
"public interface StudentCrudRepository extends CrudRepository<Student,Integer> {\r\n}",
"@Transactional\npublic interface StudentRepository extends JpaRepository<Student,Long> {\n}",
"@Repository\npublic interface HistoryRepository extends JpaRepository<LoginHistory, String> {\n\n}",
"@Repository(\"emailLogRepository\")\npublic interface EmailLogRepository extends JpaRepository<EmailLogDB, Integer>{\n}",
"public interface RenLogEntityRepository extends JpaRepository<RenLogEntity, String> {\n\n List<RenLogEntity> findRenLogEntitiesByRtid(String rtid);\n\n}",
"@Repository\npublic interface LogEntryRepository extends JpaRepository<LogEntry, Long> {\n /**\n * Find all bans.\n *\n * @param roomId the room id\n * @return the list\n */\n @Transactional\n @Query(value = \"SELECT * FROM LOG_BAN WHERE room = ?1\", nativeQuery = true)\n List<LogBan> findAllBans(long roomId);\n\n /**\n * Find all joins.\n *\n * @param roomId the room id\n * @return the list\n */\n @Transactional\n @Query(value = \"SELECT * FROM LOG_JOIN WHERE room = ?1\", nativeQuery = true)\n List<LogJoin> findAllJoins(long roomId);\n\n /**\n * Find all questions.\n *\n * @param roomId the room id\n * @return the list\n */\n @Transactional\n @Query(value = \"SELECT * FROM LOG_QUESTION WHERE room = ?1\", nativeQuery = true)\n List<LogQuestion> findAllQuestions(long roomId);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface EventLoggingRepository extends JpaRepository<EventLogging, Long> {\n}",
"public interface UMergeLogRepository extends JpaRepository<UMergeLog,Integer> {\n}",
"@Repository\npublic interface SimulationRepository extends CrudRepository<Simulation, Serializable> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CaptureCollegeRepository extends JpaRepository<CaptureCollege, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface HrmsActionDisciplinaryRepository extends JpaRepository<HrmsActionDisciplinary, Long> {\n\n}",
"@Repository\npublic interface SprintRepository extends JpaRepository<Sprint,Integer> {\n}",
"public interface StudioRepository extends CrudRepository<Studio, Long> {\n}",
"public interface IStudentDao extends CrudRepository<Student, String> {\n\t\n\tpublic Student findByRut(String rut);\n\t\n\tpublic void deleteByRut(String rut);\n\n}",
"public interface StudentRepository extends JpaRepository<Student,Integer> {\n\n Student findAdminByNum(Long num);\n\n Student findAdminByName(String name);\n\n\n}",
"public interface InventoryUserLoginHistoryRepository extends JpaRepository<InventoryUserLoginHistory,Serializable> {\n}",
"@Query(\"from Student\")\n\tList<Student> findAllStudents();",
"public interface CourseRepository extends CrudRepository<Courses, String> { }",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ClassDurationRepository extends JpaRepository<ClassDuration, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface LevelDressageHisRepository extends JpaRepository<LevelDressageHis, Long> {\n\n}",
"@Repository\npublic interface MarkJpaRepository extends JpaRepository<MarkPO, Integer> {\n List<MarkPO> findAllByStudentPO(StudentPO studentPO);\n\n MarkPO findByStudentPOAndAndSubjectPO(StudentPO studentPO, SubjectPO subjectPO);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface InvoiceHistoryRepository extends JpaRepository<InvoiceHistory, Long> {\n}",
"public interface LossRepository extends JpaRepository<Loss,Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ProjectHistoryRepository extends JpaRepository<ProjectHistory, Long> {\n\n}",
"public interface StudyTypeRepository extends JpaRepository<StudyType,Long>{\n\n}",
"@Repository\npublic interface StudentRepository extends JpaRepository<Student, Integer>\n , QueryDslPredicateExecutor<Student>{\n\n}",
"@Repository\npublic interface SkillRepository extends JpaRepository<Skill, String> {\n}",
"@Repository\npublic interface CourseRepository extends CrudRepository<Course, String> {\n\n\tpublic List<Course> findByTopicId(String topicId);\n}",
"public interface CustomerAuditRepository extends JpaRepository<CustomerAudit, Long>{\n\n}",
"public interface LoggerJPA extends\n JpaRepository<LoggerEntity,Long>,\n JpaSpecificationExecutor<LoggerEntity>,\n Serializable {\n}",
"@Repository\npublic interface UserRepository extends CrudRepository<User, Integer>{\n User findByUserName(String userName);\n User findByToken(String token);\n User findByPartnerId(int id);\n User findByStudentId(int id);\n User findByStudentIdAndStatus(int id, String status);\n List<User> findByRole(Role role);\n}",
"public interface StudentRepository extends JpaRepository<Student,Integer> {\n\n /* @Modifying\n @Query(value = \"INSERT INTO t_student (name,age,comment) VALUES (,?1, ?2)\", nativeQuery=true)\n public Student addStudent(Student student);*/\n\n @Query(value = \"select DATABASE();\",nativeQuery = true)\n public String getDataBaseName();\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface StudyRepository extends JpaRepository<Study, Long> {\n\n}",
"@Repository\npublic interface StudentRep extends JpaRepository<Student, String>, JpaSpecificationExecutor<Student> {\n\n List<Student> findByMName(String name);\n List<Student> findByMId(String Id);\n\n @Query(\"select s from student s where s.mName like ?1%\")\n List<Student> findByLikeName(String likeName);\n\n}",
"@Repository\npublic interface BookRepository extends JpaRepository<Book, Long> {\n\n}",
"public interface AcademicProfileRepo extends CrudRepository<AcademicProfile, Integer> {\n AcademicProfile findBySchoolId(String schoolId);\n}",
"@Repository\npublic interface TeacherRepository extends JpaRepository<Teacher, Long> {\n}",
"public interface RolRepository extends JpaRepository<Rol,Long> {\n\n}",
"@Repository\npublic interface QuestionRepository extends CrudRepository<Question, Long> {\n\n}",
"Student findByLastName(String lastName);",
"@Override\n\tpublic LogRepository<CreditrepayplanLog> getLogRepository() {\n\t\treturn creditrepayplanLogRepository;\n\t}",
"@Autowired\n public StudentsService(StudentsRepository studentsRepository, GroupRepository groupRepository) {\n this.studentsRepository = studentsRepository;\n this.groupRepository = groupRepository;\n }",
"@Repository\npublic interface CourseRecordDao extends JpaRepository<CourseRecord, Long> {\n List<CourseRecord> findByCourse_User(User user);\n}",
"public interface LogDAO extends JpaRepository<Log,Integer> {\n\n List<Log> findAllByUsername(String username,Sort sort);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CsrpRepository extends JpaRepository<Csrp, Long> {\n\n}",
"@Repository\npublic interface DistrictRepository extends JpaRepository<District, Long> {}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CashLoadRepository extends JpaRepository<CashLoad, Long> {\n\n}",
"@Repository\r\npublic interface AssignmentRepository extends CrudRepository<Assignment, String> {\r\n\r\n}",
"public interface GirosLinRepository extends JpaRepository<GirosLin,Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ContractDocumentEntryRowRepository extends JpaRepository<ContractDocumentEntryRow, Long> {\n\n}",
"public interface StatRepository extends CrudRepository<Stat, Long> {\n\t//Search function to find stats by percent used in the main controller\n\tList<Stat> findByPercent(int percent);\n}",
"List<Student> findAllByStatus(Student.Status status);",
"@Repository\npublic interface TipPercentRepository extends CrudRepository<TipPercent, Long>{\n}",
"@Repository\npublic interface SysUserRepository extends JpaRepository<SysUser,Integer> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface LevelRepository extends JpaRepository<Level,Long> {\n \n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SequenceRepository extends JpaRepository<Sequence, Long> {\n\n}",
"public interface TerminalRepository extends CrudRepository<Terminal, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SaleRepository extends JpaRepository<Sale, Long> {}",
"public interface RecordRepository extends CrudRepository<Record, Integer> {\n}",
"public interface RoleRepository extends JpaRepository<Role, Long>{\n}",
"public interface SurveyRepository extends JpaRepository<Survey,Integer>{\n}",
"public interface BookRepository extends CrudRepository<Book,String>{\n}",
"@Repository\npublic interface RoleRepository extends JpaRepository<Role, Long> {\n}",
"@Repository\npublic interface CourseRepository extends PagingAndSortingRepository<Course, Long>, JpaSpecificationExecutor<Course> {\n \n\t//根据课程id查询课程表\n\t@Query(value=\"SELECT c.*, ch.*, cl.* FROM t_course c LEFT JOIN t_chapter ch ON c.id = ch.course_id LEFT JOIN t_course_lesson cl ON cl.chapter_id = ch.id WHERE c.id = ?1\",nativeQuery = true)\n\tList<Course> findByCourseId(Long courseId);\n\t\n\t//根据用户id查询课程表\n\t@Query(value=\"SELECT c.* FROM t_course c LEFT JOIN t_user u ON c.user_id = u.id WHERE c.user_id = ?1\",nativeQuery = true)\n\tList<Course> findByUserId(Long userId);\n\t\n\t//根据课程类型查询课程列表\n\tPage<Course> findAllByCourseType(String courseType, Pageable pageable);\n\t\n\t//根据课程来源查询课程列表\n\tPage<Course> findAllByCourseSource(String courseSource, Pageable pageable);\n\t\n\t//根据课程来源及课程类型查询课程列表\n\tPage<Course> findAllByCourseSourceAndCourseType(String courseSource, String courseType, Pageable pageable);\n\t\n\tList<Course> findAll();\n\t\n\tvoid saveAndFlush(Course course);\n\t\n}",
"public interface PurchaseRecordDetailRepository extends JpaRepository<PurchaseRecordDetail, Long> {\r\n}",
"@SuppressWarnings(\"unused\")\npublic interface PositionMoveRecordRepository extends JpaRepository<PositionMoveRecord,Long> {\n\n}",
"public interface SecurityStudentOutPassRepository extends JpaRepository<SecurityStudentOutPass, String> {\n SecurityStudentOutPass findByOutpassid(String outpassid);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface HorarioDisponivelRepository extends JpaRepository<HorarioDisponivel, Long> {\n\n}",
"@Repository\npublic interface StatusRepository extends IRepository<Status, String> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ProfissionalSaudeRepository extends JpaRepository<ProfissionalSaude, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SysPostRepository extends JpaRepository<SysPost, Long> {\n}",
"public interface LocationLogRepository extends JpaRepository<LocationLog,Long> {\n\n\n\tOptional<LocationLog> findOneById(Long id);\n\n @Query(\"select locationLog from LocationLog locationLog where locationLog.user.login = ?#{principal.username}\")\n List<LocationLog> findByUserIsCurrentUser();\n \n @Query(value=\"select locationLog from LocationLog locationLog where locationLog.user.id in (select id from User user where user.createdBy = ?#{principal.username} or user.login = ?#{principal.username}) and locationLog.createdDateTime between :fromDate and :toDate\",\n \t\tcountQuery = \"select count(locationLog) from LocationLog locationLog where locationLog.user.id in (select id from User user where user.createdBy = ?#{principal.username} or user.login = ?#{principal.username}) and locationLog.createdDateTime between :fromDate and :toDate\")\n \t\t\t\t\n Page<LocationLog> findLogsForLoggedInUser(@Param(\"fromDate\") long fromDate,@Param(\"toDate\") long toDate,Pageable pageable);\n \n \n @Query(\"select locationLog from LocationLog locationLog where locationLog.user.id =:id and locationLog.createdDateTime between :fromDate and :toDate order by locationLog.createdDateTime \")\n LinkedList<LocationLog> listLocationPath(@Param(\"id\") Long id ,@Param(\"fromDate\") long fromDate,@Param(\"toDate\") long toDate);\n \n \n @Query(\"select locationLog from LocationLog locationLog where locationLog.id in (select max(id) from LocationLog where user.id in (select id from User user where user.createdBy = ?#{principal.username} or user.login = ?#{principal.username}) group by user.id ) \")\n \n List<LocationLog> getlatestLocations();\n \n \n @Query(nativeQuery = true)\n List<LiveLogs> getLiveLogs( @Param(\"userName\") String userName,@Param(\"dateTime\") long dateTime,@Param(\"hour\") int hour );\n \n @Query(\"select locationLog from LocationLog locationLog where locationLog.user.login = ?#{principal.username} order by createdDateTime desc\")\n List<LocationLog> latestLogForGPS(@Param(\"pageable\") Pageable pageable);\n \n @Query(\"select locationLog from LocationLog locationLog where locationLog.user.login = ?#{principal.username} and locationLog.createdDateTime <= :createdDateTime order by createdDateTime desc\")\n List<LocationLog> latestLogForNP(@Param(\"pageable\") Pageable pageable,@Param(\"createdDateTime\") long createdDateTime);\n \n @Query(\"select locationLog from LocationLog locationLog where locationLog.id in (select max(id) from LocationLog log where log.user.login =:login)\")\n LocationLog getlatestLocation(@Param(\"login\") String login);\n \n \n}",
"@Repository\npublic interface RoleRepository extends JpaRepository<Role,Integer>{\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface AnuncioHistoricoRepository extends JpaRepository<AnuncioHistorico, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\n\npublic interface SellContractCustomerRepository extends JpaRepository<SellContractCustomer, Long> {\n\n SellContractCustomer findByCustomer_Id(Long customerId);\n\n List<SellContractCustomer> findAllBySellContract_Id(Long sellContractId);\n\n}",
"@GetMapping(\"/students/{studentId}\")\n @ApiOperation(value = \"Search StudyClasses by its students\")\n public List<StudyClassDTO> findByStudentStudentId(\n @ApiParam(value = \"The student studentId\") @PathVariable String studentId) {\n return studyClassService.findByStudentStudentId(studentId);\n }",
"public interface DistributeBookRepository extends CrudRepository<DistributeBook, Integer>,DistributeBookRepositoryCustom {\n}",
"public interface RoleRepository extends CrudRepository<Role, Long>{\n}",
"public interface RepositoryLineMhc extends JpaRepository<LineMhc, Long> {\n\n\tpublic LineMhc findByOid( Long oid );\n\tpublic LineMhc findByName( String name );\n\n}",
"public interface LogDetailRepository extends CrudRepository<LogDetail, Long> {\n List<LogDetail> findByLogIdIn(List<Long> LogIds);\n\n\n}",
"public interface JobHistoryRepository extends CrudRepository<JobHistoryEntity,Long> {\n List<JobHistoryEntity> findByJob(JobEntity file);\n}",
"@Repository\npublic interface CommitRepository extends JpaRepository<CommitEntity,Long> {\n\n Optional<CommitEntity> findByCommitId(String commitId);\n boolean existsByCommitId(String commitId);\n List<CommitEntity> findAllByClassFile(ClassFileEntity classFile);\n Page<CommitEntity> findAllByClassFile_Project(ProjectEntity project, Pageable pageable);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ShipmentActivityRepository extends JpaRepository<ShipmentActivity, Long> {}",
"public interface RoleRepository extends CrudRepository<Role, Long> {\n}",
"@Repository\npublic interface EmployeeStoreRepository extends JpaRepository<EmployeeStore,String>{\n\n}",
"@Repository\npublic interface RepositoryOrgTaskTracker extends JpaRepository<OrgTaskTracker, Integer>{\n}",
"public interface RatingRepository extends CrudRepository<Rating, String>{\n\n}",
"public interface RepairRepository extends JpaRepository<Repair,Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CategorieRessourcesRepository extends JpaRepository<CategorieRessources, Long> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ModulosRepository extends JpaRepository<Modulos,Long> {\n \n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SourceCodeRepository extends JpaRepository<SourceCode,Long> {\n\n List<SourceCode> findAllBySoftwareSystemTag(String tag);\n\n}",
"public interface StudentService {\n List<Student> findAllStudent();\n List<Student> findByparam(String name);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CourrierArriveRepository extends JpaRepository<CourrierArrive, Long> {\n\n}"
] |
[
"0.6526937",
"0.64219964",
"0.6239784",
"0.6228862",
"0.6223319",
"0.6222138",
"0.61192125",
"0.60900664",
"0.6031969",
"0.59735304",
"0.5940359",
"0.58677894",
"0.5800995",
"0.5741723",
"0.57396585",
"0.56471854",
"0.5631774",
"0.56290257",
"0.56198925",
"0.5609086",
"0.55963653",
"0.5596081",
"0.5567667",
"0.5548391",
"0.5531149",
"0.5522841",
"0.5516608",
"0.54970926",
"0.54960465",
"0.54910356",
"0.54842424",
"0.54661465",
"0.5449072",
"0.5434127",
"0.54316694",
"0.5412896",
"0.5411166",
"0.5398027",
"0.53953314",
"0.53921807",
"0.53716475",
"0.5351358",
"0.5350754",
"0.53474385",
"0.5338422",
"0.5332344",
"0.53260136",
"0.5322098",
"0.53177005",
"0.53168696",
"0.5309363",
"0.53029054",
"0.52949697",
"0.5280188",
"0.5273739",
"0.52694154",
"0.52693725",
"0.5268065",
"0.5266391",
"0.5261855",
"0.5255959",
"0.52554625",
"0.5250566",
"0.52456206",
"0.5240229",
"0.5232126",
"0.5227372",
"0.5223546",
"0.5219859",
"0.5218236",
"0.52155846",
"0.5215148",
"0.5211827",
"0.52117115",
"0.52085036",
"0.5208457",
"0.52070254",
"0.5199854",
"0.5196265",
"0.5186675",
"0.518231",
"0.51775086",
"0.5170445",
"0.51561385",
"0.51557434",
"0.5151251",
"0.5150885",
"0.5150702",
"0.515053",
"0.515022",
"0.515015",
"0.51482826",
"0.51414686",
"0.5133337",
"0.5124252",
"0.51234025",
"0.51233745",
"0.512053",
"0.5119143",
"0.5119016"
] |
0.6731727
|
0
|
rooftype er bare en string. ku evt laves om til et object
|
public static List<String> getAllRoofTypes() throws UserException {
List<String> rooftypeList = new ArrayList<>();
try (Connection connection = database.connect()) {
String sql = "SELECT * FROM fog.roof_types;";
try (PreparedStatement ps = connection.prepareStatement(sql)) {
ResultSet rs = ps.executeQuery();
while (rs.next()) {
String roofType = rs.getString("roof_type");
rooftypeList.add(roofType);
}
return rooftypeList;
} catch (SQLException ex) {
throw new UserException(ex.getMessage());
}
} catch (SQLException | UserException ex) {
throw new UserException("Connection to database could not be established");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static String toString(Object o,byte type) throws ExecException {\n try {\n switch (type) {\n case INTEGER:\n return ((Integer)o).toString();\n\n case LONG:\n return ((Long)o).toString();\n\n case FLOAT:\n return ((Float)o).toString();\n\n case DOUBLE:\n return ((Double)o).toString();\n\n case DATETIME:\n return ((DateTime)o).toString();\n\n case BYTEARRAY:\n return ((DataByteArray)o).toString();\n\n case CHARARRAY:\n return ((String)o);\n\n case BIGINTEGER:\n return ((BigInteger)o).toString();\n\n case BIGDECIMAL:\n return ((BigDecimal)o).toString();\n\n case NULL:\n return null;\n\n case BOOLEAN:\n return ((Boolean)o).toString();\n\n case BYTE:\n return ((Byte)o).toString();\n\n case MAP:\n case INTERNALMAP:\n case TUPLE:\n case BAG:\n case UNKNOWN:\n default:\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to a String\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n } catch (ClassCastException cce) {\n throw cce;\n } catch (ExecException ee) {\n throw ee;\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to String.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n }",
"String objectRead();",
"public static String stringType(Obj type) {\n\t\tString str = ObjStr.get(type);\n\t\t\treturn str != null ? str : \"\";\n\t}",
"static int type_of_rpo(String passed){\n\t\treturn 1;\n\t}",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"public abstract String getObjectType();",
"String getTypeAsString();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"static int type_of_rz(String passed){\n\t\treturn 1;\n\t}",
"public String getText(Object object) {\n\t\tString retVal = getString(\"_UI_JuristType_type\");\n\t\tif( object instanceof JuristType ) {\n\t\t\tretVal += \" \" + ( ( JuristType ) object ).getName( );\n\t\t}\n\t\treturn retVal;\n\t}",
"@Override\n\tpublic Object getAsObject(FacesContext ctx, UIComponent component, String str) {\n\t\tif(str != null && !str.equals(\"\")){\n\t\t\tRelogioBean relogioBean = (RelogioBean) ctx.getApplication().getELResolver().\n\t\t\t\t\tgetValue(ctx.getELContext(), null, \"relogioBean\");\n\t\t\tRelogioFacade relogioFacade = relogioBean.getRelogioFacade();\n\t\t\tRelogio relogio = new Relogio(); \n\t\t\trelogio = relogioFacade.findById(relogio, new Integer(str));\t\t\t\n\t\t\treturn relogio;\n\t\t}\n\t\treturn null;\n\t}",
"protected abstract String getType();",
"@Override\n public String getType()\n {\n return \"OO\";\n }",
"@java.lang.Override\n public java.lang.String getO() {\n java.lang.Object ref = o_;\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 o_ = s;\n return s;\n }\n }",
"public static void main(String[] args) {\n Object obj1 = obterString();\n String s1 = (String) obj1; //downcasting Object para String\n\n Object obj2 = \"Minha String\";//upcasting String para Object\n String s2 = (String) obj2; //downcasting obj2 referencia uma string diretamente\n\n Object obj3 = new Object();\n String s3 = (String) obj3; //ex de downcasting vai falhar em execucao\n // nao faz referencia a uma string\n\n Object obj4 = obterInteiro();\n String s4 = (String) obj4;//nao funciona em tempo de execucao\n }",
"@Override\n\tpublic T get(String obj) {\n\t\treturn null;\n\t}",
"abstract public String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"private static String getString(Object obj) {\n\t\tif (obj.getClass().isArray()) {\n\t\t\treturn array(obj);\n\t\t} else if (obj instanceof Map) {\n\t\t\treturn map(obj);\n\t\t} else if (obj instanceof Collection) {\n\t\t\treturn collection(obj);\n\t\t} else {\n\t\t\t// return obj.toString();\n\t\t\treturn obj(obj);\n\t\t}\n\t}",
"protected void typeMismatch(Object obj) {\n\t\ttypeMismatch(obj.toString());\n\t}",
"@Override abstract public String type();",
"String getString() throws IOException {\n\n\t\t\tString encoding;\n\n\t\t\tswitch (this.type) {\n\n\t\t\t// Not all are ISO-8859-1 but it's the closest thing\n\t\t\tcase DerParser.NUMERIC_STRING:\n\t\t\tcase DerParser.PRINTABLE_STRING:\n\t\t\tcase DerParser.VIDEOTEX_STRING:\n\t\t\tcase DerParser.IA5_STRING:\n\t\t\tcase DerParser.GRAPHIC_STRING:\n\t\t\tcase DerParser.ISO646_STRING:\n\t\t\tcase DerParser.GENERAL_STRING:\n\t\t\t\tencoding = \"ISO-8859-1\";\n\t\t\t\tbreak;\n\n\t\t\tcase DerParser.BMP_STRING:\n\t\t\t\tencoding = \"UTF-16BE\";\n\t\t\t\tbreak;\n\n\t\t\tcase DerParser.UTF8_STRING:\n\t\t\t\tencoding = \"UTF-8\";\n\t\t\t\tbreak;\n\n\t\t\tcase DerParser.UNIVERSAL_STRING:\n\t\t\t\tthrow new IOException(\"Invalid DER: can't handle UCS-4 string\");\n\n\t\t\tcase DerParser.OID:\n\t\t\t\treturn getObjectIdentifier(this.value);\n\t\t\tdefault:\n\t\t\t\tthrow new IOException(String.format(\"Invalid DER: object (%d) is not a string\", this.type));\n\t\t\t}\n\n\t\t\treturn new String(this.value, encoding);\n\t\t}",
"public String typeOf() { return null; }",
"@Test\n\tpublic void testGetBadHealingItemMessage() {\n\t\tString testString = new String();\n\t\tassertEquals(testString.getClass(), testHospital.getBadHealingItemMessage().getClass());\n\t}",
"public String type();",
"@Override\n\tpublic String getAsString(FacesContext ctx, UIComponent component, Object obj) {\n\t\tif(obj == null || obj.equals(\"\")){\n\t\t\treturn null;\n\t\t}else{\n\t\t\tRelogio relogio = (Relogio) obj;\n\t\t\treturn String.valueOf(relogio.getId());\n\t\t}\n\t}",
"static int type_of_rpe(String passed){\n\t\treturn 1;\n\t}",
"public abstract String mo83558a(Object obj);",
"final protected String valueOf(Object obj) {\r\n if (obj == null) {\r\n return null;\r\n }\r\n return String.valueOf(obj);\r\n }",
"@Test\n public void testRequireAtomString_GenericType() {\n LOGGER.info(\"requireAtomString\");\n Atom actual = null;\n final Atom expected = null;\n boolean caught = false;\n try {\n actual = requireAtomString(null);\n } catch (final ClassCastException ex) {\n caught = true;\n assertEquals(\"\", ex.getMessage());\n }\n assertTrue(caught);\n assertEquals(expected, actual);\n }",
"public static void main(String[] args) {\n\t\tObject o3=\"chandan\";\n String n1=(String)o3;\n\t\t\n\t}",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public static Obj enumType(String type) {\n\t\tif ((type != null) && !type.isEmpty() && (StrObj.containsKey(type)))\n\t\t\treturn StrObj.get(type);\n\t\telse\n\t\t\treturn Obj.UNKOBJ;\n\t}",
"java.lang.String getSubType();",
"@Override\r\n\tpublic String getAsString(FacesContext context, UIComponent component,\r\n\t\t\tObject object) {\n\t\tloggerService.logPortalInfo(\" start getAsString method of ServiceConverter \");\r\n\t\tif (object instanceof String)\r\n\t\t\treturn null;\r\n\t\tif (object != null) {\r\n\t\t\treturn String.valueOf(((ProductTypeDTO) object).getId());\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}",
"private String getStringValue(Object o) {\n if (o instanceof String) {\n return (String) o;\n } else if (o instanceof NodeArray) {\n NodeArray array = (NodeArray) o;\n switch (array.size()) {\n case 0:\n return null;\n case 1: {\n return getStringValue(array.get(0));\n }\n default:\n return getStringValue(array);\n }\n } else if (o instanceof Node) {\n return getStringValue((Node) o);\n } else if (o != null) {\n return o.toString();\n }\n return null;\n }",
"static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}",
"static int type_of_rrc(String passed){\n\t\treturn 1;\n\t}",
"public String asString();"
] |
[
"0.65540904",
"0.6385517",
"0.6370062",
"0.62401664",
"0.6193416",
"0.6193416",
"0.6193416",
"0.6193416",
"0.6193416",
"0.6193416",
"0.6193416",
"0.6193416",
"0.6193416",
"0.6193416",
"0.6193416",
"0.6193416",
"0.6193416",
"0.61665535",
"0.6105405",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.60287625",
"0.6021549",
"0.593311",
"0.5903532",
"0.5895391",
"0.5860903",
"0.58423024",
"0.5817203",
"0.57850015",
"0.5775935",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5771159",
"0.5767655",
"0.57638216",
"0.5732052",
"0.572926",
"0.5725572",
"0.5713544",
"0.5710376",
"0.5696307",
"0.5690113",
"0.5684147",
"0.56832725",
"0.56760466",
"0.5670184",
"0.56580126",
"0.56580126",
"0.56580126",
"0.56580126",
"0.56580126",
"0.56580126",
"0.56580126",
"0.56580126",
"0.56482184",
"0.564154",
"0.56251925",
"0.5613439",
"0.56013966",
"0.5588198",
"0.5585142"
] |
0.0
|
-1
|
assumption: A1 and A2 are not null no duplication in A2
|
public int[] sortSpecial(int[] A1, int[] A2) {
Integer[] intergerArray = toIntegerArray(A1);
Arrays.sort(intergerArray, new MyComparator(A2));
toIntArray(intergerArray, A1);
return A1;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static <F> /*@ pure @*/ boolean elem_equals(F item1,\n F item2) {\n return (item1 != null && item1.equals(item2))\n\t || (item1 == null && item2 == null);\n }",
"boolean hasIsEquivalent();",
"public void testValidateSubjectPrimaryAssociationsDuplicate() throws Exception {\n positionWrapperBean.addNewSubjectPrimaryAssociation();\n positionWrapperBean.addNewSubjectPrimaryAssociation();\n List subjectPrimaryAssociations = positionWrapperBean.getSubjectPrimaryAssociations();\n for (int i = 0; i < subjectPrimaryAssociations.size(); i++) {\n ArtefactAssociationWrapperBean artefactAssociationWrapperBean = (ArtefactAssociationWrapperBean) subjectPrimaryAssociations.get(i);\n artefactAssociationWrapperBean.setSourceId(new Long(12));\n artefactAssociationWrapperBean.setQualifierId(new Long(399));\n }\n // should produce a duplicate assocition error\n DataBinder binder = new DataBinder(positionWrapperBean, ZynapDefaultFormController.DEFAULT_COMMAND_NAME);\n Errors errors = binder.getBindingResult();\n positionValidator.validateSubjectPrimaryAssociations(positionWrapperBean, errors);\n assertEquals(1, errors.getErrorCount());\n FieldError error = errors.getFieldError(FIRST_PRIMARY_ASSOCIATION_SOURCE_FIELD);\n assertEquals(\"error.association.target.unique.required\", error.getCode());\n }",
"@Override\n public Tuple nonDistinctNext() {\n //function takes tuples from o2, merges them with t1 from o1 and\n //evaluates them, if it finds a fitting Tuple, returns the result of merge;\n while (tuple1 != null) {\n Tuple tuple2 = o2.nonDistinctNext();\n\n while (tuple2 != null) {\n Tuple result = tupleTrans.transform(new Tuple(tuple1, tuple2));\n if (result != null) {\n return result;\n }\n tuple2 = o2.nonDistinctNext();\n }\n\n //if o2 runs out of Tupes, new t1 is taken from o1 and o2 is reset\n tuple1 = o1.nonDistinctNext();\n o2.reset();\n }\n //if o1 runs out of tuples (t1 == null), the operator is at the end\n return null;\n }",
"static void findDuplicate()\n\t{\n\n\t\tList<String> oList = null;\n\t\tSet<String> oSet = null;\n\t\ttry {\n\t\t\toList = new ArrayList<String>();\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Dog\");\n\t\t\toList.add(\"Eagle\");\n\t\t\toList.add(\"Frog\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\toList.add(\"Apple\");\n\t\t\toList.add(\"Boy\");\n\t\t\tSystem.out.println(oList);\n\t\t\t\n\t\t\toSet = new TreeSet<>();\n\t\t\t\n\t\t\tString s = \"\";\n\t\t\tfor(int i=0;i<oList.size();i++)\n\t\t\t{\n\t\t\t\tif((oSet.add(oList.get(i))==false) && (!s.contains(oList.get(i))))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Duplicate: \"+oList.get(i));\n\t\t\t\t\ts+=oList.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\toList = null;\n\t\t\toSet = null;\n\t\t}\n\t}",
"@Test\r\n void test_insert_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n }\r\n\r\n }",
"public void testEquals() {\n TaskSeries s1 = new TaskSeries(\"S\");\n s1.add(new Task(\"T1\", new Date(1), new Date(2)));\n s1.add(new Task(\"T2\", new Date(11), new Date(22)));\n TaskSeries s2 = new TaskSeries(\"S\");\n s2.add(new Task(\"T1\", new Date(1), new Date(2)));\n s2.add(new Task(\"T2\", new Date(11), new Date(22)));\n TaskSeriesCollection c1 = new TaskSeriesCollection();\n c1.add(s1);\n c1.add(s2);\n TaskSeries s1b = new TaskSeries(\"S\");\n s1b.add(new Task(\"T1\", new Date(1), new Date(2)));\n s1b.add(new Task(\"T2\", new Date(11), new Date(22)));\n TaskSeries s2b = new TaskSeries(\"S\");\n s2b.add(new Task(\"T1\", new Date(1), new Date(2)));\n s2b.add(new Task(\"T2\", new Date(11), new Date(22)));\n TaskSeriesCollection c2 = new TaskSeriesCollection();\n c2.add(s1b);\n c2.add(s2b);\n }",
"private static Step lastStepIfNoDuplicate(Step stepGroup1, Step stepGroup2) {\n Step s = stepGroup1;\n List<Step> stepGroup2Array = stepToArray(stepGroup2);\n while (s.next != null) {\n if (stepGroup2Array.contains(s.next)) {\n return null;\n }\n s = s.next;\n }\n return s;\n }",
"@Test(testName = \"duplicateElementsFromOneArrays\")\n\t public static void commonElementsFromOneArray() \n\t {\n\t int[] my_array = {1, 2, 5, 5, 6, 6, 7, 2};\n\t \n\t for (int i = 0; i < my_array.length-1; i++)\n\t {\n\t for (int j = i+1; j < my_array.length; j++)\n\t {\n\t if ((my_array[i] == my_array[j]) && (i != j))\n\t {\n\t System.out.println(\"Duplicate Element : \"+my_array[j]);\n\t }\n\t }\n\t }\n\t }",
"Boolean same(MultiSet<X> s);",
"protected List<Attribute> calculateUnion(Instance i1, Instance i2) {\n List<Attribute> union = new LinkedList<Attribute>();\n for (Attribute currentAttr : this.m_possibleAttributes) {\n if (!currentAttr.equals(this.m_splittingAttribute)) {\n // Assure that the examined attribute did not contain null in either of the records\n if (!i1.isMissing(currentAttr) && !i2.isMissing(currentAttr)) {\n union.add(currentAttr);\n }\n }\n }\n return union;\n }",
"private static List<Integer> getCommonElementsAlgo2(int [] arr1, int [] arr2) {\n\t\t\n\t\tList<Integer> duplicates = new ArrayList<>();\n\t\t\n\t\tHashtable<Integer, Integer> table = new Hashtable<>();\n\t\t\n\t\tfor (int i : arr1) {\n\t\t\tif (table.containsKey(i)) {\n\t\t\t\ttable.put(i, table.get(i) + 1);\n\t\t\t}\n\t\t\ttable.put(i, 1);\n\t\t}\n\t\t\n\t\tfor (int j : arr2) {\n\t\t\tif (table.containsKey(j)) {\n\t\t\t\tduplicates.add(j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn duplicates;\n\t\t\n\t}",
"public static int[] mergeArrays(int[] a1, int[] a2) {\n if (a1 == null || a1.length == 0) {\n if (a2 == null || a2.length == 0) {\n return new int[0];\n }\n return a2;\n }\n if (a2 == null || a2.length == 0) {\n return a1;\n }\n\n // Теперь работаем с массивами, где есть хотя бы 1 элемент.\n int[] a3 = new int[a1.length + a2.length];\n for (int index1 = 0, index2 = 0, index3 = 0; index3 < a3.length; ) {\n int minValue = a1[index1] < a2[index2] ? a1[index1] : a2[index2];\n // Работаем с первым массивом\n while (index1 < a1.length && minValue == a1[index1]) {\n a3[index3++] = a1[index1++];\n }\n if (index1 == a1.length) {\n // Первый массив закончился, сливаем хвост второго\n while (index2 < a2.length && index3 < a3.length) {\n a3[index3++] = a2[index2++];\n }\n return a3;\n }\n // Работаем со вторым массивом\n while (index2 < a2.length && minValue == a2[index2]) {\n a3[index3++] = a2[index2++];\n }\n if (index2 == a2.length) {\n // Второй массив закончился, сливаем хвост первого массива\n while (index1 < a1.length && index3 < a3.length) {\n a3[index3++] = a1[index1++];\n }\n return a3;\n }\n }\n return a3;\n }",
"private static boolean m4280b(Object obj, Object obj2) {\n if (obj != obj2) {\n if (obj == null || obj.equals(obj2) == null) {\n return null;\n }\n }\n return true;\n }",
"protected boolean isDuplicate(ELesxUseCase useCase) {\n return false;\n }",
"private static boolean fun3(List<String> res, List<String> ac1) {\n\t\tHashSet<String> hs=new HashSet<String>();\r\n\t\tfor(int i=0;i<res.size();i++){\r\n\t\t\ths.add(res.get(i));\r\n\t\t}\r\n\t\tfor(int i=0;i<ac1.size();i++){\r\n\t\t\tif(hs.contains(ac1.get(i)))\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean canMerge(Item other);",
"private static Set<String> m23474a(Set<String> set, Set<String> set2) {\n if (set.isEmpty()) {\n return set2;\n }\n if (set2.isEmpty()) {\n return set;\n }\n HashSet hashSet = new HashSet(set.size() + set2.size());\n hashSet.addAll(set);\n hashSet.addAll(set2);\n return hashSet;\n }",
"private static void sortAccording(int A1[], int A2[], int m, int n)\n {\n // The temp array is used to store a copy \n // of A1[] and visited[] is used to mark the \n // visited elements in temp[].\n int temp[] = new int[m], visited[] = new int[m];\n for (int i = 0; i < m; i++)\n {\n temp[i] = A1[i];\n visited[i] = 0;\n }\n \n // Sort elements in temp\n Arrays.sort(temp);\n \n // for index of output which is sorted A1[]\n int ind = 0; \n \n // Consider all elements of A2[], find them\n // in temp[] and copy to A1[] in order.\n for (int i = 0; i < n; i++){\n\n // Find index of the first occurrence\n // of A2[i] in temp\n int f = first(temp, 0, m-1, A2[i], m);\n \n // If not present, no need to proceed\n if (f == -1) \n continue;\n \n // Copy all occurrences of A2[i] to A1[]\n for (int j = f; (j < m && temp[j] == A2[i]); j++){\n \n A1[ind++] = temp[j];\n visited[j] = 1;\n }\n }\n \n // Now copy all items of temp[] which are \n // not present in A2[]\n for (int i = 0; i < m; i++)\n if (visited[i] == 0)\n A1[ind++] = temp[i];\n }",
"public boolean isUniqueA() {\n return true;\n }",
"public static void main(String[] args) {\n\t\tint[] a1 = {1,2,3,4,5,6,7,8,9};\n\t\tSystem.out.println(containsDuplicates(a1));\n\t\tint[] a2 = {1,2,3,4,6,6,7,8,9};\n\t\tSystem.out.println(containsDuplicates(a2));\n\n\t}",
"public boolean doOverlapNew(VIntWritable[] e1, VIntWritable[] e2){\n\t\tSet<VIntWritable> intersection = new HashSet<>(Arrays.asList(e1));\t\t\t\t\n\t\tintersection.retainAll(Arrays.asList(e2));\t\t\n\t\t\n\t\t//System.out.println(\"overlap? \"+ (intersection.isEmpty() ? false : true));\n\t\treturn intersection.isEmpty() ? false : true;\n\t\t\n\t\t//SOLUTION 2: slower O(nlogn) but needs less space\n//\t\tArrays.sort(e1); //O(nlogn)\n//\t\tfor (VIntWritable tmp : e2) { //O(m)\n//\t\t\tif (Arrays.binarySearch(e1, tmp) == -1) //O(logm)\n//\t\t\t\treturn false;\n//\t\t}\n//\t\treturn true;\n\t\t\n\t\t\n\t\t\t\n\t}",
"public void testResolvedDuplicate() throws Exception\n {\n String json = MAPPER.writeValueAsString(new DupFieldBean2());\n assertEquals(json, a2q(\"{'z':4}\"));\n }",
"private boolean propriedadesIguais( Integer pro1, Integer pro2 ){\r\n\t if ( pro2 != null ){\r\n\t\t if ( !pro2.equals( pro1 ) ){\r\n\t\t\t return false;\r\n\t\t }\r\n\t } else if ( pro1 != null ){\r\n\t\t return false;\r\n\t }\r\n\t \r\n\t // Se chegou ate aqui quer dizer que as propriedades sao iguais\r\n\t return true;\r\n\t}",
"public static void main(String[] args) {\n\n\t\tString a = \"aabbbc\", b =\"cbad\";\n\t\t// a=abc\t\t\t\tb=cab\n\t\t\n\t\t\n\t\tString a1 =\"\" , b1 = \"\"; // to store all the non duplicated values from a\n\t\t\n\t\tfor(int i=0; i<a.length();i++) {\n\t\t\tif(!a1.contains(a.substring(i,i+1)))\n\t\t\t\ta1 += a.substring(i,i+1);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<b.length();i++) {\n\t\t\tif(!b1.contains(b.substring(i,i+1)))\n\t\t\t\tb1 += b.substring(i,i+1);\n\t\t}\n\t\t\t\t\n\t\tchar[] ch1 = a1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\t\n\t\tchar[] ch2 = b1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tArrays.sort(ch1);\n\t\tArrays.sort(ch2);\n\t\t\n\t\tSystem.out.println(\"=====================================================\");\n\t\t\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tString str1 = Arrays.toString(ch1);\n\t\tString str2 = Arrays.toString(ch2);\n\t\t\n\t\tif(str1.contentEquals(str2)) {\n\t\t\tSystem.out.println(\"true, they build out of same letters\");\n\t\t}else { \n\t\t\tSystem.out.println(\"fasle, there is something different\");\n\t\t}\n\t\t\n\n\t\t\n\t\t// SHORTER SOLUTION !!!!!!!!!!!!!!!!!!!!\n\t\t\n//\t\tString Str1 = \"aaaabbbcc\", Str2 = \"cccaabbb\";\n//\t\t\n//\t\tStr1 = new TreeSet<String>( Arrays.asList(Str1.split(\"\"))).toString();\n//\t\tStr2 = new TreeSet<String>( Arrays.asList(Str2.split(\"\"))).toString();\n//\t\tSystem.out.println(Str1.equals(Str2));\n//\t\t\n//\t\t\n\t\t\n}",
"public Object obtDupla(Object key1, Object key2) {\r\n\t\tObject value=null;\r\n\t\tHashMap<String, Double> fila = structure.get(key1);\r\n\t\tif (fila != null)\r\n\t\t\tvalue = fila.get(key2);\r\n\t\treturn value;\r\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Aluno_1)) {\n return false;\n }\n Aluno_1 other = (Aluno_1) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"public static void main(String[] args) {\n\t\tInteger [] a= {1,4,7, 9, 2};\n\t\tInteger [] b={1,7,3,4,5};\n\t\tArrayList <Integer> c=new ArrayList<Integer>();\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<b.length;j++)\n\t\t\t{\n\t\t\t\tif(a[i]==b[j])\n\t\t\t\t{\n\t\t\t\t\tif(!c.contains(a[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\tc.add(a[i]);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"First Method : \"+c);\n\t\t//second method\n\t\tList<Integer> arr1=Arrays.asList(a);\n\t\tList<Integer> arr2=Arrays.asList(b);\n\t\tHashSet<Integer> aset=new HashSet<>(arr1);\n\t\taset.retainAll(arr2);\n\t\tSystem.out.println(\"Second Method: \"+aset);\n\t\t\n\t}",
"public static void main(String[] args) {\n\n\t\t\n\t\tList<Character>st1=new ArrayList<>();\n\t\n\t\tst1.add('a');\n\t\tst1.add('b');\n\t\tst1.add('a');\n\t\tst1.add('a');\n\t\tst1.add('c');\n\t\tst1.add('t');\n\t\n\t\tSystem.out.println(st1);//[a, b, a, a, c, t]\n\t\t\n\t\tList<Character>st2=new ArrayList<>();//empty []\n\t\tfor (int i=0; i<st1.size();i++) {\n\t\t\tif(!st2.contains(st1.get(i))) {\n\t\t\t\t// created str2 [empty], we will get the element from st1 to st2 while checking if there is repetition \n\t\t\t\tst2.add(st1.get(i));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(st2);//[a, b, c, t]\n\t\t\n\n\t}",
"private void assertEquivalentPair(Set<Pair> result, String s1, String s2) {\n\t\tPair resultPair = filterResult(result, s1, s2);\n\t\tassertFalse(resultPair.isMarked());\n\t}",
"private List<CustStmtRecord> validateDuplicate (final List<CustStmtRecord> custStmtRecords) {\n\t\tlog.info(\"Entering {}.{}\", getClass().getName(), \"validateDuplicate()\");\n\t\tfinal List<CustStmtRecord> duplicateReference = custStmtRecords\n\t\t\t\t.parallelStream()\n\t\t\t\t\t.filter(e -> Collections.frequency(custStmtRecords, e) > 1)\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t\t\t;\n\t\t\t\n\t\tlog.info(\"duplicateReference {}\", duplicateReference);\n\t\t\t\n\t\tlog.info(\"Exiting {}.{}\", getClass().getName(), \"validateDuplicate()\");\n\t\treturn duplicateReference;\n\t}",
"public boolean isUnique();",
"@Test\n public void testEquality() {\n final Decimal P1 = new Decimal(700);\n final Decimal A1 = new Decimal(15.2);\n final int C1 = 5;\n Order o1 = new Order(P1, A1, C1);\n assertFalse(o1.equals(null));\n Order o2 = new Order(P1, A1, C1);\n assertTrue(o1.equals(o2));\n \n final Decimal P2 = new Decimal(0.0000000007);\n final Decimal A2 = new Decimal(15.2);\n final int C2 = 4;\n o2 = new Order(P2, A2, C2);\n assertFalse(o1.equals(o2));\n assertFalse(o2.equals(o1));\n o1 = new Order(P2, A2, C2);\n assertTrue(o1.equals(o2));\n\n // Try null count\n o2 = new Order(P2, A2, null);\n assertFalse(o1.equals(o2));\n assertFalse(o2.equals(o1));\n \n o1 = new Order(P2, A2, 0);\n assertFalse(o1.equals(o2));\n assertFalse(o2.equals(o1));\n o1 = new Order(P2, A2, -1);\n assertFalse(o1.equals(o2));\n assertFalse(o2.equals(o1));\n \n // Try both with null count\n o1 = new Order(P2, A2, null);\n assertTrue(o2.equals(o1));\n \n }",
"protected boolean allowsDuplicates(Class type) {\n return !Set.class.isAssignableFrom(type);\n }",
"private static void fun2(List<String> ac1, List<List<String>> result, int index) {\n\t\tString key = ac1.get(0);\r\n\t\tfor(int i=index;i<result.size();i++){\r\n\t\t\tList<String> res=result.get(i);\r\n\t\t\tif(res.get(0).equals(key)){\r\n\t\t\t\t//check if any one of the value is repeated\r\n\t\t\t\tboolean check=fun3(res,ac1);\r\n\t\t\t\tif(check){\r\n\t\t\t\t\tfor(int j=1;j<ac1.size();j++){\r\n\t\t\t\t\t\tres.add(ac1.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private boolean equals1(BinaryNode<AnyType> t, BinaryNode<AnyType> t1)\r\n\t{\r\n\t\tif(t==null && t1==null)\r\n\t\t\treturn true;\r\n\t\tif((t!=null && t1!=null)&&(t.element==t1.element))\r\n\t\t\treturn (equals1(t.left, t1.left)&& equals1(t.right, t1.right));\r\n\r\n\t\treturn false;\r\n\t}",
"protected void paramDuplicate(){\n List<StatementParse> parameters = this.node.getChildren().get(0).getChildren();\n for (StatementParse x: parameters){\n int count = 0;\n for (StatementParse y: parameters){\n if (x.getName().equals(y.getName())){\n count++;\n }\n }\n if (count > 1) throw new DuplicateParam();\n }\n }",
"public boolean overlaps(CompositeKey s) {\n\t if (this.key2 == 0 && s.getKey2() == 0) {\n\t\t\treturn true;\n\t\t}\n\t\tif (this.key2 == 0) {\n\t\t\treturn (this.key1 < s.getKey2());\n\t\t}\n\t\tif (s.getKey2() == 0) {\n\t\t\treturn !(this.key2 <= s.getKey1());\n\t\t}\n\treturn !(this.key2 <= s.getKey1() || this.key1 >= s.getKey2());\n}",
"public static void main(String[] args) {\n\t\tint a[] = {1,2,2,6,7,3,4,4,5,5,6,7};\n\t\t\n\t\t\n\t\tMap<Integer,Integer> map =new HashMap<Integer,Integer>();\n\t\t\n\t\tfor (Integer num :a) {\n\t\t\tInteger Count =map.get(num);\n\t\t\tif(Count==null) {\n\t\t\t\tmap.put(num, 1);\n\t\t\t}else {\n\t\t\t\tmap.put(num, ++Count);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tSet<Entry<Integer, Integer>> entryset =map.entrySet();\n\t\tArrayList<Integer> list =new ArrayList<Integer>();\n\t\tfor(Entry<Integer, Integer> entry :entryset) {\n\t\t\tif(entry.getValue()>1) {\n\t\t\t\tlist.add(entry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(\"Duplicates are \" +list);\n\t\t\n\t\tSet<Entry<Integer, Integer>> entryset1 =map.entrySet();\n\t\tArrayList<Integer> nonduplist =new ArrayList<Integer>();\n\t\tfor(Entry<Integer, Integer> entry1 :entryset1) {\n\t\t\tif(entry1.getValue()==1) {\n\t\t\t\tnonduplist.add(entry1.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(\"Non Duplicates are \" +nonduplist);\n\t\t\n \n}",
"public static boolean overlapUPA(XSElementDecl element1, XSElementDecl element2, SubstitutionGroupHandler sgHandler) {\n/* 1445 */ if (element1.fName == element2.fName && element1.fTargetNamespace == element2.fTargetNamespace)\n/* */ {\n/* 1447 */ return true;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 1452 */ XSElementDecl[] subGroup = sgHandler.getSubstitutionGroup(element1); int i;\n/* 1453 */ for (i = subGroup.length - 1; i >= 0; i--) {\n/* 1454 */ if ((subGroup[i]).fName == element2.fName && (subGroup[i]).fTargetNamespace == element2.fTargetNamespace)\n/* */ {\n/* 1456 */ return true;\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1462 */ subGroup = sgHandler.getSubstitutionGroup(element2);\n/* 1463 */ for (i = subGroup.length - 1; i >= 0; i--) {\n/* 1464 */ if ((subGroup[i]).fName == element1.fName && (subGroup[i]).fTargetNamespace == element1.fTargetNamespace)\n/* */ {\n/* 1466 */ return true;\n/* */ }\n/* */ } \n/* */ \n/* 1470 */ return false;\n/* */ }",
"protected boolean isSameSnakSet(Iterator<Snak> snaks1, Iterator<Snak> snaks2) {\n\t\tArrayList<Snak> snakList1 = new ArrayList<>(5);\n\t\twhile (snaks1.hasNext()) {\n\t\t\tsnakList1.add(snaks1.next());\n\t\t}\n\n\t\tint snakCount2 = 0;\n\t\twhile (snaks2.hasNext()) {\n\t\t\tsnakCount2++;\n\t\t\tSnak snak2 = snaks2.next();\n\t\t\tboolean found = false;\n\t\t\tfor (int i = 0; i < snakList1.size(); i++) {\n\t\t\t\tif (snak2.equals(snakList1.get(i))) {\n\t\t\t\t\tsnakList1.set(i, null);\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!found) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn snakCount2 == snakList1.size();\n\t}",
"public boolean inSameSet( T obj1, T obj2 )\n {\n // Find the root of each object; if either is not contained, the root\n // value will be null, and we throw an exception.\n Node root1 = getRoot(nodes.get(obj1));\n Node root2 = getRoot(nodes.get(obj2));\n if ( root1 == null && root2 == null )\n throw new NoSuchElementException( \"Sets do not contain either object: \" + obj1 + \", \" + obj2 );\n if ( root1 == null )\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj1 );\n if ( root2 == null )\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj2 );\n // If here, then have non-null root for each input; check if same Node.\n return root1 == root2;\n }",
"private static boolean merge(int[] a, int[] b) {\n if (b[1] < a[0] || a[1] < b[0]) {\n return false;\n }\n\n a[0] = Math.min(a[0], b[0]);\n a[1] = Math.max(a[1], b[1]);\n return true;\n }",
"@Test\r\n void test_insert_same_vertex_twice() {\r\n graph.addVertex(\"1\");\r\n graph.addVertex(\"1\"); \r\n graph.addVertex(\"1\"); \r\n vertices = graph.getAllVertices();\r\n if(vertices.size() != 1 ||graph.order() != 1) {\r\n fail();\r\n }\r\n }",
"@Test\r\n\tpublic void test1() {\r\n\t\tint[] nums = {1,2,3,1,4};\r\n\t\tAssert.assertEquals(true, containsDuplicate(nums));\r\n\t}",
"public static void main(String[] args) {\n\n\t\tint[] array1 = {1,8,3,10};\n\t\t\n\t\tint[] array2 = {4,3,11,9};\n\t\t\n\t\tint duplicate = 0;\n\t\t\n\t\tfor (int i=0;i<array1.length;i++) {\n\t\t\t\n\t\t\tfor (int j=0;j<array2.length;j++) {\n\t\t\t\t\n\t\t\t\tif (array1[i]== array2[j]) {\n\t\t\t\n\t\t\t\t\tduplicate = array1[i];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Duplicate element in two array : \"+duplicate);\n\t}",
"private static boolean compareList(List<Object> l1, List<Object> l2)\n {\n int count=0;\n for (Object o : l1)\n {\n Object temp = o;\n for (Object otemp : l2)\n {\n if (EqualsBuilder.reflectionEquals(temp, otemp))\n {\n count++;\n }\n }\n\n }\n\n if(count == l1.size()) return true;\n return false;\n\n }",
"private boolean comparePersistentIdEntrys(@Nonnull PairwiseId one, @Nonnull PairwiseId other)\n {\n // Do not compare times\n //\n return Objects.equals(one.getPairwiseId(), other.getPairwiseId()) &&\n Objects.equals(one.getIssuerEntityID(), other.getIssuerEntityID()) &&\n Objects.equals(one.getRecipientEntityID(), other.getRecipientEntityID()) &&\n Objects.equals(one.getSourceSystemId(), other.getSourceSystemId()) &&\n Objects.equals(one.getPrincipalName(), other.getPrincipalName()) &&\n Objects.equals(one.getPeerProvidedId(), other.getPeerProvidedId());\n }",
"private boolean notEquals(Object a, Object b)\n {\n if (a != null && b == null)\n return true;\n if (a == null && b != null)\n return true;\n if (a != null && !a.equals(b))\n return true;\n return false;\n }",
"@Override\n public int hashCode() {\n return (first != null ? 41 * first.hashCode() : 0) + (second != null ? second.hashCode() : 0);\n }",
"private boolean oneEquals(AccessPath that) {\n //if (this._n != that._n) return false;\n if (this._field != that._field) return false;\n if (this._last != that._last) return false;\n if (this.succ.size() != that.succ.size()) return false;\n return true;\n }",
"protected boolean union(int id1, int id2) \n\t{\n\t\t// Find the parents of both nodes.\n\t\tint root1 = find(id1);\n\t\tint root2 = find(id2);\n\t\t\n\t\t// No union needed.\n\t\tif (root1 == root2)\n\t\t{\n\t\t //Return that the two values were already in the same tree\n\t\t return false;\n\t\t}\n\t\t\n\t\t//Combine the trees with these two roots\n\t\tparents[root1] = root2;\n\t\t\n\t\t// We successfully did a union.\n\t\treturn true;\n\t}",
"@Test\n\tpublic void addSameValueTwice() {\n\t\tXSet xset = new XSet(3);\n\t\txset.add(1);\n\t\txset.add(1);\n\t\tassertTrue(xset.getSize() == 1);\n\t}",
"private static void compareForIdenticalKeys() {\n Integer[] identical = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};\n\n Insertion insertion = new Insertion();\n insertion.analyzeSort(identical);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(identical);\n selection.getStat().printReport();\n }",
"private final static boolean equivalent(Automaton automaton,\n\t\t\tBinaryMatrix equivs, Automaton.Bag b1, Automaton.Bag b2) {\n\t\tint b1_size = b1.size();\n\t\tint b2_size = b2.size();\n\n\t\tif (b1_size != b2_size) {\n\t\t\t// Observe that, unlike a set, the size of a bag will never be\n\t\t\t// changed by the identification of equivalent states. Therefore,\n\t\t\t// the size of both collection must be identical, otherwise they can\n\t\t\t// never be equivalent.\n\t\t\treturn false;\n\t\t}\n\n\t\tint[] b1_children = b1.children;\n\t\tint[] b2_children = b2.children;\n\t\t// maps vertices in b2 to those they are matched against in b1\n\t\tint[] matches = new int[b1_size];\n\t\tArrays.fill(matches, -1);\n\t\t// Used to ensure no vertex is explored more than once during\n\t\t// reconfiguration.\n\t\tboolean[] visited = new boolean[b1_size];\n\t\t\n\t\t// For every state in s1\n\t\tfor (int i = 0; i != b1_size; ++i) {\n\t\t\tint b1_child = b1_children[i];\n\t\t\tif(b1_child < 0) {\n\t\t\t\t// In this case, we have to do something different.\n\t\t\t\tif(!findNegativeMatch(i,b1_children,b2_children,equivs,matches)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tArrays.fill(visited,false);\n\t\t\t\tif(!findMatch(i,b1_children,b2_children,equivs,matches,visited)) {\n\t\t\t\t\t// If we can't find a match, then it's game over and we know for\n\t\t\t\t\t// sure these two states are not equivalent.\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"private void markDuplicateRelationships(EntityInstanceImpl ei)\n {\n EntityInstanceImpl parent = ei.getParent();\n EntityDef entityDef = ei.getEntityDef();\n\n // Duplicate relationship searching phase I, see if a linked instance to\n // the target instance in the same object instance represents the\n // same relationship type AND has the same parent.\n for ( EntityInstanceImpl linked : ei.getLinkedInstances() )\n {\n // Check to make sure linked EI has a parent--it is possible for a root\n // to be flagged as included and we don't care about roots.\n if ( linked.isDeleted() || linked.getParent() == null )\n continue;\n\n if ( ei.isExcluded() )\n {\n if ( ! linked.isExcluded() )\n continue;\n }\n else\n {\n if ( ! linked.isIncluded() )\n continue;\n }\n\n EntityDef linkedEntityDef = linked.getEntityDef();\n\n // Linked EI must have the same relationship and it can't be derived.\n if ( linkedEntityDef.getErRelToken() == entityDef.getErRelToken() ||\n linkedEntityDef.isDerivedPath() )\n {\n continue;\n }\n\n // Now check to see if the parents are linked.\n EntityInstanceImpl linkParent = linked.getParent();\n for ( EntityInstanceImpl parentLinked : linkParent.getLinkedInstances() )\n {\n if ( parentLinked == parent )\n {\n if ( ei.isExcluded() )\n linked.dbhExcluded = true;\n else\n linked.dbhIncluded = true;\n\n break;\n }\n }\n } // for each linked instance...\n\n // Duplicate relationship searching, phase II, see if the parent of\n // the instance has a linked instance representing the same relationship\n // type which is also a child of one of the targets linked instances.\n\n // If the parent isn't linked then there are no duplicate relationships.\n if ( parent.getLinkedInstances().size() == 0 )\n return;\n\n for ( EntityInstanceImpl linked : parent.getLinkedInstances() )\n {\n // Check for appropriate include/exclude flag.\n if ( ei.isExcluded() )\n {\n if ( ! linked.isExcluded() )\n continue;\n }\n else\n {\n if ( ! linked.isIncluded() )\n continue;\n }\n\n EntityDef linkedEntityDef = linked.getEntityDef();\n\n // Check to see if the relationship for the EI linked to the parent is\n // the same as the relationship of the original EI.\n if ( linkedEntityDef.getErRelToken() != entityDef.getErRelToken() )\n continue; // Nope.\n\n // OK, we have an EI ('linked') that has the same relationship as\n // ei. Check to see if the parent of 'linked' (grandParent)\n // is linked with ei. If they are linked then 'linked'\n // has the same physical relationship as ei.\n EntityInstanceImpl grandParent = linked.getParent();\n for ( EntityInstanceImpl gp : ei.getLinkedInstances() )\n {\n if ( gp == grandParent )\n {\n if ( ei.isExcluded() )\n linked.dbhExcluded = true;\n else\n linked.dbhIncluded = true;\n\n break;\n }\n }\n } // for each linked instance of parent...\n }",
"private boolean isEmpty() {return first == null;}",
"public void containsNoDuplicates() {\n List<Entry<T>> duplicates = Lists.newArrayList();\n for (Multiset.Entry<T> entry : LinkedHashMultiset.create(getSubject()).entrySet()) {\n if (entry.getCount() > 1) {\n duplicates.add(entry);\n }\n }\n if (!duplicates.isEmpty()) {\n failWithRawMessage(\"%s has the following duplicates: <%s>\", getDisplaySubject(), duplicates);\n }\n }",
"@objid (\"ef9777b4-ed2a-4341-bb22-67675cddb70a\")\n boolean isIsUnique();",
"private void assertSymmetric(UMLMessageArgument msgArg1,UMLMessageArgument msgArg2) throws Exception\r\n\t{\r\n\t\tif( msgArg1!=null && msgArg2!=null)\r\n\t\t\tassertEquals(msgArg1.equals(msgArg2),msgArg2.equals(msgArg1));\r\n\t}",
"public static void main(String[] args) {\n\t\tA1 a1=new A1(\"ram\",1,\"ram\");\n\t\tA1 a2=new A1(\"ram\",1,\"ram\");\n\t\tHashSet<A1> set=new HashSet<A1>();\n\t System.out.println(a1.getName());\n\t System.out.println(a2.getName());\n\t set.add(a1);\n\t set.add(a2);\n\t System.out.println(set.size());\n\t}",
"private static List<Integer> getCommonElementsAlgo1(int [] arr1, int [] arr2) {\n\t\t\n\t\tList<Integer> list1 = new ArrayList<Integer>();\n\t\tfor (int i : arr1) {\n\t\t\tlist1.add(i);\n\t\t}\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\tfor (int i : arr2) {\n\t\t\tlist2.add(i);\n\t\t}\n\t\tif (list1.size() > list2.size()) {\n\t\t\tlist1.retainAll(list2);\n\t\t\treturn list1;\n\t\t}\n\t\telse {\n\t\t\tlist2.retainAll(list1);\n\t\t\treturn list2;\n\t\t}\n\t\t\n\t}",
"private boolean sameTopic(HelpTopic topic1, HelpTopic topic2) {\n return topic1 == topic2 || (topic1 != null && topic2 != null && topic1.equals(topic2));\n }",
"private boolean isSameColumnKeyComponent(ByteBuffer[] components1, ByteBuffer[] components2) {\n\t\tfor (int i = columnAliasNames.length - 1; i >= 0; i--) {\n\t\t\tif (!components1[i].equals(components2[i]))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"boolean isUnique();",
"boolean isIsUnique();",
"private boolean valueEquals(Object val1, Object val2) {\n if (val1 == val2) {\n return true;\n }\n\n // One and only one of the value is null\n if (val1 == null || val2 == null) {\n return false;\n }\n\n return val1.equals(val2);\n }",
"public static boolean same(int[] a, int[] b) {\r\n \treturn (a[0] == b[0] && a[1] == b[1]) || (a[0] == b[1] && a[1] == b[0]);\r\n }",
"@java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }",
"private static void findDuplicatesByNegation(int[] arr2) {\n\t\t\n\t\tfor ( int i =0 ; i<arr2.length ; i++)\n\t\t{\n\t\t\t\n\t\t\tif(arr2[Math.abs(arr2[i])] < 0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\" Duplicates exist by Negation \" + arr2[i]);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tarr2[arr2[i]] = -arr2[arr2[i]];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"@Test \r\n\t\tpublic void testinsertAll() {\n\t\t\ttestingSet = new IntegerSet();\r\n\t\t\ttestingSet.insertAll(list1);\r\n\t\t\t// create set = to unique values in list \r\n\t\t\ttestingSet2 = new IntegerSet(unique); \r\n\t\t\t// 2 set should be equal \r\n\t\t\t// assertEquals for these parameters is a deprecated method \r\n\t\t\tassertArrayEquals(testingSet.toArray(), testingSet2.toArray()); \r\n\t\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t}",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof Acquirente)) {\n return false;\n }\n Acquirente that = (Acquirente) other;\n if (this.getIdacquirente() != that.getIdacquirente()) {\n return false;\n }\n return true;\n }",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tList<Integer> nums = new ArrayList<>();\r\n\t\t\r\n\t\tnums.add(10);nums.add(10);nums.add(10);nums.add(8);\r\n\t\tnums.add(11);nums.add(10);nums.add(10);nums.add(10);\r\n\r\n\t\tSystem.out.println(nums);\r\n\t\t\r\n\t\tList<Integer> unique1 = new ArrayList<>(); \r\n\t\t\r\n\t\t\r\n\t\t // find unique NON DUPLICATE VALUES\r\n\t\tfor(Integer num: nums) {\r\n\t\t\tif(!unique1.contains(num)) { // if unique1 doesn't contains num add it\r\n\t\t\t\tunique1.add(num); //<<<<<======= adding to unique1 num one by one\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(unique1.toString());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t \r\n\t\t\r\n\t\tList<Integer> unique2 = new ArrayList<>();\r\n\t\t\r\n\t\tfor(int i =0; i<nums.size(); i++) { // find unique ( appearence once)\r\n\t\t\tint count=0;\r\n\t\t\t\r\n\t\t\tInteger value = nums.get(i);\r\n\t\t\tfor(int k =0; k<nums.size(); k++) {\r\n\t\t\t\tif(nums.get(k)== value && i != k) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(count == 0) {\r\n\t\t\t\tunique2.add(value);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(unique2);\r\n\t\t\r\n\t}",
"@Override\n public boolean equals(Object o1) {\n return super.equals(o1);\n }",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof BlastingtypeRelationsAud)) {\n return false;\n }\n BlastingtypeRelationsAud that = (BlastingtypeRelationsAud) other;\n Object myBtrAudUid = this.getBtrAudUid();\n Object yourBtrAudUid = that.getBtrAudUid();\n if (myBtrAudUid==null ? yourBtrAudUid!=null : !myBtrAudUid.equals(yourBtrAudUid)) {\n return false;\n }\n return true;\n }",
"protected abstract boolean isEqual(E entryA, E entryB);",
"public static void main(String[] args) {\n\t\tint[] arr1 = { 10, 12, 55, 32, 17 };\n\t\tint[] arr2 = { 10, 12, 55, 32, 17 };\n\t\t/*//Second set\n\t\tint[] arr1 = {10,12,55,32,17,99};\n\t\tint[] arr2 = {10,12,55,32,17}};*/\n\t\t/* //Third set\n\t\tint[] arr1 = {10,12,55,32,17};\n\t\tint[] arr2 = {10,12,99,32,17}};*/\n\n\t\tArraysIdentical arrayidentical = new ArraysIdentical();\n\t\tarrayidentical.identicalCheck(arr1, arr2);\n\n\t}",
"@Test\n public void noEqualsID() {\n final CourseType courseType1 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType1.setId(\"ID\");\n courseType1.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType1.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseType2 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType2.setId(\"ID2\");\n courseType2.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType2.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseTypeNull = new CourseType(\"N\", \"Pic\", 5, 1);\n courseTypeNull.setId(null);\n courseTypeNull.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseTypeNull.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n\n assertNotEquals(courseType1, courseType2);\n assertNotEquals(courseType1, courseTypeNull);\n assertNotEquals(courseTypeNull, courseType1);\n }",
"public static void test_merge() {\n assertThat(merge(new int[] {0, 1}, new int[] {2, 3})).isFalse();\n assertThat(merge(new int[] {2, 3}, new int[] {0, 1})).isFalse();\n\n // a0 b0 b1 a1\n // a0 b0 a1 b1\n assertThat(merge(new int[] {0, 1}, new int[] {0, 1})).isTrue();\n assertThat(merge(new int[] {0, 1}, new int[] {0, 2})).isTrue();\n assertThat(merge(new int[] {0, 1}, new int[] {1, 2})).isTrue();\n assertThat(merge(new int[] {0, 2}, new int[] {1, 3})).isTrue();\n assertThat(merge(new int[] {0, 3}, new int[] {1, 2})).isTrue();\n assertThat(merge(new int[] {0, 3}, new int[] {1, 3})).isTrue();\n\n // b0 a0 a1 b1\n // b0 a0 b1 a1\n assertThat(merge(new int[] {0, 3}, new int[] {0, 2})).isTrue();\n assertThat(merge(new int[] {0, 3}, new int[] {1, 2})).isTrue();\n assertThat(merge(new int[] {0, 3}, new int[] {1, 3})).isTrue();\n assertThat(merge(new int[] {1, 2}, new int[] {0, 3})).isTrue();\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Acarsdata)) {\r\n return false;\r\n }\r\n Acarsdata other = (Acarsdata) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"private List<Attribute> calculateIntersection(Instance i1, Instance i2) {\n List<Attribute> intersection = new LinkedList<Attribute>();\n for (Attribute currentAttr : this.m_possibleAttributes) {\n if (!currentAttr.equals(this.m_splittingAttribute)) {\n // It is sufficient to check only if the attribute is missing in the first instance\n if (!i1.isMissing(currentAttr) && !i2.isMissing(currentAttr) &&\n (i1.stringValue(currentAttr).equals(i2.stringValue(currentAttr)))) {\n intersection.add(currentAttr);\n }\n }\n }\n return intersection;\n }",
"@Test\n public void testEquals() {\n \t\n \t//create data set\n \tString strJava = \"java\";\n \tString strScala = \"scala\";\n \tString strPhp = \"php\";\n \t\n \tfinal LastWriteWinSet<String> lastWriteWinSet1 = new LastWriteWinSet<>();\n\n \tlastWriteWinSet1.add(time1, strJava);\n \tlastWriteWinSet1.add(time1, strScala);\n \tlastWriteWinSet1.add(time1, strPhp);\n\n \tlastWriteWinSet1.delete(time2, strJava);\n \n final LastWriteWinSet<String> lastWriteWinSet2 = new LastWriteWinSet<>();\n\n lastWriteWinSet2.add(time1, strJava);\n lastWriteWinSet2.add(time1, strScala);\n lastWriteWinSet2.add(time1, strPhp);\n\n lastWriteWinSet2.delete(time2, strJava);\n \n final LastWriteWinSet<String> lastWriteWinSet3 = lastWriteWinSet2;\n \t\n assertTrue(lastWriteWinSet1.equals(lastWriteWinSet2));\n assertTrue(lastWriteWinSet3.equals(lastWriteWinSet2));\n assertTrue(lastWriteWinSet1.equals(lastWriteWinSet1));\n assertTrue(!lastWriteWinSet1.equals(null));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Order1)) {\n return false;\n }\n Order1 other = (Order1) object;\n if ((this.orderid == null && other.orderid != null) || (this.orderid != null && !this.orderid.equals(other.orderid))) {\n return false;\n }\n return true;\n }",
"boolean wasSooner (int[] date1, int[] date2) {\n\n// loops through year, then month, then day if previous value is the same\n for (int i = 2; i > -1; i--) {\n if (date1[i] > date2[i])\n return false;\n if (date1[i] < date2[i])\n return true;\n }\n return true;\n }",
"private boolean sameGroup(RowMetaInterface rowMeta, Object[] previous, Object[] rowData) throws KettleValueException\n\t{\n\t\treturn rowMeta.compare(previous, rowData, data.groupnrs)==0;\n\t}",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof Sanpham)) {\n return false;\n }\n Sanpham that = (Sanpham) other;\n Object myMasp = this.getMasp();\n Object yourMasp = that.getMasp();\n if (myMasp==null ? yourMasp!=null : !myMasp.equals(yourMasp)) {\n return false;\n }\n return true;\n }",
"public static boolean similar(BinaryTreeNode t1, BinaryTreeNode t2) {\n\t\t\n \n\t\tif (isPlaceHolder(t1) && isPlaceHolder(t2))\n\t\treturn true;\n\n\t\telse if (isPlaceHolder(t1) || isPlaceHolder(t2))\n\t\treturn false;\n\n\t\treturn similar(t1.getLeft(),t2.getLeft()) && similar(t1.getRight(),t2.getRight()); \n\n\n }",
"@Test\r\n public void testCreateTourWithoutDuplicates_MultipleDups() {\r\n Tour tour = new Tour(new int[][]{{1, 1}, {2, 2}, {1, 1}, {3, 3}, {1, 1}, {1, 1}});\r\n Tour result = tour.createTourWithoutDuplicates();\r\n Tour expected = new Tour(new int[][]{{1, 1}, {2, 2}, {3, 3}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }",
"@Test\r\n public void testCreateUnion_OneAndOne() {\r\n Tour tourA = new Tour(new int[][]{{1, 1}});\r\n Tour tourB = new Tour(new int[][]{{12, 12}});\r\n Tour result = tourA.createUnion(tourB);\r\n Tour expected = new Tour(new int[][]{{1, 1}, {12, 12}});\r\n assertTrue(result.toString(), expected.isEqual(result));\r\n }",
"private static boolean identityEqual(final I_GameState state1, final I_GameState state2) {\n if (state1 == state2)\n return true;\n\n return Stream.of(new SimpleEntry<>(state1, state2))\n .flatMap( // transform the elements by making a new stream with the transformation to be used\n pair -> Arrays.stream(E_PileID.values()) // stream the pileIDs\n // make new pair of the elements of that pile from each state\n .map(pileID -> new SimpleEntry<>(\n pair.getKey().get(pileID),\n pair.getValue().get(pileID)\n )\n )\n )\n .allMatch(pair -> pair.getKey() == pair.getValue());\n }",
"static SparseArray<TaskDetail> getCurrentMappingsDuplicated() {\n SparseArray<TaskDetail> toReturn = new SparseArray<>();\n for (int i = 0; i < TaskDetail.actionToTask.size(); i++) {\n TaskDetail detail = TaskDetail.actionToTask.valueAt(i);\n toReturn.put(TaskDetail.actionToTask.keyAt(i), detail.duplicate());\n }\n return toReturn;\n }",
"@Test(expected = NullPointerException.class)\r\n\t\tpublic void testUnionWithNullInput() {\n\t\t\ttestingSet = new IntegerSet(null);\r\n\t\t\ttestingSet2= new IntegerSet(null); \r\n\t\t\t// union of 2 sets should result in null value \r\n\t\t\ttestingSet3= testingSet.union(testingSet, testingSet2);\r\n\t\t\t\r\n\t\t}",
"static List<Integer> unique(List<Integer> a, List<Integer> b) {\n\t\t\n\t\t// Base case 01:\n\t\tif (a.isEmpty()) {\n\t\t\t\n\t\t\treturn b;\n\t\t\n\t\t // Base case 02:\n\t\t} else if (b.isEmpty()) {\n\t\t\t\n\t\t\treturn a;\n\t\t\n\t\t // Recursive step:\n\t\t} else if (a.getHead() < b.getHead()) {\n\t\t\t\n\t\t\treturn new List<>(a.getHead(), unique(a.getTail(), b));\n\t\t\t\n\t\t} else if (a.getHead() > b.getHead()) {\n\t\t\t\n\t\t\treturn new List<>(b.getHead(), unique(a, b.getTail()));\n\t\t\t\n\t\t} else { // a.getHead() == b.getHead()\n\t\t\t\n\t\t\treturn unique(a.getTail(), b.getTail());\n\t\t}\n\t}",
"public ValidationResult validateMerge(Concept concept1,\n Concept concept2);",
"private boolean equalKeys(Object other) {\r\n if (this == other) {\r\n return true;\r\n }\r\n if (!(other instanceof Contacto)) {\r\n return false;\r\n }\r\n Contacto that = (Contacto) other;\r\n if (this.getIdContacto() != that.getIdContacto()) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Test(expected = NullPointerException.class)\r\n\t\tpublic void testIntersectionWithNullInput() {\r\n\t\t\ttestingSet = new IntegerSet(null);\r\n\t\t\ttestingSet2= new IntegerSet(null); \r\n\t\t\t\r\n\t\t\t// union of 2 null sets \r\n\t\t\ttestingSet3= testingSet.intersection(testingSet, testingSet2);\r\n\t\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Docentetrabajoanterior)) {\r\n return false;\r\n }\r\n Docentetrabajoanterior other = (Docentetrabajoanterior) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public void testFindDuplicates() {\r\n System.out.println(\"findDuplicates\");\r\n \r\n List<String> elements = new ArrayList<>();\r\n elements.add(\"foo\");\r\n elements.add(\"bar\");\r\n elements.add(\"abc\");\r\n elements.add(\"foo\");\r\n elements.add(\"cde\");\r\n elements.add(\"cde\");\r\n elements.add(\"efg\");\r\n elements.add(\"cde\");\r\n \r\n Set<String> expResult = new LinkedHashSet<>();\r\n expResult.add(\"foo\");\r\n \r\n LexicalChecker instance = new LexicalChecker();\r\n Set<String> result = instance.findDuplicates(elements);\r\n \r\n assertNotSame(expResult, result);\r\n \r\n expResult.add(\"cde\");\r\n assertEquals(expResult, result);\r\n }",
"@Test\n public void sharedFilterEnsuresUniqueResults() {\n Filter filter = new Filter(\"test-filter\");\n final Dataset dataset1 = new Dataset(\"TEST1\", \"sql\", filter);\n final Dataset dataset2 = new Dataset(\"TEST2\", \"sql2\", filter); // shared same filter\n\n List<String> entry1 = new ArrayList<>();\n entry1.add(\"001\");\n entry1.add(\"aaa\");\n\n List<String> entry2 = new ArrayList<>();\n entry2.add(\"002\");\n entry2.add(\"bbb\");\n\n List<String> entry3 = new ArrayList<>();\n entry3.add(\"003\");\n entry3.add(\"ccc\");\n\n List<String> entry4 = new ArrayList<>();\n entry4.add(\"004\");\n entry4.add(\"ddd\");\n\n List<List<String>> queryResults1 = new ArrayList<>();\n queryResults1.add(entry1);\n queryResults1.add(entry2);\n queryResults1.add(entry3);\n queryResults1.add(entry4);\n\n List<String> entry5 = new ArrayList<>();\n entry5.add(\"005\"); // different\n entry5.add(\"eee\");\n\n List<String> entry6 = new ArrayList<>();\n entry6.add(\"002\"); // same\n entry6.add(\"bbb\");\n\n List<String> entry7 = new ArrayList<>();\n entry7.add(\"007\"); // different\n entry7.add(\"fff\");\n\n List<String> entry8 = new ArrayList<>();\n entry8.add(\"004\"); // same\n entry8.add(\"ddd\");\n\n List<List<String>> queryResults2 = new ArrayList<>();\n queryResults2.add(entry5);\n queryResults2.add(entry6);\n queryResults2.add(entry7);\n queryResults2.add(entry8);\n\n // given\n dataset1.populateCache(queryResults1, 200L);\n dataset2.populateCache(queryResults2, 300L);\n\n // when\n final List<String> result1 = dataset1.getCachedResult();\n final List<String> result2 = dataset1.getCachedResult();\n final List<String> result3 = dataset1.getCachedResult();\n final List<String> result4 = dataset1.getCachedResult();\n final List<String> result5 = dataset2.getCachedResult();\n final List<String> result6 = dataset2.getCachedResult();\n\n // then\n assertEquals(\"Wrong result 1\", entry1, result1); // first datset is as-is\n assertEquals(\"Wrong result 2\", entry2, result2); // first datset is as-is\n assertEquals(\"Wrong result 3\", entry3, result3); // first datset is as-is\n assertEquals(\"Wrong result 4\", entry4, result4); // first datset is as-is\n assertEquals(\"Wrong result 3\", entry5, result5); // second datset, not filtered out\n assertEquals(\"Wrong result 3\", entry7, result6); // second dataset, entry6 is filtered out\n\n // and\n try {\n dataset1.getCachedResult();\n fail(\"Expected to run out of data\");\n\n } catch (IllegalStateException ex) {\n assertEquals(\"Wrong error\", \"No more data available for dataset: TEST1\", ex.getMessage());\n }\n\n try {\n // entry7 should be filtered out, resulting in no more data\n dataset2.getCachedResult();\n fail(\"Expected to run out of data\");\n\n } catch (IllegalStateException ex) {\n assertEquals(\"Wrong error\", \"No more data available for dataset: TEST2\", ex.getMessage());\n }\n\n // and\n assertEquals(\"Wrong cache size\", Optional.of(4), dataset1.getMetrics().getCacheSize());\n assertEquals(\"Wrong timing\", Optional.of(200L), dataset1.getMetrics().getTimingMilliseconds());\n assertEquals(\"Wrong cache requested\", Optional.of(5), dataset1.getMetrics().getCacheRequested());\n assertEquals(\"Wrong filtered out\", Optional.empty(), dataset1.getMetrics().getFilteredOut());\n\n // and\n assertEquals(\"Wrong cache size\", Optional.of(4), dataset2.getMetrics().getCacheSize());\n assertEquals(\"Wrong timing\", Optional.of(300L), dataset2.getMetrics().getTimingMilliseconds());\n assertEquals(\"Wrong cache requested\", Optional.of(3), dataset2.getMetrics().getCacheRequested());\n assertEquals(\"Wrong filtered out\", Optional.of(2), dataset2.getMetrics().getFilteredOut());\n }",
"public static boolean overlapUPA(XSWildcardDecl wildcard1, XSWildcardDecl wildcard2) {\n/* 1495 */ XSWildcardDecl intersect = wildcard1.performIntersectionWith(wildcard2, wildcard1.fProcessContents);\n/* 1496 */ if (intersect == null || intersect.fType != 3 || intersect.fNamespaceList.length != 0)\n/* */ {\n/* */ \n/* 1499 */ return true;\n/* */ }\n/* */ \n/* 1502 */ return false;\n/* */ }",
"private static final boolean equal(Object a, Object b) {\n if (a == b)\n return true;\n if (a == null)\n return false;\n if (b == null)\n return false;\n return a.equals(b);\n }"
] |
[
"0.5472529",
"0.5447679",
"0.53439176",
"0.5330596",
"0.5244934",
"0.52163684",
"0.5209989",
"0.52035975",
"0.5182203",
"0.51772255",
"0.51594394",
"0.50915945",
"0.508827",
"0.5082743",
"0.507262",
"0.5068839",
"0.5066444",
"0.5044716",
"0.50421816",
"0.5038874",
"0.5035691",
"0.5034877",
"0.50296503",
"0.50220114",
"0.5011001",
"0.500202",
"0.50006104",
"0.49993277",
"0.49932075",
"0.4970281",
"0.49679723",
"0.49609596",
"0.49472445",
"0.49436474",
"0.4941969",
"0.49293727",
"0.49281964",
"0.49168977",
"0.49164525",
"0.49079266",
"0.48988044",
"0.48929027",
"0.48852944",
"0.48806915",
"0.4875252",
"0.48752314",
"0.48725334",
"0.48721218",
"0.48708767",
"0.48661238",
"0.48660398",
"0.4863826",
"0.48564923",
"0.48527962",
"0.4841305",
"0.48410815",
"0.48377296",
"0.48349014",
"0.4834041",
"0.48328537",
"0.48229873",
"0.48207712",
"0.48135757",
"0.48131356",
"0.48068234",
"0.4806091",
"0.48033604",
"0.48007756",
"0.479082",
"0.47818398",
"0.4776976",
"0.47766343",
"0.47765073",
"0.4776411",
"0.47744185",
"0.47666726",
"0.4765855",
"0.47616014",
"0.47597322",
"0.47597295",
"0.47589943",
"0.47568694",
"0.47545844",
"0.47531015",
"0.47508067",
"0.47424573",
"0.4733269",
"0.47330958",
"0.47302398",
"0.4728201",
"0.47271022",
"0.47223595",
"0.47211388",
"0.47185034",
"0.4718104",
"0.47118953",
"0.4709329",
"0.47010523",
"0.4697178",
"0.46935",
"0.46932596"
] |
0.0
|
-1
|
Scanner sc= new Scanner(System.in); Menu driven> adding a book, removin a book, etc
|
public static void main(String[] args) {
Book book1 =new Book(1,100,"java");
System.out.println(book1);
book1.setBook_price(300);
System.out.println(book1);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tHashMap<String,Book> hM = IOUtils.restoreBooks(\"BooksCollection\");\n\t\tboolean exitLoop = false;\n\t\t\n\t\twhile(!exitLoop) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"-----Books collection menu-----\");\n\t\t\t\tSystem.out.println(\"1. Add new book\\n2. Display books\\n10. Exit program\"\n\t\t\t\t\t\t+ \"\\n\\nEnter your choice\");\n\t\t\t\tint choice = sc.nextInt();\n\t\t\t\t\n\t\t\t\tswitch (choice) {\n\t\t\t\t case 1: \n\t\t\t\t\t//String title, Category cat, double price, String author, LocalDate dt, int quantity\n\t\t\t\t\t System.out.println(\"Enter book information(title,category,price\"\n\t\t\t\t\t \t\t+ \",author,publish date,quantity)\");\n\t\t\t\t\t sc.nextLine();\n\t\t\t\t\t String name = sc.nextLine();\n\t\t\t\t\t Category c = Category.valueOf(sc.nextLine().toUpperCase());\n\t\t\t\t\t double p = sc.nextDouble();\n\t\t\t\t\t sc.nextLine();\n\t\t\t\t\t String a = sc.nextLine();\n\t\t\t\t\t LocalDate d = parse(sc.nextLine());\n\t\t\t\t\t int q = sc.nextInt();\n\t\t\t\t\t \n\t\t\t\t\t Book newBook = new Book(name, c, p, a, d, q);\n\t\t\t\t\t \n\t\t\t\t\t if(hM.containsKey(newBook.getTitle())) {\n\t\t\t\t\t\t throw new InvalidBookException(\"Book already exists\");\n\t\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t\t hM.put(newBook.getTitle(), newBook);\n\t\t\t\t\t System.out.println(\"Book inserted : \" + newBook);\n\t\t\t\t\t break;\n\t\t\t\t\t\n\t\t\t\t case 2:\n\t\t\t\t \t\tfor(Book b : hM.values()) {\n\t\t\t\t \t\t\tSystem.out.println(b);\n\t\t\t\t \t\t}\n\t\t\t\t \t\tbreak;\n\t\t\t\t case 10:\t\n\t\t\t\t \t\texitLoop = true;\n\t\t\t\t \t\tbreak;\n\t\t\t\t default:\n\t\t\t\t \t\tSystem.out.println(\"Invalid input\");\n\t\t\t\t}\n\t\t\t} catch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tsc.nextLine();\n\t\t} \n\t\t\n\t\tIOUtils.storeBooks(hM, \"BooksCollection\");\n\t\tSystem.out.println(\"Book stored\");\n\t\tsc.close();\n\t}",
"public static void main(String[] args) {\n\t\tint choice;\n\t\tScanner s=new Scanner(System.in);\n\t\tdatabase db=new database();\n\t\tchar c;\n\t\t\n\t\tdo {\n\t\t\n\t\tSystem.out.println(\"press 1 to view all books\");\n\t\tSystem.out.println(\"press 2 to search book by title\");\n\t\tSystem.out.println(\"press 3 to insert a book\");\n\t\tSystem.out.println(\"press 4 to delete book\");\n\t\tSystem.out.println(\"press 5 to update the book\");\n\t\tSystem.out.println(\"press 6 to exit\");\n\t\t\n\t\tchoice=s.nextInt();\n\t\tswitch(choice)\n\t\t{\n\t\tcase 1:\n\t\t\t\n\t\t\tdb.showDetails();\n\t\t\t break;\n\t\tcase 2:\n\t\t\tSystem.out.println(\"enter the title of book\");\n\t\t\tString name=s.next();\n\t\t\tdb.viewByname(name);\n\t\t\tbreak;\n\t\t\t\n\t\tcase 3:\n\t\t System.out.println(\"enter the book id\");\n\t\t int id1=s.nextInt();\n\t\t System.out.println(\"enter the book name\");\n\t\t String name1=s.next();\n\t\t System.out.println(\"enter the author name\");\n\t\t String author=s.next();\n\t\t System.out.println(\"enter the book price\");\n\t\t double price=s.nextDouble();\n\t\t Book ib=new Book(id1,name1,author,price);\n\t\t db.insert(ib);\n\t\t \n\t\t break;\n\t\t \n\t\tcase 4:\n\t\t\tSystem.out.println(\"enter the id of the book you want to delete\");\n\t\t\tint id9=s.nextInt();\n\t\t\tdb.delete(id9);\n\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\tcase 5:\tSystem.out.println(\"enter the id of the book you want to update\");\n\t\t int id5=s.nextInt();\n\t\t System.out.println(\"enter the new price\");\n\t\t double price1=s.nextDouble();\n\t\t \n\t\t db.update(id5,price1);\n\t\t System.out.println(\"updated successfully\");\n\t\t\t\n\t\tcase 6:\n\t\t\tdefault:\n\t\t\t \n\t\t\tbreak;\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"press y for menu:\");\n\t\tc=s.next().charAt(0);\n\t\t\n\t\t\n\t\t\n\n\t}while(c=='Y' || c=='y');\n\n}",
"public void readBook()\n\t{\n\t\tb.input();\n\t\tSystem.out.print(\"Enter number of available books:\");\n\t\tavailableBooks=sc.nextInt();\n\t}",
"private static void addBook() {\n\t\t\r\n\t\tString author = input(\"Enter author: \"); // varaible change A to author\r\n\t\tString title = input(\"Enter title: \"); // variable changes T to title\r\n\t\tString callNumber = input(\"Enter call number: \"); // variable name change C to callNumber\r\n\t\tbook B = lib.addBook(author, title, callNumber); //variable LIB changes to library,A to author,T to title,C to callNumber , method changes Add_book to addBook()\r\n\t\toutput(\"\\n\" + B + \"\\n\");\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n // for testing, add books and find book using it's name\n /* Library.books.add(book1);\n Library.books.add(book2);\n Library.books.add(book3);\n System.out.println(\"Enter namer for Book:\");\n String bookName = sc.nextLine();\n \n for (int i = 0; i <3 ; i++) {\n\n if (Library.books.get(i).getName().equalsIgnoreCase(bookName)) {\n \n System.out.println(books.get(i).getName());\n System.out.println(i);\n }\n }*/\n \n do{\n choicesInMenu(menu());\n } while (goOn);\n //Library.addBook();\n //Library.showAllBooks();\n\n }",
"private static void addNewBook(){\n\t\tSystem.out.println(\"===Add New Book===\");\n\t\tBookDetails new_book = new BookDetails();\n\t\tScanner string_input = new Scanner(System.in); //takes string input from user\n\t\tScanner integer_input = new Scanner(System.in); //takes integer input from user\n\t\t\n\t\tSystem.out.println(\"Enter BookId: \");\n\t\tint bookId = getIntegerInput(); //ensures user input is an integer value\n\t\t/*if bookId entered already exists then continually ask user to enter bookId until a bookId that does not exist is entered. \n\t\t * Do the same if bookId is less than 1 because book's in the library will not have Id's less than 1.*/\n\t\twhile(ALL_BOOKS.containsKey(bookId) || bookId < 1){\n\t\t\tSystem.out.println(\"Book Id entered already exists! Enter BookId: \");\n\t\t\tbookId = integer_input.nextInt();\n\t\t}\n\t\tnew_book.setBookId(bookId);\n\t\t\n\t\tSystem.out.println(\"Enter Book Title: \");\n\t\tString bookTitle = string_input.nextLine();\n\t\tnew_book.setBookTitle(bookTitle);\n\t\t\n\t\tString author_firstname;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Author's First Name: \");\n\t\t\tauthor_firstname = string_input.next();\n\t\t}while(!new_book.setAuthorFirstName(author_firstname)); //loop until name input is valid (contains only letters) \n\t\t\n\t\tString author_middlename;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Author's Middle Name (Type 'null' if author has no middle name): \");\n\t\t\tauthor_middlename = string_input.next();\n\t\t}while(!new_book.setAuthorMiddleName(author_middlename)); //loop until name input is valid (contains only letters) \n\t\t\n\t\tString author_lastname;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Author's Last Name: \");\n\t\t\tauthor_lastname = string_input.next();\n\t\t}while(!new_book.setAuthorLastName(author_lastname)); //loop until name input is valid (contains only letters) \n\t\t\n\t\tstring_input = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter Book's Publisher: \");\n\t\tString publisher = string_input.nextLine();\n\t\tnew_book.setPublisher(publisher);\n\t\t\n\t\t\n\t\t/*Set book's genre. Valid values for a book's Genre are Biology, Mathematics, Chemistry, Physics,\n\t\t * Science_Fiction, Fantasy, Action, Drama, Romance, Horror, History, Autobiography, Biography.*/\n\t\tString genre;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Book's Genre: \");\n\t\t\tgenre = string_input.next();\n\t\t}while(!new_book.setGenre(genre)); //loop until valid genre value is entered\n\t\t\n\t\t/*Set book's condition. Valid values for a book's Condition are New, Good, Worn, Damaged.*/\n\t\tString condition;\n\t\tdo{\n\t\t\tSystem.out.println(\"Enter Book's Condition: \");\n\t\t\tcondition = string_input.next();\n\t\t}while(!new_book.setCondition(condition)); //loop until valid value for condition is entered\n\t\t\n\t\tALL_BOOKS.put(new_book.getBookId(), new_book);\n\t\taddToPublisherTable(new_book.getPublisher(), new_book.getBookTitle()); //add book's title to the ALL_PUBLISHERS Hashtable\n\t\taddToGenreTable(new_book, new_book.getBookTitle()); //add book's title to the ALL_GENRES ArrayList\n\t\taddToAuthorTable(new_book.getAuthor().toString(), new_book.getBookTitle()); //add book's title to the ALL_AUTHORS Hashtable\n\t\tSystem.out.println(\"Book Successfully Added!\");\n\t}",
"public static void main(String[] args) {\n LinkedList booksInStock = new LinkedList();\r\n Scanner scan = new Scanner(System.in);\r\n String bookTitle = new String();\r\n boolean keepGoing = true;\r\n// A loop that outputs a menu of options regarding the library (add titles, search for titles,\r\n//remove titles, output all titles, quit), prompts the user for which option they would like,\r\n//and uses a switch to take the appropriate actions OR quits the loop if they select quit.\r\n while (keepGoing) {\r\n System.out.println(\"Menu:\");\r\n System.out.println(\"1) Add titles\");\r\n System.out.println(\"2) Search titles\");\r\n System.out.println(\"3) Remove titles\");\r\n System.out.println(\"4) Outputs all titles \");\r\n System.out.println(\"5) Quit/End the program\");\r\n\r\n int choice = scan.nextInt();\r\n\r\n switch (choice) {\r\n case 1:\r\n System.out.println(\"Please insert a book by title: \");\r\n scan = new Scanner(System.in);\r\n bookTitle = scan.nextLine();\r\n booksInStock.insert(bookTitle);\r\n break;\r\n case 2:\r\n System.out.println(\"What's the title to search?: \");\r\n scan = new Scanner(System.in);\r\n bookTitle = scan.nextLine();\r\n// If the book title is searched for and found/not found, the user should be informed that\r\n// the book exists/does not exist\r\n if (booksInStock.search(bookTitle)) {\r\n System.out.println( \"\\\"\" + bookTitle +\"\\\"\" + \" was found\");\r\n }\r\n else {\r\n System.out.println(\"\\\"\" + bookTitle +\"\\\"\" + \" does not exist\");\r\n }\r\n break;\r\n case 3:\r\n System.out.println(\"What title to remove?: \");\r\n scan = new Scanner(System.in);\r\n bookTitle = scan.nextLine();\r\n// If the book title is attempted to be deleted and is/is not deleted, the user should be\r\n// informed that the book title was delete/not deleted\r\n if (booksInStock.remove(bookTitle)) {\r\n System.out.println(\"\\\"\" + bookTitle +\"\\\"\" + \" was deleted\");\r\n }\r\n else {\r\n System.out.println( \"\\\"\" + bookTitle +\"\\\"\" + \" does not exist\");\r\n }\r\n break;\r\n case 4:\r\n booksInStock.outputTitles();\r\n break;\r\n case 5:\r\n System.out.println(\"End program....\");\r\n keepGoing = false;\r\n break;\r\n }\r\n }\r\n }",
"public void displayMenu() throws FileNotFoundException {\n\t\tfinal String BOOK_KEY = \"1234\";\n\t\tString option;\n\t\tString isbnSelection;\n\t\tString bookTitle;\n\t\tString displayBookOfType;\n\t\tint typeOfBook;\n\t\tint numOfRandomBooks;\n\t\tchar freqSelected;\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tSystem.out.printf(\"Welcome to the ABC Book Company: How may we assist you?%n\" + \"1. Checkout Book%n\"\n\t\t\t\t+ \"2. Find Books by Title%n\" + \"3. Display Books by Type%n\" + \"4. Produce Random Book List%n\"\n\t\t\t\t+ \"5. Save & Exit%n%n\");\n\n\t\tSystem.out.printf(\"Enter option: \");\n\t\toption = in.nextLine();\n\n\t\twhile (!option.equals(\"5\")) {\n\t\t\tswitch (option) {\n\t\t\tcase \"1\":\n\t\t\t\tSystem.out.printf(\"Enter the ISBN of book: \");\n\t\t\t\tisbnSelection = in.nextLine();\n\t\t\t\tcheckOutBook(isbnSelection);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tSystem.out.printf(\"Enter the title to search for: \");\n\t\t\t\tbookTitle = in.nextLine();\n\t\t\t\tfindBookTitle(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tSystem.out.printf(\"# Type%n\" + \"1. Children's Books%n\" + \"2. CookBooks%n\" + \"3. Paperbacks%n\"\n\t\t\t\t\t\t+ \"4. Periodicals%n%n\");\n\t\t\t\tSystem.out.printf(\"Enter type of book: \");\n\n\t\t\t\tdisplayBookOfType = in.nextLine();\n\t\t\t\t\n\t\t\t\tif (BOOK_KEY.contains(displayBookOfType)&&displayBookOfType.length()==1) {\n\t\t\t\t\ttypeOfBook = Integer.parseInt(displayBookOfType);\n\t\t\t\t\tif (typeOfBook == 4) {\n\t\t\t\t\t\tSystem.out.printf(\"%nEnter a frequency (D for Daily, W for Weekly, \"\n\t\t\t\t\t\t\t\t+ \"M for Monthly, B for Biweekly, or Q for Quarterly): \");\n\t\t\t\t\t\tfreqSelected = in.nextLine().charAt(0);\n\t\t\t\t\t\tshowBookType(typeOfBook, freqSelected); // displayFrequency method needed!\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowBookType(typeOfBook);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Enter a valid book type (1-4):\\n\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\tcase \"4\":\n\t\t\t\tSystem.out.printf(\"Enter number of books: \");\n\t\t\t\ttry {\n\t\t\t\t\tnumOfRandomBooks = Integer.parseInt(in.nextLine());\n\t\t\t\t\tif (numOfRandomBooks <= 50 && numOfRandomBooks >= 0) {\n\t\t\t\t\t\tproduceRandomBookList(numOfRandomBooks);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"Wrong user Input. Please use an appropriate number from 1-50.\");\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"Wrong user Input. Please use an appropriate number from 1-50.\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Please enter an appropriate choice (1-4):\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.printf(\"Welcome to the ABC Book Company: How may we assist you?%n\" + \"1. Checkout Book%n\"\n\t\t\t\t\t+ \"2. Find Books by Title%n\" + \"3. Display Books by Type%n\" + \"4. Produce Random Book List%n\"\n\t\t\t\t\t+ \"5. Save & Exit%n%n\");\n\n\t\t\tSystem.out.printf(\"Enter option: \");\n\n\t\t\toption = in.nextLine();\n\t\t}\n\t\tsaveBook();\n\t\tin.close();\n\t}",
"private void enterBook() {\n String sku;\n String author;\n String description;\n double price;\n String title;\n boolean isInStock;\n String priceTmp;\n String inStock;\n Scanner keyb = new Scanner(System.in);\n\n System.out.println(\"Enter the sku number.\"); // Enter the SKU number\n sku = keyb.nextLine();\n\n System.out.println(\"Enter the title of the book.\"); // Enter the title\n title = keyb.nextLine();\n\n System.out.println(\"Enter the author of the book.\"); // Enter the author\n author = keyb.nextLine();\n\n System.out.println(\"Enter the price of the book.\"); // Enter the price of the book\n priceTmp = keyb.nextLine();\n price = Double.parseDouble(priceTmp);\n\n System.out.println(\"Enter a description of the book.\"); // Enter the description of the book\n description = keyb.nextLine();\n\n System.out.println(\"Enter whether the book is in stock (\\\"Y\\\"|\\\"N\\\").\"); // in stock?\n inStock = keyb.nextLine();\n if (inStock.equalsIgnoreCase(\"Y\")) {\n isInStock = true;\n } else if (inStock.equalsIgnoreCase(\"N\")) {\n isInStock = false;\n } else {\n System.out.println(\"Not a valid entry. In stock status is unknown; therefore, it will be listed as no.\");\n isInStock = false;\n }\n\n Book book = new Book(title, author, description, price, isInStock);\n bookDB.put(sku, book);\n }",
"private static void queryBook(){\n\t\tSystem.out.println(\"===Book Queries Menu===\");\n\t\t\n\t\t/*Display menu options*/\n\t\tSystem.out.println(\"1--> Query Books by Author\");\n\t\tSystem.out.println(\"2--> Query Books by Genre\");\n\t\tSystem.out.println(\"3--> Query Books by Publisher\");\n\t\tSystem.out.println(\"Any other number --> Exit To Main Menu\");\n\t\tSystem.out.println(\"Enter menu option: \");\n\t\tint menu_option = getIntegerInput(); //ensures user input is an integer value\n\t\t\n\t\tswitch(menu_option){\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println();\n\t\t\t\tqueryBooksByAuthor();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println();\n\t\t\t\tqueryBooksByGenre();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.println();\n\t\t\t\tqueryBooksByPublisher();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}",
"private void enterAll() {\n\n String sku = \"Java1001\";\n Book book1 = new Book(\"Head First Java\", \"Kathy Sierra and Bert Bates\", \"Easy to read Java workbook\", 47.50, true);\n bookDB.put(sku, book1);\n\n sku = \"Java1002\";\n Book book2 = new Book(\"Thinking in Java\", \"Bruce Eckel\", \"Details about Java under the hood.\", 20.00, true);\n bookDB.put(sku, book2);\n\n sku = \"Orcl1003\";\n Book book3 = new Book(\"OCP: Oracle Certified Professional Jave SE\", \"Jeanne Boyarsky\", \"Everything you need to know in one place\", 45.00, true);\n bookDB.put(sku, book3);\n\n sku = \"Python1004\";\n Book book4 = new Book(\"Automate the Boring Stuff with Python\", \"Al Sweigart\", \"Fun with Python\", 10.50, true);\n bookDB.put(sku, book4);\n\n sku = \"Zombie1005\";\n Book book5 = new Book(\"The Maker's Guide to the Zombie Apocalypse\", \"Simon Monk\", \"Defend Your Base with Simple Circuits, Arduino and Raspberry Pi\", 16.50, false);\n bookDB.put(sku, book5);\n\n sku = \"Rasp1006\";\n Book book6 = new Book(\"Raspberry Pi Projects for the Evil Genius\", \"Donald Norris\", \"A dozen friendly fun projects for the Raspberry Pi!\", 14.75, true);\n bookDB.put(sku, book6);\n }",
"public static void main(String[] args) {\n\t\ttry{\r\n\t\t\t//establish connection to server\r\n\t\t\t\r\n\t\t\tConnection myConn = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3306/library\", \"root\", \"Notgoaway00\");\r\n\t\t\t//get variables I'll need to run menu\r\n\t\t\t\r\n\t\t\tString input;\r\n\t\t\tScanner sc = new Scanner(System.in);\r\n\t\t\t\r\n\t\t\t//menu loop\r\n\t\t\t\r\n\t\t\twhile(true){\r\n\t\t\t\t//display menu\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Please choose an option from the menu:\");\r\n\t\t\t\tSystem.out.println(\"A. Create a table\");\r\n\t\t\t\tSystem.out.println(\"B. Add an entry/entries\");\r\n\t\t\t\tSystem.out.println(\"C. Delete an entry/entries\");\r\n\t\t\t\tSystem.out.println(\"D. List a table\");\r\n\t\t\t\tSystem.out.println(\"1. Add a new book to the library\");\r\n\t\t\t\tSystem.out.println(\"2. Add a new user\");\r\n\t\t\t\tSystem.out.println(\"3. List library users with books they checked out\");\r\n\t\t\t\tSystem.out.println(\"4. Check out a book\");\r\n\t\t\t\tSystem.out.println(\"5. Return a book\");\r\n\t\t\t\tSystem.out.println(\"6. Exit\");\r\n\t\t\t\t\r\n\t\t\t\t//get and process choice\r\n\t\t\t\t\r\n\t\t\t\tinput = sc.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tswitch(input){\r\n\t\t\t\tcase \"A\": createTable(myConn); break;\r\n\t\t\t\tcase \"B\": insert(myConn); break; \r\n\t\t\t\tcase \"C\": delete(myConn); break;\r\n\t\t\t\tcase \"D\": listTable(myConn); break;\r\n\t\t\t\tcase \"1\": addBook(myConn); break;\r\n\t\t\t\tcase \"2\": addUser(myConn); break;\r\n\t\t\t\tcase \"3\": listCheckedOut(myConn); break;\r\n\t\t\t\tcase \"4\": checkOut(myConn); break;\r\n\t\t\t\tcase \"5\": returnBook(myConn); break;\r\n\t\t\t\tcase \"6\": myConn.close(); sc.close(); exit(); break;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"void Input() {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter name of the book::\");\n Bname = scanner.nextLine();\n System.out.println(\"Enter price of the book::\");\n price = scanner.nextDouble();\n }",
"public static void menu()\r\n {\n\t\t Scanner scan = new Scanner(System.in);\r\n\t\t System.out.println(\"Please enter your choice : \");\r\n\t\t int choice = scan.nextInt();\r\n\t\t switch(choice)\r\n\t\t {\r\n\t\t case 1:\r\n\t\t\t viewFiles();\r\n\t\t\t goback();\r\n\t\t\t break;\r\n\t\t case 2: \r\n\t\t\t createNew();\r\n\t\t\t goback();\r\n\t\t\t break;\r\n\t\t case 3: \r\n\t\t\t searchFile();\r\n\t\t\t goback();\r\n\t\t\t break;\r\n\t\t case 4: \r\n\t\t deleteFile();\r\n\t\t goback();\r\n\t\t break;\r\n\t\t case 5: \r\n\t\t\t exit();\r\n\t\t\t goback();\r\n\t\t\t break;\r\n\t\t \r\n\t\t default :\r\n\t\t\t System.out.println(\"please enter a only 1,2,3 or 4\");\r\n\t\t\t goback();\r\n\t }\r\n\t }",
"void addbook(String book){\n\t\tthis.books[no_of_books]=book;\n\t\tno_of_books++;\n\t\tSystem.out.println(book+\" ...add\");\n\n\t}",
"public static int menu(final Scanner kb)\r\n {\r\n // Preconditions\r\n\t if(kb == null)\r\n\t\t throw new IllegalArgumentException(\"Scanner kb is null\");\r\n\t \r\n\t int choice;\r\n \r\n\t do\r\n\t {\r\n System.out.println(\"1) Print the List\"); \r\n System.out.println(\"2) Create a BoxCar and addFirst\"); \r\n System.out.println(\"3) Create a BoxCar and addLast\"); \r\n System.out.println(\"4) Create a BoxCar, read and index and add -- at the index\"); \r\n System.out.println(\"5) Create a BoxCar, check the list to see if the list contains the BoxCar\"); \r\n System.out.println(\"6) Create a BoxCar, find the indexOf that BoxCar\"); \r\n System.out.println(\"7) removeFirst\"); \r\n System.out.println(\"8) removeLast\"); \r\n System.out.println(\"9) Read index remove Node at that index\"); \r\n System.out.println(\"10) Create a BoxCar and removeFirstOccurrence of that BoxCar\"); \r\n System.out.println(\"11) Create a BoxCar and removeLastOccurrence of that BoxCar\"); \r\n System.out.println(\"12) clear the list\"); \r\n System.out.println(\"13) Print the size of the list\"); \r\n System.out.println(\"14) Quit\"); \r\n\r\n\t\t System.out.print(\"Enter a menu choice: \");\r\n\t\t choice = Integer.parseInt(kb.nextLine());\r\n\t\t \r\n\t }while(choice < 1 || choice > 14);\r\n\t \r\n\t return choice;\t\r\n \r\n }",
"public static void main(String[] args)\r\n {\n String input;\r\n char selection = '\\0';\r\n\r\n // keep repeating the menu until the user chooses to exit\r\n do\r\n {\r\n // display menu options\r\n System.out.println(\"******* Tour Booking System Menu *******\");\r\n System.out.println(\"\");\r\n System.out.println(\"A - Add New Attraction\");\r\n System.out.println(\"B - Display Attraction Summary\");\r\n System.out.println(\"C - Sell Passes\");\r\n System.out.println(\"D - Refund Passes\");\r\n System.out.println(\"E - Add New Scheduled Tour\");\r\n System.out.println(\"F - Update Maximum Group Size\");\r\n System.out.println(\"X - Exit Program\");\r\n System.out.println();\r\n\r\n // prompt the user to enter their selection\r\n System.out.print(\"Enter your selection: \");\r\n input = sc.nextLine();\r\n\r\n System.out.println();\r\n\r\n // check to see if the user failed to enter exactly one character\r\n // for their menu selection\r\n\r\n if (input.length() != 1)\r\n {\r\n System.out.println(\"Error - selection must be a single character!\");\r\n\r\n }\r\n else\r\n {\r\n // extract the user's menu selection as a char value and\r\n // convert it to upper case so that the menu becomes\r\n // case-insensitive\r\n\r\n selection = Character.toUpperCase(input.charAt(0));\r\n\r\n // process the user's selection\r\n switch (selection)\r\n {\r\n case 'A':\r\n \r\n // call addNewAttraction() helper method\r\n addNewAttraction();\r\n break;\r\n\r\n case 'B':\r\n\r\n // call displayAttractionSummary() helper method\r\n displayAttractionSummary();\r\n break;\r\n\r\n case 'C':\r\n\r\n // call sellPasses() helper method\r\n sellPasses();\r\n break;\r\n\r\n case 'D':\r\n\r\n // call refundPasses() helper method\r\n refundPasses();\r\n break;\r\n\r\n case 'E':\r\n\r\n // call addNewScheduledTour() helper method\r\n addNewScheduledTour();\r\n break;\r\n \r\n case 'F':\r\n\r\n // call updateMaxTourGroupSize() helper method\r\n updateMaxGroupSize();\r\n break;\r\n \r\n case 'X':\r\n\r\n System.out.println(\"Booking system shutting down – goodbye...\");\r\n break;\r\n\r\n default:\r\n\r\n // default case - handles invalid selections\r\n System.out.println(\"Error - invalid selection!\");\r\n\r\n }\r\n }\r\n System.out.println();\r\n\r\n } while (selection != 'X');\r\n\r\n }",
"public static void main(String[] args) {\n\t\tint SizeX = 10 , SizeY = 7;\n\t\tString search_type =\"\";//用書名還是書號\n\t\tString answer =\"\";\n\t\tString query = \"\";//搜尋的關鍵字\n\t\tString operation = \"\";//儲存操作的動作: 借書/還書等\n\t\tString identity = \"\";//儲存使用者身分,student/staff/exit\n\t\tScanner in = new Scanner(System.in);\n\t\tString [][] booklists = new String[SizeX][SizeY];\n\t\t//建立資料庫\n\t\tbooklists = AddBooks(\"82101\",\"Cihai\",\"Reference\",\"Shu Xincheng\",\"20000\",booklists,0);\n\t\tbooklists = AddBooks(\"80001\",\"WW2 History\",\"History\",\"Winston Churchill\",\"971\",booklists,1);\n\t\tbooklists = AddBooks(\"00003\",\"Egg 100\",\"Cookbook\",\"Su yuan ma\",\"104\",booklists,2);\n\t\tbooklists = AddBooks(\"50001\",\"Be a honest man\",\"Political\",\"Ma Ying jeou\",\"520\",booklists,3);\n\t\tbooklists = AddBooks(\"85719\",\"Sword Art Online\",\"Novel\",\"Reki Kawahara\",\"8763\",booklists,4);\n\t\tbooklists = AddBooks(\"85728\",\"Spice and Wolf\",\"Novel\",\"Isuna Hasekura\",\"510\",booklists,5);\n\t\tbooklists = AddBooks(\"85707\",\"The Old Man and the Sea\",\"Novel\",\"Ernest Hemingway\",\"127\",booklists,6);\n\t\tbooklists = AddBooks(\"85703\",\"Romance of the Three Kingdoms\",\"Novel\",\"Luo Guanzhong\",\"480\",booklists,7);\n\t\tbooklists = AddBooks(\"80005\",\"Records of the Grand Historian\",\"History\",\"Sima Qian\",\"6000\",booklists,8);\n\t\tbooklists[4][5] = \"true\";\n\t\tbooklists[4][6] = \"1\";\n\t\t\n\t\tSystem.out.println(\"【圖書館租借模擬系統】\");\n\t\tBookSystem bs = new BookSystem();\n\t\tdo{\n\t\t\tSystem.out.println(\"請問你是何種身分?學生(student)或者圖書館人員(staff)?(輸入exit離開)\");\n\t\t\tidentity = in.nextLine();\n\t\t\tif(identity.equals(\"student\")){\n\t\t\t\tdo{\n\t\t\t\t\tbs.ViewStudent(booklists, SizeX);\n\t\t\t\t\tSystem.out.println(\"請問你要進行何種操作?\");\n\t\t\t\t\tSystem.out.println(\"1. 借書(borrow)\");\n\t\t\t\t\tSystem.out.println(\"2. 還書(return)\");\n\t\t\t\t\tSystem.out.println(\"3. 預約書籍(reserve)\");\n\t\t\t\t\tSystem.out.println(\"4. 取消預約書籍(reservecancel)\");\n\t\t\t\t\tSystem.out.println(\"5. 查詢書單(search)\");\n\t\t\t\t\tSystem.out.println(\"6. 離開(exit)\");\n\t\t\t\t\toperation = in.nextLine();\n\t\t\t\t\twhile(!operation.equals(\"borrow\")&&!operation.equals(\"1\")\n\t\t\t\t\t\t&&!operation.equals(\"return\")&&!operation.equals(\"2\")\n\t\t\t\t\t\t&&!operation.equals(\"reserve\")&&!operation.equals(\"3\")\n\t\t\t\t\t\t&&!operation.equals(\"reservecancel\")&&!operation.equals(\"4\")\n\t\t\t\t\t\t&&!operation.equals(\"search\")&&!operation.equals(\"5\")\n\t\t\t\t\t\t&&!operation.equals(\"exit\")&&!operation.equals(\"6\")){\n\t\t\t\t\t\t\tSystem.out.println(\"輸入錯誤!請重新輸入:\");\n\t\t\t\t\t\t\toperation = in.nextLine();\n\t\t\t\t\t}\n\t\t\t\t\tif(!operation.equals(\"search\") && !operation.equals(\"5\")&&!operation.equals(\"exit\")&&!operation.equals(\"6\") ){\n\t\t\t\t\t\tif(operation.equals(\"borrow\")|| operation.equals(\"1\")) \n\t\t\t\t\t\t\tSystem.out.println(\"請問你要輸入[書名](bookname)還是[書號](booknum)來借閱呢?\");\n\t\t\t\t\t\telse if(operation.equals(\"return\")||operation.equals(\"2\")) \n\t\t\t\t\t\t\tSystem.out.println(\"請問你要輸入[書名](bookname)還是[書號](booknum)來還書呢?\");\n\t\t\t\t\t\telse if(operation.equals(\"reserve\")||operation.equals(\"3\")) \n\t\t\t\t\t\t\tSystem.out.println(\"請問你要輸入[書名](bookname)還是[書號](booknum)來預借呢?\");\n\t\t\t\t\t\telse if(operation.equals(\"reservecancel\")||operation.equals(\"4\")) \n\t\t\t\t\t\t\tSystem.out.println(\"請問你要輸入[書名](bookname)還是[書號](booknum)來取消預借呢?\");\n\t\t\t\t\t\tsearch_type = in.nextLine();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(search_type.equals(\"bookname\"))\tSystem.out.print(\"請輸入書名:\");\n\t\t\t\t\t\telse if(search_type.equals(\"booknum\"))\tSystem.out.print(\"請輸入書號:\");\n\t\t\t\t\t\tanswer = in.nextLine();\n\t\t\t\t\t\tif(operation.equals(\"borrow\")||operation.equals(\"1\")) \n\t\t\t\t\t\t\tbooklists = bs.BorrowBooks(booklists,SizeX,answer,search_type);\n\t\t\t\t\t\telse if(operation.equals(\"return\")||operation.equals(\"2\")) \n\t\t\t\t\t\t\tbooklists = bs.ReturnBooks(booklists,SizeX,answer,search_type);\n\t\t\t\t\t\telse if(operation.equals(\"reserve\")||operation.equals(\"3\")) \n\t\t\t\t\t\t\tbooklists = bs.ReserveBooks(booklists,SizeX,answer,search_type);\n\t\t\t\t\t\telse if(operation.equals(\"reservecancel\")||operation.equals(\"4\")) \n\t\t\t\t\t\t\tbooklists = bs.ReserveCancel(booklists,SizeX,answer,search_type);\n\t\t\t\t\t\t\n\t\t\t\t\t}else if(operation.equals(\"search\")||operation.equals(\"5\")){\n\t\t\t\t\t\tSystem.out.println(\"請問你要以何種方式查詢呢?\");\n\t\t\t\t\t\tSystem.out.println(\"1. [書號](booknum)\");\n\t\t\t\t\t\tSystem.out.println(\"2. [書名](bookname)\");\n\t\t\t\t\t\tSystem.out.println(\"3. [種類](booktype)\");\n\t\t\t\t\t\tSystem.out.println(\"4. [全部列出](all)\");\n\t\t\t\t\t\tsearch_type = in.nextLine();\n\t\t\t\t\t\tint OrderIndex = 0;\n\t\t\t\t\t\tint TypeIndex = 0;\n\t\t\t\t\t\tif(search_type.equals(\"booknum\")){\n\t\t\t\t\t\t\tOrderIndex = 0;//依書號排列\n\t\t\t\t\t\t\tTypeIndex = 0;\n\t\t\t\t\t\t}else if(search_type.equals(\"bookname\")||search_type.equals(\"all\")){\n\t\t\t\t\t\t\tOrderIndex = 1;//依書名排列\n\t\t\t\t\t\t\tTypeIndex = 1;\n\t\t\t\t\t\t}else if(search_type.equals(\"booktype\")){\n\t\t\t\t\t\t\tOrderIndex = 1;//依書名排列\n\t\t\t\t\t\t\tTypeIndex = 2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!search_type.equals(\"all\")){\n\t\t\t\t\t\t\tSystem.out.print(\"請輸入 \"+search_type+\"的關鍵字:\");\n\t\t\t\t\t\t\tquery = in.nextLine();\n\t\t\t\t\t\t\tbs.SearchBooks(booklists,SizeX,SizeY,query,TypeIndex,OrderIndex);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbs.SearchBooks(booklists,SizeX,SizeY,TypeIndex,OrderIndex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}while(!operation.equals(\"exit\"));\n\t\t\t}else if(identity.equals(\"staff\")){\n\t\t\t\tdo{\n\t\t\t\t\tSystem.out.println(\"=========This is staff page=============\");\n\t\t\t\t\tSystem.out.println(\"請問你要進行何種操作?\");\n\t\t\t\t\tSystem.out.println(\"1. 登錄新書籍(bookregister)\");\n\t\t\t\t\tSystem.out.println(\"2. 刪除書籍(bookdelete)\");\n\t\t\t\t\tSystem.out.println(\"3. 更新書籍資料(bookedit)\");\n\t\t\t\t\tSystem.out.println(\"4. 查詢書單(search)\");\n\t\t\t\t\tSystem.out.println(\"5. 查詢學生資料(viewstudent)\");\n\t\t\t\t\tSystem.out.println(\"6. 離開(exit)\");\n\t\t\t\t\toperation = in.nextLine();\n\t\t\t\t\tif(operation.equals(\"bookregister\")||operation.equals(\"1\")){\n\t\t\t\t\t\tbooklists = bs.RregisterBook(booklists,SizeX);\n\t\t\t\t\t}else if(operation.equals(\"bookdelete\")||operation.equals(\"2\")\n\t\t\t\t\t\t\t||operation.equals(\"bookedit\")||operation.equals(\"3\")){\n\t\t\t\t\t\tif(operation.equals(\"bookdelete\")||operation.equals(\"2\"))\n\t\t\t\t\t\t\tSystem.out.println(\"請問你要輸入[書名](bookname)還是[書號](booknum)來刪除書籍呢?\");\n\t\t\t\t\t\telse if(operation.equals(\"bookedit\")||operation.equals(\"3\"))\n\t\t\t\t\t\t\tSystem.out.println(\"請問你要輸入[書名](bookname)還是[書號](booknum)來修改書籍呢?\");\n\t\t\t\t\t\tsearch_type = in.nextLine();\t\t\t\t\t\t\n\t\t\t\t\t\tif(search_type.equals(\"bookname\"))\tSystem.out.print(\"請輸入書名:\");\n\t\t\t\t\t\telse if(search_type.equals(\"booknum\"))\tSystem.out.print(\"請輸入書號:\");\n\t\t\t\t\t\tanswer = in.nextLine();\n\t\t\t\t\t\tif(operation.equals(\"bookdelete\")||operation.equals(\"2\"))\n\t\t\t\t\t\t\tbooklists = bs.DeleteBooks(booklists,SizeX,SizeY,answer,search_type);\n\t\t\t\t\t\telse if(operation.equals(\"bookedit\")||operation.equals(\"3\"))\n\t\t\t\t\t\t\tbooklists = bs.EditBooks(booklists,SizeX,answer,search_type);\n\t\t\t\t\t\n\t\t\t\t\t}else if(operation.equals(\"search\")||operation.equals(\"4\")){\n\t\t\t\t\t\tSystem.out.println(\"請問你要以何種方式查詢呢?\");\n\t\t\t\t\t\tSystem.out.println(\"1. [書號](booknum)\");\n\t\t\t\t\t\tSystem.out.println(\"2. [書名](bookname)\");\n\t\t\t\t\t\tSystem.out.println(\"3. [種類](booktype)\");\n\t\t\t\t\t\tSystem.out.println(\"4. [全部列出](all)\");\n\t\t\t\t\t\tsearch_type = in.nextLine();\n\t\t\t\t\t\tint OrderIndex = 0;\n\t\t\t\t\t\tint TypeIndex = 0;\n\t\t\t\t\t\tif(search_type.equals(\"booknum\")||search_type.equals(\"1\")){\n\t\t\t\t\t\t\tOrderIndex = 0;//依書號排列\n\t\t\t\t\t\t\tTypeIndex = 0;\n\t\t\t\t\t\t}else if(search_type.equals(\"bookname\")||search_type.equals(\"all\")||search_type.equals(\"2\")||search_type.equals(\"3\")){\n\t\t\t\t\t\t\tOrderIndex = 1;//依書名排列\n\t\t\t\t\t\t\tTypeIndex = 1;\n\t\t\t\t\t\t}else if(search_type.equals(\"booktype\")||search_type.equals(\"3\")){\n\t\t\t\t\t\t\tOrderIndex = 1;//依書名排列\n\t\t\t\t\t\t\tTypeIndex = 2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!search_type.equals(\"all\")){\n\t\t\t\t\t\t\tSystem.out.print(\"請輸入 \"+search_type+\"的關鍵字:\");\n\t\t\t\t\t\t\tquery = in.nextLine();\n\t\t\t\t\t\t\tbs.SearchBooks(booklists,SizeX,SizeY,query,TypeIndex,OrderIndex);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbs.SearchBooks(booklists,SizeX,SizeY,TypeIndex,OrderIndex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(operation.equals(\"viewstudent\")||operation.equals(\"5\")){\n\t\t\t\t\t\tbs.ViewStudent(booklists,SizeX);\n\t\t\t\t\t}\n\t\t\t\t}while(!operation.equals(\"exit\"));\n\t\t\t}\n\t\t\t\n\t\t}while(!identity.equals(\"exit\"));\n\t\t\n\t\tSystem.out.println(\"感謝您使用此系統!\");\n\t}",
"public void startSystem() \r\n {\r\n Scanner sc = new Scanner(System.in);\r\n while(true)\r\n {\r\n displayMenu();\r\n if(sc.hasNextInt())\r\n {\r\n int choice = sc.nextInt();//choice stores the value of input entered by the user. \r\n switch(choice)\r\n {\r\n case 1: pSlot.addSlot();\r\n break;\r\n case 2: pSlot.deleteSlot();\r\n break;\r\n case 3: pSlot.listSlots();\r\n break;\r\n case 4: pSlot.parkCar();\r\n break;\r\n case 5: pSlot.findCar();\r\n break;\r\n case 6: pSlot.removeCar();\r\n break;\r\n case 7: exitApplication();\r\n break; \r\n default: System.out.println(\"\\n Please choose the input from 1-7\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"\\n Please choose the input from 1-7\");\r\n sc.next();\r\n }\r\n }\r\n \r\n }",
"public void inputScanner(){\n\t\t Scanner sc=new Scanner(System.in); \n\t \n\t\t System.out.println(\"Enter your rollno\"); \n\t\t int rollno=sc.nextInt(); \n\t\t System.out.println(\"Enter your name\"); \n\t\t String name=sc.next(); \n\t\t System.out.println(\"Enter your fee\"); \n\t\t double fee=sc.nextDouble(); \n\t\t System.out.println(\"Rollno:\"+rollno+\" name:\"+name+\" fee:\"+fee); \n\t\t sc.close(); \n\t}",
"public static void main(String[] args) {\n \n \n boolean do_end = false;\n \n do{\n System.out.println(\"Choose option:\\n\"\n + \"1. Add studnet\\n\"\n + \"2. Show studnet\\n\"\n + \"3. Search studnet\\n\");\n Scanner sc = new Scanner(System.in);\n int option = sc.nextInt();\n \n switch(option){\n case 1: \n //add\n Student st = add_studnet();\n students[counter] = st;\n counter++;\n break;\n case 2:\n //show\n show_student();\n break;\n case 3:\n //search\n break;\n default:\n do_end = true;\n }\n \n \n }while(!do_end);\n \n }",
"public void edit(String title){\r\n \t\t\r\n \t char inpt;\r\n \t Scanner e;\r\n \t Scanner ttl;\r\n \t String t;\r\n \t\t\r\n \t boolean found = false;\t\t\t\t\t\r\n \t Iterator<Item> i = items.iterator();\r\n \t Item current = new Item();\r\n\r\n\t while(i.hasNext()){\r\n\t current = i.next();\r\n\t \r\n\t\t //First we have to find the title we want to edit.\r\n\t if(title.compareTo(current.getTitle()) == 0) {\r\n\t System.out.print(\"Found \" + current.toString());\r\n\t found = true;\r\n\t System.out.println(\"Is this the item you wish to edit? (Y/N)\");\r\n\t Scanner response = new Scanner(System.in);\r\n\t char r = response.next().toUpperCase().charAt(0);\r\n\t if(r == 'Y'){\r\n\t \t \r\n\t \t\t//Check if item is Book or magazine, then ask\r\n\t \t\t//user what element they wish to change.\r\n \t\t if(current.getItemType() == Item.ItemTypes.BOOK){\r\n \t\t System.out.println(\"Edit: (T)itle or (A)uthor.\");\r\n \t\t \t e = new Scanner(System.in);\r\n \t\t inpt = e.next().toUpperCase().charAt(0);\r\n \t\t\t\r\n \t\t if(inpt == 'T'){\r\n \t\t System.out.println(\"Enter the new title: \");\r\n \t\t\t ttl = new Scanner(System.in);\r\n \t\t\t t = ttl.nextLine();\r\n \t\t\t\t\r\n \t\t\t\t\t//set new title!\r\n \t\t\t current.setTitle(t);\r\n \t\t\t\t\r\n \t\t \t }else if(inpt == 'A'){\r\n \t\t\t\t\r\n \t\t System.out.println(\"Enter new authors name: \");\r\n \t\t Scanner a = new Scanner(System.in);\r\n \t\t String author = a.nextLine();\r\n \t\t \r\n \t\t ((Book)current).setAuthor(author);\r\n \t\t \t//This needded to be cast because setAuthor\r\n \t\t \t//is a method in the child class (Book),\r\n \t\t \t//not the parent class (Item.)\t\r\n \t\t }\r\n \t\t } else if(current.getItemType() == Item.ItemTypes.MAGAZINE){\r\n \t\t System.out.println(\"Edit: (T)itle or (Y)ear.\");\r\n \t\t e = new Scanner(System.in);\r\n \t\t inpt = e.next().toUpperCase().charAt(0);\r\n \t\t\t\r\n \t\t if(inpt == 'T'){\r\n \t\t System.out.println(\"Enter the new title: \");\r\n \t\t\t ttl = new Scanner(System.in);\r\n \t\t\t t = ttl.nextLine();\r\n \t\t\t\t\r\n \t\t\t\t \t//set new title!\r\n \t\t \t current.setTitle(t);\r\n \t\t\t\t\r\n \t\t } else if (inpt == 'Y'){\r\n \t\t \t\r\n \t\t System.out.println(\"Enter new year: \");\r\n \t\t Scanner y = new Scanner(System.in);\r\n \t\t int year = y.nextInt();\r\n \t\t \r\n \t\t ((Magazine)current).setYear(year);\t\r\n \t\t \t//This needded to be cast because setAuthor\r\n \t\t \t//is a method in the child class (Book),\r\n \t\t \t//not the parent class (Item.)\t\t\r\n \t\t }\r\n \t\t }\r\n\t }\r\n\t } \r\n }\r\n \r\n \t//If the title can't be found, print this.\r\n\t if(found != true){\r\n\t System.out.println(\"Title: \" + title + \" could not be found.\");\r\n\t System.out.println(\"Check the spelling and try again.\");\r\n\t }\r\n }",
"public void addMedia(String title) {\n\t\tScanner s = LibraryDriver.s;\n\t\tfor(Media m:LibrarySystem.getInstance().inventory) {\n\t\t\tif(m.title.equals(title)) {\n\t\t\t\tSystem.out.println(\"This item is already present within the system. Would you like to add another copy? (Y/N)\");\n\t\t\t\tString result = s.nextLine();\n\t\t\t\tif(result.toUpperCase().equals(\"Y\")) {\n\t\t\t\t\tm.copy();\n\t\t\t\t\tm.copyCountUp();\n\t\t\t\t\tSystem.out.println(\"Success! New copy added.\");\n\t\t\t\t\tm.returnMedia();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t} \n\t\t}\n\t\tSystem.out.println(\"Please input the following information for this piece of media:\");\n\t\tSystem.out.println(\"Media type:\");\n\t\tString mediaType = s.nextLine();\n\t\tSystem.out.print(\"Genre: \");\n\t\tString newGenre = s.next();\n\t\ts.nextLine();\n\t\tSystem.out.print(\"Description: \");\n\t\tString newDesc = s.next();\n\t\ts.nextLine();\n\t\tSystem.out.print(\"Year of Release: \");\n\t\tString newYear = s.next();\n\t\ts.nextLine();\n\t\tSystem.out.print(\"New Release (true/false): \");\n\t\tboolean newRelease = s.nextBoolean();\n\t\tif(mediaType.toUpperCase().equals(\"AUDIOBOOK\")) {\n\t\t\tSystem.out.print(\"Author: \");\n\t\t\tString newAuth = s.next();\n\t\t\ts.nextLine();\n\t\t\tSystem.out.print(\"Narrator: \");\n\t\t\tString newNarr = s.next();\n\t\t\tAudioBook temp = new AudioBook(title,newGenre,newDesc,newYear,newRelease,1,newAuth,newNarr);\n\t\t\tSystem.out.println(\"Success! New audiobook added.\");\n\t\t\tnotifyWishlists(title);\n\t\t\treturn;\n\t\t}\n\t\tif(mediaType.toUpperCase().equals(\"BOOK\")) {\n\t\t\tSystem.out.print(\"Author: \");\n\t\t\tString newAuth = s.next();\n\t\t\ts.nextLine();\n\t\t\tSystem.out.print(\"ISBN: \");\n\t\t\tString newISBN = s.next();\n\t\t\ts.nextLine();\n\t\t\tSystem.out.print(\"Publisher: \");\n\t\t\tString newPubl = s.next();\n\t\t\ts.nextLine();\n\t\t\tBook temp = new Book(title,newGenre,newDesc,newYear,newRelease,1,newAuth,newISBN,newPubl);\n\t\t\tSystem.out.println(\"Success! New book added.\");\n\t\t\tnotifyWishlists(title);\n\t\t\treturn;\n\t\t}\n\t\tif(mediaType.toUpperCase().equals(\"DVD\")) {\n\t\t\tSystem.out.print(\"Director: \");\n\t\t\tString newActors = s.next();\n\t\t\tDVD temp = new DVD(title,newGenre,newDesc,newYear,newRelease,1,newActors);\n\t\t\tSystem.out.println(\"Success! New DVD added.\");\n\t\t\tnotifyWishlists(title);\n\t\t\treturn;\n\t\t}\n\t\tif(mediaType.toUpperCase().equals(\"EBOOK\")) {\n\t\t\tSystem.out.print(\"Author: \");\n\t\t\tString newAuth = s.next();\n\t\t\ts.nextLine();\n\t\t\tEBook temp = new EBook(title,newGenre,newDesc,newYear,newRelease,1,newAuth);\n\t\t\tSystem.out.println(\"Success! New Ebook added.\");\n\t\t\tnotifyWishlists(title);\n\t\t\treturn;\n\t\t}\n\t\tif(mediaType.toUpperCase().equals(\"MAGAZINE\")) {\n\t\t\tSystem.out.print(\"Author: \");\n\t\t\tString newAuth = s.next();\n\t\t\ts.nextLine();\n\t\t\tSystem.out.print(\"Volume: \");\n\t\t\tint newVol = s.nextInt();\n\t\t\ts.nextLine();\n\t\t\tSystem.out.print(\"Publisher: \");\n\t\t\tint newIssue = s.nextInt();\n\t\t\ts.nextLine();\n\t\t\tMagazine temp = new Magazine(title,newGenre,newDesc,newYear,newRelease,1,newAuth, newVol, newIssue);\n\t\t\tSystem.out.println(\"Success! New magazine added.\");\n\t\t\tnotifyWishlists(title);\n\t\t\treturn;\n\t\t}\n\t}",
"public static void main_menu(){\n\n String command;\n\n do {\n\n System.out.println(\"Main Menu\");\n System.out.println(\"(A) \\t Add Applicant\");\n System.out.println(\"(R) \\t Remove Applicant\");\n System.out.println(\"(G) \\t Get Applicant\");\n System.out.println(\"(P) \\t Print List\");\n System.out.println(\"(RS) \\t Refine Search\");\n System.out.println(\"(S) \\t Size\");\n System.out.println(\"(D) \\t Backup\");\n System.out.println(\"(CB) \\t Compare Backup\");\n System.out.println(\"(RB) \\t Revert Backup\");\n System.out.println(\"(Q) \\t Quit\");\n\n\n //Scanner input = new Scanner(System.in);\n\n System.out.println(\"Please enter a command: \");\n command = input.nextLine().toUpperCase();\n\n switch (command){\n case \"A\" :\n main_addApplicant();\n break;\n case \"R\":\n main_removeApplicant();\n break;\n case \"G\" :\n main_getApplicant();\n break;\n case \"P\" :\n main_printList();\n break;\n case \"RS\":\n main_refineSearch();\n break;\n case \"S\" :\n main_getSize();\n break;\n case \"D\" :\n main_backup();\n break;\n case \"CB\" :\n main_compareBackup();\n break;\n case \"RB\" :\n main_revertBackup();\n break;\n case \"Q\" :\n System.exit(0);\n break;\n default:\n System.out.println(\"Invalid choice. Try again.\");\n //main_menu();\n\n }\n\n }\n while(!command.equalsIgnoreCase(\"Q\"));\n\n input.close();\n }",
"public void setBooked(){\n Scanner scan = new Scanner(System.in);\n String input = scan.nextLine();\n if (input.equals(\"Y\")||input.equals(\"y\"))\n booked = true;\n else \n booked = false;\n }",
"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 static void main(String[] args) {\r\n RecipeBox myRecipeBox = new RecipeBox();\r\n Scanner menuScnr = new Scanner(System.in);\r\n //request user to enter their selection\r\n System.out.println(\"Menu\\n\" + \"1. Add Recipe\\n\" + \"2. Print All Recipe Details\\n\" + \"3. Print All Recipe Names\\n\" \r\n + \"4. Print Adjusted Recipe Amount\\n\" + \"\\nPlease select a menu item:\");\r\n \r\n //a while loop that accepts integers, executes based upon input, and returns to the menu\r\n while (menuScnr.hasNextInt() || menuScnr.hasNextLine()) {\r\n System.out.println(\"Menu\\n\" + \"1. Add Recipe\\n\" + \"2. Print All Recipe Details\\n\" + \"3. Print All Recipe Names\\n\" \r\n + \"4. Print Adjusted Recipe Amount\\n\" + \"\\nPlease select a menu item:\");\r\n int input = menuScnr.nextInt();\r\n System.out.println(input);\r\n // selecting 1 creates new recipe using the myRecipeBox object and addNewRecipe method\r\n if (input == 1) {\r\n myRecipeBox.addNewRecipe();\r\n // selecting 2 uses the printAllRecipeDetails to print the details of the Recipe name entered\r\n } else if (input == 2) {\r\n System.out.println(\"Which recipe?\\n\");\r\n menuScnr.nextLine();\r\n String selectedRecipeName = menuScnr.nextLine();\r\n myRecipeBox.printAllRecipeDetails(selectedRecipeName);\r\n // selecting 3 prints the list of recipe names by iterating through and printing each\r\n } else if (input == 3) {\r\n for (int j = 0; j < myRecipeBox.listOfRecipes.size(); j++) {\r\n System.out.println((j + 1) + \": \" + myRecipeBox.listOfRecipes.get(j).getRecipeName());\r\n }\r\n // selecting 4 uses findRecipeDetails to scale the recipe indicated by the user\r\n } else if (input == 4) {\r\n System.out.println(\"Which recipe?\\n\");\r\n menuScnr.nextLine();\r\n String recipeName = menuScnr.nextLine();\r\n myRecipeBox.findRecipeDetails(recipeName);\r\n // all other input returns to the menu\r\n } else {\r\n System.out.println(\"Menu\\n\" + \"1. Add Recipe\\n\" + \"2. Print All Recipe Details\\n\" + \"3. Print All Recipe Names\\n\" \r\n + \"4. Print Adjusted Recipe Amount\\n\" + \"\\nPlease select a menu item:\");\r\n }\r\n //after selecting and exicuting a choice, this returns the user to the menu\r\n System.out.println(\"Menu\\n\" + \"1. Add Recipe\\n\" + \"2. Print All Recipe Details\\n\" + \"3. Print All Recipe Names\\n\" \r\n + \"4. Print Adjusted Recipe Amount\\n\" + \"\\nPlease select a menu item:\");\r\n\r\n }\r\n }",
"private void bidMenu() {\r\n String command;\r\n input = new Scanner(System.in);\r\n\r\n command = input.next();\r\n\r\n if (command.equals(\"N\")) {\r\n System.out.println(\"You are now returning to the main menu\");\r\n }\r\n if (command.equals(\"Y\")) {\r\n setBid();\r\n }\r\n }",
"private static void createMenu(Scanner scanner) {\n\t\tSystem.out.println(\"\\n----------QUIZ MANAGER----------\");\n\t\tSystem.out.println(\"1. Create questions.\");\n\t\tSystem.out.println(\"2. Quiz view.\");\n\t\tSystem.out.println(\"3. Exit.\");\n\t\tSystem.out.println(\"Please choose an option: \");\n\t}",
"public void intro(){Scanner teclado = new Scanner(System.in);\nSystem.out.println(\"Introduzca la unidad de medida a la que transformar \"\n + \"pies, cm o yardas\");\nSystem.out.println(\"o escriba salir si quiere volver al primer menu\");\nopcion=teclado.nextLine();}",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n LuuPhuongUyen L = new LuuPhuongUyen();\n L.addLast(\"00\", \"aa\", 2, 2);\n L.addLast(\"11\", \"bb\", 3, 2);\n while (true) {\n L.menu();\n int choice = sc.nextInt();\n switch (choice) {\n case 1:\n L.addItem();\n break;\n case 2:\n L.searchItem();\n break;\n case 3:\n L.deleteItem();\n break;\n case 4:\n L.traverse();\n break;\n case 5:\n return;\n }\n }\n }",
"public void start() {\n\n\tSystem.out.println(\"Welcome on HW8\");\n\tSystem.out.println(\"Avaiable features:\");\n\tSystem.out.println(\"Press 1 for find the book titles by author\");\n\tSystem.out.println(\"Press 2 for find the number of book published in a certain year\");\n\tSystem.out.print(\"Which feature do you like to use?\");\n\n\tString input = sc.nextLine();\n\tif (input.equals(\"1\"))\n\t showBookTitlesByAuthor();\n\telse if (input.equals(\"2\"))\n\t showNumberOfBooksInYear();\n\telse {\n\t System.out.println(\"Input non recognized. Please digit 1 or 2\");\n\t}\n\n }",
"public void startBook() {\n\t\tthis.startInfo();\n\t\tSystem.out.println();\n\t\tint maxNoSeat = this.showtimes.getNoSeatAvailable();\n\t\tSystem.out.println(\"How many tickets do you want to purchase? (Max:\"+maxNoSeat+\"):\");\n\t\tint choice = this.getInputChoice(1, maxNoSeat);\n\t\t\n\n\t\t\n\t\t// Array to store age of Movie-goers\n\t\tint[] ageArray = new int[choice];\n\t\tfor (int i=0; i< choice; ++i) {\n\t\t\tSystem.out.println();\n\t\t\tthis.showtimes.viewSeat();\n\t\t\tSystem.out.println(\"Please choose your seat(s) (e.g. A1):\");\n\t\t\tint[] seat = this.getInputSeat();\n\t\t\t\n\t\t\tthis.showtimes.takeSeat(seat[0], seat[1]);\n\t\t\tSystem.out.println(\"Enter movie-goer's age:\");\n\t\t\tint age = this.getInputInteger();\n\t\t\tageArray[i] = age;\n\t\t}\n\t\tthis.runBook(choice, ageArray);\n\t}",
"public static void main(String[] args) {\nScanner s=new Scanner(System.in);\r\nSystem.out.println(\"Enter the school name\");\r\nString a=s.next();\r\nSystem.out.println(\"Enter the student name\");\r\nString b=s.next();\r\nSystem.out.println(\"Enter the roll name\");\r\nString a=s.next();\r\n\t}",
"private static void purchaseCar(Scanner scan, List<UsedCar> carList, int menuChoice, int numCars) {\n String input = \"\";\n\n if (menuChoice == numCars) { // if user chooses to quit then jump out of the loop. this ensures we won't get\n // an out of bounds exception\n return;\n }\n do { // prints menu choice and queries user + code for validiation of input\n \n System.out.printf(\"%-10s \\t\", carList.get(menuChoice).makeGet());\n System.out.printf(\"%-10s \\t\", carList.get(menuChoice).modelGet());\n System.out.printf(\"%-7d \\t\", carList.get(menuChoice).yearGet());\n \n if (carList.get(menuChoice).mileGet() != 0.0) { //if the car has greater than 0.0 miles it is used so we change output to reflect additional field \n System.out.printf(\"$%-6.2f \\t\", carList.get(menuChoice).priceGet());\n System.out.printf(\" (Used) Mileage: %-6.1f \\n\", carList.get(menuChoice).mileGet());\n } else { //if it's a new car then no need to print mileage\n System.out.printf(\"$%-6.2f \\n\", carList.get(menuChoice).priceGet());\n }\n // System.out.println(carList.get(menuChoice));\n \n scan.nextLine(); //consume the carriage return\n System.out.println(\"Would you like to buy this car?\");\n input = scan.nextLine();\n\n if (!(input.equalsIgnoreCase(\"y\")) && (!(input.equalsIgnoreCase(\"n\")))) {\n System.out.println(\"Invalid input. Please enter y or n\");\n }\n } while (!(input.equalsIgnoreCase(\"y\")) && (!(input.equalsIgnoreCase(\"n\"))));\n\n if (input.equalsIgnoreCase(\"y\")) {\n System.out.println(\"Excellent! Our finance department will be in touch shortly.\");\n carList.remove(menuChoice);\n }\n }",
"private static void checkoutBook(){\n\t\tSystem.out.println(\"===Book Checkout===\");\n\t\tScanner string_input = new Scanner(System.in); //gets String values entered by the user\n\t\tScanner integer_input = new Scanner(System.in); //gets integer values entered by the user\n\t\tboolean exit = false; //indicates whether method should be exited\n\t\t\n\t\tSystem.out.println(\"Enter Id of book to be checked out: \");\n\t\tint bookId = getIntegerInput();//ensures user input is an integer value\n\t\t//if bookId entered does not exist then continually ask user to enter bookId until a bookId that exists is entered\n\t\twhile(!ALL_BOOKS.containsKey(bookId)){\n\t\t\tSystem.out.println(\"Book Id entered does not exist! Enter BookId: \");\n\t\t\tbookId = integer_input.nextInt();\n\t\t}\n\t\t\n\t\t/*Print statements to notify book has been found, the book's details, and its availabilty*/\n\t\tSystem.out.println(\"Book Found!\");\n\t\tSystem.out.println(ALL_BOOKS.get(bookId).getBookTitle() + \" | Written By: \" + ALL_BOOKS.get(bookId).getAuthor().toString() + \" | Published By: \" + ALL_BOOKS.get(bookId).getPublisher());\n\t\tString availabilty = !ALL_BOOKS.get(bookId).getBorrowed() ? \"Available\" : \"Currently Borrowed\"; //stores whether book is currently borrowed or not.\n\t\tSystem.out.println(availabilty);\n\t\t\n\t\tif(!ALL_BOOKS.get(bookId).getBorrowed()){//if book is available to be borrowed then change it's status and set the date it should be returned (Next Month From Date of Borrowing)\n\t\t\tSystem.out.println(\"Enter Id of student borrowing the book: \");\n\t\t\tint studentId = getIntegerInput();//ensures user input is an integer value\n\t\t\tif(!studentExists(studentId)){ //if student Id entered does not exists\n\t\t\t\tSystem.out.println(\"Student Id entered does not exist. Do you want to add a new student? (Y --> Yes/ Any other button --> No): \");\n\t\t\t\tString user_option = string_input.next();\n\t\t\t\tif(user_option.equalsIgnoreCase(\"Y\"))\n\t\t\t\t\tstudentId = addNewStudent(); //adds a new student to the ALL_STUDENTS ArrayList and returns this new student's Id \n\t\t\t\telse\n\t\t\t\t\texit = true; //exit to main menu\n\t\t\t}\n\t\t\t\n\t\t\t/*Students cannot borrow more than one book at a time. Thus if the student's bookIdBorrowed is greater than 0 then\n\t\t\t * it implies the student currently has a book borrowed.*/\n\t\t\telse if(ALL_STUDENTS.get(studentId).getBookIdBorrowed() > 0){ \n\t\t\t\tStudentDetails student = ALL_STUDENTS.get(studentId); //stores student trying to checkout the book\n\t\t\t\tBookDetails bookBorrowed = ALL_BOOKS.get(student.getBookIdBorrowed()); //stores book currently borrowed by the student\n\t\t\t\tSystem.out.println(\"Sorry! Only one book can be borrowed at a time.\");\n\t\t\t\tSystem.out.println(student.getFullName() + \" currently has borrowed \" + bookBorrowed.getBookTitle());\n\t\t\t\tSystem.out.println(\"Please come back later when \" + bookBorrowed.getBookTitle() + \" is returned\");\n\t\t\t\texit = true; //exit to main menu\n\t\t\t}\n\t\t\t\n\t\t\t/*If the method has not been exited at this point then it implies the student can be borrow the book.*/\n\t\t\tif(!exit){\n\t\t\t\tBookDetails book = ALL_BOOKS.get(bookId);\n\t\t\t\tCalendar return_date = new GregorianCalendar(); //get the current date\n\t\t\t\treturn_date.add(Calendar.MONTH, 1); //set the return date to the next month from the current date\n\t\t\t\tbook.setBorrowed(true); //indicates book has been borrowed\n\t\t\t\tbook.setDateToReturn(return_date); //set book's return date\n\t\t\t\n\t\t\t\tALL_STUDENTS.get(studentId).setBookIdBorrowed(book.getBookId()); //indicate that the student has borrowed this book\n\t\t\t\tbook.setStudentBorrowed(studentId); //indicates book has been borrowed by the student with the given ID\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"You Are All Set!\");\n\t\t\t\tSystem.out.println(book.getBookId() + \" | \" + book.getBookTitle() + \" is due \" + SDF.format(return_date.getTime()));\n\t\t\t}\n\t\t}\n\t\t\n\t\telse\n\t\t\tSystem.out.println(\"Sorry check back later to borrow this book\");\t\n\t}",
"public void addMultipleBook() {\n Set set = new TreeSet();\n System.out.println(\" yours choice how many addressbook you want to create it:--\");\n int number = scanner.nextInt();\n\n for (int index = 1; index <= number; index++) {\n System.out.println(\"give name to your dictionary:--\");\n String name = scanner.next();\n set.add(name);\n }\n System.out.println(set);\n }",
"public void addRecord(Scanner input) {\n\t\tString type;\n\t\tdo {\n\t\t\tSystem.out.print(\"Enter a reference type (book or journal)> \");\n\t\t\ttype = input.nextLine();\n\t\t} while (!matchedKeyword(type, REFERENCE_TYPES));\n\n\t\tString callNumber = \"\";\n\t\tdo {\n\t\t\tSystem.out.print(\"Enter a call number> \");\n\t\t\tcallNumber = input.nextLine();\n\t\t} while (callNumber.equals(\"\"));\n\n\t\tString authors = \"\";\n\t\tif (type.equalsIgnoreCase(\"book\") || type.equalsIgnoreCase(\"b\")) {\n\t\t\tSystem.out.print(\"Enter a list of authors separated by comma> \");\n\t\t\tauthors = input.nextLine();\n\t\t}\n\n\t\tSystem.out.print(\"Enter a title> \");\n\t\tString title = input.nextLine();\n\n\t\tString publisher = \"\";\n\t\tif (type.equalsIgnoreCase(\"book\") || type.equalsIgnoreCase(\"b\")) {\n\t\t\tSystem.out.print(\"Enter a publisher> \");\n\t\t\tpublisher = input.nextLine();\n\t\t}\n\n\t\tString organizer = \"\";\n\t\tif (type.equalsIgnoreCase(\"journal\") || type.equalsIgnoreCase(\"j\")) {\n\t\t\tSystem.out.print(\"Enter an organizer> \");\n\t\t\torganizer = input.nextLine();\n\t\t}\n\n\t\tint year = 0;\n\t\tdo {\n\t\t\tSystem.out.print(\"Enter a year (between 1000 and 9999)>\");\n\t\t\tString yearValue = input.nextLine();\n\t\t\tyear = yearValue.equals(\"\") ? 0 : Integer.parseInt(yearValue);\n\t\t} while (year < 1000 || year > 9999);\n\n\t\tboolean result = true;\n\t\tif (type.equalsIgnoreCase(\"book\") || type.equalsIgnoreCase(\"b\")) {\n\t\t\tresult = addBook(new Book(callNumber, authors, title, publisher,\n\t\t\t\t\tyear));\n\t\t\taddToHashMap(title.toLowerCase().split(\"[ ,\\n]+\"));\n\t\t} else {\n\t\t\tresult = addJournal(new Journal(callNumber, title, organizer, year));\n\t\t\taddToHashMap(title.toLowerCase().split(\"[ ,\\n]+\"));\n\t\t}\n\t\tif (!result)\n\t\t\tSystem.out.println(\"Add failed: there is another reference with the same call number and year\");\n\t}",
"public static void main(String[] args) {\n\t\tStudent s = new Student();\n\t\t\n\t\tint x = 1;\n\t\tint ch;\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\n\\n1. Create Database\" + \"\\n2. Display Database\" + \"\\n3. Search Records\" + \"\\n4. Modify Records\" + \"\\n5. Clear Records\" + \"\\n6. Delete file\" + \"\\n7. Exit\");\n\t\t\tSystem.out.println(\"Enter Choice:: \");\n\t\t\tch = sc.nextInt();\n\t\t\t\n\t\t\tswitch(ch) {\n\t\t\n\t\t\t\t\n\t\t\tcase 1:\n\t\t\t\ts.create();\n//\t\t\t\ts.write();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\ts.display();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\ts.search();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\ts.modify();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\ts.clearRecords();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\ts.delete();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 7:\n\t\t\t\tx = 1;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Invalid choice!\");\n\t\t\t\t\n\t\t\t}\n\t\t}while(x==1);\n\t}",
"public static void addItem() {\n\t scanner scan; \n scan = new Scanner(System.in);\n while(true){\n System.out.print(\"Enter the Index you'd like to add:\");\n if (scan.hasNextInt()){\n int adds=scan.nextInt();\n ArrayList.add(adds);\n }\n }\n }",
"public void userForm(){\n\t\tSystem.out.print(menu);\n\t\tScanner input = new Scanner(System.in);\n\t\tselection = input.nextInt();\n\t\tmenuActions(selection);\n\t\t}",
"public Menu() {\n scanner = new Scanner(System.in);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n String cmd = (String)e.getActionCommand();\n\n String newMenu = menuName.getText();\n String newRecipe = recipeName.getText();\n String newQuantity = quantityName.getText();\n String newStep = stepName.getText();\n\n if (cmd.equals(\"Show Book\"))\n ta.append(mb.toString());\n\n if (cmd.equals(\"Create Menu\")) {\n if (breakfast.isSelected())\n {\n menuList.insertItemAt(newMenu,0);\n menuList.setSelectedIndex(0);\n mb.add(new FoodMenu(newMenu, MenuType.BREAKFAST));\n ta.append(\"\\nMenu: \" + newMenu + \" has been added to the Menu Book\\n\");\n }\n if (lunch.isSelected())\n {\n menuList.insertItemAt(newMenu,0);\n menuList.setSelectedIndex(0);\n mb.add(new FoodMenu(newMenu, MenuType.LUNCH));\n ta.append(\"\\nMenu: \" + newMenu + \" has been added to the Menu Book\\n\");\n }\n if (dinner.isSelected())\n {\n menuList.insertItemAt(newMenu,0);\n menuList.setSelectedIndex(0);\n mb.add(new FoodMenu(newMenu, MenuType.DINNER));\n ta.append(\"\\nMenu: \" + newMenu + \" has been added to the Menu Book\\n\");\n }\n }\n\n if (cmd.equals(\"Show Menu\")) {\n ta.append(FoodMenu.hashMap.get(menuList.getSelectedItem().toString()).toString());\n }\n\n if (cmd.equals(\"Remove Menu\")) {\n ta.append(\"\\nMenu: \" + menuList.getSelectedItem().toString() + \" has been removed from the Menu Book\\n\");\n mb.remove(FoodMenu.hashMap.get(menuList.getSelectedItem().toString()));\n FoodMenu.hashMap.remove(menuList.getSelectedItem().toString());\n menuList.removeItem(menuList.getSelectedItem());\n }\n\n if (cmd.equals(\"Create Recipe\")) {\n recipeList.insertItemAt(newRecipe,0);\n recipeList.setSelectedIndex(0);\n Recipe.hashMap.put(newRecipe, new Recipe(newRecipe));\n ta.append(\"\\nRecipe: \" + recipeList.getSelectedItem().toString() + \" has been added to the Recipe List\\n\");\n }\n\n if (cmd.equals(\"Show Recipe\")) {\n ta.append(Recipe.hashMap.get(recipeList.getSelectedItem().toString()).toString());\n }\n\n if (cmd.equals(\"Add Recipe\")) {\n Recipe RecipeObj = Recipe.hashMap.get(recipeList.getSelectedItem().toString());\n FoodMenu MenuObj = FoodMenu.hashMap.get(menuList.getSelectedItem().toString());\n MenuObj.add(RecipeObj);\n ta.append(\"\\nRecipe: \" + recipeList.getSelectedItem().toString() + \" has been added to the menu \" + menuList.getSelectedItem().toString() + \"\\n\");\n }\n\n if (cmd.equals(\"Remove Recipe\")) {\n ta.append(\"\\nRecipe: \" + recipeList.getSelectedItem().toString() + \" has been removed from menu \" + menuList.getSelectedItem().toString() + \"\\n\");\n FoodMenu slctdMenu = FoodMenu.hashMap.get(menuList.getSelectedItem().toString());\n slctdMenu.remove(Recipe.hashMap.get(recipeList.getSelectedItem().toString()));\n Recipe.hashMap.remove(recipeList.getSelectedItem().toString());\n recipeList.removeItem(recipeList.getSelectedItem().toString());\n }\n\n if (cmd.equals(\"Add Ingredient\")) {\n ta.append(\"\\n\" + newQuantity + \" \" + unitList.getSelectedItem().toString() + \" of \" + itemList.getSelectedItem().toString() + \" has been added to the recipe \" + recipeList.getSelectedItem().toString() + \"\\n\");\n Recipe getRecipe = Recipe.hashMap.get(recipeList.getSelectedItem().toString());\n Item getItem = Item.hashMap.get(itemList.getSelectedItem().toString());\n Unit getUnit = Unit.hashMap.get(unitList.getSelectedItem().toString());\n double qty = Double.parseDouble(newQuantity);\n Ingredient getIngredient = new Ingredient(getItem, qty, getUnit);\n getRecipe.add(getIngredient);\n }\n\n if (cmd.equals(\"Add Step\")) {\n Recipe RecStep = Recipe.hashMap.get(recipeList.getSelectedItem().toString());\n Step addedStep = new Step(newStep);\n RecStep.add(addedStep);\n ta.append(\"\\nStep: '\" + addedStep + \"' has been added to the recipe \" + recipeList.getSelectedItem().toString() + \"\\n\");\n }\n }",
"public void promptMenu()\n {\n Object[] options = {\"Display by Albums-First\", \"Display by Artists-First\",\n \"Search by Album Title\", \"Search by Artist Name\",\n \"Add Album to Catalog\"};\n \n String action = (String) JOptionPane.showInputDialog(null, \n \"Select an option:\", \"Music Library Menu\",\n JOptionPane.INFORMATION_MESSAGE,null,options,options[0]);\n try {\n switch(action)\n {\n case \"Display by Albums-First\" : displayByAlbums();\n break;\n case \"Display by Artists-First\" : displayByArtists();\n break;\n case \"Search by Album Title\" : searchByAlbum();\n break;\n case \"Search by Artist Name\" : searchByArtist();\n break;\n case \"Add Album to Catalog\" : addAlbum(fileName);\n break;\n default : //do nothing\n break;\n }\n }\n catch(NullPointerException e) { //NPE is thrown if user Cancels or X's.\n int quit = JOptionPane.showConfirmDialog(null, \"Do you want to quit?\",\n \"Quit Menu\",JOptionPane.YES_NO_OPTION);\n if(quit == 0)\n {\n JOptionPane.showMessageDialog(null, \"Thanks for using the library!\"); \n System.exit(0);\n }\n else\n promptMenu();\n }\n catch (FileNotFoundException e) { //for the case of addAlbum(fileName);\n System.err.println(\"Sorry, no file under the name '\" + fileName + \"' exists!\");\n System.exit(2);\n }\n promptMenu();\n }",
"void returnbook(String book){\n\t\tthis.books[no_of_books]=book;\n\t\tno_of_books++;\n\t\tSystem.out.println(book+\" ...return\");\n\n\t}",
"@Override\n\tpublic void addBook() {\n\t\t\n\t}",
"private void addTodoMenu(User u,Scanner sc) {\n\t\t\n\t\tSystem.out.println(\"Title:\");\n\t\tString title = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"Description: \");\n\t\tString description = sc.nextLine();\n\t\t\n\t\t\n\t\tTodo todo = new Todo();\n\t\ttodo.setTitle(title);\n\t\ttodo.setDescription(description);\n\t\ttodo.setComplete(false);\n\t\t\n\t\tboolean success = todoService.insertTodo(todo);\n\t\t\n\t\tUser u = auth.getUser(u.getUsername());\n\t\t\n\t\t\n\t}",
"public static void main(String []args){\r\n\t\tScanner in=new Scanner(System.in);\r\n\t\tSinglyLinkedList SLL =new SinglyLinkedList();\r\n\t\tint value,pos;\r\n\t\tchar ch;\r\n\t\tdo{\r\n\r\n\t\t\tSystem.out.println(\"*******menu*******\");\r\n\t\t\tSystem.out.println(\"1.\tinsertFromFirst\");\r\n\t\t\tSystem.out.println(\"2.\tinsertFromBack\");\r\n\t\t\tSystem.out.println(\"3.\tinsertFromSpecificPosition\");\r\n\t\t\tSystem.out.println(\"4.\tdisplay\");\r\n\t\t\tSystem.out.println(\"5.\texit\");\r\n\t\t\tSystem.out.println(\"6.\tdelete from first\");\r\n\t\t\tSystem.out.println(\"7.\tdelete from last\");\r\n\t\t\tSystem.out.println(\"8.\tdelete from positon\");\r\n\t\t\tSystem.out.println(\"ENTER THE CHOICE FROM 1 TO 8\");\r\n\t\t\tint choice = in.nextInt();\r\n\r\n\t\t\tswitch(choice){\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tSystem.out.println(\"Enter a value\");\r\n\t\t\t\t\tvalue=in.nextInt();\r\n\t\t\t\t\tSLL.insertFromFirst(value);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tSystem.out.println(\"Enter a value\");\r\n\t\t\t\t\tvalue=in.nextInt();\r\n\t\t\t\t\tSLL.insertFromBack(value);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tSystem.out.println(\"Enter a value\");\r\n\t\t\t\t\tvalue=in.nextInt();\r\n\t\t\t\t\tSystem.out.println(\"Enter a position\");\r\n\t\t\t\t\tpos = in.nextInt();\r\n\t\t\t\t\tSLL.insertFromSpecificPosition( value, pos);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase 4:\r\n\r\n\t\t\t\t\tSLL.display();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\tSLL.deleteFromFirst();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tSLL.deleteFromLast();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase 8:\r\n\t\t\t\t\tSystem.out.println(\"Enter a position\");\r\n\t\t\t\t\tpos = in.nextInt();\r\n\t\t\t\t\tSLL.deleteFromSpecificPosition(pos);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tSystem.out.println(\" INVALID CHOICE\");\r\n\t\t\t}\r\n\t\t\tch ='x';\r\n\t\t}while(ch!='Y');\r\n\t}",
"public void selectNewBook(MouseEvent e)\n\t{\n\t\tBookApp.currentBook = otherAppearances.getSelectionModel().getSelectedItem();\n\t\tcurrentBookDisplay.getItems().clear();\n\t\tcurrentBookDisplay.getItems().add(BookApp.currentBook);\n\t\tcharactersNameList.getItems().clear();\n\t\tfor(Character character : (MyLinkedList<Character>) BookApp.currentBook.getCharacterList()){\n\t\t\tcharactersNameList.getItems().add(character);\n\t\t\tcharactersNameList.getSelectionModel().getSelectedIndex();\n\t\t}\n\t\totherAppearances.getItems().clear();\n\t\tfor(int i = 0; i< BookApp.unsortedBookTable.hashTable.length; i++) {\t\t\n\t\t\tfor(Book eachBook : (MyLinkedList<Book>) BookApp.unsortedBookTable.hashTable[i]) {\n\t\t\t\tfor(Character eachCharacterInTotalList : (MyLinkedList<Character>) eachBook.getCharacterList())\n\t\t\t\t{\n\t\t\t\t\tif(eachCharacterInTotalList.equals(BookApp.currentCharacter) && eachBook.equals(BookApp.currentBook))\n\t\t\t\t\t{\n\t\t\t\t\t\totherAppearances.getItems().add(eachBook);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tLibrarySearch library = new LibrarySearch(); \n\t\tString command; /* Stores command to perform (add, search, quit) */\n\n\t\t/* Checks if input and output files are entered at command line */\n\t\ttry {\n\t\t\tif (args[0] == null || args[1] == null) {\n\t\t\t}\n\t\t} catch (java.lang.ArrayIndexOutOfBoundsException e) {\n\t\t\tSystem.out.println(\"No input/ouput file specified at command line!\");\n\t\t\tSystem.out.println(\"Program ended. Please run program again with an input and output file.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t/* Loads existing references from a file at start of program */\n\t\tScanner inputStream = null;\n\t\ttry {\n\t\t\tinputStream = new Scanner(new FileInputStream(args[0]));\n\t\t\tString type;\n\t\t\twhile (inputStream.hasNextLine()) {\n\t\t\t\ttype = inputStream.nextLine();\n\t\t\t\tif (type.equalsIgnoreCase(\"book\") || type.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\tString callNumber = inputStream.nextLine();\n\t\t\t\t\tString authors = inputStream.nextLine();\n\t\t\t\t\tString title = inputStream.nextLine();\n\t\t\t\t\tString publisher = inputStream.nextLine();\n\t\t\t\t\tint year = inputStream.nextInt();\n\t\t\t\t\tlibrary.addBook(new Book(callNumber, authors, title, publisher, year));\n\t\t\t\t\tlibrary.addToHashMap(title.toLowerCase().split(\"[ ,\\n]+\")); /* Adds loaded reference from file to HashMap */\n\t\t\t\t} else if (type.equalsIgnoreCase(\"journal\") || type.equalsIgnoreCase(\"j\")) {\n\t\t\t\t\tString callNumber = inputStream.nextLine();\n\t\t\t\t\tString title = inputStream.nextLine();\n\t\t\t\t\tString organizer = inputStream.nextLine();\n\t\t\t\t\tint year = inputStream.nextInt();\n\t\t\t\t\tlibrary.addJournal(new Journal(callNumber, title, organizer, year));\n\t\t\t\t\tlibrary.addToHashMap(title.toLowerCase().split(\"[ ,\\n]+\")); /* Adds loaded reference from file to HashMap */\n\t\t\t\t}\n\t\t\t}\n\t\t\tinputStream.close(); /* Closes file */\n\t\t\tSystem.out.println(\"Input file loaded successfully!!\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Input file not found. No books/journals loaded!\");\n\t\t}\n\n\t\t/* Command Loop of program. Can add record, search records or quit program. */\n\t\tdo {\n\t\t\tSystem.out.print(\"Enter now add, search, or quit> \");\n\t\t\tcommand = input.nextLine();\n\t\t\tif (command.equalsIgnoreCase(\"add\") || command.equalsIgnoreCase(\"a\"))\n\t\t\t\tlibrary.addRecord(input);\n\t\t\telse if (command.equalsIgnoreCase(\"search\") || command.equalsIgnoreCase(\"s\"))\n\t\t\t\tlibrary.searchRecords(input);\n\t\t\telse if (command.equalsIgnoreCase(\"quit\")) {\n\t\t\t\t\n\t\t\t\tPrintWriter outputStream = null;\n\t\t\t\ttry {\n\t\t\t\t\toutputStream = new PrintWriter(new FileOutputStream(args[1]));\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\tSystem.out.println(\"Error storing data to file! File not found!\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t/* Loop to add all records to specified output file. */\n\t\t\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\t\t\toutputStream.println(items.get(i));\n\t\t\t\t}\n\t\t\t\toutputStream.close(); /* Closes file ensuring data is written to the file. */\n\t\t\t}\n\t\t\t\n\t\t} while (!command.equalsIgnoreCase(\"quit\") && !command.equalsIgnoreCase(\"q\"));\n\t}",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n List<UsedCar> carList = new ArrayList<>();\n int menuChoice = -1;\n int numCars = 0;\n\n populateList(carList);\n do { // repeat this loop until the user wants to quit\n do { // repeat this loop until we have a valid response\n numCars = carCount(carList);\n printList(carList, numCars);\n menuChoice = queryUser(scan, carList, numCars);\n } while (menuChoice == -1); // repeat if user input is invalid\n purchaseCar(scan, carList, menuChoice, numCars);\n } while (menuChoice != numCars); //repeat so long as user chooses to keep going\n\n System.out.println(\"Have a great day!\");\n\n scan.close();\n }",
"private void displayByAuthor() {\n\t\tString authorHolder; // declares authorHolder\n\t\t\n\t\tSystem.out.println(\"Please enter author of the book you would like displayed:\");\n\t\tauthorHolder = scan.next();\n\t\tscan.nextLine();\n\t\tSystem.out.println(inventoryObject.displayByAuthor(authorHolder));\n\t\tgetUserInfo();\n\t}",
"private static void executeMenuOption(int user_option) throws IOException{\n\t\tboolean exit = false; \n\t\t\n\t\twhile(!exit){\n\t\tswitch(user_option){\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println();\n\t\t\t\taddNewBook();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println();\n\t\t\t\tcheckoutBook();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.println();\n\t\t\t\treturnBook();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tSystem.out.println();\n\t\t\t\tqueryBook();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tSystem.out.println();\n\t\t\t\tprintFinedStudents();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println();\n\t\t\t\tsaveChanges(); //Overwrite the students.txt and books.txt files with the content of the ALL_STUDENTS and ALL_BOOKS data structures respectively\n\t\t\t\texit = true; //exit program \n\t\t\t\tbreak;\n\t\t }\n\t\t\tif(!exit){ //if user has not exited the program, then display the main menu again and get user's input for the menu option\n\t\t\t\tSystem.out.println();\n\t\t\t\tdisplayMainMenu();\n\t\t\t\tuser_option = getIntegerInput(); //get menu option to execute\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException{\n\t\tSystem.out.println(\"Welcome\");\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true) {\n\t\t\tSystem.out.println(\"Press 1 to Add Student\");\n\t\t\tSystem.out.println(\"Press 2 to Remove Student\");\n\t\t\tSystem.out.println(\"Press 3 to Display Student\");\n\t\t\tSystem.out.println(\"Press 4 to Exit Student\");\n\t\t\tint c=Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tif(c==1) {\n\t\t\t\t//add\n\t\t\t\tSystem.out.println(\"enter user name : \");\n\t\t\t\tString name=br.readLine();\n\t\t\t\tSystem.out.println(\"enter phone : \");\n\t\t\t\tString phone=br.readLine();\n\t\t\t\tSystem.out.println(\"enter city : \");\n\t\t\t\tString city=br.readLine();\n\t\t\t\t\n\t\t\t\t//create obj. to store in db\n\t\t\t\tStudent st=new Student(name, phone, city);\n\t\t\t\tboolean answer=StudentDao.insertStudentDB(st);\n\t\t\t\tif(answer) {\n\t\t\t\t\tSystem.out.println(\"added student\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"error something\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(st);\n\t\t\t\t\n\t\t\t}else if (c==2) {\n\t\t\t\t//delete\n\t\t\t\tSystem.out.println(\"enter id to delete\");\n\t\t\t\tint userId=Integer.parseInt(br.readLine());\n\t\t\t\tboolean f=StudentDao.deleteStudent(userId);\n\t\t\t\tif(f) {\n\t\t\t\t\tSystem.out.println(\"deleted\");\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"anything wrong\");\n\t\t\t\t}\n\t\t\t}else if (c==3) {\n\t\t\t\t//display\n\t\t\t\tStudentDao.showAllStudent();\n\t\t\t}else if (c==4) {\n\t\t\t\t//exit\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Thank You\");\n\t\tSystem.out.println(\"Visit Again\");\n\t}",
"static void processInput(int option){\n\t\t\n\t\tswitch (option){\n\t\t\tcase 1:\t\tlistMovies();\n\t\t\t\t\t\tbreak;\n\t\t\tcase 2:\t\tshowMovieDetails();\n\t\t\t\t\t\tbreak;\n\t\t\tcase 3:\t\taddMovie();\n\t\t\t\t\t\tbreak;\n\t\t\tcase 4:\t\taddExampleSet();\n\t\t\t\t\t\tbreak;\n\t\t\tcase 5:\t\texit();\n\t\t\t\t\t\tbreak;\n\t\t\tdefault: \tSystem.out.println(\"Wrong input\");\n\t\t\t\t\t\tbreak;\n\t\t}\n\t}",
"private void processInput(String command) {\r\n\r\n if (command.equals(\"1\")) {\r\n displayListings();\r\n } else if (command.equals(\"2\")) {\r\n listYourCar();\r\n } else if (command.equals(\"3\")) {\r\n removeYourCar(user);\r\n } else if (command.equals(\"4\")) {\r\n checkIfWon();\r\n } else if (command.equals(\"5\")) {\r\n saveCarListings();\r\n } else if (command.equals(\"6\")) {\r\n exitApp = true;\r\n } else {\r\n System.out.println(\"Invalid selection\");\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tinput = new Scanner(System.in);\n\t\tArrayList<Student> sList=new ArrayList<>();\n\t\taddStudent(sList, Integer.parseInt(args[0]));\n\t\tSystem.out.println(args[0]+\" students are generated.\");\n\t\t\n\t\twhile(true){//to make infity loops.\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\t\"Enter 1 to add student(s).\"+System.lineSeparator()+\n\t\t\t\t\t\t\t\t\"Enter 2 to remove student.\"+System.lineSeparator()+\n\t\t\t\t\t\t\t\t\"Enter 3 to see the grade list.\"+System.lineSeparator()+\n\t\t\t\t\t\t\t\t\"Enter 4 to clear the grade list.\"+System.lineSeparator()+\n\t\t\t\t\t\t\t\t\"Enter 5 to exit.\" );\n\t\t\tint x=input.nextInt();\n\t\t\tif(x<1||x>5){ System.out.println(\"Invalid selection.\"); continue;}//to make continue program even the selection is incorrect.\n\t\t\telse if(x==1){\n\t\t\t\tSystem.out.println(\"Enter how many student you want to add.\");\n\t\t\t\tint toAdd=input.nextInt();\n\t\t\t\taddStudent(sList, toAdd);\n\t\t\t\tSystem.out.println(toAdd+\" students are added. Total number of student is : \"+sList.size());\n\t\t\t}\n\t\t\telse if(x==2){\n\t\t\t\tSystem.out.println(\"Enter the ID of the student you want to remove from the list.\");\n\t\t\t\tinput.nextLine();\n\t\t\t\tString id=input.nextLine();\n\t\t\t\tremoveStudent(sList, id);\n\t\t\t}\n\t\t\telse if(x==3){\n\t\t\t\tprintList(sList);\n\t\t\t}\n\t\t\telse if(x==4){\n\t\t\t\tclearList(sList);\n\t\t\t\tSystem.out.println(\"Student list is cleared.\");\n\t\t\t}\n\t\t\telse if(x==5){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Bye!\");\n\t}",
"public static void main(String[] args) throws SQLException {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint choice;\n\t\tBookStoreSystemManager obj=new BookStoreSystemManager();\n\t\twhile(true){\n\t\t\ttry{\n\t\t\t\tdo{\n\t\t\t\t\tSystem.out.println(\" XYZ Book Store \");\n\t\t\t\t\tSystem.out.println(\"------------------------\");\n\t\t\t\t\tSystem.out.println(\"1. Display Book Details\");\n\t\t\t\t\tSystem.out.println(\"2. Purchase a book\");\n\t\t\t\t\tSystem.out.println(\"3. Exit\");\n\t\t\t\t\tSystem.out.print(\"Enter the choice:\");\n\t\t\t\t choice=scan.nextInt();\n\t\t\t\t if(choice<1 || choice>3){\n\t\t\t\t \t throw new InputMismatchException(\"dump\");\n\t\t\t\t }\n\t\t\t\t if(choice==1){\n\t\t\t\t System.out.println(\"-------------------------\");\n\t\t\t\t System.out.println(\"Available Book Categories\");\n\t\t\t\t System.out.println(\"-------------------------\");\n\t\t\t\t \n\t\t\t\t obj.getCategory();\n\t\t\t\t\t}\n\t\t\t\t\tif(choice==2){\n\t\t\t\t System.out.println(\"--------------------------\");\n\t\t\t\t System.out.println(\" Purchase Book \");\n\t\t\t\t System.out.println(\"--------------------------\");\n\t\t\t\t \n\t\t\t\t obj.getpurchase();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}while(choice!=3);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcatch(InputMismatchException e){\n\t\t\t\tSystem.out.println(\"Wrong Input Entered\");\n\t\t\t\tscan=new Scanner(System.in);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"public static void menu(Scanner input, ArrayList<Employee> newEmployee){\n String menuAns;\n int userAnswer = 0;\n \n //Infinite loop until user selected exit\n while(true){\n System.out.print(\"\\nWhat would you like to do at this time?\"+\n \"\\n1) Add Employee\"+ \n \"\\n2) Add Shift Supervisor\"+ \n \"\\n3) Add Production Worker\"+\n \"\\n4) Add Team Leader\"+\n \"\\n5) Print employees\"+\n \"\\n6) Exit the Program\"+\n \"\\nPlease enter a choice: \");\n menuAns = input.nextLine();\n userAnswer = UtilityMethods.verifyInt(input, menuAns);\n switch(userAnswer){\n case 1: \n addEmployee(input, newEmployee);\n break;\n \n case 2:\n addShiftSupervisor(input, newEmployee);\n break;\n \n case 3:\n addProductionWorker(input, newEmployee);\n break;\n \n case 4:\n addTeamLeader(input, newEmployee);\n break;\n\n case 5:\n printEmployees(newEmployee);\n break;\n \n case 6:\n farewell();\n \n }\n } \n }",
"private int displayAppMenu() {\n\t\tint inputOption = -1;\n\t\tboolean isContinue = true;\n\t\tSystem.out.printf(\"Enter a selection from the following menu:\\r\\n\"\n\t\t\t\t+ \"1. Enter a new book\\r\\n\"\n\t\t\t\t+ \"2. Modify the book details. Enter the book isbn number\\r\\n\" \n\t\t\t\t+ \"3. Find a book by isbn number\\r\\n\"\n\t\t\t\t+ \"4. Display list of all books\\r\\n\\n\" \n\t\t\t\t+ \"5. Add a new user\\r\\n\" \n\t\t\t\t+ \"6. Modify user details\\r\\n\"\n\t\t\t\t+ \"7. Find a user by name\\r\\n\" \n\t\t\t\t+ \"8. Display all users\\r\\n\\n\"\n\t\t\t\t+ \"9. Add a loan. Link a user name to a book by isbn number\\r\\n\"\n\t\t\t\t+ \"10. Modify a loan. Loan is identified by isbn number\\r\\n\"\n\t\t\t\t+ \"11. Find a loan. Loan is identified by isbn number\\r\\n\" \n\t\t\t\t+ \"12. Display all loans\\r\\n\\n\"\n\t\t\t\t+ \"13. Delete a book\\r\\n\"\n\t\t\t\t+ \"14. Delete a user\\r\\n\" \n\t\t\t\t+ \"15. Delete a loan\\r\\n\\n\"\n\t\t\t\t+ \"0. Exit program\");\n\n\t\twhile (isContinue) {\n\t\t\tif (input.hasNextInt()) {\n\t\t\t\tinputOption = input.nextInt();\n\t\t\t\tisContinue = false;\n\n\t\t\t} else if (!input.hasNextInt()) {\n\n\t\t\t\tSystem.out.println(\"Please input a Integer\");\n\t\t\t\tinput.nextLine();\n\t\t\t}\n\t\t}\n\t\tinput.nextLine(); // clean up the input stream\n\t\treturn inputOption;\n\t}",
"public void addBook(Book book) {\n\t\tboolean notFound = true;\n\t\tfor (Item item : items) {\n\t\t\tif(item.getName().equals(book.getName())) {\n\t\t\t\t// Found\n\t\t\t\tnotFound = false;\n\t\t\t\titem.updateQuantity();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(notFound) {\n\t\t\tItem item = new Item(book, 1);\n\t\t\titems.add(item);\n\t\t}\n\t}",
"public void editPromotionMenu() {\n\t\tviewPromoPackage();\n\n\t\tString ppE = \"\";\n\n\t\tScanner edP = new Scanner(System.in);\n\n\t\tint edChoice;\n\n\t\tboolean doesItExist = false;\n\t\tboolean isRunning = true;\n\t\t\n\t\twhile (isRunning) {\n\t\t\t\n\t\t\tSystem.out.println(\"Promotional Package to Edit (-1 to Complete): \");\n\t\t\tppE = edP.next();\n\t\t\tppE.toUpperCase();\n\t\t\t\n\t\t\tif (ppE.equalsIgnoreCase(\"-1\")) {\n\t\t\t\tisRunning = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdo \n\t\t\t\t{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFileInputStream fis = new FileInputStream(\"promoData\");\n\t\t\t\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\t\t\t\tpp.clear();\n\t\t\t\t\t\tpp = (ArrayList<PromotionalPackage>) ois.readObject();\n\t\t\t\t\t\tfor (PromotionalPackage item : pp) {\n\t\t\t\t\t\t\tif (item.getPackageID().equals(ppE.toUpperCase())) {\n\t\t\t\t\t\t\t\tdoesItExist = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdoesItExist = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tois.close();\n\t\t\t\t\t\tfis.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t//System.out.println(\"No promotions found!\");\n\t\t\t\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t\t\t\tSystem.out.format(\"| Package ID | Description | Price | Type |%n\");\n\t\t\t\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} catch (ClassNotFoundException c) {\n\t\t\t\t\t\tc.printStackTrace();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (doesItExist == true) {\n\t\t\t\t\t\tSystem.out.println(\"What do you want to do? 1) Add Menu 2) Delete Item Menu (-1 to Complete)\");\n\t\t\t\t\t\tedChoice = edP.nextInt();\n\t\t\t\t\t\tif (edChoice == 1) {\n\t\t\t\t\t\t\tviewMenu();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSystem.out.println(\"Menu ID to add: \");\n\t\t\t\t\t\t\tString menuToAdd = edP.next();\n\n\t\t\t\t\t\t\ttry \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tFileInputStream fis = new FileInputStream(\"menuData\");\n\t\t\t\t\t ObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\t\t\t mm.clear();\n\t\t\t\t\t mm = (ArrayList<AlacarteMenu>) ois.readObject();\n\t\t\t\t\t ois.close();\n\t\t\t\t\t fis.close();\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\t\t\t//System.out.println(\"No menu items found!\");\n\n\t\t\t\t\t\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t\t\t\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\t\t\t\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (ClassNotFoundException c) {\n\t\t\t\t\t\t\t\tc.printStackTrace();\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (MainMenu t : mm) {\n\t\t\t\t\t\t\t\tif (t.getMenuName().equals(menuToAdd)) {\n\t\t\t\t\t\t\t\t\tString menuDesc = t.getMenuDesc();\n\t\t\t\t\t\t\t\t\tDouble menuPrice = t.getMenuPrice();\n\t\t\t\t\t\t\t\t\tString menuName = t.getMenuName();\n\t\t\t\t\t\t\t\t\tDouble promoPrice = Math.round((0.75 * menuPrice) * 100.0) / 100.0;\n\t\t\t\t\t\t\t\t\tPromotionalPackage pPackage = new PromotionalPackage(menuName, menuDesc, promoPrice, ppE.toUpperCase());\n\t\t\t\t\t\t\t\t\tpp.add(pPackage);\n\t\t\t\t\t\t\t\t\tbreak;\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\telse if (edChoice == 2) {\n\t\t\t\t\t\t\tSystem.out.println(\"Menu ID To Delete: \");\n\t\t\t\t\t\t\tString toDelete = edP.next();\n\t\t\t\t\t\t\tfor (int i = 0; i < pp.size(); i++) {\n\t\t\t\t\t\t\t\tif ((pp.get(i).getMenuName().equals(toDelete.toUpperCase())\n\t\t\t\t\t\t\t\t\t\t&& (pp.get(i).getPackageID().equals(ppE.toUpperCase())))) {\n\t\t\t\t\t\t\t\t\tpp.remove(pp.get(i));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tFileOutputStream fos = new FileOutputStream(\"promoData\");\n\t\t\t\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\t\t\t\t\toos.writeObject(pp);\n\t\t\t\t\t\t\toos.close();\n\t\t\t\t\t\t\tfos.close();\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (IOException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"Failed to edit promotion.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t} else if (!doesItExist) {\n\t\t\t\t\t\tSystem.out.println(\"Unable to find promo package entered! \\n\");\n\t\t\t\t\t}\n\t\t\t\t} while(doesItExist);\n\t\t\t}\n\t\t}\n\t}",
"private void displayByTitle() {\n\t\tString titleHolder; // declares titleHolder\n\t\t\n\t\tSystem.out.println(\"Please enter title of the book you would like displayed:\");\n\t\ttitleHolder = scan.next();\n\t\tscan.nextLine();\n\t\tSystem.out.println(inventoryObject.displayByTitle(titleHolder));\n\t\tgetUserInfo();\n\t}",
"public static void main(String[] args) {\n PhoneBook p1 = new PhoneBook();\r\n // Import scanner for user input \r\n Scanner scan_me = new Scanner(System.in);\r\n // Set the switch for the while loop to stop\r\n boolean on = true;\r\n // Set up the text interface for the user to see \r\n System.out.println(\"Welcome to the PhoneBook Program.\");\r\n System.out.println(\"Enter 1 to add a contact. \");\r\n System.out.println(\"Enter 2 to search for a contact. \");\r\n System.out.println(\"Enter 3 to change or delete an entry. \");\r\n System.out.println(\"Enter 4 to list all of the contacts. \");\r\n System.out.println(\"Enter 5 to close the program. \");\r\n // Begin while loop to run the program\r\n while(on){\r\n System.out.println();\r\n System.out.println(\"Awaiting user input... \");\r\n if(scan_me.hasNextInt()){int user_input = scan_me.nextInt();\r\n //Switch cases for the different user options\r\n switch(user_input){\r\n case 1:\r\n // Add a Contact to the List \r\n System.out.println(\"Enter the contact number. \");\r\n int number = scan_me.nextInt();\r\n scan_me.nextLine();\r\n System.out.println(\"Enter the contact name. \");\r\n String namer = scan_me.nextLine();\r\n //scan_me.next();\r\n //Create new Contact \r\n Contact newContact = new Contact(number,namer);\r\n //Add new contact to phonebook\r\n String key = newContact.Name;\r\n p1.put(key, number);\r\n //Show the user what they have done\r\n System.out.println(\"You have added \"+namer+\" to the Phonebook. Their number is \"+number+\".\"); \r\n break;\r\n case 2:\r\n // Search for a number by the persons name\r\n scan_me.nextLine();\r\n System.out.println(\"Enter persons name to be searched for: \");\r\n String Name_boi = scan_me.nextLine();\r\n System.out.print(Name_boi+\"'s number is \"+p1.getByName(Name_boi));\r\n System.out.println();\r\n break;\r\n case 3:\r\n // Change or delete a directory entry \r\n scan_me.nextLine();\r\n // Allow user to choose to change number or delete contact.\r\n System.out.println(\"Enter C to change a number or D to delete a contact: \");\r\n String choice = scan_me.next();\r\n if(choice.equals(\"C\")||choice.equals(\"c\")){\r\n scan_me.nextLine();\r\n System.out.println(\"Enter persons name to be updated: \");\r\n String old_name = scan_me.nextLine();\r\n System.out.println(\"Enter new number: \");\r\n int new_num = scan_me.nextInt();\r\n p1.replace(old_name,new_num);\r\n System.out.println(old_name+\"'s number has been changed to \"+new_num+\".\");\r\n }\r\n else if(choice.equals(\"D\")||choice.equals(\"d\")){\r\n scan_me.nextLine();\r\n System.out.println(\"Enter persons name to be deleted: \");\r\n String deleted_name = scan_me.nextLine();\r\n String namest = deleted_name;\r\n p1.remove(deleted_name);\r\n System.out.print(\"You have removed the contact \"+namest+\".\");\r\n System.out.println();\r\n }\r\n break;\r\n case 4:\r\n // List all contacts \r\n Iterator it = p1.entrySet().iterator();\r\n // create an iterator to move through your mappings\r\n System.out.println(\"All of the Phonebook contacts are as follows: \");\r\n while(it.hasNext()){\r\n Map.Entry pair = (Map.Entry)it.next();\r\n // define the key and value for each iteration advancement\r\n System.out.println(pair.getKey() + \" = \" + pair.getValue());\r\n // print out the key and value for each value in the hashmap\r\n }\r\n break;\r\n case 5:\r\n // Close the program \r\n on = false;\r\n break;\r\n }\r\n }\r\n }\r\n }",
"private void runMenu() throws ValidatorException, FileNotFoundException {\n while (true) {\n System.out.print(\"\\n1 - STUDENTS OPERATIONS\\n2 - COURSES OPERATIONS\\n3 - TEACHER OPERATIONS\\n\" +\n \"4 - REGISTRATION SYSTEM OPERATIONS\\n0 - EXIT\\n\");\n Scanner sc = new Scanner(System.in);\n int cmd = sc.nextInt();\n switch (cmd) {\n case 0: {\n System.exit(0);\n }\n case 1:\n while (true) {\n System.out.print(\"\\n1 - Add new student\\n\" +\n \"2 - Update student\\n\" +\n \"3 - Delete student\\n\" +\n \"4 - View student\\n\" +\n \"5 - Display all students\\n\" +\n \"6 - Filter students by name\\n\" +\n \"0 - Back\\n\");\n int cmd2 = sc.nextInt();\n if (cmd2 == 0)\n break;\n switch (cmd2) {\n case 1:\n addStudent();\n break;\n case 2:\n updateStudent();\n break;\n case 3:\n deleteStudent();\n break;\n case 4:\n viewStudent();\n break;\n case 5:\n viewAllStudents();\n break;\n case 6:\n filterStudents();\n break;\n }\n }\n break;\n case 2:\n while (true) {\n System.out.print(\"\\n1 - Add new course\\n\" +\n \"2 - Update course\\n\" +\n \"3 - Delete course\\n\" +\n \"4 - View course\\n\" +\n \"5 - Display courses\\n\" +\n \"6 - Sort courses by credits\\n\" +\n \"0 - Back\\n\");\n int cmd2 = sc.nextInt();\n if (cmd2 == 0)\n break;\n switch (cmd2) {\n case 1:\n addCourse();\n break;\n case 2:\n updateCourse();\n break;\n case 3:\n deleteCourse();\n break;\n case 4:\n viewCourse();\n break;\n case 5:\n viewCourses();\n break;\n case 6:\n sortCourses();\n break;\n }\n }\n break;\n case 3:\n while (true) {\n System.out.print(\"\\n1 - View teacher\\n\" +\n \"2 - Display teachers\\n\" +\n \"0 - Back\\n\");\n int cmd3 = sc.nextInt();\n if (cmd3 == 0)\n break;\n switch (cmd3) {\n case 1:\n viewTeacher();\n break;\n case 2:\n viewTeachers();\n break;\n }\n }\n break;\n case 4:\n while (true) {\n System.out.print(\"\\n1 - Register\\n\" +\n \"2 - Show courses with available places\\n\" +\n \"3 - Show students enrolled for a course\\n\" +\n \"4 - Display all courses\\n\" +\n \"0 - Back\\n\");\n int cmd4 = sc.nextInt();\n if (cmd4 == 0)\n break;\n switch (cmd4) {\n case 1:\n register();\n break;\n case 2:\n retrieveCoursesWithFreePlaces();\n break;\n case 3:\n retrieveStudentsEnrolledForACourse();\n break;\n case 4:\n viewCourses();\n break;\n }\n }\n break;\n default: {\n System.out.println(\"Invalid command!\\n\");\n }\n }\n }\n }",
"public void displayMenu () {\n\t\twhile (true) {\n\t\t\tint option = -1;\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\twhile ((option < 1) || (option > 8)) {\n\t\t\t\tSystem.out.println(\"________________________________________________________________\");\n\t\t\t\tSystem.out.println(\" ADDRESS BOOK MENU\");\n\t\t\t\tSystem.out.println(\"________________________________________________________________\");\n\t\t\t\tSystem.out.println(\"1. Add new entry\");\n\t\t\t\tSystem.out.println(\"2. Edit an entry\");\n\t\t\t\tSystem.out.println(\"3. View entry details\");\n\t\t\t\tSystem.out.println(\"4. Delete an entry\");\n\t\t\t\tSystem.out.println(\"5. Sort address book by name\");\n\t\t\t\tSystem.out.println(\"6. Sort address book by zip code\");\n\t\t\t\tSystem.out.println(\"7. List all entries in mailing format\");\n\t\t\t\tSystem.out.println(\"8. Done (Go back)\");\n\n\t\t\t\tSystem.out.print(\"\\nEnter the corresponding number to select an option: \");\n\n\t\t\t\ttry {\n\t\t\t\t\toption = sc.nextInt();\n\t\t\t\t} catch (InputMismatchException e) {\n\t\t\t\t\tsc.nextLine();\t\t\t// Clear the buffer\n\t\t\t\t\tSystem.out.println(\"\\nERROR: Entered option must be a number from 1 to 8\");\n\t\t\t\t\tSystem.out.println(\"Please try again.\\n\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif ((option < 1) || (option > 8)) {\n\t\t\t\t\tSystem.out.println(\"\\nERROR: Entered option must be a number from 1 to 8\");\n\t\t\t\t\tSystem.out.println(\"Please try again.\\n\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.println(\"________________________________________________________________\");\n\n\t\t\tswitch (option) {\n\t\t\t\tcase 1:\n\t\t\t\t\tthis.addEntry();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tthis.editEntry();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tthis.viewEntry();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tthis.deleteEntry();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tthis.sortAddressBookByName();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tthis.sortAddressBookByZipCode();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\tthis.showAllEntries();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\tSystem.out.println(\"Exiting Address Book Menu...\");\n\t\t\t\t\treturn;\t\t// Exit AddresBookMenu\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"\\nERROR: Entered option must be a number from 1 to 6\");\n\t\t\t\t\tSystem.out.println(\"Please try again.\\n\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(\"________________________________________________________________\");\t\n\t\t}\n\t}",
"public static void main(String[] args) {\n String[] List = new String[50];\n\n System.out.println(\"Hello! Here is a list with the actions that you can do! \");\n Agenda m = new Agenda();\n\n //create an object to show printMenu method\n m.printMenu();\n\n System.out.println(\"Select an option:\");\n Scanner intrare=new Scanner(System.in);\n\n\n do {\n\n //Option takes the entered value\n int option= intrare.nextInt();\n\n switch (option){\n case 1: m.listWholeList();\n break;\n\n case 2: m.searchNameAndDisplay();\n break;\n\n case 3: m.createItem();\n break;\n\n case 4: m.updateName();\n break;\n\n case 5: m.deleteName();\n break;\n\n case 6: m.exitList();\n break;\n }\n\n\n }\n while (true);\n\n\n\n\n\n}",
"private static void MainMenuRec(){\n System.out.println(\"Choose one of the following:\");\n System.out.println(\"-----------------------------\");\n System.out.println(\"1. Book room\");\n System.out.println(\"2. Check-out\");\n System.out.println(\"3. See room list\");\n System.out.println(\"4. Create a new available room\");\n System.out.println(\"5. Delete a room\");\n System.out.println(\"6. Make a room unavailable\");\n System.out.println(\"7. Make a (unavailable) room available\");\n System.out.println(\"8. Back to main menu\");\n System.out.println(\"-----------------------------\");\n }",
"private void launch() {\n\n boolean running = true;\n while (running) {\n System.out.println(\"What would you like to do?\");\n System.out.println(\"1 - Add a new patient file\");\n System.out.println(\"2 - Delete an existing patient file\");\n System.out.println(\"0 - Exit\");\n System.out.println(\"\\n >\");\n\n //Scanner reader = new Sca(System.in);\n // int input = reader.nextInt();\n\n try {\n String userInput = System.console().readLine();\n\n int userSelection = Integer.parseInt(userInput);\n\n switch (userSelection) {\n case 0:\n running = false;\n break;\n\n case 1:\n System.out.println(\"Please enter patient details.\");\n System.out.println(\"You selected option 1 : Enter first name:\");\n String name = System.console().readLine();\n System.out.println(\"Please Enter age:\");\n int age = Integer.parseInt(System.console().readLine());\n System.out.println(\"Please Enter illness:\");\n String illness = System.console().readLine();\n HospitalManager hm = new HospitalManager();\n Patient firstPatient = hm.getFirstPatient();\n hm.addPatient(firstPatient);\n System.out.println(\"\\n\");\n System.out.println(\"Name: \" + firstPatient.getName() + \" Age: \"\n + firstPatient.getAge() + \" illness :\" + firstPatient.getIllness());\n System.out.println(\"\\n\");\n break;\n\n case 2:\n break;\n\n default:\n System.out.println(\"Invalid option selected. Please try again.\");\n }\n } catch (NumberFormatException ex) {\n running = false;\n System.out.println(\"Please enter a valid integer. Error processing input.\");\n }\n }\n }",
"public static void main(String[] args) {\n\n ArrayList<Car> carList = new ArrayList<>();\n int userMenuSelection = 0;\n do {\n System.out.println(\"Menu Options \\n\" + \"1. Add new car to list. \\n\" + \"2. Remove a car from list. \\n\"\n + \"3. Change a car in the list\\n\" + \"4. Display details of a car. \\n\"\n + \"5. Display details of all cars. \\n\" + \"6. Get average mileage from all the cars.\\n\"\n + \"7. Get cash offer for a car.\\n\");\n System.out.println(\"Please enter the number of the action to perform or 0 to end the program.\");\n userMenuSelection = input.nextInt();\n menuSelection(userMenuSelection, carList);\n\n } while (userMenuSelection != 0);\n }",
"public static void main(String[] args) {\n String query,input;\n int numberOfInputs;\n Scanner scan=new Scanner(System.in);\n numberOfInputs=scan.nextInt();\n for(int i=0;i<numberOfInputs;i++){\n query=scan.next();\n if(query.equals(\"add\")){\n input=scan.next();\n add(input);\n }\n if(query.equals(\"find\")){\n input=scan.next();\n find(input);\n }\n }\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\tint op;\n\t\t\n\t\tScanner leia = new Scanner(System.in);\n\t\t\n\t\tArrayList<String> estoqueLoja = new ArrayList();\n\t\t\n\t\tdo\n\t\t{\n\t\t\tSystem.out.println(\"\\n************************\");\n\t\t\tSystem.out.println(\"\\nSelecione uma das seguintes opções: \");\n\t\t\tSystem.out.println(\"\\n1 - Acrescentar produto ao estoque\");\n\t\t\tSystem.out.println(\"\\n2 - Remover produto do estoque\");\n\t\t\tSystem.out.println(\"\\n3 - Atualizar o estoque\");\n\t\t\tSystem.out.println(\"\\n4 - Mostrar estoque completo\");\n\t\t\tSystem.out.println(\"\\n0 - Encerrar programa\");\n\t\t\tSystem.out.println(\"\\nQual opção deseja?: \");\n\t\t\top = leia.nextInt();\n\t\t\t\n\t\t\tswitch(op)\n\t\t\t{\n\t\t\tcase 1:\n\t\t\t\tleia.nextLine();\n\t\t\t\tSystem.out.println(\"\\nQual o produto a ser adicionado?: \");\n\t\t\t\tString produto = leia.nextLine();\n\t\t\t\testoqueLoja.add(produto);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tleia.nextLine(); \n\t\t\t\tSystem.out.println(\"\\nQual produto remover?: \");\n\t\t\t\tString produto1 = leia.nextLine();\n\t\t\t\t\n\t\t\t\tif(estoqueLoja.contains(produto1))\n\t\t\t\t{\n\t\t\t\t\testoqueLoja.remove(produto1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\\nEste produto não existe neste estoque!!!\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tleia.nextLine(); \n\t\t\t\tSystem.out.println(\"\\nQual produto atualizar no estoque?: \");\n\t\t\t\tString verifica = leia.nextLine();\n\t\t\t\tSystem.out.println(\"\\nQual novo produto adicionar?: \");\n\t\t\t\tString novo = leia.nextLine();\n\t\t\t\t\n\t\t\t\tif(estoqueLoja.contains(verifica))\n\t\t\t\t{\n\t\t\t\t\testoqueLoja.remove(verifica);\n\t\t\t\t\testoqueLoja.add(novo);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\\nEste produto não existe neste estoque!!!\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tSystem.out.println(\"\\nLista de produtos do estoque: \");\n\t\t\t\tSystem.out.println(estoqueLoja);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"\\nEncerrando o programa...\");\n\t\t\t}\n\t\t}while(op!=0);\n\n\t}",
"public void addAlaCarteMenu() {\n\t\tboolean isRunning = true;\n\n\t\twhile (isRunning) {\n\t\t\tScanner scan = new Scanner(System.in);\n\t\t\tint menuTypeNo;\n\t\t\tString menuType = \" \";\n\t\t\t// When the user enters 1,2,3,4 - > The type gets automatically added.\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Please Enter Menu Type(-1 to Complete): \\n1 : Appetizers \\n2 : Main \\n3 : Sides \\n4 : Drinks\");\n\n\t\t\tmenuTypeNo = scan.nextInt();\n\t\t\t\n\t\t\tdo {\n\t\t\t\tif (menuTypeNo == -1) {\n\t\t\t\t\tisRunning = false;\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (menuTypeNo == 1) {\n\t\t\t\t\tmenuType = \"Appetizers\";\n\t\t\t\t} else if (menuTypeNo == 2) {\n\t\t\t\t\tmenuType = \"Main\";\n\t\t\t\t} else if (menuTypeNo == 3) {\n\t\t\t\t\tmenuType = \"Sides\";\n\t\t\t\t} else if (menuTypeNo == 4) {\n\t\t\t\t\tmenuType = \"Drink\";\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Invalid Input, Try Again..\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tboolean idChecker = true;\n\t\t\t\t\n\t\t\t\t// Retrieve menuData to validate\n\t\t\t\tFile f = new File(\"menuData\");\n\n\t\t\t\tdo {\n\t\t\t\t\tif (f.isFile()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tFileInputStream fis = new FileInputStream(\"menuData\");\n\t\t\t\t\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\t\t\t\t\t\t\tmm.clear();\n\t\t\t\t\t\t\tmm = (ArrayList<AlacarteMenu>) ois.readObject();\n\t\t\t\t\t\t\tois.close();\n\t\t\t\t\t\t\tfis.close();\n\t\t\t\t\t\t} catch (IOException e) {\n\n\t\t\t\t\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t\t\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\t\t\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t\t\t\t\t//System.out.println(\"No menu items found!\");\n\t\t\t\t\t\t} catch (ClassNotFoundException c) {\n\t\t\t\t\t\t\tc.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.print(\"Please Enter Menu ID: \\nM\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (idChecker) {\n\t\t\t\t\t\t\tscan.nextLine();\n\t\t\t\t\t\t\tmenuID = \"M\" + scan.nextLine();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (!idChecker) {\n\t\t\t\t\t\t\tmenuID = \"M\" + scan.next();\n\t\t\t\t\t\t\tscan.nextLine();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (final AlacarteMenu amItem: mm) {\n\t\t\t\t\t\t\tif (amItem.getMenuName().equalsIgnoreCase(menuID)) {\n\t\t\t\t\t\t\t\tidChecker = false;\n\t\t\t\t\t\t\t\tSystem.out.println(\"Duplicated ID found!\");\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tidChecker = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (!f.isFile()) {\n\t\t\t\t\t\tSystem.out.print(\"Please Enter Menu ID: \\nM\");\n\t\t\t\t\t\t scan.nextLine(); \n\t\t\t\t\t\tmenuID = \"M\" + scan.nextLine();\n\t\t\t\t\t\tidChecker = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!idChecker);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Please Enter Menu Item Description: \");\n\t\t\t\tString menuDesc = scan.nextLine();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Please Enter Menu Item Price: \");\n\t\t\t\tdouble menuPrice = scan.nextDouble();\n\n\t\t\t\tAlacarteMenu aam = new AlacarteMenu(menuID, menuDesc, menuPrice, menuType);\n\t\t\t\tmm.add(aam);\n\n\t\t\t\ttry {\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(\"menuData\");\n\t\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\t\t\toos.writeObject(mm);\n\t\t\t\t\toos.close();\n\t\t\t\t\tfos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to add menu item.\");\n\t\t\t\t}\n\t\t\t} while (menuTypeNo > 5 && menuTypeNo != -1);\n\t\t}\n\t}",
"public static void main(String[] args) { //the main class \n\n Contact one = new Contact(\"A\", \"A\", \"A\", \"A\"); // I give it some contact information first.\n Contact two = new Contact(\"Bob\", \"Bob\", \"A\", \"A\");\n\n Scanner scan = new Scanner(System.in);\n\n AddressBook book = new AddressBook();\n book.addNewContact(one);\n book.addNewContact(two);\n\n System.out.println(\"give me name? \"); //ask for name\n\n\n String name = scan.nextLine(); //take the input from the user and store is as as first name \n System.out.println(\"Last name?\");\n String lname = scan.nextLine();\n\n book.addNewContact(new Contact(name, lname, \"123\", \"123\")); /\n\n book.displayAllContacts(); //this method call displayAllContact is to display all it have from the address book\n\n\n\n\n\n }",
"private static void menu() {\n\t\tboolean finished = false;\n\t\tdo {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"If you would like to view a current the movies on the movie list, please type \\\"all\\\" \\nIf you would like to see a list of the initial possible categories, please type \\\"categories\\\" \\n\\nTo search for films by category, please type the category, now\\nTo exit the program, just type \\\"no\\\"\");\n\t\t\tString menAns = read.nextLine();\n\t\t\tif (menAns.equalsIgnoreCase(\"all\")) {\n\t\t\t\tlistFormat();\n\t\t\t} else if (menAns.equalsIgnoreCase(\"categories\") || menAns.equalsIgnoreCase(\"cats\")) {\n\t\t\t\tcatList();\n\t\t\t} else if (menAns.equalsIgnoreCase(\"no\")) {\n\t\t\t\tfinished = true;\n\t\t\t} else {\n\t\t\t\tseachCats(menAns);\n\t\t\t}\n\t\t} while (!finished);\n\n\t}",
"public interface IOperation {\n Scanner scanner=new Scanner(System.in);\n void work(BookList bookList);\n}",
"Book read(Book book);",
"private static void driver() {\n Scanner scnr = new Scanner(System.in);\n String promptCommandLine = \"\\nENTER COMMAND: \";\n\n System.out.print(MENU);\n System.out.print(promptCommandLine);\n String line = scnr.nextLine().trim();\n char c = line.charAt(0);\n\n while (Character.toUpperCase(c) != 'Q') {\n processUserCommandLine(line);\n System.out.println(promptCommandLine);\n line = scnr.nextLine().trim();\n c = line.charAt(0);\n }\n scnr.close();\n }",
"public void optionsForPublisher() throws RemoteException {\r\n Scanner in = new Scanner(System.in);\r\n boolean breakLoop = false;\r\n do {\r\n System.out.println(\"What would you like to do as a Publisher:\");\r\n System.out.println(\" 1: Create and Advertise a topic.\");\r\n System.out.println(\" 2: Create and Publish an event.\");\r\n System.out.println(\" 3: List your advertised topics.\");\r\n System.out.println(\" 4: List your created events.\");\r\n System.out.println(\" 5: Save & Quit.\");\r\n System.out.print(\"Enter an option: \");\r\n\r\n int choice = in.nextInt();\r\n\r\n\r\n switch (choice) {\r\n case 1: {\r\n System.out.println(\"Enter topic name:\");\r\n in = new Scanner(System.in);\r\n String name = in.nextLine().trim();\r\n System.out.println(\"Enter keywords separated by commas: \");\r\n in = new Scanner(System.in);\r\n String keywords = in.nextLine().trim();\r\n Topic t = new Topic(name, keywords);\r\n advertise(t);\r\n break;\r\n }\r\n case 2:{\r\n Topic topic = findTopic();\r\n if ( topic != null) {\r\n System.out.println(\"Enter title for event: \");\r\n in = new Scanner(System.in);\r\n String title = in.nextLine().trim();\r\n System.out.println(\"Enter keywords for event separated by commas [OPTIONAL]: \");\r\n in = new Scanner(System.in);\r\n String keywords = in.nextLine().trim();\r\n if (keywords.length() == 0) {\r\n keywords = null;\r\n }\r\n System.out.println(\"Enter content for the event [OPTIONAL]: \");\r\n String content = \"\";\r\n in = new Scanner(System.in);\r\n String line = in.nextLine();\r\n content += line;\r\n Event e = new Event(topic, title, content, keywords);\r\n publish(e);\r\n }\r\n\r\n break;\r\n }\r\n case 3: {\r\n topicsAdvertisedByPub();\r\n break;\r\n }\r\n case 4: {\r\n eventsPublishedByPub();\r\n break;\r\n\r\n }\r\n case 5: {\r\n breakLoop = true;\r\n in.close();\r\n saveState();\r\n break;\r\n }\r\n default:\r\n System.out.println(\"Please enter a Valid Option.\\n\");\r\n }\r\n } while (!breakLoop);\r\n }",
"public static void main(String[] args) {\n\t\tboolean menu = true;\r\n\t\t\r\n\t\twhile(menu == true){\r\n\t\t\tScanner scanner = new Scanner(System.in);\r\n\t\t\tSystem.out.println(\"######\\n#Menu#\\n######\\nPlease Pick an Option\\n1. Add\\n2. Sub\");\r\n\t\t\tint Opt = scanner.nextInt();\r\n\t\t\tif(Opt==1){\r\n\t\t\t\tSystem.out.println(\"Please Enter the first number: \");\r\n\t\t\t\tint No1 = scanner.nextInt();\r\n\t\t\t\tSystem.out.println(\"Please Enter the Second number: \");\r\n\t\t\t\tint No2 = scanner.nextInt();\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"The answer is: \" + (No1+No2));\r\n\t\t\t\t//System.out.println(No1+No2);\r\n\t\t\t\tscanner.nextLine(); // Blank Next Line to stop error caused from switching from Int to Line\r\n\t\t\t\tSystem.out.println(\"Would You Like to Continue?\");\r\n\t\t\t\tString Contin = scanner.nextLine();\r\n\t\t\t\tif(Contin.equals(\"y\") || Contin.equals(\"Y\")){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\telse if (Contin.equals(\"n\") || Contin.equals(\"N\")){\r\n\t\t\t\t\tSystem.out.println(\"Closed!\");\r\n\t\t\t\t\tscanner.close();\r\n\t\t\t\t\tmenu = false;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Error\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(Opt==2){\r\n\t\t\t\tSystem.out.println(\"Please Enter the first number: \");\r\n\t\t\t\tint No1 = scanner.nextInt();\r\n\t\t\t\tSystem.out.println(\"Please Enter the Second number: \");\r\n\t\t\t\tint No2 = scanner.nextInt();\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"The answer is: \" + (No1-No2));\r\n\t\t\t\t//System.out.println(No1+No2);\r\n\t\t\t\tscanner.nextLine(); // Blank Next Line to stop error caused from switching from Int to Line\r\n\t\t\t\tSystem.out.println(\"Would You Like to Continue?\");\r\n\t\t\t\tString Contin = scanner.nextLine();\r\n\t\t\t\tif(Contin.equals(\"y\") || Contin.equals(\"Y\")){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\telse if (Contin.equals(\"n\") || Contin.equals(\"N\")){\r\n\t\t\t\t\tSystem.out.println(\"Closed!\");\r\n\t\t\t\t\tscanner.close();\r\n\t\t\t\t\tmenu = false;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Error\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main (String []args)\n\t{\n\n\t\tshowfiles();\n\t\tgetdatfile(); //gets dat file, creates a book for each book in dat file and stores each book in a slot of the arraylisti\n\t\tselectionSort();\n\t\tmenu();\n\t\t\n\n\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tScanner sc=new Scanner(System.in);\n\t\tMap<String,AddressBook> multipleAddressBook = new HashMap<String, AddressBook>(); //dictionary for mapping different address book with key \n\t\tAddressBook address_book=new AddressBook();\t\t\t\t\t//first address book object\n\t\t\n\t\tString n=\"\";\n\t\tString k=\"AddressBook1\";\n\t\tmultipleAddressBook.put(k, address_book);\t\t\t\t\t\t\t//put the first address book into dictionary\n\t\t\n\t\twhile(true)\n\t\t{\n\t\t\tSystem.out.println(\"Enter your choice\\n1.add contact\\n2.edit contact\\n3.Delete contact\\n4.Display contact\\n5.Display addressbook\\n6.Create another address book\\n7.Search for a city or state\\n8.View persons by city or state\\n9.Sort by Name, City, State or zip\\n10.Read addressbook from the file\\n11.write into the file\\n12.exit\"); //options for different actions\n\t\t\tint choice=sc.nextInt();\n\t\t\tsc.nextLine();\n\t\t\tif(choice==6) //to create a new address book\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Enter the name of the addressbook\");\n\t\t\t\tn=sc.next();\n\t\t\t\tAddressBook object1=new AddressBook(); // a new address book object is created \n\t\t\t\tmultipleAddressBook.put(n, object1);\n\t\t\t\t\t\n\t\t\t}\n\t\t\telse if(choice==7)\n\t\t\t{\n\t\t\t System.out.println(\"Enter the name of city or state\");\n\t\t\t String place=sc.next();\n\t\t\t for(Map.Entry<String, AddressBook> entry : multipleAddressBook.entrySet())\n\t\t\t {\n\t\t\t AddressBook tempObject=entry.getValue();\n\t\t\t tempObject.search(place);\n\t\t\t } \n\t\t\t}\n\t\t\telse if(choice==8)\n\t\t\t{\n\t\t\t System.out.println(\"Enter the number 1 or 2\\n\"\n\t\t\t \t\t+ \"1.city\\n\"\n\t\t\t \t\t+ \"2.state\");\n\t\t\t int ch=sc.nextInt();\n\t\t\t if(ch == 1) {\n\t\t\t \tfor(Map.Entry<String, AddressBook> mapEntry : multipleAddressBook.entrySet()) {\n\t\t\t \t\tAddressBook tempObject = mapEntry.getValue();\n\t\t\t \t\tSystem.out.println(\"AddressBook name: \"+mapEntry.getKey()+\"\\npersons by cities are:\");\n\t\t\t \t\ttempObject.viewByCity();\n\t\t\t \t}\n\t\t\t }\n\t\t\t else{\n\t\t\t \tfor(Map.Entry<String, AddressBook> mapEntry : multipleAddressBook.entrySet()) {\n\t\t\t \t\tAddressBook tempObject = mapEntry.getValue();\n\t\t\t \t\tSystem.out.println(\"AddressBook: \"+mapEntry.getKey()+\"\\npersons by states are:\");\n\t\t\t \t\ttempObject.viewByState();\n\t\t\t \t}\n\t\t\t }\n\t\t\t}\n\t\t\telse if(choice==9)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Enter the number to select the sort by option\\n\"\n\t\t\t \t\t+ \"1.Name\\n\"\n\t\t\t \t\t+ \"2.City\\n\"\n\t\t\t \t\t+ \"3.State\\n\"\n\t\t\t \t\t+ \"4.zip\");\n\t\t\t int ch=sc.nextInt();\n\t\t\t for(Map.Entry<String, AddressBook> entry : multipleAddressBook.entrySet())\n\t\t\t {\n\t\t\t AddressBook tempObject=entry.getValue();\n\t\t\t System.out.println(entry.getKey()+\" details:\");\n\t\t\t tempObject.sortByNameCityStateZip(ch);\n\t\t\t System.out.println(\"-----------------------------------------------------------------\");\n\t\t\t } \n\t\t\t}\n\t\t\telse if(choice==10) {\n\t\t\t\tSystem.out.println(\"Enter the addressbook name:\");\n\t\t\t\tString addressbookName= sc.nextLine();\n\t\t\t\tAddressBook addressbookReadFile = multipleAddressBook.get(addressbookName);\n\t\t\t\taddressbookReadFile.readFromFile(addressbookName);\n\t\t\t}\n\t\t\telse if(choice==11) {\n\t\t\t\tSystem.out.println(\"Enter the addressbook name:\");\n\t\t\t\tString addressbookName= sc.next();\n\t\t\t\tAddressBook addressbookWriteFile = multipleAddressBook.get(addressbookName);\n\t\t\t\taddressbookWriteFile.writeIntoFile(addressbookName);\n\t\t\t}\n\t\t\telse if(choice==12)\t\t\t\t//to exist from the program\n\t\t\t\tSystem.exit(0);\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry{\n\t\t\t\t\tSystem.out.println(\"Enter the addressbook name!!\");\n\t\t\t\t\tn=sc.next();\n\t\t\t\t\tchoice(choice,multipleAddressBook.get(n)); //to perform required operation on desired address book\n\t\t\t\t}catch(Exception e) {\n\t\t\t\t\tSystem.out.println(\"AddressBook not found!!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\t\n\t\t}\n\t}",
"private static void returnBook(){\n\t\tSystem.out.println(\"===Book Return===\");\n\t\tScanner integer_input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter Id of book being returned: \");\n\t\tint bookId = getIntegerInput();//ensures user input is an integer value\n\t\t//if bookId entered does not exist then continually ask user to enter bookId until a bookId that exists is entered\n\t\t\t\twhile(!ALL_BOOKS.containsKey(bookId)){\n\t\t\t\t\tSystem.out.println(\"Book Id entered does not exist! Enter BookId: \");\n\t\t\t\t\tbookId = integer_input.nextInt();\n\t\t\t\t}\n\t\t\n\t\t/*Print statements to notify book has been found, the book's details, and its availabilty*/\n\t\tSystem.out.println(\"Book Found!\");\n\t\tSystem.out.println(ALL_BOOKS.get(bookId).getBookTitle() + \" | Written By: \" + ALL_BOOKS.get(bookId).getAuthor().toString() + \"| Published By: \" + ALL_BOOKS.get(bookId).getPublisher());\n\t\tString availabilty = !ALL_BOOKS.get(bookId).getBorrowed() ? \"Available\" : \"Currently Borrowed\"; //stores whether book is currently borrowed or not.\n\t\tSystem.out.println(availabilty);\n\t\t\n\t\t\n\t\t\n\t\tif(ALL_BOOKS.get(bookId).getBorrowed()){//if book was borrowed then validate student doing the book return, change the book's status, and calculate how much student should be fined \t\n\t\t\tBookDetails book = ALL_BOOKS.get(bookId);\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Enter Id of student returning the book: \");\n\t\t\tint studentId = getIntegerInput();//ensures user input is an integer value\n\t\t\t\n\t\t\t/*Verify student Id entered matches the Id of the student who borrowed the book*/\n\t\t\tif(studentId == book.getStudentBorrowed()){\n\t\t\t\tFineResult fine = calculateFine(book.getDateToReturn()); //calculate how many days overdue the book was returned and how much student should be fined.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//If book was returned on time then this method will return 0 for both the number of days overdue and the student's fine.\n\t\t\t\tbook.setBorrowed(false); //indicates book has been returned and is now available to be borrowed by someone else\n\t\t\t\tbook.resetDateToReturn();; //reset book's return date\n\t\t\t\tbook.setStudentBorrowed(0); //reset to default value, indicating no student is current borrowing this book\n\t\t\t\t\n\t\t\t\t/*Display Statements to user indicating book was successfully returned, and how much student was fined*/\n\t\t\t\tSystem.out.println(\"You Are All Set!\");\n\t\t\t\tSystem.out.println(\"Book Id: \" + book.getBookId() + \" | \" + book.getBookTitle() + \" has been returned\");\n\t\t\t\tSystem.out.println(ALL_STUDENTS.get(studentId).getFullName() + \" returned the book \" + fine.days_overdue + \" days overdue\" + \" | Fine Amount Charged: \" + fine.days_overdue + \" * \" + FINE_RATE + \" = GHc\" + fine.fine);\n\t\t\t\t\n\t\t\t\tALL_STUDENTS.get(studentId).setBookIdBorrowed(0); //reset to default value, indicating no book is currently borrowed by this student\n\t\t\t\tALL_STUDENTS.get(studentId).addFine(fine.fine); //add the respective fine to this students fine total. If student accrued no fine on this return, fine value added will be 0.\n\t\t\t\tSystem.out.println(\"Total Fine on account: GHc\" + ALL_STUDENTS.get(studentId).getTotalFine());\n\t\t\t\t/*If Student's total fine is greater than 0 then add student to the FINED_STUDENTS Hashtable*/\n\t\t\t\taddFinedStudentsToTable(ALL_STUDENTS.get(studentId));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"ERROR Verifying Student Id: Only Student who borrowed the book can return this book\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"ERROR: Can't return book that was not borrowed!\");\n\t}",
"public static void main(String[] args) {\r\n\tScanner scan = new Scanner(System.in);\r\n\r\n\tSystem.out.print(\"Are there any room available for booking? If Yes enter true if No enter false: \");\r\n\tboolean available = scan.nextBoolean();\r\n\r\n\tSystem.out.println(\"Enter the month, day and year followed by space: \");\r\n\tint month = scan.nextInt();\r\n\tint day = scan.nextInt();\r\n\tint year = scan.nextInt();\r\n\r\n\tsimpleRoomBook(available, month, day, year);\r\n\r\n}",
"boolean insertBook(Book book);",
"public static void main(String[] args)\n\t {\n\t Inventory myStore = new Inventory();\n\n\t Scanner userInput = new Scanner(System.in); // for keyboard input\n\t \n\t int choice; // holds the user's menu choice\n\t \n\t //myStore.readFile();\n\n\t // the menu system\n\t do\n\t {\n\t System.out.println();\n\t System.out.println(\"Video Store Inventory Menu\");\n\t System.out.println(\"--------------------------\");\n\t System.out.println(\"1. Add Movie\");\n\t System.out.println(\"2. Remove Movie\");\n\t System.out.println(\"3. Show Movie\");\n\t System.out.println(\"4. Show Inventory\");\n\t System.out.println(\"5. Quit\");\n\t System.out.println();\n\t System.out.println(\"Enter your choice: \");\n\n\t // gets the menu choice from the user\n\t choice = userInput.nextInt();\n\n\t switch (choice)\n\t {\n\t case ADD_ITEM:\n\t myStore.addMovie(userInput);\n\t break;\n\t case REM_ITEM:\n\t myStore.removeMovie(userInput);\n\t break;\n\t case GET_INFO:\n\t myStore.getInfo(userInput);\n\t break;\n\t case SHOW_INV:\n\t myStore.displayInv();\n\t break;\n\t case QUIT_PROG:\n\t break;\n\t default:\n\t System.out.println(\"Invalid choice, try again!\");\n\t }\n\n\t }\n\t while (choice != QUIT_PROG);\n\t \n\t myStore.writeFile();\n\n\t // exit the program\n\t System.out.println(\"Goodbye!\");\n\t }",
"public static void main(String[] args) {\n\t\tint opc;\r\n\t\t\r\n\t\tVector <Coches> coches=new Vector();\r\n\t\t\r\n\t\tScanner sc=new Scanner(System.in);\r\n\t\t\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"barra menu\");\r\n\t\t\topc=sc.nextInt();\r\n\t\t\tswitch(opc) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t\tsc.nextLine();\r\n\t\t\t\tSystem.out.println(\"anota matricula\");\r\n\t\t\t\tString matricula=sc.nextLine();\r\n\t\t\t\tcoches.add(new Coches(matricula));\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t\tif(coches.size()>0) {\r\n\t\t\t\t\tCoches salir=coches.remove(0);\r\n\t\t\t\t\tSystem.out.println(salir);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"no hay coches en la cola\");\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t\tSystem.out.println(coches.toString());\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t\tsc.nextLine();\r\n\t\t\t\tSystem.out.println(\"anota matricula\");\r\n\t\t\t\tmatricula=sc.nextLine();\r\n\t\t\t\tcoches.indexOf(new Coches(matricula));//indexof solo busca un objeto busca de uno en uno\r\n\t\t\t\t/*int pos=Buscar(coches, matricula);//--------primer ejemplo es lo mismo\r\n\t\t\t\tif(pos==-1)\r\n\t\t\t\t\tSystem.out.println(\"no encontrado\");------\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"encontrado en posicion\"+pos);\r\n\t\t\t\t*/\r\n\t\t\t\tbreak;\r\n\t\t\tcase 5:\r\n\t\t\t\tsc.nextLine();\r\n\t\t\t\tSystem.out.println(\"anota matricula\");\r\n\t\t\t\tmatricula=sc.nextLine();\r\n\t\t\t\tif(coches.remove(new Coches(matricula))==true)\r\n\t\t\t\t\tSystem.out.println(\"coche borrado\");\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"no existe el coche\");\r\n\t\t\t\tbreak;\r\n\t\t\t\tdefault: System.out.println(\"opcion incorrecta\");\r\n\t\t\t}\r\n\t\t}while(opc!=6);\r\n\t}",
"boolean captureChoice(Scanner sc);",
"private void selectBook(Book book){\n\t\tthis.book = book;\n\t\tshowView(\"ModifyBookView\");\n\t\tif(book.isInactive()){\n\t\t\tstateChangeRequest(Key.MESSAGE, new MessageEvent(MessageType.INFO, \"Heads Up! This book is archived. It must be recovered before it can be modified.\"));\n\t\t}else if(book.isLost()){\n\t\t\tstateChangeRequest(Key.MESSAGE, new MessageEvent(MessageType.INFO, \"Heads Up! This book is lost. It must be recovered before it can be modified.\"));\n\t\t}\n\t}",
"private static void queryBooksByGenre(){\n\t\tSystem.out.println(\"===Query Books By Genre===\");\n\t\tScanner string_input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter Genre to Query Books by: \");\n\t\tString genre = string_input.next();\n\t\tint genre_index = getGenreIndex(genre); //returns the index of the genre entered, in ALL_GENRES\n\t\t\n\t\tif(genre_index > -1){//valid genre was entered\n\t\t\tIterator<String> iter = ALL_GENRES.get(genre_index).iterator();\n\t\t\tSystem.out.println(\"All \" + genre + \" books are: \");\n\t\t\tprintAllElements(iter);\n\t\t}\n\t}",
"public void loadBooks() {\n\t\ttry {\n\t\t\tScanner load = new Scanner(new File(FILEPATH));\n\t\t\tSystem.out.println(\"Worked\");\n\n\t\t\twhile (load.hasNext()) {\n\t\t\t\tString[] entry = load.nextLine().split(\";\");\n\n\t\t\t\t// checks the type of book\n\t\t\t\tint type = bookType(entry[0]);\n\n\t\t\t\t// creates the appropriate book\n\t\t\t\tswitch (type) {\n\t\t\t\tcase 0:\n\t\t\t\t\tcreateChildrensBook(entry); // creates a Childrensbook and adds it to the array\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tcreateCookBook(entry);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tcreatePaperbackBook(entry);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tcreatePeriodical(entry);\n\t\t\t\t\tbreak;\n\t\t\t\tcase -1:\n\t\t\t\t\tSystem.out.println(\"No book created\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tload.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Did not read in file properly, restart the program, and check filepath of books.txt.\");\n\t\t}\n\t}",
"public static void main( String[ ] args ) throws FileNotFoundException\r\n\t{\n\t\tKeyboard[] keyboards = inputFromFile();\r\n\t\t//int index = findPlace(keyboards);\r\n\t\t//System.out.println ( \"\" + index );\r\n\t\t//addMoreKeyboards ( keyboards, index );\r\n\t\tshowMenu(keyboards);\r\n\t\tchar anotherItem = 'y';\r\n\t\tint totalMissed = 0;\r\n\t\tdouble totalCost=0.0;\r\n\t\tint quantity=0;\r\n\t\tdo\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.print ( \"What would you like to buy? Please type in the listing number: \" );\r\n\r\n\t\t\tint item = input.nextInt ( );\r\n\t\t\tcart.add ( keyboards[item - 1] );\r\n\t\t\tint maxBuy = keyboards[item - 1].getStock ( );\r\n\t\t\tSystem.out.printf ( \"Sweet! How many are you buying?\\nWe have %s in stock.\",maxBuy );\r\n\t\t\tquantity = input.nextInt ( );\r\n\t\t\tint missedBuy = 0;\r\n\t\t\twhile ( quantity > maxBuy )/*NEED TO FIX: Currently it will replace \r\n\t\t\t\t\t\t\t\t\t\t\t\tthe quantity from the first keyboard chosen to the quantity \r\n\t\t\t\t\t\t\t\t\t\t\t\tof the second keyboard chosen and so on.\r\n\t\t\t\t\t\t\t\t\t\t\t\t*/\r\n\t\t\t{\r\n\t\t\t\tmissedBuy = 0;\r\n\t\t\t\tSystem.out.printf ( \"We only have %s in stock! Please enter a new quantity.\", maxBuy );\r\n\t\t\t\tquantity = input.nextInt ( );\r\n\t\t\t\tmissedBuy = quantity - maxBuy;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ttotalMissed += missedBuy;\r\n\r\n\t\t\tkeyboards[item - 1].setStock ( maxBuy-quantity );\r\n\t\t\ttotalCost += keyboards[item - 1].getPrice()*quantity;\r\n\t\t\tfor(int i=0;i<cart.size();i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.printf ( \"\\nYou chose %s %s's \\nThe price per keyboard was %s\",quantity,( (LinkedList<Keyboard>) cart ).get(i).getBrand() , ( (LinkedList<Keyboard>) cart ).get(i).getPrice() );\r\n\t\t\t}\r\n\t\t\tSystem.out.println ( \"\\nDo you have another item? y/n\" );\r\n\t\t\tanotherItem = input.next ( ).toLowerCase().charAt(0);\r\n\t\t\t//old code commented out 22APR19Marco\r\n\t\t\t/*\r\n\t\t\t Cart[] itemsAtCheckout = new Cart[20];\r\n\t\t\t itemsAtCheckout[0] = new Cart(1, keyboards[item-1]);\r\n\t\t\t System.out.printf ( \"You owe $%.2f.\", itemsAtCheckout[0].getPrice ( ) );\r\n\t\t\t*/\r\n\t\t} while ( anotherItem == 'y' );\r\n\t\t\r\n\t\tSystem.out.printf ( \"The total was \", totalCost );\r\n\t\t/* Notes:\r\n\t\t * - Need to have conditional statements for when we would sell something with no stock\r\n\t\t * possibly have a \"we don't have that many\" printout for a quantity that exceeds stock -- Done on 22APR19MARCO\r\n\t\t * \r\n\t\t * - Must return checkout price (Cart.getPrice()) -- Done on 22APR19MARCO\r\n\t\t */\r\n\t\t\r\n\t}",
"public static void menuActions(int selection){\n\t\tselection = 1;\n\t\tswitch (selection){\n\t\t\tcase 1: //prompt user to input a new record, save response.\n\t\t\t\t//call method addNew here\n\t\t\tbreak; \n\t\t\tcase 2: //prompt user to search using first, last, or telephone\n\t\t\t//call method to search\n\t\t\t//display results\n\t\t\t//if multiple, select which to delete\n\t\t\t//call method for arraylist to delete \n\t\t\tbreak;\n\t\t\tcase 3: //prompt user to search by telephone\n\t\t\t//call method to search by #\n\t\t\t//display results\n\t\t\tbreak;\n\t\t\tcase 4: //prompt user to search by first name\n\t\t\t//call method to search by firstName\n\t\t\t//display results\n\t\t\tbreak;\n\t\t\tcase 5: //prompt user to search by last name\n\t\t\t//call method to search by LastName\n\t\t\t//display results\n\t\t\tbreak;\n\t\t\tcase 6: //prompt user to search by methods 1,2, or 3\n\t\t\t//call method to search\n\t\t\t//display results\n\t\t\t//verify selection with user\n\t\t\t//prompt user to replace input\n\t\t\tbreak;\n\t\t\tcase 7: //terminate program;\n\t\t\tSystem.exit(0);\n\t\t\tbreak;\n\t\t\tdefault: \n\t\t\tSystem.out.print(\"Please enter a valid selection (1-7)\");\n\t\t\t//call userForm to prompt a new menu box;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}",
"static int deltmenu() {\n\n\t\tSystem.out.printf(\" - ---------------\\n\");\n\t\tSystem.out.printf(\" - 1.) Delete by ISBN number \\n\");\n\t\tSystem.out.printf(\" - 2.) Delete by Title \\n\");\n\t\tSystem.out.printf(\" - 3.) Quit \\n\");\n\t\tSystem.out.printf(\" - ---------------\\n\");\n\t\tSystem.out.printf(\" - Enter choice : \");\n\n\t\tfloat dlt_pro = 0; // delete process number\n\n\t\twhile (true) {\n\t\t\tdlt_pro = scan.nextFloat(); // input function\n\n\t\t\tif ((dlt_pro == 1) || (dlt_pro == 2) || (dlt_pro == 3)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.printf(\" - Oops!.Try again : \"); // Error message\n\t\t}\n\n\t\treturn (int) dlt_pro; // type casting\n\t}",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n String[] procesador = {\"6500K\", \"6700K\", \"3570K\", \"2600K\"};\n \n System.out.println(\"Introduzca el número de la acción que desea realizar:\");\n System.out.println(\" 1. Listado\");\n System.out.println(\" 2. Nueva memoria\");\n System.out.println(\" 3. Editar\");\n System.out.println(\" 4. Borrar\");\n \n int accion = Integer.parseInt(s.nextLine());\n switch (accion) {\n case 1:\n listar(procesador);\n break;\n case 2:\n \n break;\n case 3:\n break;\n case 4:\n break;\n }\n }",
"public static void editcar(String ref) {\n\n Scanner sc = new Scanner(System.in);\n Cars xx = new Cars();\n System.out.println(\"edit car\");\n String target = ref.toUpperCase();\n int gotit = 0;\n for (int i = 0; i < listcars.size(); i++) {\n\n xx = listcars.get(i);\n String record = xx.getReference().toUpperCase();\n if (record.equals(target)) {\n System.out.println(\" Car found !\");\n System.out.println(\" reference: \" + xx.getReference());\n System.out.println(\"please select enter to continue or write a new reference\");\n ref = sc.nextLine();\n if (!ref.equals(\"\")) {xx.SetRef(ref);}\n\n System.out.println(\"Brand: \" + xx.getBrand());\n String brand = sc.nextLine();\n if (!brand.equals(\"\")) {xx.SetBrand(brand);}\n String mo;\n System.out.println(\"Model: \" + xx.getModel());\n mo = sc.nextLine();\n if (!mo.equals(\"\")) { xx.SetModel(mo); }\n\n String ye;\n System.out.println(\" Year: \" + String.valueOf(xx.getYear()));\n ye = sc.nextLine();\n if (!ye.equals(\"\")) { xx.SetYear(Integer.valueOf(sc.nextLine())); }\n\n System.out.println(\"car's information successfully updated \");\n ye = String.valueOf(xx.getYear());\n\n System.out.println(\"Brand: \"+ xx.getBrand()+ \",Model:\"+ xx.getModel()+ \", Reference:\"+ xx.getReference()+ \", Year: \" + ye);\n gotit = 1;\n\n }\n }\n if (gotit == 0) {\n System.out.println(\"user not found !\");\n }\n\n\n }",
"private String userSelection(String[] decknames) {\n Scanner scanner = new Scanner(System.in);\n int deckoption = Integer.parseInt(scanner.nextLine());\n while(deckoption <= 0 || deckoption > decknames.length + 1) {\n System.out.print(\"try again\\ninput: \");\n deckoption = Integer.parseInt(scanner.nextLine());\n }\n // user wants to create a new deck\n if (deckoption > decknames.length) {\n System.out.print(\"type new deck name: \");\n return scanner.nextLine();\n }\n return decknames[deckoption - 1];\n }",
"public void returnBook()\n\t{\n\t\tavailableBooks++;\n\t}",
"private void saveBook() {\n // Read from input fields\n // Use trim to eliminate leading or trailing white space\n String productName = etTitle.getText().toString().trim();\n String author = etAuthor.getText().toString().trim();\n String price = etPrice.getText().toString().trim();\n String quantity = etEditQuantity.getText().toString().trim();\n String supplier = etSupplier.getText().toString().trim();\n String supplierPhoneNumber = etPhoneNumber.getText().toString().trim();\n\n // If this is a new book and all of the fields are blank.\n if (currentBookUri == null &&\n TextUtils.isEmpty(productName) && TextUtils.isEmpty(author) &&\n TextUtils.isEmpty(price) && quantity.equals(getString(R.string.zero)) &&\n TextUtils.isEmpty(supplier) && TextUtils.isEmpty(supplierPhoneNumber)) {\n // Exit the activity without saving a new book.\n finish();\n return;\n }\n\n // Make sure the book title is entered.\n if (TextUtils.isEmpty(productName)) {\n Toast.makeText(this, R.string.enter_title, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the author is entered.\n if (TextUtils.isEmpty(author)) {\n Toast.makeText(this, R.string.enter_author, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the price is entered.\n if (TextUtils.isEmpty(price)) {\n Toast.makeText(this, R.string.enter_price, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the quantity is entered if it is a new book.\n // Can be zero when editing book, in case the book is out of stock and user wants to change\n // other information, but hasn't received any new inventory yet.\n if (currentBookUri == null && (quantity.equals(getString(R.string.zero)) ||\n quantity.equals(\"\"))) {\n Toast.makeText(this, R.string.enter_quantity, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the supplier is entered.\n if (TextUtils.isEmpty(supplier)) {\n Toast.makeText(this, R.string.enter_supplier, Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Make sure the supplier's phone number is entered.\n if (TextUtils.isEmpty(supplierPhoneNumber)) {\n Toast.makeText(this, R.string.enter_suppliers_phone_number,\n Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Convert the price to a double.\n double bookPrice = Double.parseDouble(price);\n\n // Convert the quantity to an int, if there is a quantity entered, if not set it to zero.\n int bookQuantity = 0;\n if (!quantity.equals(\"\")) {\n bookQuantity = Integer.parseInt(quantity);\n }\n\n // Create a new map of values, where column names are the keys\n ContentValues values = new ContentValues();\n values.put(BookEntry.COLUMN_BOOK_PRODUCT_NAME, productName);\n values.put(BookEntry.COLUMN_BOOK_AUTHOR, author);\n values.put(BookEntry.COLUMN_BOOK_PRICE, bookPrice);\n values.put(BookEntry.COLUMN_BOOK_QUANTITY, bookQuantity);\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER, supplier);\n values.put(BookEntry.COLUMN_BOOK_SUPPLIER_PHONE_NUMBER, supplierPhoneNumber);\n\n // Check if this is a new or existing book.\n if (currentBookUri == null) {\n // Insert a new book into the provider, returning the content URI for the new book.\n Uri newUri = getContentResolver().insert(BookEntry.CONTENT_URI, values);\n\n // Show a toast message depending on whether or not the insertion was successful.\n if (newUri == null) {\n // If the row ID is null, then there was an error with insertion.\n Toast.makeText(this, R.string.save_error, Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful, display a toast.\n Toast.makeText(this, R.string.save_successful, Toast.LENGTH_SHORT).show();\n }\n } else {\n // Check to see if any updates were made if not, no need to update the database.\n if (!bookHasChanged) {\n // Exit the activity without updating the book.\n finish();\n } else {\n // Update the book.\n int rowsUpdated = getContentResolver().update(currentBookUri, values, null,\n null);\n\n // Show a toast message depending on whether or not the update was successful.\n if (rowsUpdated == 0) {\n // If no rows were updated, then there was an error with the update.\n Toast.makeText(this, R.string.update_error, Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the update was successful, display a toast.\n Toast.makeText(this, R.string.update_successful,\n Toast.LENGTH_SHORT).show();\n }\n }\n }\n\n // Exit the activity, called here so the user can enter all of the required fields.\n finish();\n }",
"public static void main(String[] args) \r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttree = new SceneTree();\r\n\t\t\tSystem.out.println(\"Creating a story...\");\r\n\t\t\tSystem.out.print(\"Please enter a title: \");\r\n\t\t\tScanner in = new Scanner(System.in);\r\n\t\t\tString title = in.nextLine();\r\n\t\t\tSystem.out.print(\"Please enter a scene: \");\r\n\t\t\tString scene = in.nextLine();\r\n\t\t\ttree.addNewNode(title, scene);\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"Scene #\" + tree.getCursor().getSceneID() + \" added.\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tString choice = \"\";\r\n\t\t\tdo\r\n\t\t\t{\r\n\t\t\t try \r\n\t\t\t {\r\n\t\t\t\t printMenu();\r\n\t\t\t\t System.out.print(\"Please enter a selection: \");\r\n\t\t\t\t choice = in.next().toUpperCase();\r\n\t\t\t\t switch(choice)\r\n\t\t\t\t {\r\n\t\t\t\t \tcase \"A\": in.nextLine();\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Please enter a title: \");\r\n\t\t\t\t \t\t\t String t = in.nextLine();\r\n\t\t\t\t \t\t\t System.out.print(\"Please enter a scene: \");\r\n\t\t\t\t \t\t\t String s = in.nextLine();\r\n\t\t\t\t \t\t\t tree.addNewNode(t,s);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Scene #\" + tree.getCursor().getNumScene() + \" added.\");\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"R\": System.out.println();\r\n\t\t\t\t \t\t System.out.print(\"Please enter an option: \");\r\n\t\t\t\t \t\t String remove = in.next();\r\n\t\t\t\t \t\t tree.removeScene(remove);\r\n\t\t\t\t \t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"S\": System.out.println();\r\n\t\t\t\t \t\t\t tree.getCursor().displayFullScene();\r\n\t\t\t\t \t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"P\": System.out.println();\r\n\t\t\t\t \t\t System.out.println(tree.toString());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"B\": System.out.println();\r\n\t\t\t\t \t\t\t tree.moveCursorBackwards();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfuly moved to \" + tree.getCursor().getTitle());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"F\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Which option do you wish to go to: \");\r\n\t\t\t\t \t\t\t String forward = in.next();\r\n\t\t\t\t \t\t\t tree.moveCursorForward(forward);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfuly moved to \" + tree.getCursor().getTitle());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"G\": playGame();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"N\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(tree.getPathFromRoot());\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\r\n\t\t\t\t \tcase \"M\": System.out.println();\r\n\t\t\t\t \t\t\t System.out.print(\"Move current scene to: \");\r\n\t\t\t\t \t\t\t int num = in.nextInt();\r\n\t\t\t\t \t\t\t tree.moveScene(num);\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t System.out.println(\"Successfully moved scene\");\r\n\t\t\t\t \t\t\t System.out.println();\r\n\t\t\t\t \t\t\t break;\t \t\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t catch(FullSceneException e)\r\n\t\t\t {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"You cannot add another scene!\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t }\r\n\t\t\t catch(NoSuchNodeException e)\r\n\t\t\t {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tSystem.out.println(\"That option does not exist.\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\twhile(!choice.equals(\"Q\"));\r\n\t\t}\r\n\t\tcatch(FullSceneException e)\r\n\t\t{\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"Hey\");\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Program terminating normally...\");\r\n\t}",
"public Menu(Calendar calendar) {\n this.calendar = calendar;\n input = new Scanner(System.in);\n }"
] |
[
"0.7556952",
"0.7065338",
"0.705215",
"0.7006513",
"0.69542104",
"0.6920529",
"0.6861422",
"0.6732239",
"0.6645394",
"0.6631543",
"0.6415537",
"0.64127916",
"0.6358322",
"0.6218229",
"0.6205846",
"0.62021774",
"0.61754066",
"0.61184186",
"0.6045091",
"0.6033886",
"0.60291725",
"0.6023982",
"0.60203654",
"0.60062194",
"0.5977395",
"0.5963624",
"0.5950583",
"0.5946138",
"0.59389794",
"0.59340125",
"0.59083354",
"0.5864308",
"0.5855912",
"0.58551586",
"0.58321244",
"0.58167565",
"0.581321",
"0.57650584",
"0.5762745",
"0.57616836",
"0.5754837",
"0.57328814",
"0.5713908",
"0.57128996",
"0.57117003",
"0.5700645",
"0.569724",
"0.5692493",
"0.5678443",
"0.5676807",
"0.5666111",
"0.56617194",
"0.56607604",
"0.5659674",
"0.5648722",
"0.5648144",
"0.56368285",
"0.56362754",
"0.5636157",
"0.5635647",
"0.5634684",
"0.5629519",
"0.56265813",
"0.5625714",
"0.561133",
"0.5606724",
"0.5606413",
"0.55963486",
"0.55915797",
"0.5590515",
"0.55861676",
"0.5578862",
"0.5577777",
"0.55764",
"0.55762136",
"0.5571706",
"0.55694747",
"0.5565089",
"0.5548906",
"0.55460256",
"0.5545816",
"0.5544525",
"0.55426395",
"0.553976",
"0.55383444",
"0.5534178",
"0.55334795",
"0.5527725",
"0.5525027",
"0.55219126",
"0.55218977",
"0.55197644",
"0.55161345",
"0.5512906",
"0.55119765",
"0.5507754",
"0.55025744",
"0.5500351",
"0.549922",
"0.5498941",
"0.5497181"
] |
0.0
|
-1
|
Unions the sets of the respective elements.
|
public void union(T x, T y) {
assert (_parents.containsKey(x));
assert (_parents.containsKey(y));
x = find(x);
y = find(y);
if (x == y) {
return;
}
int xRank = _ranks.get(x);
int yRank = _ranks.get(y);
if (xRank < yRank) {
_parents.put(x, y);
} else if (xRank > yRank) {
_parents.put(y, x);
} else {
_parents.put(y, x);
_ranks.put(x, xRank + 1);
}
_numSets--;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public ZYSet<ElementType> union(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n result.add(e);\n }\n for(ElementType e :otherSet){\n result.add(e);\n }\n \n return result;\n }",
"private static <T> Set<T> union(Collection<T> c1, Collection<T> c2) {\n return Stream.concat(c1.stream(), c2.stream()).collect(Collectors.toUnmodifiableSet());\n }",
"public Set union(Set in_set) throws SetException {\n\t\tSet union = new Set(this);\n\t\tfor (Object element : in_set.list) {\n\t\t\tif (!member(element))\n\t\t\t\tunion.addItem(element);\n\t\t}\n\t\treturn union;\n\t}",
"@Test\r\n public void testUnion1() {\r\n int actual[] = set1.unionOfSets(set2);\r\n Assert.assertArrayEquals(new int[] { 1, 2, 3, 4, 5 }, actual);\r\n }",
"public Set union(Set join){\n Set newSet = new Set();\n for(int element = 0; element < join.size(); element++){\n if (!elementOf(join.getSet()[element]))\n newSet.add(join.getSet()[element]);\n }\n for(int element = 0; element < set.length; element++){\n newSet.add(set[element]);\n }\n return newSet;\n }",
"public Set Union(Set secondSet) {\n\t\t\n\t\tArrayList<String> firstArray = noDuplicates(stringArray);\n\t\t// Taking out duplications out of our sets by calling the noDuplicates private function\n\t\tArrayList<String> secondArray = noDuplicates(secondSet.returnArray());\n\t\t\n\t\tArrayList<String> unionOfBoth = new ArrayList<String>();\n\t\t// New ArrayList to hold the final values\n\t\t\n\t\tfor (int i=0; i < 10; i++) {\n\t\t\tif (firstArray.size() > i) {\n\t\t\t\tif (unionOfBoth.contains(firstArray.get(i)) == false && firstArray.get(i).equals(\"emptyElement\") == false) {\n\t\t\t\t\tunionOfBoth.add(firstArray.get(i));\n\t\t\t\t\t// If our final ArrayList does not already contain the element, and the item is not an empty string\n\t\t\t\t\t// (Does not contain the phrase \"emptyElement\"), then add it to our final ArrayList\n\t\t\t\t}\n\t\t\t\telse if (unionOfBoth.contains(firstArray.get(i)) == false && firstArray.get(i).equals(\"emptyElement\")) {\n\t\t\t\t\tunionOfBoth.add(\"\");\n\t\t\t\t\t// If our final ArrayList does not already contain the element, but the item is an empty string\n\t\t\t\t\t// (Does contain the phrase \"emptyElement\"), then add an empty string to our final ArrayList\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (secondArray.size() > i) {\n\t\t\t\tif (unionOfBoth.contains(secondArray.get(i)) == false && secondArray.get(i).equals(\"emptyElement\") == false) {\n\t\t\t\t\tunionOfBoth.add(secondArray.get(i));\n\t\t\t\t\t// If our final ArrayList does not already contain the element, and the item is not an empty string\n\t\t\t\t\t// (Does not contain the phrase \"emptyElement\"), then add it to our final ArrayList\n\t\t\t\t}\n\t\t\t\telse if (unionOfBoth.contains(secondArray.get(i)) == false && secondArray.get(i).equals(\"emptyElement\")) {\n\t\t\t\t\tunionOfBoth.add(\"\");\n\t\t\t\t\t// If our final ArrayList does not already contain the element, but the item is an empty string\n\t\t\t\t\t// (Does contain the phrase \"emptyElement\"), then add an empty string to our final ArrayList\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSet unionReturn = new Set(unionOfBoth); // Initiate a Set object from out final ArrayList\n\t\t\n\t\treturn unionReturn; // Return the final Set Object\n\t}",
"@Test\n\t public void test_Union_Set_Same() throws Exception{\n\t\t int[] setarray1= new int[]{1,2,3};\n\t\t int[] setarray2= new int[]{1,2,3};\n\t\t SET set = new SET(setarray1);\n\t\t int returnedArrOperation[] =set.Union(setarray1,setarray2); \n\t\t int []expectedArr = new int[] {1,2,3};\n\t\t Assert.assertArrayEquals( expectedArr, returnedArrOperation );\n\t }",
"@Override\n public SetInterface<T> union(SetInterface<T> rhs) {\n //Declare return SetInterface\n SetInterface<T> answer = new ArraySet();\n //Add the items from the calling ArraySet to the return Set\n for (int i = 0; i < this.numItems; i++){\n answer.addItem(arr[i]);\n }\n //Convert the other set to an array in case it isnt and to \n //ease iteration\n T[] other = rhs.toArray();\n //Add the items from RHS to return Set\n for (int j = 0; j < rhs.getSize(); j++){\n answer.addItem(other[j]);\n }\n //Return the answer\n return answer; \n }",
"public BSTSet union(BSTSet s) {\n int[] thisArray = BSTToArray();\n int[] sArray = s.BSTToArray();\n int[] unionArray = new int[thisArray.length + sArray.length];\n int unionArrayIndex = 0;\n\n // add both arrays together\n for (int i = 0; i < thisArray.length; i++) {\n unionArray[unionArrayIndex++] = thisArray[i];\n }\n\n for (int i = 0; i < sArray.length; i++) {\n unionArray[unionArrayIndex++] = sArray[i];\n }\n\n return new BSTSet(unionArray);\n }",
"protected <Ty> HashSet<Ty> union(HashSet<Ty> setA, HashSet<Ty> setB) {\n HashSet<Ty> retSet = new HashSet<>();\n retSet.addAll(setA);\n retSet.addAll(setB);\n return retSet;\n }",
"@Test\r\n\t\tpublic void testUnion() {\n\t\t\ttestingSet = new IntegerSet(list1);\r\n\t\t\ttestingSet2= new IntegerSet(list2);\r\n\t\t\t// 3rd set =to the union of the two lists \r\n\t\t\ttestingSet3= new IntegerSet(union);\r\n\t\t\t// 4th set equal to the union of sets 1 and 2 \r\n\t\t\ttestingSet4= testingSet.union(testingSet, testingSet2);\r\n\t\t\t// sets 3 and 4 should be equal\r\n\t\t\t// assertEquals method is deprecated \r\n\t\t\tassertArrayEquals(testingSet3.toArray(),testingSet4.toArray());\r\n\t\t\t \r\n\t\t}",
"@Override\n public SetInterface<T> union(SetInterface<T> rhs) {\n //create return SetInterface\n SetInterface<T> result = new LinkedSet();\n //add the items from the calling set to the result set\n Node n = first;\n while(n != null){\n result.addItem(n.value);\n n = n.next;\n }\n \n //convert rhs to an array so we know what we're dealing with\n T[] rhsArr = rhs.toArray();\n //add the items from rhsArr to result\n for(int i = 0; i < rhsArr.length; i++){\n result.addItem(rhsArr[i]);\n }\n \n return result;\n }",
"public ArrayList<Predmet> union(ArrayList<ArrayList<Predmet>> listU){\n\t\tSet<Predmet> set = new HashSet<Predmet>();\n\t\t\n\t\tfor(ArrayList<Predmet> p : listU)\n\t\t\tset.addAll(p);\n\t\t\n\t\treturn new ArrayList<Predmet>(set);\n\t}",
"private static Collection<Node> union(Collection<Node> xs, Collection<Node> ys) {\n if (xs == null || xs.size() == 0) {\n return ys;\n }\n if (ys == null || ys.size() == 0) {\n return xs;\n }\n \n List<Node> result = new ArrayList<>(xs);\n for (Node y : ys) {\n if (!result.contains(y)) {\n result.add(y);\n }\n }\n return result;\n }",
"@Override\n public SetI union(SetI other) {\n Set o;\n\n if (!(other instanceof Set)) {\n // Different Set impl. Convertion needed.\n // Will impact performance.\n o = Set.fromAnotherImpl(other);\n }\n else {\n o = (Set) other;\n }\n\n int[] newArr = new int[count + o.count];\n int i = 0, j = 0, k = 0;\n\n // Merge sorted arrays.\n while (i < count && j < o.count) {\n // Skip duplicated elements.\n if (contains(o.arr[j])) {\n ++j;\n }\n else if (arr[i] < o.arr[j]) {\n newArr[k++] = arr[i++];\n }\n else {\n newArr[k++] = o.arr[j++];\n }\n }\n\n while (i < count) {\n newArr[k++] = arr[i++];\n }\n\n while (j < o.count) {\n // Skip duplicated elements.\n if (!contains(o.arr[j])) {\n newArr[k++] = o.arr[j];\n }\n ++j;\n }\n\n return new Set(newArr, k);\n }",
"public SetSet setUnion(SetSet second){\n\t\tSetSet result = new SetSet(contents);\n\t\tfor(int i=0;i<second.size();i++){\n\t\t\tresult.add(second.get(i));\n\t\t}\n\t\treturn result;\n\t}",
"static List<AffinityGroup> setsToAffinityGroups(Set<Set<Guid>> uag) {\n List<AffinityGroup> output = new ArrayList<>();\n\n for(Set<Guid> s : uag) {\n AffinityGroup temp = new AffinityGroup();\n temp.setVmAffinityRule(EntityAffinityRule.POSITIVE);\n List<Guid> entities = new ArrayList<>();\n\n entities.addAll(s);\n temp.setVmIds(entities);\n output.add(temp);\n }\n\n return output;\n }",
"public void unionOf(IntegerSet set1, IntegerSet set2) {\n get = new int[0];\n for (int i : set1.get)\n insertElement(i);\n for (int i : set2.get)\n insertElement(i);\n }",
"@Test\n\tpublic void testUnionSLLSetArrayAll0() {\n\n\t\tint[] arr1 = { 0, 0, 0 };\n\t\tint[] arr2 = { 0, 0, 0, 0 };\n\t\tint[] arr3 = { 0, 0 };\n\t\tint[] arr4 = { 0, 0 };\n\t\tSLLSet listObj100 = new SLLSet(arr1);\n\t\tSLLSet listObj99 = new SLLSet(arr2);\n\t\tSLLSet listObj98 = new SLLSet(arr3);\n\t\tSLLSet listObj97 = new SLLSet(arr4);\n\t\tSLLSet listObj96 = new SLLSet();\n\t\tSLLSet[] Array = { listObj100, listObj99, listObj98, listObj97, listObj96 }; // test static SLLSet union(sArray)\n\n\t\tSLLSet listObj23 = SLLSet.union(Array);\n\n\t\tString expected = \"0\";\n\t\tint expectedSize = 1;\n\n\t\tassertEquals(expectedSize, listObj23.getSize());\n\t\tassertEquals(expected, listObj23.toString());\n\n\t}",
"@Override\n public IntSet union(IntSet other) {\n return other;\n }",
"public ISet<E> union(ISet<E> otherSet) {\n\t\tif (otherSet == null)\n\t\t\tthrow new IllegalArgumentException(\"The given set is null.\");\n\t\tISet<E> result = this.difference(otherSet);\n\t\tresult.addAll(this.intersection(otherSet));\n\t\tresult.addAll(otherSet.difference(this));\n\t\treturn result;\n\t}",
"public static Set unionRaw(Set s1, Set s2) {\n\t\t// Warning : HashSet is a raw type. References to generic type HashSet<E> should\n\t\t// be parameterized\n\t\tSet result = new HashSet(s1);\n\t\t// Warning : Type safety: The method addAll(Collection) belongs to the raw type\n\t\t// Set. References to generic type Set<E> should be parameterized\n\t\tresult.addAll(s2);\n\t\treturn result;\n\t}",
"@SafeVarargs\n public static <T> Set<T> union(Set<T>... sets) {\n if (sets == null) return set();\n Set<T> result = set();\n for (Set<T> s : sets) {\n if (s != null) result.addAll(s);\n }\n return result;\n }",
"private static int[] union(int[] items1, int[] items2) {\n\t\tSet<Integer> itemSet = new HashSet<Integer>();\n\t\tfor(int i : items1) {\n\t\t\titemSet.add(i);\n\t\t}\n\t\tfor(int i : items2){\n\t\t\titemSet.add(i);\n\t\t}\n\t\tint[] items = new int[itemSet.size()];\n\t\tint i = 0;\n\t\tfor(int val : itemSet){\n\t\t\titems[i++] = val; \n\t\t}\n\t\treturn items;\n\t}",
"private List<Set<String>> getSubSets(Set<String> set) {\n\t\tString[] setArray = set.toArray(new String[0]);\n\t\tList<Set<String>> result = new ArrayList<Set<String>>();\n\t\tfor(int i = 0; i < setArray.length; i++){\n\t\t\tSet<String> subSet = new HashSet<String>();\n\t\t\tfor(int j = 0; j < setArray.length; j++){\n\t\t\t\tif(j != i) subSet.add(setArray[j]);\n\t\t\t}\n\t\t\tresult.add(subSet);\n\t\t}\n\t\treturn result;\n\t}",
"set.addAll(Arrays.asList(a));",
"public Bag union(Bag u) {\n return u;\n }",
"public static <T> Set<T> union(Set<? extends T> s1, Set<? extends T> s2) {\n Set<T> result = new HashSet<>(s1);\n result.addAll(s2);\n return result;\n }",
"@Override\n\tpublic Collection<V> values() {\n\t\tArrayList<V> valores = new ArrayList<V>();\n\t\tIterator it = tabla.iterator();\n\t\tint i = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tIterator it2 = tabla.get(i).valueSet().iterator();\n\t\t\tit.next();\n\t\t\tint j = 0;\n\t\t\twhile (it2.hasNext()) {\n\t\t\t\tit2.next();\n\t\t\t\tvalores.add(tabla.get(i).valueSet().get(j));\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn new HashSet<V>(valores);\n\t}",
"@Test\n\tpublic void testAddAll() {\n\t Set<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t Set<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t setA.addAll(setB);\n\t Set<Integer> union = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9));\n\t assertEquals(setA, union);\n }",
"public static <T> Set<T> consolidateSets(Collection<Set<T>> inputSets) {\n\t\tSet<T> set = new HashSet<T>();\n\t\tfor (Set<T> inputSet : inputSets)\n\t\t\tset.addAll(inputSet);\n\t\treturn set;\n\t}",
"@Test\n\tpublic void testUnion5() {\n\n\t\tint[] arr = {};\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tint[] uni2 = { 0, 2, 3 };\n\t\tSLLSet listObj7 = new SLLSet(uni2);\n\t\tSLLSet listObj8 = listObj2.union(listObj7);\n\n\t\tString expected = \"0, 2, 3\";\n\t\tint expectedSize = 3;\n\n\t\tassertEquals(expectedSize, listObj8.getSize());\n\t\tassertEquals(expected, listObj8.toString());\n\n\t}",
"public ZYSet<ElementType> intersection(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n if(otherSet.contains(e)){\n result.add(e);\n }\n }\n return result;\n }",
"public AttributeSet unionWith(AttributeSet s) {\n\n Hashtable newElements = (Hashtable) elements.clone();\n\n Iterator iter = s.iterator();\n while (iter.hasNext()) {\n Object next = iter.next();\n newElements.put(next, next);\n }\n\n return new AttributeSet(newElements);\n }",
"public void union(String first, String second) {\n\t\t\n\t\tString firstRepresentative = find(first);\n\t\tString secondRepresentative = find(second);\n\t\t\n\t\tSet<String> firstSet = null;\n\t\tSet<String> secondSet = null;\n\t\t\n\t\t//look for the sets containing the first and second elements \n\t\tfor(int i = 0; i < disjointSet.size(); i++) {\n\t\t\tMap<String, Set<String>> map = disjointSet.get(i);\n\t\t\tif(map.containsKey(firstRepresentative)) {\n\t\t\t\tfirstSet = map.get(firstRepresentative);\n\t\t\t}\n\t\t\tif(map.containsKey(secondRepresentative)) {\n\t\t\t\tsecondSet = map.get(secondRepresentative);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(firstSet != null && secondSet != null) {\n\t\t\t\n\t\t\t//merge the two sets\n\t\t\tfirstSet.addAll(secondSet);\n\t\t\t\n\t\t\t//select a representative and delete the set already merged \n\t\t\tfor(int i = 0; i < disjointSet.size(); i++) {\n\t\t\t\tMap<String, Set<String>> map = disjointSet.get(i);\n\t\t\t\tif(map.containsKey(firstRepresentative)) {\n\t\t\t\t\tmap.put(firstRepresentative, firstSet);\n\t\t\t\t}\n\t\t\t\telse if(map.containsKey(secondRepresentative)) {\n\t\t\t\t\tmap.remove(secondRepresentative);\n\t\t\t\t\tdisjointSet.remove(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}",
"public HashSet getElements() {\n\treturn elements;\n }",
"@Override\r\n\tpublic MySet intersectSets(MySet[] t) {\r\n\t\tallElements = new ArrayList<Integer>();\r\n\r\n\t\t\r\n\t\tfor(Object element: t[0]) {\r\n\t\t\tallElements.add(element);\r\n\t\t}\r\n\t\r\n\t\tfor(Object e: allElements) {\r\n\t\t\tInteger c = map.getOrDefault(e, 0);\r\n\t\t\tmap.put((E)e, c + 1);\r\n\t\t}\r\n\t\t\r\n\t\tMySet<E> returnSet = (MySet<E>) new Set2<Integer>();\r\n\t\tfor(Map.Entry<E, Integer> entry :map.entrySet())\r\n\t\t\tif(entry.getValue() >= dataSet[0].length) // check\r\n\t\t\t\treturnSet.add(entry.getKey());\r\n\t\t\r\n\t\t\r\n\t\treturn returnSet;\r\n\t}",
"public static Set asSet(Object[] items) {\r\n \t\r\n \tSet set = new HashSet(items.length);\r\n \tfor (int i=0; i<items.length; i++) {\r\n \t\tset.add(items[i]);\r\n \t}\r\n \treturn set;\r\n }",
"static public Set setFlatten(Object source) {\n\t\tSet result = new HashSet();\n\t\tif ( source instanceof Collection ) {\n\t\t\tIterator it = ((Collection)source).iterator();\n\t\t\twhile ( it.hasNext() ) {\n\t\t\t\tObject elem = it.next();\n\t\t\t\tif ( elem instanceof Collection ) {\n\t\t\t\t\tresult.addAll( setFlatten(elem));\n\t\t\t\t} else {\n\t\t\t\t\tresult.add(elem);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"Set<X> toSet();",
"public DisjointSets getSets()\n\t{\n\t\treturn sets;\n\t}",
"private static Set<Item> multiSetIntersection(List<Set<Item>> setList) {\n Set<Item> interQrels = new HashSet<>(setList.get(0));\r\n \r\n for (int i = 1; i< setList.size();i++) {\r\n interQrels.retainAll(setList.get(i)); // intersection with two (and one)\r\n }\r\n\r\n return interQrels;\r\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public Set intersection(Set intersect){\n Set newSet = new Set();\n for(int element = 0; element < intersect.size(); element++){\n if(elementOf(intersect.getSet()[element]))\n newSet.add(intersect.getSet()[element]);\n }\n return newSet;\n }",
"public static void main(String[] args) {\n\t\t\n\t\t\tint[] nums={1,2,3};\n\t\t\n\t\t\tList <List<Integer>>mainList = new ArrayList<List<Integer>>();\n\t\t \n\t List<Integer> list = new ArrayList<Integer>();\n\t \n\t \n\t HashSet<List<Integer>> set = new HashSet<List<Integer>>();\n\t \n\t \n\t for(int j=0;j<nums.length;j++)\n\t list.add(nums[j]);\n\t \n\t int k=0;\n\t mainList.add(list);\n\t set.add(list);\n\t subSetList(mainList,list,set,k);\n\t\t System.out.println(\"mainList\"+ mainList);\n\t\t System.out.println(\"set\"+ set);\n\n\t}",
"Set <JAVATYPE> convertSet(Set<JAVATYPE> oldSet, final METATYPE meta);",
"public static final HashSet set (Object ... items) {\r\n HashSet result = new HashSet();\r\n for (int i=0; i<items.length; i++) {\r\n result.add(items[i]);\r\n }\r\n return result;\r\n }",
"public interface ISet<T> {\n\n // Maximum possible size of data structures\n int MAX_SIZE = 100;\n\n /**\n * @pre 0 <= sizeOfSet < max_size\n * @post [this will contain one of each int from both unionWith and this]\n * @param unionWith ISet to find the union from\n */\n default void union(ISet<T> unionWith) {\n T temp;\n int tsize = unionWith.getSize();\n//For every element in unionWith...\n for (int i = 0; i < tsize; i++) {\n //Store value at first position\n //Remove value from unionWith\n temp = unionWith.removePos(0);\n //If this set does not contain value from unionWith...\n if (!this.contains(temp)) {\n //Add value to this set\n this.add(temp);\n }\n }\n }\n\n /**\n * @pre 0 <= sizeOfSet < max_size\n * @post [this will contain ints from this that are not in diffWith]\n * @param diffWith ISet to find the difference from\n */\n default void difference(ISet<T> diffWith){\n T temp;\n int i = 0;\n //For every element in this set...\n while (i < this.getSize()){\n //Store value at first position\n //Remove value from this set\n temp = this.removePos(0);\n //If diffWith does not contain value from this set...\n if(!diffWith.contains(temp)){\n //Add value to this set\n this.add(temp);\n //Increment position\n i++;\n }\n }\n }\n\n /**\n * @pre 0 <= sizeOfSet < max_size\n * @post [this will contain ints from this that are also found in intWith]\n * @param intWith ISet to find the intersection from\n */\n default void intersect(ISet<T> intWith){\n T temp;\n int i = 0;\n //For every element in this set...\n while (i < this.getSize()){\n //Store value at first position\n //Remove value from this set\n temp = this.removePos(0);\n //If intWith does not contain value from this set...\n if(intWith.contains(temp)){\n //Add value to this set\n this.add(temp);\n //Increment position\n i++;\n }\n }\n\n }\n\n\n /**\n * @pre [ISet initialized]\n * @post [ISet contains same elements with a\n * new element - add - placed at the end]\n * @param add T value to be added to ISet\n */\n void add(T add);\n\n /**\n * @pre [ISet contains elements (non-NULL)] and pos >= 0\n * @post [ISet contains same elements as\n * when it was passed, without element at pos] and [T returned]\n * @param pos position in ISet to be removed\n * @return T of position where the element was removed\n */\n T removePos(int pos);\n\n /**\n * @pre [ISet contains elements (non-NULL)] and val != NULL\n * @post [ISet unmodified] and [boolean returned]\n * @param val value to be searched in ISet\n * @return true if ISet contains val, otherwise false\n */\n boolean contains(T val);\n\n /**\n * @pre [ISet initialized with constructor]\n * @post [ISet, size of ISet unmodified] and [int returned]\n * @return int value of the size of the ISet\n */\n int getSize();\n\n}",
"interface MultiSet<X> {\n // Add x to this multiset\n MultiSet<X> add(X x);\n\n // Apply f to every element of this multiset, collect results as a multiset\n <R> MultiSet<R> map(Function<X, R> f);\n\n // Count the number of elements in this multiset\n Integer count();\n\n // Is this multiset the same as the given multiset?\n Boolean same(MultiSet<X> s);\n\n // Does this multiset contain all of the elements of the given multiset?\n Boolean superset(MultiSet<X> s);\n\n // Does the given multiset contain all of the elements of given multiset?\n Boolean subset(MultiSet<X> s);\n\n // Does this mutliset contain the given element?\n Boolean contains(X x);\n\n // Does there exist an element that satisfies p in this multiset?\n Boolean exists(Predicate<X> p);\n\n // Do all elements satisfy p in this multiset?\n Boolean forAll(Predicate<X> p);\n\n // Convert this multiset to a list of elements (order is unspecified)\n Listof<X> toList();\n\n // Produce an element of this multiset (if one exists)\n Optional<X> elem();\n\n // Choose an element from this (if one exists) and\n // produce the element and rest of the multiset\n Optional<Pairof<X, MultiSet<X>>> choose();\n\n // Convert this multiset into a set\n Set<X> toSet();\n}",
"public static void powerSet(ArrayList<Integer> set) {\n HashSet<ArrayList<Integer>> output = new HashSet<ArrayList<Integer>>();\n output.add(new ArrayList<Integer>());\n for(Integer a : set) {\n HashSet<ArrayList<Integer>> new_subsets = new HashSet<ArrayList<Integer>>();\n ArrayList<Integer> el_set = new ArrayList<Integer>(a);\n new_subsets.add(el_set);\n for(ArrayList<Integer> subset: output) {\n ArrayList<Integer> new_subset = new ArrayList<Integer>(subset);\n new_subset.add(a);\n new_subsets.add(new_subset);\n }\n if(new_subsets.size() > 0) {\n output.addAll(new_subsets);\n }\n }\n for(ArrayList<Integer> subset: output) {\n System.out.print(\"{\");\n for(Integer el: subset) {\n System.out.print(el + \",\");\n }\n System.out.println(\"}\");\n }\n }",
"public ZYSet<ElementType> difference(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n if(!otherSet.contains(e)){\n result.add(e);\n }\n }\n return result;\n }",
"public interface TransformsToUnsortedSetTrait extends RichIterableTestCase\n{\n @Override\n default <T> UnsortedSetIterable<T> getExpectedTransformed(T... elements)\n {\n return Sets.immutable.with(elements);\n }\n\n @Override\n default <T> MutableSet<T> newMutableForTransform(T... elements)\n {\n return Sets.mutable.with(elements);\n }\n\n @Override\n default MutableBooleanSet newBooleanForTransform(boolean... elements)\n {\n return new BooleanHashSet(elements);\n }\n\n @Override\n default MutableByteSet newByteForTransform(byte... elements)\n {\n return new ByteHashSet(elements);\n }\n\n @Override\n default MutableCharSet newCharForTransform(char... elements)\n {\n return new CharHashSet(elements);\n }\n\n @Override\n default MutableDoubleSet newDoubleForTransform(double... elements)\n {\n return new DoubleHashSet(elements);\n }\n\n @Override\n default MutableFloatSet newFloatForTransform(float... elements)\n {\n return new FloatHashSet(elements);\n }\n\n @Override\n default MutableIntSet newIntForTransform(int... elements)\n {\n return new IntHashSet(elements);\n }\n\n @Override\n default MutableLongSet newLongForTransform(long... elements)\n {\n return new LongHashSet(elements);\n }\n\n @Override\n default MutableShortSet newShortForTransform(short... elements)\n {\n return new ShortHashSet(elements);\n }\n}",
"public ArrBag<T> union( ArrBag<T> other )\n {\n ArrBag<T> unionArray = new ArrBag<T>(other.size() + this.size()); \n\n int unionCount = 0; \n for (int i = 0; i <this.size(); i++ ){\n unionArray.add(this.get(i));\n unionCount++;\n } for (int i = 0; i<other.size(); i++){\n if (!unionArray.contains(other.get(i))){\n unionArray.add(other.get(i));\n unionCount ++;\n }\n }\n return unionArray;\n }",
"public Set removeDuplicateUsingSet() throws ComputationException {\n Set<Integer> uniqueSet = new HashSet<>();\n log.debug(\"Removing duplicate using Set......\");\n int[] intArray = getRandomArray();\n log.debug(\"Actual size of int array:\" + intArray.length);\n for (int i = 0; i < intArray.length; i++) {\n uniqueSet.add(intArray[i]);\n }\n log.debug(\"refined size of int array using Set: \" + uniqueSet.size());\n log.debug(Arrays.toString(uniqueSet.toArray()));\n return uniqueSet;\n }",
"@Test\n public void testUnion2IdenticalDataSets() throws Exception {\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n DataSet<Tuple3<Integer, Long, String>> ds = CollectionDataSets.get3TupleDataSet(env);\n DataSet<Tuple3<Integer, Long, String>> unionDs =\n ds.union(CollectionDataSets.get3TupleDataSet(env));\n\n List<Tuple3<Integer, Long, String>> result = unionDs.collect();\n\n String expected = FULL_TUPLE_3_STRING + FULL_TUPLE_3_STRING;\n\n compareResultAsTuples(result, expected);\n }",
"public void unionSet(NSSet<? extends E> otherSet) {\n\t\tthis.wrappedSet.addAll(otherSet.getWrappedSet());\n\t}",
"public PipeUnion<T> getUnion();",
"Set<Set<V>> routine3(Graph<V, E> g)\n {\n Set<Set<V>> NuvList = new HashSet<>();\n for (V u : g.vertexSet()) {\n for (V v : g.vertexSet()) {\n if (u == v || !g.containsEdge(u, v))\n continue;\n NuvList.add(N(g, u, v));\n }\n }\n\n Set<Set<V>> tripleList = new HashSet<>();\n for (V a : g.vertexSet()) {\n for (V b : g.vertexSet()) {\n if (a == b || g.containsEdge(a, b))\n continue;\n Set<V> Nab = N(g, a, b);\n for (V c : g.vertexSet()) {\n if (isTripleRelevant(g, a, b, c)) {\n tripleList.add(X(g, Nab, c));\n }\n }\n }\n }\n Set<Set<V>> res = new HashSet<>();\n for (Set<V> Nuv : NuvList) {\n for (Set<V> triple : tripleList) {\n Set<V> temp = new HashSet<>();\n temp.addAll(Nuv);\n temp.addAll(triple);\n res.add(temp);\n }\n }\n return res;\n }",
"public DisjointSetUnionByRank(int numElements) {\n super( numElements );\n }",
"private ISet<S> expand(ISet<S> set) {\n\t\t\tISet<S> expanded = ISets.empty();\n\t\t\tfor (S b : set) {\n\t\t\t\texpanded = expanded.union(b);\n\t\t\t\tif (!reasoner.entails(base.minus(expanded), sentence)) {\n\t\t\t\t\treturn expanded;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"HashSet<BitSet> createSubsets(BitSet bs){\n HashSet<BitSet> subsets = new HashSet<>();\n for(int i=0; i<bs.length(); i++){\n if(bs.get(i)){\n BitSet t = (BitSet)bs.clone();\n t.flip(i);\n subsets.add(t);\n }\n }\n \n return subsets;\n }",
"public SetSet(Vector<IntSet> initials){\n\t\tfor(int i=0;i<initials.size();i++){\n\t\t\tcontents.addElement(initials.get(i));\n\t\t}\n\t}",
"public static ArrayList<ArrayList<Furniture>> getSubsets(ArrayList<Furniture> set) {\n ArrayList<ArrayList<Furniture>> allsubsets = new ArrayList<ArrayList<Furniture>>();\n // amount of subsets is 2^(set size)\n int max = 1 << set.size();\n\n for (int i = 0; i < max; i++) {\n ArrayList<Furniture> subset = new ArrayList<Furniture>();\n for (int j = 0; j < set.size(); j++) {\n if (((i >> j) & 1) == 1) {\n subset.add(set.get(j));\n }\n }\n allsubsets.add(subset);\n }\n return allsubsets;\n }",
"@Override\n public SetInterface<T> symmDifference(SetInterface<T> rhs) {\n return this.difference(rhs).union(rhs.difference(this));\n }",
"public Set<Group> toSet() {\n assert CollectionUtil.elementsAreUnique(internalList);\n return new HashSet<>(internalList);\n }",
"@Override\n protected ImmutableMultiset getFlattenWithPositionExpectedValues() {\n return ImmutableMultiset.of( \"\\\"1\\\"^^xsd:integer\", \"\\\"1\\\"^^xsd:integer\", \"\\\"1\\\"^^xsd:integer\",\n \"\\\"0\\\"^^xsd:integer\", \"\\\"0\\\"^^xsd:integer\", \"\\\"0\\\"^^xsd:integer\", \"\\\"2\\\"^^xsd:integer\");\n }",
"public RegexNode ReduceSet()\n\t{\n\t\t// Extract empty-set, one and not-one case as special\n\n\t\tif (RegexCharClass.IsEmpty(_str))\n\t\t{\n\t\t\t_type = Nothing;\n\t\t\t_str = null;\n\t\t}\n\t\telse if (RegexCharClass.IsSingleton(_str))\n\t\t{\n\t\t\t_ch = RegexCharClass.SingletonChar(_str);\n\t\t\t_str = null;\n\t\t\t_type += (One - Set);\n\t\t}\n\t\telse if (RegexCharClass.IsSingletonInverse(_str))\n\t\t{\n\t\t\t_ch = RegexCharClass.SingletonChar(_str);\n\t\t\t_str = null;\n\t\t\t_type += (Notone - Set);\n\t\t}\n\n\t\treturn this;\n\t}",
"public Units union(Units set)\n\t{\n\t\tUnits result = new Units(this);\n\n\t\tresult.addAll(set);\n\n\t\treturn result;\n\t}",
"@Test\n public void testUnion5IdenticalDataSets() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n DataSet<Tuple3<Integer, Long, String>> ds = CollectionDataSets.get3TupleDataSet(env);\n DataSet<Tuple3<Integer, Long, String>> unionDs =\n ds.union(CollectionDataSets.get3TupleDataSet(env))\n .union(CollectionDataSets.get3TupleDataSet(env))\n .union(CollectionDataSets.get3TupleDataSet(env))\n .union(CollectionDataSets.get3TupleDataSet(env));\n\n List<Tuple3<Integer, Long, String>> result = unionDs.collect();\n\n String expected =\n FULL_TUPLE_3_STRING\n + FULL_TUPLE_3_STRING\n + FULL_TUPLE_3_STRING\n + FULL_TUPLE_3_STRING\n + FULL_TUPLE_3_STRING;\n\n compareResultAsTuples(result, expected);\n }",
"@Test(expected = NullPointerException.class)\r\n\t\tpublic void testUnionWithNullInput() {\n\t\t\ttestingSet = new IntegerSet(null);\r\n\t\t\ttestingSet2= new IntegerSet(null); \r\n\t\t\t// union of 2 sets should result in null value \r\n\t\t\ttestingSet3= testingSet.union(testingSet, testingSet2);\r\n\t\t\t\r\n\t\t}",
"Boolean same(MultiSet<X> s);",
"public T union( T obj1, T obj2 )\n {\n // Find the root of each object; if either is not contained, the root\n // value will be null, and we throw an exception.\n Node root1 = getRoot(nodes.get(obj1));\n Node root2 = getRoot(nodes.get(obj2));\n if ( root1 == null && root2 == null )\n throw new NoSuchElementException( \"Sets do not contain either object: \" + obj1 + \", \" + obj2 );\n if ( root1 == null )\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj1 );\n if ( root2 == null )\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj2 );\n // If already were in same set, just return data from the root of that\n // set.\n if ( root1 == root2 )\n return root1.data;\n // If not already, then doing union reduces overall number of sets.\n numSets-- ;\n // We use root2 as the new parent if either (a) the trees containing\n // both inputs have same rank and a \"coin toss\" settles on this case,\n // or (b) the tree containing obj1 has lower rank.\n if ( ( root1.rank == root2.rank && Math.random() < 0.5 ) || root1.rank < root2.rank )\n {\n // When we link root1 to root2, size of set under root2 inreases.\n root1.parent = root2;\n root2.size += root1.size;\n \n // When we union two sets of same rank, new root gets higher rank.\n if ( root1.rank == root2.rank )\n root2.rank++ ;\n \n return root2.data;\n }\n else\n // We use root1 as the new parent if either (a) the trees containing\n // both inputs have same rank and a \"coin toss\" settles on this\n // case, or (b) the tree containing obj2 has lower rank.\n {\n // When we link root1 to root2, size of set under root2 inreases.\n root2.parent = root1;\n root1.size += root2.size;\n \n // When we union two sets of same rank, new root gets higher rank.\n if ( root1.rank == root2.rank )\n root1.rank++ ;\n \n return root1.data;\n }\n }",
"@Override\n\tpublic SetLinkedList<T> union(SetLinkedList<T> otherSet) {\n\t\tthrow new UnsupportedOperationException(\"Not implemented yet!\");\n\t}",
"Boolean subset(MultiSet<X> s);",
"public abstract NestedSet<Artifact> auxiliary();",
"void Union(subset [] subsets, int x , int y ){ \n\t\tint xroot = find(subsets, x); \n\t int yroot = find(subsets, y); \n\t \n\t\tif (subsets[xroot].rank < subsets[yroot].rank) \n\t\t\tsubsets[xroot].parent = yroot; \n\t\telse if (subsets[yroot].rank < subsets[xroot].rank) \n\t\t\tsubsets[yroot].parent = xroot; \n\t\telse{ \n\t\t\tsubsets[xroot].parent = yroot; \n\t\t\tsubsets[yroot].rank++; \n\t\t} \n\t}",
"public void union(Shape s);",
"private String unionTypes(Set<String> types) {\n Set<String> splitTypes = new HashSet<>();\n\n for (String type : types) {\n for (String s : MentionTypeUtils.splitToMultipleTypes(type)) {\n splitTypes.add(MentionTypeUtils.canonicalize(s));\n }\n }\n return MentionTypeUtils.joinMultipleTypes(splitTypes);\n }",
"public static void main(String[] args) {\n Set<Integer> set = new HashSet<>();\n\n\n // elementy w secie nie są poukładane\n set.add(1);\n set.add(2);\n set.add(3);\n set.add(4);\n set.add(5);\n set.add(5);\n set.add(5);\n set.add(null);\n set.add(null);\n System.out.println(set);// elementów: 6\n\n\n\n Set<String> setString = new HashSet<>();\n\n List<Integer> ar = new ArrayList<>();\n }",
"public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}",
"public void removeAllPartOfSet() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PARTOFSET);\r\n\t}",
"public static FlavorSet union(FlavorSet a, FlavorSet b) {\n if (a.isEmpty()) {\n return b;\n } else if (b.isEmpty()) {\n return a;\n } else {\n return new FlavorSet(\n Stream.concat(a.flavors.stream(), b.flavors.stream())\n .collect(ImmutableSortedSet.toImmutableSortedSet(FLAVOR_ORDERING)));\n }\n }",
"private Set<E> toSet(Node<E> n) {\n Set<E> result = new HashSet<>();\n toSet(result, n);\n return result;\n }",
"private static Set<ARGState> removeSet(Set<ARGState> elements) {\n Set<ARGState> toWaitlist = new LinkedHashSet<ARGState>();\n int i=0;\n for (ARGState ae : elements) {\n if(ae.getParents()!=null){\n for (ARGState parent : ae.getParents()) {\n if (!elements.contains(parent)) {\n toWaitlist.add(parent);\n }\n }\n if(ae.getChildren()!=null)\n ae.removeFromARG();\n else\n ae.setDestroyed(true);\n }\n\n // ae.setNull();\n }\n return toWaitlist;\n }",
"private Object[] result(List<Object> set)\n {\n state.put(RESULTS_SET, set);\n\n Expression[] result = compilation.getExprResult();\n\n // Use first element only (if there are any). Should be same in other \"group-by\" components\n Object element = set != null && !set.isEmpty() ? set.get(0) : null;\n state.put(candidateAlias, element);\n\n Object[] r = new Object[result.length];\n for (int j=0; j<result.length; j++)\n {\n r[j] = result[j].evaluate(evaluator);\n }\n\n return r;\n }",
"void Union(int parent[], int x, int y){ \n int xset = find(parent, x); \n int yset = find(parent, y); \n parent[xset] = yset; \n }",
"public static <T> OrdinalSet<T> unify(OrdinalSet<T> A, OrdinalSet<T> B) {\r\n if (A == null) {\r\n throw new IllegalArgumentException(\"A is null\");\r\n }\r\n if (B == null) {\r\n throw new IllegalArgumentException(\"B is null\");\r\n }\r\n if (Assertions.verifyAssertions) {\r\n if (A.size() != 0 && B.size() != 0) {\r\n Assertions._assert(A.mapping.equals(B.mapping));\r\n }\r\n }\r\n \r\n if (A.S != null && B.S == null) {\r\n return new OrdinalSet<T>(A.S, A.mapping);\r\n } else if (A.S == null && B.S != null) {\r\n return new OrdinalSet<T>(B.S, B.mapping);\r\n }\r\n \r\n IntSet union = A.S.union(B.S);\r\n return new OrdinalSet<T>(union, A.mapping);\r\n }",
"public static void parseSetExp() {\n parseSLevel2();\n if (currToken.tokenType == Token.SETDIFFERENCE) {\n //TODO: Consume set difference token and add to output\n sb.append(\".intersect(\");\n getNextToken();\n parseSetExp();\n sb.append(\".complement())\");\n }\n \n }",
"@Test\n\tpublic void testRemoveAll() {\n\t\tSet<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t\tSet<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t\tsetA.removeAll(setB);\n\t\tSet<Integer> union = new HashSet<>(Arrays.asList(1, 2));\n\t\tassertEquals(setA, union);\n\t}",
"public VertexSet intersection(VertexSet ot) {\r\n\t\tVertexSet ans = new VertexSet();\r\n\t\tint i1=0,i2=0;\r\n\t\twhile(i1<this.size() & i2 < ot.size()) {\r\n\t\t\tint a1=this.at(i1), a2 = ot.at(i2);\r\n\t\t\tif(a1==a2) {\r\n\t\t\t\tans.add(a1); i1++; i2++;}\r\n\t\t\telse if(a1<a2) {i1++;}\r\n\t\t\telse i2++;\r\n\t\t}\r\n\t\treturn ans;\r\n\t}",
"@Test\n public void testUnionOnSchemaScopeMulti() throws Exception {\n PigServer pig = new PigServer(Util.getLocalTestMode());\n String query_prefix =\n \" a = load '\" + INP_FILE_2NUMS+ \"' as (i:int, j:int); \"\n + \"b = group a by i; \"\n + \"c = foreach b generate group as gp, flatten(a); \"\n + \"d = group c by $0; \"\n + \"e = foreach d generate group as gp, flatten(c); \"\n + \"f = load '\" + INP_FILE_2NUMS + \"' as (i, j); \"\n ;\n String query = query_prefix + \"u = union onschema e,f;\";\n Util.registerMultiLineQuery(pig, query);\n\n Schema sch = pig.dumpSchema(\"u\");\n Schema expectedSch = \n Utils.getSchemaFromString(\"gp: int,c::gp: int,i: int,j: int\");\n assertEquals(\"Checking expected schema\",sch, expectedSch);\n \n \n query = query_prefix + \"u = union onschema f,e;\";\n Util.registerMultiLineQuery(pig, query);\n\n sch = pig.dumpSchema(\"u\");\n expectedSch = \n Utils.getSchemaFromString(\"i: int,j: int, gp: int,c::gp: int\");\n assertEquals(\"Checking expected schema\",sch, expectedSch);\n \n \n Iterator<Tuple> it = pig.openIterator(\"u\");\n List<Tuple> expectedRes = \n Util.getTuplesFromConstantTupleStrings(\n new String[] {\n \"(1,2,null,null)\",\n \"(5,3,null,null)\",\n \"(1,2,1,1)\",\n \"(5,3,5,5)\",\n });\n Util.checkQueryOutputsAfterSort(it, expectedRes);\n\n }",
"private static <T> Set<T> Create_UnModifiableSet_By_InputElements(@NonNull Set<T> set, @NonNull T... ts) {\n for (T t : ts) {\n set.add(t);\n }\n\n return Collections.unmodifiableSet(set);\n }",
"private Set buildSet(String attrName, Map attributes, Set resultSet) {\n Set vals = (Set) attributes.get(attrName);\n if ((vals != null) && !vals.isEmpty()) {\n resultSet.addAll(vals);\n }\n return (resultSet);\n }",
"public List<List<Integer>> findSubsequences3(int[] nums) {\n //below set is not working\n Set<List<Integer>> ret = new HashSet<>();\n\n ret.add(new ArrayList<>());\n int index = 0;\n while (index < nums.length) {\n //try to add nums[index]\n\n Set<List<Integer>> newly_added_set = new HashSet<>();\n\n for (List<Integer> l : ret) {\n if (l.size() <= 0 || l.get(l.size() - 1) <= nums[index]) {\n List<Integer> newList = new ArrayList<>(l);\n newList.add(nums[index]);\n newly_added_set.add(newList);\n }\n }\n\n ret.addAll(newly_added_set);\n\n ++index;\n }\n\n List<List<Integer>> ret2 = new ArrayList<>();\n for (List<Integer> l : ret) {\n if (l.size() >= 2) {\n ret2.add(l);\n }\n }\n return ret2;\n }",
"private TupleSet aggregate(TupleSet tuples) {\n\t\t\tMap<ScheduleUnit, ScheduleUnit> units = new HashMap<ScheduleUnit, ScheduleUnit>();\n\t\t\tfor (Tuple tuple : tuples) {\n\t\t\t\tScheduleUnit unit = new ScheduleUnit(tuple);\n\t\t\t\tif (!units.containsKey(unit)) {\n\t\t\t\t\tunits.put(unit, unit);\n\t\t\t\t}\n\t\t\t\tunits.get(unit).add(tuple);\n\t\t\t}\n\t\t\tTupleSet aggregate = new BasicTupleSet();\n\t\t\tfor (ScheduleUnit unit : units.keySet()) {\n\t\t\t\tif (unit.insertions.size() > 0 || unit.deletions.size() > 0)\n\t\t\t\t\taggregate.add(unit.tuple());\n\t\t\t}\n\t\t\treturn aggregate;\n\t\t}",
"Map<String, OperationalSets> getSets();",
"Boolean superset(MultiSet<X> s);",
"public void flatten();",
"void union(int a, int b) {\n int aParent = find(a); // find parent of a\n int bParent = find(b); // find parent of b\n\n // here we are everytime setting the parent of a_set as b_set in union\n // set the parent of all a as parent of b\n childToParentMap.put(aParent, bParent);\n }",
"public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }",
"private static HashSet<Annotation> setDifference(HashSet<Annotation> setA,\r\n\t\t\tHashSet<Annotation> setB) {\r\n\r\n\t\tHashSet<Annotation> tmp = new HashSet<Annotation>(setA);\r\n\t\ttmp.removeAll(setB);\r\n\t\treturn tmp;\r\n\t}"
] |
[
"0.6964539",
"0.65230095",
"0.64634013",
"0.64076525",
"0.63998276",
"0.63869214",
"0.6332843",
"0.62917084",
"0.6217623",
"0.62167335",
"0.6191543",
"0.61444634",
"0.6139014",
"0.6112075",
"0.60976493",
"0.60634685",
"0.6018944",
"0.60059625",
"0.5985777",
"0.5927037",
"0.59019893",
"0.5880331",
"0.58775485",
"0.5844994",
"0.5817589",
"0.5799016",
"0.5732845",
"0.5728643",
"0.56771195",
"0.56278074",
"0.56176066",
"0.5609373",
"0.56069815",
"0.5605019",
"0.5582216",
"0.5561426",
"0.5553965",
"0.554197",
"0.5539624",
"0.5538272",
"0.5521217",
"0.55157584",
"0.54995567",
"0.5465917",
"0.5460834",
"0.54547393",
"0.5451161",
"0.54379165",
"0.54304785",
"0.5425735",
"0.54205275",
"0.54202485",
"0.5418688",
"0.54082865",
"0.53955233",
"0.5392733",
"0.5335759",
"0.5333201",
"0.5332485",
"0.5324646",
"0.53197426",
"0.53196275",
"0.5319534",
"0.5317749",
"0.53106093",
"0.53032565",
"0.5296318",
"0.5289431",
"0.5285838",
"0.52801",
"0.5270586",
"0.52640367",
"0.52548933",
"0.52493256",
"0.5247217",
"0.52463984",
"0.5243267",
"0.5238688",
"0.5227633",
"0.52176213",
"0.52146894",
"0.521395",
"0.5194675",
"0.51923496",
"0.5184551",
"0.51821035",
"0.5176193",
"0.517507",
"0.5173358",
"0.51692426",
"0.5158908",
"0.51570606",
"0.51566315",
"0.51477695",
"0.5146346",
"0.51451635",
"0.5133862",
"0.51315737",
"0.5117177",
"0.5110615",
"0.5109626"
] |
0.0
|
-1
|
Finds the set an element belongs to, performing path compression along the way.
|
public T find(T element) {
assert (_parents.containsKey(element));
T parent = _parents.get(element);
if (parent != element) {
parent = find(parent);
_parents.put(element, parent);
}
return parent;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Node findSet(Node node ){\n Node parent = node.parent;\n //it means no one is parent\n if( parent == node ){\n return parent;\n }\n //do compression\n node.parent = findSet( parent );\n return node.parent;\n }",
"private Node<E> findSet(Node<E> x) {\n if (x != x.parent) {\n Node<E> p = findSet(x.parent);\n x.parent.children.remove(x);\n p.children.add(x);\n x.parent = p;\n }\n return x.parent;\n }",
"private ISet<S> expand(ISet<S> set) {\n\t\t\tISet<S> expanded = ISets.empty();\n\t\t\tfor (S b : set) {\n\t\t\t\texpanded = expanded.union(b);\n\t\t\t\tif (!reasoner.entails(base.minus(expanded), sentence)) {\n\t\t\t\t\treturn expanded;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"@Override\n\tpublic Set<String> getPathSet(String word) {\n\t\tlock.lockReadOnly();\n\t\ttry {\n\t\t\treturn super.getPathSet(word);\n\t\t} finally {\n\t\t\tlock.unlockReadOnly();\n\t\t}\n\t}",
"public MuSet pathFor(CanopyCrum canopyCrum) {\n\tif ( ! ((myCachedCrum) == canopyCrum)) {\n\t\tCanopyCrum cur;\n\t\tcur = canopyCrum;\n\t\tmyCachedCrum = canopyCrum;\n\t\tmyCachedRoot = canopyCrum;\n\t\tmyCachedPath = MuSet.make();\n\t\twhile (cur != null) {\n\t\t\tmyCachedRoot = cur;\n\t\t\tmyCachedPath.store(cur);\n\t\t\tcur = cur.fetchParent();\n\t\t}\n\t}\n\treturn myCachedPath;\n/*\nudanax-top.st:13125:CanopyCache methodsFor: 'operations'!\n{MuSet of: CanopyCrum} pathFor: canopyCrum {CanopyCrum} \n\t\"Return the set of all crums from canopyCrum \n\t(inclusive) to the top of canopyCrum's canopy.\"\n\t(myCachedCrum basicCast: Heaper star) == canopyCrum\n\t\tifFalse: \n\t\t\t[| cur {CanopyCrum} |\n\t\t\tcur _ canopyCrum.\n\t\t\tmyCachedCrum _ canopyCrum.\n\t\t\tmyCachedRoot _ canopyCrum.\n\t\t\tmyCachedPath _ MuSet make.\n\t\t\t[cur ~~ NULL]\n\t\t\t\twhileTrue: \n\t\t\t\t\t[myCachedRoot _ cur.\n\t\t\t\t\tmyCachedPath store: cur.\n\t\t\t\t\tcur _ cur fetchParent]].\n\t^myCachedPath!\n*/\n}",
"public Map<K, Set<V>> coreGetAllSupersetsOf(Collection<?> set, int mode) {\n // Skip elements in the collection having an incorrect type, as we are looking for subsets which simply\n // cannot contain the conflicting items\n Set<V> navSet = createNavigableSet(set, true);\n Iterator<V> it = navSet.iterator();\n\n List<SetTrieNode> frontier = new ArrayList<>();\n frontier.add(superRootNode);\n\n // For every value, extend the frontier with the successor nodes for that value.\n V from = null;\n V upto = null;\n\n // Use a flag for null safety so we do not rely on the comparator to treat null as the least element\n boolean isLeastFrom = true;\n while(it.hasNext()) {\n from = upto;\n upto = it.next();\n\n List<SetTrieNode> nextNodes = new ArrayList<>();\n\n // Based on the frontier, we need to keep scanning nodes whose values is in the range [from, upto]\n // until we find the nodes whose values equals upto\n // Only these nodes then constitute the next frontier\n Collection<SetTrieNode> currentScanNodes = frontier;\n do {\n Collection<SetTrieNode> nextScanNodes = new ArrayList<>();\n for(SetTrieNode currentNode : currentScanNodes) {\n if(currentNode.nextValueToChild != null) {\n NavigableMap<V, SetTrieNode> candidateNodes = isLeastFrom\n ? currentNode.nextValueToChild.headMap(upto, true)\n : currentNode.nextValueToChild.subMap(from, true, upto, true);\n\n for(SetTrieNode candidateNode : candidateNodes.values()) {\n if(Objects.equals(candidateNode.value, upto)) {\n nextNodes.add(candidateNode);\n } else {\n nextScanNodes.add(candidateNode);\n }\n }\n }\n }\n currentScanNodes = nextScanNodes;\n } while(!currentScanNodes.isEmpty());\n\n frontier = nextNodes;\n\n isLeastFrom = false;\n }\n\n Map<K, Set<V>> result = new HashMap<>();\n\n // Copy all data entries associated with the frontier to the result\n Stream<SetTrie<K, V>.SetTrieNode> stream = frontier.stream();\n\n if(mode != 0) {\n stream = stream.flatMap(node -> reachableNodesAcyclic(\n node,\n x -> (x.nextValueToChild != null ? x.nextValueToChild.values() : Collections.<SetTrieNode>emptySet()).stream()));\n }\n\n stream.forEach(currentNode -> {\n if(currentNode.keyToSet != null) {\n for(Entry<K, NavigableSet<V>> e : currentNode.keyToSet.entrySet()) {\n result.put(e.getKey(), e.getValue());\n }\n }\n });\n\n return result;\n }",
"public static boolean checkPath(int[][] bs, int i) {\n ArrayList<Integer> temp_cP = new ArrayList<Integer>();\r\n Set<Integer> temp_setcP = new HashSet<Integer>();\r\n boolean denoter = true;\r\n while (i == 3) {\r\n for (int k = 0; k < i; k++) {\r\n for (int e = 0; e < 3; e++) {\r\n temp_cP.add(e, bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n temp_cP.clear();\r\n temp_setcP.clear();\r\n\r\n for (int k = 0; k < i; k++) {\r\n for (int e = 3; e < 6; e++) {\r\n temp_cP.add(bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n break;\r\n }\r\n }\r\n }\r\n while (i == 6) {\r\n\r\n for (int k = 3; k < i; k++) {\r\n for (int e = 0; e < 3; e++) {\r\n temp_cP.add(e, bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n temp_cP.clear();\r\n temp_setcP.clear();\r\n\r\n for (int k = 3; k < i; k++) {\r\n for (int e = 3; e < 6; e++) {\r\n temp_cP.add(bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n }\r\n return denoter;\r\n }",
"public abstract NestedSet<Artifact> auxiliary();",
"private SearchNode findNodeWithCoords(HashSet<SearchNode> set, int x, int y){\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (cur.posX == x && cur.posY == y)\n\t\t\t\t\treturn cur;\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"void Union(int parent[], int x, int y){ \n int xset = find(parent, x); \n int yset = find(parent, y); \n parent[xset] = yset; \n }",
"@Override\r\n public Set<List<String>> findAllPaths(int sourceId, int targetId, int reachability) {\r\n //all paths found\r\n Set<List<String>> allPaths = new HashSet<List<String>>();\r\n //collects path in one iteration\r\n Set<List<String>> newPathsCollector = new HashSet<List<String>>();\r\n //same as the solution but with inverted edges\r\n Set<List<String>> tmpPathsToTarget = new HashSet<List<String>>();\r\n //final solution\r\n Set<List<String>> pathsToTarget = new HashSet<List<String>>();\r\n \r\n String[] statementTokens = null; \r\n Set<Integer> allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n List<String> statementsFound = new ArrayList<String>();\r\n \r\n for (int i = 0; i < reachability; i++) {\r\n if (i == 0) { \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(sourceId);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n //allProcessedNodes.add(inNodeId); \r\n //Incoming nodes are reversed\r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n allPaths.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(sourceId);\r\n \r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n statementsFound.add(outEdge);\r\n allPaths.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n } else {\r\n newPathsCollector = new HashSet<List<String>>();\r\n\r\n for (List<String> statements: allPaths) {\r\n allProcessedNodes = new HashSet<Integer>(); //to avoid duplicates\r\n int lastNodeInPath = 0;\r\n \r\n for (String predicate: statements) {\r\n if (predicate.contains(\">-\")) {\r\n statementTokens = predicate.split(\">-\");\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[0]).reverse().toString()));\r\n allProcessedNodes.add(Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString()));\r\n lastNodeInPath = Integer.parseInt(\r\n new StringBuilder(statementTokens[2]).reverse().toString());\r\n } else {\r\n statementTokens = predicate.split(\"->\"); \r\n allProcessedNodes.add(Integer.parseInt(statementTokens[0]));\r\n allProcessedNodes.add(Integer.parseInt(statementTokens[2]));\r\n lastNodeInPath = Integer.parseInt(statementTokens[2]);\r\n }\r\n }\r\n \r\n Collection<String> inEdges = jungCompleteGraph.getInEdges(lastNodeInPath);\r\n for (String inEdge: inEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = inEdge.split(\"->\");\r\n int inNodeId = Integer.parseInt(statementTokens[0]);\r\n if (allProcessedNodes.contains(inNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(new StringBuilder(inEdge).reverse().toString());\r\n newPathsCollector.add(statementsFound);\r\n if (inNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n \r\n }\r\n \r\n Collection<String> outEdges = jungCompleteGraph.getOutEdges(lastNodeInPath);\r\n for (String outEdge: outEdges) {\r\n \r\n statementsFound = new ArrayList<String>();\r\n statementsFound.addAll(statements);\r\n statementTokens = outEdge.split(\"->\");\r\n int outNodeId = Integer.parseInt(statementTokens[2]);\r\n if (allProcessedNodes.contains(outNodeId)) continue;\r\n \r\n //Incoming nodes are reversed \r\n statementsFound.add(outEdge);\r\n newPathsCollector.add(statementsFound);\r\n if (outNodeId == targetId) tmpPathsToTarget.add(statementsFound);\r\n }\r\n }\r\n allPaths.addAll(newPathsCollector);\r\n }\r\n \r\n //System.out.println(\"*****End of iteration \" + i);\r\n //System.out.println(\"#SIZE OF allPaths: \" + allPaths.size());\r\n int numItems = 0;\r\n for (List<String> currList: allPaths) {\r\n numItems = numItems + currList.size();\r\n }\r\n //System.out.println(\"#NUMBER OF ELEMS OF ALL LISTS: \" + numItems);\r\n //System.out.println(\"#SIZE OF tmpPathsToTarget : \" + tmpPathsToTarget.size());\r\n }\r\n \r\n //We need to reverse back all the predicates\r\n for (List<String> statements: tmpPathsToTarget) { \r\n List<String> fixedStatements = new ArrayList<String>(); \r\n for (int i = 0; i < statements.size(); i++) { \r\n String statement = statements.get(i); \r\n if (statement.contains(\">-\")) {\r\n fixedStatements.add(new StringBuilder(statement).reverse().toString());\r\n } else {\r\n fixedStatements.add(statement);\r\n } \r\n }\r\n pathsToTarget.add(fixedStatements);\r\n }\r\n return pathsToTarget;\r\n }",
"private TreeSet<Integer> getNeightborSets(DisjointSets<Pixel> ds, int root)\n {\n return null; //TODO: remove and replace this line\n }",
"public String find(String element) {\n\t\t\n\t\tfor(int i = 0; i < disjointSet.size(); i++) {\t\t\t\n\t\t\tfor(String key : disjointSet.get(i).keySet()) {\t\t\t\t\n\t\t\t\tSet<String> set = disjointSet.get(i).get(key);\t\t\t\t\n\t\t\t\tif(set.contains(element))\n\t\t\t\t\treturn key;\n\t\t\t}\t\t\n\t\t}\n\t\t\n\t\treturn null;\n\t\t\n\t}",
"private AccessPath findNode(Node n, HashSet s) {\n for (Iterator i = this.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper ap = (IdentityHashCodeWrapper)i.next();\n if (!s.contains(ap)) {\n AccessPath p = (AccessPath)ap.getObject();\n if (n == p._n) return p;\n s.add(ap);\n AccessPath q = p.findNode(n, s);\n if (q != null) return q;\n }\n }\n return null;\n }",
"void mo30185a(HashSet<zzawj> hashSet);",
"protected /*@ non_null @*/ JMLObjectSet<E> fast_insert(E elem) {\n return new JMLObjectSet<E>( // cons() clones if necessary\n JMLListObjectNode.cons(elem, the_list),\n size+1);\n }",
"void mo15917a(ZipFile zipFile, Set<C6556k> set) throws IOException;",
"public abstract java.util.Set getLocations();",
"public void subsetOneBundlePerEdge() {\n Set<Bundle> set = new HashSet<Bundle>();\n for (int ent_i=0;ent_i<digraph.getNumberOfEntities();ent_i++) {\n for (int i=0;i<digraph.getNumberOfNeighbors(ent_i);i++) {\n int nbor_i = digraph.getNeighbor(ent_i,i);\n\tIterator<Bundle> it = digraph.linkRefIterator(digraph.linkRef(ent_i,nbor_i));\n\tset.add(it.next());\n }\n }\n getRTParent().push(getRTParent().getRootBundles().subset(set));\n }",
"public long findSet_representative( long data ){\n return findSet( map.get(data) ).data;\n }",
"@Override\r\n public ElementSet nextBestSet() {\r\n \r\n ElementSet bestSet = null; //initialze variables\r\n int countBest = 0;\r\n double bestScore = Double.MAX_VALUE; //arbitrarly large number CHECK ME\r\n int count = 0;\r\n double score = 0;\r\n \r\n for (ElementSet s : _copyModel.getElements()) { //go through all sets in the model\r\n count = 0; //reset count and score for each set\r\n score = 0;\r\n for (Integer i : s.getSet()) {\r\n if(_uncoveredElements.contains(i)) { //get number of covered elements\r\n count++;\r\n } \r\n }\r\n if (count != 0) { //if it contains an element\r\n score = s.getCost() / (double)count; //compute the ratio of cost per element covered\r\n if (score < bestScore) { //if score is better than best score \r\n countBest = count;\r\n bestScore = score;\r\n bestSet = s;\r\n }\r\n }\r\n }\r\n \r\n if (bestSet == null) //if no set was chosen return null\r\n return null;\r\n \r\n _copyModel.getElements().remove(bestSet); //remcoe the chosen set from the model\r\n GreedySolver.printChosenSet(bestSet); //print the chosen set\r\n \r\n return bestSet;\r\n }",
"static int findUnion(int i) {\n int result = i;\n while(parent[result] != result)\n result = parent[result];\n\n // update all parents of i to result\n while(parent[i] != i) {\n int temp = parent[i];\n parent[i] = result;\n i = temp;\n }\n return result;\n }",
"Set<Node<K, V>> entrySet();",
"public void createSet(String element) {\n\t\t\n\t\tSet<String> set = new HashSet<String>();\n\t\tset.add(element);\n\t\t\n\t\tMap<String, Set<String>> map = new HashMap<String, Set<String>>();\t\t\n\t\tmap.put(element, set);\n\t\t\n\t\tdisjointSet.add(map);\n\t\n\t}",
"int find(int element){\n if(parent[element]!=element)\n parent[element]=find(parent[element]);\n return parent[element];\n }",
"public static boolean checkPath(int[][] bs, int i) {\n\t\tArrayList<Integer> temp_cP = new ArrayList<Integer>();\n\t\tSet<Integer> temp_setcP = new HashSet<Integer>();\n\t\tboolean denoter = true;\n\t\twhile (i == 3) {\n\t\t\tfor (int k = 0; k < i; k++) {\n\t\t\t\tfor (int e = 0; e < 3; e++) {\n\t\t\t\t\ttemp_cP.add(e, bs[k][e]);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemp_setcP = new HashSet<Integer>(temp_cP);\n\t\t\tif (temp_cP.size() > temp_setcP.size()) {\n\t\t\t\tdenoter = false;\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\t\t\t\ttemp_cP.clear();\n\t\t\t\ttemp_setcP.clear();\n\n\t\t\t\tfor (int k = 0; k < i; k++) {\n\t\t\t\t\tfor (int e = 3; e < 6; e++) {\n\t\t\t\t\t\ttemp_cP.add(bs[k][e]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp_setcP = new HashSet<Integer>(temp_cP);\n\t\t\t\tif (temp_cP.size() > temp_setcP.size()) {\n\t\t\t\t\tdenoter = false;\n\t\t\t\t\tbreak;\n\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\twhile (i == 6) {\n\n\t\t\tfor (int k = 3; k < i; k++) {\n\t\t\t\tfor (int e = 0; e < 3; e++) {\n\t\t\t\t\ttemp_cP.add(e, bs[k][e]);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemp_setcP = new HashSet<Integer>(temp_cP);\n\t\t\tif (temp_cP.size() > temp_setcP.size()) {\n\t\t\t\tdenoter = false;\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\t\t\t\ttemp_cP.clear();\n\t\t\t\ttemp_setcP.clear();\n\n\t\t\t\tfor (int k = 3; k < i; k++) {\n\t\t\t\t\tfor (int e = 3; e < 6; e++) {\n\t\t\t\t\t\ttemp_cP.add(bs[k][e]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp_setcP = new HashSet<Integer>(temp_cP);\n\t\t\t\tif (temp_cP.size() > temp_setcP.size()) {\n\t\t\t\t\tdenoter = false;\n\t\t\t\t\tbreak;\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn denoter;\n\t}",
"private void findLast(HashSet s, Set last) {\n for (Iterator i = this.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper ap = (IdentityHashCodeWrapper)i.next();\n if (!s.contains(ap)) {\n s.add(ap);\n AccessPath that = (AccessPath)ap.getObject();\n if (that._last) last.add(ap);\n that.findLast(s, last);\n }\n }\n }",
"int find(subset [] subsets , int i){ \n\t\n\t\tif (subsets[i].parent != i) \n\t\t\tsubsets[i].parent = find(subsets, subsets[i].parent); \n\t\t\treturn subsets[i].parent; \n\t}",
"public Set<V> put(K key, Collection<V> set) {\n // Remove any possibly existing prior association with the key\n Set<V> result = remove(key);\n\n // Note: The second argument is effectless, as we cannot encounter item type errors here\n NavigableSet<V> navSet = createNavigableSet(set, true);\n Iterator<V> it = navSet.iterator();\n\n SetTrieNode currentNode = superRootNode;\n while(it.hasNext()) {\n V v = it.next();\n\n SetTrieNode nextNode = currentNode.nextValueToChild == null ? null : currentNode.nextValueToChild.get(v);\n if(nextNode == null) {\n nextNode = new SetTrieNode(nextId++, currentNode, v);\n if(currentNode.nextValueToChild == null) {\n currentNode.nextValueToChild = new TreeMap<>(comparator);\n }\n currentNode.nextValueToChild.put(v, nextNode);\n }\n currentNode = nextNode;\n }\n\n if(currentNode.keyToSet == null) {\n currentNode.keyToSet = new HashMap<>();\n }\n\n currentNode.keyToSet.put(key, navSet);\n\n keyToNode.put(key, currentNode);\n\n return result;\n }",
"private void reachable(Set s) {\n for (Iterator i = this.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper ap = (IdentityHashCodeWrapper)i.next();\n if (!s.contains(ap)) {\n s.add(ap);\n ((AccessPath)ap.getObject()).reachable(s);\n }\n }\n }",
"@Override\n\tpublic SortedSet<Integer> getPositionSet(String word, String path) {\n\t\tlock.lockReadOnly();\n\t\ttry {\n\t\t\treturn super.getPositionSet(word, path);\n\t\t} finally {\n\t\t\tlock.unlockReadOnly();\n\t\t}\n\t}",
"public ArrayList<Integer> path2Dest(int s, int t, int k, int method){\n double INFINITY = Double.MAX_VALUE;\n boolean[] SPT = new boolean[intersection];\n double[] d = new double[intersection];\n int[] parent = new int[intersection];\n\n for (int i = 0; i <intersection ; i++) {\n d[i] = INFINITY;\n parent[i] = -1;\n }\n d[s] = 0;\n\n MinHeap minHeap = new MinHeap(k);\n for (int i = 0; i <intersection ; i++) {\n minHeap.add(i,d[i]);\n }\n while(!minHeap.isEmpty()){\n int extractedVertex = minHeap.extractMin();\n\n if(extractedVertex==t) {\n break;\n }\n SPT[extractedVertex] = true;\n\n LinkedList<Edge> list = g.adjacencylist[extractedVertex];\n for (int i = 0; i <list.size() ; i++) {\n Edge edge = list.get(i);\n int destination = edge.destination;\n if(SPT[destination]==false ) {\n double newKey =0;\n double currentKey=0;\n if(method==1) { //method 1\n newKey = d[extractedVertex] + edge.weight;\n currentKey = d[destination];\n }\n else{ //method 2\n newKey = d[extractedVertex] + edge.weight + coor[destination].distTo(coor[t])-coor[extractedVertex].distTo(coor[t]);\n currentKey = d[destination];\n }\n if(currentKey>=newKey){\n if(currentKey==newKey){ //if equal need to compare the value of key\n if(extractedVertex<parent[destination]){\n minHeap.updateKey(newKey, destination, d[destination]);\n parent[destination] = extractedVertex;\n d[destination] = newKey;\n }\n }\n else {\n minHeap.updateKey(newKey, destination, d[destination]);\n parent[destination] = extractedVertex;\n d[destination] = newKey;\n }\n }\n }\n }\n }\n //trace back the path using parent properties\n ArrayList<Integer> path = new ArrayList<>();\n if(parent[t]!=-1){\n path.add(t);\n while(parent[t]!= s) {\n path.add(0,parent[t]);\n t = parent[t];\n }\n path.add(0,s);\n }\n else\n path = null;\n return path;\n }",
"public T getSet( T obj )\n {\n \tNode temp = nodes.get(obj);\n \tif(temp!=null){\n \t\treturn getRoot(temp).data;\n \t}\n // If here, no such data object; throw exception.\n throw new NoSuchElementException( \"Sets do not contain object: \" + obj );\n }",
"private boolean equals(AccessPath that, HashSet s) {\n // Relies on the fact that the iterators are stable for equivalent sets.\n // Otherwise, it is an n^2 algorithm.\n for (Iterator i = this.succ.iterator(), j = that.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper a = (IdentityHashCodeWrapper)i.next();\n IdentityHashCodeWrapper b = (IdentityHashCodeWrapper)j.next();\n AccessPath p = (AccessPath)a.getObject();\n AccessPath q = (AccessPath)b.getObject();\n if (!p.oneEquals(q)) return false;\n if (s.contains(a)) continue;\n s.add(a);\n if (!p.equals(q, s)) return false;\n }\n return true;\n }",
"HSet entrySet();",
"public HashSet<T> removeDups(Node root, HashSet set) {\n if(root == null) {\n return set;\n }\n if(root.getLeftChildNode() != null) {\n removeDups(root.getLeftChildNode(), set);\n }\n if(set.contains(root.getData())){\n set.add(root.getData());\n }\n if(root.getRightChildNode() != null) {\n removeDups(root.getRightChildNode(), set);\n }\n return set;\n }",
"private Set func_177575_g() {\n/* 450 */ HashSet var1 = Sets.newHashSet();\n/* 451 */ ArrayList<?> var2 = Lists.newArrayList(this.variants.keySet());\n/* 452 */ Collections.sort(var2, new Comparator()\n/* */ {\n/* */ private static final String __OBFID = \"CL_00002390\";\n/* */ \n/* */ public int func_177505_a(ModelResourceLocation p_177505_1_, ModelResourceLocation p_177505_2_) {\n/* 457 */ return p_177505_1_.toString().compareTo(p_177505_2_.toString());\n/* */ }\n/* */ \n/* */ public int compare(Object p_compare_1_, Object p_compare_2_) {\n/* 461 */ return func_177505_a((ModelResourceLocation)p_compare_1_, (ModelResourceLocation)p_compare_2_);\n/* */ }\n/* */ });\n/* 464 */ Iterator<?> var3 = var2.iterator();\n/* */ \n/* 466 */ while (var3.hasNext()) {\n/* */ \n/* 468 */ ModelResourceLocation var4 = (ModelResourceLocation)var3.next();\n/* 469 */ ModelBlockDefinition.Variants var5 = (ModelBlockDefinition.Variants)this.variants.get(var4);\n/* 470 */ Iterator<ModelBlockDefinition.Variant> var6 = var5.getVariants().iterator();\n/* */ \n/* 472 */ while (var6.hasNext()) {\n/* */ \n/* 474 */ ModelBlockDefinition.Variant var7 = var6.next();\n/* 475 */ ModelBlock var8 = (ModelBlock)this.models.get(var7.getModelLocation());\n/* */ \n/* 477 */ if (var8 == null) {\n/* */ \n/* 479 */ LOGGER.warn(\"Missing model for: \" + var4);\n/* */ \n/* */ continue;\n/* */ } \n/* 483 */ var1.addAll(func_177585_a(var8));\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 488 */ var1.addAll(field_177602_b);\n/* 489 */ return var1;\n/* */ }",
"protected abstract int[] getPathElements();",
"private void traverseSets() {\n\t\tArrayList<PayloadBuilderSet> sets = new ArrayList<PayloadBuilderSet>();\n\t\tArrayList<PayloadBuilder> builders = new ArrayList<PayloadBuilder>();\n\n\t\tfor (PayloadSetConfiguration payloadSetConfiguration : workloadConfiguration.getPayloadSetConfigurations()) {\n\t\t\tConcurrentLinkedQueue<PayloadSetConfiguration> queue = new ConcurrentLinkedQueue<PayloadSetConfiguration>();\n\t\t\tqueue.offer(payloadSetConfiguration);\n\n\t\t\twhile (!queue.isEmpty()) {\n\t\t\t\tPayloadSetConfiguration setConfiguration = queue.poll();\n\n\t\t\t\t// If the configuration has payloads, create a new set and add it.\n\t\t\t\tif (setConfiguration.getNumPayloads() > 0) {\n\t\t\t\t\tPayloadBuilderSet set = new PayloadBuilderSet(setConfiguration, this);\n\n\t\t\t\t\tsets.add(set);\n\n\t\t\t\t\tfor (PayloadBuilder builder : set.getBuilders())\n\t\t\t\t\t\tbuilders.add(builder);\n\t\t\t\t}\n\n\t\t\t\t// Enqueue child sets for traversal\n\t\t\t\tfor (PayloadSetConfiguration childSetConfiguration : setConfiguration\n\t\t\t\t\t\t.getChildPayloadSetConfigurations()) {\n\t\t\t\t\tqueue.offer(childSetConfiguration);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.sets = sets.toArray(new PayloadBuilderSet[0]);\n\t\tthis.builders = builders.toArray(new PayloadBuilder[0]);\n\n\t}",
"@Override\r\n\tpublic MySet intersectSets(MySet[] t) {\r\n\t\tallElements = new ArrayList<Integer>();\r\n\r\n\t\t\r\n\t\tfor(Object element: t[0]) {\r\n\t\t\tallElements.add(element);\r\n\t\t}\r\n\t\r\n\t\tfor(Object e: allElements) {\r\n\t\t\tInteger c = map.getOrDefault(e, 0);\r\n\t\t\tmap.put((E)e, c + 1);\r\n\t\t}\r\n\t\t\r\n\t\tMySet<E> returnSet = (MySet<E>) new Set2<Integer>();\r\n\t\tfor(Map.Entry<E, Integer> entry :map.entrySet())\r\n\t\t\tif(entry.getValue() >= dataSet[0].length) // check\r\n\t\t\t\treturnSet.add(entry.getKey());\r\n\t\t\r\n\t\t\r\n\t\treturn returnSet;\r\n\t}",
"public static List<String> search(char[][] board, Set<String> set) {\n List<String> ret = new LinkedList<String>();\n if (set == null || set.size() == 0) return ret;\n boolean[][] visited = new boolean[board.length][board[0].length];\n for (int i = 0; i < board.length; i++) {\n for (int j = 0; j < board[0].length; j++) {\n search(board, i, j, \"\", set, visited, ret);\n }\n }\n return ret;\n }",
"public abstract Set<Tile> getNeighbors(Tile tile);",
"void GetAllSuccLeafProduct(HashSet plstSuccPro);",
"HSet keySet();",
"private void helper(int[] S, int k, int p, ArrayList<ArrayList<Integer>> result, ArrayList<Integer> set) {\n if(k==0) {\n result.add(set);\n return;\n }\n if(S.length-p>=k) {\n ArrayList<Integer> newSet = new ArrayList<Integer>(set);\n newSet.add(S[p]);\n helper(S, k-1, p+1, result, newSet); //if S[p] be choosen\n helper(S, k, p+1, result, set); // if S[p] not be choosen\n }\n\n }",
"void mo33697a(ZipFile zipFile, Set<C2090j> set) throws IOException;",
"public Set<Edge<V>> edgeSet();",
"public ShortestPathMatrix<V,E> allPairsShortestPaths();",
"@Override\n\tpublic List<Document> getCollectionFind(Set<Entry<String, Object>> set) {\n\t\treturn null;\n\t}",
"public boolean contains(SeqItemset set)\n\t{\n\t\tif (m_size<set.m_size) return false;\n\t\tint ind = 0;\n\t\tint i = 0;\n\t\twhile ((i<set.m_size) && (-1!=ind))\n\t\t{\n\t\t\tind = indexOf(set.elementIdAt(i));\n\t\t\ti++;\n\t\t}\n\t\tif (-1==ind) return false;\n\t\telse return true;\n\t}",
"private Set<E> toSet(Node<E> n) {\n Set<E> result = new HashSet<>();\n toSet(result, n);\n return result;\n }",
"void Union(subset [] subsets, int x , int y ){ \n\t\tint xroot = find(subsets, x); \n\t int yroot = find(subsets, y); \n\t \n\t\tif (subsets[xroot].rank < subsets[yroot].rank) \n\t\t\tsubsets[xroot].parent = yroot; \n\t\telse if (subsets[yroot].rank < subsets[xroot].rank) \n\t\t\tsubsets[yroot].parent = xroot; \n\t\telse{ \n\t\t\tsubsets[xroot].parent = yroot; \n\t\t\tsubsets[yroot].rank++; \n\t\t} \n\t}",
"public LinkedHashSet<Stack<Paper>> getAllReferenceChains(String title) {\n\t\tif (!isExistingPaper(title)) {\n\t\t\tSystem.out.println(\"Paper \" + title + \" not found.\");\n\t\t\treturn null;\n\t\t} else if (getPaper(title).getReferences().isEmpty()) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn this.getPaths(getPaper(title).getTitle(),\n\t\t\t\t\tDepthFirstSearch.SEARCH_OUT_EDGES,\n\t\t\t\t\tDepthFirstSearch.NO_SEARCH_LIMIT);\n\t\t}\n\t}",
"public interface ISet<T> {\n\n // Maximum possible size of data structures\n int MAX_SIZE = 100;\n\n /**\n * @pre 0 <= sizeOfSet < max_size\n * @post [this will contain one of each int from both unionWith and this]\n * @param unionWith ISet to find the union from\n */\n default void union(ISet<T> unionWith) {\n T temp;\n int tsize = unionWith.getSize();\n//For every element in unionWith...\n for (int i = 0; i < tsize; i++) {\n //Store value at first position\n //Remove value from unionWith\n temp = unionWith.removePos(0);\n //If this set does not contain value from unionWith...\n if (!this.contains(temp)) {\n //Add value to this set\n this.add(temp);\n }\n }\n }\n\n /**\n * @pre 0 <= sizeOfSet < max_size\n * @post [this will contain ints from this that are not in diffWith]\n * @param diffWith ISet to find the difference from\n */\n default void difference(ISet<T> diffWith){\n T temp;\n int i = 0;\n //For every element in this set...\n while (i < this.getSize()){\n //Store value at first position\n //Remove value from this set\n temp = this.removePos(0);\n //If diffWith does not contain value from this set...\n if(!diffWith.contains(temp)){\n //Add value to this set\n this.add(temp);\n //Increment position\n i++;\n }\n }\n }\n\n /**\n * @pre 0 <= sizeOfSet < max_size\n * @post [this will contain ints from this that are also found in intWith]\n * @param intWith ISet to find the intersection from\n */\n default void intersect(ISet<T> intWith){\n T temp;\n int i = 0;\n //For every element in this set...\n while (i < this.getSize()){\n //Store value at first position\n //Remove value from this set\n temp = this.removePos(0);\n //If intWith does not contain value from this set...\n if(intWith.contains(temp)){\n //Add value to this set\n this.add(temp);\n //Increment position\n i++;\n }\n }\n\n }\n\n\n /**\n * @pre [ISet initialized]\n * @post [ISet contains same elements with a\n * new element - add - placed at the end]\n * @param add T value to be added to ISet\n */\n void add(T add);\n\n /**\n * @pre [ISet contains elements (non-NULL)] and pos >= 0\n * @post [ISet contains same elements as\n * when it was passed, without element at pos] and [T returned]\n * @param pos position in ISet to be removed\n * @return T of position where the element was removed\n */\n T removePos(int pos);\n\n /**\n * @pre [ISet contains elements (non-NULL)] and val != NULL\n * @post [ISet unmodified] and [boolean returned]\n * @param val value to be searched in ISet\n * @return true if ISet contains val, otherwise false\n */\n boolean contains(T val);\n\n /**\n * @pre [ISet initialized with constructor]\n * @post [ISet, size of ISet unmodified] and [int returned]\n * @return int value of the size of the ISet\n */\n int getSize();\n\n}",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"public mxUnionFind(Object[] elements) {\n for (int i = 0; i < elements.length; i++) {\n nodes.put(elements[i], new Node());\n }\n }",
"public Set pack(Set addfirstfrom) throws PackingException, ParallelException {\r\n Set res = new HashSet(); // Set<Node>\r\n\t\tRandom rand = RndUtil.getInstance().getRandom();\r\n if (addfirstfrom!=null) {\r\n Iterator it = addfirstfrom.iterator();\r\n while (it.hasNext()) {\r\n Node n = (Node) it.next();\r\n if (isFree2Cover(n, res)) {\r\n res.add(n);\r\n updateQueue(n);\r\n }\r\n }\r\n }\r\n boolean cont = true;\r\n while (cont) {\r\n cont = false;\r\n // 1. get the first valid element(s) from the queue\r\n Set candidates = new TreeSet(); // Set<Node>\r\n Iterator it = _nodesq.iterator();\r\n if (it.hasNext() == false) break;\r\n Node first = (Node) it.next();\r\n candidates.add(first);\r\n //System.err.println(\"1. Adding first=\" + first.getId() +\r\n // \" to candidates set w/ card=\" + first.getNNbors().size());\r\n Node n = null;\r\n if (it.hasNext()) {\r\n while (it.hasNext()) {\r\n n = (Node) it.next();\r\n if ((_k==2 && n.getNNbors().size() == first.getNNbors().size()) ||\r\n\t\t\t\t\t\t\t(_k==1 && isApproximatelyEqual(n,first))) {\r\n\t\t\t\t\t\t// 2nd condition used to be:\r\n\t\t\t\t\t\t// (_k==1 && n.getNbors().size() == first.getNbors().size())\r\n candidates.add(n);\r\n continue; // keep adding\r\n }\r\n else if (_k==2 || !isApproximatelyEqualWeight(n,first)) break;\r\n } // while it.hasNext()\r\n System.err.println(\"candidates.size()=\" + candidates.size());\r\n // pick a candidate node at random\r\n int pos = rand.nextInt(candidates.size());\r\n Iterator it2 = candidates.iterator();\r\n for (int i = 0; i < pos; i++) it2.next();\r\n n = (Node) it2.next();\r\n // 2. update the queue\r\n updateQueue(n);\r\n // 3. add the element to the result set\r\n res.add(n);\r\n System.err.println(\"added n=\" + n.getId() + \" res.size()=\" +\r\n res.size() + \" _nodesq.size()=\" + _nodesq.size());\r\n cont = true;\r\n }\r\n else {\r\n if (isFree2Cover(first, res))\r\n res.add(first);\r\n }\r\n }\r\n reset(); // return _nodesq to original situation\r\n return res;\r\n }",
"private void toString(StringBuffer sb, HashSet set) {\n if (this._field == null) sb.append(\"[]\");\n else sb.append(this._field.getName());\n if (this._last) sb.append(\"<e>\");\n sb.append(\"->(\");\n for (Iterator i = this.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper ap = (IdentityHashCodeWrapper)i.next();\n if (set.contains(ap)) {\n sb.append(\"<backedge>\");\n } else {\n set.add(ap);\n ((AccessPath)ap.getObject()).toString(sb, set);\n }\n }\n sb.append(')');\n }",
"private int m15678a(JSONArray jSONArray, Set<String> set, BitSet bitSet, int i) {\n if (jSONArray != null) {\n for (int length = jSONArray.length() - 1; length >= 0; length--) {\n try {\n Object obj = jSONArray.get(length);\n String obj2 = obj != null ? obj.toString() : null;\n if (bitSet != null) {\n if (obj2 != null) {\n if (!set.contains(obj2)) {\n set.add(obj2);\n if (set.size() == 100) {\n return length;\n }\n }\n }\n bitSet.set(length + i, true);\n } else if (obj2 != null) {\n set.add(obj2);\n }\n } catch (Throwable unused) {\n }\n }\n }\n return 0;\n }",
"protected Set<Integer> getToReplace() {\r\n \r\n Set<Integer> toReplace = new HashSet<>();\r\n double distance;\r\n Individual a, b;\r\n \r\n for(int i = 0; i < this.P.size()-1; i++) {\r\n \r\n a = this.P.get(i);\r\n \r\n for(int j = i+1; j < this.P.size(); j++) {\r\n \r\n b = this.P.get(j);\r\n \r\n distance = this.getSquaredEuclideanDistance(a.vector, b.vector);\r\n \r\n if(distance < this.minDifference) {\r\n \r\n if(a.fitness < b.fitness) {\r\n toReplace.add(j);\r\n } else {\r\n toReplace.add(i);\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n \r\n return toReplace;\r\n \r\n }",
"public abstract NestedSet<Artifact> getTransitiveJackLibrariesToLink();",
"void union(int [] parent, int x, int y)\n\t\t{\n\t\t\tint x_set_parent = find(parent, x);\n\t\t\tint y_set_parent = find(parent, y);\n\t\t\tparent[y_set_parent] = x_set_parent;\n\t\t}",
"interface C6554i {\n /* renamed from: a */\n void mo15917a(ZipFile zipFile, Set<C6556k> set) throws IOException;\n}",
"private static double findOneSetCost(int r, int [] set,\r\n Vector oneSetVector,\r\n Host currentNode,\r\n ArrayList neighbors,\r\n ArrayList destList)\r\n {\n ArrayList setNeighbors = new ArrayList();\r\n for ( int i = 0; i < set.length; i++)\r\n {\r\n int index = set[i] - 1;\r\n Host neighbor = (Host) neighbors.get(index);\r\n setNeighbors.add(neighbor);\r\n }\r\n double [][] setDistanceArray = findDistanceArray(currentNode, destList, setNeighbors);\r\n //the setDistanceArray[r][m]\r\n\r\n //check if any neighbor in set is not common neighbor for all dests\r\n //if a neighbor is so, return a MaxDistance, hopArray = NULL\r\n int m = destList.size();\r\n for ( int i = 0; i < m; i++)\r\n {\r\n int num = 0;\r\n for ( int j = 0; j < r; j++)\r\n {\r\n if (setDistanceArray[j][i] < 0)\r\n {\r\n num++;\r\n setDistanceArray[j][i] = MaxDistance;\r\n }\r\n }\r\n if ( num >= r )\r\n {\r\n // All the neighbors in set cannot forward to destination[i]\r\n oneSetVector.clear(); // ???\r\n return MaxDistance;\r\n }\r\n }\r\n\r\n //find forward nodes provides min remain distance\r\n double totalCost = 0.0;\r\n\r\n //go thourgh destList, find a best forward neighbor for each dest\r\n //add the distance to totalRemainDistance\r\n for (int i = 0; i < m; ++i) {//loop through destList\r\n double minCost = setDistanceArray[0][i];//get first neighbor for each dest\r\n oneSetVector.add(i, setNeighbors.get(0));\r\n for (int j = 0; j < r; ++j) {// Loop through the neighbor\r\n if (minCost > setDistanceArray[j][i]) {\r\n // Swap\r\n minCost = setDistanceArray[j][i];\r\n oneSetVector.set(i, setNeighbors.get(j));\r\n }\r\n }\r\n totalCost += minCost;\r\n }\r\n\r\n return totalCost;\r\n }",
"public static void main(String[] args) {\n HashSet<String> hashSet = new HashSet<>();\n hashSet.add(\"Orange\");\n hashSet.add(\"Red\");\n hashSet.add(\"Pink\");\n hashSet.add(\"Red\");\n hashSet.add(\"White\");\n System.out.println(hashSet);\n TreeSet<String> treeSet = new TreeSet<>(hashSet);\n for (String color : treeSet) {\n System.out.println(color);\n }\n\n }",
"public SetOfTiles getSetOfTiles();",
"public static void main(String[] args) {\n\t\tSet<Puppy> set = new LinkedHashSet<Puppy>(10);\n\t\t\n\t\t// this DS which can hold other object\n\t\tPuppy puppy1=new Puppy(\"Tommy\",10 );\n\t\tPuppy puppy2=new Puppy(\"AHH\", 12);\n\t\tPuppy puppy3=new Puppy(\"MYY\", 5);\n\t\tPuppy puppy4=new Puppy(\"NANY\", 3);\n\t\tPuppy puppy5=new Puppy(\"NANY\", 3);\n\t\t\n\t\t//dog4 and dog5 are duplicate elements\n\t\tset.add(puppy1);\n\t\tset.add(puppy2);\n\t\tset.add(puppy3);\n\t\tset.add(puppy4);\n\t\tset.add(puppy5);\n\t\t\n\t\tSystem.out.println(\"puppy4 . hashCode () = \"+puppy4.hashCode());\n\t\tSystem.out.println(\"puppy5 . hashCode () = \"+puppy5.hashCode());\n\t\t\n\t\tIterator<Puppy> iterator=set.iterator();\n\t\t\n\t\tSystem.out.println(\"Accessing data using Iterator interface!\");\n\t\twhile(iterator.hasNext()){\n\t\t\tPuppy puppy=iterator.next();\n\t\t\tSystem.out.println(puppy);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"____________-----\");\n\t\tfor(Puppy puppy:set){\n\t\t\tSystem.out.println(puppy);\n\t\t}\n\t\t\n\t\tPuppy puppy6=new Puppy(\"NANY\", 3);\n\t\t\n\t\tboolean b=set.contains(puppy6);\n\t\tif(b){\n\t\t\tSystem.out.println(\"puppy6 found in set!\"+puppy6);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Run it\");\n\t\t /* final Entry<K,V> getEntry(Object key) {\n\t\t int hash = (key == null) ? 0 : hash(key.hashCode());\n\t\t for (Entry<K,V> e = table[indexFor(hash, table.length)];\n\t\t e != null;\n\t\t e = e.next) {\n\t\t Object k;\n\t\t if (e.hash == hash &&\n\t\t ((k = e.key) == key || (key != null && key.equals(k))))\n\t\t return e;\n\t\t }\n\t\t return null;\n\t\t } */\n\t\t b=set.contains(puppy1);\n\t\tif(b){\n\t\t\tSystem.out.println(b+\"is found in set!\");\n\t\t}\n\t\t\n\n\t}",
"Set<T> get(Location loc);",
"@Override\n\tpublic boolean add(T elem) {\n\t\tif (this.contains(elem)) { // no duplicates\n\t\t\treturn false;\n\t\t} else if (valCount < 3) { // if has space for more\n\t\t\tif (childCount == 0) { // add elem as direct descendant\n\t\t\t\tfor (int i = 0; i < valCount; ++i) {\n\t\t\t\t\tif (comp.compare(elem,values[i]) < 0) {\n\t\t\t\t\t\tfor (int j = 2; j > i; --j) { // shifts all other elements by 1\n\t\t\t\t\t\t\tvalues[j] = values[j - 1];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tvalues[i] = elem;\n\t\t\t\t\t++valCount;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else { // add elem as indirect descendant\n\t\t\t\tfor (int i = 0; i < childCount; ++i) { // searching with which child elem belongs\n\t\t\t\t\tif (comp.compare(elem,values[i]) < 0) {\n\t\t\t\t\t\treturn children[i].add(elem);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn children[childCount].add(elem); // elem is greater than all other children and should be put rightmost\n\t\t\t}\n\t\t} else { // node is 4-tree and should be reduced\n\t\t\tTwoThreeFourTreeSet<T> tempLeft = new TwoThreeFourTreeSet<T>(); // generating new left and right children of reduced node\n\t\t\tTwoThreeFourTreeSet<T> tempRight = new TwoThreeFourTreeSet<T>();\n\t\t\t\n\t\t\ttempLeft.values[0] = values[0];\n\t\t\ttempLeft.valCount = 1;\n\t\t\ttempLeft.children[0] = this.children[0];\n\t\t\ttempLeft.children[1] = this.children[1];\n\t\t\ttempLeft.childCount = 2;\n\t\t\t\n\t\t\ttempRight.values[0] = values[2];\n\t\t\ttempRight.valCount = 1;\n\t\t\ttempRight.children[0] = this.children[2];\n\t\t\ttempRight.children[1] = this.children[3];\n\t\t\ttempRight.childCount = 2;\n\t\t\t\n\t\t\tif (parent == null) { // if no parent, create new node with middle value\n\t\t\t\tTwoThreeFourTreeSet<T> tempParent = new TwoThreeFourTreeSet<T>();\n\t\t\t\ttempParent.values[0] = values[1];\n\t\t\t\t\t\n\t\t\t\ttempParent.children[0] = tempLeft;\n\t\t\t\ttempParent.children[1] = tempRight;\n\t\t\t\ttempParent.childCount = 2;\n\t\t\t\tthis.parent = tempParent;\n\t\t\t} else { // else parent exists, and current node should be added\n\t\t\t\tif (comp.compare(parent.values[0],values[1]) < 0) { // if node belongs leftmost\n\t\t\t\t\tif (parent.valCount > 1) {\n\t\t\t\t\t\t// shift right element by 1\n\t\t\t\t\t\tparent.values[2] = parent.values[1];\n\t\t\t\t\t\tparent.children[3] = parent.children[2];\n\t\t\t\t\t}\n\t\t\t\t\t// shift left element by 1\n\t\t\t\t\tparent.values[1] = parent.values[0];\n\t\t\t\t\tparent.children[2] = parent.children[1];\n\t\t\t\t\t\n\t\t\t\t\t// push left;\n\t\t\t\t\tparent.values[0] = values[1];\n\t\t\t\t\tparent.children[0] = tempLeft;\n\t\t\t\t\tparent.children[1] = tempRight;\n\t\t\t\t} else if (parent.valCount < 2 || comp.compare(parent.values[1],values[1]) < 0) { // if node belongs in center\n\t\t\t\t\tif (parent.valCount > 1) { // should we shift?\n\t\t\t\t\t\tparent.values[2] = parent.values[1];\n\t\t\t\t\t\tparent.children[3] = parent.children[2];\n\t\t\t\t\t}\n\t\t\t\t\t// push center\n\t\t\t\t\tparent.values[1] = values[1];\n\t\t\t\t\tparent.children[1] = tempLeft;\n\t\t\t\t\tparent.children[2] = tempRight;\n\t\t\t\t} else { // if node belongs rightmost\n\t\t\t\t\t// push right\n\t\t\t\t\tparent.values[2] = values[1];\n\t\t\t\t\tparent.children[2] = tempLeft;\n\t\t\t\t\tparent.children[3] = tempRight;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tTwoThreeFourTreeSet<T> newTree = this;\n\t\t\tnewTree = newTree.parent; // changing this indirectly\n\t\t\t++newTree.valCount;\n\t\t\treturn newTree.add(elem);\n\t\t}\n\t\treturn false;\n\t}",
"private static HashSet<String> addElement(Map m, String key,int count) {\n\t\tIterator it = m.entrySet().iterator();\n\t\tHashSet<String> allParents=new HashSet<String>();\n\t\tHashSet<String> newNodeHS=new HashSet<String>();\n\t\tHashSet<String> receive=new HashSet<String>();\n\t\tString parent=\"\";\n\t\tif(readNodes.get(key)==null)\n\t\t{\n\t\t\tif(!(key.equals(root)))\n\t\t\t{\n\t\t\tallParents=(HashSet)m.get(key);\n\t\t\tIterator iter = allParents.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tparent=(String)iter.next();\n\t\t\t\tcount++;\n\t\t\t\treceive=addElement(m,parent,count);\n\t\t\t\tString str=key+\"-\"+parent;\n\t\t\t\tIterator toRecieve = receive.iterator();\n\t\t\t\twhile(toRecieve.hasNext())\n\t\t\t\t{\n\t\t\t\t\tnewNodeHS.add((String)toRecieve.next());\n\t\t\t\t}\n\t\t\t\tnewNodeHS.add(str);\n\t\t\t\tcount--;\n\t\t\t}\n\t\t\t\tif(count==0)\n\t\t\t\t{\n\t\t\t\t\tIterator<HashSet> iternew = totalDAG.iterator();\n\t\t\t\t\tHashSet<HashSet> inProgressDAG=new HashSet<HashSet>(totalDAG); \n\t\t\t\t\twhile (iternew.hasNext()) {\n\t\t\t\t\t HashSet<String> tillCreatedDAG=iternew.next();\n\t\t\t\t\t HashSet<String> union=new HashSet<String>(newNodeHS);\n\t\t\t\t\t union.addAll(tillCreatedDAG);\n\t\t\t\t\t inProgressDAG.add(union);\n\t\t\t\t\t}\n\t\t\t\t\ttotalDAG.clear();\n\t\t\t\t\ttotalDAG=inProgressDAG;\n\t\t\t\t\ttotalDAG.add(newNodeHS);\n\t\t\t\t\treadNodes.put(key, newNodeHS);\n\t\t\t\t\tSystem.out.println(\"Size: \" +totalDAG.size()+\" Nodes: \"+(++totalCount));\n\t\t\t\t\treturn newNodeHS;\n\t\t\t\t}\n\t\t\t\tcount--;\n\t\t\t\treturn newNodeHS;\t\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString str=root;\n\t\t\t\t\tnewNodeHS.add(str);\n\t\t\t\t\tcount--;\n\t\t\t\t\treturn newNodeHS;\n\t\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn (HashSet)readNodes.get(key);\n\t\t}\n\t}",
"@Override\n\t\t\tpublic Set<PathwayImpl> keySet() {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n\tpublic ArregloDinamico<K> keySet() {\n\t\tArregloDinamico<K> respuesta = new ArregloDinamico<K>(N);\n\t\tfor(int i = 0; i<M ; i++)\n\t\t{\n\t\t\tArregloDinamico<NodoTabla<K,V>> temporal = map.darElemento(i).getAll();\n\t\t\tfor(int j=0 ; j < temporal.size() ; j++)\n\t\t\t{\n\t\t\t\tNodoTabla<K,V> elemento = temporal.darElemento(j);\n\t\t\t\tif(elemento != null && elemento.darLlave() != null)\n\t\t\t\t\trespuesta.addLast(elemento.darLlave());\t\n\t\t\t}\n\t\t}\n\t\treturn respuesta;\n\t}",
"public Node searchElement(Object el) {\n\t\n\t\tfor (Node elemento : this.set) {\n\t\t\tif(elemento.getElemento().equals(el)) {\n\t\t\t\treturn elemento;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Node findSet(Node dataNode) {\n // something go wrong here?\n if (dataNode == dataNode.parent) {\n return dataNode;\n }\n dataNode.parent = findSet(dataNode.parent);\n // what is returned is the root, if dataNode is returned then it is the leaf not root\n return dataNode.parent;\n }",
"private IRingSet getRingSetOfAtom(List ringSystems, IAtom atom) {\n\t\tIRingSet ringSetOfAtom = null;\n\t\tfor (int i = 0; i < ringSystems.size(); i++) {\n\t\t\tif (((IRingSet) ringSystems.get(i)).contains(atom)) {\n\t\t\t\treturn (IRingSet) ringSystems.get(i);\n\t\t\t}\n\t\t}\n\t\treturn ringSetOfAtom;\n\t}",
"void shortestPaths( Set<Integer> nodes );",
"Boolean superset(MultiSet<X> s);",
"public static int hashCodeForSet(Collection set) {\n/* 122 */ if (set == null) {\n/* 123 */ return 0;\n/* */ }\n/* 125 */ int hashCode = 0;\n/* 126 */ Iterator it = set.iterator();\n/* 127 */ Object obj = null;\n/* */ \n/* 129 */ while (it.hasNext()) {\n/* 130 */ obj = it.next();\n/* 131 */ if (obj != null) {\n/* 132 */ hashCode += obj.hashCode();\n/* */ }\n/* */ } \n/* 135 */ return hashCode;\n/* */ }",
"private void apriori(){\n HashMap<BitSet, Integer> frequentItemsBit = new HashMap<>();\n HashMap<BitSet, Integer> allAssociations = new HashMap<>();\n \n // Put all the 1-itemsets in frequent item hashmap. It will be scanned\n // for getting k-itemsets and cleared iteratively. \n for (int i = 0; i < frequentItemListSetLenOne.size(); i++) {\n BitSet bitSet = new BitSet(bitsetLen);\n bitSet.set(i, true);\n frequentItemsBit.put(bitSet, frequentItemListSetLenOne.get(i).getValue());\n }\n\n int currentK = 1;\n boolean emptyFrequentSet = false;\n \n while (!emptyFrequentSet) {\n \n // create candidates\n if(currentK > 1){\n HashMap<BitSet, Integer> frequentItemsBitT = (HashMap)frequentItemsBit.clone();\n frequentItemsBit.clear();\n frequentItemsBit = candidate_gen(frequentItemsBitT, currentK);\n }\n \n // If no frequent itemSet in current level break\n if(frequentItemsBit.isEmpty())\n break;\n \n // if currentK >= minimumK insert into final list\n if (currentK >= min_itemset_size_K) {\n for (Map.Entry<BitSet, Integer> entry : frequentItemsBit.entrySet()) {\n allAssociations.put(entry.getKey(), entry.getValue());\n }\n }\n currentK++;\n }\n \n printAssociations(allAssociations);\n }",
"private int find(int[] roots , int id){\n\n if (roots[id] == id) return id;\n roots[id] = find(roots, roots[id]);\n return roots[id];\n }",
"public int set(int index, int element);",
"private Itemsets findCandidateItemsets() {\n\t\t\tItemsets candidateItemsets = new Itemsets();\n\t\t\tItemset[] frequentItemsetsArr = frequentItemsets.keySet().toArray(new Itemset[frequentItemsets.size()]);\n\t\t\t\n\t\t\tfor (int i = 0; i < frequentItemsetsArr.length - 1; i++) {\n\t\t\t\tfor (int j = i + 1; j < frequentItemsetsArr.length; j++) {\n\t\t\t\t\tItemset itemset1Subsequence = frequentItemsetsArr[i].getItems(0, frequentItemsetsArr[i].size() - 1);\n\t\t\t\t\tItemset itemset2Subsequence = frequentItemsetsArr[j].getItems(0, frequentItemsetsArr[i].size() - 1);\n\t\t\t\t\t\n\t\t\t\t\t//if all itemset values except last match, then combine itemsets to form candidate itemset\n\t\t\t\t\tif (itemset1Subsequence.equals(itemset2Subsequence)) {\n\t\t\t\t\t\tItemset candidateItemset = frequentItemsetsArr[i].getItems(0, frequentItemsetsArr[i].size());\n\t\t\t\t\t\tcandidateItemset.add(frequentItemsetsArr[j].getItem(frequentItemsetsArr[i].size() - 1));\n\t\t\t\t\t\t\n\t\t\t\t\t\tcandidateItemsets.addCandidateItemset(candidateItemset);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn candidateItemsets;\n\t\t}",
"public static boolean Util(Graph<V, DefaultEdge> g, ArrayList<V> set, int colors, HashMap<String, Integer> coloring, int i, ArrayList<arc> arcs, Queue<arc> agenda)\n {\n /*if (i == set.size())\n {\n System.out.println(\"reached max size\");\n return true;\n }*/\n if (set.isEmpty())\n {\n System.out.println(\"Set empty\");\n return true;\n }\n //V currentVertex = set.get(i);\n\n /*System.out.println(\"vertices and mrv:\");\n V start = g.vertexSet().stream().filter(V -> V.getID().equals(\"0\")).findAny().orElse(null);\n Iterator<V> iterator = new DepthFirstIterator<>(g, start);\n while (iterator.hasNext()) {\n V v = iterator.next();\n System.out.println(\"vertex \" + v.getID() + \" has mrv of \" + v.mrv);\n }*/\n\n // Find vertex with mrv\n V currentVertex;\n int index = -1;\n int mrv = colors + 10;\n for (int it = 0; it < set.size(); it++)\n {\n if (set.get(it).mrv < mrv)\n {\n mrv = set.get(it).mrv;\n index = it;\n }\n }\n currentVertex = set.remove(index);\n\n //System.out.println(\"Got vertex: \" + currentVertex.getID());\n\n\n // Try to assign that vertex a color\n for (int c = 0; c < colors; c++)\n {\n currentVertex.color = c;\n if (verifyColor(g, currentVertex))\n {\n\n // We can assign color c to vertex v\n // See if AC3 is satisfied\n /*currentVertex.domain.clear();\n currentVertex.domain.add(c);*/\n if (!agenda.isEmpty()) numAgenda++;\n while(!agenda.isEmpty())\n {\n arc temp = agenda.remove();\n\n // Make sure there exists v1, v2, in V1, V2, such that v1 != v2\n V v1 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.x)).findAny().orElse(null);\n V v2 = g.vertexSet().stream().filter(V -> V.getID().equals(temp.y)).findAny().orElse(null);\n\n\n\n // No solution exists in this branch if a domain is empty\n //if ((v1.domain.isEmpty()) || (v2.domain.isEmpty())) return false;\n\n if (v2.color == -1) continue;\n else\n {\n Boolean[] toRemove = new Boolean[colors];\n Boolean domainChanged = false;\n for (Integer it : v1.domain)\n {\n if (it == v2.color)\n {\n toRemove[it] = true;\n }\n }\n for (int j = 0; j < toRemove.length; j++)\n {\n if ((toRemove[j] != null))\n {\n v1.domain.remove(j);\n domainChanged = true;\n }\n }\n // Need to check constraints with v1 on the right hand side\n if (domainChanged)\n {\n for (arc it : arcs)\n {\n // Add arc back to agenda to check constraints again\n if (it.y.equals(v1.getID()))\n {\n agenda.add(it);\n }\n }\n }\n }\n if ((v1.domain.isEmpty()) || (v2.domain.isEmpty()))\n {\n System.out.println(\"returning gfalse here\");\n return false;\n }\n }\n\n // Reset agenda to check arc consistency on next iteration\n for (int j = 0; j < arcs.size(); j++)\n {\n agenda.add(arcs.get(i));\n }\n\n\n //System.out.println(\"Checking if vertex \" + currentVertex.getID() + \" can be assigned color \" + c);\n coloring.put(currentVertex.getID(), c);\n updateMRV(g, currentVertex);\n if (Util(g, set, colors, coloring, i + 1, arcs, agenda))\n {\n\n return true;\n }\n\n //System.out.println(\"Assigning vertex \" + currentVertex.getID() + \" to color \" + currentVertex.color + \" did not work\");\n coloring.remove(currentVertex.getID());\n currentVertex.color = -1;\n }\n }\n return false;\n }",
"private SearchNode findFirstNode(HashSet<SearchNode> set){\n\t\t\tSearchNode min = null;\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (min == null || cur.fScore < min.fScore)\n\t\t\t\t\tmin = cur;\n\t\t\t}\n\t\t\treturn min;\n\t\t}",
"@Override\n public Set<K> keySet() {\n Set<K> ks = new HashSet<>();\n keySetHelper(root, ks);\n return ks;\n// throw new UnsupportedOperationException(\"Unsupported operation, sorry!\");\n }",
"private static Set<C3246b> m11181b(Set<C3246b> set) {\n HashSet hashSet = new HashSet();\n for (C3246b next : set) {\n if (next.mo20822f()) {\n hashSet.add(next);\n }\n }\n return hashSet;\n }",
"boolean contains(E element) {\n\t\t\tshort index = (short)((element.hashCode() >> 24) & 0x000000FF);\n\t\t\treturn nodes[index].contains(element.hashCode(), (byte) 1);\n\t\t}",
"public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}",
"void union(int x,int y){\n int xRoot=find(x),yRoot=find(y);\n if(xRoot==yRoot)return;\n if(rank[xRoot]<rank[yRoot])\n parent[xRoot]=yRoot;\n else if(rank[xRoot]>rank[yRoot])\n parent[yRoot]=xRoot;\n else{\n parent[yRoot]=xRoot;\n rank[xRoot]=rank[xRoot]+1;\n }\n --totalSets;\n }",
"public void replaceBy(Set set, boolean removeSelf) {\n if (TRACE_INTRA) out.println(\"Replacing \"+this+\" with \"+set+(removeSelf?\", and removing self\":\"\"));\n if (set.contains(this)) {\n if (TRACE_INTRA) out.println(\"Replacing a node with itself, turning off remove self.\");\n set.remove(this);\n if (set.isEmpty()) {\n if (TRACE_INTRA) out.println(\"Replacing a node with only itself! Nothing to do.\");\n return;\n }\n removeSelf = false;\n }\n if (VERIFY_ASSERTIONS) Assert._assert(!set.contains(this));\n if (this.predecessors != null) {\n for (Iterator i=this.predecessors.entrySet().iterator(); i.hasNext(); ) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n jq_Field f = (jq_Field)e.getKey();\n Object o = e.getValue();\n if (removeSelf)\n i.remove();\n if (TRACE_INTRA) out.println(\"Looking at predecessor on field \"+f+\": \"+o);\n if (o == null) continue;\n if (o instanceof Node) {\n Node that = (Node)o;\n //Object q = null;\n //if (TRACK_REASONS && edgesToReasons != null)\n // q = edgesToReasons.get(Edge.get(that, this, f));\n if (removeSelf)\n that._removeEdge(f, this);\n if (that == this) {\n // add self-cycles on f to all nodes in set.\n if (TRACE_INTRA) out.println(\"Adding self-cycles on field \"+f);\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node k = (Node)j.next();\n k.addEdge(f, k);\n }\n } else {\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n that.addEdge(f, (Node)j.next());\n }\n }\n } else {\n for (Iterator k=((Set)o).iterator(); k.hasNext(); ) {\n Node that = (Node)k.next();\n if (removeSelf) {\n k.remove();\n that._removeEdge(f, this);\n }\n //Object q = null;\n //if (TRACK_REASONS && edgesToReasons != null)\n // q = edgesToReasons.get(Edge.get(that, this, f));\n if (that == this) {\n // add self-cycles on f to all mapped nodes.\n if (TRACE_INTRA) out.println(\"Adding self-cycles on field \"+f);\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node k2 = (Node)j.next();\n k2.addEdge(f, k2);\n }\n } else {\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n that.addEdge(f, (Node)j.next());\n }\n }\n }\n }\n }\n }\n if (this.addedEdges != null) {\n for (Iterator i=this.addedEdges.entrySet().iterator(); i.hasNext(); ) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n jq_Field f = (jq_Field)e.getKey();\n Object o = e.getValue();\n if (removeSelf)\n i.remove();\n if (o == null) continue;\n if (TRACE_INTRA) out.println(\"Looking at successor on field \"+f+\": \"+o);\n if (o instanceof Node) {\n Node that = (Node)o;\n if (that == this) continue; // cyclic edges handled above.\n //Object q = (TRACK_REASONS && edgesToReasons != null) ? edgesToReasons.get(Edge.get(this, that, f)) : null;\n if (removeSelf) {\n boolean b = that.removePredecessor(f, this);\n if (TRACE_INTRA) out.println(\"Removed \"+this+\" from predecessor set of \"+that+\".\"+f);\n Assert._assert(b);\n }\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node node2 = (Node)j.next();\n node2.addEdge(f, that);\n }\n } else {\n for (Iterator k=((Set)o).iterator(); k.hasNext(); ) {\n Node that = (Node)k.next();\n if (removeSelf)\n k.remove();\n if (that == this) continue; // cyclic edges handled above.\n //Object q = (TRACK_REASONS && edgesToReasons != null) ? edgesToReasons.get(Edge.get(this, that, f)) : null;\n if (removeSelf) {\n boolean b = that.removePredecessor(f, this);\n if (TRACE_INTRA) out.println(\"Removed \"+this+\" from predecessor set of \"+that+\".\"+f);\n Assert._assert(b);\n }\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node node2 = (Node)j.next();\n node2.addEdge(f, that);\n }\n }\n }\n }\n }\n if (this.accessPathEdges != null) {\n for (Iterator i=this.accessPathEdges.entrySet().iterator(); i.hasNext(); ) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n jq_Field f = (jq_Field)e.getKey();\n Object o = e.getValue();\n if (removeSelf)\n i.remove();\n if (o == null) continue;\n if (TRACE_INTRA) out.println(\"Looking at access path successor on field \"+f+\": \"+o);\n if (o instanceof FieldNode) {\n FieldNode that = (FieldNode)o;\n if (that == this) continue; // cyclic edges handled above.\n if (removeSelf) {\n that.field_predecessors.remove(this);\n if (TRACE_INTRA) out.println(\"Removed \"+this+\" from access path predecessor set of \"+that);\n }\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node node2 = (Node)j.next();\n if (TRACE_INTRA) out.println(\"Adding access path edge \"+node2+\"->\"+that);\n node2.addAccessPathEdge(f, that);\n }\n } else {\n for (Iterator k=((Set)o).iterator(); k.hasNext(); ) {\n FieldNode that = (FieldNode)k.next();\n if (removeSelf)\n k.remove();\n if (that == this) continue; // cyclic edges handled above.\n if (removeSelf)\n that.field_predecessors.remove(this);\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n Node node2 = (Node)j.next();\n node2.addAccessPathEdge(f, that);\n }\n }\n }\n }\n }\n if (this.passedParameters != null) {\n if (TRACE_INTRA) out.println(\"Node \"+this+\" is passed as parameters: \"+this.passedParameters+\", adding those parameters to \"+set);\n for (Iterator i=this.passedParameters.iterator(); i.hasNext(); ) {\n PassedParameter pp = (PassedParameter)i.next();\n for (Iterator j=set.iterator(); j.hasNext(); ) {\n ((Node)j.next()).recordPassedParameter(pp);\n }\n }\n }\n }",
"public static void asPathIndex(TreeMap<String, TreeSet<Integer>> elements,\n\t\t\tPath path) throws IOException {\n\t\ttry (BufferedWriter writer = Files.newBufferedWriter(path,\n\t\t\t\tStandardCharsets.UTF_8)) {\n\t\t\tasPathIndex(elements, writer, 0);\n\t\t}\n\t}",
"@Override\n public int hashCode() {\n return Arrays.hashCode(path) ^ Arrays.hashCode(indices);\n }",
"public void findIsolatedGenes(){\n\t\tHashMap isolated = new HashMap();\n\t\t//for each chromosome\n\t\tIterator it = genesSelect.keySet().iterator();\n\t\twhile (it.hasNext()){\n\t\t\tString chrom = (String)it.next();\n\t\t\tUCSCGeneLine[] chrGenesAll = (UCSCGeneLine[])genesAll.get(chrom);\n\t\t\tUCSCGeneLine[] chrGenesSelect = (UCSCGeneLine[])genesSelect.get(chrom);\n\t\t\tSystem.out.println(\"\\tTotal \"+chrom+\"\\t\"+ chrGenesSelect.length);\n\t\t\tArrayList isolatedGenes = new ArrayList();\n\t\t\t//for each gene look for intersection after expanding\n\t\t\tfor (int i=0; i< chrGenesSelect.length; i++){\n\t\t\t\t//expand size of gene\n\t\t\t\tint start = chrGenesSelect[i].getTxStart() - extension;\n\t\t\t\tint end = chrGenesSelect[i].getTxEnd() + extension;\n\t\t\t\t//scan all, allow one hit\n\t\t\t\tint hits = 0;\n\t\t\t\tfor (int j =0; j< chrGenesAll.length; j++){\n\t\t\t\t\tif (intersects (chrGenesAll[j], start, end)) {\n\t\t\t\t\t\thits++; \n\t\t\t\t\t\tif (hits >1) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//save?\n\t\t\t\tif (hits < 2){\n\t\t\t\t\tisolatedGenes.add(chrGenesSelect[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert ArrayList to array and replace in hash\n\t\t\tchrGenesSelect = new UCSCGeneLine[isolatedGenes.size()];\n\t\t\tisolatedGenes.toArray(chrGenesSelect);\n\t\t\tSystem.out.println(\"\\tIsolated \"+chrom+\"\\t\"+ chrGenesSelect.length);\n\t\t\tisolated.put(chrom, chrGenesSelect);\n\t\t}\n\t\tgenesSelect = isolated;\n\t\t//clean up\n\t\tgenesAll = null;\n\t\tSystem.gc();\n\t}",
"void unionTreeCoreset(int k,int n_1,int n_2,int d, Point[] setA,Point[] setB, Point[] centres, MTRandom clustererRandom) {\n\t\t//printf(\"Computing coreset...\\n\");\n\t\t//total number of points\n\t\tint n = n_1+n_2;\n\n\t\t//choose the first centre (each point has the same probability of being choosen)\n\t\t\n\t\t//stores, how many centres have been choosen yet\n\t\tint choosenPoints = 0; \n\t\t\n\t\t//only choose from the n-i points not already choosen\n\t\tint j = clustererRandom.nextInt(n-choosenPoints); \n\n\t\t//copy the choosen point\n\t\tif(j < n_1){\n\t\t\t//copyPointWithoutInit(&setA[j],¢res[choosenPoints]);\n\t\t\tcentres[choosenPoints] = setA[j].clone();\n\t\t} else {\n\t\t\tj = j - n_1;\n\t\t\t//copyPointWithoutInit(&setB[j],¢res[choosenPoints]);\n\t\t\tcentres[choosenPoints] = setB[j].clone();\n\t\t}\n\t\ttreeNode root = new treeNode(setA,setB,n_1,n_2, centres[choosenPoints],choosenPoints); //??\n\t\tchoosenPoints = 1;\n\t\t\n\t\t//choose the remaining points\n\t\twhile(choosenPoints < k){\n\t\t\tif(root.cost > 0.0){\n\t\t\t\ttreeNode leaf = selectNode(root, clustererRandom);\n\t\t\t\tPoint centre = chooseCentre(leaf, clustererRandom);\n\t\t\t\tsplit(leaf,centre,choosenPoints);\n\t\t\t\t//copyPointWithoutInit(centre,¢res[choosenPoints]);\n\t\t\t\tcentres[choosenPoints] = centre;\n\t\t\t} else {\n\t\t\t\t//create a dummy point\n\t\t\t\t//copyPointWithoutInit(root.centre,¢res[choosenPoints]);\n\t\t\t\tcentres[choosenPoints] = root.centre;\n\t\t\t\tint l;\n\t\t\t\tfor(l=0;l<root.centre.dimension;l++){\n\t\t\t\t\tcentres[choosenPoints].coordinates[l] = -1 * 1000000;\n\t\t\t\t}\n\t\t\t\tcentres[choosenPoints].id = -1;\n\t\t\t\tcentres[choosenPoints].weight = 0.0;\n\t\t\t\tcentres[choosenPoints].squareSum = 0.0;\n\t\t\t}\n\t\t\t\n\t\t\tchoosenPoints++;\n\t\t}\n\n\t\t//free the tree\n\t\tfreeTree(root);\n\n\t\t//recalculate clustering features\n\t\tint i;\n\t\tfor(i=0;i<n;i++){\n\t\t\t\t\n\t\t\tif(i < n_1) {\n\t\t\t\t\n\t\t\t\tint index = setA[i].centreIndex;\n\t\t\t\tif(centres[index].id != setA[i].id){\n\t\t\t\t\tcentres[index].weight += setA[i].weight;\n\t\t\t\t\tcentres[index].squareSum += setA[i].squareSum;\n\t\t\t\t\tint l;\n\t\t\t\t\tfor(l=0;l<centres[index].dimension;l++){\n\t\t\t\t\t\tif(setA[i].weight != 0.0){\n\t\t\t\t\t\t\tcentres[index].coordinates[l] += setA[i].coordinates[l];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tint index = setB[i-n_1].centreIndex;\n\t\t\t\tif(centres[index].id != setB[i-n_1].id){\n\t\t\t\t\tcentres[index].weight += setB[i-n_1].weight;\n\t\t\t\t\tcentres[index].squareSum += setB[i-n_1].squareSum;\n\t\t\t\t\tint l;\n\t\t\t\t\tfor(l=0;l<centres[index].dimension;l++){\n\t\t\t\t\t\tif(setB[i-n_1].weight != 0.0){\n\t\t\t\t\t\t\tcentres[index].coordinates[l] += setB[i-n_1].coordinates[l];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }",
"public TileSet(String path, int TILE_SIZE) {\n // A tile set requires only a relative path and the tileSize (32 fixed for now)\n // See if tileSet already exists\n boolean sameFound = false;\n int sameIndex = 0;\n for(int i=0; i<tileSetCache.size(); i++) {\n if(tileSetCache.get(i).getTileSetPath().equals(path)) {\n sameFound = true;\n sameIndex = i;\n break;\n }\n }\n if(sameFound) {\n // If it exists we will copy already existing info over.\n tileSetPath = path;\n tileSetSrc = tileSetCache.get(sameIndex).getTileSetSrc();\n tiles = tileSetCache.get(sameIndex).getTiles();\n blank = tileSetCache.get(sameIndex).getBlank();\n Integer[] boxedArray = Arrays.stream(tileSetCache.get(sameIndex).getRemovedTileID()).boxed().toArray(Integer[]::new);\n Collections.addAll(removedTileIDList, boxedArray);\n totalTiles = tileSetCache.get(sameIndex).getTotalTiles();\n } else {\n // If it doesn't already exist in cache then attempt to load from disk\n tileSetPath = path;\n tileSetSrc = new Image(\"file:\"+ Run.GAME_DATA_PATH + \"/Art/\" + path);\n tiles = makeTiles(tileSetSrc, TILE_SIZE);\n // The last tile of a tileset should be the 'blank' tile for the set\n // To compare other tiles with for reducing Image[] size\n if (tiles.length == 0) {\n // Something has gone horribly wrong.\n System.err.println(\"NO TILES DETECTED\");\n } else {\n // If nothing bad happened from makeTiles() then we should be good\n blank = tiles[tiles.length - 1];\n int sizeOriginal = tiles.length;\n for (int step = 0; step < tiles.length; step++) {\n if (areImagesSame(tiles[step], blank)) {\n removedTileIDList.add(step);\n }\n }\n tiles = removeSameElements(tiles, blank);\n int removedTilesCount = sizeOriginal - tiles.length;\n totalTiles = tiles.length;\n if(Run.DEBUG_OUTPUT) {\n System.out.println(String.format(\"Tiles Removed: %d\", removedTilesCount));\n }\n }\n TileSet.tileSetCache.add(this); // After finishing the tileSet we add to master cache\n tileSetCache.trimToSize();\n }\n }",
"public List<String> setFastestWay(String destKey)\n {\n Tree destNode = (Tree) this.paths.get(destKey);\n List<String> ret = new ArrayList();\n\n MapEntitySprite data;\n while(destNode != null && (data = this.getMapFromCase((String) destNode.key)) != null) {\n data.setFilter(MapFilter.FASTEST);\n ret.add((String) destNode.key);\n destNode = destNode.parent;\n }\n return ret;\n }",
"Set createSet();",
"private void genSaveSetCode(String name, String keyClassSimpleName) {\n\n int tabLevel = 1;\n String tabs = tabs(tabLevel);\n\n String itVarName = \"i\" + \"_\" + name;\n String vVarName = \"v\" + \"_\" + name;\n\n String keyCppType = cppType(keyClassSimpleName);\n\n String setType = \"std::set< \" + keyCppType + \" >\";\n\n save.println(\"\\t// \" + setType + \" \" + name);\n genDebug(save, \"\\tstd::cout << \\\"save \" + setType + \" \" + name + \"\\\" << std::endl;\");\n\n // initialize local variable that points to the member set\n save.println(tabs + setType + \"& \" + vVarName + \" = this->\" + name + \";\");\n\n // number of elements in the set\n save.println(tabs + \"int \" + vVarName + \"_length = \" + vVarName + \".size();\");\n\n save.println();\n save.println(tabs + OUTSTREAM_VAR_NAME + \".writeInt( \" + vVarName + \"_length );\");\n\n genDebugDumpValue(save, vVarName + \"_length\", tabs);\n\n // loop through the elements and save each one\n save.println();\n save.println(tabs + setType + \"::iterator \" + itVarName + \";\");\n save.println(tabs + \"for( \" + itVarName + \" = \" + vVarName + \".begin(); \" + itVarName + \" != \" + vVarName + \".end(); ++\"\n + itVarName + \" ){\");\n\n tabs = tabs(++tabLevel);\n\n // save the key\n String keyVarName = vVarName + \"_key\";\n save.println(tabs + keyCppType + \" \" + keyVarName + \" = *\" + itVarName + \";\");\n save.println(tabs + genWriteCode(keyVarName, keyCppType));\n\n tabs = tabs(--tabLevel);\n save.println(tabs + \"}\");\n }",
"@DISPID(1610940447) //= 0x6005001f. The runtime will prefer the VTID if present\n @VTID(53)\n OrderedGeometricalSets orderedGeometricalSets();",
"private CAUEntry findElementWithTID(CAUList ulist, int tid){\n\t\tList<CAUEntry> list = ulist.CAUEntries;\n\t\t\n\t\t// perform a binary search to check if the subset appears in level k-1.\n int first = 0;\n int last = list.size() - 1;\n \n // the binary search\n while( first <= last )\n {\n \tint middle = ( first + last ) >>> 1; // divide by 2\n\n if(list.get(middle).tid < tid){\n \tfirst = middle + 1; // the itemset compared is larger than the subset according to the lexical order\n }\n else if(list.get(middle).tid > tid){\n \tlast = middle - 1; // the itemset compared is smaller than the subset is smaller according to the lexical order\n }\n else{\n \treturn list.get(middle);\n }\n }\n\t\treturn null;\n\t}"
] |
[
"0.65559745",
"0.57946944",
"0.5686626",
"0.55104995",
"0.547881",
"0.5439609",
"0.543271",
"0.53818816",
"0.5348766",
"0.53243685",
"0.5243741",
"0.5235932",
"0.5201003",
"0.51457274",
"0.5120091",
"0.51188457",
"0.5107066",
"0.51014537",
"0.5098897",
"0.50918245",
"0.50822943",
"0.50709796",
"0.5070085",
"0.50646836",
"0.5043937",
"0.50423324",
"0.50407964",
"0.50373906",
"0.5032607",
"0.50076234",
"0.50059974",
"0.499408",
"0.49771315",
"0.49742866",
"0.49714968",
"0.49373293",
"0.49182037",
"0.4903151",
"0.4864274",
"0.48494092",
"0.48443255",
"0.4842996",
"0.48421746",
"0.4828422",
"0.48224837",
"0.48153833",
"0.48088884",
"0.4801617",
"0.47935042",
"0.47926933",
"0.47806275",
"0.47753337",
"0.4771244",
"0.47565624",
"0.47501224",
"0.47367713",
"0.47362852",
"0.47295582",
"0.47202072",
"0.47059637",
"0.46943557",
"0.46922806",
"0.4683707",
"0.4678758",
"0.46779728",
"0.46767297",
"0.46759313",
"0.4674265",
"0.46704352",
"0.4659381",
"0.46576804",
"0.46522665",
"0.4645766",
"0.46440607",
"0.46314096",
"0.4621965",
"0.46173128",
"0.46106246",
"0.46105674",
"0.45997828",
"0.45990878",
"0.4598759",
"0.45965075",
"0.4594635",
"0.45880106",
"0.45862156",
"0.45850235",
"0.45844966",
"0.45801535",
"0.45777076",
"0.45725167",
"0.45700666",
"0.45621777",
"0.45594126",
"0.45560005",
"0.4555634",
"0.45386225",
"0.45382252",
"0.45368466",
"0.4536053",
"0.45281824"
] |
0.0
|
-1
|
LandModifiersFactory factory = LandModifiersFactory.getInstance();
|
@Override
public int damageCalculator(final Heroes enemy, final Heroes hero) {
float landModifier;
int firstAbilityDamage;
int secondAbilityDamage;
if (enemy.getLocation().equals("V")) {
landModifier = factory.getLandModifiers("V");
} else {
landModifier = LandModifiersFactory.getNoModifiers();
}
firstAbilityDamage = Math.round(landModifier * (factory.getAllDamages("fireblast")
+ hero.getLevel() * factory.getAllLevelDamages("fireblast")));
secondAbilityDamage = Math.round(landModifier * (factory.getAllDamages("ignite")
+ hero.getLevel() * factory.getAllLevelDamages("ignite")));
//retin damage-ul fara modificatori in caz ca adversarul este wizard
enemy.setDamageReceived(firstAbilityDamage + secondAbilityDamage);
firstAbilityDamage = Math.round(firstAbilityDamage
* hero.getRaceModifiers1(enemy.getTypeOfHero()));
secondAbilityDamage = Math.round(secondAbilityDamage
* hero.getRaceModifiers2(enemy.getTypeOfHero()));
//ii setez damage overtime
enemy.setIgniteOvertimeDamage(2);
return firstAbilityDamage + secondAbilityDamage;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public interface Factory {\n LeiFeng createLeiFeng();\n}",
"private IWorld worldCreator(){\n if (gameWorld == GameWorld.NORMAL) return\n new Normal();\n else return\n new Nether();\n }",
"AttackImpactFactory getAttackImpactFactory();",
"Sticker.Factory getStickerFactory();",
"AliciaLab createAliciaLab();",
"EzlemurFactory getEzlemurFactory();",
"GoatInfrastructureFactory getGoatInfrastructureFactory();",
"LptFactory getLptFactory();",
"public interface GameFactory {\n\n /**\n * Creates an item stack from the given compound tag.\n *\n * @param tag\n * The tag.\n * @return The item stack.\n */\n ItemStack createItemStack(CompoundTag tag);\n\n /**\n * Gets the material map.\n * \n * @return The material map.\n */\n WorldMaterialMap getMaterialMap();\n}",
"PlanningFactory getFactory();",
"private FireWeaponScreenFactory() {\n\t}",
"BehaviouralModelFactory getBehaviouralModelFactory();",
"public interface CourseRegFactory\n{\n\n /**\n * Test the existence of an instance\n * @param name The name of the instance to test the existence of\n * @return \n */\n public boolean exists(String name) throws IOException;\n\n /**\n * Create a new instance\n * @param edma_name The name of the instance to create\n * @param schoolInfo The initial values for the singleton SchoolInfo\n * @return \n */\n public CourseRegInstance newInstance(String edma_name, SchoolInfo schoolInfo) throws IOException;\n\n /**\n * Get an instance from its name\n * @param name The name of the instance to get\n * @return \n */\n public CourseRegInstance getInstance(String name) throws IOException;\n\n /**\n * Delete an instance\n * @param name The name of the instance to delete\n * @return <tt>true</tt> if the instance was deleted\n */\n public boolean deleteInstance(String name) throws IOException;\n\n}",
"protected abstract IStoreLane make_classic();",
"private LocatorFactory() {\n }",
"Demo1Factory getDemo1Factory();",
"public interface SealFactory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n SealFactory eINSTANCE = unifi.marcotinacci.thesis.seal.seal.impl.SealFactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>Program</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Program</em>'.\n * @generated\n */\n Program createProgram();\n\n /**\n * Returns a new object of class '<em>Range</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Range</em>'.\n * @generated\n */\n Range createRange();\n\n /**\n * Returns a new object of class '<em>Action</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Action</em>'.\n * @generated\n */\n Action createAction();\n\n /**\n * Returns a new object of class '<em>Module Define</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Module Define</em>'.\n * @generated\n */\n ModuleDefine createModuleDefine();\n\n /**\n * Returns a new object of class '<em>Variable Declaration</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Variable Declaration</em>'.\n * @generated\n */\n VariableDeclaration createVariableDeclaration();\n\n /**\n * Returns a new object of class '<em>Type</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Type</em>'.\n * @generated\n */\n Type createType();\n\n /**\n * Returns a new object of class '<em>Rule</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Rule</em>'.\n * @generated\n */\n Rule createRule();\n\n /**\n * Returns a new object of class '<em>ND Case</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>ND Case</em>'.\n * @generated\n */\n NDCase createNDCase();\n\n /**\n * Returns a new object of class '<em>Case</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Case</em>'.\n * @generated\n */\n Case createCase();\n\n /**\n * Returns a new object of class '<em>Update</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Update</em>'.\n * @generated\n */\n Update createUpdate();\n\n /**\n * Returns a new object of class '<em>Environment</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Environment</em>'.\n * @generated\n */\n Environment createEnvironment();\n\n /**\n * Returns a new object of class '<em>Expression</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Expression</em>'.\n * @generated\n */\n Expression createExpression();\n\n /**\n * Returns a new object of class '<em>No Action</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>No Action</em>'.\n * @generated\n */\n NoAction createNoAction();\n\n /**\n * Returns a new object of class '<em>Assign</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Assign</em>'.\n * @generated\n */\n Assign createAssign();\n\n /**\n * Returns a new object of class '<em>And</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>And</em>'.\n * @generated\n */\n And createAnd();\n\n /**\n * Returns a new object of class '<em>Or</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Or</em>'.\n * @generated\n */\n Or createOr();\n\n /**\n * Returns a new object of class '<em>Leq</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Leq</em>'.\n * @generated\n */\n Leq createLeq();\n\n /**\n * Returns a new object of class '<em>Less</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Less</em>'.\n * @generated\n */\n Less createLess();\n\n /**\n * Returns a new object of class '<em>Eq</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Eq</em>'.\n * @generated\n */\n Eq createEq();\n\n /**\n * Returns a new object of class '<em>Neq</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Neq</em>'.\n * @generated\n */\n Neq createNeq();\n\n /**\n * Returns a new object of class '<em>Geq</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Geq</em>'.\n * @generated\n */\n Geq createGeq();\n\n /**\n * Returns a new object of class '<em>Gtr</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Gtr</em>'.\n * @generated\n */\n Gtr createGtr();\n\n /**\n * Returns a new object of class '<em>Plus</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Plus</em>'.\n * @generated\n */\n Plus createPlus();\n\n /**\n * Returns a new object of class '<em>Minus</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Minus</em>'.\n * @generated\n */\n Minus createMinus();\n\n /**\n * Returns a new object of class '<em>Multi</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Multi</em>'.\n * @generated\n */\n Multi createMulti();\n\n /**\n * Returns a new object of class '<em>Div</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Div</em>'.\n * @generated\n */\n Div createDiv();\n\n /**\n * Returns a new object of class '<em>Not</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Not</em>'.\n * @generated\n */\n Not createNot();\n\n /**\n * Returns a new object of class '<em>Literal</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Literal</em>'.\n * @generated\n */\n Literal createLiteral();\n\n /**\n * Returns a new object of class '<em>Quantifier</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Quantifier</em>'.\n * @generated\n */\n Quantifier createQuantifier();\n\n /**\n * Returns a new object of class '<em>External Reference</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>External Reference</em>'.\n * @generated\n */\n ExternalReference createExternalReference();\n\n /**\n * Returns a new object of class '<em>Local Reference</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Local Reference</em>'.\n * @generated\n */\n LocalReference createLocalReference();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n SealPackage getSealPackage();\n\n}",
"GamesFactory getGamesFactory();",
"public void setup() {\n land = new Landscape(20,800,400);\n}",
"SpaceInvaderTest_initialisation createSpaceInvaderTest_initialisation();",
"Feature createFeature();",
"GramaticaFactory getGramaticaFactory();",
"Mission createMission();",
"FuelingStation createFuelingStation();",
"public interface Factory {\r\n}",
"private LOCFacade() {\r\n\r\n\t}",
"public static BuiltinFactory init() {\n\t\ttry {\n\t\t\tBuiltinFactory theBuiltinFactory = (BuiltinFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.soluvas.com/schema/story.builtin/1.0\"); \n\t\t\tif (theBuiltinFactory != null) {\n\t\t\t\treturn theBuiltinFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new BuiltinFactoryImpl();\n\t}",
"public interface MissionFactory extends EFactory {\r\n\t/**\r\n\t * The singleton instance of the factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tMissionFactory eINSTANCE = it.univaq.flyaq.mission.impl.MissionFactoryImpl.init();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Mission</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Mission</em>'.\r\n\t * @generated\r\n\t */\r\n\tMission createMission();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Swarm</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Swarm</em>'.\r\n\t * @generated\r\n\t */\r\n\tSwarm createSwarm();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Drone</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Drone</em>'.\r\n\t * @generated\r\n\t */\r\n\tDrone createDrone();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Fork</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Fork</em>'.\r\n\t * @generated\r\n\t */\r\n\tFork createFork();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Join</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Join</em>'.\r\n\t * @generated\r\n\t */\r\n\tJoin createJoin();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Task Dependency</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Task Dependency</em>'.\r\n\t * @generated\r\n\t */\r\n\tTaskDependency createTaskDependency();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Coordinate</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Coordinate</em>'.\r\n\t * @generated\r\n\t */\r\n\tCoordinate createCoordinate();\r\n\r\n\t/**\r\n\t * Returns the package supported by this factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the package supported by this factory.\r\n\t * @generated\r\n\t */\r\n\tMissionPackage getMissionPackage();\r\n\r\n}",
"private static synchronized void createInstance() {\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new LOCFacade();\r\n\t}",
"GlprotoFactory getGlprotoFactory();",
"public LanterneFactoryImpl() {\n\t\tsuper();\n\t}",
"public interface AbstractC0386gl {\n}",
"SwmlFactory getSwmlFactory();",
"public interface GameControllerFactory {\n\n /**\n * Creates a new game controller that will be hosted by the given lobby controller.\n */\n GameController makeGameController(LobbyController lobbyController);\n\n}",
"Lehrkraft createLehrkraft();",
"public interface C0557b {\n public static final Tile f2819b;\n\n static {\n f2819b = new Tile(-1, -1, null);\n }",
"public static CacheTracabilityFactory init() {\n\t\ttry {\n\t\t\tCacheTracabilityFactory theCacheTracabilityFactory = (CacheTracabilityFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.eclipse.org/tracability/1.0\"); \n\t\t\tif (theCacheTracabilityFactory != null) {\n\t\t\t\treturn theCacheTracabilityFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CacheTracabilityFactoryImpl();\n\t}",
"public static LanterneFactory init() {\n\t\ttry {\n\t\t\tLanterneFactory theLanterneFactory = (LanterneFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://lanterne\"); \n\t\t\tif (theLanterneFactory != null) {\n\t\t\t\treturn theLanterneFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new LanterneFactoryImpl();\n\t}",
"public IStoreLane classic();",
"public interface SpaceinvadersFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tSpaceinvadersFactory eINSTANCE = spaceinvaders.impl.SpaceinvadersFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Spaces Invaders</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Spaces Invaders</em>'.\n\t * @generated\n\t */\n\tSpacesInvaders createSpacesInvaders();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau</em>'.\n\t * @generated\n\t */\n\tVaisseau createVaisseau();\n\n\t/**\n\t * Returns a new object of class '<em>Position</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Position</em>'.\n\t * @generated\n\t */\n\tPosition createPosition();\n\n\t/**\n\t * Returns a new object of class '<em>Position Position</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Position Position</em>'.\n\t * @generated\n\t */\n\tPosition_Position createPosition_Position();\n\n\t/**\n\t * Returns a new object of class '<em>Position abscisse</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Position abscisse</em>'.\n\t * @generated\n\t */\n\tPosition_abscisse createPosition_abscisse();\n\n\t/**\n\t * Returns a new object of class '<em>Position ordonnee</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Position ordonnee</em>'.\n\t * @generated\n\t */\n\tPosition_ordonnee createPosition_ordonnee();\n\n\t/**\n\t * Returns a new object of class '<em>Position changer Abscisse</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Position changer Abscisse</em>'.\n\t * @generated\n\t */\n\tPosition_changerAbscisse createPosition_changerAbscisse();\n\n\t/**\n\t * Returns a new object of class '<em>Position changer Ordonnee</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Position changer Ordonnee</em>'.\n\t * @generated\n\t */\n\tPosition_changerOrdonnee createPosition_changerOrdonnee();\n\n\t/**\n\t * Returns a new object of class '<em>Dimension</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dimension</em>'.\n\t * @generated\n\t */\n\tDimension createDimension();\n\n\t/**\n\t * Returns a new object of class '<em>Dimension Dimension</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dimension Dimension</em>'.\n\t * @generated\n\t */\n\tDimension_Dimension createDimension_Dimension();\n\n\t/**\n\t * Returns a new object of class '<em>Dimension longueur</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dimension longueur</em>'.\n\t * @generated\n\t */\n\tDimension_longueur createDimension_longueur();\n\n\t/**\n\t * Returns a new object of class '<em>Dimension hauteur</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dimension hauteur</em>'.\n\t * @generated\n\t */\n\tDimension_hauteur createDimension_hauteur();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau Vaisseau</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau Vaisseau</em>'.\n\t * @generated\n\t */\n\tVaisseau_Vaisseau createVaisseau_Vaisseau();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau Vaisseau</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau Vaisseau</em>'.\n\t * @generated\n\t */\n\tVaisseau_Vaisseau createVaisseau_Vaisseau();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau Vaisseau</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau Vaisseau</em>'.\n\t * @generated\n\t */\n\tVaisseau_Vaisseau createVaisseau_Vaisseau();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau Vaisseau</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau Vaisseau</em>'.\n\t * @generated\n\t */\n\tVaisseau_Vaisseau createVaisseau_Vaisseau();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau occupe La Position</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau occupe La Position</em>'.\n\t * @generated\n\t */\n\tVaisseau_occupeLaPosition createVaisseau_occupeLaPosition();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau est Ordonnee Couverte</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau est Ordonnee Couverte</em>'.\n\t * @generated\n\t */\n\tVaisseau_estOrdonneeCouverte createVaisseau_estOrdonneeCouverte();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau est Abscisse Couverte</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau est Abscisse Couverte</em>'.\n\t * @generated\n\t */\n\tVaisseau_estAbscisseCouverte createVaisseau_estAbscisseCouverte();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau ordonnee La Plus Basse</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau ordonnee La Plus Basse</em>'.\n\t * @generated\n\t */\n\tVaisseau_ordonneeLaPlusBasse createVaisseau_ordonneeLaPlusBasse();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau ordonnee La Plus Haute</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau ordonnee La Plus Haute</em>'.\n\t * @generated\n\t */\n\tVaisseau_ordonneeLaPlusHaute createVaisseau_ordonneeLaPlusHaute();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau abscisse La Plus ADroite</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau abscisse La Plus ADroite</em>'.\n\t * @generated\n\t */\n\tVaisseau_abscisseLaPlusADroite createVaisseau_abscisseLaPlusADroite();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau abscisse La Plus AGauche</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau abscisse La Plus AGauche</em>'.\n\t * @generated\n\t */\n\tVaisseau_abscisseLaPlusAGauche createVaisseau_abscisseLaPlusAGauche();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau se Deplacer Vers La Droite</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau se Deplacer Vers La Droite</em>'.\n\t * @generated\n\t */\n\tVaisseau_seDeplacerVersLaDroite createVaisseau_seDeplacerVersLaDroite();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau se Deplacer Vers La Gauche</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau se Deplacer Vers La Gauche</em>'.\n\t * @generated\n\t */\n\tVaisseau_seDeplacerVersLaGauche createVaisseau_seDeplacerVersLaGauche();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau positionner</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau positionner</em>'.\n\t * @generated\n\t */\n\tVaisseau_positionner createVaisseau_positionner();\n\n\t/**\n\t * Returns a new object of class '<em>Vaisseau longueur</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vaisseau longueur</em>'.\n\t * @generated\n\t */\n\tVaisseau_longueur createVaisseau_longueur();\n\n\t/**\n\t * Returns a new object of class '<em>Spaces Invaders Spaces Invaders</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Spaces Invaders Spaces Invaders</em>'.\n\t * @generated\n\t */\n\tSpacesInvaders_SpacesInvaders createSpacesInvaders_SpacesInvaders();\n\n\t/**\n\t * Returns a new object of class '<em>Spaces Invaders recuperer Espace Jeu Dans Chaine ASCII</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Spaces Invaders recuperer Espace Jeu Dans Chaine ASCII</em>'.\n\t * @generated\n\t */\n\tSpacesInvaders_recupererEspaceJeuDansChaineASCII createSpacesInvaders_recupererEspaceJeuDansChaineASCII();\n\n\t/**\n\t * Returns a new object of class '<em>Spaces Invaders recuperer Marque De La Position</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Spaces Invaders recuperer Marque De La Position</em>'.\n\t * @generated\n\t */\n\tSpacesInvaders_recupererMarqueDeLaPosition createSpacesInvaders_recupererMarqueDeLaPosition();\n\n\t/**\n\t * Returns a new object of class '<em>Spaces Invaders aUn Vaisseau Qui Occupe La Position</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Spaces Invaders aUn Vaisseau Qui Occupe La Position</em>'.\n\t * @generated\n\t */\n\tSpacesInvaders_aUnVaisseauQuiOccupeLaPosition createSpacesInvaders_aUnVaisseauQuiOccupeLaPosition();\n\n\t/**\n\t * Returns a new object of class '<em>Spaces Invaders aUn Vaisseau</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Spaces Invaders aUn Vaisseau</em>'.\n\t * @generated\n\t */\n\tSpacesInvaders_aUnVaisseau createSpacesInvaders_aUnVaisseau();\n\n\t/**\n\t * Returns a new object of class '<em>Spaces Invaders est Dans Espace Jeu</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Spaces Invaders est Dans Espace Jeu</em>'.\n\t * @generated\n\t */\n\tSpacesInvaders_estDansEspaceJeu createSpacesInvaders_estDansEspaceJeu();\n\n\t/**\n\t * Returns a new object of class '<em>Spaces Invaders deplacer Vaisseau Vers La Droite</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Spaces Invaders deplacer Vaisseau Vers La Droite</em>'.\n\t * @generated\n\t */\n\tSpacesInvaders_deplacerVaisseauVersLaDroite createSpacesInvaders_deplacerVaisseauVersLaDroite();\n\n\t/**\n\t * Returns a new object of class '<em>Spaces Invaders deplacer Vaisseau Vers La Gauche</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Spaces Invaders deplacer Vaisseau Vers La Gauche</em>'.\n\t * @generated\n\t */\n\tSpacesInvaders_deplacerVaisseauVersLaGauche createSpacesInvaders_deplacerVaisseauVersLaGauche();\n\n\t/**\n\t * Returns a new object of class '<em>Spaces Invaders positionner Un Nouveau Vaisseau</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Spaces Invaders positionner Un Nouveau Vaisseau</em>'.\n\t * @generated\n\t */\n\tSpacesInvaders_positionnerUnNouveauVaisseau createSpacesInvaders_positionnerUnNouveauVaisseau();\n\n\t/**\n\t * Returns a new object of class '<em>Spaces Invaders positionner Un Nouveau Vaisseau</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Spaces Invaders positionner Un Nouveau Vaisseau</em>'.\n\t * @generated\n\t */\n\tSpacesInvaders_positionnerUnNouveauVaisseau createSpacesInvaders_positionnerUnNouveauVaisseau();\n\n\t/**\n\t * Returns a new object of class '<em>Space Invader Test</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Space Invader Test</em>'.\n\t * @generated\n\t */\n\tSpaceInvaderTest createSpaceInvaderTest();\n\n\t/**\n\t * Returns a new object of class '<em>Space Invader Test initialisation</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Space Invader Test initialisation</em>'.\n\t * @generated\n\t */\n\tSpaceInvaderTest_initialisation createSpaceInvaderTest_initialisation();\n\n\t/**\n\t * Returns a new object of class '<em>Space Invader Test test Au Debut Jeu Space Invader Est Vide</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Space Invader Test test Au Debut Jeu Space Invader Est Vide</em>'.\n\t * @generated\n\t */\n\tSpaceInvaderTest_test_AuDebut_JeuSpaceInvaderEstVide createSpaceInvaderTest_test_AuDebut_JeuSpaceInvaderEstVide();\n\n\t/**\n\t * Returns a new object of class '<em>Space Invader Test test un Nouveau Vaisseau Est Correctement Positionne Dans Espace Jeu</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Space Invader Test test un Nouveau Vaisseau Est Correctement Positionne Dans Espace Jeu</em>'.\n\t * @generated\n\t */\n\tSpaceInvaderTest_test_unNouveauVaisseauEstCorrectementPositionneDansEspaceJeu createSpaceInvaderTest_test_unNouveauVaisseauEstCorrectementPositionneDansEspaceJeu();\n\n\t/**\n\t * Returns a new object of class '<em>Space Invader Test test Un Nouveau Vaisseau Positionne Hors Espace Jeu Doit Lever Une Exception</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Space Invader Test test Un Nouveau Vaisseau Positionne Hors Espace Jeu Doit Lever Une Exception</em>'.\n\t * @generated\n\t */\n\tSpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException createSpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException();\n\n\t/**\n\t * Returns a new object of class '<em>Space Invader Test test un Nouveau Vaisseau Avec Dimension Est Correctement Positionne Dans Espace Jeu</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Space Invader Test test un Nouveau Vaisseau Avec Dimension Est Correctement Positionne Dans Espace Jeu</em>'.\n\t * @generated\n\t */\n\tSpaceInvaderTest_test_unNouveauVaisseauAvecDimensionEstCorrectementPositionneDansEspaceJeu createSpaceInvaderTest_test_unNouveauVaisseauAvecDimensionEstCorrectementPositionneDansEspaceJeu();\n\n\t/**\n\t * Returns a new object of class '<em>Space Invader Test test Un Nouveau Vaisseau Positionne Dans Espace Jeu Mais Avec Dimension Trop Grande Doit Lever Une Exception De Debordement</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Space Invader Test test Un Nouveau Vaisseau Positionne Dans Espace Jeu Mais Avec Dimension Trop Grande Doit Lever Une Exception De Debordement</em>'.\n\t * @generated\n\t */\n\tSpaceInvaderTest_test_UnNouveauVaisseauPositionneDansEspaceJeuMaisAvecDimensionTropGrande_DoitLeverUneExceptionDeDebordement createSpaceInvaderTest_test_UnNouveauVaisseauPositionneDansEspaceJeuMaisAvecDimensionTropGrande_DoitLeverUneExceptionDeDebordement();\n\n\t/**\n\t * Returns a new object of class '<em>Space Invader Test Vaisseau Avance Deplacer Vaisseau Vers La Gauche</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Space Invader Test Vaisseau Avance Deplacer Vaisseau Vers La Gauche</em>'.\n\t * @generated\n\t */\n\tSpaceInvaderTest_VaisseauAvance_DeplacerVaisseauVersLaGauche createSpaceInvaderTest_VaisseauAvance_DeplacerVaisseauVersLaGauche();\n\n\t/**\n\t * Returns a new object of class '<em>Space Invader Test Vaisseau Immobile Deplacer Vaisseau Vers La Gauche</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Space Invader Test Vaisseau Immobile Deplacer Vaisseau Vers La Gauche</em>'.\n\t * @generated\n\t */\n\tSpaceInvaderTest_VaisseauImmobile_DeplacerVaisseauVersLaGauche createSpaceInvaderTest_VaisseauImmobile_DeplacerVaisseauVersLaGauche();\n\n\t/**\n\t * Returns a new object of class '<em>Space Invader Test test Vaisseau Avance Deplacer Vaisseau Vers La Droite</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Space Invader Test test Vaisseau Avance Deplacer Vaisseau Vers La Droite</em>'.\n\t * @generated\n\t */\n\tSpaceInvaderTest_test_VaisseauAvance_DeplacerVaisseauVersLaDroite createSpaceInvaderTest_test_VaisseauAvance_DeplacerVaisseauVersLaDroite();\n\n\t/**\n\t * Returns a new object of class '<em>Space Invader Test test Vaisseau Immobile Deplacer Vaisseau Vers La Droite</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Space Invader Test test Vaisseau Immobile Deplacer Vaisseau Vers La Droite</em>'.\n\t * @generated\n\t */\n\tSpaceInvaderTest_test_VaisseauImmobile_DeplacerVaisseauVersLaDroite createSpaceInvaderTest_test_VaisseauImmobile_DeplacerVaisseauVersLaDroite();\n\n\t/**\n\t * Returns a new object of class '<em>Space Invader Test test Vaisseau Avance Partiellement Deplacer Vaisseau Vers La Droite</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Space Invader Test test Vaisseau Avance Partiellement Deplacer Vaisseau Vers La Droite</em>'.\n\t * @generated\n\t */\n\tSpaceInvaderTest_test_VaisseauAvancePartiellement_DeplacerVaisseauVersLaDroite createSpaceInvaderTest_test_VaisseauAvancePartiellement_DeplacerVaisseauVersLaDroite();\n\n\t/**\n\t * Returns a new object of class '<em>New Class1</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>New Class1</em>'.\n\t * @generated\n\t */\n\tNewClass1 createNewClass1();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tSpaceinvadersPackage getSpaceinvadersPackage();\n\n}",
"public FactoryImpl() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.icu.text.TimeZoneNames.DefaultTimeZoneNames.FactoryImpl.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.text.TimeZoneNames.DefaultTimeZoneNames.FactoryImpl.<init>():void\");\n }",
"public interface ExploitationFactory extends EFactory {\r\n\t/**\r\n\t * The singleton instance of the factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tExploitationFactory eINSTANCE = exploitation.impl.ExploitationFactoryImpl.init();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Exploitation</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Exploitation</em>'.\r\n\t * @generated\r\n\t */\r\n\tExploitation createExploitation();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Ressource</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Ressource</em>'.\r\n\t * @generated\r\n\t */\r\n\tRessource createRessource();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Surface</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Surface</em>'.\r\n\t * @generated\r\n\t */\r\n\tSurface createSurface();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Parcelle</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Parcelle</em>'.\r\n\t * @generated\r\n\t */\r\n\tParcelle createParcelle();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Elevage</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Elevage</em>'.\r\n\t * @generated\r\n\t */\r\n\tElevage createElevage();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Culture</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Culture</em>'.\r\n\t * @generated\r\n\t */\r\n\tCulture createCulture();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Environment</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Environment</em>'.\r\n\t * @generated\r\n\t */\r\n\tEnvironment createEnvironment();\r\n\r\n\t/**\r\n\t * Returns the package supported by this factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the package supported by this factory.\r\n\t * @generated\r\n\t */\r\n\tExploitationPackage getExploitationPackage();\r\n\r\n}",
"UsageevolutionFactory getUsageevolutionFactory();",
"public interface NewLine extends ClouBausteinElement {\n\n static NewLine create(CodePosition codePosition){\n return new NewLineImpl(codePosition);\n }\n\n}",
"Cancion createCancion();",
"Vehicle createVehicle();",
"Vehicle createVehicle();",
"Schueler createSchueler();",
"StoriesFactory getStoriesFactory();",
"private GardenerStrategyHelpers() {\n }",
"opmodelFactory getopmodelFactory();",
"public interface LandService {\n\t//declare some methods \n\tpublic List<LandBean> getAllLands() ;\n\tpublic boolean deleteLand(int id);\n\tpublic boolean addLand(LandBean bean);\n\tboolean modifyLand(LandBean bean);\n\n}",
"protected HLook createLook()\n {\n return new HGraphicLook()\n {\n };\n }",
"private StickFactory() {\n\t}",
"public interface ICompat {\n ICraftBookPageManager createCraftBookPageManager(BookMeta bookMeta) throws NoSuchFieldException, IllegalAccessException;\n}",
"public interface EnemyShipPartsFactory {\n ESWeapon addESGun();\n ESEngine addESEngine();\n}",
"private VegetableFactory() {\n }",
"Emote.Factory getEmoteFactory();",
"public interface RaspiroverFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tRaspiroverFactory eINSTANCE = rover.raspirover.raspirover.impl.RaspiroverFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Ras Pi Board</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Ras Pi Board</em>'.\n\t * @generated\n\t */\n\tRasPiBoard createRasPiBoard();\n\n\t/**\n\t * Returns a new object of class '<em>Project</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Project</em>'.\n\t * @generated\n\t */\n\tProject createProject();\n\n\t/**\n\t * Returns a new object of class '<em>Sketch</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Sketch</em>'.\n\t * @generated\n\t */\n\tSketch createSketch();\n\n\t/**\n\t * Returns a new object of class '<em>Block</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Block</em>'.\n\t * @generated\n\t */\n\tBlock createBlock();\n\n\t/**\n\t * Returns a new object of class '<em>Digital Pin</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Digital Pin</em>'.\n\t * @generated\n\t */\n\tDigitalPin createDigitalPin();\n\n\t/**\n\t * Returns a new object of class '<em>Pin</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Pin</em>'.\n\t * @generated\n\t */\n\tPin createPin();\n\n\t/**\n\t * Returns a new object of class '<em>Analog Pin</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Analog Pin</em>'.\n\t * @generated\n\t */\n\tAnalogPin createAnalogPin();\n\n\t/**\n\t * Returns a new object of class '<em>Rover Program</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Rover Program</em>'.\n\t * @generated\n\t */\n\tRoverProgram createRoverProgram();\n\n\t/**\n\t * Returns a new object of class '<em>Param</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Param</em>'.\n\t * @generated\n\t */\n\tParam createParam();\n\n\t/**\n\t * Returns a new object of class '<em>Var Assignment</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Var Assignment</em>'.\n\t * @generated\n\t */\n\tVarAssignment createVarAssignment();\n\n\t/**\n\t * Returns a new object of class '<em>Conditional</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Conditional</em>'.\n\t * @generated\n\t */\n\tConditional createConditional();\n\n\t/**\n\t * Returns a new object of class '<em>Loop</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Loop</em>'.\n\t * @generated\n\t */\n\tLoop createLoop();\n\n\t/**\n\t * Returns a new object of class '<em>Rcl Block</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Rcl Block</em>'.\n\t * @generated\n\t */\n\tRclBlock createRclBlock();\n\n\t/**\n\t * Returns a new object of class '<em>Temperature Query</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Temperature Query</em>'.\n\t * @generated\n\t */\n\tTemperatureQuery createTemperatureQuery();\n\n\t/**\n\t * Returns a new object of class '<em>Humidity Query</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Humidity Query</em>'.\n\t * @generated\n\t */\n\tHumidityQuery createHumidityQuery();\n\n\t/**\n\t * Returns a new object of class '<em>Message Query</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Message Query</em>'.\n\t * @generated\n\t */\n\tMessageQuery createMessageQuery();\n\n\t/**\n\t * Returns a new object of class '<em>Obstacle Query</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Obstacle Query</em>'.\n\t * @generated\n\t */\n\tObstacleQuery createObstacleQuery();\n\n\t/**\n\t * Returns a new object of class '<em>Numeric Expression</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Numeric Expression</em>'.\n\t * @generated\n\t */\n\tNumericExpression createNumericExpression();\n\n\t/**\n\t * Returns a new object of class '<em>String Expression</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>String Expression</em>'.\n\t * @generated\n\t */\n\tStringExpression createStringExpression();\n\n\t/**\n\t * Returns a new object of class '<em>Boolean Expression</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Boolean Expression</em>'.\n\t * @generated\n\t */\n\tBooleanExpression createBooleanExpression();\n\n\t/**\n\t * Returns a new object of class '<em>Rover Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Rover Value</em>'.\n\t * @generated\n\t */\n\tRoverValue createRoverValue();\n\n\t/**\n\t * Returns a new object of class '<em>Number Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Number Value</em>'.\n\t * @generated\n\t */\n\tNumberValue createNumberValue();\n\n\t/**\n\t * Returns a new object of class '<em>String Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>String Value</em>'.\n\t * @generated\n\t */\n\tStringValue createStringValue();\n\n\t/**\n\t * Returns a new object of class '<em>Boolean Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Boolean Value</em>'.\n\t * @generated\n\t */\n\tBooleanValue createBooleanValue();\n\n\t/**\n\t * Returns a new object of class '<em>Forward Action</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Forward Action</em>'.\n\t * @generated\n\t */\n\tForwardAction createForwardAction();\n\n\t/**\n\t * Returns a new object of class '<em>Forward Min Action</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Forward Min Action</em>'.\n\t * @generated\n\t */\n\tForwardMinAction createForwardMinAction();\n\n\t/**\n\t * Returns a new object of class '<em>Backward Action</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Backward Action</em>'.\n\t * @generated\n\t */\n\tBackwardAction createBackwardAction();\n\n\t/**\n\t * Returns a new object of class '<em>Backward Min Action</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Backward Min Action</em>'.\n\t * @generated\n\t */\n\tBackwardMinAction createBackwardMinAction();\n\n\t/**\n\t * Returns a new object of class '<em>Turn Action</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Turn Action</em>'.\n\t * @generated\n\t */\n\tTurnAction createTurnAction();\n\n\t/**\n\t * Returns a new object of class '<em>Turn Deg Action</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Turn Deg Action</em>'.\n\t * @generated\n\t */\n\tTurnDegAction createTurnDegAction();\n\n\t/**\n\t * Returns a new object of class '<em>Stop Action</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Stop Action</em>'.\n\t * @generated\n\t */\n\tStopAction createStopAction();\n\n\t/**\n\t * Returns a new object of class '<em>Log Action</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Log Action</em>'.\n\t * @generated\n\t */\n\tLogAction createLogAction();\n\n\t/**\n\t * Returns a new object of class '<em>Send Action</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Send Action</em>'.\n\t * @generated\n\t */\n\tSendAction createSendAction();\n\n\t/**\n\t * Returns a new object of class '<em>Var Ref</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Var Ref</em>'.\n\t * @generated\n\t */\n\tVarRef createVarRef();\n\n\t/**\n\t * Returns a new object of class '<em>Centimeter</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Centimeter</em>'.\n\t * @generated\n\t */\n\tCentimeter createCentimeter();\n\n\t/**\n\t * Returns a new object of class '<em>Millimeter</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Millimeter</em>'.\n\t * @generated\n\t */\n\tMillimeter createMillimeter();\n\n\t/**\n\t * Returns a new object of class '<em>Meter</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Meter</em>'.\n\t * @generated\n\t */\n\tMeter createMeter();\n\n\t/**\n\t * Returns a new object of class '<em>Foot</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Foot</em>'.\n\t * @generated\n\t */\n\tFoot createFoot();\n\n\t/**\n\t * Returns a new object of class '<em>Inch</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Inch</em>'.\n\t * @generated\n\t */\n\tInch createInch();\n\n\t/**\n\t * Returns a new object of class '<em>Yard</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Yard</em>'.\n\t * @generated\n\t */\n\tYard createYard();\n\n\t/**\n\t * Returns a new object of class '<em>Radian</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Radian</em>'.\n\t * @generated\n\t */\n\tRadian createRadian();\n\n\t/**\n\t * Returns a new object of class '<em>Degree</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Degree</em>'.\n\t * @generated\n\t */\n\tDegree createDegree();\n\n\t/**\n\t * Returns a new object of class '<em>Turn</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Turn</em>'.\n\t * @generated\n\t */\n\tTurn createTurn();\n\n\t/**\n\t * Returns a new object of class '<em>Gradian</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Gradian</em>'.\n\t * @generated\n\t */\n\tGradian createGradian();\n\n\t/**\n\t * Returns a new object of class '<em>Quantity</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Quantity</em>'.\n\t * @generated\n\t */\n\tQuantity createQuantity();\n\n\t/**\n\t * Returns a new object of class '<em>Length</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Length</em>'.\n\t * @generated\n\t */\n\tLength createLength();\n\n\t/**\n\t * Returns a new object of class '<em>Angle</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Angle</em>'.\n\t * @generated\n\t */\n\tAngle createAngle();\n\n\t/**\n\t * Returns a new object of class '<em>Length Add</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Length Add</em>'.\n\t * @generated\n\t */\n\tLengthAdd createLengthAdd();\n\n\t/**\n\t * Returns a new object of class '<em>Length Subtract</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Length Subtract</em>'.\n\t * @generated\n\t */\n\tLengthSubtract createLengthSubtract();\n\n\t/**\n\t * Returns a new object of class '<em>Length Scalar Multiply</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Length Scalar Multiply</em>'.\n\t * @generated\n\t */\n\tLengthScalarMultiply createLengthScalarMultiply();\n\n\t/**\n\t * Returns a new object of class '<em>Length Scalar Divide</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Length Scalar Divide</em>'.\n\t * @generated\n\t */\n\tLengthScalarDivide createLengthScalarDivide();\n\n\t/**\n\t * Returns a new object of class '<em>Length Equals</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Length Equals</em>'.\n\t * @generated\n\t */\n\tLengthEquals createLengthEquals();\n\n\t/**\n\t * Returns a new object of class '<em>Length Distinct</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Length Distinct</em>'.\n\t * @generated\n\t */\n\tLengthDistinct createLengthDistinct();\n\n\t/**\n\t * Returns a new object of class '<em>Length Smaller</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Length Smaller</em>'.\n\t * @generated\n\t */\n\tLengthSmaller createLengthSmaller();\n\n\t/**\n\t * Returns a new object of class '<em>Length Greater</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Length Greater</em>'.\n\t * @generated\n\t */\n\tLengthGreater createLengthGreater();\n\n\t/**\n\t * Returns a new object of class '<em>Angle Add</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Angle Add</em>'.\n\t * @generated\n\t */\n\tAngleAdd createAngleAdd();\n\n\t/**\n\t * Returns a new object of class '<em>Angle Subtract</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Angle Subtract</em>'.\n\t * @generated\n\t */\n\tAngleSubtract createAngleSubtract();\n\n\t/**\n\t * Returns a new object of class '<em>Angle Scalar Multiply</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Angle Scalar Multiply</em>'.\n\t * @generated\n\t */\n\tAngleScalarMultiply createAngleScalarMultiply();\n\n\t/**\n\t * Returns a new object of class '<em>Angle Scalar Divide</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Angle Scalar Divide</em>'.\n\t * @generated\n\t */\n\tAngleScalarDivide createAngleScalarDivide();\n\n\t/**\n\t * Returns a new object of class '<em>Angle Equals</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Angle Equals</em>'.\n\t * @generated\n\t */\n\tAngleEquals createAngleEquals();\n\n\t/**\n\t * Returns a new object of class '<em>Angle Distinct</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Angle Distinct</em>'.\n\t * @generated\n\t */\n\tAngleDistinct createAngleDistinct();\n\n\t/**\n\t * Returns a new object of class '<em>Angle Smaller</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Angle Smaller</em>'.\n\t * @generated\n\t */\n\tAngleSmaller createAngleSmaller();\n\n\t/**\n\t * Returns a new object of class '<em>Angle Greater</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Angle Greater</em>'.\n\t * @generated\n\t */\n\tAngleGreater createAngleGreater();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tRaspiroverPackage getRaspiroverPackage();\n\n}",
"Oracion createOracion();",
"public IndirectionsmeasuringpointFactoryImpl() {\n super();\n }",
"public interface OrientationWorkshopI {\n\tpublic void construct(OrientationChecklistI orientationChecklist);\n\n}",
"public interface IInstabilityController {\n\n\t/**\n\t * Returns the world's total instability score without the stability provided by the registered mechanics\n\t */\n\tpublic int getInstabilityScore();\n\n\t/**\n\t * Call this to register your effects when an InstabilityProvider is instantiated on a world\n\t */\n\tpublic void registerEffect(IEnvironmentalEffect effect);\n\n}",
"XUMLRTFactory getXUMLRTFactory();",
"IntStrategyFactory() {\n }",
"private VerifierFactory() {\n }",
"Elevage createElevage();",
"public AoDai chooseFactory(){\n\t\treturn new ModernAoDai();\n\t}",
"public interface DaifuWayFactory {\n TwoStepDaifu createTwoStepDaifu();\n}",
"ASAFactory getASAFactory();",
"public void createWorld(){\n\n }",
"BehaviorStateMachinesFactory getBehaviorStateMachinesFactory();",
"public interface RoomFactory\n{\n public Room createRoom(int floorNumber, Booking booking, RoomType roomType);\n}",
"private EntityFactory() {}",
"UberFactory getUberFactory();",
"public interface ICarFactory {\n}",
"public static PageGeneratorLanguareFactory init()\n {\n try\n {\n PageGeneratorLanguareFactory thePageGeneratorLanguareFactory = (PageGeneratorLanguareFactory)EPackage.Registry.INSTANCE.getEFactory(PageGeneratorLanguarePackage.eNS_URI);\n if (thePageGeneratorLanguareFactory != null)\n {\n return thePageGeneratorLanguareFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new PageGeneratorLanguareFactoryImpl();\n }",
"public interface ILevelDefinition {\n\n /**\n * Get the agents that actually exist in the game\n * @return The currently existing agents\n */\n List<AgentReference> getCurrentAgents();\n void removeAgent(int index);\n void addAgent(String agentName, int x, int y, double direction, List<? extends IPropertyDefinition> instanceProperties);\n\n List<String> getPlaceableAgents();\n void removePlaceableAgent(int index);\n void removePlaceableAgent(String agentName);\n void addPlaceableAgent(String agentName);\n\n Map<String, List<Point2D>> getPaths();\n void removePath(int index);\n void removePath(String name);\n void addPath(String name, List<Point2D> path);\n\n String getBackgroundImageURL();\n void setBackgroundImageURL(String imageURL);\n\n ILevelDefinition clone() throws CloneNotSupportedException;\n\n void defineAttribute(IAttributeDefinition attribute);\n List<? extends IAttributeDefinition> getAttributes();\n}",
"public interface IEmpowering {\n\n /**\n * Obtains the modifier stored in an instance of the implementing class\n * @return The modifier instance stored in this instance\n */\n Modifier getModifier();\n\n /**\n * Sets the modifier to store in an instance of the implementing class\n * @param modifier The modifier instance to store\n */\n void setModifier(Modifier modifier);\n\n /**\n * Determines if the instance of the implementing class has applied its modifier\n * This is used as a basis for any post-modifier-application logic\n * @return Whether or not the instance of the implementing class has applied its modifier\n */\n boolean hasAppliedModifier();\n\n /**\n * Sets the stored boolean in the instance of the implementing class that\n * determines if it has applied the stored modifier to another entity\n * @param hasAppliedModifier The value to set the stored boolean to\n */\n void setHasAppliedModifier(boolean hasAppliedModifier);\n\n /**\n * Sets a random modifier for an instance of the implementing class\n * @param value the value to instantiate the Modifier instance with\n * @param duration The duration to instantiate the Modifier instance with\n */\n default void setRandomModifier(double value, int duration){\n Random random = new Random();\n Modifier.ModifierType[] modifierTypes = Modifier.ModifierType.values();\n Modifier.ModifierType randomType = modifierTypes[random.nextInt(modifierTypes.length)];\n Modifier randomModifier = new Modifier(randomType, value, duration);\n this.setModifier(randomModifier);\n }\n}",
"public interface Registry {\n\n Bonus getRandom();\n Bonus getByName(String name);\n\n}",
"private AttributeTypeHome( )\n {\n }",
"private GestionTour() {}",
"IotdslFactory getIotdslFactory();",
"TxtUMLFactory getTxtUMLFactory();",
"public int getLand();",
"public interface FighterFactory {\n /**\n * Create a PlayerFighter from a game player\n *\n * @param player The player\n *\n * @return The PlayerFighter\n */\n public PlayerFighter create(GamePlayer player);\n}",
"public static StatespaceFactory init() {\r\n\t\ttry {\r\n\t\t\tStatespaceFactory theStatespaceFactory = (StatespaceFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://se.compute.dtu.dk/ecno/statespace/1.0\"); \r\n\t\t\tif (theStatespaceFactory != null) {\r\n\t\t\t\treturn theStatespaceFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new StatespaceFactoryImpl();\r\n\t}",
"Wcs111Factory getWcs111Factory();",
"public org.omg.uml.behavioralelements.commonbehavior.Instance getInstance();",
"private Seabee() {\n register(DirectionMarkerDetector.getInstance());\n register(GateDetector.getInstance());\n\n registerSubsystem(PathPlanner.getInstance());\n registerSubsystem(Imu.getInstance());\n registerSubsystem(Thrusters.getInstance());\n }",
"public static ControlFactory init() {\n\t\ttry {\n\t\t\tControlFactory theControlFactory = (ControlFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://opaeum.org/uimetamodel/control/1.0\"); \n\t\t\tif (theControlFactory != null) {\n\t\t\t\treturn theControlFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ControlFactoryImpl();\n\t}",
"void mo1943l();",
"public static Light getInstance() {\n\treturn INSTANCE;\n }",
"Parcelle createParcelle();",
"FloorType createFloorType();",
"Schulleiter createSchulleiter();",
"public interface InstancesFactory extends EFactory\n{\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tInstancesFactory eINSTANCE = org.xtext.lwc.instances.instances.impl.InstancesFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Instance</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Instance</em>'.\n\t * @generated\n\t */\n\tInstance createInstance();\n\n\t/**\n\t * Returns a new object of class '<em>Import</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Import</em>'.\n\t * @generated\n\t */\n\tImport createImport();\n\n\t/**\n\t * Returns a new object of class '<em>Date Literal</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Date Literal</em>'.\n\t * @generated\n\t */\n\tDateLiteral createDateLiteral();\n\n\t/**\n\t * Returns a new object of class '<em>Object Literal</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Object Literal</em>'.\n\t * @generated\n\t */\n\tObjectLiteral createObjectLiteral();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tInstancesPackage getInstancesPackage();\n\n}",
"public interface IFactory {\n ICustomer getCustomer(CustomerType type);\n IAccount getAccount(Enum type);\n// IEntry getEntry(EntryType type);\n DAO getDAO(Enum type);\n\n}",
"Instance createInstance();",
"public interface Allele {\n}",
"VehicleClass() {}"
] |
[
"0.6290724",
"0.6051664",
"0.60216403",
"0.6000509",
"0.5899137",
"0.5844051",
"0.5788023",
"0.577988",
"0.57562953",
"0.5745632",
"0.57453376",
"0.5742706",
"0.57282615",
"0.5718282",
"0.57161826",
"0.5714824",
"0.5709709",
"0.56946355",
"0.5667844",
"0.56577295",
"0.5647131",
"0.56352484",
"0.5630577",
"0.5617227",
"0.5615539",
"0.560416",
"0.5595796",
"0.55922854",
"0.5581823",
"0.5561829",
"0.55356735",
"0.553521",
"0.5530195",
"0.5517116",
"0.551582",
"0.5492299",
"0.5469624",
"0.54691046",
"0.5467385",
"0.5453374",
"0.54464537",
"0.5441271",
"0.54323214",
"0.54176533",
"0.54119605",
"0.5407671",
"0.5407671",
"0.54022515",
"0.54017544",
"0.53883827",
"0.538497",
"0.5384599",
"0.5376476",
"0.5360581",
"0.5357151",
"0.53557205",
"0.53492016",
"0.5348289",
"0.5346113",
"0.5344247",
"0.5343477",
"0.5335228",
"0.53220195",
"0.5320132",
"0.5319997",
"0.531459",
"0.5305048",
"0.53029853",
"0.53012615",
"0.5297745",
"0.5296127",
"0.5293042",
"0.5288551",
"0.5276552",
"0.527625",
"0.526909",
"0.5267486",
"0.52672493",
"0.5266778",
"0.5262017",
"0.5257994",
"0.52522725",
"0.5250963",
"0.5250246",
"0.5249771",
"0.52493775",
"0.5249154",
"0.52481925",
"0.52479225",
"0.5235009",
"0.5233063",
"0.52287346",
"0.5228594",
"0.52275926",
"0.5224433",
"0.5224296",
"0.522017",
"0.5219723",
"0.52151245",
"0.521051",
"0.52079445"
] |
0.0
|
-1
|
Programmer can add customer without knowing the implementation of addCustomer method.
|
public static void main(String[] args) {
CustomerRecords customerRecords = new CustomerRecords();
customerRecords.addCustomer(new Customer("Swapnil"));
customerRecords.addCustomer(new Customer("Deva"));
customerRecords.addCustomer(new Customer("Prashant"));
// Now we need list of all customers to be printed out.
Map<String, Customer> records = customerRecords.getCustomers();
System.out.println("Customer Records " + records);
// But we have escaping reference of map having customer records.
// Programmer can clear all the records accidently with escaped reference of customer records map.
// Escaping references may lead system to inconsistency.
records.clear();
System.out.println("Escaped customer records reference test " + customerRecords.getCustomers());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"static void addCustomer(customer customer) {\n\n }",
"public boolean addCustomer(CustomerBean customer);",
"public boolean addCustomer(Customer customer) throws DatabaseOperationException;",
"private void addCustomer() {\n try {\n FixCustomerController fixCustomerController = ServerConnector.getServerConnector().getFixCustomerController();\n\n FixCustomer fixCustomer = new FixCustomer(txtCustomerName.getText(), txtCustomerNIC.getText(), String.valueOf(comJobrole.getSelectedItem()), String.valueOf(comSection.getSelectedItem()), txtCustomerTele.getText());\n\n boolean addFixCustomer = fixCustomerController.addFixCustomer(fixCustomer);\n\n if (addFixCustomer) {\n JOptionPane.showMessageDialog(null, \"Customer Added Success !!\");\n } else {\n JOptionPane.showMessageDialog(null, \"Customer Added Fail !!\");\n }\n\n } catch (NotBoundException | MalformedURLException | RemoteException ex) {\n new ServerNull().setVisible(true);\n } catch (ClassNotFoundException | IOException ex) {\n Logger.getLogger(InputCustomers.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Override\n\tpublic void addCustomer(Customer customer, Branch branch) {\n\t\t\n\t}",
"public void addCustomer() {\r\n\t\tdo {\r\n\t\t\tString name = getToken(\"Enter the customer's name: \");\r\n\t\t\tString phoneNumber = getToken(\"Enter the phone number: \");\r\n\t\t\tCustomer customer = store.addCustomer(name, phoneNumber);\r\n\t\t\tif (customer == null) {\r\n\t\t\t\tSystem.out.println(\"Could not add customer.\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(customer);\r\n\t\t} while (yesOrNo(\"Would you like to add another Customer?\"));\r\n\t}",
"public void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has added Successfully!\");\n }",
"@Override\n\tpublic boolean createCustomer(Customer customer) {\n\n\t\tif (customer != null) {\n\t\t\tcustomers.add(customer);\n\t\t\tlogger.info(\"Customer added to the list\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlogger.info(\"Failed to add customer to the list: createCustomer()\");\n\t\t\treturn false;\n\t\t}\n\t}",
"public void addUser(Customer user) {}",
"@Override\n public void addCustomer(Customer customer) {\n log.info(\"Inside addCustomer method\");\n customerRepository.save(customer);\n }",
"@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"Mobile Customer Add()\");\n\t}",
"@Override\n\tpublic void addCustomer(Customer customer) {\n\t\tcustomerDao.addCustomer(customer);\n\t}",
"@Override\n\tpublic void addCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().save(customer);\n\t}",
"@Override\n\tpublic boolean addCustomer(Customer customer) {\n\t\tint result=0;\n\t\tConnection connection;\n\t\ttry {\n\t\t\tconnection = DBConnection.makeConnection();\n\t\t\tPreparedStatement Statement = connection.prepareStatement(INSERT_CUSTOMER_QUERY);\n\t\t\tStatement.setInt(1, customer.getCustomerId());\n\t\t\tStatement.setString(2, customer.getCustomerName());\n\t\t\tStatement.setString(3, customer.getCustomerAddress());\n\t\t\t\tStatement.setInt(4, customer.getBillAmount());\n\t\t\t\tresult=Statement.executeUpdate();\n\n\t\t} \n\t\tcatch(SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\n\t\tif(result==0)\n\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n\t@Transactional\n\tpublic void addCustomer(Customer customer) {\n\n\t\tSystem.out.println(\"here is our customer\" + customer);\n\n\t\thibernateTemplate.saveOrUpdate(customer);\n\n\t}",
"public void addCustomer(Customer customer) throws UserExistsException {\r\n if (customerExists(customer)){\r\n throw new UserExistsException(\"Customer \"+ customer.getF_Name()+\" already exists\");\r\n }\r\n customers.add(customer);\r\n }",
"@Override\n\tpublic boolean addCustomer(Customer customer) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t try {\n\t\tShippingAddress shippingAddress=customer.getShippingAddress();\n\t session.save(customer);\n\t session.save(shippingAddress);\n\t\n\t\treturn true;\n\t }\n\t catch(HibernateException e)\n\t {\n\t \t\n\t \te.printStackTrace();\n\t \treturn false;\n\t }\n\t}",
"public void addCustomer(String c){\n\t\tif(!containsCustomer(c)){\n\t\t\tCustomer e = new Customer(c);\n\t\t\tlist.add(e);\n\t\t}\n\t}",
"public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}",
"public void addCustomer(Customer customer) {\r\n if (hasID(customer.getID())) {\r\n return;\r\n }\r\n\r\n for (int i = 0; i < customers.length; i++) {\r\n if (customers[i] == null) {\r\n customers[i] = customer;\r\n return;\r\n }\r\n }\r\n\r\n System.err.println(\"No more room in database!\");\r\n }",
"@Override\r\n\tpublic Customer addCustomer(Customer customer) {\r\n\r\n\t\tif (!inputValidator.nameValidator(customer.getName()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a Valid Customer Name.\");\r\n\t\tif (!inputValidator.userIdValidator(customer.getUserId()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a Valid UserId.\");\r\n\t\tif (!inputValidator.contactValidator(customer.getContactNo()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a valid Contact Number.\");\r\n\t\tif (!inputValidator.emailValidator(customer.getEmail()))\r\n\t\t\tthrow new EntityCreationException(\"Enter a valid Email.\");\r\n\t\tCustomer customer2 = customerRepository.save(customer);\r\n\t\treturn customer2;\r\n\r\n\t}",
"public int addCustomer(Customer customer) {\n return model.addCustomer(customer);\n }",
"public au.gov.asic.types.AccountIdentifierType addNewCustomer()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().add_element_user(CUSTOMER$0);\n return target;\n }\n }",
"private void addCustomer(Customer customer) {\n List<String> args = Arrays.asList(\n customer.getCustomerName(),\n customer.getAddress(),\n customer.getPostalCode(),\n customer.getPhone(),\n customer.getCreateDate().toString(),\n customer.getCreatedBy(),\n customer.getLastUpdate().toString(),\n customer.getLastUpdatedBy(),\n String.valueOf(customer.getDivisionID())\n );\n DatabaseConnection.performUpdate(\n session.getConn(),\n Path.of(Constants.UPDATE_SCRIPT_PATH_BASE + \"InsertCustomer.sql\"),\n args\n );\n }",
"public void addFlag(Customer c){\n }",
"@Path(\"customer\")\n @Service({\"customer\"})\n public ResponseMessage addCustomer(Customer customer) {\n return csi.addCustomer(customer);\n }",
"@Override\n\tpublic int addCustomerReprieve(CustomerReprieve customerReprieve) {\n\t\treturn customerDao.addCustomerReprieve(customerReprieve);\n\t}",
"public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }",
"public Customermodel addCustomer(Customermodel customermodel) {\n\t\t return customerdb.save(customermodel);\n\t }",
"public Customer addCustomer(Customer customer) {\n customer.setMemberSince(LocalDate.now());\n customer.setStatus(MembershipStatus.ACTIVE);\n return customerRepository.save(customer);\n }",
"public void addCustomerTest() {\n\t\tassertNotNull(\"Test if there is valid Customer arraylist to add to\", CustomerList);\r\n\t\t\r\n\t\t//Given an empty list, after adding 1 item, the size of the list is 1 - normal\r\n\t\t//The item just added is as same as the first item of the list\r\n\t\tCustomerMain.addCustomer(CustomerList, cust1);\t\t\r\n\t\tassertEquals(\"Test that Customer arraylist size is 1\", 1, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is added\", cust1, CustomerList.get(0));\r\n\t\t\r\n\t\t//Add another item. test The size of the list is 2? - normal\r\n\t\t//The item just added is as same as the second item of the list\r\n\t\tCustomerMain.addCustomer(CustomerList, cust2);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 2\", 2, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is added\", cust2, CustomerList.get(1));\r\n\t\t\r\n\t\t//Add another item. test The size of the list is 3? - normal\r\n\t\t//The item just added is as same as the second item of the list\r\n\t\tCustomerMain.addCustomer(CustomerList, cust3);\r\n\t\tassertEquals(\"Test that Customer arraylist size is 2\", 3, CustomerList.size());\r\n\t\tassertSame(\"Test that Customer is added\", cust3, CustomerList.get(2));\r\n\t}",
"public boolean add(String firstName, String lastName, String email, String phoneNumber) {\n Customer c = new Customer(firstName, lastName, email, phoneNumber);\n return customerCrudInterface.add(c);\n\n }",
"public static void createAccount(Customer customer) {\n\t\tcustomerList.add(customer);\n\t}",
"public void addCustomer(CustomerWithGoods customer) {\n\t\tthis.allCustomers.add(customer);\n\t}",
"@Override\n\tpublic void createCustomer(Customer customer) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\ttry {\n\t\t\t\n\t\t\tStatement st = con.createStatement();\n\t\t\tString create = String.format(\"insert into customer values('%s', '%s')\", customer.getCustName(),\n\t\t\t\t\tcustomer.getPassword());\n\t\t\tst.executeUpdate(create);\n\t\t\tSystem.out.println(\"Customer added successfully\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \"Unable to add A customer, Try Again! \");\n\t\t} finally {\n\t\t\tpool.returnConnection(con);\n\t\t}\n\t}",
"@Test\n\tpublic void addCustest() {\n\t\tbc.addCustomer(\"wgl\", myDate, \"Beijing\");\n\t\tint flag = 0;\n\t\tfor(Customer cus : bc.cusList){\n\t\t\tif(cus.getName().equals(\"wgl\")){\n\t\t\t\tflag = 1;\n\t\t\t}\n\t\t}\n\t\tassertEquals(1, flag);\n\t}",
"public void add(Customer customer) {\n\t\tSessionFactory sessionFactory = HibernateUtil.getSessionFactory();\n\t\t//Step 2. Create/Obtain Session object\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//Step 3. Start/Participate in a Transaction\n\t\tTransaction tx = session.beginTransaction();\n\t\t\n\t\t//Now we can insert/update/delete/select whatever we want\n\t\tsession.save(customer); //save method generates insert query\n\t\t\n\t\ttx.commit();\n\t}",
"@Test(alwaysRun=true, priority=15,enabled=true)\n\tpublic void addNewCustomer() throws InterruptedException, IOException {\t\n\t\tadminPage.addNewCustomer(driver);\n\t}",
"@Override\r\n\tpublic int insertCustomer(Customer customer) throws BillingServicesDownException {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic boolean createAccount(CustomerBean cb) {\n\t\r\n\t\treturn customerList.add(cb);\r\n\t}",
"public int insertCustomer() {\n\t\treturn 0;\r\n\t}",
"public static DAO AddCustomer(Customer customer) throws CustomerIDExistsException, IllegalStateException\r\n\t{\r\n\t\treturn instance.addCustomer(customer);\r\n\t}",
"public void setCustomer(Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t\tpassengers.add(customer);\r\n\t}",
"Customer createCustomer();",
"Customer createCustomer();",
"Customer createCustomer();",
"Customer createCustomer();",
"@Override\r\n\tpublic void createAccount(Customer customer) {\n\t\tcustMap.put(customer.getMobileNo(),customer);\r\n\t\t\r\n\t}",
"public static void addBankAccount(Customer customer) {\r\n\t\tcustomerBankAccountList.add(customer);\t\r\n\t\tcustomer.makeBankAccount();\r\n\t}",
"public void add(Customer customer) throws CustomerAlreadyExistsException{\n\t\tList<Customer> checkLastName = repository.findByLastName(customer.getLastName());\n\t\tList<Customer> checkFirstName = repository.findByFirstName(customer.getFirstName());\n\t\t\n\t\tif ( (!checkLastName.isEmpty() ) && (!checkFirstName.isEmpty() ) ) {\n\t\t\tthrow new CustomerAlreadyExistsException(\"Customer already exists!\");\n\t\t}\n\t\trepository.save(customer);\n\t}",
"public void registerNewCustomers(Customer c) {\n if (!newCustomers.contains(c)\n && !modifiedCustomers.contains(c)) {\n newCustomers.add(c);\n }\n }",
"public static boolean addCustomer(Customer customer) throws SQLException {\n \n if (customerInDatabase(customer.getCustomer())) {\n System.out.println(\"Customer \" + customer.getCustomer() + \" already in DB (addCustomer)\");\n return false;\n }\n else if (customer.getCustomer().isEmpty()) {\n System.out.println(\"Customer given is empty (addCustomer\");\n return false;\n }\n String insertStatement = \"INSERT INTO customer(customerName, addressId, active, createDate, createdBy, lastUpdateBy) \" +\n \"VALUES (?,?,?,?,?,?)\";\n \n DBQueryPrepared.setPreparedStatement(CONN, insertStatement);\n ps = DBQueryPrepared.getPreparedStatement();\n ps.setString(1, customer.getCustomer());\n ps.setString(2, String.valueOf(customer.getAddressId()));\n ps.setString(3, \"1\");\n ps.setString(4, model.timeConversion.getTime().toString());\n ps.setString(5, \"currentUser\");\n ps.setString(6, \"currentUser\");\n ps.execute();\n return true; \n }",
"public void addCustomer(CustomerAccount acc){\n accountHM.put(acc.getVehicle().getPlate(),acc);\n }",
"public void addCustomer() {\n\t\tSystem.out.println(\"Enter your first name.\");\n\t\tString fn = scan.nextLine();\n\t\tSystem.out.println(\"Enter your last name.\");\n\t\tString ln = scan.nextLine();\n\t\tSystem.out.println(\"Enter your username.\");\n\t\tString user = scan.nextLine();\n\t\tSystem.out.println(\"Enter your password.\");\n\t\tString pw = scan.nextLine();\n\t\tSystem.out.println(\"Password once more (to be safe.)\");\n\t\tString pw2 = scan.nextLine();\n\t\t/*if (pw.toString() != pw2.toString()) {\n\t\t\tSystem.out.println(\"Whoops! Let's try that again.\");\n\t\t\taddCustomer();\n\t\t}\n\t\t*/\n\t\t//else {\n String sql = \"INSERT INTO bank.login (first_name, last_name, user_name, password) VALUES (\"+\"\\\"\"+fn+\"\\\"\"+\", \"+\"\\\"\"+ln+\"\\\"\"+\", \"\n\t\t+\"\\\"\"+user+\"\\\"\"+\", \"+\"\\\"\"+pw+\"\\\"\"+\")\";\n\n try{\n \t\n \tconnect.databaseUtil();\n Statement statement = Database.connection.createStatement();\n // ResultSet resultSet =\n \t\tstatement.executeUpdate(sql);\n try {\n \t\t\tconnect.databaseClose();\n \t\t} catch (SQLException e) {\n \t\t\t\n \t\t\te.printStackTrace();\n \t\t}\n\n bank.start();\n }\n \n\n catch(SQLException e){\n \t\te.printStackTrace();\n Menus.custMenu();\n\n }\n\n \n\t\t\n\t}",
"@PreAuthorize(\"#oauth2.hasAnyScope('write','read-write')\")\n\t@RequestMapping(method = POST, consumes = { APPLICATION_JSON_UTF8_VALUE })\n\tpublic Mono<ResponseEntity<?>> addCustomer(@RequestBody @Valid Customer newCustomer) {\n\n\t\treturn Mono.justOrEmpty(newCustomer.getId())\n\t\t\t.flatMap(id -> repo.existsById(id))\n\t\t\t.defaultIfEmpty(Boolean.FALSE)\n\t\t\t.flatMap(exists -> {\n\n\t\t\t\tif (exists) {\n\t\t\t\t\tthrow new CustomerServiceException(HttpStatus.BAD_REQUEST,\n\t\t\t\t\t\t\"Customer already exists, to update an existing customer use PUT instead.\");\n\t\t\t\t}\n\n\t\t\t\treturn repo.save(newCustomer).map(saved -> {\n\t\t\t\t\treturn created(URI.create(format(\"/customers/%s\", saved.getId()))).build();\n\t\t\t\t});\n\t\t\t});\n\t}",
"public void add(Customer c) {\n customers.add(c);\n\n fireTableDataChanged();\n }",
"@Test\n public void testCustomerFactoryGetCustomer() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n assertEquals(CUSTOMER_NAME, customerController.getCustomer(1).getName());\n }",
"@PostMapping( value = CustomerRestURIConstants.POST_CUSTOMER )\n\tpublic ResponseEntity<?> addCustomer(@RequestBody Customer customer) {\n\t\tlong id = customerService.save(customer);\n\t return ResponseEntity.ok().body(\"New Customer has been saved with ID:\" + id);\n\t}",
"@Override\r\n\tpublic int insertNewCustomer(Customer cust) throws CustException {\n\t\tmanager.persist(cust);\r\n\t\treturn 1;\r\n\t}",
"public void addCustomer() {\n\t \n\t try{\n\t\t con = openDBConnection();\n\t\t callStmt = con.prepareCall(\" {call team5.CUSTOMER_ADD_PROC(?,?,?,?,?,?,?)}\");\n\t\t callStmt.setString(1,this.emailad);\n\t\t callStmt.setString(2,this.fname);\n\t\t callStmt.setString(3,this.lname);\n\t\t callStmt.setString(4,this.username);\n\t\t callStmt.setString(5,this.password);\n\t\t callStmt.setString(6,this.adminUsername);\n\t\t callStmt.setInt(7, this.id);\n\t\t callStmt.execute();\n\t\t callStmt.close();\n\t } catch (Exception E) {\n\t E.printStackTrace();\n\t }\n}",
"@Test\n\t// @Disabled\n\tvoid testCreateCustomer() {\n\t\tCustomer customer = new Customer(1, \"tom\", \"son\", \"951771122\", \"[email protected]\");\n\t\tMockito.when(custRep.save(customer)).thenReturn(customer);\n\t\tCustomer persistedCust = custService.addCustomer(customer);\n\t\tassertEquals(1, persistedCust.getCustomerId());\n\t}",
"@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}",
"private Customer storeCustomer(Customer customer){\n customerRestService.createCustomer(customer);\n return customer;\n }",
"boolean hasCustomer();",
"boolean hasCustomer();",
"public void register(Customer c) {\n\t\tUser.customers.add(c);\n\t}",
"public static void addNewCustomer(final ArrayList<Car> carList, ArrayList<Customer> customerList, HashSet<Integer> idHashSet)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Input Customer ID and Customer Name\");\n\t\tint custIdInput = sc.nextInt();\n\t\t\n\t\t//Check if the Entered ID is unique and is not used by any other customer\n\t\tif(ValidationCheck.isIdUnique(custIdInput, idHashSet) != true)\n\t\t{\n\t\t\tSystem.out.println(\"Please Enter a Unique Customer Id\");\n\t\t\treturn;\n\t\t}\n\t\tidHashSet.add(custIdInput);\n\t\tString custNameInput = sc.next();\n\t\t\n\t\t//check if Name consists of valid characters\n\t\tif(ValidationCheck.isValidName(custNameInput) != true)\n\t\t{\n\t\t\tSystem.out.println(\"Please enter a valid Customer Name\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t Customer customerObj = new Customer(custIdInput, custNameInput, carList);\n\t customerList.add(customerObj);\n\t}",
"@PostMapping(\"/customers\")\r\n\tpublic Customer addCustomer(@RequestBody Customer customer) {\n\t\tcustomer.setId(0);\r\n\t\t\r\n\t\tcustomerService.saveCustomer(customer);\r\n\t\treturn customer;\r\n\t}",
"public boolean addCustomer(int phone, int discount, String name, String address, String group)\n\t{\n\t\tCustomer customer = new Customer(phone,discount,name,address,group);\n\t\treturn CustomerContainer.getInstance().addCustomer(customer);\n\t}",
"AccountModel addByCustomer(AccountModel account,String customerId) throws AccountException, CustomerException;",
"@Override\n\tpublic Customer register(Customer customer) {\n\t\tcustomer=customerRepo.addCustomer(customer);\n\t\treturn customer;\n\t}",
"Customer(){}",
"@RequestMapping(value = \"/customers\", method = RequestMethod.POST)\n public ResponseEntity<?> addCustomer(@RequestBody Customer customer) {\n Customer aNewCustomer = customerService.newCustomer(customer);\n return new ResponseEntity<>(aNewCustomer, HttpStatus.CREATED);\n }",
"public void addCustomer(ArrayList<String> customers) {\n System.out.println(\"what is your name?\");\n String userName = System.console().readLine();\n // System.out.println(\"your name is = \" + userName);\n customers.add(userName);\n System.out.println(\"you have \" + (customers.size() - 1) + \" ahead of you\");\n\n }",
"public boolean insertCustomer(Customer customer){\n\n ContentValues cv = new ContentValues();\n\n cv.put(\"customer_name\", customer.getName());\n cv.put(\"customer_description\", customer.getDescription());\n\n long insert = _db.insert(\"Customer\", null, cv);\n\n // Checks if rows have been updated.\n if(insert == -1){\n return false;\n }\n\n return true;\n }",
"void insert(Customer customer);",
"private Customer addCustomer(String title, String firstName, String lastName, String phone, String email, String addressLine1, String addressLine2, String city, String state, String postCode, String country) {\r\n out.print(title);\r\n out.print(firstName);\r\n out.print(lastName);\r\n out.print(phone);\r\n out.print(email);\r\n out.print(addressLine1);\r\n out.print(addressLine2);\r\n out.print(city);\r\n out.print(state);\r\n out.print(postCode);\r\n out.print(country);\r\n\r\n Customer customer = new Customer();\r\n customer.setCustomerTitle(title);\r\n customer.setCustomerFirstName(firstName);\r\n customer.setCustomerLastName(lastName);\r\n customer.setCustomerPhone(phone);\r\n customer.setCustomerEmail(email);\r\n customer.setCustomerAddressLine1(addressLine1);\r\n customer.setCustomerAddressLine2(addressLine2);\r\n customer.setCustomerCity(city);\r\n customer.setCustomerState(state);\r\n customer.setCustomerPostCode(postCode);\r\n customer.setCustomerCountry(country);\r\n\r\n em.persist(customer);\r\n return customer;\r\n }",
"@Test\n public void testCustomerFactoryCreate() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n assertEquals(1, customerController.getCustomerList().size());\n }",
"public void addCustomer(CustomerSignup p)\n {\n Session session = this.sessionFactory.getCurrentSession();\n \n session.persist(p);\n \n CustomerLogin cl=new CustomerLogin();\n cl.setUsername(p.getUsername());\n cl.setPassword(p.getPassword());\n cl.setId(p.getId());\n session.persist(cl);\n \n Authorities a = new Authorities();\n a.setUsername(p.getUsername());\n a.setAuthority(\"ROLE_USER\");\n a.setId(p.getId());\n session.saveOrUpdate(a);\n\n session.flush();\n \n logger.info(\"Customer saved successfully, Customer Details=\"+p);\n }",
"public void setCustomer(String customer) {\n this.customer = customer;\n }",
"@PostMapping(\"/customers\")\n public Customer addCustomer(@RequestBody Customer theCustomer)\n {\n //also just in case they pass an id in JSON .. set id to o\n //this is to force a save of new item ... instead od update\n theCustomer.setId(0);\n customerService.save(theCustomer);\n return theCustomer;\n }",
"public Customer saveCustomer(Customer customer) {\n\t\treturn null;\n\t}",
"public Customer createCustomer() {\r\n\t\ttry {\r\n\t\t\treturn manager.createCustomer();\t\t\t\r\n\t\t}catch(SQLException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"The manager was unable to create a new customer\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void handleCustomer(Customer cust) {\n\t}",
"@Override\n\tpublic void handleCustomer(Customer cust) {\n\t}",
"@Override\n\tpublic void handleCustomer(Customer cust) {\n\t}",
"@Override\n\tpublic void handleCustomer(Customer cust) {\n\t}",
"@Override\n\tpublic void handleCustomer(Customer cust) {\n\t}",
"BonusResponse add(Long customerId, Long authorizedBy, BonusRequest bonus);",
"io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();",
"public boolean addCustomerDetails(Account account) {\n\t\treturn dao.addCustomerDetails(account);\r\n\t}",
"public boolean addCustomer(String newCustomerName, double firstTransaction) {\n Customer foundCustomer = findCustomer(newCustomerName);\n\n if (foundCustomer != null) {\n System.out.println(newCustomerName + \" was found on file\");\n return false;\n }\n\n this.customers.add(new Customer(newCustomerName, firstTransaction));\n return true;\n }",
"@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\treturn false;\n\t}",
"public void addRequest(CustomerRequest request) {\n\n\t}",
"@Override\n\tpublic void create(Customer t) {\n\n\t}",
"public static void createCustomer() throws IOException\r\n\t{\r\n\t\tclearScreen();\r\n\t\t\r\n\t\tSystem.out.println(\"[CUSTOMER CREATOR]\\n\");\r\n\t\tSystem.out.println(\"Enter the name of the customer you would like to create:\");\r\n\t\t\r\n\t\t// create a new customer with a user-defined name\r\n\t\tCustomer c = new Customer(inputString(false));\r\n\t\t// add the customer to the ArrayList\r\n\t\tcustomers.add(c);\r\n\t\t// display the edit screen for the customer\r\n\t\teditCustomer(c);\r\n\t}",
"public interface CustomerInterface {\n\n\t/**\n\t * @return a string equivalent to delivery option\n\t */\n\tString getDeliveryString();\n\n\t/**\n\t * @return firstName\n\t */\n\tString getFirstName();\n\n\t/**\n\t * @return lastName\n\t */\n\tString getLastName();\n\n\t/**\n\t * @return phone\n\t */\n\tString getPhone();\n\n\t/**\n\t * @return address\n\t */\n\tString getAddress();\n\n\t/**\n\t * @return pizzaList\n\t */\n\tArrayList<Pizza> getPizzaList();\n\n\t/**\n\t * Validates and sets firstName\n\t * @param firstName\n\t * @throws IllegalArgumentException if argument does not pass validation rule\n\t */\n\tvoid setFirstName(String firstName) throws IllegalArgumentException;\n\n\t/**\n\t * Validates and sets lastName\n\t * @param lastName\n\t * @throws IllegalArgumentException if argument does not pass validation rule\n\t */\n\tvoid setLastName(String lastName) throws IllegalArgumentException;\n\n\t/**\n\t * Validates and sets phone\n\t * @param phone\n\t * @throws IllegalArgumentException if argument does not pass validation rule\n\t */\n\tvoid setPhone(String phone) throws IllegalArgumentException;\n\n\t/**\n\t * Validates and sets address\n\t * @param address\n\t * @throws IllegalArgumentException if argument does not pass validation rule\n\t */\n\tvoid setAddress(String address) throws IllegalArgumentException;\n\n\t/**\n\t * @return raw delivery boolean\n\t */\n\tboolean getDelivery();\n\n\t/**\n\t * @param pizza to add to list\n\t */\n\tvoid addPizza(Pizza pizza);\n\n}",
"public boolean addCustomer(String branchName, String customerName, double amount) {\n\t\tBranch branch = findBranch(branchName);\n\t\tif (branch != null) {\n\t\t\treturn branch.addNewCustomToBranch(customerName, amount);\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasCustomer() {\n return customer_ != null;\n }",
"public boolean addCustomerTransaction(String customerName, double transaction){\n Customer existingCustomer = findCustomer(customerName);\n if(existingCustomer != null){\n existingCustomer.addTransaction(transaction);\n return true;\n }\n return false;\n }",
"public synchronized Person addNewBuyer(String name) {\n Customer newCustomer = new Customer(UsersSerialGenerator++,name);\n m_CustomersInSystem.put(name,newCustomer);\n return newCustomer;\n }"
] |
[
"0.802739",
"0.7938199",
"0.787156",
"0.7809706",
"0.7763907",
"0.77033293",
"0.7598484",
"0.757874",
"0.75442433",
"0.75144446",
"0.74603623",
"0.74243313",
"0.7354336",
"0.72719395",
"0.72691774",
"0.72624373",
"0.72258896",
"0.71291137",
"0.710161",
"0.70838875",
"0.7054402",
"0.7000217",
"0.6974523",
"0.6966231",
"0.69244045",
"0.68974984",
"0.68962777",
"0.6851886",
"0.6844314",
"0.67926484",
"0.67547476",
"0.6752162",
"0.6746385",
"0.6719437",
"0.6706347",
"0.67010456",
"0.66661674",
"0.66617346",
"0.6659986",
"0.66598773",
"0.6651084",
"0.6641101",
"0.6606915",
"0.6602498",
"0.6602498",
"0.6602498",
"0.6602498",
"0.6598434",
"0.6594489",
"0.65936387",
"0.6586078",
"0.6584211",
"0.65751535",
"0.6570002",
"0.65316266",
"0.6523093",
"0.65107185",
"0.65065664",
"0.6499002",
"0.649538",
"0.6464713",
"0.64575887",
"0.64490616",
"0.64481866",
"0.64481866",
"0.64471346",
"0.6432637",
"0.6431378",
"0.64247763",
"0.64209384",
"0.6417061",
"0.63998294",
"0.63788944",
"0.6375091",
"0.63714993",
"0.6369334",
"0.63641405",
"0.6360487",
"0.63567173",
"0.63433063",
"0.6337939",
"0.6320427",
"0.6315017",
"0.63145137",
"0.63145137",
"0.63145137",
"0.63145137",
"0.63145137",
"0.62952",
"0.6282138",
"0.62772244",
"0.62682617",
"0.6267764",
"0.6254142",
"0.6243308",
"0.6241965",
"0.6241604",
"0.623738",
"0.62203604",
"0.6216945",
"0.6213122"
] |
0.0
|
-1
|
source type: NavigatorConcurrentHardware flags: Object (32768) declared in: tsd/browser/lib.es6.d.ts at pos 733367
|
@JsType(isNative=true, namespace=JsPackage.GLOBAL, name="Object")
public interface NavigatorConcurrentHardware
{
/*
Methods
*/
/**
* inherited from (js.browser.NavigatorConcurrentHardware)
*/
@JsProperty(name = "hardwareConcurrency")
Number getHardwareConcurrency();
/**
* inherited from (js.browser.NavigatorConcurrentHardware)
*/
@JsProperty(name = "hardwareConcurrency")
void setHardwareConcurrency(@DoNotAutobox Number value);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@JsType(isNative=true, namespace=JsPackage.GLOBAL, name=\"Object\")\npublic interface MSNavigatorDoNotTrack\n{\n\n /*\n Methods\n */\n /** \n * Std Signature : S(confirmSiteSpecificTrackingException,27,,P(d152))\n * TE Signature : S(confirmSiteSpecificTrackingException,P(d152))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732792\n */\n Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);\n /** \n * Std Signature : S(confirmWebWideTrackingException,27,,P(d153))\n * TE Signature : S(confirmWebWideTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732891\n */\n Boolean confirmWebWideTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(removeSiteSpecificTrackingException,289,,P(d153))\n * TE Signature : S(removeSiteSpecificTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@732965\n */\n void removeSiteSpecificTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(removeWebWideTrackingException,289,,P(d153))\n * TE Signature : S(removeWebWideTrackingException,P(d153))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733040\n */\n void removeWebWideTrackingException(ExceptionInformation args);\n /** \n * Std Signature : S(storeSiteSpecificTrackingException,289,,P(d154))\n * TE Signature : S(storeSiteSpecificTrackingException,P(d154))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733110\n */\n void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);\n /** \n * Std Signature : S(storeWebWideTrackingException,289,,P(d155))\n * TE Signature : S(storeWebWideTrackingException,P(d155))\n * \n */\n /** \n * apis/browser-api/tsd/lib.es6.d.ts@733202\n */\n void storeWebWideTrackingException(StoreExceptionsInformation args);\n}",
"static Executor m4016b() {\n return f4073a.f4076d;\n }",
"public interface C3210f extends C11871b<DeletedProgramBroadcastReceiver> {\n\n /* renamed from: com.bamtechmedia.dominguez.channels.tv.f$a */\n /* compiled from: FeatureChannelModule_ProvidesWatchNextProgramBroadcastReceiver */\n public interface C3211a extends C11872a<DeletedProgramBroadcastReceiver> {\n }\n}",
"public interface C43014c extends C1694a {\n\n /* renamed from: com.tencent.mm.plugin.expt.a.c$a */\n public enum C38982a {\n MM_DEFAULT(0),\n MMAppMgr_Activated(1),\n MMAppMgr_Deactivated(2),\n MMLifeCall_OnResume(3),\n MMLifeCall_OnPause(4),\n MMActivity_OnResume(5),\n MMActivity_OnPause(6),\n MMActivity_Back2Front(7),\n MMActivity_Front2Back(8);\n \n public int value;\n\n static {\n AppMethodBeat.m2505o(128627);\n }\n\n private C38982a(int i) {\n this.value = i;\n }\n\n /* renamed from: uW */\n public static C38982a m66222uW(int i) {\n switch (i) {\n case 1:\n return MMAppMgr_Activated;\n case 2:\n return MMAppMgr_Deactivated;\n case 3:\n return MMLifeCall_OnResume;\n case 4:\n return MMLifeCall_OnPause;\n case 5:\n return MMActivity_OnResume;\n case 6:\n return MMActivity_OnPause;\n case 7:\n return MMActivity_Back2Front;\n case 8:\n return MMActivity_Front2Back;\n default:\n return MM_DEFAULT;\n }\n }\n }\n\n void logout();\n}",
"@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void b(boolean r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r2 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r0 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((boolean) r11) // Catch:{ all -> 0x004b }\n r10.n = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.b(boolean):void\");\n }",
"public interface C45630d {\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$f */\n public interface C10555f {\n /* renamed from: es */\n void mo22049es(boolean z);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$d */\n public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$e */\n public interface C27129e {\n void onVisibilityChanged(boolean z);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$g */\n public enum C27130g {\n DEFAULT,\n FILL,\n CONTAIN,\n COVER;\n\n static {\n AppMethodBeat.m2505o(126548);\n }\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$a */\n public interface C38399a {\n void aDF();\n\n void aEZ();\n\n boolean aFA();\n\n void aFD();\n\n void aFE();\n\n boolean aFF();\n\n void aFG();\n\n void aFH();\n\n boolean aFI();\n\n void aFN();\n\n void aFO();\n\n boolean aFR();\n\n void aFy();\n\n void hide();\n\n void onDestroy();\n\n void seek(int i);\n\n void setDanmakuBtnOnClickListener(C10555f c10555f);\n\n void setDanmakuBtnOpen(boolean z);\n\n void setExitFullScreenBtnOnClickListener(OnClickListener onClickListener);\n\n void setFullScreenBtnOnClickListener(OnClickListener onClickListener);\n\n void setIplaySeekCallback(C42594c c42594c);\n\n void setMuteBtnOnClickListener(OnClickListener onClickListener);\n\n void setMuteBtnState(boolean z);\n\n void setOnPlayButtonClickListener(OnClickListener onClickListener);\n\n void setOnUpdateProgressLenListener(C19512d c19512d);\n\n void setOnVisibilityChangedListener(C27129e c27129e);\n\n void setPlayBtnInCenterPosition(boolean z);\n\n void setShowControlProgress(boolean z);\n\n void setShowDanmakuBtn(boolean z);\n\n void setShowFullScreenBtn(boolean z);\n\n void setShowMuteBtn(boolean z);\n\n void setShowPlayBtn(boolean z);\n\n void setShowProgress(boolean z);\n\n void setStatePorter(C38400h c38400h);\n\n void setTitle(String str);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$h */\n public interface C38400h {\n int aFg();\n\n int aFh();\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$b */\n public interface C42593b {\n /* renamed from: H */\n void mo34677H(String str, int i, int i2);\n\n void aFq();\n\n void aFr();\n\n void aFs();\n\n void aFt();\n\n void aFu();\n\n void aFv();\n\n /* renamed from: de */\n void mo34684de(int i, int i2);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$c */\n public interface C42594c {\n void aFw();\n\n /* renamed from: oA */\n void mo22044oA(int i);\n }\n\n void aEX();\n\n void akV();\n\n void akW();\n\n /* renamed from: as */\n boolean mo61579as(float f);\n\n /* renamed from: c */\n void mo61580c(boolean z, String str, int i);\n\n /* renamed from: e */\n boolean mo61581e(double d, boolean z);\n\n int getCacheTimeSec();\n\n int getCurrPosMs();\n\n int getCurrPosSec();\n\n int getVideoDurationSec();\n\n boolean isLive();\n\n boolean isPlaying();\n\n boolean pause();\n\n /* renamed from: s */\n boolean mo61590s(double d);\n\n void setControlBar(C38399a c38399a);\n\n void setIMMVideoViewCallback(C42593b c42593b);\n\n void setMute(boolean z);\n\n void setScaleType(C27130g c27130g);\n\n void setVideoSource(int i);\n\n void start();\n\n void stop();\n}",
"public interface C1477a {\n /* renamed from: a */\n boolean mo1835a();\n\n /* renamed from: b */\n boolean mo1836b();\n\n int getCurrentPosition();\n\n boolean getGlobalVisibleRect(Rect rect);\n\n long getInitialBufferTime();\n\n int getMeasuredHeight();\n\n int getMeasuredWidth();\n\n VideoStartReason getVideoStartReason();\n\n float getVolume();\n }",
"static void m7752a() {\n f8029a = true;\n }",
"private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }",
"private static native boolean isDevelopmentMode()/*-{\n return typeof $wnd.__gwt_sdm !== 'undefined';\n }-*/;",
"public long getSupports();",
"public final void mo31292d() {\n /*\n r7 = this;\n com.tapjoy.internal.gb r0 = com.tapjoy.internal.C5108gb.this\n com.tapjoy.internal.gb$a r0 = r0.mo31282a()\n android.content.Context r0 = r0.f13987a\n r7.f13994d = r0\n android.content.IntentFilter r0 = new android.content.IntentFilter\n java.lang.String r1 = \"android.net.conn.CONNECTIVITY_CHANGE\"\n r0.<init>(r1)\n android.content.Context r1 = r7.f13994d\n android.content.BroadcastReceiver r2 = r7.f13995e\n r1.registerReceiver(r2, r0)\n L_0x0018:\n boolean r0 = r7.f13992b // Catch:{ all -> 0x008b }\n if (r0 != 0) goto L_0x0087\n java.util.concurrent.CountDownLatch r0 = new java.util.concurrent.CountDownLatch // Catch:{ all -> 0x008b }\n r1 = 1\n r0.<init>(r1) // Catch:{ all -> 0x008b }\n com.tapjoy.internal.fs$a r2 = com.tapjoy.internal.C5096fs.f13949b // Catch:{ all -> 0x008b }\n com.tapjoy.internal.gb$b$1 r3 = new com.tapjoy.internal.gb$b$1 // Catch:{ all -> 0x008b }\n r3.<init>(r0) // Catch:{ all -> 0x008b }\n r2.addObserver(r3) // Catch:{ all -> 0x008b }\n com.tapjoy.internal.gb r2 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b }\n com.tapjoy.internal.gb$a r2 = r2.mo31282a() // Catch:{ all -> 0x008b }\n com.tapjoy.internal.gb r3 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b }\n android.content.Context r4 = r2.f13987a // Catch:{ all -> 0x008b }\n java.lang.String r5 = r2.f13988b // Catch:{ all -> 0x008b }\n java.util.Hashtable r2 = r2.f13989c // Catch:{ all -> 0x008b }\n r6 = 0\n boolean r2 = r3.mo31194a(r4, r5, r2, r6) // Catch:{ all -> 0x008b }\n r3 = 0\n if (r2 != 0) goto L_0x004b\n com.tapjoy.internal.gb r0 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b }\n r0.mo31284a((boolean) r3) // Catch:{ all -> 0x008b }\n r7.m17251h()\n return\n L_0x004b:\n r0.await() // Catch:{ InterruptedException -> 0x004e }\n L_0x004e:\n boolean r0 = r7.f13993c // Catch:{ all -> 0x008b }\n if (r0 == 0) goto L_0x0064\n com.tapjoy.internal.gb r0 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b }\n int r2 = com.tapjoy.internal.C5108gb.C5116c.f14003e // Catch:{ all -> 0x008b }\n int r3 = com.tapjoy.internal.C5108gb.C5116c.f14001c // Catch:{ all -> 0x008b }\n r0.mo31283a((int) r2) // Catch:{ all -> 0x008b }\n com.tapjoy.internal.gb r0 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b }\n r0.mo31284a((boolean) r1) // Catch:{ all -> 0x008b }\n r7.m17251h()\n return\n L_0x0064:\n com.tapjoy.internal.gb r0 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b }\n r0.mo31284a((boolean) r3) // Catch:{ all -> 0x008b }\n com.tapjoy.internal.gb r0 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b }\n long r0 = r0.f13979d // Catch:{ all -> 0x008b }\n r2 = 1000(0x3e8, double:4.94E-321)\n long r0 = java.lang.Math.max(r0, r2) // Catch:{ all -> 0x008b }\n com.tapjoy.internal.gb r2 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b }\n r3 = 2\n long r3 = r0 << r3\n r5 = 3600000(0x36ee80, double:1.7786363E-317)\n long r3 = java.lang.Math.min(r3, r5) // Catch:{ all -> 0x008b }\n r2.f13979d = r3 // Catch:{ all -> 0x008b }\n com.tapjoy.internal.gb r2 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b }\n r2.mo31285a((long) r0) // Catch:{ all -> 0x008b }\n goto L_0x0018\n L_0x0087:\n r7.m17251h()\n return\n L_0x008b:\n r0 = move-exception\n r7.m17251h()\n goto L_0x0091\n L_0x0090:\n throw r0\n L_0x0091:\n goto L_0x0090\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tapjoy.internal.C5108gb.C5113b.mo31292d():void\");\n }",
"public void mo1334a() {\n m18899a(enumSet.contains(CacheFlag.VIDEO));\n }",
"public void mo55177a() {\n long unused = C3615m3.this.f1452k = System.currentTimeMillis();\n if (C3615m3.this.f1443b) {\n C3615m3.this.m1171c(new MDExternalError(MDExternalError.ExternalError.SDK_INITIALIZATION_IN_PROGRESS), this.f1467a);\n } else if (!C3615m3.this.f1447f.mo55921b() || C3615m3.this.f1447f.mo55918a()) {\n C3615m3.this.f1449h.updateFilePath(C3595k3.m1060d().mo55511a());\n boolean unused2 = C3615m3.this.f1443b = true;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n if (C3723s4.m1629b() || C3723s4.m1628a()) {\n C3490e3.m665e(\"SDK Upgrade - delete UUID and local configuration storage\");\n C3661o5.m1405a();\n Pair<String, Boolean> a = C3729t0.m1642a();\n if (a != null) {\n AnalyticsBridge.getInstance().reportDeleteStorageEvent((String) a.first, ((Boolean) a.second).booleanValue());\n }\n }\n C3723s4.m1630c();\n C3615m3.this.m1172c(this.f1467a);\n C3580j createApiToken = ModelFactory.getInstance().createApiToken(this.f1468b);\n if (createApiToken == null) {\n boolean unused3 = C3615m3.this.f1443b = false;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n C3615m3.this.m1158a((C3665p2) new C3593k1(C3586j3.C3587a.API_TOKEN_PARSE_ERROR), this.f1467a);\n C3615m3.this.clearAndDisconnect();\n } else if (!C3615m3.this.f1442a || C3604l2.m1115c().mo55538b() == null || !C3604l2.m1115c().mo55538b().mo55850a().equals(createApiToken.mo55850a())) {\n C3604l2.m1115c().mo55537a(createApiToken);\n if (!C3604l2.m1115c().mo55538b().mo55850a().equals(C3659o3.m1391f().mo55687a(C3815z4.C3816a.API_TOKEN))) {\n C3659o3.m1391f().mo55689a(C3815z4.C3816a.API_TOKEN, C3604l2.m1115c().mo55538b().mo55850a());\n C3659o3.m1391f().mo55689a(C3815z4.C3816a.ACCESS_TOKEN, (String) null);\n }\n C3490e3.m665e(\"SDK init started\");\n AnalyticsBridge.getInstance().reportInitEvent();\n C3767w0.m1812b().mo55893a();\n C3646n3.m1337m().mo55661a(60000, 3, 60000, 0, 512, 3);\n C3615m3.this.m1150a(this.f1467a);\n } else {\n boolean unused4 = C3615m3.this.f1443b = false;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n C3615m3.this.m1163b(new MDExternalError(MDExternalError.ExternalError.SDK_IS_ALREADY_INITIALIZED), this.f1467a);\n }\n } else {\n C3615m3.this.m1163b(new MDExternalError(MDExternalError.ExternalError.SDK_IS_KILLED), this.f1467a);\n C3461c3.m562g().clearAndDisconnect();\n }\n }",
"@javax.annotation.Nullable\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public io.grpc.internal.ClientTransport obtainActiveTransport() {\n /*\n r4 = this;\n io.grpc.internal.ManagedClientTransport r0 = r4.activeTransport\n if (r0 == 0) goto L_0x0005\n return r0\n L_0x0005:\n java.lang.Object r0 = r4.lock // Catch:{ all -> 0x0039 }\n monitor-enter(r0) // Catch:{ all -> 0x0039 }\n io.grpc.internal.ManagedClientTransport r1 = r4.activeTransport // Catch:{ all -> 0x0036 }\n if (r1 == 0) goto L_0x0013\n monitor-exit(r0) // Catch:{ all -> 0x0036 }\n io.grpc.SynchronizationContext r0 = r4.syncContext\n r0.drain()\n return r1\n L_0x0013:\n io.grpc.ConnectivityStateInfo r1 = r4.state // Catch:{ all -> 0x0036 }\n io.grpc.ConnectivityState r1 = r1.getState() // Catch:{ all -> 0x0036 }\n io.grpc.ConnectivityState r2 = io.grpc.ConnectivityState.IDLE // Catch:{ all -> 0x0036 }\n if (r1 != r2) goto L_0x002e\n io.grpc.internal.ChannelLoggerImpl r1 = r4.channelLogger // Catch:{ all -> 0x0036 }\n io.grpc.ChannelLogger$ChannelLogLevel r2 = io.grpc.ChannelLogger.ChannelLogLevel.INFO // Catch:{ all -> 0x0036 }\n java.lang.String r3 = \"CONNECTING as requested\"\n r1.log(r2, r3) // Catch:{ all -> 0x0036 }\n io.grpc.ConnectivityState r1 = io.grpc.ConnectivityState.CONNECTING // Catch:{ all -> 0x0036 }\n r4.gotoNonErrorState(r1) // Catch:{ all -> 0x0036 }\n r4.startNewTransport() // Catch:{ all -> 0x0036 }\n L_0x002e:\n monitor-exit(r0) // Catch:{ all -> 0x0036 }\n io.grpc.SynchronizationContext r0 = r4.syncContext\n r0.drain()\n r0 = 0\n return r0\n L_0x0036:\n r1 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0036 }\n throw r1 // Catch:{ all -> 0x0039 }\n L_0x0039:\n r0 = move-exception\n io.grpc.SynchronizationContext r1 = r4.syncContext\n r1.drain()\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.grpc.internal.InternalSubchannel.obtainActiveTransport():io.grpc.internal.ClientTransport\");\n }",
"@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void c(int r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Integer r2 = java.lang.Integer.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16805(0x41a5, float:2.3549E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Integer.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Integer r0 = java.lang.Integer.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16805(0x41a5, float:2.3549E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Integer.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((int) r11) // Catch:{ all -> 0x004b }\n r10.o = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.c(int):void\");\n }",
"private /* synthetic */ void m57187h() {\n this.f41189e = true;\n }",
"public boolean mo3363f() {\n /*\n r2 = this;\n androidx.appcompat.widget.Toolbar r0 = r2.f2802a\n int r1 = r0.getVisibility()\n if (r1 != 0) goto L_0x0012\n androidx.appcompat.widget.ActionMenuView r0 = r0.f466b\n if (r0 == 0) goto L_0x0012\n boolean r0 = r0.f304t\n if (r0 == 0) goto L_0x0012\n r0 = 1\n goto L_0x0013\n L_0x0012:\n r0 = 0\n L_0x0013:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.C0661j3.mo3363f():boolean\");\n }",
"public static Object gvcInfo(Object... arg) {\r\nUNSUPPORTED(\"4o912yqrgsuc4t2uym0i2siv3\"); // char **gvcInfo(GVC_t* gvc) { return gvc->common.info; }\r\n\r\nthrow new UnsupportedOperationException();\r\n}",
"private NativeSupport() {\n\t}",
"private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t Catch:{ Exception -> 0x0018 }\n r0 = r0.getField(r1);\t Catch:{ Exception -> 0x0018 }\n r1 = 0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.get(r1);\t Catch:{ Exception -> 0x0018 }\n r0 = (java.lang.Integer) r0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.intValue();\t Catch:{ Exception -> 0x0018 }\n return r0;\n L_0x0018:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.util.f.c():int\");\n }",
"static void m7753b() {\n f8029a = false;\n }",
"public void m7211c() {\n /*\n r34 = this;\n r16 = 0;\n r15 = 0;\n r5 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case -1172269795: goto L_0x002e;\n case 2157948: goto L_0x0038;\n case 2571565: goto L_0x0024;\n default: goto L_0x0018;\n };\n L_0x0018:\n r2 = r3;\n L_0x0019:\n switch(r2) {\n case 0: goto L_0x0042;\n case 1: goto L_0x0162;\n case 2: goto L_0x01a9;\n default: goto L_0x001c;\n };\n L_0x001c:\n r2 = \"Undefined type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n L_0x0023:\n return;\n L_0x0024:\n r4 = \"TEXT\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x002c:\n r2 = 0;\n goto L_0x0019;\n L_0x002e:\n r4 = \"STICKER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0036:\n r2 = 1;\n goto L_0x0019;\n L_0x0038:\n r4 = \"FILE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0040:\n r2 = 2;\n goto L_0x0019;\n L_0x0042:\n r4 = mobi.mmdt.ott.provider.p169c.C1594n.TEXT;\n r33 = r5;\n L_0x0046:\n r8 = mobi.mmdt.componentsutils.p079a.p084e.C1113a.m6421a();\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.IN;\n r0 = r34;\n r2 = r0.f4758b;\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.p109d.p111b.C1309a.m6934a(r3);\n r3 = r3.m6942b();\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x0064;\n L_0x0062:\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.OUT;\n L_0x0064:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m7972a(r2, r3, r10);\n if (r2 != 0) goto L_0x0023;\n L_0x0072:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n if (r2 == 0) goto L_0x008a;\n L_0x007a:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n r0 = r34;\n r3 = r0.f4759c;\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x024e;\n L_0x008a:\n r17 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x00b8;\n L_0x0098:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x00b8;\n L_0x00aa:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r17 = r2;\n L_0x00b8:\n r2 = new mobi.mmdt.ott.d.a.b;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.NOT_READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n r2.<init>(r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16, r17);\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.logic.p157e.C1509a.m7621a(r3);\n r0 = r34;\n r4 = r0.f4762f;\n r0 = r33;\n r3.m7626a(r2, r0, r4);\n L_0x00f2:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x013c;\n L_0x00fe:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x013c;\n L_0x0110:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n mobi.mmdt.ott.provider.p169c.C1583c.m7976b(r3, r4, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m8003n(r3, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n r5 = mobi.mmdt.ott.provider.p169c.C1595o.SINGLE;\n mobi.mmdt.ott.logic.p112a.p120c.p121a.p123b.C1387u.m7218a(r3, r4, r2, r5);\n L_0x013c:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = \"TEXT\";\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x0023;\n L_0x0150:\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.b;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4762f;\n r2.<init>(r3, r15, r4);\n mobi.mmdt.ott.logic.C1494c.m7541c(r2);\n goto L_0x0023;\n L_0x0162:\n r6 = mobi.mmdt.ott.provider.p169c.C1594n.STICKER;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"STICKER_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4762f;\n r4 = \"STICKER_PACKAGE_ID\";\n r3 = r3.get(r4);\n r3 = (java.lang.String) r3;\n r0 = r34;\n r4 = r0.f4762f;\n r7 = \"STICKER_VERSION\";\n r4 = r4.get(r7);\n r4 = (java.lang.String) r4;\n if (r4 == 0) goto L_0x02c9;\n L_0x018a:\n if (r2 == 0) goto L_0x02c9;\n L_0x018c:\n if (r3 == 0) goto L_0x02c9;\n L_0x018e:\n r7 = r4.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x0194:\n r7 = r2.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x019a:\n r7 = r3.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x01a0:\n r16 = mobi.mmdt.ott.provider.p174h.C1629b.m8295a(r4, r3, r2);\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n L_0x01a9:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"FILE_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case 327328941: goto L_0x01de;\n case 796404377: goto L_0x01ca;\n case 802160718: goto L_0x01e8;\n case 808293817: goto L_0x01d4;\n default: goto L_0x01bd;\n };\n L_0x01bd:\n r2 = r3;\n L_0x01be:\n switch(r2) {\n case 0: goto L_0x01f2;\n case 1: goto L_0x020c;\n case 2: goto L_0x0222;\n case 3: goto L_0x0238;\n default: goto L_0x01c1;\n };\n L_0x01c1:\n r2 = \"Undefined file type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n goto L_0x0023;\n L_0x01ca:\n r4 = \"FILE_TYPE_IMAGE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01d2:\n r2 = 0;\n goto L_0x01be;\n L_0x01d4:\n r4 = \"FILE_TYPE_VIDEO\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01dc:\n r2 = 1;\n goto L_0x01be;\n L_0x01de:\n r4 = \"FILE_TYPE_PUSH_TO_TALK\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01e6:\n r2 = 2;\n goto L_0x01be;\n L_0x01e8:\n r4 = \"FILE_TYPE_OTHER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01f0:\n r2 = 3;\n goto L_0x01be;\n L_0x01f2:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.IMAGE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.IMAGE;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n L_0x0207:\n r33 = r2;\n r4 = r3;\n goto L_0x0046;\n L_0x020c:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.VIDEO;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.VIDEO;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0222:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.PUSH_TO_TALK;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.PUSH_TO_TALK;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0238:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.FILE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.OTHER;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x024e:\n if (r33 == 0) goto L_0x029c;\n L_0x0250:\n r0 = r34;\n r0 = r0.f4757a;\n r18 = r0;\n r19 = r33.m8082n();\n r20 = r33.m8069a();\n r21 = r33.m8079k();\n r22 = r33.m8073e();\n r23 = r33.m8078j();\n r24 = r33.m8077i();\n r26 = 0;\n r27 = r33.m8081m();\n r28 = r33.m8080l();\n r29 = r33.m8075g();\n r30 = r33.m8071c();\n r31 = r33.m8072d();\n r32 = r33.m8070b();\n r33 = r33.m8074f();\n r2 = mobi.mmdt.ott.provider.p170d.C1598c.m8100a(r18, r19, r20, r21, r22, r23, r24, r26, r27, r28, r29, r30, r31, r32, r33);\n r2 = r2.getLastPathSegment();\n r2 = java.lang.Long.parseLong(r2);\n r15 = java.lang.Long.valueOf(r2);\n L_0x029c:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n mobi.mmdt.ott.provider.p169c.C1583c.m7966a(r2, r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16);\n goto L_0x00f2;\n L_0x02c9:\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: mobi.mmdt.ott.logic.a.c.a.b.s.c():void\");\n }",
"public static RemoteObject _globals() throws Exception{\nrequests3.mostCurrent._icon = RemoteObject.createNew (\"anywheresoftware.b4a.objects.drawable.BitmapDrawable\");\n //BA.debugLineNum = 25;BA.debugLine=\"Private xui As XUI\";\nrequests3.mostCurrent._xui = RemoteObject.createNew (\"anywheresoftware.b4a.objects.B4XViewWrapper.XUI\");\n //BA.debugLineNum = 27;BA.debugLine=\"Private TileSourceSpinner As Spinner\";\nrequests3.mostCurrent._tilesourcespinner = RemoteObject.createNew (\"anywheresoftware.b4a.objects.SpinnerWrapper\");\n //BA.debugLineNum = 29;BA.debugLine=\"Private IsFiltered As Boolean = False\";\nrequests3._isfiltered = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 30;BA.debugLine=\"Private FilterStartDate As String\";\nrequests3.mostCurrent._filterstartdate = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 31;BA.debugLine=\"Private FilterEndDate As String\";\nrequests3.mostCurrent._filterenddate = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 32;BA.debugLine=\"Private FilterTasks As Int = 0\";\nrequests3._filtertasks = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 33;BA.debugLine=\"Private FilterEntity As Int = 0\";\nrequests3._filterentity = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 34;BA.debugLine=\"Private FilterRoute As Int = 0\";\nrequests3._filterroute = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 35;BA.debugLine=\"Private FilterStates As Int = 0\";\nrequests3._filterstates = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 36;BA.debugLine=\"Private FilterTypeRequests As Int = 0\";\nrequests3._filtertyperequests = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 37;BA.debugLine=\"Private Bloco30 As Int = 0\";\nrequests3._bloco30 = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 39;BA.debugLine=\"Private ListTypeRequests As List\";\nrequests3.mostCurrent._listtyperequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 40;BA.debugLine=\"Private ListStates As List\";\nrequests3.mostCurrent._liststates = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 41;BA.debugLine=\"Private ListEntities As List\";\nrequests3.mostCurrent._listentities = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 42;BA.debugLine=\"Private ListTasks As List\";\nrequests3.mostCurrent._listtasks = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 43;BA.debugLine=\"Private ListRoutes As List\";\nrequests3.mostCurrent._listroutes = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 45;BA.debugLine=\"Private ButtonUserUnavailable As Button\";\nrequests3.mostCurrent._buttonuserunavailable = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 46;BA.debugLine=\"Private mapUserPosition As Button\";\nrequests3.mostCurrent._mapuserposition = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 47;BA.debugLine=\"Private ColorTabPanel As Panel\";\nrequests3.mostCurrent._colortabpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 49;BA.debugLine=\"Private ButtonActionTransport As Button\";\nrequests3.mostCurrent._buttonactiontransport = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 50;BA.debugLine=\"Private ButtonAppAlert As Button\";\nrequests3.mostCurrent._buttonappalert = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 51;BA.debugLine=\"Private ButtonAppNetwork As Button\";\nrequests3.mostCurrent._buttonappnetwork = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 52;BA.debugLine=\"Private LabelAppInfo As Label\";\nrequests3.mostCurrent._labelappinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 53;BA.debugLine=\"Private LabelCopyright As Label\";\nrequests3.mostCurrent._labelcopyright = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 54;BA.debugLine=\"Private LabelDateTime As Label\";\nrequests3.mostCurrent._labeldatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 55;BA.debugLine=\"Private LabelVersion As Label\";\nrequests3.mostCurrent._labelversion = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 56;BA.debugLine=\"Private listsBasePanel As Panel\";\nrequests3.mostCurrent._listsbasepanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 57;BA.debugLine=\"Private listsBottomLine As Panel\";\nrequests3.mostCurrent._listsbottomline = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 58;BA.debugLine=\"Private listsBottomPanel As Panel\";\nrequests3.mostCurrent._listsbottompanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 59;BA.debugLine=\"Private listsButtonClose As Button\";\nrequests3.mostCurrent._listsbuttonclose = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 60;BA.debugLine=\"Private listsButtonFilter As Button\";\nrequests3.mostCurrent._listsbuttonfilter = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 61;BA.debugLine=\"Private listsLabelInfo As Label\";\nrequests3.mostCurrent._listslabelinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 62;BA.debugLine=\"Private listsTabPanel As TabStrip\";\nrequests3.mostCurrent._liststabpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.TabStripViewPager\");\n //BA.debugLineNum = 63;BA.debugLine=\"Private listsTopBar As Panel\";\nrequests3.mostCurrent._liststopbar = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 64;BA.debugLine=\"Private mainLabelOptLists As Label\";\nrequests3.mostCurrent._mainlabeloptlists = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 65;BA.debugLine=\"Private mainLogo As ImageView\";\nrequests3.mostCurrent._mainlogo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ImageViewWrapper\");\n //BA.debugLineNum = 66;BA.debugLine=\"Private mainTopLine As Panel\";\nrequests3.mostCurrent._maintopline = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 68;BA.debugLine=\"Private IsFiltered As Boolean = False\";\nrequests3._isfiltered = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 69;BA.debugLine=\"Private iDialogReqTypeObject, iDialogReqZone, iDi\";\nrequests3._idialogreqtypeobject = RemoteObject.createImmutable(0);\nrequests3._idialogreqzone = RemoteObject.createImmutable(0);\nrequests3._idialogreqstatus = RemoteObject.createImmutable(0);\nrequests3._idialogreqregion = RemoteObject.createImmutable(0);\nrequests3._idialogreqlocal = RemoteObject.createImmutable(0);\nrequests3._idialogreqwithrequests = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 70;BA.debugLine=\"Private sDialogReqName, sDialogReqAddress, Search\";\nrequests3.mostCurrent._sdialogreqname = RemoteObject.createImmutable(\"\");\nrequests3.mostCurrent._sdialogreqaddress = RemoteObject.createImmutable(\"\");\nrequests3.mostCurrent._searchfilter = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 71;BA.debugLine=\"Private RegionsList, TypeObjectsList, LocalsList,\";\nrequests3.mostCurrent._regionslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._typeobjectslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._localslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._reqrequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._reqrequestsnottoday = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 72;BA.debugLine=\"Private ItemsCounter As Int = 0\";\nrequests3._itemscounter = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 74;BA.debugLine=\"Private listRequestsButtonMap As Button\";\nrequests3.mostCurrent._listrequestsbuttonmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 75;BA.debugLine=\"Private mapBaseList As Panel\";\nrequests3.mostCurrent._mapbaselist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 76;BA.debugLine=\"Private mapBasePanel As Panel\";\nrequests3.mostCurrent._mapbasepanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 78;BA.debugLine=\"Private mapZoomDown As Button\";\nrequests3.mostCurrent._mapzoomdown = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 79;BA.debugLine=\"Private mapZoomUp As Button\";\nrequests3.mostCurrent._mapzoomup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 80;BA.debugLine=\"Private listRequests As CustomListView 'ExpandedL\";\nrequests3.mostCurrent._listrequests = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 81;BA.debugLine=\"Private listsRequestsMap As CustomListView\";\nrequests3.mostCurrent._listsrequestsmap = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 83;BA.debugLine=\"Private pnlGroupTitle As Panel\";\nrequests3.mostCurrent._pnlgrouptitle = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 84;BA.debugLine=\"Private pnlGroupData As Panel\";\nrequests3.mostCurrent._pnlgroupdata = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 86;BA.debugLine=\"Private ListItemTodayRequests As Label\";\nrequests3.mostCurrent._listitemtodayrequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 87;BA.debugLine=\"Private ListItemReference As Label\";\nrequests3.mostCurrent._listitemreference = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 88;BA.debugLine=\"Private ListItemDatetime As Label\";\nrequests3.mostCurrent._listitemdatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 89;BA.debugLine=\"Private ListItemContact As Label\";\nrequests3.mostCurrent._listitemcontact = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 90;BA.debugLine=\"Private ListItemFullName As Label\";\nrequests3.mostCurrent._listitemfullname = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 91;BA.debugLine=\"Private ListItemStatus As Label\";\nrequests3.mostCurrent._listitemstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 92;BA.debugLine=\"Private listButMap As Button\";\nrequests3.mostCurrent._listbutmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 94;BA.debugLine=\"Private ListItemObject As Label\";\nrequests3.mostCurrent._listitemobject = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 95;BA.debugLine=\"Private ListItemObjectTask As Label\";\nrequests3.mostCurrent._listitemobjecttask = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 96;BA.debugLine=\"Private ListItemObjectExecution As Label\";\nrequests3.mostCurrent._listitemobjectexecution = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 97;BA.debugLine=\"Private listButObjectAction As Button\";\nrequests3.mostCurrent._listbutobjectaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 98;BA.debugLine=\"Private ListItemObjectStatus As Label\";\nrequests3.mostCurrent._listitemobjectstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 99;BA.debugLine=\"Private ListItemObjectStatusIcon As Label\";\nrequests3.mostCurrent._listitemobjectstatusicon = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 101;BA.debugLine=\"Private CurrentGroupItem As Int = 0\";\nrequests3._currentgroupitem = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 102;BA.debugLine=\"Private pnlGroupCurrenIndex As Int\";\nrequests3._pnlgroupcurrenindex = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 103;BA.debugLine=\"Private ClickLabel As Label\";\nrequests3.mostCurrent._clicklabel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 105;BA.debugLine=\"Private ShowListPedidosMap As Boolean = False\";\nrequests3._showlistpedidosmap = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 106;BA.debugLine=\"Private EditSearch As EditText\";\nrequests3.mostCurrent._editsearch = RemoteObject.createNew (\"anywheresoftware.b4a.objects.EditTextWrapper\");\n //BA.debugLineNum = 107;BA.debugLine=\"Private butSearch As Button\";\nrequests3.mostCurrent._butsearch = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 109;BA.debugLine=\"Dim CurrentIndexPanel As Int = -1\";\nrequests3._currentindexpanel = BA.numberCast(int.class, -(double) (0 + 1));\n //BA.debugLineNum = 110;BA.debugLine=\"Dim CurrentIDPanel As Int = 0\";\nrequests3._currentidpanel = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 112;BA.debugLine=\"Private LabelButtonTitleAction As Label\";\nrequests3.mostCurrent._labelbuttontitleaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 113;BA.debugLine=\"Private LabelReferenciasDescritivos As Label\";\nrequests3.mostCurrent._labelreferenciasdescritivos = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 114;BA.debugLine=\"Private LabelStatus As Label\";\nrequests3.mostCurrent._labelstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 115;BA.debugLine=\"Private RequestsOptionsPopMenu As MenuOnAnyView\";\nrequests3.mostCurrent._requestsoptionspopmenu = RemoteObject.createNew (\"com.jakes.menuonviews.menuonanyview\");\n //BA.debugLineNum = 117;BA.debugLine=\"Private CurrentLineItem As Int = 0\";\nrequests3._currentlineitem = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 118;BA.debugLine=\"Private TotalLineItems As Int = 0\";\nrequests3._totallineitems = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 119;BA.debugLine=\"Private ListItemObjectNumber As Label\";\nrequests3.mostCurrent._listitemobjectnumber = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 120;BA.debugLine=\"Private listButMore As Button\";\nrequests3.mostCurrent._listbutmore = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 121;BA.debugLine=\"Private ListItemObjectDateTime As Label\";\nrequests3.mostCurrent._listitemobjectdatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 122;BA.debugLine=\"Private ListItemObjectReference As Label\";\nrequests3.mostCurrent._listitemobjectreference = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 123;BA.debugLine=\"Private pnlGroupDataSub As Panel\";\nrequests3.mostCurrent._pnlgroupdatasub = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 124;BA.debugLine=\"Private pnlGroupDataList As ExpandedListView 'Cus\";\nrequests3.mostCurrent._pnlgroupdatalist = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.expandedlistview\");\n //BA.debugLineNum = 127;BA.debugLine=\"Private CurrentPage As Int\";\nrequests3._currentpage = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 128;BA.debugLine=\"Private Pages As List '= Array(True, False, True,\";\nrequests3.mostCurrent._pages = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 130;BA.debugLine=\"Private listRequestsItem As CustomListView\";\nrequests3.mostCurrent._listrequestsitem = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 131;BA.debugLine=\"Private CLAButtonOptions As Button\";\nrequests3.mostCurrent._clabuttonoptions = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 132;BA.debugLine=\"Private CLAItem_G1 As Label\";\nrequests3.mostCurrent._claitem_g1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 133;BA.debugLine=\"Private CLAItemButton_1 As B4XStateButton\";\nrequests3.mostCurrent._claitembutton_1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 134;BA.debugLine=\"Private CLAItemButton_2 As B4XStateButton\";\nrequests3.mostCurrent._claitembutton_2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 135;BA.debugLine=\"Private CLAItem_G2 As Label\";\nrequests3.mostCurrent._claitem_g2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 136;BA.debugLine=\"Private CLAItem_G3 As Label\";\nrequests3.mostCurrent._claitem_g3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 137;BA.debugLine=\"Private CLAItem_G4 As Label\";\nrequests3.mostCurrent._claitem_g4 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 138;BA.debugLine=\"Private CLAItem_G5 As Label\";\nrequests3.mostCurrent._claitem_g5 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 139;BA.debugLine=\"Private CLAItem_G6 As Label\";\nrequests3.mostCurrent._claitem_g6 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 140;BA.debugLine=\"Private CLAItem_G7 As Label\";\nrequests3.mostCurrent._claitem_g7 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 141;BA.debugLine=\"Private ListItemType As Label\";\nrequests3.mostCurrent._listitemtype = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 143;BA.debugLine=\"Private ListItem_Notes As Label\";\nrequests3.mostCurrent._listitem_notes = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 144;BA.debugLine=\"Private ListItem_Status As Label\";\nrequests3.mostCurrent._listitem_status = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 145;BA.debugLine=\"Private ListItem_Datetime As Label\";\nrequests3.mostCurrent._listitem_datetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 146;BA.debugLine=\"Private ListItem_Entity As Label\";\nrequests3.mostCurrent._listitem_entity = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 147;BA.debugLine=\"Private ListItem_Cloud As Label\";\nrequests3.mostCurrent._listitem_cloud = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 148;BA.debugLine=\"Private listButCompare As Button\";\nrequests3.mostCurrent._listbutcompare = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 149;BA.debugLine=\"Private ListItem_TypeRequest As Label\";\nrequests3.mostCurrent._listitem_typerequest = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 150;BA.debugLine=\"Private listRequestsItemSecond As CustomListView\";\nrequests3.mostCurrent._listrequestsitemsecond = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 151;BA.debugLine=\"Private CLAItemButtonBR_SVR2 As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_svr2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 152;BA.debugLine=\"Private CLAItemButtonBR_SVR2_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_svr2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 153;BA.debugLine=\"Private CLA_BR_KSVRF2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvrf2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 154;BA.debugLine=\"Private CLA_BR_KSVRF2_A As Button\";\nrequests3.mostCurrent._cla_br_ksvrf2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 155;BA.debugLine=\"Private CLA_BR_KSVRI2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvri2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 156;BA.debugLine=\"Private CLA_BR_KSVRI2_A As Button\";\nrequests3.mostCurrent._cla_br_ksvri2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 157;BA.debugLine=\"Private CLA_BR_KSVRI1_A As Button\";\nrequests3.mostCurrent._cla_br_ksvri1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 158;BA.debugLine=\"Private CLA_BR_KSVRI1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvri1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 159;BA.debugLine=\"Private CLA_BR_KSVRF1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvrf1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 160;BA.debugLine=\"Private CLA_BR_KSVRF1_A As Button\";\nrequests3.mostCurrent._cla_br_ksvrf1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 161;BA.debugLine=\"Private CLAItemButtonBR_SVR1 As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_svr1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 162;BA.debugLine=\"Private CLAItemButtonBR_SVR1_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_svr1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 163;BA.debugLine=\"Private CLAItemButtonBR_INIT_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_init_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 164;BA.debugLine=\"Private CLAItemButtonBR_INIT As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_init = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 165;BA.debugLine=\"Private CLA_BR_OBS As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_obs = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 166;BA.debugLine=\"Private CLA_BR_OBS_A As Button\";\nrequests3.mostCurrent._cla_br_obs_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 167;BA.debugLine=\"Private CLA_BR_KMI_A As Button\";\nrequests3.mostCurrent._cla_br_kmi_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 168;BA.debugLine=\"Private CLA_BR_KMI As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_kmi = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 169;BA.debugLine=\"Private CLA_BR_CAR As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_car = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 170;BA.debugLine=\"Private CLA_BR_CAR_A As Button\";\nrequests3.mostCurrent._cla_br_car_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 171;BA.debugLine=\"Private CLA_BR_KMF_A As Button\";\nrequests3.mostCurrent._cla_br_kmf_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 172;BA.debugLine=\"Private CLA_BR_KMF As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_kmf = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 173;BA.debugLine=\"Private CLA_BR_E1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 174;BA.debugLine=\"Private CLA_BR_S1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 175;BA.debugLine=\"Private CLA_BR_E2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 176;BA.debugLine=\"Private CLA_BR_S2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 177;BA.debugLine=\"Private CLA_BR_E3 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 178;BA.debugLine=\"Private CLA_BR_S3 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 179;BA.debugLine=\"Private CLAItemButtonBR As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 180;BA.debugLine=\"Private CLAItemButtonBR_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 181;BA.debugLine=\"Private CLAItemButtonX_A As Button\";\nrequests3.mostCurrent._claitembuttonx_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 182;BA.debugLine=\"Private B4XStateButton1 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 183;BA.debugLine=\"Private B4XStateButton2 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 184;BA.debugLine=\"Private B4XStateButton3 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton3 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 185;BA.debugLine=\"Private B4XStateButton4 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton4 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 186;BA.debugLine=\"Private B4XStateButton5 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton5 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 187;BA.debugLine=\"Private B4XStateButton6 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton6 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 188;BA.debugLine=\"Private B4XStateButton7 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton7 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 189;BA.debugLine=\"Private B4XStateButton14 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton14 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 190;BA.debugLine=\"Private B4XStateButton13 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton13 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 191;BA.debugLine=\"Private B4XStateButton21 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton21 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 192;BA.debugLine=\"Private B4XStateButton20 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton20 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 193;BA.debugLine=\"Private B4XStateButton19 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton19 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 194;BA.debugLine=\"Private B4XStateButton12 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton12 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 195;BA.debugLine=\"Private B4XStateButton11 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton11 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 196;BA.debugLine=\"Private B4XStateButton18 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton18 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 197;BA.debugLine=\"Private B4XStateButton17 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton17 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 198;BA.debugLine=\"Private B4XStateButton10 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton10 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 199;BA.debugLine=\"Private B4XStateButton9 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton9 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 200;BA.debugLine=\"Private B4XStateButton16 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton16 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 201;BA.debugLine=\"Private B4XStateButton15 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton15 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 202;BA.debugLine=\"Private B4XStateButton8 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton8 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 203;BA.debugLine=\"Private B4XStateButton22 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton22 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 204;BA.debugLine=\"Private B4XStateButton23 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton23 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 205;BA.debugLine=\"Private B4XStateButton24 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton24 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 206;BA.debugLine=\"Private B4XStateButton25 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton25 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 207;BA.debugLine=\"Private B4XStateButton26 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton26 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 209;BA.debugLine=\"Private VIEW_requests_listview As String = \\\"reque\";\nrequests3.mostCurrent._view_requests_listview = BA.ObjectToString(\"requests_listview\");\n //BA.debugLineNum = 210;BA.debugLine=\"Private VIEW_requests_listviewrequest As String =\";\nrequests3.mostCurrent._view_requests_listviewrequest = BA.ObjectToString(\"requests_listviewrequest\");\n //BA.debugLineNum = 211;BA.debugLine=\"Private VIEW_requests_listviewrequest2 As String\";\nrequests3.mostCurrent._view_requests_listviewrequest2 = BA.ObjectToString(\"requests_listviewrequest2\");\n //BA.debugLineNum = 212;BA.debugLine=\"Private VIEW_requests_mapview As String = \\\"reques\";\nrequests3.mostCurrent._view_requests_mapview = BA.ObjectToString(\"requests_mapview_google\");\n //BA.debugLineNum = 213;BA.debugLine=\"Private ButtonActionPause As Button\";\nrequests3.mostCurrent._buttonactionpause = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 214;BA.debugLine=\"Private CurrentFilter As String = \\\"\\\"\";\nrequests3.mostCurrent._currentfilter = BA.ObjectToString(\"\");\n //BA.debugLineNum = 215;BA.debugLine=\"Private mainActiveUser As Label\";\nrequests3.mostCurrent._mainactiveuser = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 216;BA.debugLine=\"Private gmap As GoogleMap\";\nrequests3.mostCurrent._gmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper\");\n //BA.debugLineNum = 217;BA.debugLine=\"Private mapData As MapFragment\";\nrequests3.mostCurrent._mapdata = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper\");\n //BA.debugLineNum = 218;BA.debugLine=\"Private mapMarker As Marker\";\nrequests3.mostCurrent._mapmarker = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper\");\n //BA.debugLineNum = 219;BA.debugLine=\"Private listsButtonPull As Button\";\nrequests3.mostCurrent._listsbuttonpull = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 220;BA.debugLine=\"Private listButNote As Button\";\nrequests3.mostCurrent._listbutnote = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 221;BA.debugLine=\"Private butQuickAction As Button\";\nrequests3.mostCurrent._butquickaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 222;BA.debugLine=\"Private ListItem_Favorite As Label\";\nrequests3.mostCurrent._listitem_favorite = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 223;BA.debugLine=\"Private listsButtonFavorites As Button\";\nrequests3.mostCurrent._listsbuttonfavorites = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 224;BA.debugLine=\"Private ListItem_Desc02 As Label\";\nrequests3.mostCurrent._listitem_desc02 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 225;BA.debugLine=\"Private ListItem_Desc01 As Label\";\nrequests3.mostCurrent._listitem_desc01 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 226;BA.debugLine=\"Private ListaPrincipalClickItem As Int = -1\";\nrequests3._listaprincipalclickitem = BA.numberCast(int.class, -(double) (0 + 1));\n //BA.debugLineNum = 227;BA.debugLine=\"Private ListViewDevice3Panel As Panel\";\nrequests3.mostCurrent._listviewdevice3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 228;BA.debugLine=\"Private ListViewRequestDevice3Panel As Panel\";\nrequests3.mostCurrent._listviewrequestdevice3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 229;BA.debugLine=\"Private ListViewRequest2Device3Panel As Panel\";\nrequests3.mostCurrent._listviewrequest2device3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 230;BA.debugLine=\"Private ListItemClickIndex As Label\";\nrequests3.mostCurrent._listitemclickindex = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 231;BA.debugLine=\"Private ListItem_Desc00 As Label\";\nrequests3.mostCurrent._listitem_desc00 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 232;BA.debugLine=\"Private SubItemImage As ImageView\";\nrequests3.mostCurrent._subitemimage = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ImageViewWrapper\");\n //BA.debugLineNum = 233;BA.debugLine=\"Private LockPanel As Panel\";\nrequests3.mostCurrent._lockpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 235;BA.debugLine=\"Private GRANDACTIVE_INSTANCE As String = \\\"PT20180\";\nrequests3.mostCurrent._grandactive_instance = BA.ObjectToString(\"PT20180913-2105-006\");\n //BA.debugLineNum = 236;BA.debugLine=\"Private LockPanelInfo As Label\";\nrequests3.mostCurrent._lockpanelinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 238;BA.debugLine=\"Private current_limit As Int = 0\";\nrequests3._current_limit = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 239;BA.debugLine=\"Private current_offset As Int = 100\";\nrequests3._current_offset = BA.numberCast(int.class, 100);\n //BA.debugLineNum = 240;BA.debugLine=\"Private next_current_limit As Int = 0\";\nrequests3._next_current_limit = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 241;BA.debugLine=\"Private next_offset As Int = 100\";\nrequests3._next_offset = BA.numberCast(int.class, 100);\n //BA.debugLineNum = 242;BA.debugLine=\"Private CurrentTotalItems As Int = 0\";\nrequests3._currenttotalitems = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 244;BA.debugLine=\"Private SelectedTagcode As String = \\\"\\\"\";\nrequests3.mostCurrent._selectedtagcode = BA.ObjectToString(\"\");\n //BA.debugLineNum = 245;BA.debugLine=\"Private SelectedRequestData As RequestData\";\nrequests3.mostCurrent._selectedrequestdata = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.types._requestdata\");\n //BA.debugLineNum = 246;BA.debugLine=\"Private ListItemNumber As Label\";\nrequests3.mostCurrent._listitemnumber = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 248;BA.debugLine=\"Private data_Intervencao As FloatLabeledEditText\";\nrequests3.mostCurrent._data_intervencao = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 249;BA.debugLine=\"Private hora_intervencao As FloatLabeledEditText\";\nrequests3.mostCurrent._hora_intervencao = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 250;BA.debugLine=\"Private TaskList2Dup As CustomListView\";\nrequests3.mostCurrent._tasklist2dup = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 251;BA.debugLine=\"Private BotaoDataDup As Button\";\nrequests3.mostCurrent._botaodatadup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 252;BA.debugLine=\"Private BotaoHoraDup As Button\";\nrequests3.mostCurrent._botaohoradup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 253;BA.debugLine=\"Private dupItemCheck As CheckBox\";\nrequests3.mostCurrent._dupitemcheck = RemoteObject.createNew (\"anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper\");\n //BA.debugLineNum = 254;BA.debugLine=\"Private dupItemLabel As Label\";\nrequests3.mostCurrent._dupitemlabel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 256;BA.debugLine=\"Private ListITemTechnical As Label\";\nrequests3.mostCurrent._listitemtechnical = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 257;BA.debugLine=\"Private GlobalScanReturn As Boolean\";\nrequests3._globalscanreturn = RemoteObject.createImmutable(false);\n //BA.debugLineNum = 258;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}",
"public static RemoteObject _process_globals() throws Exception{\nrequests3._device = RemoteObject.createNew (\"anywheresoftware.b4a.phone.Phone\");\n //BA.debugLineNum = 13;BA.debugLine=\"Private TileSource As String\";\nrequests3._tilesource = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 14;BA.debugLine=\"Private ZoomLevel As Int\";\nrequests3._zoomlevel = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 15;BA.debugLine=\"Private Markers As List\";\nrequests3._markers = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 16;BA.debugLine=\"Private MapFirstTime As Boolean\";\nrequests3._mapfirsttime = RemoteObject.createImmutable(false);\n //BA.debugLineNum = 18;BA.debugLine=\"Private MyPositionLat, MyPositionLon As String\";\nrequests3._mypositionlat = RemoteObject.createImmutable(\"\");\nrequests3._mypositionlon = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 19;BA.debugLine=\"Private CurrentTabPage As Int = 0\";\nrequests3._currenttabpage = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 20;BA.debugLine=\"Private InfoDataWindows As Boolean = False\";\nrequests3._infodatawindows = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 21;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}",
"public final synchronized void a(javax.microedition.khronos.opengles.GL10 r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x005c }\n r9 = 0\n r1[r9] = r11 // Catch:{ all -> 0x005c }\n com.meituan.robust.ChangeQuickRedirect r3 = f53274a // Catch:{ all -> 0x005c }\n r4 = 0\n r5 = 55526(0xd8e6, float:7.7808E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x005c }\n java.lang.Class<javax.microedition.khronos.opengles.GL10> r2 = javax.microedition.khronos.opengles.GL10.class\n r6[r9] = r2 // Catch:{ all -> 0x005c }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x005c }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x005c }\n if (r1 == 0) goto L_0x0034\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x005c }\n r1[r9] = r11 // Catch:{ all -> 0x005c }\n com.meituan.robust.ChangeQuickRedirect r3 = f53274a // Catch:{ all -> 0x005c }\n r4 = 0\n r5 = 55526(0xd8e6, float:7.7808E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x005c }\n java.lang.Class<javax.microedition.khronos.opengles.GL10> r0 = javax.microedition.khronos.opengles.GL10.class\n r6[r9] = r0 // Catch:{ all -> 0x005c }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x005c }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x005c }\n monitor-exit(r10)\n return\n L_0x0034:\n boolean r1 = r10.g // Catch:{ all -> 0x005c }\n if (r1 != 0) goto L_0x005a\n r10.c() // Catch:{ all -> 0x005c }\n r1 = 7937(0x1f01, float:1.1122E-41)\n java.lang.String r0 = r11.glGetString(r1) // Catch:{ all -> 0x005c }\n int r1 = r10.f53279f // Catch:{ all -> 0x005c }\n r2 = 131072(0x20000, float:1.83671E-40)\n if (r1 >= r2) goto L_0x0053\n java.lang.String r1 = \"Q3Dimension MSM7500 \"\n boolean r0 = r0.startsWith(r1) // Catch:{ all -> 0x005c }\n r0 = r0 ^ r8\n r10.f53276b = r0 // Catch:{ all -> 0x005c }\n r10.notifyAll() // Catch:{ all -> 0x005c }\n L_0x0053:\n boolean r0 = r10.f53276b // Catch:{ all -> 0x005c }\n r0 = r0 ^ r8\n r10.h = r0 // Catch:{ all -> 0x005c }\n r10.g = r8 // Catch:{ all -> 0x005c }\n L_0x005a:\n monitor-exit(r10)\n return\n L_0x005c:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.live.alphaplayer.e.j.a(javax.microedition.khronos.opengles.GL10):void\");\n }",
"public static void m114838e() {\n C43720b bVar;\n ExecutorService executorService;\n synchronized (f93236R) {\n if (!C43681b.m138406a()) {\n final boolean a = f93231M.mo93305a(Property.UseNewEffectExecutorType);\n final boolean a2 = f93231M.mo93305a(Property.PreFetchPopEffectModel);\n final int b = f93231M.mo93306b(Property.FetchEffectModelType);\n C43834g a3 = EffectPlatform.m90011a((Context) f93238a, f93245h.mo83209c(), f93220B.getOKHttpClient(), C35574k.m114859a().mo70092g().mo70113a()).mo105986a();\n C43678a a4 = new C43678a().mo105656a(f93238a.getAssets()).mo105661a((C43721c) new C27483g()).mo105662a((C43722d) new C20504b()).mo105670d(EffectPlatform.m90014c()).mo105671e(\"142710f02c3a11e8b42429f14557854a\").mo105668b(Build.MODEL).mo105665a(EffectPlatform.m90013b()).mo105669c(m114841h()).mo105672f(f93231M.mo93309e(Property.EffectExclusionPattern)).mo105664a(new File(f93238a.getFilesDir(), \"effectmodel\").getPath());\n if (f93231M.mo93305a(Property.EffectPlatformUseTTNet)) {\n bVar = new C27499q();\n } else {\n bVar = new C27471b(f93220B.getOKHttpClient());\n }\n C43678a a5 = a4.mo105660a(bVar).mo105663a(a3);\n if (a) {\n executorService = C7258h.m22730c();\n } else {\n executorService = C1592h.f5957a;\n }\n C43681b.m138404a(a5.mo105666a((Executor) executorService).mo105659a((C43687a) new C43687a() {\n /* renamed from: a */\n public final void mo90379a(Effect effect, Exception exc) {\n StringBuilder sb = new StringBuilder(\"onModelNotFound\");\n sb.append(Log.getStackTraceString(exc));\n C41530am.m132283b(sb.toString());\n C6893q.m21444a(\"model_not_found_rate\", 1, C38510bb.m123095a().mo96481a(\"errorDesc\", Log.getStackTraceString(exc)).mo96479a(\"executor_type\", Integer.valueOf(a ? 1 : 0)).mo96479a(\"prefetch_model\", Integer.valueOf(a2 ? 1 : 0)).mo96479a(\"zip_model\", Integer.valueOf(b)).mo96482b());\n }\n\n /* renamed from: a */\n public final void mo90377a(Effect effect, ModelInfo modelInfo, long j) {\n StringBuilder sb = new StringBuilder(\"onModelDownloadSuccess \");\n sb.append(effect.getName());\n sb.append(\" requirements \");\n sb.append(modelInfo.getName());\n C41530am.m132280a(sb.toString());\n C6893q.m21444a(\"model_download_time\", 0, C38510bb.m123095a().mo96480a(\"duration\", Long.valueOf(j)).mo96482b());\n C6893q.m21444a(\"service_model_download_error_rate\", 0, C38510bb.m123095a().mo96479a(\"executor_type\", Integer.valueOf(a ? 1 : 0)).mo96479a(\"prefetch_model\", Integer.valueOf(a2 ? 1 : 0)).mo96479a(\"zipModel\", Integer.valueOf(b)).mo96482b());\n }\n\n /* renamed from: a */\n public final void mo90378a(Effect effect, ModelInfo modelInfo, Exception exc) {\n StringBuilder sb = new StringBuilder(\"onModelDownloadError \");\n sb.append(effect.getName());\n sb.append(\" requirements \");\n sb.append(modelInfo.getName());\n C41530am.m132283b(sb.toString());\n C6893q.m21444a(\"service_model_download_error_rate\", 1, C38510bb.m123095a().mo96481a(\"errorDesc\", Log.getStackTraceString(exc)).mo96479a(\"executor_type\", Integer.valueOf(a ? 1 : 0)).mo96479a(\"prefetch_model\", Integer.valueOf(a2 ? 1 : 0)).mo96479a(\"zip_model\", Integer.valueOf(b)).mo96482b());\n }\n }).mo105657a(m114844k()).mo105658a(FetchModelType.fromValue(b)).mo105667a());\n C43681b.m138405a(C35568f.f93269a);\n }\n }\n }",
"public final void mo14764a() {\n /*\n r9 = this;\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r2 = r9.f10846a\n monitor-enter(r2)\n int r3 = r9.f10847b // Catch:{ all -> 0x004d }\n int r4 = com.google.android.gms.internal.ads.C2349r5.f10765b // Catch:{ all -> 0x004d }\n if (r3 != r4) goto L_0x002c\n long r5 = r9.f10848c // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzaaq<java.lang.Long> r3 = com.google.android.gms.internal.ads.zzabf.zzcwh // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzabb r7 = com.google.android.gms.internal.ads.zzwq.zzqe() // Catch:{ all -> 0x004d }\n java.lang.Object r3 = r7.zzd(r3) // Catch:{ all -> 0x004d }\n java.lang.Long r3 = (java.lang.Long) r3 // Catch:{ all -> 0x004d }\n long r7 = r3.longValue() // Catch:{ all -> 0x004d }\n long r5 = r5 + r7\n int r3 = (r5 > r0 ? 1 : (r5 == r0 ? 0 : -1))\n if (r3 > 0) goto L_0x002c\n int r0 = com.google.android.gms.internal.ads.C2349r5.f10764a // Catch:{ all -> 0x004d }\n r9.f10847b = r0 // Catch:{ all -> 0x004d }\n L_0x002c:\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r3 = r9.f10846a\n monitor-enter(r3)\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n r5 = 2\n if (r2 == r5) goto L_0x003f\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x003f:\n r2 = 3\n r9.f10847b = r2 // Catch:{ all -> 0x004a }\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n if (r2 != r4) goto L_0x0048\n r9.f10848c = r0 // Catch:{ all -> 0x004a }\n L_0x0048:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x004a:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r0\n L_0x004d:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C2386s5.mo14764a():void\");\n }",
"private static final native boolean isSupported()/*-{\n\t\treturn !!(chrome.extension);\n\t}-*/;",
"public boolean isHardwareAccelerated() {\n\t\treturn false;\n\t}",
"interface C2578d {\n}",
"public interface C27361Hn {\n C255119b getScrollingViewProxy();\n}",
"public int getMutexBits() {\n/* 64 */ return this.mutexBits;\n/* */ }",
"private static /* synthetic */ boolean[] m37847a() {\n boolean[] zArr = f35341a;\n if (zArr != null) {\n return zArr;\n }\n boolean[] probes = Offline.getProbes(8562094152676657512L, \"com/mopub/mobileads/native_video/R$integer\", 1);\n f35341a = probes;\n return probes;\n }",
"public java.lang.Object mo13025a(boolean r18, kotlin.coroutines.Continuation<? super kotlin.Unit> r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r19\n boolean r2 = r1 instanceof p008c.p009a.p024e.p026b.C0963b.C0971h\n if (r2 == 0) goto L_0x0017\n r2 = r1\n c.a.e.b.b$h r2 = (p008c.p009a.p024e.p026b.C0963b.C0971h) r2\n int r3 = r2.f1092b\n r4 = -2147483648(0xffffffff80000000, float:-0.0)\n r5 = r3 & r4\n if (r5 == 0) goto L_0x0017\n int r3 = r3 - r4\n r2.f1092b = r3\n goto L_0x001c\n L_0x0017:\n c.a.e.b.b$h r2 = new c.a.e.b.b$h\n r2.<init>(r0, r1)\n L_0x001c:\n java.lang.Object r1 = r2.f1091a\n java.lang.Object r9 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r3 = r2.f1092b\n r10 = 4\n r11 = 3\n r4 = 1\n r5 = 2\n if (r3 == 0) goto L_0x00a4\n if (r3 == r4) goto L_0x0093\n if (r3 == r5) goto L_0x0072\n if (r3 == r11) goto L_0x0053\n if (r3 != r10) goto L_0x004b\n java.lang.Object r3 = r2.f1098h\n java.util.List r3 = (java.util.List) r3\n java.lang.Object r3 = r2.f1097g\n java.util.Map r3 = (java.util.Map) r3\n java.lang.Object r3 = r2.f1096f\n org.mobileid.requester.web_service.Response r3 = (org.mobileid.requester.web_service.Response) r3\n java.lang.Object r3 = r2.f1095e\n java.lang.String r3 = (java.lang.String) r3\n java.lang.Object r2 = r2.f1094d\n c.a.e.b.b r2 = (p008c.p009a.p024e.p026b.C0963b) r2\n kotlin.ResultKt.throwOnFailure(r1)\n goto L_0x01c5\n L_0x004b:\n java.lang.IllegalStateException r1 = new java.lang.IllegalStateException\n java.lang.String r2 = \"call to 'resume' before 'invoke' with coroutine\"\n r1.<init>(r2)\n throw r1\n L_0x0053:\n java.lang.Object r3 = r2.f1098h\n java.util.List r3 = (java.util.List) r3\n java.lang.Object r4 = r2.f1097g\n java.util.Map r4 = (java.util.Map) r4\n java.lang.Object r5 = r2.f1096f\n org.mobileid.requester.web_service.Response r5 = (org.mobileid.requester.web_service.Response) r5\n java.lang.Object r6 = r2.f1095e\n java.lang.String r6 = (java.lang.String) r6\n boolean r7 = r2.f1099i\n java.lang.Object r8 = r2.f1094d\n c.a.e.b.b r8 = (p008c.p009a.p024e.p026b.C0963b) r8\n kotlin.ResultKt.throwOnFailure(r1)\n r13 = r5\n r14 = r6\n r6 = r3\n r3 = r8\n goto L_0x01ad\n L_0x0072:\n java.lang.Object r3 = r2.f1098h\n java.util.List r3 = (java.util.List) r3\n java.lang.Object r4 = r2.f1097g\n java.util.Map r4 = (java.util.Map) r4\n java.lang.Object r5 = r2.f1096f\n org.mobileid.requester.web_service.Response r5 = (org.mobileid.requester.web_service.Response) r5\n java.lang.Object r6 = r2.f1095e\n java.lang.String r6 = (java.lang.String) r6\n boolean r7 = r2.f1099i\n java.lang.Object r8 = r2.f1094d\n c.a.e.b.b r8 = (p008c.p009a.p024e.p026b.C0963b) r8\n kotlin.ResultKt.throwOnFailure(r1)\n r1 = r3\n r15 = r4\n r13 = r5\n r14 = r6\n r12 = r8\n r8 = r7\n goto L_0x018c\n L_0x0093:\n java.lang.Object r3 = r2.f1095e\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = r2.f1099i\n java.lang.Object r6 = r2.f1094d\n c.a.e.b.b r6 = (p008c.p009a.p024e.p026b.C0963b) r6\n kotlin.ResultKt.throwOnFailure(r1)\n r13 = r3\n r14 = r4\n r12 = r6\n goto L_0x00c5\n L_0x00a4:\n kotlin.ResultKt.throwOnFailure(r1)\n c.a.e.c.a r1 = r0.f1032c\n java.lang.String r3 = r1.mo13035a()\n if (r3 == 0) goto L_0x01cc\n org.mobileid.time_key.web_service.TimeKeyWebService r1 = r0.f1031b\n r2.f1094d = r0\n r6 = r18\n r2.f1099i = r6\n r2.f1095e = r3\n r2.f1092b = r4\n java.lang.Object r1 = r1.synchronizeKeys(r3, r2)\n if (r1 != r9) goto L_0x00c2\n return r9\n L_0x00c2:\n r12 = r0\n r13 = r3\n r14 = r6\n L_0x00c5:\n org.mobileid.requester.web_service.Response r1 = (org.mobileid.requester.web_service.Response) r1\n org.mobileid.requester.web_service.Error r3 = r1.getError()\n if (r3 == 0) goto L_0x00d0\n kotlin.Unit r1 = kotlin.Unit.INSTANCE\n return r1\n L_0x00d0:\n java.lang.Object r3 = r1.getResult()\n java.util.Map r3 = (java.util.Map) r3\n r4 = 0\n if (r12 == 0) goto L_0x01cb\n if (r3 == 0) goto L_0x010e\n java.util.LinkedHashMap r6 = new java.util.LinkedHashMap\n r6.<init>()\n java.util.Set r3 = r3.entrySet()\n java.util.Iterator r3 = r3.iterator()\n L_0x00e8:\n boolean r7 = r3.hasNext()\n if (r7 == 0) goto L_0x010f\n java.lang.Object r7 = r3.next()\n java.util.Map$Entry r7 = (java.util.Map.Entry) r7\n org.mobileid.access.key.TimeKey$Companion r8 = org.mobileid.access.key.TimeKey.Companion\n java.lang.Object r15 = r7.getKey()\n java.lang.String r15 = (java.lang.String) r15\n boolean r8 = r8.isTimeKeyPrefix(r15)\n if (r8 == 0) goto L_0x00e8\n java.lang.Object r8 = r7.getKey()\n java.lang.Object r7 = r7.getValue()\n r6.put(r8, r7)\n goto L_0x00e8\n L_0x010e:\n r6 = r4\n L_0x010f:\n boolean r3 = r6 instanceof java.util.Map\n if (r3 != 0) goto L_0x0115\n r15 = r4\n goto L_0x0116\n L_0x0115:\n r15 = r6\n L_0x0116:\n if (r15 == 0) goto L_0x01c8\n c.a.a.c$a r3 = p008c.p009a.p010a.C0837c.f761k\n android.content.Context r6 = r12.f1030a\n java.util.List r3 = p008c.p009a.p010a.C0837c.C0838a.m367a((p008c.p009a.p010a.C0837c.C0838a) r3, (android.content.Context) r6, (org.mobileid.access.key_sort.Sort) r4, (int) r5)\n java.util.ArrayList r4 = new java.util.ArrayList\n r4.<init>()\n java.util.Iterator r3 = r3.iterator()\n L_0x0129:\n boolean r6 = r3.hasNext()\n if (r6 == 0) goto L_0x0146\n java.lang.Object r6 = r3.next()\n r7 = r6\n org.mobileid.access.key.Key r7 = (org.mobileid.access.key.Key) r7\n org.mobileid.access.key.TimeKey$Companion r8 = org.mobileid.access.key.TimeKey.Companion\n java.lang.String r7 = r7.getName()\n boolean r7 = r8.isStorageTimeKeyId(r7)\n if (r7 == 0) goto L_0x0129\n r4.add(r6)\n goto L_0x0129\n L_0x0146:\n java.util.ArrayList r8 = new java.util.ArrayList\n r3 = 10\n int r3 = kotlin.collections.CollectionsKt.collectionSizeOrDefault(r4, r3)\n r8.<init>(r3)\n java.util.Iterator r3 = r4.iterator()\n L_0x0155:\n boolean r4 = r3.hasNext()\n if (r4 == 0) goto L_0x0169\n java.lang.Object r4 = r3.next()\n org.mobileid.access.key.Key r4 = (org.mobileid.access.key.Key) r4\n java.lang.String r4 = r4.getId()\n r8.add(r4)\n goto L_0x0155\n L_0x0169:\n r2.f1094d = r12\n r2.f1099i = r14\n r2.f1095e = r13\n r2.f1096f = r1\n r2.f1097g = r15\n r2.f1098h = r8\n r2.f1092b = r5\n java.lang.String r5 = \"DEACTIVATED\"\n r3 = r12\n r4 = r15\n r6 = r8\n r7 = r14\n r16 = r8\n r8 = r2\n java.lang.Object r3 = r3.mo13032b(r4, r5, r6, r7, r8)\n if (r3 != r9) goto L_0x0187\n return r9\n L_0x0187:\n r8 = r14\n r14 = r13\n r13 = r1\n r1 = r16\n L_0x018c:\n r2.f1094d = r12\n r2.f1099i = r8\n r2.f1095e = r14\n r2.f1096f = r13\n r2.f1097g = r15\n r2.f1098h = r1\n r2.f1092b = r11\n java.lang.String r5 = \"FROZEN\"\n r3 = r12\n r4 = r15\n r6 = r1\n r7 = r8\n r11 = r8\n r8 = r2\n java.lang.Object r3 = r3.mo13032b(r4, r5, r6, r7, r8)\n if (r3 != r9) goto L_0x01a9\n return r9\n L_0x01a9:\n r6 = r1\n r7 = r11\n r3 = r12\n r4 = r15\n L_0x01ad:\n r2.f1094d = r3\n r2.f1099i = r7\n r2.f1095e = r14\n r2.f1096f = r13\n r2.f1097g = r4\n r2.f1098h = r6\n r2.f1092b = r10\n java.lang.String r5 = \"FROZEN\"\n r8 = r2\n java.lang.Object r1 = r3.mo13028a(r4, r5, r6, r7, r8)\n if (r1 != r9) goto L_0x01c5\n return r9\n L_0x01c5:\n kotlin.Unit r1 = kotlin.Unit.INSTANCE\n return r1\n L_0x01c8:\n kotlin.Unit r1 = kotlin.Unit.INSTANCE\n return r1\n L_0x01cb:\n throw r4\n L_0x01cc:\n kotlin.Unit r1 = kotlin.Unit.INSTANCE\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p008c.p009a.p024e.p026b.C0963b.mo13025a(boolean, kotlin.coroutines.Continuation):java.lang.Object\");\n }",
"@androidx.annotation.WorkerThread\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final boolean zzc(com.google.firebase.iid.FirebaseInstanceId r5) {\n /*\n r4 = this;\n L_0x0000:\n monitor-enter(r4)\n java.lang.String r0 = r4.zzar() // Catch:{ all -> 0x0042 }\n r1 = 1\n if (r0 != 0) goto L_0x0017\n boolean r5 = com.google.firebase.iid.FirebaseInstanceId.zzm() // Catch:{ all -> 0x0042 }\n if (r5 == 0) goto L_0x0015\n java.lang.String r5 = \"FirebaseInstanceId\"\n java.lang.String r0 = \"topic sync succeeded\"\n android.util.Log.d(r5, r0) // Catch:{ all -> 0x0042 }\n L_0x0015:\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n return r1\n L_0x0017:\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n boolean r2 = zza(r5, r0)\n if (r2 != 0) goto L_0x0020\n r5 = 0\n return r5\n L_0x0020:\n monitor-enter(r4)\n java.util.Map<java.lang.Integer, com.google.android.gms.tasks.TaskCompletionSource<java.lang.Void>> r2 = r4.zzdx // Catch:{ all -> 0x003f }\n int r3 = r4.zzdw // Catch:{ all -> 0x003f }\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3) // Catch:{ all -> 0x003f }\n java.lang.Object r2 = r2.remove(r3) // Catch:{ all -> 0x003f }\n com.google.android.gms.tasks.TaskCompletionSource r2 = (com.google.android.gms.tasks.TaskCompletionSource) r2 // Catch:{ all -> 0x003f }\n r4.zzn(r0) // Catch:{ all -> 0x003f }\n int r0 = r4.zzdw // Catch:{ all -> 0x003f }\n int r0 = r0 + r1\n r4.zzdw = r0 // Catch:{ all -> 0x003f }\n monitor-exit(r4) // Catch:{ all -> 0x003f }\n if (r2 == 0) goto L_0x0000\n r0 = 0\n r2.setResult(r0)\n goto L_0x0000\n L_0x003f:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x003f }\n throw r5\n L_0x0042:\n r5 = move-exception\n monitor-exit(r4) // Catch:{ all -> 0x0042 }\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.iid.zzba.zzc(com.google.firebase.iid.FirebaseInstanceId):boolean\");\n }",
"@DISPID(1611006091) //= 0x6006008b. The runtime will prefer the VTID if present\n @VTID(166)\n boolean colorSynchronizationMode();",
"@Override\n public void runOpMode() throws InterruptedException {\n distanceSensorInRange = false;\n myGlyphLift = new glyphLift(hardwareMap.dcMotor.get(\"glyph_lift\"));\n myColorSensorArm = new colorSensorArm(hardwareMap.servo.get(\"color_sensor_arm\"),hardwareMap.colorSensor.get(\"sensor_color\"), hardwareMap.servo.get(\"color_sensor_arm_rotate\"));\n myMechDrive = new mechDriveAuto(hardwareMap.dcMotor.get(\"front_left_motor\"), hardwareMap.dcMotor.get(\"front_right_motor\"), hardwareMap.dcMotor.get(\"rear_left_motor\"), hardwareMap.dcMotor.get(\"rear_right_motor\"));\n myGlyphArms = new glyphArms(hardwareMap.servo.get(\"top_left_glyph_arm\"), hardwareMap.servo.get(\"bottom_left_glyph_arm\"), hardwareMap.servo.get(\"top_left_glyph_arm\"), hardwareMap.servo.get(\"bottom_right_glyph_arm\"));\n myBoardArm = new boardArm(hardwareMap.dcMotor.get(\"board_arm\"));\n myRevColorDistanceSensor = new revColorDistanceSensor(hardwareMap.get(ColorSensor.class, \"rev_sensor_color_distance\"), hardwareMap.get(DistanceSensor.class, \"rev_sensor_color_distance\"));\n\n\n myColorSensorArm.colorSensorArmUpSlow();\n myColorSensorArm.colorRotateResting();\n //myGlyphArms.openRaisedGlyphArms(); //ensures robot is wihin 18\" by 18\" parameters\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n parameters.vuforiaLicenseKey = \"ASmjss3/////AAAAGQGMjs1d6UMZvrjQPX7J14B0s7kN+rWOyxwitoTy9i0qV7D+YGPfPeeoe/RgJjgMLabjIyRXYmDFLlJYTJvG9ez4GQSI4L8BgkCZkUWpAguRsP8Ah/i6dXIz/vVR/VZxVTR5ItyCovcRY+SPz3CP1tNag253qwl7E900NaEfFh6v/DalkEDppFevUDOB/WuLZmHu53M+xx7E3x35VW86glGKnxDLzcd9wS1wK5QhfbPOExe97azxVOVER8zNNF7LP7B+Qeticfs3O9pGXzI8lj3zClut/7aDVwZ10IPVk4oma6CO8FM5UtNLSb3sicoKV5QGiNmxbbOlnPxz9qD38UAHshq2/y0ZjI/a8oT+doCr\";\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.BACK;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n waitForStart();\n\n relicTrackables.activate();\n\n while (opModeIsActive()) {\n myGlyphArms.closeGlyphArms();\n sleep(2000);\n myMechDrive.vuforiaLeft(myGlyphArms);\n sleep(1000);\n requestOpModeStop();\n }\n }",
"private static /* synthetic */ boolean[] m45633c() {\n boolean[] zArr = f25951f;\n if (zArr != null) {\n return zArr;\n }\n boolean[] a = C13938g.m59885a(-1400814017463733918L, \"com/instabug/library/InstabugFeaturesManager\", 67);\n f25951f = a;\n return a;\n }",
"public void mo34875a(Throwable th) {\n boolean[] a = m45645a();\n InstabugSDKLogger.m46624e(C9780c.class, \"Something went wrong while do fetching features request\", th);\n a[42] = true;\n }",
"public interface SIRunningStatus\n{\n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte UNDEFINED = 0;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte NOT_RUNNING = 1;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte STARTS_IN_A_FEW_SECONDS = 2;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte PAUSING = 3;\n \n /** Constant value for the running status as specified in EN 300 468\n */\n public static final byte RUNNING = 4;\n}",
"public final /* synthetic */ java.lang.Object mo13032b(java.util.Map<java.lang.String, ? extends java.util.Map<java.lang.String, java.lang.String>> r17, java.lang.String r18, java.util.List<java.lang.String> r19, boolean r20, kotlin.coroutines.Continuation<? super kotlin.Unit> r21) {\n /*\n r16 = this;\n r0 = r16\n r1 = r21\n boolean r2 = r1 instanceof p008c.p009a.p024e.p026b.C0963b.C0969f\n if (r2 == 0) goto L_0x0017\n r2 = r1\n c.a.e.b.b$f r2 = (p008c.p009a.p024e.p026b.C0963b.C0969f) r2\n int r3 = r2.f1071b\n r4 = -2147483648(0xffffffff80000000, float:-0.0)\n r5 = r3 & r4\n if (r5 == 0) goto L_0x0017\n int r3 = r3 - r4\n r2.f1071b = r3\n goto L_0x001c\n L_0x0017:\n c.a.e.b.b$f r2 = new c.a.e.b.b$f\n r2.<init>(r0, r1)\n L_0x001c:\n java.lang.Object r1 = r2.f1070a\n java.lang.Object r3 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r4 = r2.f1071b\n r5 = 1\n if (r4 == 0) goto L_0x0060\n if (r4 != r5) goto L_0x0058\n java.lang.Object r4 = r2.f1083n\n org.mobileid.access.key.TimeKey r4 = (org.mobileid.access.key.TimeKey) r4\n java.lang.Object r4 = r2.f1081l\n java.util.Iterator r4 = (java.util.Iterator) r4\n java.lang.Object r6 = r2.f1080k\n java.lang.Iterable r6 = (java.lang.Iterable) r6\n java.lang.Object r7 = r2.f1079j\n java.util.List r7 = (java.util.List) r7\n java.lang.Object r8 = r2.f1078i\n java.util.List r8 = (java.util.List) r8\n java.lang.Object r9 = r2.f1077h\n java.util.Map r9 = (java.util.Map) r9\n boolean r10 = r2.f1084o\n java.lang.Object r11 = r2.f1076g\n java.util.List r11 = (java.util.List) r11\n java.lang.Object r12 = r2.f1075f\n java.lang.String r12 = (java.lang.String) r12\n java.lang.Object r13 = r2.f1074e\n java.util.Map r13 = (java.util.Map) r13\n java.lang.Object r14 = r2.f1073d\n c.a.e.b.b r14 = (p008c.p009a.p024e.p026b.C0963b) r14\n kotlin.ResultKt.throwOnFailure(r1)\n goto L_0x00eb\n L_0x0058:\n java.lang.IllegalStateException r1 = new java.lang.IllegalStateException\n java.lang.String r2 = \"call to 'resume' before 'invoke' with coroutine\"\n r1.<init>(r2)\n throw r1\n L_0x0060:\n kotlin.ResultKt.throwOnFailure(r1)\n java.util.LinkedHashMap r9 = new java.util.LinkedHashMap\n r9.<init>()\n java.util.Set r1 = r17.entrySet()\n java.util.Iterator r1 = r1.iterator()\n L_0x0070:\n boolean r4 = r1.hasNext()\n if (r4 == 0) goto L_0x00a7\n java.lang.Object r4 = r1.next()\n java.util.Map$Entry r4 = (java.util.Map.Entry) r4\n java.lang.Object r6 = r4.getValue()\n java.util.Map r6 = (java.util.Map) r6\n java.lang.String r7 = \"status\"\n java.lang.Object r6 = r6.get(r7)\n java.lang.String r6 = (java.lang.String) r6\n r7 = r18\n boolean r6 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r6, (java.lang.Object) r7)\n java.lang.Boolean r6 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r6)\n boolean r6 = r6.booleanValue()\n if (r6 == 0) goto L_0x0070\n java.lang.Object r6 = r4.getKey()\n java.lang.Object r4 = r4.getValue()\n r9.put(r6, r4)\n goto L_0x0070\n L_0x00a7:\n r7 = r18\n java.util.List r8 = r0.mo13029a((java.util.Map<java.lang.String, ? extends java.util.Map<java.lang.String, java.lang.String>>) r9)\n java.util.ArrayList r6 = new java.util.ArrayList\n r6.<init>()\n r1 = r8\n java.util.ArrayList r1 = (java.util.ArrayList) r1\n java.util.Iterator r1 = r1.iterator()\n L_0x00b9:\n boolean r4 = r1.hasNext()\n if (r4 == 0) goto L_0x00de\n java.lang.Object r4 = r1.next()\n r10 = r4\n org.mobileid.access.key.TimeKey r10 = (org.mobileid.access.key.TimeKey) r10\n java.lang.String r10 = r10.getId()\n r11 = r19\n boolean r10 = r11.contains(r10)\n java.lang.Boolean r10 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r10)\n boolean r10 = r10.booleanValue()\n if (r10 == 0) goto L_0x00b9\n r6.add(r4)\n goto L_0x00b9\n L_0x00de:\n r11 = r19\n java.util.Iterator r4 = r6.iterator()\n r13 = r17\n r10 = r20\n r14 = r0\n r12 = r7\n r7 = r6\n L_0x00eb:\n boolean r1 = r4.hasNext()\n if (r1 == 0) goto L_0x0120\n java.lang.Object r1 = r4.next()\n r15 = r1\n org.mobileid.access.key.TimeKey r15 = (org.mobileid.access.key.TimeKey) r15\n java.lang.String r5 = r15.getId()\n r2.f1073d = r14\n r2.f1074e = r13\n r2.f1075f = r12\n r2.f1076g = r11\n r2.f1084o = r10\n r2.f1077h = r9\n r2.f1078i = r8\n r2.f1079j = r7\n r2.f1080k = r6\n r2.f1081l = r4\n r2.f1082m = r1\n r2.f1083n = r15\n r1 = 1\n r2.f1071b = r1\n java.lang.Object r5 = r14.mo13023a(r5, r10, r2)\n if (r5 != r3) goto L_0x011e\n return r3\n L_0x011e:\n r5 = 1\n goto L_0x00eb\n L_0x0120:\n kotlin.Unit r1 = kotlin.Unit.INSTANCE\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p008c.p009a.p024e.p026b.C0963b.mo13032b(java.util.Map, java.lang.String, java.util.List, boolean, kotlin.coroutines.Continuation):java.lang.Object\");\n }",
"@java.lang.Deprecated\n /* renamed from: a */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static synchronized void m13804a(android.content.Context r3, com.facebook.C6787r.C6788a r4) {\n /*\n java.lang.Class<com.facebook.r> r0 = com.facebook.C6787r.class\n monitor-enter(r0)\n java.lang.Boolean r1 = f12487s // Catch:{ all -> 0x0088 }\n boolean r1 = r1.booleanValue() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0012\n if (r4 == 0) goto L_0x0010\n r4.mo20141a() // Catch:{ all -> 0x0088 }\n L_0x0010:\n monitor-exit(r0)\n return\n L_0x0012:\n java.lang.String r1 = \"applicationContext\"\n com.facebook.internal.C6697T.m13461a(r3, r1) // Catch:{ all -> 0x0088 }\n r1 = 0\n com.facebook.internal.C6697T.m13460a(r3, r1) // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6697T.m13466b(r3, r1) // Catch:{ all -> 0x0088 }\n android.content.Context r1 = r3.getApplicationContext() // Catch:{ all -> 0x0088 }\n f12481m = r1 // Catch:{ all -> 0x0088 }\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n m13810b(r1) // Catch:{ all -> 0x0088 }\n java.lang.String r1 = f12472d // Catch:{ all -> 0x0088 }\n boolean r1 = com.facebook.internal.C6694S.m13436b(r1) // Catch:{ all -> 0x0088 }\n if (r1 != 0) goto L_0x0080\n r1 = 1\n java.lang.Boolean r1 = java.lang.Boolean.valueOf(r1) // Catch:{ all -> 0x0088 }\n f12487s = r1 // Catch:{ all -> 0x0088 }\n boolean r1 = m13817g() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0041\n m13812c() // Catch:{ all -> 0x0088 }\n L_0x0041:\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n boolean r1 = r1 instanceof android.app.Application // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0056\n boolean r1 = com.facebook.C6557O.m12974e() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0056\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n android.app.Application r1 = (android.app.Application) r1 // Catch:{ all -> 0x0088 }\n java.lang.String r2 = f12472d // Catch:{ all -> 0x0088 }\n com.facebook.p127a.p130b.C6602h.m13083a(r1, r2) // Catch:{ all -> 0x0088 }\n L_0x0056:\n com.facebook.internal.C6670D.m13313f() // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6678J.m13355d() // Catch:{ all -> 0x0088 }\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6712c.m13522a(r1) // Catch:{ all -> 0x0088 }\n com.facebook.internal.G r1 = new com.facebook.internal.G // Catch:{ all -> 0x0088 }\n com.facebook.o r2 = new com.facebook.o // Catch:{ all -> 0x0088 }\n r2.<init>() // Catch:{ all -> 0x0088 }\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n f12480l = r1 // Catch:{ all -> 0x0088 }\n java.util.concurrent.FutureTask r1 = new java.util.concurrent.FutureTask // Catch:{ all -> 0x0088 }\n com.facebook.p r2 = new com.facebook.p // Catch:{ all -> 0x0088 }\n r2.<init>(r4, r3) // Catch:{ all -> 0x0088 }\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n java.util.concurrent.Executor r2 = m13822l() // Catch:{ all -> 0x0088 }\n r2.execute(r1) // Catch:{ all -> 0x0088 }\n monitor-exit(r0)\n return\n L_0x0080:\n com.facebook.FacebookException r1 = new com.facebook.FacebookException // Catch:{ all -> 0x0088 }\n java.lang.String r2 = \"A valid Facebook app id must be set in the AndroidManifest.xml or set by calling FacebookSdk.setApplicationId before initializing the sdk.\"\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n throw r1 // Catch:{ all -> 0x0088 }\n L_0x0088:\n r3 = move-exception\n monitor-exit(r0)\n throw r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.C6787r.m13804a(android.content.Context, com.facebook.r$a):void\");\n }",
"public interface C9223b {\n }",
"public boolean hasIntrospectionSource() {\n return fieldSetFlags()[16];\n }",
"boolean mo4832a(C0167gc gcVar);",
"void m1864a() {\r\n }",
"public final R mo2484a(long r4, java.util.concurrent.TimeUnit r6) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = 0;\n r2 = (r4 > r0 ? 1 : (r4 == r0 ? 0 : -1));\n if (r2 <= 0) goto L_0x000b;\n L_0x0006:\n r0 = \"await must not be called on the UI thread when time is greater than zero.\";\n com.google.android.gms.common.internal.ad.m9057c(r0);\n L_0x000b:\n r0 = r3.f11872k;\n r1 = 1;\n r0 = r0 ^ r1;\n r2 = \"Result has already been consumed.\";\n com.google.android.gms.common.internal.ad.m9051a(r0, r2);\n r0 = r3.f11876o;\n if (r0 != 0) goto L_0x0019;\n L_0x0018:\n goto L_0x001a;\n L_0x0019:\n r1 = 0;\n L_0x001a:\n r0 = \"Cannot await if then() has been called.\";\n com.google.android.gms.common.internal.ad.m9051a(r1, r0);\n r0 = r3.f11866e;\t Catch:{ InterruptedException -> 0x002d }\n r4 = r0.await(r4, r6);\t Catch:{ InterruptedException -> 0x002d }\n if (r4 != 0) goto L_0x0032;\t Catch:{ InterruptedException -> 0x002d }\n L_0x0027:\n r4 = com.google.android.gms.common.api.Status.zzfnl;\t Catch:{ InterruptedException -> 0x002d }\n r3.m14226b(r4);\t Catch:{ InterruptedException -> 0x002d }\n goto L_0x0032;\n L_0x002d:\n r4 = com.google.android.gms.common.api.Status.zzfnj;\n r3.m14226b(r4);\n L_0x0032:\n r4 = r3.m14229d();\n r5 = \"Result is not ready.\";\n com.google.android.gms.common.internal.ad.m9051a(r4, r5);\n r4 = r3.mo3575g();\n return r4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a(long, java.util.concurrent.TimeUnit):R\");\n }",
"private static /* synthetic */ boolean[] m5631a() {\n boolean[] zArr = f3814a;\n if (zArr != null) {\n return zArr;\n }\n boolean[] probes = Offline.getProbes(-2921565739953886628L, \"android/support/compat/R$styleable\", 2);\n f3814a = probes;\n return probes;\n }",
"private static /* synthetic */ boolean[] m37851a() {\n boolean[] zArr = f35345a;\n if (zArr != null) {\n return zArr;\n }\n boolean[] probes = Offline.getProbes(5729815350304388802L, \"com/mopub/mobileads/native_video/R$styleable\", 2);\n f35345a = probes;\n return probes;\n }",
"private android.media.AudioTrack createStreamingAudioTrack() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.speech.tts.BlockingAudioTrack.createStreamingAudioTrack():android.media.AudioTrack, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.speech.tts.BlockingAudioTrack.createStreamingAudioTrack():android.media.AudioTrack\");\n }",
"@Override\n public boolean isSupported() {\n return true;\n }",
"public native void debugStateCapture();",
"public interface C9067a {\n /* renamed from: a */\n void mo23497a(MediaSource mediaSource, Timeline timeline, Object obj);\n }",
"public final /* synthetic */ java.lang.Object mo13031b(java.lang.String r14, kotlin.coroutines.Continuation<? super kotlin.Unit> r15) {\n /*\n r13 = this;\n boolean r0 = r15 instanceof p008c.p009a.p024e.p026b.C0963b.C0967d\n if (r0 == 0) goto L_0x0013\n r0 = r15\n c.a.e.b.b$d r0 = (p008c.p009a.p024e.p026b.C0963b.C0967d) r0\n int r1 = r0.f1060b\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r3 = r1 & r2\n if (r3 == 0) goto L_0x0013\n int r1 = r1 - r2\n r0.f1060b = r1\n goto L_0x0018\n L_0x0013:\n c.a.e.b.b$d r0 = new c.a.e.b.b$d\n r0.<init>(r13, r15)\n L_0x0018:\n java.lang.Object r15 = r0.f1059a\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.f1060b\n r3 = 2\n r4 = 1\n if (r2 == 0) goto L_0x0059\n if (r2 == r4) goto L_0x0049\n if (r2 != r3) goto L_0x0041\n java.lang.Object r14 = r0.f1066h\n org.mobileid.time_key.util.TimeKeyParams r14 = (org.mobileid.time_key.util.TimeKeyParams) r14\n java.lang.Object r14 = r0.f1065g\n org.mobileid.requester.web_service.Response r14 = (org.mobileid.requester.web_service.Response) r14\n java.lang.Object r14 = r0.f1064f\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r14 = r0.f1063e\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r14 = r0.f1062d\n c.a.e.b.b r14 = (p008c.p009a.p024e.p026b.C0963b) r14\n kotlin.ResultKt.throwOnFailure(r15)\n goto L_0x00c0\n L_0x0041:\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r15 = \"call to 'resume' before 'invoke' with coroutine\"\n r14.<init>(r15)\n throw r14\n L_0x0049:\n java.lang.Object r14 = r0.f1064f\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r2 = r0.f1063e\n java.lang.String r2 = (java.lang.String) r2\n java.lang.Object r5 = r0.f1062d\n c.a.e.b.b r5 = (p008c.p009a.p024e.p026b.C0963b) r5\n kotlin.ResultKt.throwOnFailure(r15)\n goto L_0x0085\n L_0x0059:\n kotlin.ResultKt.throwOnFailure(r15)\n c.a.e.c.a r15 = r13.f1032c\n java.lang.String r15 = r15.mo13035a()\n if (r15 == 0) goto L_0x00c3\n org.mobileid.time_key.web_service.TimeKeyWebService r2 = r13.f1031b\n org.mobileid.time_key.web_service.ActionOnKeyBody r11 = new org.mobileid.time_key.web_service.ActionOnKeyBody\n r8 = 0\n r9 = 4\n r10 = 0\n r5 = r11\n r6 = r14\n r7 = r15\n r5.<init>(r6, r7, r8, r9, r10)\n r0.f1062d = r13\n r0.f1063e = r14\n r0.f1064f = r15\n r0.f1060b = r4\n java.lang.Object r2 = r2.deactivateKey(r11, r0)\n if (r2 != r1) goto L_0x0080\n return r1\n L_0x0080:\n r5 = r13\n r12 = r2\n r2 = r14\n r14 = r15\n r15 = r12\n L_0x0085:\n org.mobileid.requester.web_service.Response r15 = (org.mobileid.requester.web_service.Response) r15\n java.lang.Object r6 = r15.getResult()\n java.lang.Boolean r6 = (java.lang.Boolean) r6\n java.lang.Boolean r7 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r4)\n boolean r6 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r6, (java.lang.Object) r7)\n r4 = r4 ^ r6\n if (r4 == 0) goto L_0x009b\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n L_0x009b:\n org.mobileid.time_key.util.TimeKeyParams$a r4 = org.mobileid.time_key.util.TimeKeyParams.Companion\n android.content.Context r6 = r5.f1030a\n org.mobileid.time_key.util.TimeKeyParams r4 = r4.mo60138a(r6)\n kotlinx.coroutines.MainCoroutineDispatcher r6 = kotlinx.coroutines.Dispatchers.getMain()\n c.a.e.b.b$e r7 = new c.a.e.b.b$e\n r8 = 0\n r7.<init>(r5, r4, r8)\n r0.f1062d = r5\n r0.f1063e = r2\n r0.f1064f = r14\n r0.f1065g = r15\n r0.f1066h = r4\n r0.f1060b = r3\n java.lang.Object r14 = kotlinx.coroutines.BuildersKt.withContext(r6, r7, r0)\n if (r14 != r1) goto L_0x00c0\n return r1\n L_0x00c0:\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n L_0x00c3:\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p008c.p009a.p024e.p026b.C0963b.mo13031b(java.lang.String, kotlin.coroutines.Continuation):java.lang.Object\");\n }",
"private static /* synthetic */ boolean[] m37845a() {\n boolean[] zArr = f35339a;\n if (zArr != null) {\n return zArr;\n }\n boolean[] probes = Offline.getProbes(8351510718017544634L, \"com/mopub/mobileads/native_video/R$drawable\", 1);\n f35339a = probes;\n return probes;\n }",
"private static /* synthetic */ boolean[] m37842a() {\n boolean[] zArr = f35336a;\n if (zArr != null) {\n return zArr;\n }\n boolean[] probes = Offline.getProbes(398477284693703488L, \"com/mopub/mobileads/native_video/R$bool\", 1);\n f35336a = probes;\n return probes;\n }",
"protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }",
"public static synchronized HotspotThreadMBean getHotspotThreadMBean()\n/* */ {\n/* 302 */ if (hsThreadMBean == null) {\n/* 303 */ hsThreadMBean = new HotspotThread(jvm);\n/* */ }\n/* 305 */ return hsThreadMBean;\n/* */ }",
"private final Single<TabSource> m39398b() {\n Single<TabSource> d = RxJavaInteropExtKt.toV1Observable(this.f31574b.observe(), BackpressureStrategy.LATEST).c(1).a().d(new C13217b(this));\n C2668g.a(d, \"matchSubscreensTracker\\n …ubscreenToTabSource(it) }\");\n return d;\n }",
"private void m11061a(com.bigroad.ttb.android.vehicle.C2338a r7, long r8, java.util.ArrayList<com.bigroad.ttb.android.status.C2265b> r10) {\n /*\n r6 = this;\n r4 = 10000; // 0x2710 float:1.4013E-41 double:4.9407E-320;\n if (r7 == 0) goto L_0x000c;\n L_0x0004:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.REQUIRED;\n r0 = r7.m11451a(r0);\n if (r0 != 0) goto L_0x000d;\n L_0x000c:\n return;\n L_0x000d:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.CORRUPTED;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x002d;\n L_0x0015:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.CORRUPTED;\n r0 = r7.m11454b(r0);\n if (r0 == 0) goto L_0x0124;\n L_0x001d:\n r0 = r0.longValue();\n r2 = 20000; // 0x4e20 float:2.8026E-41 double:9.8813E-320;\n r0 = r0 + r2;\n r2 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1));\n if (r2 <= 0) goto L_0x0124;\n L_0x0028:\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.VAR_DATA_CORRUPTED;\n r6.m11060a(r2, r0, r10);\n L_0x002d:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CONNECTED;\n r0 = r7.m11450a(r0);\n if (r0 == 0) goto L_0x00e5;\n L_0x0035:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.TURBO_FIRMWARE_UPDATING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x0042;\n L_0x003d:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.TURBO_FIRMWARE_UPDATING;\n r6.m11060a(r0, r8, r10);\n L_0x0042:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_INCOMPATIBLE;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x004f;\n L_0x004a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.FIRMWARE_NOT_COMPATIBLE;\n r6.m11060a(r0, r8, r10);\n L_0x004f:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_DETECTING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x006d;\n L_0x0057:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_DETECTING;\n r0 = r7.m11454b(r0);\n if (r0 == 0) goto L_0x0121;\n L_0x005f:\n r0 = r0.longValue();\n r0 = r0 + r4;\n r2 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1));\n if (r2 <= 0) goto L_0x0121;\n L_0x0068:\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.FIRMWARE_DETECTING;\n r6.m11060a(r2, r0, r10);\n L_0x006d:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CURRENT;\n r0 = r7.m11450a(r0);\n if (r0 == 0) goto L_0x00d2;\n L_0x0075:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.EOBR_TYPE_MATCH;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x0082;\n L_0x007d:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.WRONG_EOBR_TYPE;\n r6.m11060a(r0, r8, r10);\n L_0x0082:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ODOMETER_READINGS_VALID;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x008f;\n L_0x008a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NO_ODOMETER;\n r6.m11060a(r0, r8, r10);\n L_0x008f:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ODOMETER_CALIBRATED;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x009c;\n L_0x0097:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.UNCALIBRATED_ODOMETER;\n r6.m11060a(r0, r8, r10);\n L_0x009c:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ABSOLUTE_TIMESTAMP;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x00b7;\n L_0x00a4:\n r0 = r6.f7779m;\n if (r0 == 0) goto L_0x00b7;\n L_0x00a8:\n r0 = r6.f7779m;\n r0 = r0.mo1121o();\n r1 = com.bigroad.shared.eobr.EobrType.TURBO;\n if (r0 != r1) goto L_0x00b7;\n L_0x00b2:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.WAITING_FOR_TURBO_GPS;\n r6.m11060a(r0, r8, r10);\n L_0x00b7:\n r0 = r7.m11449a();\n if (r0 == 0) goto L_0x00c2;\n L_0x00bd:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.RECONNECTING;\n r6.m11060a(r0, r8, r10);\n L_0x00c2:\n r0 = r6.f7780n;\n if (r0 != 0) goto L_0x00cb;\n L_0x00c6:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.CONNECTED_NOT_PLUGGED_IN;\n r6.m11060a(r0, r8, r10);\n L_0x00cb:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.CONNECTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x00d2:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CONNECTED;\n r0 = r7.m11453b(r0);\n if (r0 == 0) goto L_0x00b7;\n L_0x00da:\n r0 = r0.longValue();\n r0 = r0 + r4;\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NOT_CURRENT;\n r6.m11060a(r2, r0, r10);\n goto L_0x00b7;\n L_0x00e5:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.SEARCHING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x00f2;\n L_0x00ed:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.SEARCHING;\n r6.m11060a(r0, r8, r10);\n L_0x00f2:\n r0 = com.bigroad.ttb.android.status.p031a.C2242a.C22408.f7760b;\n r1 = r7.m11455c();\n r1 = r1.ordinal();\n r0 = r0[r1];\n switch(r0) {\n case 1: goto L_0x0103;\n case 2: goto L_0x010a;\n case 3: goto L_0x0113;\n case 4: goto L_0x011a;\n default: goto L_0x0101;\n };\n L_0x0101:\n goto L_0x000c;\n L_0x0103:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NO_VIN_SPECIFIED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x010a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.BLUETOOTH_DISABLED;\n r2 = 0;\n r6.m11060a(r0, r2, r10);\n goto L_0x000c;\n L_0x0113:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.BLUETOOTH_UNSUPPORTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x011a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.DISCONNECTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x0121:\n r0 = r8;\n goto L_0x0068;\n L_0x0124:\n r0 = r8;\n goto L_0x0028;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bigroad.ttb.android.status.a.a.a(com.bigroad.ttb.android.vehicle.a, long, java.util.ArrayList):void\");\n }",
"static Class<?> m31780b() {\n return f29996a;\n }",
"public interface CPUSimConstants {\n // constant for the current version number of CPU Sim\n public static final String VERSION_NUMBER = \"4.0b41\";\n\n //is this a Macintosh? This constant is used to set up the menus\n //differently for Macs and for other OS's.\n public static final boolean MAC_OS_X =\n (System.getProperty(\"os.name\").toLowerCase().startsWith(\"mac os x\"));\n\n // constants for micros Arithmetic and Increment which specify optional\n // ConditionBits. Setting or clearing this bit does nothing since the\n // Register it uses is hidden from the rest of the machine.\n public static final ConditionBit NO_CONDITIONBIT =\n new ConditionBit(\"(none)\", new Register(\"\", 1), 0, false);\n\n // the three standard options available for io channels\n public static final IOChannel CONSOLE_CHANNEL =\n new ConcreteChannel(new ConsoleChannel(\"[Console]\"));\n public static final IOChannel DIALOG_CHANNEL =\n \t\tnew ConcreteChannel(new DialogChannel(\"[Dialog]\"));\n public static final IOChannel FILE_CHANNEL =\n new ConcreteChannel(\"File...\");\n\n}",
"PlaybackStateCompat mo738h() throws RemoteException;",
"public final void mo11687c() {\n }",
"private final com.google.wireless.android.finsky.dfe.p515h.p516a.ae m35733b(com.google.protobuf.nano.C7213a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.m33550a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 18: goto L_0x001f;\n case 26: goto L_0x002c;\n case 34: goto L_0x0039;\n case 42: goto L_0x004a;\n case 50: goto L_0x0057;\n case 56: goto L_0x0064;\n case 64: goto L_0x00a3;\n case 72: goto L_0x00b1;\n case 82: goto L_0x00bf;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r6.f38026c;\n if (r0 != 0) goto L_0x0019;\n L_0x0012:\n r0 = new com.google.android.finsky.cv.a.bd;\n r0.<init>();\n r6.f38026c = r0;\n L_0x0019:\n r0 = r6.f38026c;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x001f:\n r0 = r7.m33564f();\n r6.f38027d = r0;\n r0 = r6.f38025b;\n r0 = r0 | 1;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x002c:\n r0 = r7.m33564f();\n r6.f38028e = r0;\n r0 = r6.f38025b;\n r0 = r0 | 2;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0039:\n r0 = r6.f38029f;\n if (r0 != 0) goto L_0x0044;\n L_0x003d:\n r0 = new com.google.android.finsky.cv.a.ax;\n r0.<init>();\n r6.f38029f = r0;\n L_0x0044:\n r0 = r6.f38029f;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x004a:\n r0 = r7.m33564f();\n r6.f38030g = r0;\n r0 = r6.f38025b;\n r0 = r0 | 4;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0057:\n r0 = r7.m33564f();\n r6.f38031h = r0;\n r0 = r6.f38025b;\n r0 = r0 | 8;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0064:\n r1 = r6.f38025b;\n r1 = r1 | 16;\n r6.f38025b = r1;\n r1 = r7.m33573o();\n r2 = r7.m33567i();\t Catch:{ IllegalArgumentException -> 0x0090 }\n switch(r2) {\n case 0: goto L_0x0099;\n case 1: goto L_0x0099;\n case 2: goto L_0x0099;\n case 3: goto L_0x0099;\n case 4: goto L_0x0099;\n default: goto L_0x0075;\n };\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0075:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = 36;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = \" is not a valid enum Type\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0090 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0090:\n r2 = move-exception;\n r7.m33562e(r1);\n r6.a(r7, r0);\n goto L_0x0000;\n L_0x0099:\n r6.f38032i = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r6.f38025b;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2 | 16;\n r6.f38025b = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n goto L_0x0000;\n L_0x00a3:\n r0 = r7.m33563e();\n r6.f38033j = r0;\n r0 = r6.f38025b;\n r0 = r0 | 32;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00b1:\n r0 = r7.m33563e();\n r6.f38034k = r0;\n r0 = r6.f38025b;\n r0 = r0 | 64;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00bf:\n r0 = r6.f38035l;\n if (r0 != 0) goto L_0x00ca;\n L_0x00c3:\n r0 = new com.google.android.finsky.cv.a.cv;\n r0.<init>();\n r6.f38035l = r0;\n L_0x00ca:\n r0 = r6.f38035l;\n r7.m33552a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.h.a.ae.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.h.a.ae\");\n }",
"public static synchronized HotspotCompilationMBean getHotspotCompilationMBean()\n/* */ {\n/* 330 */ if (hsCompileMBean == null) {\n/* 331 */ hsCompileMBean = new HotspotCompilation(jvm);\n/* */ }\n/* 333 */ return hsCompileMBean;\n/* */ }",
"org.jetbrains.kotlin.gradle.idea.proto.generated.kpm.IdeaKpmNativePlatformProto getNative();",
"com.google.wireless.android.sdk.stats.ConfigurationCacheCompatibilityData.CompatibilityState getCompatibilityState();",
"private static /* synthetic */ boolean[] m37843a() {\n boolean[] zArr = f35337a;\n if (zArr != null) {\n return zArr;\n }\n boolean[] probes = Offline.getProbes(2117124487222320605L, \"com/mopub/mobileads/native_video/R$color\", 1);\n f35337a = probes;\n return probes;\n }",
"static int m61445c(Context context) {\n boolean z;\n ActivityManager activityManager = (ActivityManager) m61431a(context, \"activity\");\n if ((context.getApplicationInfo().flags & 1048576) != 0) {\n z = true;\n } else {\n z = false;\n }\n int memoryClass = activityManager.getMemoryClass();\n if (z && VERSION.SDK_INT >= 11) {\n memoryClass = C18809a.m61448a(activityManager);\n }\n return (memoryClass * 1048576) / 7;\n }",
"private static /* synthetic */ boolean[] m45644a() {\n boolean[] zArr = f25957N;\n if (zArr != null) {\n return zArr;\n }\n boolean[] a = C13938g.m59885a(7736054620100335078L, \"com/instabug/library/InstabugFeaturesManager$2\", 35);\n f25957N = a;\n return a;\n }",
"public void run() {\n /*\n r6 = this;\n com.android.camera.imageprocessor.FrameProcessor r0 = com.android.camera.imageprocessor.FrameProcessor.this\n java.lang.Object r0 = r0.mAllocationLock\n monitor-enter(r0)\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n boolean r1 = r1.mIsActive // Catch:{ all -> 0x0077 }\n if (r1 != 0) goto L_0x0011\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n return\n L_0x0011:\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mInputAllocation // Catch:{ all -> 0x0077 }\n if (r1 != 0) goto L_0x0027\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n int r2 = r6.stride // Catch:{ all -> 0x0077 }\n int r3 = r6.height // Catch:{ all -> 0x0077 }\n int r4 = r6.stride // Catch:{ all -> 0x0077 }\n int r5 = r6.width // Catch:{ all -> 0x0077 }\n int r4 = r4 - r5\n r1.createAllocation(r2, r3, r4) // Catch:{ all -> 0x0077 }\n L_0x0027:\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mInputAllocation // Catch:{ all -> 0x0077 }\n byte[] r2 = r6.yvuBytes // Catch:{ all -> 0x0077 }\n r1.copyFrom(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.ScriptC_rotator r1 = r1.mRsRotator // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mInputAllocation // Catch:{ all -> 0x0077 }\n r1.forEach_rotate90andMerge(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.ScriptC_YuvToRgb r1 = r1.mRsYuvToRGB // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.forEach_nv21ToRgb(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.ioSend() // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n if (r1 == 0) goto L_0x0075\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.copyFrom(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r6 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r6 = r6.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n r6.ioSend() // Catch:{ all -> 0x0077 }\n L_0x0075:\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n return\n L_0x0077:\n r6 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n throw r6\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.camera.imageprocessor.FrameProcessor.ProcessingTask.run():void\");\n }",
"public void mo749s() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(18, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"public void mo753w() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(22, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"public static void m71676a() {\n f57214d = false;\n }",
"Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"public void mo6081a() {\n }",
"private static /* synthetic */ boolean[] m37840a() {\n boolean[] zArr = f35334a;\n if (zArr != null) {\n return zArr;\n }\n boolean[] probes = Offline.getProbes(-181259704852399252L, \"com/mopub/mobileads/native_video/R\", 1);\n f35334a = probes;\n return probes;\n }",
"private static synchronized void e(android.content.Context r11) {\n /*\n java.lang.Class<com.tencent.wxop.stat.g> r0 = com.tencent.wxop.stat.g.class\n monitor-enter(r0)\n if (r11 != 0) goto L_0x0007\n monitor-exit(r0)\n return\n L_0x0007:\n com.tencent.wxop.stat.a.f r1 = g // Catch:{ all -> 0x0099 }\n if (r1 != 0) goto L_0x0097\n java.lang.String r1 = com.tencent.wxop.stat.d.h // Catch:{ all -> 0x0099 }\n r2 = 0\n long r4 = com.tencent.wxop.stat.a.r.a((android.content.Context) r11, (java.lang.String) r1, (long) r2) // Catch:{ all -> 0x0099 }\n java.lang.String r1 = \"2.0.4\"\n long r6 = com.tencent.wxop.stat.a.n.b((java.lang.String) r1) // Catch:{ all -> 0x0099 }\n r1 = 1\n r8 = 0\n int r9 = (r6 > r4 ? 1 : (r6 == r4 ? 0 : -1))\n if (r9 > 0) goto L_0x003b\n com.tencent.wxop.stat.a.b r1 = r // Catch:{ all -> 0x0099 }\n java.lang.StringBuilder r9 = new java.lang.StringBuilder // Catch:{ all -> 0x0099 }\n java.lang.String r10 = \"MTA is disable for current version:\"\n r9.<init>(r10) // Catch:{ all -> 0x0099 }\n r9.append(r6) // Catch:{ all -> 0x0099 }\n java.lang.String r6 = \",wakeup version:\"\n r9.append(r6) // Catch:{ all -> 0x0099 }\n r9.append(r4) // Catch:{ all -> 0x0099 }\n java.lang.String r4 = r9.toString() // Catch:{ all -> 0x0099 }\n r1.d(r4) // Catch:{ all -> 0x0099 }\n r1 = 0\n L_0x003b:\n java.lang.String r4 = com.tencent.wxop.stat.d.i // Catch:{ all -> 0x0099 }\n long r2 = com.tencent.wxop.stat.a.r.a((android.content.Context) r11, (java.lang.String) r4, (long) r2) // Catch:{ all -> 0x0099 }\n long r4 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n int r6 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r6 <= 0) goto L_0x0069\n com.tencent.wxop.stat.a.b r1 = r // Catch:{ all -> 0x0099 }\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ all -> 0x0099 }\n java.lang.String r5 = \"MTA is disable for current time:\"\n r4.<init>(r5) // Catch:{ all -> 0x0099 }\n long r5 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n r4.append(r5) // Catch:{ all -> 0x0099 }\n java.lang.String r5 = \",wakeup time:\"\n r4.append(r5) // Catch:{ all -> 0x0099 }\n r4.append(r2) // Catch:{ all -> 0x0099 }\n java.lang.String r2 = r4.toString() // Catch:{ all -> 0x0099 }\n r1.d(r2) // Catch:{ all -> 0x0099 }\n r1 = 0\n L_0x0069:\n com.tencent.wxop.stat.d.a((boolean) r1) // Catch:{ all -> 0x0099 }\n if (r1 != 0) goto L_0x0070\n monitor-exit(r0)\n return\n L_0x0070:\n android.content.Context r11 = r11.getApplicationContext() // Catch:{ all -> 0x0099 }\n t = r11 // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.a.f r1 = new com.tencent.wxop.stat.a.f // Catch:{ all -> 0x0099 }\n r1.<init>() // Catch:{ all -> 0x0099 }\n g = r1 // Catch:{ all -> 0x0099 }\n java.lang.String r1 = com.tencent.wxop.stat.a.n.a((int) r8) // Catch:{ all -> 0x0099 }\n l = r1 // Catch:{ all -> 0x0099 }\n long r1 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n long r3 = com.tencent.wxop.stat.d.p // Catch:{ all -> 0x0099 }\n r5 = 0\n long r1 = r1 + r3\n f79893b = r1 // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.a.f r1 = g // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.am r2 = new com.tencent.wxop.stat.am // Catch:{ all -> 0x0099 }\n r2.<init>(r11) // Catch:{ all -> 0x0099 }\n r1.a(r2) // Catch:{ all -> 0x0099 }\n L_0x0097:\n monitor-exit(r0)\n return\n L_0x0099:\n r11 = move-exception\n monitor-exit(r0)\n throw r11\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.wxop.stat.g.e(android.content.Context):void\");\n }",
"public interface C6925b {\n /* renamed from: a */\n void mo22249a();\n\n @C0193h0\n int[] getState();\n\n boolean onStateChange(int[] iArr);\n }",
"public java.lang.Object mo13022a(java.lang.String r18, kotlin.coroutines.Continuation<? super java.lang.Boolean> r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r19\n boolean r2 = r1 instanceof p008c.p009a.p024e.p026b.C0963b.C0970g\n if (r2 == 0) goto L_0x0017\n r2 = r1\n c.a.e.b.b$g r2 = (p008c.p009a.p024e.p026b.C0963b.C0970g) r2\n int r3 = r2.f1086b\n r4 = -2147483648(0xffffffff80000000, float:-0.0)\n r5 = r3 & r4\n if (r5 == 0) goto L_0x0017\n int r3 = r3 - r4\n r2.f1086b = r3\n goto L_0x001c\n L_0x0017:\n c.a.e.b.b$g r2 = new c.a.e.b.b$g\n r2.<init>(r0, r1)\n L_0x001c:\n java.lang.Object r1 = r2.f1085a\n java.lang.Object r3 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r4 = r2.f1086b\n r5 = 0\n r6 = 2\n r7 = 1\n if (r4 == 0) goto L_0x0051\n if (r4 == r7) goto L_0x0045\n if (r4 != r6) goto L_0x003d\n java.lang.Object r3 = r2.f1090f\n java.lang.String r3 = (java.lang.String) r3\n java.lang.Object r3 = r2.f1089e\n java.lang.String r3 = (java.lang.String) r3\n java.lang.Object r2 = r2.f1088d\n c.a.e.b.b r2 = (p008c.p009a.p024e.p026b.C0963b) r2\n kotlin.ResultKt.throwOnFailure(r1)\n goto L_0x00a1\n L_0x003d:\n java.lang.IllegalStateException r1 = new java.lang.IllegalStateException\n java.lang.String r2 = \"call to 'resume' before 'invoke' with coroutine\"\n r1.<init>(r2)\n throw r1\n L_0x0045:\n java.lang.Object r4 = r2.f1089e\n java.lang.String r4 = (java.lang.String) r4\n java.lang.Object r8 = r2.f1088d\n c.a.e.b.b r8 = (p008c.p009a.p024e.p026b.C0963b) r8\n kotlin.ResultKt.throwOnFailure(r1)\n goto L_0x0066\n L_0x0051:\n kotlin.ResultKt.throwOnFailure(r1)\n c.a.e.c.a r1 = r0.f1032c\n r2.f1088d = r0\n r4 = r18\n r2.f1089e = r4\n r2.f1086b = r7\n java.lang.Object r1 = r1.mo13034a(r2)\n if (r1 != r3) goto L_0x0065\n return r3\n L_0x0065:\n r8 = r0\n L_0x0066:\n c.a.e.c.a r1 = r8.f1032c\n java.lang.String r1 = r1.mo13035a()\n if (r1 == 0) goto L_0x00b7\n org.mobileid.time_key.web_service.TimeKeyWebService r15 = r8.f1031b\n org.mobileid.time_key.web_service.ActionOnKeyBody r14 = new org.mobileid.time_key.web_service.ActionOnKeyBody\n java.util.Locale r9 = java.util.Locale.getDefault()\n java.lang.String r10 = \"Locale.getDefault()\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r9, r10)\n if (r4 == 0) goto L_0x00af\n java.lang.String r10 = r4.toUpperCase(r9)\n java.lang.String r9 = \"(this as java.lang.String).toUpperCase(locale)\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r10, r9)\n r12 = 0\n r13 = 4\n r16 = 0\n r9 = r14\n r11 = r1\n r7 = r14\n r14 = r16\n r9.<init>(r10, r11, r12, r13, r14)\n r2.f1088d = r8\n r2.f1089e = r4\n r2.f1090f = r1\n r2.f1086b = r6\n java.lang.Object r1 = r15.activateKey(r7, r2)\n if (r1 != r3) goto L_0x00a1\n return r3\n L_0x00a1:\n org.mobileid.requester.web_service.Response r1 = (org.mobileid.requester.web_service.Response) r1\n java.lang.Object r1 = r1.getResult()\n if (r1 == 0) goto L_0x00aa\n r5 = 1\n L_0x00aa:\n java.lang.Boolean r1 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r5)\n return r1\n L_0x00af:\n java.lang.NullPointerException r1 = new java.lang.NullPointerException\n java.lang.String r2 = \"null cannot be cast to non-null type java.lang.String\"\n r1.<init>(r2)\n throw r1\n L_0x00b7:\n java.lang.Boolean r1 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r5)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p008c.p009a.p024e.p026b.C0963b.mo13022a(java.lang.String, kotlin.coroutines.Continuation):java.lang.Object\");\n }",
"@DISPID(1611006095) //= 0x6006008f. The runtime will prefer the VTID if present\n @VTID(170)\n boolean colorSynchronizationEditability();",
"@Override\n public boolean isSupported() {\n return true;\n }",
"void mo80457c();",
"public interface IMAVLink extends SERIAL_CONTROL_DEV,MAV_ARM_AUTH_DENIED_REASON,SET_FOCUS_TYPE,MAV_MODE_FLAG_DECODE_POSITION,ESTIMATOR_STATUS_FLAGS,MAV_GOTO,MAV_SEVERITY,CAMERA_ZOOM_TYPE,MAV_CMD,MSP_AUTOCONTROL_MODE,MAV_DISTANCE_SENSOR,MAV_MISSION_TYPE,VIDEO_STREAM_STATUS_FLAGS,POSITION_TARGET_TYPEMASK,MAV_MOUNT_MODE,VIDEO_STREAM_TYPE,MAV_DO_REPOSITION_FLAGS,VTOL_TRANSITION_HEADING,MAV_DATA_STREAM,MAV_MODE_FLAG,MAV_FRAME,CELLULAR_NETWORK_STATUS_FLAG,GPS_INPUT_IGNORE_FLAGS,MOTOR_TEST_ORDER,MAV_COLLISION_ACTION,MSP_AUTOCONTROL_ACTION,MAV_AUTOPILOT,UTM_FLIGHT_STATE,MOTOR_TEST_THROTTLE_TYPE,MSP_CMD,UTM_DATA_AVAIL_FLAGS,CAMERA_MODE,MAV_PROTOCOL_CAPABILITY,PARAM_ACK,UAVCAN_NODE_HEALTH,MAV_SYS_STATUS_SENSOR,MAV_VTOL_STATE,ADSB_ALTITUDE_TYPE,MAV_ROI,MAV_COLLISION_SRC,MAV_ESTIMATOR_TYPE,LANDING_TARGET_TYPE,FENCE_ACTION,FIRMWARE_VERSION_TYPE,SERIAL_CONTROL_FLAG,PRECISION_LAND_MODE,MAV_TYPE,CAMERA_CAP_FLAGS,MAV_CMD_ACK,HL_FAILURE_FLAG,MAV_MODE,MAV_POWER_STATUS,ADSB_FLAGS,MAV_MISSION_RESULT,MAV_BATTERY_FUNCTION,CELLULAR_NETWORK_RADIO_TYPE,MAV_RESULT,MAV_LANDED_STATE,MAV_STATE,FENCE_BREACH,ADSB_EMITTER_TYPE,MAV_PARAM_TYPE,MAV_COMPONENT,MAV_COLLISION_THREAT_LEVEL,MAV_PARAM_EXT_TYPE,MSP_COMPONENT_CTRL,MAV_SENSOR_ORIENTATION,MAVLINK_DATA_STREAM_TYPE,RTK_BASELINE_COORDINATE_SYSTEM,MSP_GRID_STATUS,GPS_FIX_TYPE,UAVCAN_NODE_MODE,MAV_BATTERY_CHARGE_STATE,MAV_BATTERY_TYPE,RC_TYPE {\n}",
"public static Object gvcVersion(Object... arg) {\r\nUNSUPPORTED(\"34219rcx2cc7lx28xxwdo2zic\"); // char *gvcVersion(GVC_t* gvc) { return gvc->common.info[1]; }\r\n\r\nthrow new UnsupportedOperationException();\r\n}",
"private static /* synthetic */ boolean[] m37848a() {\n boolean[] zArr = f35342a;\n if (zArr != null) {\n return zArr;\n }\n boolean[] probes = Offline.getProbes(-9027816996356187590L, \"com/mopub/mobileads/native_video/R$layout\", 1);\n f35342a = probes;\n return probes;\n }",
"public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"@androidx.annotation.Nullable\n /* renamed from: a */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static com.inmobi.media.C2336dl m4847a(@androidx.annotation.NonNull java.lang.String r3, @androidx.annotation.Nullable com.inmobi.media.C2600j r4, @androidx.annotation.Nullable java.lang.String r5, boolean r6) {\n /*\n com.iab.omid.library.inmobi.adsession.AdSessionContext r4 = m4846a(r4, r5)\n int r5 = r3.hashCode()\n r0 = -284840886(0xffffffffef05ac4a, float:-4.136979E28)\n r1 = 3\n r2 = 2\n if (r5 == r0) goto L_0x002e\n r0 = 112202875(0x6b0147b, float:6.6233935E-35)\n if (r5 == r0) goto L_0x0024\n r0 = 1425678798(0x54fa21ce, float:8.5944718E12)\n if (r5 == r0) goto L_0x001a\n goto L_0x0038\n L_0x001a:\n java.lang.String r5 = \"nonvideo\"\n boolean r3 = r3.equals(r5)\n if (r3 == 0) goto L_0x0038\n r3 = 2\n goto L_0x0039\n L_0x0024:\n java.lang.String r5 = \"video\"\n boolean r3 = r3.equals(r5)\n if (r3 == 0) goto L_0x0038\n r3 = 3\n goto L_0x0039\n L_0x002e:\n java.lang.String r5 = \"unknown\"\n boolean r3 = r3.equals(r5)\n if (r3 == 0) goto L_0x0038\n r3 = 1\n goto L_0x0039\n L_0x0038:\n r3 = -1\n L_0x0039:\n if (r3 == r2) goto L_0x0047\n if (r3 == r1) goto L_0x003f\n r3 = 0\n goto L_0x004e\n L_0x003f:\n com.inmobi.media.dm r3 = new com.inmobi.media.dm\n java.lang.String r5 = \"html_video_ad\"\n r3.<init>(r5, r4, r6)\n goto L_0x004e\n L_0x0047:\n com.inmobi.media.dm r3 = new com.inmobi.media.dm\n java.lang.String r5 = \"html_display_ad\"\n r3.<init>(r5, r4)\n L_0x004e:\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.inmobi.media.C2341dp.m4847a(java.lang.String, com.inmobi.media.j, java.lang.String, boolean):com.inmobi.media.dl\");\n }",
"static synchronized void a(android.content.Context r18) {\n /*\n java.lang.Class<com.ss.android.common.applog.n> r1 = com.ss.android.common.applog.n.class\n monitor-enter(r1)\n r2 = 1\n java.lang.Object[] r3 = new java.lang.Object[r2] // Catch:{ all -> 0x0085 }\n r10 = 0\n r3[r10] = r18 // Catch:{ all -> 0x0085 }\n r4 = 0\n com.meituan.robust.ChangeQuickRedirect r5 = f28180a // Catch:{ all -> 0x0085 }\n r6 = 1\n r7 = 15558(0x3cc6, float:2.1801E-41)\n java.lang.Class[] r8 = new java.lang.Class[r2] // Catch:{ all -> 0x0085 }\n java.lang.Class<android.content.Context> r9 = android.content.Context.class\n r8[r10] = r9 // Catch:{ all -> 0x0085 }\n java.lang.Class r9 = java.lang.Void.TYPE // Catch:{ all -> 0x0085 }\n boolean r3 = com.meituan.robust.PatchProxy.isSupport(r3, r4, r5, r6, r7, r8, r9) // Catch:{ all -> 0x0085 }\n if (r3 == 0) goto L_0x0036\n java.lang.Object[] r11 = new java.lang.Object[r2] // Catch:{ all -> 0x0085 }\n r11[r10] = r18 // Catch:{ all -> 0x0085 }\n r12 = 0\n com.meituan.robust.ChangeQuickRedirect r13 = f28180a // Catch:{ all -> 0x0085 }\n r14 = 1\n r15 = 15558(0x3cc6, float:2.1801E-41)\n java.lang.Class[] r0 = new java.lang.Class[r2] // Catch:{ all -> 0x0085 }\n java.lang.Class<android.content.Context> r2 = android.content.Context.class\n r0[r10] = r2 // Catch:{ all -> 0x0085 }\n java.lang.Class r17 = java.lang.Void.TYPE // Catch:{ all -> 0x0085 }\n r16 = r0\n com.meituan.robust.PatchProxy.accessDispatch(r11, r12, r13, r14, r15, r16, r17) // Catch:{ all -> 0x0085 }\n monitor-exit(r1)\n return\n L_0x0036:\n int r3 = f28181b // Catch:{ Throwable -> 0x0083 }\n if (r3 >= 0) goto L_0x003d\n b(r18) // Catch:{ Throwable -> 0x0083 }\n L_0x003d:\n int r3 = f28181b // Catch:{ Throwable -> 0x0083 }\n r4 = 500(0x1f4, float:7.0E-43)\n if (r3 >= r4) goto L_0x0045\n monitor-exit(r1)\n return\n L_0x0045:\n java.util.LinkedList<java.io.File> r3 = f28182c // Catch:{ Throwable -> 0x0083 }\n if (r3 != 0) goto L_0x004c\n b(r18) // Catch:{ Throwable -> 0x0083 }\n L_0x004c:\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n if (r0 != 0) goto L_0x0052\n monitor-exit(r1)\n return\n L_0x0052:\n int r0 = f28181b // Catch:{ Throwable -> 0x0083 }\n if (r0 <= r4) goto L_0x006f\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n int r0 = r0.size() // Catch:{ Throwable -> 0x0083 }\n if (r0 <= 0) goto L_0x006f\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n java.lang.Object r0 = r0.removeFirst() // Catch:{ Throwable -> 0x0083 }\n java.io.File r0 = (java.io.File) r0 // Catch:{ Throwable -> 0x0083 }\n r0.delete() // Catch:{ Throwable -> 0x0083 }\n int r0 = f28181b // Catch:{ Throwable -> 0x0083 }\n int r0 = r0 - r2\n f28181b = r0 // Catch:{ Throwable -> 0x0083 }\n goto L_0x0052\n L_0x006f:\n int r0 = f28181b // Catch:{ Throwable -> 0x0083 }\n if (r0 >= 0) goto L_0x0076\n r0 = -1\n f28181b = r0 // Catch:{ Throwable -> 0x0083 }\n L_0x0076:\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n boolean r0 = r0.isEmpty() // Catch:{ Throwable -> 0x0083 }\n if (r0 == 0) goto L_0x0081\n r0 = 0\n f28182c = r0 // Catch:{ Throwable -> 0x0083 }\n L_0x0081:\n monitor-exit(r1)\n return\n L_0x0083:\n monitor-exit(r1)\n return\n L_0x0085:\n r0 = move-exception\n monitor-exit(r1)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.common.applog.n.a(android.content.Context):void\");\n }",
"C0832f m5767a() throws C0841b, WDException;",
"public final synchronized amy mo39464b() {\n return this.f40742x;\n }",
"public static void m29696f() {\n C10002u.m29671a(new Runnable() {\n public final void run() {\n try {\n NativeImpl.m29697g();\n } catch (Throwable unused) {\n }\n }\n }, \"NPTH-AnrMonitor\");\n }",
"public JvmType getClassx();",
"public final synchronized void a(com.ss.android.medialib.camera.IESCameraInterface.d r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x003f }\n r9 = 0\n r1[r9] = r11 // Catch:{ all -> 0x003f }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x003f }\n r4 = 0\n r5 = 16775(0x4187, float:2.3507E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x003f }\n java.lang.Class<com.ss.android.medialib.camera.IESCameraInterface$d> r2 = com.ss.android.medialib.camera.IESCameraInterface.d.class\n r6[r9] = r2 // Catch:{ all -> 0x003f }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x003f }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x003f }\n if (r1 == 0) goto L_0x0032\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x003f }\n r1[r9] = r11 // Catch:{ all -> 0x003f }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x003f }\n r4 = 0\n r5 = 16775(0x4187, float:2.3507E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x003f }\n java.lang.Class<com.ss.android.medialib.camera.IESCameraInterface$d> r0 = com.ss.android.medialib.camera.IESCameraInterface.d.class\n r6[r9] = r0 // Catch:{ all -> 0x003f }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x003f }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x003f }\n monitor-exit(r10)\n return\n L_0x0032:\n r10.f29530f = r11 // Catch:{ all -> 0x003f }\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x003f }\n if (r1 == 0) goto L_0x003d\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x003f }\n r1.a((com.ss.android.medialib.camera.IESCameraInterface.d) r11) // Catch:{ all -> 0x003f }\n L_0x003d:\n monitor-exit(r10)\n return\n L_0x003f:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.a(com.ss.android.medialib.camera.IESCameraInterface$d):void\");\n }",
"BlockingAudioTrack(android.speech.tts.TextToSpeechService.AudioOutputParams r1, int r2, int r3, int r4) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e6 in method: android.speech.tts.BlockingAudioTrack.<init>(android.speech.tts.TextToSpeechService$AudioOutputParams, int, int, int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.speech.tts.BlockingAudioTrack.<init>(android.speech.tts.TextToSpeechService$AudioOutputParams, int, int, int):void\");\n }",
"public interface ITechLinker extends ITechByteObject {\r\n \r\n /**\r\n * \r\n */\r\n public static final int LINKER_BASIC_SIZE = A_OBJECT_BASIC_SIZE + 5;\r\n\r\n /**\r\n * \r\n */\r\n public static final int LINKER_OFFSET_01_TYPE1 = A_OBJECT_BASIC_SIZE;\r\n\r\n /**\r\n * \r\n */\r\n public static final int LINKER_OFFSET_02_DATA4 = A_OBJECT_BASIC_SIZE + 1;\r\n\r\n}",
"public final /* synthetic */ java.lang.Object mo13028a(java.util.Map<java.lang.String, ? extends java.util.Map<java.lang.String, java.lang.String>> r11, java.lang.String r12, java.util.List<java.lang.String> r13, boolean r14, kotlin.coroutines.Continuation<? super kotlin.Unit> r15) {\n /*\n r10 = this;\n boolean r0 = r15 instanceof p008c.p009a.p024e.p026b.C0963b.C0964a\n if (r0 == 0) goto L_0x0013\n r0 = r15\n c.a.e.b.b$a r0 = (p008c.p009a.p024e.p026b.C0963b.C0964a) r0\n int r1 = r0.f1034b\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r3 = r1 & r2\n if (r3 == 0) goto L_0x0013\n int r1 = r1 - r2\n r0.f1034b = r1\n goto L_0x0018\n L_0x0013:\n c.a.e.b.b$a r0 = new c.a.e.b.b$a\n r0.<init>(r10, r15)\n L_0x0018:\n java.lang.Object r15 = r0.f1033a\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.f1034b\n r3 = 1\n if (r2 == 0) goto L_0x005c\n if (r2 != r3) goto L_0x0054\n java.lang.Object r11 = r0.f1046n\n org.mobileid.access.key.TimeKey r11 = (org.mobileid.access.key.TimeKey) r11\n java.lang.Object r11 = r0.f1044l\n java.util.Iterator r11 = (java.util.Iterator) r11\n java.lang.Object r12 = r0.f1043k\n java.lang.Iterable r12 = (java.lang.Iterable) r12\n java.lang.Object r13 = r0.f1042j\n java.util.List r13 = (java.util.List) r13\n java.lang.Object r14 = r0.f1041i\n java.util.List r14 = (java.util.List) r14\n java.lang.Object r2 = r0.f1040h\n java.util.Map r2 = (java.util.Map) r2\n boolean r4 = r0.f1047o\n java.lang.Object r5 = r0.f1039g\n java.util.List r5 = (java.util.List) r5\n java.lang.Object r6 = r0.f1038f\n java.lang.String r6 = (java.lang.String) r6\n java.lang.Object r7 = r0.f1037e\n java.util.Map r7 = (java.util.Map) r7\n java.lang.Object r8 = r0.f1036d\n c.a.e.b.b r8 = (p008c.p009a.p024e.p026b.C0963b) r8\n kotlin.ResultKt.throwOnFailure(r15)\n goto L_0x00e2\n L_0x0054:\n java.lang.IllegalStateException r11 = new java.lang.IllegalStateException\n java.lang.String r12 = \"call to 'resume' before 'invoke' with coroutine\"\n r11.<init>(r12)\n throw r11\n L_0x005c:\n kotlin.ResultKt.throwOnFailure(r15)\n java.util.LinkedHashMap r2 = new java.util.LinkedHashMap\n r2.<init>()\n java.util.Set r15 = r11.entrySet()\n java.util.Iterator r15 = r15.iterator()\n L_0x006c:\n boolean r4 = r15.hasNext()\n if (r4 == 0) goto L_0x00a1\n java.lang.Object r4 = r15.next()\n java.util.Map$Entry r4 = (java.util.Map.Entry) r4\n java.lang.Object r5 = r4.getValue()\n java.util.Map r5 = (java.util.Map) r5\n java.lang.String r6 = \"status\"\n java.lang.Object r5 = r5.get(r6)\n java.lang.String r5 = (java.lang.String) r5\n boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r5, (java.lang.Object) r12)\n java.lang.Boolean r5 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r5)\n boolean r5 = r5.booleanValue()\n if (r5 == 0) goto L_0x006c\n java.lang.Object r5 = r4.getKey()\n java.lang.Object r4 = r4.getValue()\n r2.put(r5, r4)\n goto L_0x006c\n L_0x00a1:\n java.util.List r15 = r10.mo13029a((java.util.Map<java.lang.String, ? extends java.util.Map<java.lang.String, java.lang.String>>) r2)\n java.util.ArrayList r4 = new java.util.ArrayList\n r4.<init>()\n r5 = r15\n java.util.ArrayList r5 = (java.util.ArrayList) r5\n java.util.Iterator r5 = r5.iterator()\n L_0x00b1:\n boolean r6 = r5.hasNext()\n if (r6 == 0) goto L_0x00d5\n java.lang.Object r6 = r5.next()\n r7 = r6\n org.mobileid.access.key.TimeKey r7 = (org.mobileid.access.key.TimeKey) r7\n java.lang.String r7 = r7.getId()\n boolean r7 = r13.contains(r7)\n r7 = r7 ^ r3\n java.lang.Boolean r7 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r7)\n boolean r7 = r7.booleanValue()\n if (r7 == 0) goto L_0x00b1\n r4.add(r6)\n goto L_0x00b1\n L_0x00d5:\n java.util.Iterator r5 = r4.iterator()\n r8 = r10\n r7 = r11\n r6 = r12\n r12 = r4\n r11 = r5\n r5 = r13\n r13 = r12\n r4 = r14\n r14 = r15\n L_0x00e2:\n boolean r15 = r11.hasNext()\n if (r15 == 0) goto L_0x0110\n java.lang.Object r15 = r11.next()\n r9 = r15\n org.mobileid.access.key.TimeKey r9 = (org.mobileid.access.key.TimeKey) r9\n r0.f1036d = r8\n r0.f1037e = r7\n r0.f1038f = r6\n r0.f1039g = r5\n r0.f1047o = r4\n r0.f1040h = r2\n r0.f1041i = r14\n r0.f1042j = r13\n r0.f1043k = r12\n r0.f1044l = r11\n r0.f1045m = r15\n r0.f1046n = r9\n r0.f1034b = r3\n java.lang.Object r15 = r8.mo13024a((org.mobileid.access.key.TimeKey) r9, (kotlin.coroutines.Continuation<? super kotlin.Unit>) r0)\n if (r15 != r1) goto L_0x00e2\n return r1\n L_0x0110:\n kotlin.Unit r11 = kotlin.Unit.INSTANCE\n return r11\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p008c.p009a.p024e.p026b.C0963b.mo13028a(java.util.Map, java.lang.String, java.util.List, boolean, kotlin.coroutines.Continuation):java.lang.Object\");\n }",
"private void initHardware(){\n }"
] |
[
"0.55527735",
"0.49592173",
"0.4952837",
"0.4939221",
"0.48416436",
"0.48303854",
"0.48094627",
"0.47915128",
"0.47816637",
"0.47746634",
"0.47666964",
"0.47491306",
"0.47469944",
"0.47423488",
"0.47244677",
"0.47195888",
"0.47167975",
"0.47067076",
"0.4696849",
"0.46752888",
"0.4674595",
"0.46665466",
"0.4664176",
"0.46528774",
"0.46455827",
"0.4627225",
"0.4623771",
"0.461089",
"0.4602729",
"0.45897028",
"0.4586658",
"0.45832083",
"0.45818245",
"0.45785",
"0.45755997",
"0.45741048",
"0.45581782",
"0.45513698",
"0.45317486",
"0.4531736",
"0.45265815",
"0.45183071",
"0.4505883",
"0.45019782",
"0.4500133",
"0.44988847",
"0.44935182",
"0.44927564",
"0.44924185",
"0.4487755",
"0.44831464",
"0.44829252",
"0.4482517",
"0.4477901",
"0.44745716",
"0.4472383",
"0.4469815",
"0.4465542",
"0.44652236",
"0.44616553",
"0.44592583",
"0.44580975",
"0.44580692",
"0.44561312",
"0.4451427",
"0.44503218",
"0.44481456",
"0.4443843",
"0.44311795",
"0.44303414",
"0.442972",
"0.44206634",
"0.44198608",
"0.44140783",
"0.44112635",
"0.44112065",
"0.44110087",
"0.4409167",
"0.44082183",
"0.4404596",
"0.4404272",
"0.44037867",
"0.4403606",
"0.4394502",
"0.4393906",
"0.43938252",
"0.4393461",
"0.4388711",
"0.43876734",
"0.43865684",
"0.4384774",
"0.43847027",
"0.43827334",
"0.43775043",
"0.4376783",
"0.4376563",
"0.43743968",
"0.43739095",
"0.4372255",
"0.437017"
] |
0.56393164
|
0
|
/ Methods inherited from (js.browser.NavigatorConcurrentHardware)
|
@JsProperty(name = "hardwareConcurrency")
Number getHardwareConcurrency();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void hardwareResources() {\n\t\tSystem.out.println(\"I am the Hardware implemented through Multiple inheritence in Desktop class\");\r\n\r\n\t}",
"public void hardwareResources() {\n\t\t\r\n\t}",
"@JsType(isNative=true, namespace=JsPackage.GLOBAL, name=\"Object\")\npublic interface NavigatorConcurrentHardware\n{\n\n /*\n Methods\n */\n /** \n * inherited from (js.browser.NavigatorConcurrentHardware)\n */\n @JsProperty(name = \"hardwareConcurrency\")\n Number getHardwareConcurrency();\n /** \n * inherited from (js.browser.NavigatorConcurrentHardware)\n */\n @JsProperty(name = \"hardwareConcurrency\")\n void setHardwareConcurrency(@DoNotAutobox Number value);\n}",
"private void initHardware(){\n }",
"@Override\n\tpublic boolean isHardware(){\n\t\treturn false;\n\t}",
"void openHardware(){\n if(hardware!=null && hardware.isOpen()){\n playMode=PlayMode.LIVE; // in case (like StereoHardwareInterface) where device can be open but not by MotionViewer\n return;\n }\n try{\n hardware=(SiLabsC8051F320_OpticalFlowHardwareInterface)OpticalFlowHardwareInterfaceFactory.instance().getFirstAvailableInterface();\n hardware.setChip(chip);\n chip.setHardwareInterface(hardware);\n hardware.open();\n\n\n \n if(hardware==null) {\n fixLoggingControls();\n fixBiasgenControls();\n return;\n }\n\n fixLoggingControls();\n fixBiasgenControls();\n // note it is important that this openHardware succeeed BEFORE hardware is assigned to biasgen, which immeiately tries to openHardware and download biases, creating a storm of complaints if not sucessful!\n \n// if(hardware instanceof BiasgenHardwareInterface){\n// chip.getBiasgen().sendConfiguration(chip.getBiasgen());\n// chip.setHardwareInterface(hardware); // if we do this, events do not start coming again after reconnect of device\n// biasgen=chip.getBiasgen();\n// if(biasgenFrame==null) {\n// biasgenFrame=new BiasgenFrame(biasgen); // should check if exists...\n// }\n// }\n \n setPlaybackControlsEnabledState(true);\n setPlayMode(PlayMode.LIVE);\n setTitleAccordingToState();\n }catch(Exception e){\n log.warning(e.getMessage());\n if(hardware!= null) hardware.close();\n setPlaybackControlsEnabledState(false);\n fixLoggingControls();\n fixBiasgenControls();\n setPlayMode(PlayMode.WAITING);\n }\n }",
"@Override\n\tprotected void checkHardware() {\n\t\tsuper.checkHardware();\n\t}",
"@Override\n public void runOpMode() throws InterruptedException {\n distanceSensorInRange = false;\n myGlyphLift = new glyphLift(hardwareMap.dcMotor.get(\"glyph_lift\"));\n myColorSensorArm = new colorSensorArm(hardwareMap.servo.get(\"color_sensor_arm\"),hardwareMap.colorSensor.get(\"sensor_color\"), hardwareMap.servo.get(\"color_sensor_arm_rotate\"));\n myMechDrive = new mechDriveAuto(hardwareMap.dcMotor.get(\"front_left_motor\"), hardwareMap.dcMotor.get(\"front_right_motor\"), hardwareMap.dcMotor.get(\"rear_left_motor\"), hardwareMap.dcMotor.get(\"rear_right_motor\"));\n myGlyphArms = new glyphArms(hardwareMap.servo.get(\"top_left_glyph_arm\"), hardwareMap.servo.get(\"bottom_left_glyph_arm\"), hardwareMap.servo.get(\"top_left_glyph_arm\"), hardwareMap.servo.get(\"bottom_right_glyph_arm\"));\n myBoardArm = new boardArm(hardwareMap.dcMotor.get(\"board_arm\"));\n myRevColorDistanceSensor = new revColorDistanceSensor(hardwareMap.get(ColorSensor.class, \"rev_sensor_color_distance\"), hardwareMap.get(DistanceSensor.class, \"rev_sensor_color_distance\"));\n\n\n myColorSensorArm.colorSensorArmUpSlow();\n myColorSensorArm.colorRotateResting();\n //myGlyphArms.openRaisedGlyphArms(); //ensures robot is wihin 18\" by 18\" parameters\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n parameters.vuforiaLicenseKey = \"ASmjss3/////AAAAGQGMjs1d6UMZvrjQPX7J14B0s7kN+rWOyxwitoTy9i0qV7D+YGPfPeeoe/RgJjgMLabjIyRXYmDFLlJYTJvG9ez4GQSI4L8BgkCZkUWpAguRsP8Ah/i6dXIz/vVR/VZxVTR5ItyCovcRY+SPz3CP1tNag253qwl7E900NaEfFh6v/DalkEDppFevUDOB/WuLZmHu53M+xx7E3x35VW86glGKnxDLzcd9wS1wK5QhfbPOExe97azxVOVER8zNNF7LP7B+Qeticfs3O9pGXzI8lj3zClut/7aDVwZ10IPVk4oma6CO8FM5UtNLSb3sicoKV5QGiNmxbbOlnPxz9qD38UAHshq2/y0ZjI/a8oT+doCr\";\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.BACK;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n waitForStart();\n\n relicTrackables.activate();\n\n while (opModeIsActive()) {\n myGlyphArms.closeGlyphArms();\n sleep(2000);\n myMechDrive.vuforiaLeft(myGlyphArms);\n sleep(1000);\n requestOpModeStop();\n }\n }",
"@Override\n public void onMachineActivated()\n {\n \n }",
"public HardwareFacade getHardware() {\n\treturn hf;\n }",
"public synchronized boolean OnRendererCoreReleased(miui.maml.RendererCore r9) {\r\n /*\r\n r8 = this;\r\n monitor-enter(r8);\r\n r0 = \"RendererCoreCache\";\r\n r1 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0049 }\r\n r1.<init>();\t Catch:{ all -> 0x0049 }\r\n r2 = \"OnRendererCoreReleased: \";\r\n r1.append(r2);\t Catch:{ all -> 0x0049 }\r\n r1.append(r9);\t Catch:{ all -> 0x0049 }\r\n r1 = r1.toString();\t Catch:{ all -> 0x0049 }\r\n android.util.Log.d(r0, r1);\t Catch:{ all -> 0x0049 }\r\n r0 = r8.mCaches;\t Catch:{ all -> 0x0049 }\r\n r0 = r0.keySet();\t Catch:{ all -> 0x0049 }\r\n r0 = r0.iterator();\t Catch:{ all -> 0x0049 }\r\n L_0x0021:\r\n r1 = r0.hasNext();\t Catch:{ all -> 0x0049 }\r\n r2 = 0;\r\n if (r1 == 0) goto L_0x0047;\r\n L_0x0028:\r\n r1 = r0.next();\t Catch:{ all -> 0x0049 }\r\n r3 = r8.mCaches;\t Catch:{ all -> 0x0049 }\r\n r3 = r3.get(r1);\t Catch:{ all -> 0x0049 }\r\n r3 = (miui.maml.util.RendererCoreCache.RendererCoreInfo) r3;\t Catch:{ all -> 0x0049 }\r\n r4 = r3.r;\t Catch:{ all -> 0x0049 }\r\n if (r4 != r9) goto L_0x0046;\r\n L_0x0038:\r\n r8.release(r1);\t Catch:{ all -> 0x0049 }\r\n r4 = r3.cacheTime;\t Catch:{ all -> 0x0049 }\r\n r6 = 0;\r\n r0 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1));\r\n if (r0 != 0) goto L_0x0044;\r\n L_0x0043:\r\n r2 = 1;\r\n L_0x0044:\r\n monitor-exit(r8);\r\n return r2;\r\n L_0x0046:\r\n goto L_0x0021;\r\n L_0x0047:\r\n monitor-exit(r8);\r\n return r2;\r\n L_0x0049:\r\n r9 = move-exception;\r\n monitor-exit(r8);\r\n throw r9;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: miui.maml.util.RendererCoreCache.OnRendererCoreReleased(miui.maml.RendererCore):boolean\");\r\n }",
"public boolean isHardwareAccelerated() {\n\t\treturn false;\n\t}",
"public interface C0437t extends C0436e {\n boolean pushHalfPage(ActivatedController c0303e);\n\n boolean pushHalfPageSmoothly(ActivatedController c0303e, Runnable runnable);\n}",
"private com.alibaba.wireless.security.framework.IRouterComponent getRouterComponent() {\n /*\n r2 = this;\n com.alibaba.wireless.security.framework.IRouterComponent r0 = gGlobalRounterComponent\n if (r0 != 0) goto L_0x0020\n java.lang.Class<com.alibaba.wireless.security.open.securityguardaccsadapter.AccsListner> r0 = com.alibaba.wireless.security.open.securityguardaccsadapter.AccsListner.class\n monitor-enter(r0)\n com.alibaba.wireless.security.framework.IRouterComponent r1 = gGlobalRounterComponent // Catch:{ all -> 0x001d }\n if (r1 != 0) goto L_0x001b\n android.content.Context r1 = com.alibaba.wireless.security.open.securityguardaccsadapter.AccsAdapter.gContext // Catch:{ Exception -> 0x001b }\n com.alibaba.wireless.security.open.SecurityGuardManager r1 = com.alibaba.wireless.security.open.SecurityGuardManager.getInstance(r1) // Catch:{ Exception -> 0x001b }\n com.alibaba.wireless.security.framework.ISGPluginManager r1 = r1.getSGPluginManager() // Catch:{ Exception -> 0x001b }\n com.alibaba.wireless.security.framework.IRouterComponent r1 = r1.getRouter() // Catch:{ Exception -> 0x001b }\n gGlobalRounterComponent = r1 // Catch:{ Exception -> 0x001b }\n L_0x001b:\n monitor-exit(r0) // Catch:{ all -> 0x001d }\n goto L_0x0020\n L_0x001d:\n r1 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x001d }\n throw r1\n L_0x0020:\n com.alibaba.wireless.security.framework.IRouterComponent r0 = gGlobalRounterComponent\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.alibaba.wireless.security.open.securityguardaccsadapter.AccsListner.getRouterComponent():com.alibaba.wireless.security.framework.IRouterComponent\");\n }",
"@Override\n\tpublic void setCpu() {\n\t\tcom.setCpu(\"i7\");\n\t}",
"protected HardwareDevice getHardwareOn(String name, Object hardwareDeviceMapping) {\n\n HardwareDevice hardwareDevice = null;\n try {\n HardwareMap.DeviceMapping<HardwareDevice> deviceMapping = (HardwareMap.DeviceMapping<HardwareDevice>) hardwareDeviceMapping;\n hardwareDevice = (HardwareDevice)deviceMapping.get(name);\n }\n catch (Throwable e)\n {\n try {\n ActiveOpMode.handleCatchAllException(e, getTelemetryUtil());\n } catch (InterruptedException e1) {\n //DbgLog.msg(e.getLocalizedMessage());\n }\n\n }\n\n return hardwareDevice;\n }",
"@Override\n public native void waitForIdle();",
"public CPU getCPU() {\r\n\t\treturn cpu;\r\n\t}",
"public XmuCoreSwitchElements getXmuCoreSwitchAccess() {\r\n\t\treturn pXmuCoreSwitch;\r\n\t}",
"private void checkAndActivateCPU() {\n statusController.checkIfCPU();\n if (modelCheck.isCurrentPlayerCPU()) {\n CPU.actionSequence();\n }\n }",
"public void softwareResources() {\n\t\tSystem.out.println(\"I am the software implemented through Multiple inheritence in Desktop class\");\r\n\t\t\r\n\t}",
"public void mo753w() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(22, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"public final Device blockingGetHardware() {\n Device hardware = find(false);\n if (hardware != null) {\n return hardware;\n }\n while (!Thread.currentThread().isInterrupted()) {\n try {\n Thread.sleep(2000);\n Device hardware2 = find(false);\n if (hardware2 != null) {\n return hardware2;\n }\n } catch (InterruptedException e) {\n return null;\n }\n }\n return null;\n }",
"@Override\n public void onMachineDeactivated()\n {\n \n }",
"@Override\n\tpublic String getCPU() {\n\t\treturn null;\n\t}",
"public Hardware() {\n hwMap = null;\n }",
"@Override\n public void runOpMode() throws InterruptedException{\n\n LeftWheel = hardwareMap.dcMotor.get(\"LeftWheel\");\n RightWheel = hardwareMap.dcMotor.get(\"RightWheel\");\n LLAMA = hardwareMap.dcMotor.get(\"LLAMA\");\n RightWheel.setDirection(DcMotor.Direction.REVERSE);\n beaconFlagSensor = hardwareMap.i2cDevice.get(\"color sensor\");\n LeftWheel.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n RightWheel.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n buttonPusher = hardwareMap.servo.get(\"Button Pusher\");\n buttonPusher.setDirection(Servo.Direction.REVERSE);\n\n LeftWheel.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n RightWheel.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n LLAMA.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n beaconFlagReader= new I2cDeviceSynchImpl(beaconFlagSensor, I2cAddr.create8bit(0x3c), false);\n beaconFlagReader.engage();\n\n double PUSHER_MIN = 0;\n double PUSHER_MAX = 1;\n buttonPusher.scaleRange(PUSHER_MIN,PUSHER_MAX);\n\n if(beaconFlagLEDState){\n beaconFlagReader.write8(3, 0); //Set the mode of the color sensor using LEDState\n }\n else{\n beaconFlagReader.write8(3, 1); //Set the mode of the color sensor using LEDState\n }\n\n\n waitForStart();\n //Go forward to position to shoot\n long iniForward = 0;\n //Shoot LLAMA\n long shootLLAMA=0 ;\n //Turn towards Wall\n long turnToWall= 0;\n //Approach Wall\n long wallApproach= 0;\n //Correct to prepare for button\n long correctForButton= 0;\n long correctForButton2=0 ;\n //Use sensors to press button\n /** This is sensor*/\n //Go forward\n long toSecondButton= 0;\n //Use Sensors to press button\n /** This is sensor*/\n //turn to center\n\n //charge\n long chargeTime= 0;\n\n //Go forward to position to shoot\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(iniForward);\n\n STOP();\n\n //Shoot LLAMA\n LLAMA.setPower(1);\n\n sleep(shootLLAMA);\nSTOP();\n //Turn towards Wall\n LeftWheel.setPower(-1);\n RightWheel.setPower(1);\n\n sleep(turnToWall);\n\n STOP();\n //Approach Wall\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(wallApproach);\n\n STOP();\n //Correct to prepare for button\n\n LeftWheel.setPower(1);\n RightWheel.setPower(-1);\n\n sleep(correctForButton);\n\n STOP();\n\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(correctForButton2);\n\n STOP();\n topCache = beaconFlagReader.read(0x04, 1);\n //Use sensors to press button\n if ((topCache[0] & 0xFF) <=4 && (topCache[0] & 0xFF) > 0 &&(topCache[0] & 0xFF) <16) {\n while (((topCache[0] & 0xFF) <=4 && (topCache[0] & 0xFF) > 0 &&\n (topCache[0] & 0xFF) <16) && opModeIsActive()) {\n\n\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n sleep(100);\n LeftWheel.setPower(0);\n RightWheel.setPower(0);\n topCache = beaconFlagReader.read(0x04, 1);\n\n if ((topCache[0] & 0xFF) >=7 && (topCache[0] & 0xFF) >= 0){\n telemetry.addLine(\"Color Detected, Pressing Button...\");\n telemetry.update();\n buttonPusher.setPosition(PUSHER_MAX);\n\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(100);\n\n STOP();\n break;\n }\n }\n\n }\n\n else if ((topCache[0] & 0xFF) >=7 && (topCache[0] & 0xFF) >= 0) {\n telemetry.addLine(\"Color Detected, Pressing Button...\");\n telemetry.update();\n buttonPusher.setPosition(PUSHER_MAX);\n\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(100);\n\n STOP();\n }\n\n //Go forward\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(toSecondButton);\n\n STOP();\n //Use Sensors to press button\n topCache = beaconFlagReader.read(0x04, 1);\n //Use sensors to press button\n if ((topCache[0] & 0xFF) <=4 && (topCache[0] & 0xFF) > 0 &&(topCache[0] & 0xFF) <16) {\n while (((topCache[0] & 0xFF) <=4 && (topCache[0] & 0xFF) > 0 &&\n (topCache[0] & 0xFF) <16) && opModeIsActive()) {\n\n\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n sleep(100);\n LeftWheel.setPower(0);\n RightWheel.setPower(0);\n topCache = beaconFlagReader.read(0x04, 1);\n\n if ((topCache[0] & 0xFF) >=7 && (topCache[0] & 0xFF) >= 0){\n telemetry.addLine(\"Color Detected, Pressing Button...\");\n telemetry.update();\n buttonPusher.setPosition(PUSHER_MAX);\n\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(100);\n\n STOP();\n break;\n }\n }\n\n }\n\n else if ((topCache[0] & 0xFF) >=7 && (topCache[0] & 0xFF) >= 0) {\n telemetry.addLine(\"Color Detected, Pressing Button...\");\n telemetry.update();\n buttonPusher.setPosition(PUSHER_MAX);\n\n LeftWheel.setPower(1);\n RightWheel.setPower(1);\n\n sleep(100);\n\n STOP();\n }\n\n //turn to center\n\n\n //charge\n }",
"@Override\n public void runOpMode() throws InterruptedException {\n float hsvValues[] = {0F, 0F, 0F};\n\n // values is a reference to the hsvValues array.\n final float values[] = hsvValues;\n\n\n double LPower = 0.2;\n double RPower = 0.2;\n\n // Send telemetry message to signify robot waiting;\n cdim = hardwareMap.deviceInterfaceModule.get(\"dim\");\n\n\n // get a reference to our ColorSensor object.\n //sensorRGB1 = hardwareMap.colorSensor.get(\"beaconColor\");\n\n //Resetting encoders\n LFMotor = hardwareMap.dcMotor.get(\"FR\");\n LBMotor = hardwareMap.dcMotor.get(\"BR\");\n RFMotor = hardwareMap.dcMotor.get(\"FL\");\n RBMotor = hardwareMap.dcMotor.get(\"BL\");\n NOM = hardwareMap.dcMotor.get(\"NOM\");\n door = hardwareMap.servo.get(\"door\");\n Elevator = hardwareMap.dcMotor.get(\"Elevator\");\n // Conveyor = hardwareMap.dcMotor.get(\"Conveyor\");\n Launch = hardwareMap.dcMotor.get(\"Launch\");\n\n\n NOM.setDirection(DcMotor.Direction.REVERSE);\n //Conveyor.setDirection(DcMotor.Direction.REVERSE);\n\n telemetry.addData(\"Status\", \"Resetting Encoders\");\n telemetry.update();\n\n //servo = hardwareMap.servo.get(\"buttonPusher\");\n\n LFMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n RFMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n LBMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n RBMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n idle();\n\n LFMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n RFMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n LBMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n RBMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n // Send telemetry message to indicate successful Encoder reset\n telemetry.addData(\"Path0\", \"Starting at %7d :%7d\",\n RFMotor.getCurrentPosition(),\n RBMotor.getCurrentPosition(),\n RBMotor.getCurrentPosition(),\n LFMotor.getCurrentPosition());\n telemetry.update();\n //servo.setPosition(.67);\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n // Step through each leg of the path,verse movement is obtained by s\n // Note: Reetting a negative distance (not speed)\n\n //sleep(14000);\n\n sleep(5000);\n encoderDrive(DRIVE_SPEED_FAST, 10.0, -10.0, 10.0, -10.0, 5.0); //drive forward\n door.setPosition(.3 );\n\n LBMotor.setPower(0);\n RFMotor.setPower(0);\n RBMotor.setPower(0);\n sleep(1500);\n\n double start = getRuntime();\n\n\n // servo.setPosition(.28);\n while ((getRuntime() - start) < 2) {\n Launch.setPower(.6);\n }\n Launch.setPower(0);\n start = getRuntime();\n while ((getRuntime() - start) < 2) {\n door.setPosition(.85);\n Elevator.setPower(-1);\n }\n\n start = getRuntime();\n while ((getRuntime() - start) < 2.05) {\n Launch.setPower(.6);\n }\n Elevator.setPower(0);\n Launch.setPower(0);\n //servo.setPosition(.67);\n\n encoderDrive(TURN_SPEED, .65, .65, .65, .65 , 4.0);\n encoderDrive(DRIVE_SPEED_FAST, 3, -3, 3, -3, 5.0); //drive forward\n LFMotor.setPower(0);\n LBMotor.setPower(0);\n RFMotor.setPower(0);\n RBMotor.setPower(0);\n sleep(1500);\n\n\n }",
"@Override\n public void runOpMode() throws InterruptedException {\n super.runOpMode();\n // LeftServo.setPosition(0.4);\n // RightServo.setPosition(0.5);\n\n waitForStart();\n telemetry.addData(\"Angles\", MyDriveTrain.getAngle());\n telemetry.update();\n telemetry.addData(\"Mikum:\", Mikum);\n telemetry.update();\n LF.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.FLOAT);\n RF.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.FLOAT);\n LB.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.FLOAT);\n RB.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.FLOAT);\n\n MyDriveTrain.encoderDrive(0.8, -30, 30, 30, -30, 1);\n MyDriveTrain.Rotate(0,0.1,10);\n// Mikum = MyVuforiaStone.ConceptVuforiaSkyStoneNavigationWebcam();\n// Mikum = 3;\n LF.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n RF.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n LB.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n RB.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n\n if (Mikum > 2) {\n telemetry.addLine(\"you're on the right\");\n telemetry.update();\n MyDriveTrain.encoderDrive(0.8, -84, 84, 84, -84, 1);\n MyIntake.maxIntake();\n MyDriveTrain.encoderDrive(0.8, -25, -25, -25, -25, 2);\n sleep(500);\n// MyDriveTrain.Verification(cubeIn,cubeNotInMM);\n\n MyIntake.ShutDown();\n MyDriveTrain.encoderDrive(0.8, 45, -45, -45, 45, 1);\n MyDriveTrain.Rotate(0,0.1,10);\n MyDriveTrain.encoderDrive(0.8, 100, 100, 100, 100, 2);\n }\n\n else if (Mikum < -2) {\n telemetry.addLine(\"you're on the left\");\n telemetry.update();\n MyDriveTrain.encoderDrive(0.8, 15, 15, 15, 15, 2);\n MyDriveTrain.encoderDrive(0.8, -86, 86, 86, -86, 1);\n MyIntake.maxIntake();\n MyDriveTrain.encoderDrive(0.8, -25, -25, -25, -25, 2);\n sleep(500);\n// MyDriveTrain.Verification(cubeIn,cubeNotInMM);\n\n MyIntake.ShutDown();\n MyDriveTrain.encoderDrive(0.8, 50, -50, -50, 50, 1);\n MyDriveTrain.Rotate(0,0.1,10);\n MyDriveTrain.encoderDrive(1, 85, 85, 85, 85, 2);\n\n\n\n } else {\n telemetry.addLine(\"You are on the center!\");\n telemetry.update();\n MyDriveTrain.encoderDrive(0.8, 30, 30, 30, 30, 2);\n MyDriveTrain.encoderDrive(0.5, -82, 82, 82, -82, 1);\n MyIntake.maxIntake();\n MyDriveTrain.encoderDrive(0.8, -25, -25, -25, -25, 2);\n sleep(500);\n// MyDriveTrain.Verification(cubeIn,cubeNotInMM);\n\n MyIntake.ShutDown();\n MyDriveTrain.encoderDrive(0.8, 45, -45, -45, 45, 1);\n MyDriveTrain.Rotate(0,0.1,10);\n MyDriveTrain.encoderDrive(1, 80, 80, 80, 80, 2);\n\n }\n\n MyDriveTrain.Rotate(0,0.2,10);\n MyIntake.maxIntake();\n sleep(500);\n MyIntake.ShutDown();\n Output.setPosition(OutputDown);\n MyDriveTrain.encoderDrive(1, 130, 130, 130, 130, 2);\n MyDriveTrain.encoderDrive(0.8, -5, 5, 5, -5, 1);\n\n MyDriveTrain.RotateP(90,1,10,0.0108);\n sleep(500);\n MyDriveTrain.encoderDrive(0.2,29,29,29,29,2);\n MyDriveTrain.Rotate(90,0.1,10);\n LeftServo.setPosition(0.15);\n RightServo.setPosition(0.2);\n MyDriveTrain.encoderDrive(0.1,10,10,10,10,2);\n LeftServo.setPosition(LeftServoDown);\n RightServo.setPosition(RightServoDown);\n sleep(500);\n MyDriveTrain.encoderDrive(1,-90,-90,-90,-90,2);\n MyDriveTrain.Rotate(-0,0.5,10);\n MyDriveTrain.encoderDrive(1,40,40,40,40,2);\n\n MyElevator.ElevateWithEncoder(-450, 0.8, 0.5);\n sleep(500);\n Arm.setPosition(1);\n sleep(1500);\n MyElevator.ElevateWithEncoder(0, 0.3, 0.0035);\n sleep(700);\n Output.setPosition(OutputUp);\n sleep(500);\n MyElevator.ElevateWithEncoder(-500, 0.3, 0.5);\n Arm.setPosition(0.135);\n sleep(1000);\n MyElevator.ElevateWithEncoder(0, 0.5, 0.003);\n\n LeftServo.setPosition(LeftServoUp);\n RightServo.setPosition(RightServoUp);\n MyDriveTrain.Rotate(0,0.4,10);\n MyDriveTrain.encoderDrive(0.3,-30,30,30,-30,2);\n ParkingMot.setPosition(ParkingMotIn);\n sleep(500);\n MyDriveTrain.encoderDrive(0.8, -5, 5, 5, -5, 1);\n MyDriveTrain.encoderDrive(0.5,-43,-43, -43,-43,1);\n }",
"@Override\n\t\t\t\tpublic void notifyParallelRoad(int arg0) {\n\t\t\t\t\t\n\t\t\t\t}",
"public final synchronized void a(javax.microedition.khronos.opengles.GL10 r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x005c }\n r9 = 0\n r1[r9] = r11 // Catch:{ all -> 0x005c }\n com.meituan.robust.ChangeQuickRedirect r3 = f53274a // Catch:{ all -> 0x005c }\n r4 = 0\n r5 = 55526(0xd8e6, float:7.7808E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x005c }\n java.lang.Class<javax.microedition.khronos.opengles.GL10> r2 = javax.microedition.khronos.opengles.GL10.class\n r6[r9] = r2 // Catch:{ all -> 0x005c }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x005c }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x005c }\n if (r1 == 0) goto L_0x0034\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x005c }\n r1[r9] = r11 // Catch:{ all -> 0x005c }\n com.meituan.robust.ChangeQuickRedirect r3 = f53274a // Catch:{ all -> 0x005c }\n r4 = 0\n r5 = 55526(0xd8e6, float:7.7808E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x005c }\n java.lang.Class<javax.microedition.khronos.opengles.GL10> r0 = javax.microedition.khronos.opengles.GL10.class\n r6[r9] = r0 // Catch:{ all -> 0x005c }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x005c }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x005c }\n monitor-exit(r10)\n return\n L_0x0034:\n boolean r1 = r10.g // Catch:{ all -> 0x005c }\n if (r1 != 0) goto L_0x005a\n r10.c() // Catch:{ all -> 0x005c }\n r1 = 7937(0x1f01, float:1.1122E-41)\n java.lang.String r0 = r11.glGetString(r1) // Catch:{ all -> 0x005c }\n int r1 = r10.f53279f // Catch:{ all -> 0x005c }\n r2 = 131072(0x20000, float:1.83671E-40)\n if (r1 >= r2) goto L_0x0053\n java.lang.String r1 = \"Q3Dimension MSM7500 \"\n boolean r0 = r0.startsWith(r1) // Catch:{ all -> 0x005c }\n r0 = r0 ^ r8\n r10.f53276b = r0 // Catch:{ all -> 0x005c }\n r10.notifyAll() // Catch:{ all -> 0x005c }\n L_0x0053:\n boolean r0 = r10.f53276b // Catch:{ all -> 0x005c }\n r0 = r0 ^ r8\n r10.h = r0 // Catch:{ all -> 0x005c }\n r10.g = r8 // Catch:{ all -> 0x005c }\n L_0x005a:\n monitor-exit(r10)\n return\n L_0x005c:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.live.alphaplayer.e.j.a(javax.microedition.khronos.opengles.GL10):void\");\n }",
"private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }",
"private DisplayDevice(){\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\t\ttry {\n\t\t\tString driverPath = \"/Users/siddaharth.suman/Downloads/Selenium/chromedriver\";\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverPath);\n\t\t\tdriver = new ChromeDriver();\n\t\t\twait = new WebDriverWait(driver, WAIT_TIMEOUT);\n\t\t\t\n\t\t\t\n\n\t\t\tlogin();\n\n\t\t\topenFindIphone();\n\n\t\t\tString[] devices = { \"PwC IPhone i14\", \"PwC IPhone i9\", \"PwC IPhone i8\", \"PwC IPhone i7\" };\n\n\t\t\tfor (int i = 0; i < 1; i++) {\n\t\t\t\tSystem.out.println(\"===============Start of report #\" + (i + 1) + \"================\");\n\t\t\t\t// for (String device : devices) {\n\t\t\t\t\t// System.out.println(\"Checking status for device: \" + device);\n\n\t\t\t\t\twait.until(ExpectedConditions\n\t\t\t\t\t\t\t.elementToBeClickable(By.xpath(\"//div[contains(@title, \\\"Show devices using\\\")]\"))).click();\n\n\t\t\t\t\t// handle stale element exception here\n\t\t\t\t\tboolean handled = false;\n\t\t\t\t\tdo {\n\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\twait.until(ExpectedConditions\n//\t\t\t\t\t\t\t\t\t.elementToBeClickable(By.xpath(\"//div[@title=\\\"\" + device + \"\\\"]\"))).click();\n\t\t\t\t\t\t\twait.until(ExpectedConditions\n\t\t\t\t\t\t\t\t\t.elementToBeClickable(By.xpath(\"//div[@title=\\\"\" + \"PwC IPhone i9\" + \"\\\"]\"))).click();\n\t\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\t} catch (StaleElementReferenceException e) {\n\t\t\t\t\t\t\tSystem.out.println(\"Handling stale element reference exception\");\n\t\t\t\t\t\t\thandled = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t} while (!handled);\n\t\t\t\t\t// Check maybe if device is offline and pending or pending lost mode or already\n\t\t\t\t\t// in lost mode\n\n\t\t\t\t\tif (!checkIfAlreadyInLostMode()) {\n\t\t\t\t\t\tSystem.out.println(\"Device not in lost mode\");\n\t\t\t\t\t\tif (!checkIfLostModePending()) {\n\t\t\t\t\t\t\tSystem.out.println(\"Device not in pending mode\");\n\t\t\t\t\t\t\t// Check if device is offline for a while\n\t\t\t\t\t\t\tif (checkIfDeviceOffline()) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Device is offline\");\n\t\t\t\t\t\t\t\t// Report state of the device to server as Offline without Pending\n\t\t\t\t\t\t\t\t// Put device in lock state\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Device is online\");\n\t\t\t\t\t\t\t\t// Report state of the device to server as Online without Pending\n\t\t\t\t\t\t\t\t// Put device in lock state\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"Device is in pending mode\");\n\t\t\t\t\t\t\tif (checkIfDeviceOffline()) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Device is offline and pending\");\n\t\t\t\t\t\t\t\t// Report state of the device to server as Offline with Pending\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Device is online and pending\");\n\t\t\t\t\t\t\t\t// Report state of the device to server as Online with Pending\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\tSystem.out.println(\"Device is in lost mode\");\n\t\t\t\t\t\t// Report state of the device to server as in Lost Mode\n\t\t\t\t\t}\n\t\t\t\t// }\n\t\t\t}\n\t\t\t// Thread.sleep(5000);\n\t\t} catch (TimeoutException e) {\n\t\t\tSystem.out.println(\"Timeout exception\");\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (driver != null) {\n\t\t\t\tlogout();\n\t\t\t\tdriver.quit();\n\t\t\t}\n\t\t}\n\t}",
"public void runOpMode() throws InterruptedException {\n leftWheel = hardwareMap.dcMotor.get(\"leftWheel\");\n rightWheel = hardwareMap.dcMotor.get(\"rightWheel\");\n leftArm = hardwareMap.dcMotor.get(\"leftArm\");\n rightArm = hardwareMap.dcMotor.get(\"rightArm\");\n rightDistance = hardwareMap.get(DistanceSensor.class, \"rightDistance\");\n leftColor = hardwareMap.colorSensor.get(\"leftColor\");\n rightWheel.setDirection(DcMotorSimple.Direction.REVERSE);\n count = 21;\n step = 3;\n subStep = 0;\n\n sample_ready = false;\n lander_unlatched = false;\n\n //prepares and resets robot by resetting encoders\n resetDriveEncoders();\n\n //prepares robot for arm movement by setting arm motors to go to a certain position-modifiable by user input (the d-pad)\n// leftArm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n// rightArm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n //HSV value array\n\n //Sends color sensor input values to the phone\n waitForStart();\n\n while (opModeIsActive()) {\n telemetry.update();\n\n\n telemetry.addLine()\n .addData(\"step\", step)\n .addData(\"subStep\", subStep)\n .addData(\"count\", count);\n telemetry.addLine()\n .addData(\"RightWheel: \", rightWheel.getCurrentPosition())\n .addData(\"LeftWheel: \", leftWheel.getCurrentPosition())\n .addData(\"TICKS_PER_WHEEL_ROTATION: \", TICKS_PER_WHEEL_ROTATION);\n\n\n//sets the step of where we are in the process to one\n // step = 1;\n//enables the if statement for lander_unlatched\n lander_unlatched = true;\n//moves the robot from the lander to where the samples are\n if (step == 1) {\n// leftWheel.setPower(0.7);\n// rightWheel.setPower(0.5);\n// leftWheel.setTargetPosition(1621);\n// rightWheel.setTargetPosition(820);\n step = 2;\n }\n if (step == 2) {\n// if (hsvValues[0] > 50) {\n// leftWheel.setPower(-0.7);\n// rightWheel.setPower(-0.5);\n// leftWheel.setTargetPosition(1221);\n step = 3;\n }\n// if step 2 is finished, makes the robot turn toward the wall, then drives against the wall.\n if (step == 3) {\n moveToDepot();\n }\n //1150 Target Units == about 1 foot, 96 Units/inch\n//sets the wheel power to 0 to limit movement\n// if (rightWheel.getCurrentPosition() == -rotation) {\n // rightWheel.setPower(0);\n //leftWheel.setPower(0);\n// }\n// if (leftWheel.getCurrentPosition() == 100) {\n// leftWheel.setPower(0);\n// rightWheel.setPower(0);\n// }\n\n sample_ready = true;\n\n// if (sample_ready) {\n//\n }\n }",
"private void setMeteredInterface(java.lang.String r10, boolean r11) {\n /*\n r9 = this;\n if (r10 != 0) goto L_0x0003;\n L_0x0002:\n return;\n L_0x0003:\n r0 = \"network_management\";\n r0 = android.os.ServiceManager.getService(r0);\n if (r0 != 0) goto L_0x0014;\n L_0x000b:\n r1 = \"network-policy\";\n r2 = \"setIfWhitelist networkManager is null\";\n android.util.Log.e(r1, r2);\n return;\n L_0x0014:\n r1 = android.os.Parcel.obtain();\n r2 = android.os.Parcel.obtain();\n r3 = \"bandwidth\";\n r4 = 2;\n r4 = new java.lang.String[r4];\n if (r11 != 0) goto L_0x0026;\n L_0x0023:\n r5 = \"enable_ifwhitelist\";\n goto L_0x0028;\n L_0x0026:\n r5 = \"disable_ifwhitelist\";\n L_0x0028:\n r6 = 0;\n r4[r6] = r5;\n r5 = 1;\n r4[r5] = r10;\n r1.writeString(r3);\t Catch:{ Exception -> 0x005e }\n r1.writeArray(r4);\t Catch:{ Exception -> 0x005e }\n r7 = 201; // 0xc9 float:2.82E-43 double:9.93E-322;\t Catch:{ Exception -> 0x005e }\n r0.transact(r7, r1, r2, r6);\t Catch:{ Exception -> 0x005e }\n r6 = r9.sIncreaseCmdCount;\t Catch:{ Exception -> 0x005e }\n r6 = r6 + r5;\t Catch:{ Exception -> 0x005e }\n r9.sIncreaseCmdCount = r6;\t Catch:{ Exception -> 0x005e }\n r5 = \"network-policy\";\t Catch:{ Exception -> 0x005e }\n r6 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x005e }\n r6.<init>();\t Catch:{ Exception -> 0x005e }\n r7 = \"\";\t Catch:{ Exception -> 0x005e }\n r6.append(r7);\t Catch:{ Exception -> 0x005e }\n r6.append(r2);\t Catch:{ Exception -> 0x005e }\n r6 = r6.toString();\t Catch:{ Exception -> 0x005e }\n android.util.Log.e(r5, r6);\t Catch:{ Exception -> 0x005e }\n if (r1 == 0) goto L_0x0059;\n L_0x0056:\n r1.recycle();\n L_0x0059:\n if (r2 == 0) goto L_0x0080;\n L_0x005b:\n goto L_0x007d;\n L_0x005c:\n r5 = move-exception;\n goto L_0x0081;\n L_0x005e:\n r5 = move-exception;\n r6 = \"HwNetworkPolicy\";\t Catch:{ all -> 0x005c }\n r7 = new java.lang.StringBuilder;\t Catch:{ all -> 0x005c }\n r7.<init>();\t Catch:{ all -> 0x005c }\n r8 = \"setIfWhitelist-->\";\t Catch:{ all -> 0x005c }\n r7.append(r8);\t Catch:{ all -> 0x005c }\n r7.append(r5);\t Catch:{ all -> 0x005c }\n r7 = r7.toString();\t Catch:{ all -> 0x005c }\n android.util.Slog.e(r6, r7);\t Catch:{ all -> 0x005c }\n if (r1 == 0) goto L_0x007b;\n L_0x0078:\n r1.recycle();\n L_0x007b:\n if (r2 == 0) goto L_0x0080;\n L_0x007d:\n r2.recycle();\n L_0x0080:\n return;\n L_0x0081:\n if (r1 == 0) goto L_0x0086;\n L_0x0083:\n r1.recycle();\n L_0x0086:\n if (r2 == 0) goto L_0x008b;\n L_0x0088:\n r2.recycle();\n L_0x008b:\n throw r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.net.HwNetworkPolicyManagerService.setMeteredInterface(java.lang.String, boolean):void\");\n }",
"public abstract GraphicsDevice[] getScreenDevices();",
"public HardwareProfile hardwareProfile() {\n return this.hardwareProfile;\n }",
"public interface ICpMemory extends ICpDeviceProperty {\n\n\tfinal static char READ_ACCESS \t\t= 'r';\n\tfinal static char WRITE_ACCESS\t\t= 'w';\n\tfinal static char EXECUTE_ACCESS\t= 'x';\n\tfinal static char SECURE_ACCESS\t\t= 's';\n\tfinal static char NON_SECURE_ACCESS\t= 'n';\n\tfinal static char CALLABLE_ACCESS\t= 'c';\n\tfinal static char PERIPHERAL_ACCESS\t= 'p';\n\t\n\t/**\n\t * Checks if the memory shall be used for the startup by linker\n\t * @return true if startup memory\n\t */\n\tboolean isStartup();\n\t\n\t/**\n\t * Returns access string corresponding following regular expression pattern: \"[rwxpsnc]+\"\n\t * @return \"access\" attribute value if present or default derived from ID for deprecated elements \n\t */\n\tString getAccess();\n\n\t/**\n\t * Checks if the memory region represents RAM (\"rwx\")\n\t * @return true if RAM\n\t */\n\tboolean isRAM();\n\n\t/**\n\t * Checks if the memory region represents ROM (\"rx\")\n\t * @return true if ROM\n\t */\n\tboolean isROM();\n\n\t\n\t/**\n\t * Checks if memory has specified access\n\t * @param access : one of <code>rwxpsnc</code> characters\n\t * @return true if memory provides specified access\n\t */\n\tboolean isAccess(char access);\n\t\n\t/**\n\t * Checks if memory has read access\n\t * @return true if memory has read access\n\t */\n\tboolean isReadAccess();\n\t\n\t/**\n\t * Checks if memory has write access\n\t * @return true if memory has write access\n\t */\n\tboolean isWriteAccess();\n\n\t/**\n\t * Checks if memory has execute access\n\t * @return true if memory has execute access\n\t */\n\tboolean isExecuteAccess();\n\n\t\n\t/**\n\t * Checks if memory has secure access\n\t * @return true if memory has secure access\n\t */\n\tboolean isSecureAccess();\n\t\n\t/**\n\t * Checks if memory has non-secure access\n\t * @return true if memory has non-secure access\n\t */\n\tboolean isNonSecureAccess();\n\t\n\t/**\n\t * Checks if memory has callable access\n\t * @return true if memory has callable access\n\t */\n\tboolean isCallableAccess();\n\n\t/**\n\t * Checks if memory has peripheral access\n\t * @return true if memory has peripheral access\n\t */\n\tboolean isPeripheralAccess(); \n\n\t\n}",
"@Override\n public Set<W> getActiveWindows() {\n throw new java.lang.UnsupportedOperationException();\n }",
"@Override\r\n\t\tpublic int getStandbyCap() {\n\t\t\treturn 2 * Runtime.getRuntime().availableProcessors();\r\n\t\t}",
"@Override\n\tpublic void enabled(AbstractHardware<? extends AbstractHardwareListener> hardware) {\n\t}",
"public void mo749s() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(18, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"@Override\n public void runOpMode() throws InterruptedException {\n CommonAutonomous commonAutonomous = new CommonAutonomous(AllianceColor.BLUE, hardwareMap, this);\n\n waitForStart();\n\n commonAutonomous.wallPos1ToBeacon1();\n commonAutonomous.pressBeacon();\n }",
"private void fireCPUorGPUClockChange(){\n System.out.println(\"Firing CPU/GPU Clock Change\");\n if(!isNull(this.onCPUGPUClockChange)) this.onCPUGPUClockChange.run();\n }",
"public void runOpMode() {\n robot.init(hardwareMap);\n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n robot.leftMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n idle();\n\n robot.leftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n // Send telemetry message to indicate successful Encoder reset\n telemetry.addData(\"Path0\", \"Starting at %7d :%7d\",\n robot.leftMotor.getCurrentPosition(),\n robot.rightMotor.getCurrentPosition());\n telemetry.addData(\"Gyro Heading:\", \"%.4f\", getHeading());\n telemetry.update();\n\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(cameraMonitorViewId);\n\n parameters.vuforiaLicenseKey = \"Adiq0Gb/////AAAAme76+E2WhUFamptVVqcYOs8rfAWw8b48caeMVM89dEw04s+/mRV9TqcNvLkSArWax6t5dAy9ISStJNcnGfxwxfoHQIRwFTqw9i8eNoRrlu+8X2oPIAh5RKOZZnGNM6zNOveXjb2bu8yJTQ1cMCdiydnQ/Vh1mSlku+cAsNlmfcL0b69Mt2K4AsBiBppIesOQ3JDcS3g60JeaW9p+VepTG1pLPazmeBTBBGVx471G7sYfkTO0c/W6hyw61qmR+y7GJwn/ECMmXZhhHkNJCmJQy3tgAeJMdKHp62RJqYg5ZLW0FsIh7cOPRkNjpC0GmMCMn8AbtfadVZDwn+MPiF02ZbthQN1N+NEUtURP0BWB1CmA\";\n\n\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.FRONT;\n this.vuforia = ClassFactory.createVuforiaLocalizer(parameters);\n\n VuforiaTrackables relicTrackables = this.vuforia.loadTrackablesFromAsset(\"RelicVuMark\");\n VuforiaTrackable relicTemplate = relicTrackables.get(0);\n relicTemplate.setName(\"relicVuMarkTemplate\"); // can help in debugging; otherwise not necessary\n\n telemetry.addData(\">\", \"Press Play to start\");\n telemetry.update();\n\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n relicTrackables.activate();\n\n //while (opModeIsActive()) {\n\n /**\n * See if any of the instances of {@link relicTemplate} are currently visible.\n * {@link RelicRecoveryVuMark} is an enum which can have the following values:\n * UNKNOWN, LEFT, CENTER, and RIGHT. When a VuMark is visible, something other than\n * UNKNOWN will be returned by {@link RelicRecoveryVuMark#from(VuforiaTrackable)}.\n */\n RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.from(relicTemplate);\n while (vuMark == RelicRecoveryVuMark.UNKNOWN) {\n vuMark = RelicRecoveryVuMark.from(relicTemplate);\n /* Found an instance of the template. In the actual game, you will probably\n * loop until this condition occurs, then move on to act accordingly depending\n * on which VuMark was visible. */\n }\n telemetry.addData(\"VuMark\", \"%s visible\", vuMark);\n telemetry.update();\n sleep(550);\n\n //switch (vuMark) {\n // case LEFT: //RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.LEFT;\n // coLumn = 2;\n // case CENTER:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.CENTER;\n // coLumn = 1;\n // case RIGHT:// RelicRecoveryVuMark vuMark = RelicRecoveryVuMark.RIGHT;\n // coLumn = 0;\n //}\n if ( vuMark == RelicRecoveryVuMark.LEFT) {\n coLumn = 2;\n }\n else if(vuMark == RelicRecoveryVuMark.RIGHT){\n coLumn = 0;\n }\n else if(vuMark == RelicRecoveryVuMark.CENTER){\n coLumn = 1;\n }\n\n\n telemetry.addData(\"coLumn\", \"%s visible\", coLumn);\n telemetry.update();\n sleep(550);\n\n\n\n//if jewej is red 1 if jewel is blue 2\n\n // if(jewel == 1) {\n // gyroturn(-10, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //gyroturn(-2, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n //else if(jewel == 2){\n // gyroturn(10, -TURN_SPEED, TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n // gyroturn(-2, TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n //}\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[0][coLumn], disandTurn[0][coLumn], 5.0); // S1: Forward 24 Inches with 5 Sec timeout shoot ball\n\n gyroturn(disandTurn[1][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[0], -turndistance[0], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[2][coLumn], disandTurn[2][coLumn], 5.0); // S3: Forward 43.3 iNCHES\n\n gyroturn(disandTurn[3][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[4][coLumn], disandTurn[4][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n gyroturn(disandTurn[5][coLumn], TURN_SPEED, -TURN_SPEED); //encoderDrive(TURN_SPEED, TURN_SPEED, turndistance[1], -turndistance[1], 5.0);\n\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[6][coLumn], disandTurn[6][coLumn], 5.0);// S5: Forward 12 Inches with 4 Sec timeout\n\n\n Outake();\n encoderDrive(DRIVE_SPEED, DRIVE_SPEED, disandTurn[7][coLumn], disandTurn[7][coLumn], 5.0);// S6: Forward 48 inches with 4 Sec timeout\n }",
"public void runOpMode() {\n leftBackDrive = hardwareMap.get(DcMotor.class, \"left_back_drive\"); //port 0, hub1\n rightBackDrive = hardwareMap.get(DcMotor.class, \"right_back_drive\"); //port 1, hub1\n leftFrontDrive = hardwareMap.get(DcMotor.class, \"left_front_drive\"); //port 2, hub1\n rightFrontDrive = hardwareMap.get(DcMotor.class, \"right_front_drive\"); //port 3, hub1\n craneExtend = hardwareMap.get(DcMotor.class, \"craneExtend\"); //port 0, hub2\n cranePitch = hardwareMap.get(DcMotor.class, \"cranePitch\"); //port 1, hub2\n craneElevate = hardwareMap.get(DcMotor.class, \"craneElevate\"); //port 2, hub2\n fakeMotor = hardwareMap.get(DcMotor.class, \"fakeMotor\"); //port 2, hub3\n craneGrab = hardwareMap.get(Servo.class, \"craneGrab\"); //port 0, servo\n craneGrabAttitude = hardwareMap.get(Servo.class, \"craneGrabAttitude\"); //port 2, servo\n trayGrab = hardwareMap.get(Servo.class, \"trayGrab\"); //port 1, servo\n flipperLeft = hardwareMap.get(Servo.class, \"flipperLeft\"); //port 3. servo\n flipperRight = hardwareMap.get(Servo.class, \"flipperRight\"); //port 4, servo\n \n //Setting the motor directions\n leftBackDrive.setDirection(DcMotor.Direction.FORWARD);\n rightBackDrive.setDirection(DcMotor.Direction.REVERSE);\n leftFrontDrive.setDirection(DcMotor.Direction.FORWARD);\n rightFrontDrive.setDirection(DcMotor.Direction.REVERSE);\n\n //Initializing variables\n \n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.update(); //Done initalizing\n\n //Wait for the game to start (driver presses PLAY)\n waitForStart();\n runtime.reset();\n\n //run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n \n//******************************************************************************\n\n //Drive controls\n if (gamepad1.left_trigger>0 || gamepad1.right_trigger>0) { //Crab\n leftBackDrive.setPower(gamepad1.left_stick_x*0.8);\n rightBackDrive.setPower(-gamepad1.left_stick_x*0.8);\n leftFrontDrive.setPower(-gamepad1.left_stick_x*0.8);\n rightFrontDrive.setPower(gamepad1.left_stick_x*0.8);\n }\n\n else { //Tank\n leftBackDrive.setPower(-gamepad1.left_stick_x);\n rightBackDrive.setPower(-gamepad1.right_stick_x);\n leftFrontDrive.setPower(-gamepad1.left_stick_x);\n rightFrontDrive.setPower(-gamepad1.right_stick_x);\n }\n }\n \n//******************************************************************************\n\n //Crane control\n \n \n//******************************************************************************\n\n //Telemetry display\n telemetry.addData(\"Run Time:\", \"\" + runtime.toString());\n telemetry.addData(\"Motor Power\", \"L (%.2f), R (%.2f)\", gamepad1.left_stick_y, gamepad1.right_stick_y);\n telemetry.update();\n }",
"Capabilities getCapabilities();",
"@Override\r\n public void onDeviceConnecting(GenericDevice mDeviceHolder,\r\n PDeviceHolder innerDevice) {\n\r\n }",
"public interface PeripheralSoftwareDriverInterface extends DriverBaseDataEventListener {\r\n\r\n /**\r\n * Is set in the BaseDriver, you can overwrite it, but for debugging\r\n * purposes not handy\r\n */\r\n public final static String DriverBaseName = \"driver:port\";\r\n\r\n /**\r\n * Returns the driver DB id.\r\n * @return \r\n */\r\n public int getId();\r\n \r\n /**\r\n * Starts the driver and runs the thread\r\n */\r\n public void startDriver();\r\n\r\n /**\r\n * Stops the driver and the thread the driver is running in\r\n */\r\n public void stopDriver();\r\n\r\n /**\r\n * Returns the Hardware driver which belongs to the given running software\r\n * driver.\r\n *\r\n * @return\r\n */\r\n public Peripheral getHardwareDriverFromSoftwareDriver();\r\n\r\n \r\n /**\r\n * Returns the hardware driver.\r\n * @return \r\n */\r\n public PeripheralHardwareDriverInterface getHardwareDriver();\r\n \r\n /**\r\n * Returns the amount of active devices attached to this driver.\r\n *\r\n * @return\r\n */\r\n public int getRunningDevicesCount();\r\n\r\n /**\r\n * Returns a list of running devices whom belong to this driver.\r\n *\r\n * @return\r\n */\r\n public List<Device> getRunningDevices();\r\n\r\n /**\r\n * Send a batch of commands through the proxy. This method is preferred when\r\n * sending multiple commands at once with a build in delay. this function\r\n * should create a batch with a default name (anonymous)\r\n *\r\n * @param batchData Strings with commands\r\n * @see #runBatch()\r\n * @see #runBatch(java.lang.String)\r\n */\r\n public void addBatch(List<Map<String, String>> batchData);\r\n\r\n /**\r\n * Send a batch of commands through the proxy. This method is preferred when\r\n * sending multiple commands at once with a build in delay.\r\n *\r\n * @param batchData Strings with commands\r\n * @param batchName String with the name of the batch to use later on with\r\n * runBatch()\r\n * @see #runBatch()\r\n * @see #runBatch(java.lang.String)\r\n */\r\n public void addBatch(List<Map<String, String>> batchData, String batchName);\r\n\r\n /**\r\n * Runs the batch previously set with the anonymous addBatch\r\n */\r\n public void runBatch();\r\n\r\n /**\r\n * Runs the batch previously set with addBatch with a batchName\r\n *\r\n * @param batchName Name of the batch to run\r\n */\r\n public void runBatch(String batchName);\r\n\r\n /**\r\n * Sends the data to the hardware itself\r\n *\r\n * @param data The data to send\r\n * @param prefix When having multiple devices supported by the hardware a\r\n * prefix can distinct the device in your hardware\r\n * @return result of the send command\r\n * @throws java.io.IOException\r\n * @Obsolete Use writeBytes.\r\n */\r\n public boolean sendData(String data, String prefix) throws IOException;\r\n\r\n /**\r\n * Sends the data to the hardware itself\r\n *\r\n * @param data The data to send\r\n * @return the result of the command\r\n * @throws java.io.IOException\r\n * @Obsolete Use WriteBytes.\r\n */\r\n public boolean sendData(String data) throws IOException;\r\n\r\n /**\r\n * Retrieves the name of the class.\r\n *\r\n * @return the name of the class\r\n */\r\n public String getName();\r\n\r\n /**\r\n * For adding an hardware driver.\r\n *\r\n * @param l\r\n */\r\n public void setPeripheralEventListener(PeripheralHardwareDriverInterface l);\r\n\r\n /**\r\n * for removing an hardware driver.\r\n *\r\n * @param l\r\n */\r\n public void removePeripheralEventListener(PeripheralHardwareDriverInterface l);\r\n\r\n /**\r\n * Handles data received from the hardware driver to be used by overwriting\r\n * classes.\r\n *\r\n * @param oEvent\r\n */\r\n @Override\r\n public void driverBaseDataReceived(PeripheralHardwareDataEvent oEvent);\r\n\r\n /**\r\n * Driver proxy for hardware data.\r\n *\r\n * @param oEvent\r\n */\r\n public void driverBaseDataReceivedProxy(PeripheralHardwareDataEvent oEvent);\r\n\r\n /**\r\n * Returns the package name of the driver as used in the database.\r\n *\r\n * @return The package name of this class\r\n */\r\n public String getPackageName();\r\n\r\n /**\r\n * Adds a device to the listers for whom data can exist.\r\n *\r\n * @param device\r\n */\r\n public void addDeviceListener(DeviceDriverListener device);\r\n\r\n /**\r\n * Removes a device from the listeners list.\r\n *\r\n * @param device\r\n */\r\n public void removeDeviceListener(DeviceDriverListener device);\r\n\r\n /**\r\n * Handle the data coming from a device driver to dispatch to the hardware\r\n * driver. With this function you can do stuff with the data. For example if\r\n * needed change from string to byte array?\r\n *\r\n * @param device\r\n * @param group\r\n * @param set\r\n * @param deviceData\r\n * @return A string which represents a result, human readable please.\r\n * @throws java.io.IOException\r\n */\r\n public boolean handleDeviceData(Device device, String group, String set, String deviceData) throws IOException;\r\n\r\n /**\r\n * Handles data coming from a device as is in the request!\r\n * @param device\r\n * @param request\r\n * @return\r\n * @throws IOException \r\n */\r\n public boolean handleDeviceData(Device device, DeviceCommandRequest request) throws IOException;\r\n \r\n /**\r\n * Sets the driver DB id.\r\n * @param driverDBId \r\n */\r\n public void setId(int driverDBId);\r\n \r\n /**\r\n * Sets the named id\r\n * @param dbNameId\r\n */\r\n public void setNamedId(String dbNameId);\r\n \r\n /**\r\n * Gets the named id\r\n * @return \r\n */\r\n public String getNamedId();\r\n \r\n /**\r\n * Returns if the driver supports custom devices.\r\n * @return \r\n */\r\n public boolean hasCustom();\r\n \r\n /**\r\n * Set if a driver has custom devices.\r\n * @param hasCustom\r\n * @return \r\n */\r\n public void setHasCustom(boolean hasCustom);\r\n \r\n /**\r\n * Returns the software driver id.\r\n *\r\n * @param softwareId\r\n */\r\n public void setSoftwareDriverId(String softwareId);\r\n\r\n /**\r\n * Returns the version set in the driver.\r\n *\r\n * @param softwareIdVersion\r\n */\r\n public void setSoftwareDriverVersion(String softwareIdVersion);\r\n\r\n /**\r\n * Returns the software driver id.\r\n *\r\n * @return\r\n */\r\n public String getSoftwareDriverId();\r\n\r\n /**\r\n * Returns the version set in the driver.\r\n *\r\n * @return\r\n */\r\n public String getSoftwareDriverVersion();\r\n\r\n /**\r\n * Returns true if there is a web presentation present.\r\n *\r\n * @return\r\n */\r\n public boolean hasPresentation();\r\n\r\n /**\r\n * Sets a web presentation;\r\n *\r\n * @param pres\r\n */\r\n public void addWebPresentationGroup(WebPresentationGroup pres);\r\n\r\n /**\r\n * Returns the web presentation.\r\n *\r\n * @return\r\n */\r\n public List<WebPresentationGroup> getWebPresentationGroups();\r\n\r\n /**\r\n * Sets the friendlyname.\r\n * @param name \r\n */\r\n public void setFriendlyName(String name);\r\n \r\n /**\r\n * Returns the friendlyname.\r\n * @return \r\n */\r\n public String getFriendlyName();\r\n \r\n /**\r\n * Sets a link with the device service.\r\n * @param deviceServiceLink \r\n */\r\n public void setDeviceServiceLink(PeripheralDriverDeviceMutationInterface deviceServiceLink);\r\n \r\n /**\r\n * Removes a device service link.\r\n */\r\n public void removeDeviceServiceLink();\r\n \r\n /**\r\n * Indicator to let know a device is loaded.\r\n * @param device \r\n */\r\n public void deviceLoaded(Device device);\r\n \r\n}",
"public void run() {\n /*\n r6 = this;\n com.android.camera.imageprocessor.FrameProcessor r0 = com.android.camera.imageprocessor.FrameProcessor.this\n java.lang.Object r0 = r0.mAllocationLock\n monitor-enter(r0)\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n boolean r1 = r1.mIsActive // Catch:{ all -> 0x0077 }\n if (r1 != 0) goto L_0x0011\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n return\n L_0x0011:\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mInputAllocation // Catch:{ all -> 0x0077 }\n if (r1 != 0) goto L_0x0027\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n int r2 = r6.stride // Catch:{ all -> 0x0077 }\n int r3 = r6.height // Catch:{ all -> 0x0077 }\n int r4 = r6.stride // Catch:{ all -> 0x0077 }\n int r5 = r6.width // Catch:{ all -> 0x0077 }\n int r4 = r4 - r5\n r1.createAllocation(r2, r3, r4) // Catch:{ all -> 0x0077 }\n L_0x0027:\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mInputAllocation // Catch:{ all -> 0x0077 }\n byte[] r2 = r6.yvuBytes // Catch:{ all -> 0x0077 }\n r1.copyFrom(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.ScriptC_rotator r1 = r1.mRsRotator // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mInputAllocation // Catch:{ all -> 0x0077 }\n r1.forEach_rotate90andMerge(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.ScriptC_YuvToRgb r1 = r1.mRsYuvToRGB // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.forEach_nv21ToRgb(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.ioSend() // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n if (r1 == 0) goto L_0x0075\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.copyFrom(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r6 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r6 = r6.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n r6.ioSend() // Catch:{ all -> 0x0077 }\n L_0x0075:\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n return\n L_0x0077:\n r6 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n throw r6\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.camera.imageprocessor.FrameProcessor.ProcessingTask.run():void\");\n }",
"public void requestBoard(){\r\n try {\r\n clientThreads.get(0).getOOS().writeObject(\r\n new DataWrapper(DataWrapper.CTCODE, new ControlToken(ControlToken.BOARDREQUEST)));\r\n } catch(IOException ioe){\r\n ioe.printStackTrace();\r\n }\r\n }",
"@Override\r\n\tpublic boolean isComputer() {\n\t\treturn false;\r\n\t}",
"public synchronized int getThreads()\n/* */ {\n/* 181 */ return this.threads;\n/* */ }",
"public Cpu getCpu(){\n return maquina;\n }",
"public void sensorSystem() {\n\t}",
"@VisibleForTesting\n public Region calculateSystemGestureExclusion() {\n Throwable th;\n Region unhandled = Region.obtain();\n unhandled.set(0, 0, this.mDisplayFrames.mDisplayWidth, this.mDisplayFrames.mDisplayHeight);\n Rect leftEdge = this.mInsetsStateController.getSourceProvider(6).getSource().getFrame();\n Rect rightEdge = this.mInsetsStateController.getSourceProvider(7).getSource().getFrame();\n Region global = Region.obtain();\n Region touchableRegion = Region.obtain();\n Region local = Region.obtain();\n int i = this.mSystemGestureExclusionLimit;\n int[] remainingLeftRight = {i, i};\n synchronized (this.mWmService.getGlobalLock()) {\n try {\n WindowManagerService.boostPriorityForLockedSection();\n try {\n forAllWindows((Consumer<WindowState>) new Consumer(unhandled, touchableRegion, local, remainingLeftRight, global, leftEdge, rightEdge) {\n /* class com.android.server.wm.$$Lambda$DisplayContent$gsQrhBQL3vGbqvwErNuLHyt9FU4 */\n private final /* synthetic */ Region f$1;\n private final /* synthetic */ Region f$2;\n private final /* synthetic */ Region f$3;\n private final /* synthetic */ int[] f$4;\n private final /* synthetic */ Region f$5;\n private final /* synthetic */ Rect f$6;\n private final /* synthetic */ Rect f$7;\n\n {\n this.f$1 = r2;\n this.f$2 = r3;\n this.f$3 = r4;\n this.f$4 = r5;\n this.f$5 = r6;\n this.f$6 = r7;\n this.f$7 = r8;\n }\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.this.lambda$calculateSystemGestureExclusion$26$DisplayContent(this.f$1, this.f$2, this.f$3, this.f$4, this.f$5, this.f$6, this.f$7, (WindowState) obj);\n }\n }, true);\n WindowManagerService.resetPriorityAfterLockedSection();\n local.recycle();\n touchableRegion.recycle();\n unhandled.recycle();\n return global;\n } catch (Throwable th2) {\n th = th2;\n WindowManagerService.resetPriorityAfterLockedSection();\n throw th;\n }\n } catch (Throwable th3) {\n th = th3;\n WindowManagerService.resetPriorityAfterLockedSection();\n throw th;\n }\n }\n }",
"protected abstract void initHardwareCriteria();",
"@Override\n public void runOpMode() throws InterruptedException {\n sh = new ShooterHardware(this);\n loop = new Loop();\n hdt = new HolonomicDrivetrain(this);\n backupVision = new BackupVision(this);\n wobble = new Wobble(this);\n sensors = new Sensors(this);\n\n int pos = 0;\n Thread thread1 = new Thread(new Runnable() {\n @Override\n public void run() {\n //hdt.gyroHoloStrafe(1, 2, true, 500, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n hdt.gyroTurn180Fast(1500);\n hdt.gyroTurn180(1100);\n //sleep(1300);\n }\n });\n Thread thread2 = new Thread(new Runnable() {\n @Override\n public void run() {\n //2. mag up\n //hdt.gyroTurn180(500);\n ElapsedTime time = new ElapsedTime();\n time.reset();\n sleep(3000);\n sh.hitRing();\n sleep(600);\n sh.hitRing();\n sleep(600);\n sh.hitRing();\n sleep(600);\n //sh.pivotStop.setPosition(.55);\n sh.hitRing();\n sleep(500);\n //sh.pivotDown();\n sh.hitRing();\n sleep(500);\n sh.withdraw();\n sh.lift.setPower(0);\n sh.lift.setPower(0);\n wobble.wobbleUp();\n sh.pivotStop.setPosition(1);\n loop.end();\n\n\n }\n });\n Thread thread3 = new Thread(new Runnable() {\n @Override\n public void run() {\n //4. shoot the whole time\n sh.ignite();\n }\n });\n Thread thread4 = new Thread(new Runnable() {\n @Override\n public void run() {\n //3. pivot + ring shoot\n ElapsedTime time = new ElapsedTime();\n time.reset();\n while (!sh.liftReady && time.milliseconds() < 1500) {\n }\n //\n sh.pivotPID(650, true, .07/650, .01, .01/650, 2);\n sh.pivotPID(640, false, .07/640, .01, .01/640, 2);\n\n\n\n }\n });\n\n\n loop.add(thread1);\n loop.add(thread2);\n loop.add(thread3);\n //loop.add(thread4);\n\n waitForStart();\n pos = backupVision.senseBlue(this);\n while (opModeIsActive()) {\n\n if (pos == 0) {\n hdt.gyroHoloForward(1, 66, 3000, 0);\n wobble.releaseWobble();\n hdt.gyroHoloForward(-.7, 13, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n\n //NEW STUFF\n //hdt.gyroTurnStraight(1000);\n\n//t\n\n loop.run();\n loop.end();\n\n hdt.gyroTurnStraightfast(1000);\n hdt.gyroTurnStraight(1000);\n\n hdt.gyroHoloForward(-.8, 37, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n\n hdt.gyroTurn270Fast(1000);\n hdt.gyroTurn270(1000);\n hdt.gyroTurn270(500);\n\n wobble.hookOpen();\n\n wobble.wobbleDown();\n sleep(300);\n wobble.hookOpen();\n hdt.gyroHoloForward(.4, 14, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n wobble.getWobble();\n sleep(600);\n hdt.gyroHoloForward(-.7, 16, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n //hdt.gyroTurnNinetyFast(300);\n hdt.gyroTurnStraightfast(1000);\n hdt.gyroTurnStraight(600);\n hdt.gyroHoloForward(1, 55, 3000, 0);\n wobble.releaseWobble();\n //sh.setLift();\n\n //hdt.gyroHoloStrafe(1, 15, true, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n hdt.gyroHoloForward(-.7, 8, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n hdt.gyroHoloStrafe(1, 14, false, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n hdt.gyroHoloForward(.7, 20, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n\n break;\n\n } else if (pos == 1) {\n\n hdt.gyroHoloForward(1, 80, 3000, 0);\n sleep(300);\n hdt.gyroHoloStrafe(1, 16, false, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n sleep(300);\n wobble.releaseWobble();\n hdt.gyroHoloStrafe(1, 14, true, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n // sleep(300);\n hdt.gyroHoloForward(-1, 35, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n\n loop.run();\n loop.end();\n\n hdt.gyroTurnStraightfast(1000);\n hdt.gyroTurnStraight(700);\n //PROB DOESNT WORK\n\n hdt.gyroHoloForward(-1, 37, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n //sleep(300);\n\n hdt.gyroTurn270Fast(1000);\n hdt.gyroTurn270(700);\n\n wobble.hookOpen();\n //hdt.turnPID(90, true, .7/90, .003, .052/90, .75);\n wobble.wobbleDown();\n sleep(300);\n wobble.hookOpen();\n hdt.gyroHoloForward(.4, 16, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n wobble.getWobble();\n sleep(600);\n hdt.gyroHoloForward(-1, 14, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n hdt.gyroTurnStraightfast(700);\n hdt.gyroTurnStraight(300);\n hdt.gyroHoloForward(1, 75, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n sleep(300);\n hdt.gyroHoloStrafe(1, 14, false, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n wobble.releaseWobble();\n hdt.gyroHoloForward(-.4, 5, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n wobble.wobbleUp();\n //sh.setLift();\n //hdt.gyroHoloStrafe(1, 15, true, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n\n\n\n\n\n break;\n } else if (pos == 2) {\n\n hdt.gyroTurnStraight(1000);\n break;\n } else if (pos == 4) {\n hdt.gyroHoloForward(1, 127, 3000, 0);\n wobble.releaseWobble();\n hdt.gyroHoloForward(-1, 65, 3000, 0);\n //hdt.gyroHoloStrafe(1, 3, false, 500, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n\n\n //NEW STUFF\n //hdt.gyroTurnStraight(1000);\n\n\n loop.run();\n loop.end();\n\n hdt.gyroTurnStraightfast(1000);\n hdt.gyroTurnStraight(500);\n //PROB DOESNT WORK\n\n hdt.gyroHoloForward(-.8, 43, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n hdt.gyroTurn270Fast(1000);\n hdt.gyroTurn270(1000);\n\n wobble.hookOpen();\n //hdt.turnPID(90, true, .7/90, .003, .052/90, .75);\n wobble.wobbleDown();\n sleep(300);\n wobble.hookOpen();\n hdt.gyroHoloForward(.4, 18, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n wobble.getWobble();\n sleep(600);\n hdt.gyroHoloForward(-.7, 14, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n //hdt.gyroTurnNinetyFast(300);\n hdt.gyroTurnStraightfast(1000);\n hdt.gyroTurnStraight(500);\n hdt.gyroHoloForward(1, 107, 3000, 0);\n wobble.releaseWobble();\n //sh.setLift();\n\n //hdt.gyroHoloStrafe(1, 15, true, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n hdt.gyroHoloForward(-1, 35, 3000, sensors.getGyroYawwwwwwwwwwwwwwwwwww());\n\n\n break;\n }\n //loop.end();\n\n //loop.end();\n sh.lift.setPower(0);\n sh.withdraw();\n sh.pivot.setPower(0);\n }\n }",
"@Override\n public void onMachineAssembled()\n {\n \n }",
"@Override\n\tpublic Capabilities getCapabilities() {\n\t\treturn null;\n\t}",
"public void browserChanged() { }",
"public static RemoteObject _process_globals() throws Exception{\nrequests3._device = RemoteObject.createNew (\"anywheresoftware.b4a.phone.Phone\");\n //BA.debugLineNum = 13;BA.debugLine=\"Private TileSource As String\";\nrequests3._tilesource = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 14;BA.debugLine=\"Private ZoomLevel As Int\";\nrequests3._zoomlevel = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 15;BA.debugLine=\"Private Markers As List\";\nrequests3._markers = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 16;BA.debugLine=\"Private MapFirstTime As Boolean\";\nrequests3._mapfirsttime = RemoteObject.createImmutable(false);\n //BA.debugLineNum = 18;BA.debugLine=\"Private MyPositionLat, MyPositionLon As String\";\nrequests3._mypositionlat = RemoteObject.createImmutable(\"\");\nrequests3._mypositionlon = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 19;BA.debugLine=\"Private CurrentTabPage As Int = 0\";\nrequests3._currenttabpage = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 20;BA.debugLine=\"Private InfoDataWindows As Boolean = False\";\nrequests3._infodatawindows = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 21;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}",
"public int getHardwareTimeout();",
"@Test\n public void testMobileAndroid() {\n try {\n\n System.out.println(\"Running test on Android mobile browser\");\n DeviceDescription description = new DeviceDescription();\n description.setOsType(\"Android\");\n description.setOsVersion(\">=6.0\");\n\n Device device = MobileLab.lockDevice(description);\n Browser browser2 = BrowserFactory.launch(BrowserType.CHROME, device);\n navigateBrowser(browser2);\n Reporter.reportEvent(\"Image of Mobile\", \"Using Chrome on Android\", Status.Passed, browser2.getSnapshot());\n windowsSync(1500);\n\n }\n catch (GeneralLeanFtException glftex) {System.out.println(\"GeneralLeanFtException: \" + glftex.getMessage());}\n catch (InterruptedException iex) {System.out.println(\"InterruptedException: \" + iex.getMessage());}\n catch (ReportException rex){System.out.println(\"ReportException: \" + rex.getMessage());}\n catch (StringIndexOutOfBoundsException soobEx) {System.out.println(\"StringIndexOutOfBoundsException: \" + soobEx.getMessage());}\n }",
"Reference getDevice();",
"public void acquire() {\r\n return;\r\n }",
"public PeripheralHardwareDriverInterface getHardwareDriver();",
"public void mo754x() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(23, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }",
"@Override\r\n public void leftSystem() {\n }",
"public CPUCore getCpuCore() {\n return cpuCore;\n }",
"@SuppressForbidden(reason = \"to obtain default number of available processors\")\n/* */ synchronized int availableProcessors() {\n/* 65 */ if (this.availableProcessors == 0) {\n/* */ \n/* 67 */ int availableProcessors = SystemPropertyUtil.getInt(\"io.netty.availableProcessors\", \n/* */ \n/* 69 */ Runtime.getRuntime().availableProcessors());\n/* 70 */ setAvailableProcessors(availableProcessors);\n/* */ } \n/* 72 */ return this.availableProcessors;\n/* */ }",
"@Override\n public boolean isConcurrentWritableImageManagementSupported() {\n return false;\n }",
"protected AutonomousMode() {\n driveMotions = new Vector();\n auxMotions = new Vector();\n }",
"@Override\n public void runOpMode() throws InterruptedException {\n hMap(hardwareMap);\n ElapsedTime time = new ElapsedTime();\n\n\n\n markerDeploy.setPosition(0.25);\n latch.setPosition(0.25);\n rightBoxRotate.setPosition(.345);\n leftBoxRotate.setPosition(.655);\n\n\n /** Wait for the game to begin */\n telemetry.addData(\">\", \"Press Play to start tracking\");\n telemetry.update();\n waitForStart();\n\n rightBoxRotate.setPosition(0.15);\n leftBoxRotate.setPosition(0.85);\n\n motorArmLeft.setPower(0.5);\n motorArmRight.setPower(-0.5);\n Thread.sleep(1100);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n\n\n Thread.sleep(100);\n\n\n // moveTo(0.4,20);\n\n\n // Thread.sleep(1000);\n\n\n rightBoxRotate.setPosition(.345);\n leftBoxRotate.setPosition(.655);\n\n Thread.sleep(100);\n\n motorArmLeft.setPower(0.5);\n motorArmRight.setPower(-0.5);\n Thread.sleep(1150);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n\n Thread.sleep(250);\n\n setMotors(-0.4,-0.4);\n Thread.sleep(250);\n setMotors(0,0);\n\n Thread.sleep(250);\n\n motorArmLeft.setPower(0.5);\n motorArmRight.setPower(-0.5);\n Thread.sleep(475);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n //up\n //servo init position\n Thread.sleep(250);\n\n motorArmLeft.setPower(-0.5);\n motorArmRight.setPower(0.5);\n Thread.sleep(200);\n motorArmLeft.setPower(0);\n motorArmRight.setPower(0);\n\n Thread.sleep(100);\n\n moveTo(0.4,200);\n\n// Thread.sleep(100);\n\n// rightBoxRotate.setPosition(0.15);\n// leftBoxRotate.setPosition(0.85);\n\n Thread.sleep(100);\n manip.setPower(1);\n }",
"@Override\n public void runOpMode() {\n hw = new RobotHardware(robotName, hardwareMap);\n rd = new RobotDrive(hw);\n rs=new RobotSense(hw, telemetry);\n /*rd.moveDist(RobotDrive.Direction.FORWARD, .5, .3);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, .3);\n rd.moveDist(RobotDrive.Direction.FORWARD, .5, 1);\n rd.moveDist(RobotDrive.Direction.REVERSE, .5, 1);*/\n telemetry.addData(\"Ready! \", \"Go Flamangos!\"); \n telemetry.update();\n\n //Starting the servos in the correct starting position\n /*hw.armRight.setPosition(1-.3);\n hw.armLeft.setPosition(.3);\n hw.level.setPosition(.3+.05);*/\n hw.f_servoLeft.setPosition(1);\n hw.f_servoRight.setPosition(0.5);\n \n rd.moveArm(hw.startPos());\n waitForStart();\n while (opModeIsActive()) {\n \n /*Starting close to the bridge on the building side\n Move under the bridge and push into the wall*/\n rd.moveDist(RobotDrive.Direction.LEFT,2,.5);\n rd.moveDist(RobotDrive.Direction.FORWARD, 10, .5);\n break;\n }\n }",
"public void mo5114a() {\n new Thread(new C0370c(this)).start();\n }",
"public void threadManager() {\n /**Retrieve all data stored in \"preference\"*/\n if (mNodeThingUtils.getAllSavedThing() != null) {\n\n Map<String, String> getAllSensor = mNodeThingUtils.getAllSavedThing();\n Set<String> keys = getAllSensor.keySet();\n\n /**It checks to see if he has already been registered*/\n if (!threadControl.containsKey(String.valueOf(keys))) {\n for (Iterator i = keys.iterator(); i.hasNext(); ) {\n String key = (String) i.next();\n /**This control is used to separate the thread type from the sensor type*/\n if (!key.matches(Constant.Regexp.THREAD_CONTROL) && key.length() != 2) {\n\n /**Creates a new thread and registers it as \"nodename: thingname\"\n * of type \"map\" so that it is easy to check later*/\n threadControl.put(key, new ThreadUtils(mContext));\n }\n }\n } else {\n LogUtils.logger(TAG, \"There is a thread named as \" + keys);\n }\n }\n }",
"@Override\n public void runOpMode() {\n telemetry.addData(\"Status\", \"Resetting Encoders\"); //\n telemetry.update();\n\n leftFront = hardwareMap.get(DcMotor.class, \"left_front\");\n rightFront = hardwareMap.get(DcMotor.class, \"right_front\");\n leftBack = hardwareMap.get(DcMotor.class, \"left_back\");\n rightBack = hardwareMap.get(DcMotor.class, \"right_back\");\n\n\n leftFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n leftBack.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rightFront.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n right = hardwareMap.get(Servo.class, \"right\");\n left = hardwareMap.get(Servo.class, \"left\");\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n leftFront.setDirection(DcMotor.Direction.REVERSE);\n rightFront.setDirection(DcMotor.Direction.FORWARD);\n leftBack.setDirection(DcMotor.Direction.REVERSE);\n rightBack.setDirection(DcMotor.Direction.FORWARD);\n\n leftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n leftBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rightBack.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n digitalTouch = hardwareMap.get(DigitalChannel.class, \"sensor_digital\");\n digitalTouch.setMode(DigitalChannel.Mode.INPUT);\n\n right.setDirection(Servo.Direction.REVERSE);\n\n right.scaleRange(0, 0.25);\n left.scaleRange(0.7, 1);\n\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n\n servo(0);\n runtime.reset();\n encoderSideways(0.25, -5, -5, 5);\n // drive until touch sensor pressed\n // activate servos to grab platform\n // drive backwards for a while\n // release servos\n // sideways part\n // remember to do red autonomous for repackage org.firstinspires.ftc.teamcode;\n }",
"@Override\n public void scanActuatorsParked() {\n }",
"public void runOpMode() throws InterruptedException {\n robot.init(hardwareMap);\n BNO055IMU.Parameters parameters1 = new BNO055IMU.Parameters();\n parameters1.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters1);\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n robot.arm.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.arm.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n //P.S. if you're using the latest version of easyopencv, you might need to change the next line to the following:\n phoneCam = OpenCvCameraFactory.getInstance().createInternalCamera(OpenCvInternalCamera.CameraDirection.BACK, cameraMonitorViewId);\n //phoneCam = new OpenCvInternalCamera(OpenCvInternalCamera.CameraDirection.BACK, cameraMonitorViewId);//remove this\n\n phoneCam.openCameraDevice();//open camera\n phoneCam.setPipeline(new StageSwitchingPipeline());//different stages\n phoneCam.startStreaming(rows, cols, OpenCvCameraRotation.SIDEWAYS_LEFT);//display on RC\n //width, height\n //width = height in this case, because camera is in portrait mode.\n\n runtime.reset();\n while (!isStarted()) {\n for (int i = 0; i <= 7; i++) {\n telemetry.addData(\"Values\", vals[i]);\n }\n for (int i = 0; i <= 7; i++) {\n totals = totals + vals[i];\n }\n totals = totals / 255;\n telemetry.addData(\"total\", totals);\n\n telemetry.addData(\"Height\", rows);\n telemetry.addData(\"Width\", cols);\n\n telemetry.update();\n sleep(100);\n\n if (totals >= 4) {\n StartAngle = 30;\n StartDistance = 105;\n StartBack = -40;\n ReturnAngle = 28;\n ReturnDistance = -85;\n drop2 = 112;\n mid = 0;\n backup2 = -33;\n } else if (totals <= 0) {\n StartAngle = 55;\n StartDistance= 85;\n StartBack = -5;\n ReturnAngle = 38;\n ReturnDistance = -60;\n drop2 = 65;\n mid = -2;\n backup2 = -31;\n } else {\n StartAngle = 17;\n StartDistance = 75;\n StartBack = -20;\n ReturnAngle = 22;\n ReturnDistance = -49;\n drop2 = 95;\n mid = -18;\n backup2 = -41;\n }\n totals = 0;\n }\n\n\n\n gyroDrive(DRIVE_SPEED,6,0,30,0);\n gyroDrive(DRIVE_SPEED,36,-45,30,0);\n gyroDrive(DRIVE_SPEED,StartDistance,StartAngle,30,0);\n\n //robot.arm.setTargetPosition(-450);\n //robot.arm.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n /*robot.arm.setPower(-.1);\n //robot.arm.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n gyroHold(DRIVE_SPEED,0,2);\n robot.claw.setPosition(0);\n robot.arm.setPower(.05);\n gyroHold(DRIVE_SPEED,0,1);\n gyroDrive(DRIVE_SPEED,-10,0,5,0);\n gyroTurn(TURN_SPEED,90);\n gyroDrive(DRIVE_SPEED,-20,90,5,0);\n\n */\n gyroTurn(TURN_SPEED,ReturnAngle);\n robot.LWheel.setPower(-.9);\n robot.RWheel.setPower(-.9);\n gyroDrive(DRIVE_SPEED, ReturnDistance,ReturnAngle, 30,0);\n gyroHold(TURN_SPEED,3,1);\n robot.lock.setPosition(1);\n robot.RTrack.setPosition(1);\n robot.LTrack.setPosition(0);\n gyroHold(TURN_SPEED,0,2);\n gyroHold(TURN_SPEED,-3,2);\n robot.LWheel.setPower(0);\n robot.RWheel.setPower(0);\n robot.RTrack.setPosition(.5);\n robot.LTrack.setPosition(.5);\n gyroTurn(TURN_SPEED,ReturnAngle);\n gyroDrive(DRIVE_SPEED, backup2, ReturnAngle, 30,0);\n\n gyroTurn(TURN_SPEED,90);\n gyroDrive(DRIVE_SPEED,52,80,5,0);\n gyroTurn(TURN_SPEED,65);\n gyroDrive(DRIVE_SPEED,drop2,2 + mid,10,0);\n robot.RDrop.setPosition(.23);\n robot.LDrop.setPosition(.23);\n gyroDrive(DRIVE_SPEED,StartBack,0,5,0);\n robot.arm.setPower(-.2);\n\n gyroHold(TURN_SPEED,0,1.7);\n robot.arm.setPower(0);\n }",
"@Override\n public int targetDevice() {\n return 0;\n }",
"@Override\n public void runOpMode() throws InterruptedException {\n\n //Uses code from HardwareSirvoBot to map all the hardware for us\n robot.init(hardwareMap);\n\n //Send message through telemetry\n telemetry.addLine(\"> Initializing program...\");\n telemetry.addLine(\"> Program successfully started.\");\n telemetry.update();\n\n //Waits for driver to press play\n waitForStart();\n\n //Use encoders to make robot move a certain amount of inches\n drive(DRIVE_SPEED, 1, 1, 10);\n drive(DRIVE_SPEED, -1, -5, 10);\n robot.leftMotor.setPower(0);\n robot.rightMotor.setPower(0);\n }",
"@Override\r\n \tprotected Robot getRobot() {\t\t\r\n \t\treturn null;\r\n \t}",
"public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}",
"public int getIoThreadMultiplier()\n {\n return ioThreadMultiplier;\n }",
"private IThreadInfo[] getThreadList() {\n List<IThreadInfo> list = new ArrayList<IThreadInfo>((_objectProcessor != null ? _objectProcessor : _processor).getThreads().values());\n Collections.sort(list, new Comparator<IThreadInfo>() {\n\n public int compare(IThreadInfo o1, IThreadInfo o2) {\n return (int) (o1.getThreadID() - o2.getThreadID());\n }\n });\n return list.toArray(new IThreadInfo[0]);\n }",
"public synchronized void makeAvailable(){\n isBusy = false;\n }",
"public final /* synthetic */ void lambda$onMcuMessage$0$KswMcuListener(SystemStatus systemStatus, byte[] data) {\n systemStatus.lastMode = data[1];\n int i = 0;\n switch (data[1]) {\n case 1:\n if (Build.DEVICE.contains(\"8937\")) {\n try {\n Log.d(TAG, \"memory music 8917 delay 02\");\n while (true) {\n int i2 = i;\n if (i2 < 20) {\n Thread.sleep(500);\n if (!SystemStatusControl.getStatus().topApp.equals(\"com.wits.ksw\")) {\n i = i2 + 1;\n }\n }\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n CenterControlImpl.getImpl().openMusic(true);\n return;\n case 2:\n if (Build.DEVICE.contains(\"8937\")) {\n try {\n Log.d(TAG, \"memory music 8917 delay 02\");\n while (true) {\n int i3 = i;\n if (i3 < 20) {\n Thread.sleep(500);\n if (!SystemStatusControl.getStatus().topApp.equals(\"com.wits.ksw\")) {\n i = i3 + 1;\n }\n }\n }\n } catch (InterruptedException e2) {\n e2.printStackTrace();\n }\n }\n CenterControlImpl.getImpl().openVideo(true);\n return;\n case 3:\n CenterControlImpl.getImpl().openBluetooth(true);\n return;\n case 5:\n try {\n if (Settings.System.getInt(this.mContext.getContentResolver(), \"DVR_Type\") == 1) {\n this.mMcuSender.sendMessage(103, new byte[]{5});\n return;\n }\n return;\n } catch (Settings.SettingNotFoundException e3) {\n return;\n }\n case 6:\n CenterControlImpl.getImpl().openAux(true);\n return;\n case 9:\n CenterControlImpl.getImpl().openDtv(true);\n return;\n case 11:\n CenterControlImpl.getImpl().openFrontCamera(true);\n return;\n default:\n return;\n }\n }",
"public interface CIDScreenIfc extends DeviceActionGroupIfc\n{\n /** revision number supplied by CVS **/\n public static final String revisionNumber = \"$Revision: /rgbustores_13.4x_generic_branch/1 $\";\n\n /**\n * Set the CIDScreenManager for a given screen\n * \n * @param cidScreenManager to set\n */\n public void setCIDScreenManager(CIDScreenManager cidScreenManager);\n\n /**\n * @deprecated 7.0, use the CIDAction constructor\n * to create an action instead\n * \n * @param action Action Name\n * @param parms varies depending ona ction\n * @return Newly created action\n */\n public CIDAction createAction(String action, Vector parms);\n\n /**\n * Refresh the display using the underlying model\n */\n public void refresh();\n\n /**\n * Reset the model this screen uses\n */\n public void reset();\n\n /**\n * Clear the screen (make it blank). Part\n * of clearing the screen includes resetting\n * the model.\n * \n * @throws DeviceException\n */\n public void clear() throws DeviceException;\n\n /**\n * Hide the screen (Make it blank) the model\n * does not reset\n * \n * @throws DeviceException\n */\n public void hide() throws DeviceException;\n\n /**\n * Make the screen visible, this is essentially\n * the same as a refresh\n * \n * @throws DeviceException\n */\n public void show() throws DeviceException;\n\n /**\n * For every CIDScreenIfc implementation, custom actions may\n * exist. For each of those actions, the CIDScreenIfc implementation\n * must know how to handle them to update the display. When the display\n * needs to be updated, the controller will call this method.\n * \n * @param action\n */\n public void processAction(CIDAction action);\n\n /** @deprecated 7.0, use isVisible() \n * @return boolean, true if visible false if not **/\n public boolean getVisible();\n \n /**\n * Tell whether or not the given screen is \n * currently visible on the device.\n * @return True if visible, false if not.\n */\n public boolean isVisible();\n \n /**\n * Set the visiblity of the screen\n * \n * @param val ture or false\n */\n public void setVisible(boolean val);\n\n}",
"public String getCurrentScreenDisplay();",
"@Override\n public void runOpMode() throws InterruptedException {\n leftfMotor = hardwareMap.dcMotor.get(\"m0\");\n rightfMotor = hardwareMap.dcMotor.get(\"m1\");\n leftbMotor = hardwareMap.dcMotor.get(\"m2\");\n rightbMotor = hardwareMap.dcMotor.get(\"m3\");\n rPMotor = hardwareMap.dcMotor.get(\"rPMotor\");\n leftClamp = hardwareMap.servo.get(\"left_servo\");\n rightClamp = hardwareMap.servo.get(\"right_servo\");\n rightfMotor.setDirection(DcMotor.Direction.REVERSE);\n rightbMotor.setDirection(DcMotor.Direction.REVERSE);\n\n telemetry.addData(\"Mode\", \"waiting\");\n telemetry.update();\n\n // wait for start button.\n\n\n waitForStart();\n\n leftY = 0;\n rightY = 0;\n leftZ = 0;\n rightZ = 0;\n bumperL = false;\n bumperR = false;\n\n while (opModeIsActive()) {\n\n telemetry.addData(\"left stick y \", gamepad1.left_stick_y);\n telemetry.update();\n leftY = -gamepad1.left_stick_y;\n\n rightY = -gamepad1.right_stick_y;\n\n leftZ = gamepad1.left_trigger;\n rightZ = gamepad1.right_trigger;\n\n bumperL = gamepad1.left_bumper;\n bumperR = gamepad1.right_bumper;\n\n\n leftfMotor.setPower(leftY);\n leftbMotor.setPower(leftY);\n rightfMotor.setPower(rightY);\n rightbMotor.setPower(rightY);\n\n\n if (leftZ > 0) {\n rPMotor.setPower(leftZ/10);\n\n } else if (rightZ > 0) {\n rPMotor.setPower(-rightZ/10);\n\n }\n\n\n telemetry.addData(\"Mode\", \"running\");\n telemetry.addData(\"sticks\", \" left=\" + leftY + \" right=\" + rightY);\n telemetry.addData(\"trig\", \" left=\" + leftZ + \" right=\" + rightZ);\n telemetry.update();\n\n\n if (bumperL) {\n\n clampMove += .01;\n leftClamp.setPosition(-clampMove);\n rightClamp.setPosition(clampMove);\n\n } else if (bumperR) {\n\n clampMove -= .01;\n leftClamp.setPosition(-clampMove);\n rightClamp.setPosition(clampMove);\n\n }\n\n idle();\n\n\n }\n }",
"private void disableForegroundDispatchSystem() {\n nfcAdapter_act.disableForegroundDispatch(this);\n }",
"private HardwareDeviceRental(){\r\n\r\n this.initializeComponent();\r\n hardwares= new ArrayList<HardwareDevice>();\r\n\r\n }",
"public static RemoteObject _globals() throws Exception{\nrequests3.mostCurrent._icon = RemoteObject.createNew (\"anywheresoftware.b4a.objects.drawable.BitmapDrawable\");\n //BA.debugLineNum = 25;BA.debugLine=\"Private xui As XUI\";\nrequests3.mostCurrent._xui = RemoteObject.createNew (\"anywheresoftware.b4a.objects.B4XViewWrapper.XUI\");\n //BA.debugLineNum = 27;BA.debugLine=\"Private TileSourceSpinner As Spinner\";\nrequests3.mostCurrent._tilesourcespinner = RemoteObject.createNew (\"anywheresoftware.b4a.objects.SpinnerWrapper\");\n //BA.debugLineNum = 29;BA.debugLine=\"Private IsFiltered As Boolean = False\";\nrequests3._isfiltered = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 30;BA.debugLine=\"Private FilterStartDate As String\";\nrequests3.mostCurrent._filterstartdate = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 31;BA.debugLine=\"Private FilterEndDate As String\";\nrequests3.mostCurrent._filterenddate = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 32;BA.debugLine=\"Private FilterTasks As Int = 0\";\nrequests3._filtertasks = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 33;BA.debugLine=\"Private FilterEntity As Int = 0\";\nrequests3._filterentity = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 34;BA.debugLine=\"Private FilterRoute As Int = 0\";\nrequests3._filterroute = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 35;BA.debugLine=\"Private FilterStates As Int = 0\";\nrequests3._filterstates = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 36;BA.debugLine=\"Private FilterTypeRequests As Int = 0\";\nrequests3._filtertyperequests = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 37;BA.debugLine=\"Private Bloco30 As Int = 0\";\nrequests3._bloco30 = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 39;BA.debugLine=\"Private ListTypeRequests As List\";\nrequests3.mostCurrent._listtyperequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 40;BA.debugLine=\"Private ListStates As List\";\nrequests3.mostCurrent._liststates = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 41;BA.debugLine=\"Private ListEntities As List\";\nrequests3.mostCurrent._listentities = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 42;BA.debugLine=\"Private ListTasks As List\";\nrequests3.mostCurrent._listtasks = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 43;BA.debugLine=\"Private ListRoutes As List\";\nrequests3.mostCurrent._listroutes = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 45;BA.debugLine=\"Private ButtonUserUnavailable As Button\";\nrequests3.mostCurrent._buttonuserunavailable = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 46;BA.debugLine=\"Private mapUserPosition As Button\";\nrequests3.mostCurrent._mapuserposition = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 47;BA.debugLine=\"Private ColorTabPanel As Panel\";\nrequests3.mostCurrent._colortabpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 49;BA.debugLine=\"Private ButtonActionTransport As Button\";\nrequests3.mostCurrent._buttonactiontransport = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 50;BA.debugLine=\"Private ButtonAppAlert As Button\";\nrequests3.mostCurrent._buttonappalert = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 51;BA.debugLine=\"Private ButtonAppNetwork As Button\";\nrequests3.mostCurrent._buttonappnetwork = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 52;BA.debugLine=\"Private LabelAppInfo As Label\";\nrequests3.mostCurrent._labelappinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 53;BA.debugLine=\"Private LabelCopyright As Label\";\nrequests3.mostCurrent._labelcopyright = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 54;BA.debugLine=\"Private LabelDateTime As Label\";\nrequests3.mostCurrent._labeldatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 55;BA.debugLine=\"Private LabelVersion As Label\";\nrequests3.mostCurrent._labelversion = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 56;BA.debugLine=\"Private listsBasePanel As Panel\";\nrequests3.mostCurrent._listsbasepanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 57;BA.debugLine=\"Private listsBottomLine As Panel\";\nrequests3.mostCurrent._listsbottomline = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 58;BA.debugLine=\"Private listsBottomPanel As Panel\";\nrequests3.mostCurrent._listsbottompanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 59;BA.debugLine=\"Private listsButtonClose As Button\";\nrequests3.mostCurrent._listsbuttonclose = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 60;BA.debugLine=\"Private listsButtonFilter As Button\";\nrequests3.mostCurrent._listsbuttonfilter = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 61;BA.debugLine=\"Private listsLabelInfo As Label\";\nrequests3.mostCurrent._listslabelinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 62;BA.debugLine=\"Private listsTabPanel As TabStrip\";\nrequests3.mostCurrent._liststabpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.TabStripViewPager\");\n //BA.debugLineNum = 63;BA.debugLine=\"Private listsTopBar As Panel\";\nrequests3.mostCurrent._liststopbar = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 64;BA.debugLine=\"Private mainLabelOptLists As Label\";\nrequests3.mostCurrent._mainlabeloptlists = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 65;BA.debugLine=\"Private mainLogo As ImageView\";\nrequests3.mostCurrent._mainlogo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ImageViewWrapper\");\n //BA.debugLineNum = 66;BA.debugLine=\"Private mainTopLine As Panel\";\nrequests3.mostCurrent._maintopline = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 68;BA.debugLine=\"Private IsFiltered As Boolean = False\";\nrequests3._isfiltered = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 69;BA.debugLine=\"Private iDialogReqTypeObject, iDialogReqZone, iDi\";\nrequests3._idialogreqtypeobject = RemoteObject.createImmutable(0);\nrequests3._idialogreqzone = RemoteObject.createImmutable(0);\nrequests3._idialogreqstatus = RemoteObject.createImmutable(0);\nrequests3._idialogreqregion = RemoteObject.createImmutable(0);\nrequests3._idialogreqlocal = RemoteObject.createImmutable(0);\nrequests3._idialogreqwithrequests = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 70;BA.debugLine=\"Private sDialogReqName, sDialogReqAddress, Search\";\nrequests3.mostCurrent._sdialogreqname = RemoteObject.createImmutable(\"\");\nrequests3.mostCurrent._sdialogreqaddress = RemoteObject.createImmutable(\"\");\nrequests3.mostCurrent._searchfilter = RemoteObject.createImmutable(\"\");\n //BA.debugLineNum = 71;BA.debugLine=\"Private RegionsList, TypeObjectsList, LocalsList,\";\nrequests3.mostCurrent._regionslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._typeobjectslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._localslist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._reqrequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\nrequests3.mostCurrent._reqrequestsnottoday = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 72;BA.debugLine=\"Private ItemsCounter As Int = 0\";\nrequests3._itemscounter = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 74;BA.debugLine=\"Private listRequestsButtonMap As Button\";\nrequests3.mostCurrent._listrequestsbuttonmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 75;BA.debugLine=\"Private mapBaseList As Panel\";\nrequests3.mostCurrent._mapbaselist = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 76;BA.debugLine=\"Private mapBasePanel As Panel\";\nrequests3.mostCurrent._mapbasepanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 78;BA.debugLine=\"Private mapZoomDown As Button\";\nrequests3.mostCurrent._mapzoomdown = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 79;BA.debugLine=\"Private mapZoomUp As Button\";\nrequests3.mostCurrent._mapzoomup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 80;BA.debugLine=\"Private listRequests As CustomListView 'ExpandedL\";\nrequests3.mostCurrent._listrequests = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 81;BA.debugLine=\"Private listsRequestsMap As CustomListView\";\nrequests3.mostCurrent._listsrequestsmap = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 83;BA.debugLine=\"Private pnlGroupTitle As Panel\";\nrequests3.mostCurrent._pnlgrouptitle = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 84;BA.debugLine=\"Private pnlGroupData As Panel\";\nrequests3.mostCurrent._pnlgroupdata = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 86;BA.debugLine=\"Private ListItemTodayRequests As Label\";\nrequests3.mostCurrent._listitemtodayrequests = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 87;BA.debugLine=\"Private ListItemReference As Label\";\nrequests3.mostCurrent._listitemreference = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 88;BA.debugLine=\"Private ListItemDatetime As Label\";\nrequests3.mostCurrent._listitemdatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 89;BA.debugLine=\"Private ListItemContact As Label\";\nrequests3.mostCurrent._listitemcontact = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 90;BA.debugLine=\"Private ListItemFullName As Label\";\nrequests3.mostCurrent._listitemfullname = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 91;BA.debugLine=\"Private ListItemStatus As Label\";\nrequests3.mostCurrent._listitemstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 92;BA.debugLine=\"Private listButMap As Button\";\nrequests3.mostCurrent._listbutmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 94;BA.debugLine=\"Private ListItemObject As Label\";\nrequests3.mostCurrent._listitemobject = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 95;BA.debugLine=\"Private ListItemObjectTask As Label\";\nrequests3.mostCurrent._listitemobjecttask = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 96;BA.debugLine=\"Private ListItemObjectExecution As Label\";\nrequests3.mostCurrent._listitemobjectexecution = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 97;BA.debugLine=\"Private listButObjectAction As Button\";\nrequests3.mostCurrent._listbutobjectaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 98;BA.debugLine=\"Private ListItemObjectStatus As Label\";\nrequests3.mostCurrent._listitemobjectstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 99;BA.debugLine=\"Private ListItemObjectStatusIcon As Label\";\nrequests3.mostCurrent._listitemobjectstatusicon = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 101;BA.debugLine=\"Private CurrentGroupItem As Int = 0\";\nrequests3._currentgroupitem = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 102;BA.debugLine=\"Private pnlGroupCurrenIndex As Int\";\nrequests3._pnlgroupcurrenindex = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 103;BA.debugLine=\"Private ClickLabel As Label\";\nrequests3.mostCurrent._clicklabel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 105;BA.debugLine=\"Private ShowListPedidosMap As Boolean = False\";\nrequests3._showlistpedidosmap = requests3.mostCurrent.__c.getField(true,\"False\");\n //BA.debugLineNum = 106;BA.debugLine=\"Private EditSearch As EditText\";\nrequests3.mostCurrent._editsearch = RemoteObject.createNew (\"anywheresoftware.b4a.objects.EditTextWrapper\");\n //BA.debugLineNum = 107;BA.debugLine=\"Private butSearch As Button\";\nrequests3.mostCurrent._butsearch = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 109;BA.debugLine=\"Dim CurrentIndexPanel As Int = -1\";\nrequests3._currentindexpanel = BA.numberCast(int.class, -(double) (0 + 1));\n //BA.debugLineNum = 110;BA.debugLine=\"Dim CurrentIDPanel As Int = 0\";\nrequests3._currentidpanel = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 112;BA.debugLine=\"Private LabelButtonTitleAction As Label\";\nrequests3.mostCurrent._labelbuttontitleaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 113;BA.debugLine=\"Private LabelReferenciasDescritivos As Label\";\nrequests3.mostCurrent._labelreferenciasdescritivos = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 114;BA.debugLine=\"Private LabelStatus As Label\";\nrequests3.mostCurrent._labelstatus = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 115;BA.debugLine=\"Private RequestsOptionsPopMenu As MenuOnAnyView\";\nrequests3.mostCurrent._requestsoptionspopmenu = RemoteObject.createNew (\"com.jakes.menuonviews.menuonanyview\");\n //BA.debugLineNum = 117;BA.debugLine=\"Private CurrentLineItem As Int = 0\";\nrequests3._currentlineitem = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 118;BA.debugLine=\"Private TotalLineItems As Int = 0\";\nrequests3._totallineitems = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 119;BA.debugLine=\"Private ListItemObjectNumber As Label\";\nrequests3.mostCurrent._listitemobjectnumber = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 120;BA.debugLine=\"Private listButMore As Button\";\nrequests3.mostCurrent._listbutmore = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 121;BA.debugLine=\"Private ListItemObjectDateTime As Label\";\nrequests3.mostCurrent._listitemobjectdatetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 122;BA.debugLine=\"Private ListItemObjectReference As Label\";\nrequests3.mostCurrent._listitemobjectreference = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 123;BA.debugLine=\"Private pnlGroupDataSub As Panel\";\nrequests3.mostCurrent._pnlgroupdatasub = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 124;BA.debugLine=\"Private pnlGroupDataList As ExpandedListView 'Cus\";\nrequests3.mostCurrent._pnlgroupdatalist = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.expandedlistview\");\n //BA.debugLineNum = 127;BA.debugLine=\"Private CurrentPage As Int\";\nrequests3._currentpage = RemoteObject.createImmutable(0);\n //BA.debugLineNum = 128;BA.debugLine=\"Private Pages As List '= Array(True, False, True,\";\nrequests3.mostCurrent._pages = RemoteObject.createNew (\"anywheresoftware.b4a.objects.collections.List\");\n //BA.debugLineNum = 130;BA.debugLine=\"Private listRequestsItem As CustomListView\";\nrequests3.mostCurrent._listrequestsitem = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 131;BA.debugLine=\"Private CLAButtonOptions As Button\";\nrequests3.mostCurrent._clabuttonoptions = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 132;BA.debugLine=\"Private CLAItem_G1 As Label\";\nrequests3.mostCurrent._claitem_g1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 133;BA.debugLine=\"Private CLAItemButton_1 As B4XStateButton\";\nrequests3.mostCurrent._claitembutton_1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 134;BA.debugLine=\"Private CLAItemButton_2 As B4XStateButton\";\nrequests3.mostCurrent._claitembutton_2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 135;BA.debugLine=\"Private CLAItem_G2 As Label\";\nrequests3.mostCurrent._claitem_g2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 136;BA.debugLine=\"Private CLAItem_G3 As Label\";\nrequests3.mostCurrent._claitem_g3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 137;BA.debugLine=\"Private CLAItem_G4 As Label\";\nrequests3.mostCurrent._claitem_g4 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 138;BA.debugLine=\"Private CLAItem_G5 As Label\";\nrequests3.mostCurrent._claitem_g5 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 139;BA.debugLine=\"Private CLAItem_G6 As Label\";\nrequests3.mostCurrent._claitem_g6 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 140;BA.debugLine=\"Private CLAItem_G7 As Label\";\nrequests3.mostCurrent._claitem_g7 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 141;BA.debugLine=\"Private ListItemType As Label\";\nrequests3.mostCurrent._listitemtype = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 143;BA.debugLine=\"Private ListItem_Notes As Label\";\nrequests3.mostCurrent._listitem_notes = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 144;BA.debugLine=\"Private ListItem_Status As Label\";\nrequests3.mostCurrent._listitem_status = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 145;BA.debugLine=\"Private ListItem_Datetime As Label\";\nrequests3.mostCurrent._listitem_datetime = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 146;BA.debugLine=\"Private ListItem_Entity As Label\";\nrequests3.mostCurrent._listitem_entity = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 147;BA.debugLine=\"Private ListItem_Cloud As Label\";\nrequests3.mostCurrent._listitem_cloud = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 148;BA.debugLine=\"Private listButCompare As Button\";\nrequests3.mostCurrent._listbutcompare = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 149;BA.debugLine=\"Private ListItem_TypeRequest As Label\";\nrequests3.mostCurrent._listitem_typerequest = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 150;BA.debugLine=\"Private listRequestsItemSecond As CustomListView\";\nrequests3.mostCurrent._listrequestsitemsecond = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 151;BA.debugLine=\"Private CLAItemButtonBR_SVR2 As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_svr2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 152;BA.debugLine=\"Private CLAItemButtonBR_SVR2_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_svr2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 153;BA.debugLine=\"Private CLA_BR_KSVRF2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvrf2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 154;BA.debugLine=\"Private CLA_BR_KSVRF2_A As Button\";\nrequests3.mostCurrent._cla_br_ksvrf2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 155;BA.debugLine=\"Private CLA_BR_KSVRI2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvri2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 156;BA.debugLine=\"Private CLA_BR_KSVRI2_A As Button\";\nrequests3.mostCurrent._cla_br_ksvri2_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 157;BA.debugLine=\"Private CLA_BR_KSVRI1_A As Button\";\nrequests3.mostCurrent._cla_br_ksvri1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 158;BA.debugLine=\"Private CLA_BR_KSVRI1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvri1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 159;BA.debugLine=\"Private CLA_BR_KSVRF1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_ksvrf1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 160;BA.debugLine=\"Private CLA_BR_KSVRF1_A As Button\";\nrequests3.mostCurrent._cla_br_ksvrf1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 161;BA.debugLine=\"Private CLAItemButtonBR_SVR1 As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_svr1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 162;BA.debugLine=\"Private CLAItemButtonBR_SVR1_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_svr1_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 163;BA.debugLine=\"Private CLAItemButtonBR_INIT_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_init_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 164;BA.debugLine=\"Private CLAItemButtonBR_INIT As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr_init = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 165;BA.debugLine=\"Private CLA_BR_OBS As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_obs = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 166;BA.debugLine=\"Private CLA_BR_OBS_A As Button\";\nrequests3.mostCurrent._cla_br_obs_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 167;BA.debugLine=\"Private CLA_BR_KMI_A As Button\";\nrequests3.mostCurrent._cla_br_kmi_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 168;BA.debugLine=\"Private CLA_BR_KMI As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_kmi = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 169;BA.debugLine=\"Private CLA_BR_CAR As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_car = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 170;BA.debugLine=\"Private CLA_BR_CAR_A As Button\";\nrequests3.mostCurrent._cla_br_car_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 171;BA.debugLine=\"Private CLA_BR_KMF_A As Button\";\nrequests3.mostCurrent._cla_br_kmf_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 172;BA.debugLine=\"Private CLA_BR_KMF As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_kmf = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 173;BA.debugLine=\"Private CLA_BR_E1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 174;BA.debugLine=\"Private CLA_BR_S1 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s1 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 175;BA.debugLine=\"Private CLA_BR_E2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 176;BA.debugLine=\"Private CLA_BR_S2 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s2 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 177;BA.debugLine=\"Private CLA_BR_E3 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_e3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 178;BA.debugLine=\"Private CLA_BR_S3 As FloatLabeledEditText\";\nrequests3.mostCurrent._cla_br_s3 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 179;BA.debugLine=\"Private CLAItemButtonBR As B4XStateButton\";\nrequests3.mostCurrent._claitembuttonbr = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 180;BA.debugLine=\"Private CLAItemButtonBR_A As Button\";\nrequests3.mostCurrent._claitembuttonbr_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 181;BA.debugLine=\"Private CLAItemButtonX_A As Button\";\nrequests3.mostCurrent._claitembuttonx_a = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 182;BA.debugLine=\"Private B4XStateButton1 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton1 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 183;BA.debugLine=\"Private B4XStateButton2 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton2 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 184;BA.debugLine=\"Private B4XStateButton3 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton3 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 185;BA.debugLine=\"Private B4XStateButton4 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton4 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 186;BA.debugLine=\"Private B4XStateButton5 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton5 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 187;BA.debugLine=\"Private B4XStateButton6 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton6 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 188;BA.debugLine=\"Private B4XStateButton7 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton7 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 189;BA.debugLine=\"Private B4XStateButton14 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton14 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 190;BA.debugLine=\"Private B4XStateButton13 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton13 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 191;BA.debugLine=\"Private B4XStateButton21 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton21 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 192;BA.debugLine=\"Private B4XStateButton20 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton20 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 193;BA.debugLine=\"Private B4XStateButton19 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton19 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 194;BA.debugLine=\"Private B4XStateButton12 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton12 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 195;BA.debugLine=\"Private B4XStateButton11 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton11 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 196;BA.debugLine=\"Private B4XStateButton18 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton18 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 197;BA.debugLine=\"Private B4XStateButton17 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton17 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 198;BA.debugLine=\"Private B4XStateButton10 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton10 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 199;BA.debugLine=\"Private B4XStateButton9 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton9 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 200;BA.debugLine=\"Private B4XStateButton16 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton16 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 201;BA.debugLine=\"Private B4XStateButton15 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton15 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 202;BA.debugLine=\"Private B4XStateButton8 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton8 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 203;BA.debugLine=\"Private B4XStateButton22 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton22 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 204;BA.debugLine=\"Private B4XStateButton23 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton23 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 205;BA.debugLine=\"Private B4XStateButton24 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton24 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 206;BA.debugLine=\"Private B4XStateButton25 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton25 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 207;BA.debugLine=\"Private B4XStateButton26 As B4XStateButton\";\nrequests3.mostCurrent._b4xstatebutton26 = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.b4xstatebutton\");\n //BA.debugLineNum = 209;BA.debugLine=\"Private VIEW_requests_listview As String = \\\"reque\";\nrequests3.mostCurrent._view_requests_listview = BA.ObjectToString(\"requests_listview\");\n //BA.debugLineNum = 210;BA.debugLine=\"Private VIEW_requests_listviewrequest As String =\";\nrequests3.mostCurrent._view_requests_listviewrequest = BA.ObjectToString(\"requests_listviewrequest\");\n //BA.debugLineNum = 211;BA.debugLine=\"Private VIEW_requests_listviewrequest2 As String\";\nrequests3.mostCurrent._view_requests_listviewrequest2 = BA.ObjectToString(\"requests_listviewrequest2\");\n //BA.debugLineNum = 212;BA.debugLine=\"Private VIEW_requests_mapview As String = \\\"reques\";\nrequests3.mostCurrent._view_requests_mapview = BA.ObjectToString(\"requests_mapview_google\");\n //BA.debugLineNum = 213;BA.debugLine=\"Private ButtonActionPause As Button\";\nrequests3.mostCurrent._buttonactionpause = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 214;BA.debugLine=\"Private CurrentFilter As String = \\\"\\\"\";\nrequests3.mostCurrent._currentfilter = BA.ObjectToString(\"\");\n //BA.debugLineNum = 215;BA.debugLine=\"Private mainActiveUser As Label\";\nrequests3.mostCurrent._mainactiveuser = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 216;BA.debugLine=\"Private gmap As GoogleMap\";\nrequests3.mostCurrent._gmap = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper\");\n //BA.debugLineNum = 217;BA.debugLine=\"Private mapData As MapFragment\";\nrequests3.mostCurrent._mapdata = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper\");\n //BA.debugLineNum = 218;BA.debugLine=\"Private mapMarker As Marker\";\nrequests3.mostCurrent._mapmarker = RemoteObject.createNew (\"anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper\");\n //BA.debugLineNum = 219;BA.debugLine=\"Private listsButtonPull As Button\";\nrequests3.mostCurrent._listsbuttonpull = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 220;BA.debugLine=\"Private listButNote As Button\";\nrequests3.mostCurrent._listbutnote = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 221;BA.debugLine=\"Private butQuickAction As Button\";\nrequests3.mostCurrent._butquickaction = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 222;BA.debugLine=\"Private ListItem_Favorite As Label\";\nrequests3.mostCurrent._listitem_favorite = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 223;BA.debugLine=\"Private listsButtonFavorites As Button\";\nrequests3.mostCurrent._listsbuttonfavorites = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 224;BA.debugLine=\"Private ListItem_Desc02 As Label\";\nrequests3.mostCurrent._listitem_desc02 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 225;BA.debugLine=\"Private ListItem_Desc01 As Label\";\nrequests3.mostCurrent._listitem_desc01 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 226;BA.debugLine=\"Private ListaPrincipalClickItem As Int = -1\";\nrequests3._listaprincipalclickitem = BA.numberCast(int.class, -(double) (0 + 1));\n //BA.debugLineNum = 227;BA.debugLine=\"Private ListViewDevice3Panel As Panel\";\nrequests3.mostCurrent._listviewdevice3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 228;BA.debugLine=\"Private ListViewRequestDevice3Panel As Panel\";\nrequests3.mostCurrent._listviewrequestdevice3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 229;BA.debugLine=\"Private ListViewRequest2Device3Panel As Panel\";\nrequests3.mostCurrent._listviewrequest2device3panel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 230;BA.debugLine=\"Private ListItemClickIndex As Label\";\nrequests3.mostCurrent._listitemclickindex = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 231;BA.debugLine=\"Private ListItem_Desc00 As Label\";\nrequests3.mostCurrent._listitem_desc00 = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 232;BA.debugLine=\"Private SubItemImage As ImageView\";\nrequests3.mostCurrent._subitemimage = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ImageViewWrapper\");\n //BA.debugLineNum = 233;BA.debugLine=\"Private LockPanel As Panel\";\nrequests3.mostCurrent._lockpanel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.PanelWrapper\");\n //BA.debugLineNum = 235;BA.debugLine=\"Private GRANDACTIVE_INSTANCE As String = \\\"PT20180\";\nrequests3.mostCurrent._grandactive_instance = BA.ObjectToString(\"PT20180913-2105-006\");\n //BA.debugLineNum = 236;BA.debugLine=\"Private LockPanelInfo As Label\";\nrequests3.mostCurrent._lockpanelinfo = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 238;BA.debugLine=\"Private current_limit As Int = 0\";\nrequests3._current_limit = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 239;BA.debugLine=\"Private current_offset As Int = 100\";\nrequests3._current_offset = BA.numberCast(int.class, 100);\n //BA.debugLineNum = 240;BA.debugLine=\"Private next_current_limit As Int = 0\";\nrequests3._next_current_limit = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 241;BA.debugLine=\"Private next_offset As Int = 100\";\nrequests3._next_offset = BA.numberCast(int.class, 100);\n //BA.debugLineNum = 242;BA.debugLine=\"Private CurrentTotalItems As Int = 0\";\nrequests3._currenttotalitems = BA.numberCast(int.class, 0);\n //BA.debugLineNum = 244;BA.debugLine=\"Private SelectedTagcode As String = \\\"\\\"\";\nrequests3.mostCurrent._selectedtagcode = BA.ObjectToString(\"\");\n //BA.debugLineNum = 245;BA.debugLine=\"Private SelectedRequestData As RequestData\";\nrequests3.mostCurrent._selectedrequestdata = RemoteObject.createNew (\"xevolution.vrcg.devdemov2400.types._requestdata\");\n //BA.debugLineNum = 246;BA.debugLine=\"Private ListItemNumber As Label\";\nrequests3.mostCurrent._listitemnumber = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 248;BA.debugLine=\"Private data_Intervencao As FloatLabeledEditText\";\nrequests3.mostCurrent._data_intervencao = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 249;BA.debugLine=\"Private hora_intervencao As FloatLabeledEditText\";\nrequests3.mostCurrent._hora_intervencao = RemoteObject.createNew (\"anywheresoftware.b4a.objects.FloatLabeledEditTextWrapper\");\n //BA.debugLineNum = 250;BA.debugLine=\"Private TaskList2Dup As CustomListView\";\nrequests3.mostCurrent._tasklist2dup = RemoteObject.createNew (\"b4a.example3.customlistview\");\n //BA.debugLineNum = 251;BA.debugLine=\"Private BotaoDataDup As Button\";\nrequests3.mostCurrent._botaodatadup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 252;BA.debugLine=\"Private BotaoHoraDup As Button\";\nrequests3.mostCurrent._botaohoradup = RemoteObject.createNew (\"anywheresoftware.b4a.objects.ButtonWrapper\");\n //BA.debugLineNum = 253;BA.debugLine=\"Private dupItemCheck As CheckBox\";\nrequests3.mostCurrent._dupitemcheck = RemoteObject.createNew (\"anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper\");\n //BA.debugLineNum = 254;BA.debugLine=\"Private dupItemLabel As Label\";\nrequests3.mostCurrent._dupitemlabel = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 256;BA.debugLine=\"Private ListITemTechnical As Label\";\nrequests3.mostCurrent._listitemtechnical = RemoteObject.createNew (\"anywheresoftware.b4a.objects.LabelWrapper\");\n //BA.debugLineNum = 257;BA.debugLine=\"Private GlobalScanReturn As Boolean\";\nrequests3._globalscanreturn = RemoteObject.createImmutable(false);\n //BA.debugLineNum = 258;BA.debugLine=\"End Sub\";\nreturn RemoteObject.createImmutable(\"\");\n}",
"public final void mo27572a() {\n this.f19763c.f19791a.f19852n.f19828q = this.f19763c.m21468g();\n ArrayList<Client> arrayList = this.f19762b;\n int size = arrayList.size();\n int i = 0;\n while (i < size) {\n Object obj = arrayList.get(i);\n i++;\n ((Client) obj).getRemoteService(this.f19763c.f19805o, this.f19763c.f19791a.f19852n.f19828q);\n }\n }",
"public Peripheral getHardwareDriverFromSoftwareDriver();",
"public NavigationAT(IPerception perception, IMonitor monitor){\r\n\t\tthis.perception = perception;\r\n\t\tthis.monitor = monitor;\r\n\t\tthis.encoderLeft = perception.getNavigationLeftEncoder();\r\n\t\tthis.encoderRight = perception.getNavigationRightEncoder();\r\n\t\tthis.mouseodo = perception.getNavigationOdo();\t\t\r\n\t\t\r\n\t\tnavThread.setPriority(Thread.MAX_PRIORITY - 1);\r\n\t\tnavThread.setDaemon(true); // background thread that is not need to terminate in order for the user program to terminate\r\n\t\tnavThread.start();\r\n\t}",
"public synchronized void updateNavigation(){\t\r\n\t\tthis.updateSensors();\r\n\t\tthis.calculateLocation();\r\n\t\tif (this.parkingSlotDetectionIsOn)\r\n\t\t\t\tthis.detectParkingSlot();\r\n\t\t\r\n\t\t// MONITOR (example)\r\n//\t\tmonitor.writeNavigationComment(\"Navigation\");\r\n\t}",
"public void mo751u() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(20, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }"
] |
[
"0.62540513",
"0.5791117",
"0.57338214",
"0.56519157",
"0.54933643",
"0.5490152",
"0.5341364",
"0.5335837",
"0.52989364",
"0.52113086",
"0.51666766",
"0.51467866",
"0.51231503",
"0.5082365",
"0.50779086",
"0.50113255",
"0.5004964",
"0.49899557",
"0.4962806",
"0.49267602",
"0.49114132",
"0.49081832",
"0.4900915",
"0.48960534",
"0.4890642",
"0.4872576",
"0.48595762",
"0.48581254",
"0.485574",
"0.48494405",
"0.48342147",
"0.48332697",
"0.48313168",
"0.48310277",
"0.4828023",
"0.4807309",
"0.48032448",
"0.4802611",
"0.47822398",
"0.47816795",
"0.47810176",
"0.47778785",
"0.47751448",
"0.47708577",
"0.4757571",
"0.47508565",
"0.47499448",
"0.47487715",
"0.47403336",
"0.4736775",
"0.47350127",
"0.47322518",
"0.47270465",
"0.47101024",
"0.47087738",
"0.47044516",
"0.46999276",
"0.46974507",
"0.46956804",
"0.46948555",
"0.4692091",
"0.46918157",
"0.46895137",
"0.4686446",
"0.46818927",
"0.46793863",
"0.46763474",
"0.4675843",
"0.46705225",
"0.4668456",
"0.4666437",
"0.46653754",
"0.46648908",
"0.46640116",
"0.4662407",
"0.46619296",
"0.4656774",
"0.46543795",
"0.46490204",
"0.46470663",
"0.46389526",
"0.46382982",
"0.46353143",
"0.46350697",
"0.4633173",
"0.4632931",
"0.46308812",
"0.46286386",
"0.46269685",
"0.46249768",
"0.46220183",
"0.46197474",
"0.46168247",
"0.46154326",
"0.4611111",
"0.46107942",
"0.46105754",
"0.46080482",
"0.4606504",
"0.46048898"
] |
0.51554716
|
11
|
keeps track of the next empty space in the array arr constructor
|
public CalculatorUtil(){
value = "";
decimalUsed = false;
arr = new String[20];
tail = 0;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static void test() {\n\t\tint i = 0;\n\t\tArrays.fill(arr, -1);\n\t\tarr[++i] = 0;\n\t\tprintArray(arr);\n\t\ti = 0;\n\t\tArrays.fill(arr, -1);\n\t\tarr[i++] = 0;\n\t\tprintArray(arr);\n\t\t\n\t}",
"public SuperArray() { \n \t_data = new Comparable[10];\n \t_lastPos = -1; //flag to indicate no lastpos yet\n \t_size = 0;\t\n }",
"private void ensureCap(){\n T[] temp = (T[])new Object[arr.length * 2];\n for(int i = 0; i < numItems; i++){\n temp[i] = this.arr[i];\n }\n this.arr = temp;\n }",
"private void grow() {\n T[] arr_temp = (T[]) new Object[arr.length*2];\n for (int i=0; i<arr.length; i++){\n arr_temp[i] = arr[i];\n }\n arr = arr_temp;\n }",
"public void initializeArray(){\n if(topOfStack==-1){\n for(int i=0;i<this.arr.length;i++){\n this.arr[i]=Integer.MIN_VALUE;\n }\n }\n }",
"public ArrBag()\n {\n count = 0; // i.e. logical size, actual number of elems in the array\n }",
"private void initialize(int[] arr) {\n a = ArraysUtils.sortAndRemoveDuplicates(arr);\n if (a.length != arr.length) {\n throw new IllegalArgumentException(\"Need unique list of numbers\");\n }\n numLeft = new BigInteger(total.toString());\n }",
"private static void PushZerosToEnd(int[] arr, int n) {\n\t\n\t\tint count=0;\n\t\tfor(int i=0;i<n;i++) \n\t\t\tif(arr[i]!=0)\n\t\t\t\tarr[count++]=arr[i];\n\t\t\n\t\twhile(count<n)\n\t\t{\n\t\t\tarr[count++]=0;\n\t\t}\n\t}",
"static void moveZerosToEnd(int[] arr) {\n // Write your code here\n int n = arr.length;\n int count=0;\n for (int i = 0; i < n; i++)\n if (arr[i] != 0)\n arr[count++] = arr[i];\n while (count < n)\n arr[count++] = 0;\n }",
"public void nextRound() {\n\n k += 1;\n\n BigInteger[] arr2 = new BigInteger[arr.length];\n int j = 0;\n for(int i = 0; i < arr.length; i++) {\n if(arr[i] == null)\n continue;\n\n arr2[j++] = arr[i].shiftLeft(1);\n arr2[j++] = arr[i].shiftLeft(1).setBit(0);\n\n }\n // We should have exactly arr.length places filled (no nulls left!)\n assert(j == arr.length) : \"Backing array not completely filled in!\";\n arr = arr2;\n\n }",
"public abstract void startArray();",
"public ArrayDeque() {\n size = 0;\n array = (T[]) new Object[8];\n nextFirst = 0;\n nextLast = 1;\n }",
"private void ensureCapacity()\n\t{\n\t\tif (elements.length == size)\n\t\t\telements = Arrays.copyOf(elements, 2 * size + 1);\n\t}",
"public void makeEmpty() {\r\n\t\tArrays.fill(list, -1);\r\n\t}",
"public void insertToArray()\n {\n //if the bucket size is not empty, empty out the bucket\n if(zero.size() != 0)\n {\n a[c] = zero.get(0);\n zero.remove(0);\n c++; s++;\n return;\n }\n if(one.size() != 0)\n {\n a[c] = one.get(0);\n one.remove(0);\n c++; s++;\n return;\n }\n if(two.size() != 0)\n {\n a[c] = two.get(0);\n two.remove(0);\n c++; s++;\n return;\n }\n if(three.size() != 0)\n {\n a[c] = three.get(0);\n three.remove(0);\n c++; s++;\n return;\n }\n if(four.size() != 0)\n {\n a[c] = four.get(0);\n four.remove(0);\n c++; s++;\n return;\n }\n if(five.size() != 0)\n {\n a[c] = five.get(0);\n five.remove(0);\n c++; s++;\n return;\n }\n if(six.size() != 0)\n {\n a[c] = six.get(0);\n six.remove(0);\n c++; s++;\n return;\n }\n if(seven.size() != 0)\n {\n a[c] = seven.get(0);\n seven.remove(0);\n c++; s++;\n return;\n }\n if(eight.size() != 0)\n {\n a[c] = eight.get(0);\n eight.remove(0);\n c++; s++;\n return;\n }\n if(nine.size() != 0)\n {\n a[c] = nine.get(0);\n nine.remove(0);\n c++; s++;\n return;\n }\n }",
"private void reallocateIfOverfilled() {\r\n\t\tif ((size * 1.0 / table.length) > MAX_FULLNESS_PERCENTAGE) {\r\n\t\t\treallocateArray();\r\n\t\t}\r\n\t}",
"protected boolean advance()\n/* */ {\n/* 66 */ while (++this.m_offset < this.m_array.length) {\n/* 67 */ if (this.m_array[this.m_offset] != null) {\n/* 68 */ return true;\n/* */ }\n/* */ }\n/* 71 */ return false;\n/* */ }",
"private void ensureCapacity() {\n if ( top + 1 < storage.length ) {\n return;\n }\n storage = Arrays.copyOf( storage, storage.length * 2 );\n }",
"private void check() {\n if (s[s.length-1] != null) {\n for (int i = 0; i < N; i++) {\n s[i] = s[first+i];\n s[first+i] = null;\n }\n first = 0;\n }\n }",
"public void makeEmpty(){\n front = null;\n numItems =0;\n }",
"private void reset(){\n int j=0;\n for(int i=0; i<array.length; i++){\n if(j == itemCount) {return;}\n if(array[i]!=null){\n temp[j] = array[i];\n j++;\n }\n }\n }",
"@Override\n\tpublic void clear() \n\t{\n\t\twhile (size!=0)\n\t\t{\n\t\t\t//to check if need to resize\n\t\t\tif(size==myArray.length/4)\n\t\t\t\tresizeDown();\n\t\t\tmyArray[size-1] = null;\n\t\t\tsize--;\n\t\t}\n\t\tsize=0;\n\t}",
"public ComparableArrayHolder(int size){\r\n array = (T[]) new Comparable[size];\r\n lastIndex = -1;\r\n curSortState = SortState.UNSORTED;\r\n }",
"public CircularArray() {\n\t\tthis(DEFAULT_SIZE);\n\t}",
"public CircularArray(int initialSize) {\n\t\tthis.array = new Object[initialSize];\n\t\tthis.index = 0;\n\t\tthis.length = 0;\n\t}",
"private void reallocate() {\r\n //elem = java.util.Arrays.copyOf(elem, elem.length * 2);\r\n E[] temp = (E[]) new Object[elem.length * 2];\r\n int i = 0;\r\n while (elem[i] != null) {\r\n temp[i] = elem[i];\r\n i++;\r\n }\r\n int j = elem.length - 1;\r\n int k = temp.length - 1;\r\n while (elem[i] != null) {\r\n temp[k] = elem[j];\r\n j--;\r\n k--;\r\n }\r\n front = k;\r\n elem = temp;\r\n }",
"@Override\n public boolean add(T item) {\n // if the last spot in the array is unoccupied, item is simply added to the first empty spot\n if (arr[arr.length-1]!=null) {\n arr[size + 1] = item;\n size++;\n }\n // if array is full, number of spots is doubled and item is added\n if (arr[arr.length-1]== null){\n grow();\n arr[size+1] = item;\n size++;\n }\n return true;\n }",
"public WeetArray() {\n count = 0;\n nullCount = 0;\n }",
"private boolean moveToNextCell() {\r\n positionInArray++;\r\n while (positionInArray < data.length && data[positionInArray] == null) {\r\n positionInArray++;\r\n }\r\n return positionInArray < data.length;\r\n }",
"public ArrayRingBuffer(int capacity) {\n Buffer_num = capacity;\n rb =(T[]) new Object[Buffer_num];\n fillCount = 0;\n first = 0;\n last = 0;\n }",
"public PilaEnterosArray() {\n\t\ttop = -1;\n\t}",
"private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}",
"public CircularArrayRing() {\n this.ringArray = new Object[DEFAULT_RING_SIZE];\n elementCount = 0;\n head = -1;\n }",
"public static int[] exe1(int[] arr){ // Solution O(n) in time and constant in Memory\n int nzeros=0;\n\n for (int i=0; i<arr.length; i++) {\n arr[i-nzeros] = arr[i];\n if (arr[i] == 0) {\n nzeros++;\n }\n }\n for (int i=arr.length-1; i>arr.length-nzeros-1; i--) {\n arr[i] = 0;\n }\n\n return arr;\n }",
"public CircularQueueUsingArray() {\n\t\tarray = new int[size];\n\t}",
"public RecursiveArray(int[] arr){\r\n //creates initial array and use it to substantiate array size\r\n this.arr = arr;\r\n this.arraySize = arr.length;\r\n }",
"public ArrayDeque() {\n array = (T[]) new Object[8];\n size = 0;\n front = 0;\n rear = 0;\n }",
"public BaseArray(int max) // constructor\n {\n a = new long[max]; // create the array\n nElems = 0; // no items yet\n }",
"Array() {\n\t\tarray = new int[0];\n\t}",
"private void ensureCapacity() {\n int newLength = (this.values.length * 3) / 2 + 1;\n Object[] newValues = new Object[newLength];\n System.arraycopy(this.values, 0, newValues, 0, this.values.length);\n this.values = newValues;\n }",
"Heap(int[] arr){\n\t\tthis.heap = new int[arr.length+1];\n\t\tfor(int i=1; i<arr.length+1; i++) {\n\t\t\tthis.heap[i] = arr[i-1];\n\t\t}\n\t}",
"IArray getArrayNext() throws InvalidRangeException;",
"private void ensureCapacity() {\n\t\tif (numberOfElements == capacity) {\n\t\t\tT[] newArray = (T[])new Object[(numberOfElements+1) * CAPACITY_MULTIPLIER];\n\t\t\tSystem.arraycopy(elements,0,newArray,0,numberOfElements);\n\t\t\telements = newArray;\n\t\t}\n\t}",
"public void makeComplete() { \n\t\tthis.size = 0;\n\t\tint index = 1;\n\t\tfor(int i=1; i<this.heap.length; i++) {\n\t\t\tif(this.heap[i] != -1) {\n\t\t\t\tint temp = this.heap[index];\n\t\t\t\tthis.heap[index] = this.heap[i];\n\t\t\t\tthis.heap[i] = temp;\n\t\t\t\tindex++;\n\t\t\t\tthis.size++;\n\t\t\t}\n\t\t}\n\t\tthis.heap[0] = this.size;\n\t}",
"private void createArray()\r\n\t{\r\n\t\tscorers = new String[NUMBER_OF_ENTRIES];\r\n\t\tfor(int i = 0; i < NUMBER_OF_ENTRIES; i += 2)\r\n\t\t{\r\n\t\t\tscorers[i] = \"[NULL]\";\r\n\t\t\tscorers[i + 1] = String.valueOf(-1);\r\n\t\t}\r\n\t}",
"public void reset_array() {\r\n\t\tfor(int i=0;i<9;i++) {\r\n\t\t\ts[i]=\"\";\r\n\t\t}\r\n\t}",
"public ArrayQueue() {\n Object[] arr = new Object[INITIAL_CAPACITY];\n backingArray = (T[]) arr;\n size = 0;\n front = 0;\n }",
"stack() {\n arr = (E[]) new Object[size];\n }",
"public void addMinHeap(E[] arr) {\n //copy input\n System.arraycopy(arr, 0, array, 0, arr.length);\n // from last parent down, check/ establish minHeap\n setMinHeap();\n lastPosition = arr.length;\n array = Arrays.copyOf(array, array.length * 5 / 2); // give space for null leaves to be used in traversals\n }",
"public void fixArray(){\n if (size == 0 || queue.length < 1){\n return;\n }\n E[] newer = ((E[])new Comparable[queue.length]);\n\n int x = 0;\n for(Object cur : queue){\n if (cur != null){\n newer[x++] = (E)cur;\n }\n }\n\n this.queue = newer;\n this.size = x;\n\n }",
"private int[] compact(int[] arr, int len) {\n assert arr != null;\n assert U.isNonDecreasingArray(arr, len);\n\n if (arr.length <= 1)\n return U.copyIfExceeded(arr, len);\n\n int newLen = 1;\n\n for (int i = 1; i < len; i++) {\n if (arr[i] != arr[newLen - 1])\n arr[newLen++] = arr[i];\n }\n\n return U.copyIfExceeded(arr, len);\n }",
"private void ensureCapacity() {\n\t\n\t\tif (elements.length == size) {\n\t\t\tT[] oldElements = elements;\n\t\t\t\n\t\t\telements = (T[]) new Object[2 * elements.length + 1];\n\t\t\t\n\t\t\tSystem.arraycopy(oldElements, 0, elements, 0, size);\n\t\t\n\t\t}\n\t\n\t}",
"void fill()\n\t{\n\t\tif(!mySeq.isEmpty())\n\t\t{\t\n\t\t\tPair temp = mySeq.removeFirst();\t\t\n\t\t\tthis.nextPos = temp.getSecond();\n\t\t\tthis.myTurn = temp.getFirst();\n\t\t}\n\t}",
"@SuppressWarnings(\"unchecked\") // this will stop Java complaining about the cast\n private void ensureCapacity() {\n if (count == data.length) { //if count is equal to the length of data a new array is made doubling the initial size, it then makes the data collection == to the temp collection\n E[] temp = (E[]) new String[data.length * 2]; //effectivly increasing the size of the array\n for (int i = 0; i < data.length; i++) {\n temp[i] = data[i];\n }\n data = temp;\n }\n }",
"ArrayADT() {\n this.size = 10;\n this.base = createArrayInstance(this.size);\n this.length = 0;\n }",
"private void grow() {\n int growSize = size + (size<<1);\n array = Arrays.copyOf(array, growSize);\n }",
"public MyVector() {\n\t\tarr = new int[10];\n\t\tend = 0;\n\t}",
"public void init() {\n for (Point[] p : prev) {\n Arrays.fill(p, null);\n }\n }",
"public void makeEmpty() {\n for (int i = 0; i < buckets.length; i++) {\n buckets[i] = new SList();\n }\n size = 0;\n }",
"@Override\n public int fillCount(){\n return fillCount;\n }",
"@Override\n public void add(E work) {\n if(isFull()) {\n throw new IllegalStateException();\n }\n array[end] = work;\n end = (end + 1) % capacity();\n size++;\n }",
"public Deque() {\r\n this.items = (Item[]) new Object[8];\r\n this.middle = items.length / 2;\r\n this.firstCursor = middle - 1;\r\n this.lastCursor = middle;\r\n }",
"private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}",
"public void aendereWertFunktioniert(int[] arr) {\n\t\tif (arr.length > 0)\n\t\t\tarr[0] = 0;\n\t}",
"public S()\n {\n // inizializzazione dell'array\n v = new Object[CAPACITY];\n\n // inizializzazione dei buckets\n for (int i = 0; i < v.length; i++)\n v[i] = new ListNode();\n \n // inizializzazione del numero di elementi\n size = 0;\n }",
"private static int[][] AddToArr(int[][] arr, int[][] symbol, int length, int offset) {\n\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tfor (int j = 0; j < length; j++) {\r\n\t\t\t\tif (symbol[i][j] > 0) {\r\n\r\n\t\t\t\t\tarr[i][j + offset] = 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn arr;\r\n\t}",
"public int capacity() {\n\t\treturn arr.length;\n\t}",
"public DynamicArray() {\n this(16);\n }",
"public void fillArrayWithNeg1(){\n\t\t\n\t\tArrays.fill(this.theArray, \"-1\");\n\t\t\n\t}",
"public ArrayIterator() {\n next = first;\n }",
"private Range() {\n this.length = 0;\n this.first = 0;\n this.last = -1;\n this.stride = 1;\n this.name = \"EMPTY\";\n }",
"private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n arrayList = Arrays.copyOf(arrayList, size);\n }\n }",
"public void reallocate()\r\n\t{\r\n\t\tE[] newArray = (E[]) new Object[capacity * 2];\r\n\t\tint i = 0;\r\n\t\tfor(i = 0; i < this.size(); i++)\r\n\t\t{\r\n\t\t\tnewArray[i] = innerArray[(front + i) % capacity];\r\n\t\t\tSystem.out.println((front + i) % capacity);\r\n\t\t}\r\n\t\tfront = 0;\r\n\t\trear = this.size() - 1;\r\n\t\tcapacity = capacity * 2;\r\n\t\tinnerArray = newArray;\r\n\t}",
"public void buildHeap(int[] arr) {\n int size = arr.length;\n\n for (int i = getParentIndex(size); i >= 0; i--) {\n minHeapify(i);\n }\n }",
"public ResizingArrayDeque() {\n q = (Item[]) new Object[2];\n N = 0;\n first = 0;\n last = 0;\n }",
"void setNullArray()\n/* */ {\n/* 1051 */ this.length = -1;\n/* 1052 */ this.elements = null;\n/* 1053 */ this.datums = null;\n/* 1054 */ this.pickled = null;\n/* 1055 */ this.pickledCorrect = false;\n/* */ }",
"public Array(int capacity)\n {\n array = new Object[capacity];\n }",
"public abstract void endArray();",
"void reset() {\n for (int i = 0; i < array.length; i++) {\n array[i] = -1;\n }\n }",
"@SuppressWarnings(\"unchecked\")\n public ArrBag( int optionalCapacity )\n {\n theArray = (T[]) new Object[optionalCapacity ];\n count = 0; // i.e. logical size, actual number of elems in the array\n }",
"public GenericDynamicArray() {this(11);}",
"private void grow() {\n int oldCapacity = this.values.length;\n int newCapacity = oldCapacity + (oldCapacity >> 1);\n Object[] newValues = new Object[newCapacity];\n System.arraycopy(this.values, 0, newValues, 0, oldCapacity);\n this.values = newValues;\n }",
"protected void grow()\r\n\t{\t\r\n\t\tif(debug)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Debug - Starting grow\");\r\n\t\t}\r\n\t\t\r\n\t\tint[] temp = new int[count*2];\r\n\t\t\r\n\t\tfor(int index = 0; index < count; index++)\r\n\t\t{\r\n\t\t\ttemp[index] = numArray[index];\r\n\t\t\t\r\n\t\t\tif(debug)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Debug - temp[index] = \" + temp[index]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tnumArray = temp;\r\n\t\t\r\n\t\tif(debug)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Debug - Ending grow\");\r\n\t\t}\r\n\t}",
"public ArrayRingBuffer(int capacity) {\n first = 0;\n last = 0;\n fillCount = 0;\n this.capacity = capacity;\n rb = (T[]) new Object[this.capacity];\n // Create new array with capacity elements.\n // first, last, and fillCount should all be set to 0.\n // this.capacity should be set appropriately. Note that the local variable\n // here shadows the field we inherit from AbstractBoundedQueue, so\n // you'll need to use this.capacity to set the capacity.\n }",
"private void doClear( )\n {\n occupied = 0;\n for( int i = 0; i < array.length; i++ )\n array[ i ] = null;\n }",
"public int[] shitArrayValuesToFront(int[] arr){\n for(int i = 0; i < arr.length; i++){\n if(i == arr.length - 1){\n arr[i] = 0;\n }else{\n arr[i] = arr[i + 1];\n }\n }\n return arr;\n }",
"public ArrayStack(int initialCapacity) {\n size = 0;\n this.backing = (T[]) new Object[initialCapacity];\n }",
"private byte[] increment(byte[] array) {\n for (int i = array.length - 1; i >= 0; --i) {\n byte elem = array[i];\n ++elem;\n array[i] = elem;\n if (elem != 0) { // Did not overflow: 0xFF -> 0x00\n return array;\n }\n }\n return null;\n }",
"private void grow() {\n capacity *= 2;\n Object[] temp = new Object[capacity];\n for (int i = 0; i < values.length; i++) temp[i] = values[i];\n values = temp;\n }",
"public ArrayNode(ArrayNode<U> prev, ArrayNode<U> next, int capacityOfArray){\r\n\t \tif (capacityOfArray<0){\r\n\t \t\tthrow new IllegalArgumentException(\"capacity cannot be negative\");\r\n\t \t}\r\n\t \tthis.prev = prev;\r\n\t \tthis.next = next;\r\n\t \tnumElems=0;\r\n\t \tthis.arraySize = capacityOfArray;\r\n\t \tarray = new Object[capacityOfArray];\r\n\t }",
"public ArrayQueue(int capacity){\r\n\t\tq = new String [capacity];\r\n\t\tn = 0;\r\n\t\tfirst = 0;\r\n\t\tlast = 0; \r\n\t}",
"private Board(int size)\n {\n array = new char[size][size];\n \n for (int i = 0; i < size; i++)\n for (int j = 0; j < size; j++)\n array[i][j] = EMPTY;\n }",
"public ArrayHeapMinPQ() {\n heapArray = new ArrayList<>();\n itemMap = new HashMap<>();\n heapArray.add(null); //alway set index 0 null and heap starts from index 1.\n nextIndex = 1;\n }",
"public ExpandableArray() {\n\n\t}",
"private void expandArray() {\r\n//\t\tSystem.out.println(\"Expanding: current capacity \" + capacity); //Used for debugging\r\n\t\tcapacity = 2 * capacity;\r\n\t\tE[] temp = (E[]) new Object[capacity];\r\n\t\tfor (int i = 0; i < t + 1; i++)\r\n\t\t\ttemp[i] = stack[i];\r\n\t\tstack = temp;\r\n\t}",
"public int capacity()\r\n/* 81: */ {\r\n/* 82:116 */ ensureAccessible();\r\n/* 83:117 */ return this.array.length;\r\n/* 84: */ }",
"protected Object[] freshElemArray(int capacity) {\n return new Object[capacity];\n }",
"@Override\n @SuppressWarnings(\"unchecked\")\n public void clear() {\n @SuppressWarnings(\"Not Checked\")\n E[] newArray = (E[])new Comparable[super.capacity()];\n array = newArray;\n size = 0;\n front = 0;\n end = 0;\n }",
"@Override\r\n\tpublic boolean isEmtpy() {\r\n\t\tif (this.front == -1) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"static void move_1 (int[] nums) {\n\t\t\n\t\tint j = 0;\n\t\t\n\t\t// Copy all non 0 numbs to start of arry \n\t\t// j will keep count of nums of zeros \n\t\tfor(int i=0; i< nums.length; i++) {\n\t\t\t\n\t\t\tif(nums[i] != 0) {\n\t\t\t\tnums[j] = nums[i];\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// add j number of zeros to end of array\n\t\tfor(int i=j ; i<nums.length; i++) {\n\t\t\t\n\t\t\tnums[i] = 0;\n\t\t}\n\t\t\n\t}",
"private void addToEmptyList(T data) {\n this.first = this.last = new Node(data);\n this.nrOfElements++;\n }"
] |
[
"0.6489205",
"0.62408924",
"0.6142566",
"0.59379923",
"0.5891897",
"0.5882482",
"0.58306336",
"0.5819967",
"0.5806389",
"0.5721125",
"0.57100946",
"0.5690317",
"0.5641604",
"0.562594",
"0.56083584",
"0.55977416",
"0.55970806",
"0.55787355",
"0.5567523",
"0.55669814",
"0.5563315",
"0.5543221",
"0.554111",
"0.5517905",
"0.5498074",
"0.5492891",
"0.5491393",
"0.5488872",
"0.54689044",
"0.54561627",
"0.54524857",
"0.5442411",
"0.54392487",
"0.54392046",
"0.5431213",
"0.5429706",
"0.5404583",
"0.539452",
"0.5392253",
"0.5385356",
"0.53639746",
"0.5356495",
"0.53500515",
"0.53438586",
"0.53357387",
"0.5333625",
"0.53313303",
"0.53297997",
"0.5327733",
"0.5323521",
"0.5308403",
"0.5307076",
"0.5301605",
"0.529558",
"0.5292081",
"0.5268761",
"0.5264361",
"0.52620655",
"0.526081",
"0.52595866",
"0.5245764",
"0.5244232",
"0.5224805",
"0.5223135",
"0.52199805",
"0.5210367",
"0.5208077",
"0.52060753",
"0.52048004",
"0.52023154",
"0.5202048",
"0.5200686",
"0.5198078",
"0.51955855",
"0.5194538",
"0.5177867",
"0.51742846",
"0.5172092",
"0.51660526",
"0.5162561",
"0.5161086",
"0.5160112",
"0.5159518",
"0.51555926",
"0.5153874",
"0.5150611",
"0.51443475",
"0.5134692",
"0.5132875",
"0.51153237",
"0.5086654",
"0.50854367",
"0.5081116",
"0.50798106",
"0.5079457",
"0.5077394",
"0.5073824",
"0.50718737",
"0.5070886",
"0.50682014",
"0.5067449"
] |
0.0
|
-1
|
setter and getter methods
|
public String getValue(){
return this.value;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected abstract Set method_1559();",
"String setValue();",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"public void setdat()\n {\n }",
"@Override\n public void get() {}",
"public String setter() {\n\t\treturn prefix(\"set\");\n\t}",
"public void get() {\n }",
"public abstract void set(M newValue);",
"public T get() {\n return value;\n }",
"private void assignment() {\n\n\t\t\t}",
"public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }",
"public T get() {\n return value;\n }",
"public T get() {\n return value;\n }",
"public Object getNewValue()\n {\n return newValue;\n }",
"@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}",
"@Override\n String get();",
"public String get();",
"@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }",
"public void setAge(int age) { this.age = age; }",
"public T set(T obj);",
"public Object get()\n {\n return m_internalValue;\n }",
"@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}",
"protected Object doGetValue() {\n\t\treturn value;\n\t}",
"public abstract String get();",
"V setValue(final V value) {\n\t setMethod.accept(value);\n\n\t return value;\n\t}",
"public void setValue(Object value) { this.value = value; }",
"public V get() {\n return value;\n }",
"public int getSet() {\n return set;\n }",
"protected void setValue(T value) {\r\n this.value = value;\r\n }",
"public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }",
"public void set(String name, Object value) {\n }",
"private void setData() {\n\n }",
"public abstract void setValue(T value);",
"@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}",
"void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}",
"@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}",
"@Test\n\tpublic void testSet() {\n\t}",
"@Override\n\tpublic void setValue(Object object) {\n\n\t}",
"void set(T t);",
"@Override\n\tpublic void set(T e) {\n\t\t\n\t}",
"public void setValue(S s) { value = s; }",
"public String getSetter() {\n return \"set\" + getCapName();\n }",
"Object setValue(Object value) throws NullPointerException;",
"public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }",
"public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }",
"public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }",
"public void setPrice(double price){this.price=price;}",
"public void setProp(String key, String value){\t\t\n \t\t//Check which of property to set & set it accordingly\n \t\tif(key.equals(\"UMPD.latestReport\")){\n \t\t\tthis.setLatestReport(value);\n<<<<<<< HEAD\n\t\t} \n=======\n \t\t\treturn;\n \t\t} \n \t\tif (key.equals(\"UMPD.latestVideo\")) {\n \t\t\tthis.setLastestVideo(value);\n \t\t\treturn;\n \t\t}\n>>>>>>> 45a14c6cf04ac0844f8d8b43422597ae953e0c42\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return - a list of <code>FieldAndval</code> objects representing the set \n \t * properties\n \t */\n \tpublic ArrayList<FieldAndVal> getSetPropsList(){\n \t\tcreateSetPropsList();\n \t\treturn setPropsList;\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * \n \t */\n \tprivate void createSetPropsList(){\n \t\tif((this.latestReport).length()>0){\n \t\t\tsetPropsList.add(new FieldAndVal(\"UMPD.latestReport\", this.latestReport));\n \t\t}\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return lastestVideo - \n \t */\n \tpublic String getLastestVideo() {\n \t\treturn lastestVideo;\n \t}",
"void setValue(Object value);",
"@Test\n\tpublic void get_test()\n\t{\n\t\tb.set(1,2,'x');\n\t\tassertEquals(b.get(1,2),'x');\n\t}",
"public int\t\tget() { return value; }",
"public String get()\n {\n return this.string;\n }",
"@Test\n public void setAndGetTest() {\n GameEntity t2 = new GameEntity(new Rectangle(10.0, 10.0));\n\n //Set and getting temp node\n t2.getView().setTranslateX(5.0);\n t2.getView().setTranslateY(5.0);\n Circle temp = new Circle(4);\n t2.setView(temp);\n assertEquals(\"Expected view to be changed\", temp, t2.getView());\n\n //Testing the alive and dead of the object\n t2.setAlive(false);\n assertEquals(\"Expected the object state to be set to dead.\", false, t2.isAlive());\n assertEquals(\"Expected the reverse of object state to be set to alive.\", true, t2.isDead());\n }",
"@Deprecated\n final Method setter() {\n return this.setter;\n }",
"boolean getSet();",
"public void setValue(T value) {\n/* 134 */ this.value = value;\n/* */ }",
"public void setAge(int age);",
"@Override\r\n\t\tpublic void set(E arg0) {\n\r\n\t\t}",
"public void setX(int x) { this.x=x; }",
"public void setValue(Object val);",
"public String getValue() {\n/* 99 */ return this.value;\n/* */ }",
"private SetProperty(Builder builder) {\n super(builder);\n }",
"public void setValue(Object value);",
"public int setValue (int val);",
"public Object getValue(){\n \treturn this.value;\n }",
"@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}",
"public int getAge() {return age;}",
"boolean get();",
"public Object getValue() { return _value; }",
"@Override\n\t\tpublic V setValue(V p1){\n\t\t\treturn p1;\n\t\t}",
"public void setValue(A value) {this.value = value; }",
"public void setEmployee(String employee)\r\n/* 43: */ {\r\n/* 44:47 */ this.employee = employee;\r\n/* 45: */ }",
"String get();",
"String get();",
"public String get()\n {\n return val;\n }",
"@Test\n public void testSetNombre() {\n System.out.println(\"setNombre\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n String expResult = \"nom1\";\n String result = instance.getNombre();\n assertEquals(expResult, result);\n }",
"public void setU(String f){\n u = f;\n}",
"public int getValue() {\n/* 450 */ return this.value;\n/* */ }",
"public void set(String s);",
"void setValue(T value);",
"void setValue(T value);",
"public int getAge(){\n return age;\n }",
"public Value getSetValue() {\n\t\treturn set_value_;\n\t}",
"@Override\n public void setValue(Object val)\n {\n value = val;\n }",
"public Object getValue()\n {\n\treturn value;\n }",
"void setAge(int age);",
"void set(Model model);",
"public void set()\r\n {\r\n isSet = true;\r\n }",
"public int getlife(){\r\n return life;\r\n}",
"public void setDataGetter(Object instance, Method method) {\n this.instance = instance;\n this.method = method;\n }",
"public void testGetterAndSetter() {\n UDDIOperationInput uddiOperationInput = new UDDIOperationInput();\n\n //Test Get and Set ElementType\n QName qName = new QName(UDDI_NS_URI, \"input\");\n assertNotNull(\"getElementType was null\",\n uddiOperationInput.getElementType());\n assertTrue(\"getElementType was incorrect\",\n uddiOperationInput.getElementType().equals(qName));\n\n //Test Get and Set Required\n uddiOperationInput.setRequired(isRequired);\n assertFalse(\"getRequired returned true\",\n uddiOperationInput.getRequired());\n isRequired = true;\n uddiOperationInput.setRequired(isRequired);\n assertTrue(\"getRequired returned false\",\n uddiOperationInput.getRequired());\n\n //Test Get and Set BusinessName\n uddiOperationInput.setBusinessName(businessName);\n assertTrue(\"getBusinessName incorrect\",\n uddiOperationInput.getBusinessName().equals(businessName));\n\n //Test Get and Set ServiceName\n uddiOperationInput.setServiceName(serviceName);\n assertTrue(\"getServiceName incorrect\",\n uddiOperationInput.getServiceName().equals(serviceName));\n }",
"double sety(double y) {\nreturn this.y;\n }",
"@Override\n public Object getValue()\n {\n return value;\n }",
"public String get() {\n return value;\n\t}",
"@Test\n public void test_getTelephone() {\n String value = \"new_value\";\n instance.setTelephone(value);\n\n assertEquals(\"'getTelephone' should be correct.\",\n value, instance.getTelephone());\n }",
"private interface Valuable extends Base {\n\t\tString getValue();\n\t\tvoid setValue(String value);\n\t}",
"@Test\r\n\tpublic void test_setter_and_getter_title(){\r\n\t\ttestClassDefinition();\r\n\t\tBook c = new BookMock(\"Old Title\", 1);\r\n\t\tc.setTitle(\"New Title\");\r\n\t\tassertEquals(\"Changed title\", \"New Title\", c.getTitle());\r\n\t}",
"public void set() {\r\n\t\tage = 19;\r\n\t\tname = \"ΎΛ·»\";\r\n\t\theight = 161;\r\n\t\tsetWeight(50);\r\n\t\tSystem.out.println(getWeight());\r\n\t}",
"public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}",
"@Override\n\tprotected void getData() {\n\t\t\n\t}"
] |
[
"0.69148004",
"0.6894207",
"0.650436",
"0.6456427",
"0.63813746",
"0.6367311",
"0.62834966",
"0.62599576",
"0.6249823",
"0.623669",
"0.6204832",
"0.6188973",
"0.6188973",
"0.61540455",
"0.6138265",
"0.61323977",
"0.6110242",
"0.61005723",
"0.6094278",
"0.60873",
"0.6077639",
"0.60602427",
"0.605697",
"0.6051745",
"0.6031006",
"0.5997971",
"0.59876335",
"0.5985872",
"0.5985549",
"0.5979751",
"0.597589",
"0.5974855",
"0.59741324",
"0.5955235",
"0.5944319",
"0.59439814",
"0.59424454",
"0.5936783",
"0.59124035",
"0.59120536",
"0.59101015",
"0.590698",
"0.58993125",
"0.58986896",
"0.5895973",
"0.5888807",
"0.5884669",
"0.5881829",
"0.58815503",
"0.58776236",
"0.5876857",
"0.5868513",
"0.5859433",
"0.5853588",
"0.5838331",
"0.5836376",
"0.5832556",
"0.5830345",
"0.5828648",
"0.58263266",
"0.58230954",
"0.58218575",
"0.5819901",
"0.5813393",
"0.5813086",
"0.5801493",
"0.5798873",
"0.5796073",
"0.5790647",
"0.57753193",
"0.5772829",
"0.57713985",
"0.5769665",
"0.57685757",
"0.57685757",
"0.57660055",
"0.57656986",
"0.57576776",
"0.5755166",
"0.5750931",
"0.574513",
"0.574513",
"0.57446706",
"0.5742932",
"0.5733665",
"0.57321393",
"0.57248837",
"0.5721334",
"0.5713902",
"0.5708622",
"0.57079786",
"0.570722",
"0.5705229",
"0.5703449",
"0.5694595",
"0.56908774",
"0.56863254",
"0.56835765",
"0.5678349",
"0.5670613",
"0.5666354"
] |
0.0
|
-1
|
instance methods computes the answer
|
protected float compute(){
float result = 0f;
String[] post = in2post(this.arr);
result = post2ans(post);
return result;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public double getResult()\n { \n return answer;\n }",
"public abstract double calcular();",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 * n2;\r\n\t}",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}",
"@Override\n public double getResult()\n {\n double result = this.factor1 + this.factor2;\n return result;\n }",
"@Override\r\n\tpublic double calculate() {\n\r\n\t\treturn n1 + n2;\r\n\t}",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 - n2;\r\n\t}",
"public double getResult() {\n\t\treturn result; // so that skeleton code compiles\n\t}",
"public void calculate();",
"public Double getResult();",
"@Override\n\tpublic void calc() {\n\t\tcalculated = true;\n\t\tanswer=operand1-operand2;\n\t}",
"private double solution() {\n final double h = (getTextToDouble(textX1) - getTextToDouble(textX0)) / ( 2*getTextToDouble(textN)) / 3;\n double[][] mass = xInitialization();\n double answer, evenSum = 0, oddSum = 0;\n for (int i = 0; i < 2; i++) {\n for (double element : mass[i]) {\n if (i == 0)\n oddSum += getValue(element);\n else\n evenSum += getValue(element);\n }\n }\n answer = h * (getValue(getTextToDouble(textX0)) + 4 * oddSum + 2 * evenSum + getValue(getTextToDouble(textX1)));\n return answer;\n }",
"float getEvaluationResult();",
"@Override\n\tpublic double evaluate() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}",
"double scoreAnswer(Question question, Answer answer);",
"@Override\n\tpublic int evaluate(){\n\t\treturn term.evaluate() + exp.evaluate();\n\t}",
"protected abstract SoyValue compute();",
"public abstract int calculateOutput();",
"public double result() {return 0;}",
"public double getBestSolutionEvaluation();",
"double getSum();",
"double getSum();",
"@Override\n public Float compute() {\n\treturn calc();\n }",
"double getResult() {\r\n\t\treturn result;\r\n\t}",
"public abstract double evaluer(SolutionPartielle s);",
"@Override\n\t public String solve() {\n\t if (count == 0) {\n\t answer1 = getVariable2()*getVariable3();\n\t setAnswer(answer1 + \"\");\n\t } else if (count == 1) {\n\t answer1 = getVariable1()/getVariable2();\n\t setAnswer(answer1 + \"\");\n\t }else if (count == 2) {\n\t answer1 = getVariable1()/getVariable3();\n\t setAnswer(answer1 + \"\");\n\t }\n\t return getAnswer();\n\t }",
"public abstract void calculate();",
"public void evaluate() {\r\n Statistics.evaluate(this);\r\n }",
"public abstract double evaluate(Point p);",
"public abstract double evaluateSolution(Solution solution) throws JMException, SimulationException;",
"public int calculate() {\n \ttraversal(root);\n \tif(!calResult.isEmpty()){\n \t\tint answer = Integer.parseInt(calResult.pop());\n \t\treturn answer;\n \t}\n return 0;\n }",
"int calculate() {\n return getSum() + b1;\n }",
"double compute() {\r\ndouble b, e;\r\nb = (1 + rateOfRet/compPerYear);\r\ne = compPerYear * numYears;\r\nreturn principal * Math.pow(b, e);\r\n}",
"double getSolutionCost();",
"protected abstract BigDecimal calculate();",
"public double getAnswer() {\n return answer;\n }",
"@Override\n\tpublic void getResultat() {\n\t\tcalcul();\n\t}",
"public abstract double evaluateFitness();",
"Result evaluate();",
"@Override\n public Double evaluate() {\n return left.evaluate() + right.evaluate();\n }",
"public abstract double calcSA();",
"public void calcOutput()\n\t{\n\t}",
"public abstract double compute(double value);",
"double calculate(OptAlgEnvironment<?, ?> environment);",
"protected double calculateSolutionValue(int[] solution){\n return tspProblem.calculateSolutionValue(solution);\n }",
"public double calculateValue () {\n return double1 * double2;\n }",
"public int getAnswer(){\n return getVectorOne().getSteps() + getVectorTwo().getSteps();\n }",
"protected abstract Value evaluate();",
"public void compute() {}",
"int getEvaluations();",
"protected abstract Object doCalculations();",
"@Override\n public double calculate(double input)\n {\n return input/getValue();\n }",
"public int calculateVotes() {\n return 1;\n }",
"public abstract void compute();",
"@Override\n\tpublic double compute(double input) {\n\t\treturn input;\n\t}",
"public abstract double getCredit(Answer rightAnswer);",
"@Override\n\tpublic int calculation(int a, int b) {\n\t\treturn b/a;\n\t}",
"public BigInteger compute() {\n\t\tBigInteger g = parameters.getG();\n\t\tBigInteger h = parameters.getH();\n\t\tBigInteger p = parameters.getP();\n\n\t\tBigInteger gPowAik = g.modPow(aik.getValue(), p);\n\t\tBigInteger hPowBik = h.modPow(bik.getValue(), p);\n\n\t\t/*\n\t\t * ((x^a mod q) * (y^b mod q)) mod q = (x^a * y^b) mod q\n\t\t * \n\t\t * otherwise modPow cannot be used!\n\t\t */\n\t\tvalue = gPowAik.multiply(hPowBik).mod(p);\n\n\t\treturn value;\n\t}",
"@Override\n\tprotected Integer compute() {\n\t\treturn 3;\n\t}",
"void evaluate()\n\t{\n\t\toperation.evaluate();\n\t}",
"public Object eval(Individual ind)\r\n {\r\n BinaryIndividual bi = (BinaryIndividual)ind;\r\n int partialFitness = 0;\r\n int distance = 0;\r\n double fitness = 0.0;\r\n\r\n\t for (int i=0; i<100; i++){\r\n\r\n\t distance = 0;\r\n\r\n\t for (int j=0; j<100; j++){\r\n\t if (!((BinaryIndividual)target[i]).getBooleanAllele(j)^bi.getBooleanAllele(j)) { \r\n\t\t distance++;\r\n\t }\r\n \r\n\t if (distance > partialFitness) {\r\n\t partialFitness = distance;\r\n\t }\r\n\t }\r\n }\r\n\r\n fitness = (double)partialFitness/100.0;\r\n return new Double(fitness);\r\n \r\n\r\n }",
"@Override\r\n\t\tvoid calculate() {\r\n\t\t\tnum3=num1+num2;\r\n\t\t\t\r\n\t\t}",
"public abstract double totalWeight();",
"double calculatePrice();",
"@Override\n public int accion() {\n return this.alcance*2/3*3;\n }",
"protected double evaluate(IChromosome chromosome) {\n\t double score = 0;\n\t \t \n\t List dups = new ArrayList();\n\t int badSolution = 1;\n\n\t for (int i = 0; i < chromosome.size(); i++) {\n\n\t //IntegerGene agene = (IntegerGene) chromosome.getGene(i);\n\t //System.out.println(agene);\n\t int index = (Integer) chromosome.getGene(i).getAllele();\n\t \n\t if (dups.contains(index)) {\n\t badSolution = 0;\n\t } else {\n\t dups.add(index);\n\t }\n\n\t Equipo equipo = (Equipo) equipos.get(index);\n\t double genreScore = getGenreScore(equipo);\n\t if (genreScore == 0) {\n\t badSolution = 0;\n\t }\n\t score = (score+genreScore);\n\n\t }\n\t \n\t return (score * badSolution);\n\t }",
"@Override\r\n\tpublic void compute() {\n\t\t\r\n\t}",
"public double calculateArea(){\r\n\t\treturn this.getSide()*this.getSide();\r\n}",
"@Override\n public double evaluate() throws Exception {\n return getExpression1().evaluate() - getExpression2().evaluate();\n }",
"public float calculate(Ticket t) {\n\t}",
"public double evaluate(){\n trialsSoFar++;\n double tot = 0;\n int ix = 0;\n while (ix < genome.getGenome().size()) {\n // directly access the current value field of each bandit\n boolean block = true;\n for (int j=0; j<blockSize; j++) {\n if (genome.getGenome().get(ix).getX() != 1)\n block = false;\n ix++;\n }\n if (block) {\n tot += blockSize;\n }\n }\n return tot;\n }",
"abstract void calculate(double a);",
"@Override\n\tpublic void calculating() {\n\t\tresult=leftVal-rightVal;\n\t\t\n\t}",
"public Matrix calculate();",
"public static void compute() {\n\n }",
"public double prom () {\n return this.sum()/this.size();\n }",
"double getTotalCost();",
"public double[] calcSolution() {\n\t\t\n\t// Call CostFunction object\n\t\tcostFunction.function(position);\n\t\t\n\t\treturn solution;\n\t\t\n\t}",
"@Override\n\tprotected double evaluate(final IChromosome a_subject) {\n\n\t\tdouble s = 0;\n\n\t\t// Get the genes represented by the chromosome\n\t\tGene[] genes = a_subject.getGenes();\n\n\t\t// Iterate through each of those genes\n\t\tfor (int i = 0; i < genes.length - 1; i++) {\n\n\t\t\t// Add all of the edge distances in the chromosome\n\t\t\ts += m_salesman.distance(genes[i], genes[i + 1]);\n\t\t}\n\n\t\t// add cost of coming back:\n\t\ts += m_salesman.distance(genes[genes.length - 1], genes[0]);\n\t\treturn s;\n\t}",
"@Override\n public void computeSatisfaction() {\n\n }",
"@Override\n\tdouble evaluate() {\n\t\treturn Math.abs(operand.getVal());\n\t}",
"private double getSol(){\n return this.sol;\n }",
"private void equate()\n\t{\n\t\t\tif(Fun == Function.ADD)\n\t\t\t{\t\t\t\n\t\t\t\tresult = calc.sum ( );\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end ADD condition\n\t\t\t\n\t\t\telse if(Fun == Function.SUBTRACT)\n\t\t\t{\n\t\t\t\tresult = calc.subtract ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end SUBTRACT condition\n\t\t\t\n\t\t\telse if (Fun == Function.MULTIPLY)\n\t\t\t{\n\t\t\t\tresult = calc.multiply ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end MULTIPLY condition\n\t\t\t\n\t\t\telse if (Fun == Function.DIVIDE)\n\t\t\t{\n\t\t\t\tresult = calc.divide ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}\n\t\t\t\t\n\t}",
"protected abstract String answer();",
"public double getResult(){\n double x;\n x= (3+Math.sqrt(9-4*3*(1-numberOfStrands)))/(2*3);\n if(x<0){\n x= (3-Math.sqrt(9-(4*3*(1-numberOfStrands))))/6;\n\n }\n numberOfLayers=(float) x;\n diameter=((2*numberOfLayers)-1)*strandDiameter;\n phaseSpacing=(float)(Math.cbrt(ab*bc*ca));\n\n netRadius=diameter/2;\n\n\n\n //SGMD calculation\n float prod=1;\n for(int rand=0;rand<spacingSub.size();rand++){\n prod*=spacingSub.get(rand);\n }\n\n //SGMD calculation\n sgmd=Math.pow((Math.pow(netRadius,subconductors)*prod*prod),1/(subconductors*subconductors));\n capacitance=((8.854e-12*2*3.14)/Math.log(phaseSpacing/sgmd));\n Log.d(\"How\",\"phase spacing:\"+phaseSpacing+\" sgmd=\"+sgmd);\n return capacitance*1000;\n\n\n }",
"@Override\n protected SearchResponse compute() {\n if (this.searchRoot.children == null || this.searchRoot.children.isEmpty()) {\n return new SearchResponse(searchRoot.weight, null);\n }\n\n // Search child nodes recursively\n List<UnbalancedNodeSearcher> subtasks = new ArrayList<>(searchRoot.children.size());\n for (Node n : searchRoot.children) {\n UnbalancedNodeSearcher subtask = new UnbalancedNodeSearcher(n);\n subtasks.add(subtask);\n subtask.fork();\n }\n\n // Use a map to vote for the \"wrong\"(i.e. minority) disc weight\n Map<Long, AtomicLong> totalWeight = new HashMap<>();\n\n // To find out who reported the \"wrong\" weight\n Map<Long, Node> resultNodeMap = new HashMap<>();\n for (UnbalancedNodeSearcher searcher : subtasks) {\n SearchResponse response = searcher.join();\n\n // The search is over\n if (response.foundResult != null) {\n return response;\n }\n\n resultNodeMap.put(response.subSum, searcher.searchRoot);\n\n totalWeight.computeIfAbsent(response.subSum, (i) -> new AtomicLong(0L)).incrementAndGet();\n }\n\n if (totalWeight.size() == 1) {\n // Since there's only one\n long subtotal = totalWeight.keySet().iterator().next();\n long total = subtotal * subtasks.size() + searchRoot.weight;\n\n return new SearchResponse(total, null);\n } else if (totalWeight.size() == 2) {\n long correctWeight = -1;\n long wrongWeight = -1;\n for (Map.Entry<Long, AtomicLong> entry : totalWeight.entrySet()) {\n if (entry.getValue().get() != 1L) {\n correctWeight = entry.getKey();\n } else {\n wrongWeight = entry.getKey();\n }\n }\n\n return new SearchResponse(null, resultNodeMap.get(wrongWeight).weight - (wrongWeight - correctWeight));\n } else {\n throw new RuntimeException(\"More than one incorrect nodes\");\n }\n }",
"@Test\n public void shouldEvaluateWorkProperlyCase2() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.25*0.75 + 0.25*0.5 + 0.25*0.25, result, 0.0001) ;\n }",
"private void calculate() {\n\t\tif (!parseText()) {\n\t\t\t// TODO : error handling\n\t\t}\n\t\tswitch(operator) {\n\t\t\tcase 0: // addition\n\t\t\t\tans = num1 + num2;\n\t\t\t\tbreak;\n\t\t\tcase 1: // subtraction\n\t\t\t\tans = num1 - num2;\n\t\t\t\tbreak;\n\t\t\tcase 2: // multiplication\n\t\t\t\tans = num1 * num2;\n\t\t\t\tbreak;\n\t\t\tcase 3: // division\n\t\t\t\tif (num2 != 0)\n\t\t\t\t\tans = num1 / num2;\n\t\t\t\telse\n\t\t\t\t\tans = 0;\n\t\t\t\tbreak;\n\t\t\tcase 4: // MOD\n\t\t\t\tans = (int)num1%(int)num2;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t\tdisplayText.setText(String.valueOf(ans));\n\t\toperator = -1;\n\t\tans = 0;\n\t\tnum1 = 0;\n\t\tnum2 = 0;\n\t}",
"public double calcular(){\n double calculo = 1;\n\n for(INodo descendiente : getDescendientes()) {\n calculo *= descendiente.calcular();\n }\n\n return calculo;\n }",
"double getTotal();",
"int score();",
"int score();",
"public abstract boolean[] calculate();",
"public double evaluate(Context context);",
"public Double getTotal();",
"public abstract Self epsilon();",
"public abstract double evaluate(double value);",
"@Override\n public double makePrediction(ParsedText text) {\n double pr = 0.0;\n\n /* FILL IN HERE */\n double productSpam = 0;\n double productNoSpam = 0;\n \n int i, tempSpam,tempNoSpam;\n int minSpam, minNoSpam ;\n \n \n for (String ng: text.ngrams) {\n \tminSpam = Integer.MAX_VALUE;\n \tminNoSpam = Integer.MAX_VALUE;\n \n\n \tfor (int h = 0;h < nbOfHashes; h++) {\n \t\ti = hash(ng,h);\n\n \t\ttempSpam = counts[1][h][i];\n \t\ttempNoSpam = counts[0][h][i];\n \t\t\n \t\t//System.out.print(tempSpam + \" \");\n\n \t\tminSpam = minSpam<tempSpam?minSpam:tempSpam; \n \t\tminNoSpam = minNoSpam<tempNoSpam?minNoSpam:tempNoSpam; \n \t\t\n \t}\n\n \t//System.out.println(minSpam + \"\\n\");\n \tproductSpam += Math.log(minSpam);\n \tproductNoSpam += Math.log(minNoSpam);\n }\n \n // size of set minus 1\n int lm1 = text.ngrams.size() - 1;\n \n //System.out.println((productNoSpam - productSpam ));\n //System.out.println((lm1*Math.log(this.classCounts[1]) - lm1*Math.log(this.classCounts[0])));\n\n //\n pr = 1 + Math.exp(productNoSpam - productSpam + lm1*(Math.log(classCounts[1]) - Math.log(classCounts[0])));\n // System.out.print(1.0/pr + \"\\n\");\n \n return 1.0 / pr;\n\n }",
"abstract public Number getResult (final Number pe, final Number pd, final Number t) throws CGException ;",
"@Override\n public double evaluate() throws Exception {\n return Math.log(getEx2().evaluate()) / Math.log(getEx2().evaluate());\n }"
] |
[
"0.75582165",
"0.7169709",
"0.70561886",
"0.70196915",
"0.70018667",
"0.695924",
"0.69411105",
"0.68533105",
"0.6838927",
"0.67403877",
"0.668928",
"0.667351",
"0.6672507",
"0.6647723",
"0.6609153",
"0.65725076",
"0.6568225",
"0.6548795",
"0.6532739",
"0.6528541",
"0.6500649",
"0.6500649",
"0.64990085",
"0.6498127",
"0.647691",
"0.6466949",
"0.64643306",
"0.6418832",
"0.63948226",
"0.63893884",
"0.6377064",
"0.63709927",
"0.6370664",
"0.6370006",
"0.6369454",
"0.6362999",
"0.63600504",
"0.63558006",
"0.635221",
"0.63463324",
"0.63141704",
"0.63059384",
"0.62800163",
"0.62707686",
"0.6253505",
"0.62388015",
"0.6234328",
"0.6227467",
"0.6223988",
"0.6208523",
"0.62035507",
"0.6163893",
"0.6159813",
"0.6156979",
"0.61248964",
"0.6120266",
"0.6116593",
"0.6113597",
"0.6106789",
"0.6098317",
"0.6080009",
"0.60760194",
"0.6067273",
"0.60559314",
"0.60494316",
"0.60467875",
"0.6042156",
"0.6040289",
"0.6037237",
"0.60349894",
"0.6034514",
"0.603067",
"0.60280955",
"0.6021875",
"0.6019465",
"0.60176164",
"0.60175693",
"0.60132676",
"0.60083985",
"0.60080355",
"0.5999567",
"0.5996601",
"0.59926057",
"0.5986618",
"0.5979204",
"0.59756863",
"0.59699464",
"0.59642917",
"0.59593886",
"0.5958265",
"0.59566605",
"0.59566605",
"0.59563947",
"0.5947179",
"0.59447044",
"0.5941672",
"0.5936862",
"0.59327966",
"0.59323174",
"0.59310704"
] |
0.6743906
|
9
|
adds an operator and the value preceding it to the array
|
protected void operation(String operator){
if (this.tail<2){
this.arr[tail++] = this.value;
this.arr[tail++] = operator;
} else{
if (this.peek() != ")"){
this.arr[this.tail++] = this.value;
}
this.arr[this.tail++] = operator;
}
this.value=""; // reset tracking variables
this.decimalUsed = false;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void appendOperator(String operator){\n if(validateExp(currentExp)){\n currentExp+=operator;\n calculationResult.onExpressionChange(currentExp,true);\n count++;\n }\n }",
"public void addOperator(Operator op) {\r\n\t\telements.add(op);\r\n\t}",
"private void processOperator() {\r\n\t\tif (expression[currentIndex] == '*') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\t\t} else if (expression[currentIndex] == '+') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\t\t} else if (expression[currentIndex] == '!') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\t\t\t// xor operator has 2 characters more than any other operator.\r\n\t\t\tcurrentIndex += 2;\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}",
"public void addOperator(String operator) {\n this.operators.add(operator);\n }",
"@Override\n\tprotected void addRequestedOperators() {\n\t}",
"public void addOperator(Operator operator){\n _operators.add(operator);\n }",
"public void addop() {\n if (lexer.token != Symbol.PLUS && lexer.token != Symbol.MINUS) {\n error.signal(\"Wrong operator for addop. Using not a plus or not a minus.\");\n }\n lexer.nextToken();\n }",
"public void addAtTop(String operator) {\n\t\tslist.addFirst(operator);\n\n\t}",
"private Token getNextOperator() {\n char currChar = this.data[currentIndex];\n\n if (currChar == '+' || currChar == '-' || currChar == '*' || currChar == '/' || currChar == '^') {\n currentIndex++;\n return new Token(TokenType.OPERATOR, currChar);\n } else {\n throw new LexerException(\"Invalid character in tags\");\n }\n }",
"java.lang.String getOperator();",
"public void add(String operand, Integer value) throws Exception {\n if (operand.equals(\"=\")){\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal + value);\n }else if (operand.equals(\" \")){\n Integer regVal = dataMemory.getData(value);\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal + regVal);\n }else if (operand.equals(\"*\")){\n Integer newDirection = dataMemory.getData(value);\n Integer regVal = dataMemory.getData(newDirection);\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal + regVal);\n }else{\n throw new IllegalArgumentException(\"No valid operand\");\n }\n }",
"public String operator( String op);",
"private void addOp(final Op op) {\n result.add(op);\n }",
"String getOperator();",
"@Override\r\n public void push (T operando){\r\n miLista.add(operando);\r\n posicion++;\r\n }",
"public void arrayadd(char x){\n\t\tint i=loc%(patm);\n\t\tpatarray[i]=x;\n\t}",
"private void setOperatorToken() {\n\t\t\n\t\tif (currentIndex + 1 >= data.length)\n\t\t\tthrow new QueryLexerException(\"Invalid input. After operator must come text\");\n\t\t\n\t\tif (isOperator(data[currentIndex + 1])) {\n\t\t\t// two symbol operator\n\t\t\t\tif(data[currentIndex + 1] != '=') \n\t\t\t\t\tthrow new QueryLexerException(\"Invalid operator.\");\n\t\t\t\t\n\t\t\t\tif(data[currentIndex] == '=')\n\t\t\t\t\tthrow new QueryLexerException(\"Invalid operator.\");\n\t\t\t\t\n\t\t\t\tString operator = new String(data, currentIndex, 2);\n\t\t\t\ttoken = new Token(TokenType.OPERATOR, operator);\n\t\t\t\tcurrentIndex += 2;\n\t\t} else {\n\t\t\t// just one symbol operator\n\t\t\tif (data[currentIndex] == '!')\n\t\t\t\tthrow new QueryLexerException(\"Invalid operator.\");\n\t\t\t\n\t\t\ttoken = new Token(TokenType.OPERATOR, String.valueOf(data[currentIndex]));\n\t\t\tcurrentIndex++;\n\t\t}\n\t}",
"public String operator() {\n return this.operator;\n }",
"private static String[] calculateAdditionOrSubtraction(String[] formulaArray, Integer operatorPosition) throws Exception {\n int arrayLength = formulaArray.length;\n String[] arrayAfterCalculations= new String[formulaArray.length-2];\n\n // Same array until the number before the operator.\n for (int i = 0; i < operatorPosition - 1; i++) {\n arrayAfterCalculations[i] = formulaArray[i];\n }\n if(formulaArray[operatorPosition].equals(\"+\")) {\n arrayAfterCalculations[operatorPosition - 1] = add(formulaArray[operatorPosition-1],formulaArray[operatorPosition+1]);\n }else if(formulaArray[operatorPosition].equals(\"-\")) {\n arrayAfterCalculations[operatorPosition - 1] = subtract(formulaArray[operatorPosition-1],formulaArray[operatorPosition+1]);\n }else{\n throw new Exception(\"Unknown Operation Exception\");\n }\n // the rest of the array\n for (int i = operatorPosition+2; i < formulaArray.length; i++) {\n arrayAfterCalculations[i-2]= formulaArray[i];\n }\n return arrayAfterCalculations;\n }",
"public void setOperator(String incomingOperator)\r\n {\r\n \r\n operator = incomingOperator;\r\n \r\n }",
"public void enfoncerPlus() {\n\t\ttry {\n\t\t\tthis.op = new Plus();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}",
"@Override\n public Expression asExpression(TokenValue<?> token, Deque<Value<Expression>> next) {\n Additive op = token.getValue(); // + | -\n // + is always followed by an argument\n Expression arg = next.pollFirst().getTarget(); // b argument\n Term<Additive> term = new Term<>(op, arg);\n return term;\n }",
"public void setOperator(String operator) {\n this.operator = operator;\n }",
"public void visit(Operator operator);",
"public String getOperator()\r\n {\r\n return operator;\r\n }",
"public SymbolicElement<T> getAddition();",
"private void jetBinopExprStr(){\n\t\tBinopExpr binopExpr = (BinopExpr) rExpr;\n\t\tValue op1 = binopExpr.getOp1();\n\t\tValue op2 = binopExpr.getOp2();\n\t\tZ3Type op1Z3Type = Z3MiscFunctions.v().z3Type(op1.getType());\n\t\tZ3Type op2Z3Type = Z3MiscFunctions.v().z3Type(op2.getType());\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tBinopExprType binopType = Z3MiscFunctions.v().getBinopExprType(binopExpr);\n\t\tswitch(binopType){\n\t\t//[start]ADD\n\t\tcase ADD:\n\t\t\t//add_expr = immediate \"+\" immediate;\n\t\t\t//immediate = constant | local;\n\t\t\t//only Int, Real, String can ADD\n\t\t\t//Exceptional Cases: \"084\" + 42; we exclude them\n\t\t\tassert((op1Z3Type == Z3Type.Z3String && op2Z3Type == Z3Type.Z3String) ||\n\t\t\t\t\t(op1Z3Type != Z3Type.Z3String && op2Z3Type != Z3Type.Z3String));\n\t\t\tif(op1Z3Type == Z3Type.Z3String ){\n\t\t\t\t//( Concat \"te\" y1 )\n\t\t\t\tsb.append(\"( Concat \");\n\t\t\t}else{\n\t\t\t\t//(+ 2 i2)\n\t\t\t\tsb.append(\"(+ \");\n\t\t\t}\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\" )\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end]ADD\n\t\tcase AND:\n\t\t\t//and_expr = immediate \"&\" immediate;\n\t\t\t//TODO\n\t\t\t//assert(false) : \"AND Expr\";\n\t\t\tbreak;\n\t\t//[start] DIV\n\t\tcase DIV:\n\t\t\t//div_expr = immediate \"/\" immediate;\n\t\t\t//(div a b) integer division\n\t\t\t//(/ a b) float division\n\t\t\tif(op1Z3Type == Z3Type.Z3Real || op2Z3Type == Z3Type.Z3Real){\n\t\t\t\tsb.append(\"(/ \");\n\t\t\t}else{\n\t\t\t\tsb.append(\"(div \");\n\t\t\t}\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] DIV\n\t\t//[start] EQ\n\t\tcase EQ:\n\t\t\t//eq_expr = immediate \"==\" immediate;\n\t\t\t//b = r1 == r2\n\t\t\t//(assert (= b (= r1 r2)))\n\t\t\tsb.append(\"(= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] EQ\n\t\t//[start] GE\n\t\tcase GE:\n\t\t\t//ge_expr = immediate \">=\" immediate;\n\t\t\t//b = r1 >= r2\n\t\t\t//(assert (= b (>= r1 r2)))\n\t\t\tsb.append(\"(>= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] GE\n\t\t//[start] GT\n\t\tcase GT:\n\t\t\t//gt_expr = immediate \">\" immediate;\n\t\t\t//b = r1 > r2\n\t\t\t//(assert (= b (> r1 r2)))\n\t\t\tsb.append(\"(> \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] GT\n\t\t//[start] LE\n\t\tcase LE:\n\t\t\t//le_expr = immediate \"<=\" immediate;\n\t\t\t//b = r1 <= r2\n\t\t\t//(assert (= b (<= r1 r2)))\n\t\t\tsb.append(\"(<= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] LE\n\t\t//[start] LT\n\t\tcase LT:\n\t\t\t//lt_expr = immediate \"<\" immediate;\n\t\t\t//b = r1 < r2\n\t\t\t//(assert (= b (< r1 r2)))\n\t\t\tsb.append(\"(< \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] LT\n\t\t//[start] MUL\n\t\tcase MUL:\n\t\t\t//mul_expr = immediate \"*\" immediate;\n\t\t\t//(* op1 op2)\n\t\t\tsb.append(\"(* \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] MUL\n\t\t//[start] NE\n\t\tcase NE:\n\t\t\t//ne_expr = immediate \"!=\" immediate;\n\t\t\t//(not (= op1 op2))\n\t\t\tsb.append(\"(not (= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\"))\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] NE\n\t\tcase OR:\n\t\t\t//or_expr = immediate \"|\" immediate;\n\t\t\t//TODO\n\t\t\tassert(false) : \"OR Expr\";\n\t\t\tbreak;\n\t\t//[start] REM\n\t\tcase REM:\n\t\t\t//rem_expr = immediate \"%\" immediate;\n\t\t\t//(rem op1 op2)\n\t\t\tsb.append(\"(rem \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] REM\n\t\t//[start] SUB\n\t\tcase SUB:\n\t\t\t//sub_expr = immediate \"-\" immediate;\n\t\t\t//(- op1 op2)\n\t\t\tsb.append(\"(- \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] SUB\n\t\t}\n\t}",
"com.google.protobuf.ByteString getOperatorBytes();",
"public String getOperator() {\n return operator;\n }",
"public List<Character> getOperator() {\r\n\t\treturn operator;\r\n\t}",
"public GraphNode addOperation(String op){\n\t\tGraphNode opVar = new GraphNode(addElement(op, 3), 3);\n\t\tauthGraph.addVertex(opVar);\n\t\treturn opVar;\n\t}",
"public void setOperator(java.lang.Integer newValue) {\n\tthis.operator = newValue;\n}",
"Unary operator(Operator o);",
"boolean hasOperator();",
"public void setArithmeticOperator(String value) {\n setAttributeInternal(ARITHMETICOPERATOR, value);\n }",
"public void splitExpression(String expression, String op) {\n operator = new arithmetic_op(op);\n expression = expression.trim();\n int index = expression.indexOf(op);\n left = new arithmetic_ex((expression.substring(0, index)).trim());\n right = new arithmetic_ex((expression.substring(index + 1)).trim());\n }",
"public void append(final EnumOperator operator) {\r\n if (this.isPreconditionsNotEmpty()) {\r\n this.preconditions.add(operator.getMessageAssertor());\r\n } else if (this.isMessagesNotEmpty()) {\r\n this.messages.add(operator.getMessageAssertor());\r\n } else {\r\n throw new UnsupportedOperationException(\"An operator can only be applied on a previous error\");\r\n }\r\n }",
"public static void plus1(int[]arr)\r\n\t{\r\n\t\tint i=arr.length-1;\r\n\t\twhile(i>=0&&arr[i]==1)\r\n\t\t\tarr[i--]=0;\r\n\t\tif(i>=0)\r\n\t\t\tarr[i]=1;\r\n\t}",
"public void setOperator(int opr) {\n this.operator = opr;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"private static int getPrecedence(char operator)\r\n\t{\r\n\t\tswitch (operator)\r\n\t\t{\r\n\t\tcase '(': case ')': return 0;\r\n\t\tcase '+': case '-': return 1;\r\n\t\tcase '*': case '/': return 2;\r\n\t\tcase '^':\t\t\treturn 3;\r\n\t\tcase '.': return 4;\r\n\t\t} // end switch\r\n\r\n\t\treturn -1;\r\n\t\t\r\n\t}",
"public void addOperatorWithName(Operator op, String name) {\n \toperators.put(name, op);\n }",
"public Operator operator() {\n\treturn this.op;\n }",
"Expression addExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = multExpression();\r\n\t\twhile(isKind(OP_PLUS, OP_MINUS)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = multExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}",
"@Override\n\tpublic Object visit(ASTArithmetic node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}",
"private Expr unaryPre(Position pos, X10Unary_c.Operator op, Expr e) throws SemanticException {\n Type ret = e.type();\n Expr one = getLiteral(pos, ret, 1);\n Assign.Operator asgn = (op == X10Unary_c.PRE_INC) ? Assign.ADD_ASSIGN : Assign.SUB_ASSIGN;\n Expr a = assign(pos, e, asgn, one);\n a = visitAssign((Assign) a);\n return a;\n }",
"public ArrayAccessExpression(Token operator, Expression expr, Expression index, Token tokLast)\n {\n super(operator, expr);\n\n setStartToken(expr.getStartToken());\n setEndToken(tokLast);\n\n this.index = index;\n }",
"public final SymbolNode getOperator() { return this.operator; }",
"public Operator getOperator() {\n return this.operator;\n }",
"static String arithmeticExpressions(int[] arr) {\n String result = \"\";\n String[] operation = {\"+\", \"-\", \"*\"};\n boolean done = false;\n Map<Integer, String> outputToExpression = new HashMap<>();\n outputToExpression.put(arr[0], String.valueOf(arr[0]));\n for(int i = 1; i < arr.length; i++) {\n Map<Integer, String> tempOutputToExpression = new HashMap<>();\n int currentInteger = arr[i];\n final Set<Map.Entry<Integer, String>> entry2 = outputToExpression.entrySet();\n for(int entry : outputToExpression.keySet()) {\n for(int k = 0; k < operation.length; k++) {\n int tempOutput = entry;\n if(operation[k].equals(\"+\")) {\n tempOutput = tempOutput + currentInteger;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"+\" + currentInteger);\n }\n if(operation[k].equals(\"-\")) {\n tempOutput = tempOutput - currentInteger;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"-\" + currentInteger);\n }\n if(operation[k].equals(\"*\")) {\n tempOutput = (tempOutput * currentInteger) % 101;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"*\" + currentInteger);\n }\n if(tempOutput % 101 == 0) {\n result = tempOutputToExpression.get(tempOutput);\n for(int j = i + 1; j < arr.length; j++) {\n result += \"*\" + arr[j];\n }\n done = true;\n }\n if(done) break;\n }\n if(done) break;\n }\n if(done) break;\n outputToExpression = tempOutputToExpression;\n }\n\n\n return result;\n }",
"@Override\n\tpublic void VisitUnaryNode(UnaryOperatorNode Node) {\n\n\t}",
"OfPrimitiveArray(Object value, int operand) {\n this.value = value;\n this.operand = operand;\n }",
"public String getOperator() {\n\t\treturn operator;\n\t}",
"public String getOperator() {\n\t\treturn operator;\n\t}",
"public void updateOperations() {\n String temp = \"\";\n \n if (chkBoxOperators[0].isSelected()) temp += PLUS;\n if (chkBoxOperators[1].isSelected()) temp += MINUS;\n if (chkBoxOperators[2].isSelected()) temp += TIMES;\n if (chkBoxOperators[3].isSelected()) temp += DIVIDE;\n \n charOperators = temp.toCharArray();\n if (temp.indexOf(currentOperator) == -1) setNewNumbers();\n \n }",
"public void put(Operator operator) {\n\t\tput(new Str(operator.getOperatorName()), operator);\n\t}",
"public int operation(int number1,int number2,String operator)",
"private boolean isSymbolOperatorAhead() {\r\n\t\treturn expression[currentIndex] == '*' || expression[currentIndex] == '+' || expression[currentIndex] == '!'\r\n\t\t\t\t|| (currentIndex + 2 < expression.length && expression[currentIndex] == ':'\r\n\t\t\t\t\t\t&& expression[currentIndex + 1] == '+' && expression[currentIndex + 2] == ':');\r\n\t}",
"@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 }",
"@Override\n public Expression[] accumulateExpressions() {\n if (arguments == 0 || countLiteral) {\n return new Expression[] {/* count = */ plus(count, literal(1L))};\n }\n\n // other case need to determine the value of the element\n List<Expression> operandExpressions = new ArrayList<>();\n for (int i = 0; i < arguments; i++) {\n operandExpressions.add(operand(i));\n }\n Expression operandExpression =\n operandExpressions.stream()\n .map(ExpressionBuilder::isNull)\n .reduce(ExpressionBuilder::or)\n .get();\n return new Expression[] {\n /* count = */ ifThenElse(operandExpression, count, plus(count, literal(1L)))\n };\n }",
"private void registerTypeAppendOp(final SqlOperator op)\n {\n registerOp(\n op,\n new RexSqlConvertlet() {\n public SqlNode convertCall(\n RexToSqlNodeConverter converter,\n RexCall call)\n {\n SqlNode [] operands =\n convertExpressionList(converter, call.operands);\n if (operands == null) {\n return null;\n }\n List<SqlNode> operandList =\n new ArrayList<SqlNode>(Arrays.asList(operands));\n SqlDataTypeSpec typeSpec =\n SqlTypeUtil.convertTypeToSpec(call.getType());\n operandList.add(typeSpec);\n return new SqlCall(\n op,\n operandList.toArray(new SqlNode[0]),\n SqlParserPos.ZERO);\n }\n });\n }",
"public Code visitOperatorNode(ExpNode.OperatorNode node) {\n beginGen(\"Operator\");\n Code code;\n ExpNode args = node.getArg();\n switch (node.getOp()) {\n case ADD_OP:\n code = args.genCode(this);\n code.generateOp(Operation.ADD);\n break;\n case SUB_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n code.generateOp(Operation.ADD);\n break;\n case MUL_OP:\n code = args.genCode(this);\n code.generateOp(Operation.MPY);\n break;\n case DIV_OP:\n code = args.genCode(this);\n code.generateOp(Operation.DIV);\n break;\n case EQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n break;\n case LESS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESS);\n break;\n case NEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n code.genBoolNot();\n break;\n case LEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESSEQ);\n break;\n case GREATER_OP:\n /* Generate argument values in reverse order and use LESS */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESS);\n break;\n case GEQUALS_OP:\n /* Generate argument values in reverse order and use LESSEQ */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESSEQ);\n break;\n case NEG_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n break;\n default:\n errors.fatal(\"PL0 Internal error: Unknown operator\",\n node.getLocation());\n code = null;\n }\n endGen(\"Operator\");\n return code;\n }",
"@Override\r\n public DSCP opBrackets() {\r\n /*put codegen here.*/\r\n return elementType.pushStack();\r\n }",
"private void operator() {\n reduce();\n shift();\n getDispenser().advance();\n if(getDispenser().tokenIsNumber()) setState(State.NUMBER);\n else if (getDispenser().tokenIsLeftParen()) setState(State.LEFT_PAREN);\n else syntaxError(NUM);\n \n }",
"public java.lang.Integer getOperator() {\n\treturn operator;\n}",
"@JsonProperty(\"operator\")\n public void setOperator(String operator) {\n this.operator = operator;\n }",
"private StringBuilder getOperand() {\r\n\t\tif (\"\".equals(operator)) {\r\n\t\t\treturn firstNumber;\r\n\t\t} else {\r\n\t\t\treturn secondNumber;\r\n\t\t}\r\n\t}",
"public void addBeforeOperation(Operation op){\n if (op == null){\n throw new IllegalArgumentException(\"op is null\");\n }\n if (op instanceof MultiFieldOperation){\n throw new IllegalArgumentException(\n \"You cannot specify a MultiFieldOperation as a 'before' operation\");\n }\n\n if (before == null){\n before = new ArrayList<>();\n }\n this.before.add(op);\n }",
"public int getPrecedence(char operator) {\n switch (operator) {\n case '+':\n case '-':\n return 1;\n case '*':\n case '/':\n return 2;\n case '^':\n return 3;\n }\n\n return -1;\n }",
"public interface BinaryOperatorCriteriaExpression<T> extends CriteriaExpression<T> {\n\t/**\n\t * Get the right-hand operand.\n\t *\n\t * @return The right-hand operand.\n\t */\n\tCriteriaExpression<?> getRightHandOperand();\n\n\t/**\n\t * Get the left-hand operand.\n\t *\n\t * @return The left-hand operand.\n\t */\n\tCriteriaExpression<?> getLeftHandOperand();\n}",
"public Binary operator(Operator op) {\n\tBinary_c n = (Binary_c) copy();\n\tn.op = op;\n\treturn n;\n }",
"public String toString() {\n return operator + \"(\" + argument + \")\";\n }",
"private static boolean isOperator(String value){\r\n\t\tif (value.equals(\"+\") ||value.equals(\"-\")|| value.equals(\"*\")|| value.equals(\"/\"))\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}",
"private static String[] calculateAllAdditionsAndSubtractions(String[] formulaArray){\n Integer operatorPosition = getAdditionOrSubtractionPosition(formulaArray);\n while(operatorPosition!=-1){\n try {\n formulaArray = calculateAdditionOrSubtraction(formulaArray, operatorPosition);\n }catch(Exception e){\n System.err.println(e);\n }\n operatorPosition= getAdditionOrSubtractionPosition(formulaArray);\n }\n return formulaArray;\n\n }",
"public final EObject ruleAdditionOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4767:28: ( ( () otherlv_1= '+' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4768:1: ( () otherlv_1= '+' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4768:1: ( () otherlv_1= '+' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4768:2: () otherlv_1= '+'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4768:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4769:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getAdditionOperatorAccess().getAdditionOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,64,FOLLOW_64_in_ruleAdditionOperator10657); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getAdditionOperatorAccess().getPlusSignKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"@Override\n\tpublic void VisitBinaryNode(BinaryOperatorNode Node) {\n\n\t}",
"public Addition(int precedence){\n super(\"+\", precedence);\n }",
"Operator operator();",
"public boolean isOperator(){\n return true;\n }",
"public final Operator operator() {\n return operator;\n }",
"private void addOp(Scanner input) {\n\t\tprogramStack.add(\"add\");\n\t\tString firstToken = input.next();\n\t\tif(firstToken.equalsIgnoreCase(\"add\"))\n\t\t\taddOp(input);\n\t\telse\n\t\t\tprogramStack.push(firstToken);\n\n\t\tString secondToken = input.next();\n\t\tif(secondToken.equalsIgnoreCase(\"add\"))\n\t\t\taddOp(input);\n\t\telse\n\t\t\tprogramStack.push(secondToken);\n\n\t\tint val2;\n\t\tif (isVariable(programStack.peek()))\n\t\t\tval2 = getRAMValue(programStack.pop());\n\t\telse\n\t\t\tval2 = Integer.parseInt(programStack.pop());\n\n\t\tint val1;\n\t\tif (isVariable(programStack.peek()))\n\t\t\tval1 = getRAMValue(programStack.pop());\n\t\telse\n\t\t\tval1 = Integer.parseInt(programStack.pop());\n\n\t\tint sum = val1 + val2;\n\n\t\tprogramStack.pop();\n\t\tprogramStack.push(Integer.toString(sum));\n\n\t}",
"public Operator getOperator()\n {\n return operator;\n }",
"public void setOperator(String value) {\r\n\t\tif (!\"\".equals(firstNumber.toString())\r\n\t\t\t\t&& \"\".equals(secondNumber.toString())) {\r\n\t\t\toperator = value;\r\n\t\t}\r\n\t}",
"public static void plusScalar(double[] array, double value)\r\n\t{\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tarray[i] = array[i] + value;\r\n\t}",
"public static BinaryExpression add(Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public void applyOperator(GameOperator operator) {\n this.number=operator.apply(this.number, next.getNumber());\n this.next = next.getNext();\n }",
"private static char getOperator() throws ParseError {\n TextIO.skipBlanks(); // Skip past any blanks in the input.\n\n char op = TextIO.peek();\n\n if ( op == '+' || op == '-' || op == '*' || op == '/' )\n TextIO.getAnyChar(); // Read the operator.\n else\n throw new ParseError( \"Found \" + op + \" instead of an operator.\" );\n\n return op;\n\n }",
"@Override\n\tpublic void visit(Addition arg0) {\n\t\t\n\t}",
"public String getArithmeticOperator() {\n return (String)getAttributeInternal(ARITHMETICOPERATOR);\n }",
"@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }",
"@JsonProperty(\"operator\")\n public String getOperator() {\n return operator;\n }",
"public boolean isOperator() {\n\t\treturn (letter == '+') || (letter == '*') ||\n\t\t\t (letter == '%') || (letter == '-') ? true : false;\n\t}",
"public void addBeforeFirstOperation(Operation op){\n if (op == null){\n throw new IllegalArgumentException(\"op is null\");\n }\n if (op instanceof MultiFieldOperation){\n throw new IllegalArgumentException(\n \"You cannot specify a MultiFieldOperation as a 'beforeFirst' operation\");\n }\n\n if (beforeFirst == null){\n beforeFirst = new ArrayList<>();\n }\n this.beforeFirst.add(op);\n }",
"public Operation zCombinedAnd(Operation op)\r\n {\r\n if (op.equals(this))\r\n {\r\n return this;\r\n }\r\n return null;\r\n }",
"public final void rule__AstExpressionAdditive__OperatorAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2946:1: ( ( '+' ) | ( '-' ) )\n int alt17=2;\n int LA17_0 = input.LA(1);\n\n if ( (LA17_0==28) ) {\n alt17=1;\n }\n else if ( (LA17_0==29) ) {\n alt17=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 17, 0, input);\n\n throw nvae;\n }\n switch (alt17) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2947:1: ( '+' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2947:1: ( '+' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2948:1: '+'\n {\n before(grammarAccess.getAstExpressionAdditiveAccess().getOperatorPlusSignKeyword_1_1_0_0()); \n match(input,28,FOLLOW_28_in_rule__AstExpressionAdditive__OperatorAlternatives_1_1_06365); \n after(grammarAccess.getAstExpressionAdditiveAccess().getOperatorPlusSignKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2955:6: ( '-' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2955:6: ( '-' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2956:1: '-'\n {\n before(grammarAccess.getAstExpressionAdditiveAccess().getOperatorHyphenMinusKeyword_1_1_0_1()); \n match(input,29,FOLLOW_29_in_rule__AstExpressionAdditive__OperatorAlternatives_1_1_06385); \n after(grammarAccess.getAstExpressionAdditiveAccess().getOperatorHyphenMinusKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }"
] |
[
"0.67138284",
"0.6673343",
"0.65556073",
"0.65191066",
"0.63323045",
"0.628534",
"0.6133547",
"0.59196967",
"0.5828757",
"0.5816752",
"0.58059865",
"0.5791508",
"0.5750339",
"0.5725532",
"0.5705889",
"0.56813",
"0.5670184",
"0.5656298",
"0.561137",
"0.5602449",
"0.5556336",
"0.5545676",
"0.553674",
"0.55041015",
"0.5454215",
"0.54514",
"0.5431777",
"0.5399863",
"0.5389021",
"0.5382394",
"0.5376343",
"0.53760356",
"0.53706557",
"0.53463626",
"0.5333917",
"0.53299296",
"0.5329133",
"0.5328666",
"0.53278536",
"0.5320061",
"0.5320061",
"0.5320061",
"0.5320061",
"0.5320061",
"0.5320061",
"0.53014255",
"0.52954143",
"0.5288735",
"0.5282214",
"0.5281213",
"0.52668774",
"0.52667207",
"0.524598",
"0.5242146",
"0.5240383",
"0.523856",
"0.5231196",
"0.5222217",
"0.5222217",
"0.52180743",
"0.5202472",
"0.5187173",
"0.5184591",
"0.5163598",
"0.5141654",
"0.5135822",
"0.51333326",
"0.5131222",
"0.51304364",
"0.5130354",
"0.5125302",
"0.5102274",
"0.5078837",
"0.50767875",
"0.5075744",
"0.50677365",
"0.5066002",
"0.5065182",
"0.505777",
"0.5055852",
"0.50520873",
"0.50520086",
"0.5046804",
"0.5042389",
"0.503798",
"0.50303954",
"0.5025718",
"0.50211346",
"0.5019248",
"0.5017968",
"0.50111717",
"0.50053",
"0.50052255",
"0.5004941",
"0.5004225",
"0.5001619",
"0.49966702",
"0.4988901",
"0.49876255",
"0.49805674"
] |
0.7243665
|
0
|
static methods converts an array from infix to postfix notation
|
protected String[] in2post(String[] a){
String[] result = new String[20];
int resCount = 0;
Stack<String> stack = new Stack<String>();
String s;
for (int i=0 ; i<(tail) ; i++) {
s = a[i];
switch (s) {
case "/":
case "*":
case "-":
case "+":
while (!stack.isEmpty() && Prec(s) <= Prec(stack.peek())) {
result[resCount++] = stack.pop();
}
stack.push(s);
break;
case "(":
stack.push(s);
break;
case ")":
while (!stack.isEmpty() && stack.peek() != "(") {
result[resCount++] = stack.pop();
}
stack.pop(); //pop the open parentheses
break;
default: //by this point assume it is a number
result[resCount++] = s;
}
}
// pop all the operators from the stack
while (!stack.isEmpty()){
result[resCount++] = stack.pop();
}
tail = resCount;
return result;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static String[] infixToPostfix(String[] infix) {\n\n // a list for the resulting postfix expression\n List<String> postfix = new ArrayList<String>();\n\n // a stack for implementing the conversion\n Stack<String> operatorStack = new Stack<String>();\n\n // check the length of the expression\n if (infix.length != 0) {\n \n for (int i = 0; i < infix.length; i++) {\n \n // precedence is null for operands\n Integer precedence = precedenceMap.get(infix[i]);\n\n if (precedence != null) {\n\n // then the current token is an operator\n while (!operatorStack.isEmpty()) {\n String opFromStack = operatorStack.pop();\n if (precedenceMap.get(opFromStack) < precedence) {\n operatorStack.push(opFromStack);\n break;\n } else {\n postfix.add(opFromStack);\n } // if\n } // while\n \n operatorStack.push(infix[i]);\n \n } else { \n // current token is not an operator\n postfix.add(infix[i]);\n } // if\n \n } // for\n \n // add the remaining operators to the postfix expression\n while (!operatorStack.isEmpty()) {\n postfix.add(operatorStack.pop());\n } // while\n \n } // if\n \n return postfix.toArray(new String[postfix.size()]);\n\n }",
"static String infixToRP(String[] str){\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tStack<String> s = new Stack<String>();\n\t\t\t\n\t\t\tfor(int i=0; i<str.length ; i++){\n\t\t\t\tif(str[i] == \"(\"){\n\t\t\t\t\ts.push(\"(\");\n\t\t\t\t}\n\t\t\t\telse if(str[i] == \")\"){\n\t\t\t\t\twhile(!s.isEmpty()){\n\t\t\t\t\t\tString temp = s.pop();\n\t\t\t\t\t\tif(temp == \"(\"){\n\t\t\t\t\t\t\ts.push(\"(\");\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsb.append(temp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(str[i] == \"+\" || str[i] == \"-\"){\n\t\t\t\t\tString top = s.peek();\n\t\t\t\t\tif(top == \"/\" || top == \"*\"||top == \"(\"){\n\t\t\t\t\t\tsb.append(str[i]);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\ts.push(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tString top = s.peek();\n\t\t\t\t\tif(top == \"+\" || top == \"-\"){\n\t\t\t\t\t\ts.push(str[i]);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tsb.append(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}",
"static String infixToPostfix(String infix) {\n final String ops = \"-+/*^\";\n \n StringBuilder sb = new StringBuilder();\n Stack<Integer> s = new Stack<>();\n \n for (String token : infix.split(\"\\\\s\")) {\n if (token.isEmpty())\n continue;\n char c = token.charAt(0);\n int idx = ops.indexOf(c);\n \n // check for operator\n if (idx != -1) {\n if (s.isEmpty())\n s.push(idx);\n \n else {\n while (!s.isEmpty()) {\n int prec2 = s.peek() / 2;\n int prec1 = idx / 2;\n if (prec2 > prec1 || (prec2 == prec1 && c != '^'))\n sb.append(ops.charAt(s.pop())).append(' ');\n else break;\n }\n s.push(idx);\n }\n } \n else if (c == '(') {\n s.push(-2); // -2 stands for '('\n } \n else if (c == ')') {\n // until '(' on stack, pop operators.\n while (s.peek() != -2)\n sb.append(ops.charAt(s.pop())).append(' ');\n s.pop();\n }\n else {\n sb.append(token).append(' ');\n }\n }\n while (!s.isEmpty())\n sb.append(ops.charAt(s.pop())).append(' ');\n return sb.toString();\n }",
"public String convertPostfixToInfix(String postfixstring)\n {\n//implementing stack\n Stack<String> s = new Stack<>();\n//iterates over the postfix expression\n for (int i = 0; i < postfixstring.length(); i++)\n {\n//reading a character at a time\n char ch = postfixstring.charAt(i);\n//inside the if-statement we have called the user-defined function that checks whether the character is operator or not\n if (isOperator(ch))\n {\n String b = s.pop();\n String a = s.pop();\n//push the character (operator) into stack in between the string a and b\n s.push(\"(\" + a + ch + b + \")\");\n }\n else\n//push character into the stack\n s.push(\"\" + ch);\n }\n//pop character from the stack and returns the same\n return s.pop();\n }",
"public static String convertInfixToPostfix(String infixExpression) {\r\n //Initializing final return string\r\n String postfix = \"\";\r\n //String Array of all elements\r\n String[] expElements = infixExpression.split(\" \");\r\n //New String Array for the numbers\r\n String[] operands = new String[infixExpression.length()];\r\n //New expressions for operators\r\n Expressions operators = new Expressions();\r\n //New stack for operators\r\n Stack operatorStack = new Stack();\r\n \r\n //Trackers for parentheses\r\n int openParenthesis = 0;\r\n int closedParenthesis = 0;\r\n \r\n //Iterate through for length of array of all expressions\r\n for(int i = 0; i < expElements.length; i++) {\r\n //If operator than push to stack\r\n if(expElements[i].equals(\"*\")||expElements[i].equals(\"/\")\r\n ||expElements[i].equals(\"+\")||expElements[i].equals(\"-\")) {\r\n operatorStack.push(new Expressions(expElements[i]));\r\n }\r\n //if open parenthesis add to count\r\n else if(expElements[i].equals(\"(\")) {\r\n openParenthesis++;\r\n }\r\n //if closed parenthesis add to count and pop operator\r\n else if(expElements[i].equals(\")\")) {\r\n closedParenthesis++;\r\n postfix += \" \" + operatorStack.pop();\r\n }\r\n //otherwise it is an integer, add it to array of operands\r\n else {\r\n operands[i] = expElements[i];\r\n postfix += \" \" + operands[i];\r\n }\r\n \r\n }\r\n //Error detection for not enough matching parentheses.\r\n if(openParenthesis!=closedParenthesis){\r\n postfix = \"Parenthesis not equal error.\";\r\n }\r\n //return final expression in postfix notation, delimited by spaces\r\n return postfix; \r\n }",
"public String processInfix(char[] input) {\n String result = \"\"; //Initialize the string. This will be the postfix formatted input.\n\n for (int i = 0; i < input.length; i++) {\n\n //If it is a digit it is sent straight to the result\n if (Character.isDigit(input[i])) {\n result += input[i];\n }\n\n //If it is an open bracket it is pushed into the stack.\n else if (input[i] == '(') {\n s.push(input[i]);\n }\n\n //If it is a closed bracket, all items in the stack are popped until an open bracket is found.\n //Both brackets are then discarded\n else if (input[i] == ')') {\n\n while (!s.isEmpty() && (char)s.top() != '(') {\n result += (char)s.pop();\n }\n\n if (!s.isEmpty() && (char)s.top() != '(') {\n System.out.println(\"Invalid Expression. A '(' character must be followed by a ')' in the Expression.\");\n } else {\n s.pop(); //get rid of ( from the eq.\n }\n }\n\n //Else it must be an operand...\n else {\n //loop checks:\n // 1. that the stack is not empty and\n // 2. that the current token is less or equal in priority to the one on the top of the stack\n // If it both are true then the operator is sent to the result\n while(!s.isEmpty() && getPriority(input[i]) <= getPriority((char)s.top())){\n result += (char)s.pop();\n }\n s.push(input[i]);\n }\n }\n\n //Pop the remainder of the stack to the result\n while(!s.isEmpty()){\n result += (char)s.pop();\n }\n\n return result;\n }",
"public void infixToPostFix() {\n for (String str : infixList) {\n if (str.equals(\"(\")) {\n leftParenthesis(str);\n } else if (str.equals(\")\")) {\n rightParenthesis();\n } else if (OperatorOperand.isOperator(str)) {\n operator(str);\n } else {\n operand(str);\n }\n }\n clearTheStack();\n }",
"static String resultRPNtoInfix(String[] s){\n\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tStack<String> st = new Stack<String>();\n\t\t\t\n\t\t\tfor(int i=0; i<s.length; i++){\n\t\t\t\tif(!isSign(s[i])){\n\t\t\t\t\tst.add(s[i]);\n\t\t\t\t}\n\t\t\t\t//if it's a sign then we need to pop from the stack\n\t\t\t\telse{\n\t\t\t\t\tString s1 = st.pop();\n\t\t\t\t\tString s2 = st.pop();\n\t\t\t\t\t\n\t\t\t\t\tif(s[i] == \"*\"){\n\t\t\t\t\t\tsb.append(s1);\n\t\t\t\t\t\tsb.append(\"*\");\n\t\t\t\t\t\tsb.append(s2);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(s[i] == \"+\"){\n\t\t\t\t\t\tsb.append(\"(\");\n\t\t\t\t\t\tsb.append(s1);\n\t\t\t\t\t\tsb.append(\"+\");\n\t\t\t\t\t\tsb.append(s2);\n\t\t\t\t\t\tsb.append(\")\");\n\t\t\t\t\t}\n\t\t\t\t\tif(s[i] == \"-\"){\n\t\t\t\t\t\tsb.append(\"(\");\n\t\t\t\t\t\tsb.append(s2);\n\t\t\t\t\t\tsb.append(\"-\");\n\t\t\t\t\t\tsb.append(s1);\n\t\t\t\t\t\tsb.append(\")\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(s[i] == \"/\"){\n\t\t\t\t\t\tsb.append(s2);\n\t\t\t\t\t\tsb.append(\"/\");\n\t\t\t\t\t\tsb.append(s1);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tst.add(sb.toString());\n\t\t\t\t\tsb = new StringBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn st.pop();\n\t\t}",
"public String transformInfixToPostfix(String input) {\n\n List<String> outputQueue = new LinkedList<>();\n\n Stack<Operation> operationStack = new Stack<>();\n final String[] splitedEquation = input.split(\" \");\n for (String token : splitedEquation) {\n if (isOperator(token)) {\n OperatorParser operatorParser = new OperatorParser(outputQueue, operationStack,\n token).invoke();\n outputQueue = operatorParser.getOutputQueue();\n operationStack = operatorParser.getOperationStack();\n } else {\n outputQueue = addImmutable(outputQueue, token);\n }\n }\n\n outputQueue = addOperationsToOutputQueue(outputQueue, operationStack);\n\n return Stream.of(outputQueue)\n .collect(Collectors.joining(\" \"));\n }",
"public static String convertInfixToPostfix(String infix) throws InvalidNotationFormatException {\n\t\tNotationQueue<String> postfix = new NotationQueue<String>(infix.length());\n\t\tNotationStack<String> eval = new NotationStack<String>(infix.length());\n\t\tchar[] expr = infix.toCharArray();\n\t\tfor (int i = 0; i < expr.length; i++) {\n\t\t\tif (Character.isDigit(expr[i])) {\n\t\t\t\ttry {\n\t\t\t\t\tpostfix.enqueue(String.valueOf(expr[i]));\n\t\t\t\t}catch(QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i] == '(') {\n\t\t\t\ttry {\n\t\t\t\t\teval.push(String.valueOf(expr[i]));\n\t\t\t\t}catch(StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i]=='+'||expr[i]=='-'||expr[i]=='*'||expr[i]=='/') {\n\t\t\t\ttry {\n\t\t\t\t\twhile(!eval.isEmpty() && eval.top().charAt(0)!='(' && prec(expr[i]) <= prec(eval.top().charAt(0))){\n\t\t\t\t\t\tString pop1 = eval.pop();\n\t\t\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t\t\t}\n\t\t\t\t\teval.push(String.valueOf(expr[i]));\n\t\t\t\t}catch (StackUnderflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i]==')') { \n\t\t\t\ttry {\n\t\t\t\t\twhile(!eval.isEmpty() && eval.top().charAt(0)!='(') {\n\t\t\t\t\t\tString pop1 = eval.pop();\n\t\t\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t\t\t}\n\t\t\t\t\tif(eval.size()==0){\n\t\t\t\t\t\tthrow new InvalidNotationFormatException();\n\t\t\t\t\t}else {\n\t\t\t\t\t\teval.pop();\n\t\t\t\t\t}\n\t\t\t\t}catch (StackUnderflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\twhile(!eval.isEmpty()) {\n\t\t\t\tString pop1 = eval.pop();\n\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t}\n\t\t}catch (StackUnderflowException e) {\n\t\t\te.printStackTrace();\n\t\t}catch (QueueOverflowException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn postfix.toString();\n\t}",
"private String infixToPostfixNoPrecedence(String infix) {\n\t\tString postfix = \"\";\n\t\tStack<Character> stack = new Stack<>();\n\n\t\tfor (int i = 0; i < infix.length(); i++) {\n\t\t\tchar currentChar = infix.charAt(i);\n\t\t\tif (currentChar == '+' || currentChar == '*') {\n\t\t\t\tif (stack.isEmpty()) {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else if (stack.peek() == '+' || stack.peek() == '*') {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t}\n\t\t\t} else if (currentChar == '(') {\n\t\t\t\tstack.push(currentChar);\n\t\t\t} else if (currentChar == ')') {\n\n\t\t\t\twhile (stack.peek() != '(') {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t}\n\n\t\t\t\tstack.pop();\n\n\t\t\t} else if (currentChar != ' ') {\n\t\t\t\tpostfix = postfix + currentChar;\n\t\t\t}\n\n\t\t}\n\n\t\twhile (!stack.isEmpty()) {\n\t\t\tpostfix = postfix + stack.pop();\n\t\t}\n\n\t\treturn postfix;\n\t}",
"public static String infixToPostfix(String infix) throws PostFixException{\n\t\t//Create a new stack object to hold operators from infix expression\n\t\tStack<String> operatorStack = new Stack<String>();\n\t\tString postfix = \"\";\n\t\tString curToken = \"\";\n\t\tScanner getToken = new Scanner(infix);\n\t\t//holds the previous token type as a string\n\t\tString previousTokenType = \"first token\";\n\t\t\n\t\t//Iterate over all tokens in expression\n\t\twhile(getToken.hasNext()){\n\t\t\tcurToken = getToken.next();\n\t\t\t\n\t\t\t//if the token is an operand (meaning it is an integer), add to postfix expression\n\t\t\tif(isPositiveInteger(curToken)){\n\t\t\t\t//if the token sequence is valid, add the current token to the psotfix expression\n\t\t\t\tif(checkValidTokenSequence(\"operand\", previousTokenType)){\n\t\t\t\t\tpostfix += (curToken + \" \");\n\t\t\t\t\tpreviousTokenType = \"operand\";\n\t\t\t\t}\n\t\t\t\telse{ //otherwise throw an exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the current token is a left bracket check that the token sequence is valid and push the\n\t\t\t//token on the stack\n\t\t\telse if(curToken.equals(\"(\")){\n\t\t\t\tif(checkValidTokenSequence(\"left bracket\", previousTokenType)){\n\t\t\t\t\toperatorStack.push(curToken);\n\t\t\t\t\tpreviousTokenType = \"left bracket\";\n\t\t\t\t}\n\t\t\t\telse{//if the token sequence is invalid throw and exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the token is an operator, check sequence validity\n\t\t\telse if(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\t\t//if the token is an operator and it is the first token, the expression is invalid\n\t\t\t\tif(previousTokenType.equals(\"first token\")){\n\t\t\t\t\tthrow new PostFixException(\"Invalid operator placement\");\n\t\t\t\t}\n\t\t\t\t//if the token sequence is valid, add all operator on stack with lower or equal precedence to\n\t\t\t\t//to the prefix expression\n\t\t\t\tif(checkValidTokenSequence(\"operator\", previousTokenType)){\n\t\t\t\t\twhile(!operatorStack.empty() && checkPrecedence(operatorStack.peek(),curToken)){\n\t\t\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t\t\t\t}\n\t\t\t\t\t//push the current token on the operator stack\n\t\t\t\t\toperatorStack.push(curToken);\n\t\t\t\t\tpreviousTokenType = \"operator\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//if the token sequence is invalid, throw exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if the token is a right bracket, check that token sequence is valid\n\t\t\telse if(curToken.equals(\")\")){\n\t\t\t\t\n\t\t\t\t//if the token sequence is valid, add all operators on operator stack \n\t\t\t\t//to the prefix expression until the matching left bracket is reached\n\t\t\t\tif(checkValidTokenSequence(\"right bracket\", previousTokenType)){\n\t\t\t\t\tboolean hasMatchingBracket = false;\n\t\t\t\t\t\n\t\t\t\t\twhile(!operatorStack.empty()){\n\t\t\t\t\t\tif(!operatorStack.peek().equals(\"(\")){\n\t\t\t\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\toperatorStack.pop();\n\t\t\t\t\t\t\thasMatchingBracket = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If the right bracket does not have a matching left bracket, throw an exception\n\t\t\t\t\tif(!hasMatchingBracket){\n\t\t\t\t\t\tthrow new PostFixException(\"Missing left bracket\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tpreviousTokenType = \"right bracket\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//If the token sequence is invalid throw an exception\n\t\t\t\telse{\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the current token is not a valid token, throw an exception\n\t\t\telse{\n\t\t\t\tthrow new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Check to see if the last token was an operator, if so throw an exception\n\t\tif(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\tthrow new PostFixException(\"Invalid operator placement\");\n\t\t}\n\t\t\n\t\t//while there operator stack is not empty, pop whatever is in the stack and append\n\t\twhile(!operatorStack.empty()){\n\t\t\t//if there is a bracket left in the stack, then the infix expression is invalid\n\t\t\tif(operatorStack.peek().equals(\"(\") || operatorStack.peek().equals(\")\")){\n\t\t\t\tthrow new PostFixException(\"Bracket mismatch\");\n\t\t\t}\n\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t}\n\t\t\n\t\tgetToken.close();\n\t\t\n\t\t//return the postfix expression\n\t\treturn postfix;\n\t}",
"public void convertInfixToPostfix() {\n\t\t// Create operator stack\n\t\tStack<String> op_stack = new Stack<String>();\n\n\t\t// Prepare the input string\n\t\tprepareInput();\n\t\t\n\t\t// Split the expression \n\t\tString[] tokens = input.split(\"(?<=[^\\\\.a-zA-Z\\\\d])|(?=[^\\\\.a-zA-Z\\\\d])\");\n\t\t\n\t\t//For each token\n\t\tfor (String t : tokens) {\n\t\t\t// If the token is empty, skip it\n\t\t\tif(t.equals(\"\") || t.equals(\" \")) continue;\n\t\t\t\n\t\t\t// If operator (o1)\n\t\t\tif (Operator.isOperator(t)) {\n\n\t\t\t\t// While there is an operator (o2) an the stack and\n\t\t\t\t// (o1 is left associative AND o2 precedence is higher or equal to o1 precedence)\n\t\t\t\t// OR\n\t\t\t\t// (o1 is right associative AND o2 precedence is higher than o1 precedence)\n\t\t\t\twhile (!op_stack.empty()\n\t\t\t\t\t\t&& Operator.isOperator(op_stack.peek())\n\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.LEFT) && Operator.comparePrec(op_stack.peek(), t) >= 0) \n\t\t\t\t\t\t\t|| \n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.RIGHT) && Operator.comparePrec(op_stack.peek(), t) > 0)\n\t\t\t\t\t\t )\n\t\t\t\t ) \n\t\t\t\t{\n\t\t\t\t\t// add o2 to the output\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Push o1 on to the stack.\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\"(\")) {\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\")\")) {\n\t\t\t\t// While there is not a left parenthesis, add the top token from the stack to the output\n\t\t\t\twhile (!op_stack.peek().equals(\"(\")) {\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\n\t\t\t\t// Pop out the left parenthesis\n\t\t\t\top_stack.pop();\n\t\t\t\t\n\t\t\t\t// While there is a function on the top of the stack, add it to the output\n\t\t\t\tif(!op_stack.empty() && Function.isFunction(op_stack.peek())) output.add(op_stack.pop());\n\t\t\t}\n\t\t\telse if(Function.isFunction(t)){\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\t\t\telse if(isNumeric(t) || isVariable(t)){\n\t\t\t\toutput.add(t);\n\t\t\t}\n\t\t}\n\n\t\t// Finally empty the stack, by adding all remaining tokens to the output.\n\t\twhile (!op_stack.empty()) {\n\t\t\toutput.add(op_stack.pop());\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tPostFix aux,courant, racine;\r\n\t\t\r\n\t\t sc = new Scanner(System.in);\r\n\t\t System.out.println(\"Entrer l'expression postfixée--->\");\r\n\t\t ArrayList<String> list ; \r\n\t\t String PostEntre = sc.nextLine();\r\n\t\t \r\n\t\t list = new ArrayList<>(Arrays.asList(PostEntre.split(\" \")));\r\n\t\t \r\n\t\t ArrayDeque<PostFix> pil = new ArrayDeque<PostFix>();\r\n\t\t for (String s : list){\r\n\t\t\t courant = new PostFix(s);\r\n\t\t\t if (isOperator(s)){\r\n\t\t\t\t aux = pil.pop();\r\n\t\t\t\t courant.setfilsgauche(pil.pop());\r\n\t\t\t\t courant.setfilsdroit(aux);\r\n\t\t\t }\r\n\t\t\t pil.push(courant);\r\n\t\t\t \r\n\t\t }\r\n\t\t racine = pil.pop();\r\n\t\t System.out.println(\"L'arbre est : \" );\r\n\t\t System.out.println(racine + \"\\n\" );\r\n\t\t // racine.Afficher(racine);\r\n\t\t \r\n\t\t //----------------------------to prefix------------------------\r\n\t\t String s1,s2,sor;\r\n\t\t \r\n\t\t ArrayDeque<String> operst = new ArrayDeque<String>();\r\n\t\t for (String n : list){\r\n\t\t\t if (!isOperator(n))\r\n\t\t\t\t operst.push(n);\r\n\t\t\t else{\r\n\t\t\t\ts2 = operst.pop();\r\n\t\t\t \ts1 = operst.pop();\r\n\t\t\t \tsor = n +\" \"+ s1 +\" \"+ s2;\r\n\t\t\t operst.push(sor);\r\n\t\t\t }\r\n\t\t\t \t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"L'expression prefixee donne: \");\r\n\t\t System.out.println(operst.pop()+\"\\n\");\r\n\t\t //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\t\t \r\n\t\t \r\n\t\t //-----------------------------evaluation-----------------------\r\n\t\t Double oper1, oper2,result;\r\n\t\t ArrayDeque<Double> abc = new ArrayDeque<Double>();\r\n\t\t for (String n : list){\r\n\t\t\t if (!isOperator(n))\r\n\t\t\t\t abc.push(Double.valueOf(n));\t\t\t\r\n\t\t\t else{\r\n\t\t\t\t oper2 = abc.pop();\t\t\t \t\r\n\t\t\t\t oper1 = abc.pop();\r\n\t\t\t \tresult = operate(oper1,oper2,n);\t\t\t \r\n\t\t\t \t\tabc.push(result);\r\n\t\t\t }\r\n\t\t\t \t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"l'evaluation donne: \");\r\n\t\t System.out.println(abc.pop());\r\n\t\t //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\r\n\t}",
"String convertToPostfix(String input);",
"public static String convertPostfixToInfix(String postfix) throws InvalidNotationFormatException {\n\t\tNotationStack<String> eval = new NotationStack<String>(postfix.length());\n\t\tchar[] expr = postfix.toCharArray();\n\t\tfor (int i = 0; i < expr.length; i++) {\n\t\t\tif (Character.isDigit(expr[i])) {\n\t\t\t\ttry {\n\t\t\t\t\teval.push(String.valueOf(expr[i]));\n\t\t\t\t}catch(StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif (eval.size() < 2) {\n\t\t\t\t\tthrow new InvalidNotationFormatException();\n\t\t\t\t}\n\t\t\t\tString pop1=\"\", pop2=\"\", result=\"\";\n\t\t\t\ttry {\n\t\t\t\t\tpop2 = eval.pop();\n\t\t\t\t\tpop1 = eval.pop();\n\t\t\t\t\tresult += \"(\" + pop1 + String.valueOf(expr[i]) + pop2 + \")\";\n\t\t\t\t\teval.push(result);\n\t\t\t\t}catch(StackUnderflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch(StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (eval.size() > 1) {\n\t\t\tthrow new InvalidNotationFormatException();\n\t\t}\n\t\treturn eval.toString();\n\t}",
"public Node Infix2BT(String infix) {\r\n char[] a = infix.toCharArray();\r\n String[] tempb = new String[a.length];\r\n int arraysize = 0;\r\n for (int i = 0; i < a.length - 1; i++) {\r\n tempb[i] = infix.subSequence(i, i + 1).toString();\r\n int tempcount = i;\r\n if (tempb[i].equals(\"\"+\"\") == false && tempb[i].equals(\"\"-\"\") == false && tempb[i].equals(\"\"*\"\") == false && tempb[i].equals(\"\"/\"\") == false && tempb[i].equals(\"\"(\"\") == false && tempb[i].equals(\"\")\"\") == false) {\r\n for (int j = i + 1; j < a.length - 1; j++) {\r\n String tempbb = infix.subSequence(j, j + 1).toString();\r\n if (tempbb.equals(\"\"+\"\") == false && tempbb.equals(\"\"-\"\") == false && tempbb.equals(\"\"*\"\") == false && tempbb.equals(\"\"/\"\") == false && tempbb.equals(\"\"(\"\") == false && tempbb.equals(\"\")\"\") == false) {\r\n tempcount = j;\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n if (tempcount != i) {\r\n tempb[i] = infix.subSequence(i, tempcount + 1).toString();\r\n i = tempcount;\r\n }\r\n }\r\n arraysize++;\r\n }\r\n int idx = 0;\r\n b = new String[arraysize];\r\n for (int i = 0; i < tempb.length; i++) {\r\n if (tempb[i] != null) {\r\n b[idx] = tempb[i];\r\n System.out.print(b[idx]);\r\n idx++;\r\n }\r\n }\r\n \r\n root = new Node(null, null, null);\r\n //若為(1+(1+1))的形式\r\n Stack<String> stack = new Stack<String>();\r\n if (b[2].equals(\"\"+\"\") || b[2].equals(\"\"-\"\") || b[2].equals(\"\"*\"\") || b[2].equals(\"\"/\"\")) {\r\n root.setValue(b[2]);\r\n Node temp = new Node(null, null, b[1]);\r\n root.setLeft(temp);\r\n int checknum = 0;\r\n Node connectnode = new Node(null, null, null);\r\n if ((b.length - 1 - 3) >= 3) {\r\n for (int i = 3; i < b.length; i++) {\r\n if (checknum == 0) {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n\r\n String rightvalue = stack.pop();\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n checknum = 1;\r\n\r\n }\r\n } else {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String in = stack.pop();\r\n if (in.equals(\"\"+\"\") || in.equals(\"\"-\"\") || in.equals(\"\"*\"\") || in.equals(\"\"/\"\")) {\r\n String operator = in;\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, connectnode, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n } else {\r\n String rightvalue = in;\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n Node temproot = new Node(connectnode, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n }\r\n }\r\n }\r\n }\r\n root.setRight(connectnode);\r\n } else {\r\n temp = new Node(null, null, b[3]);\r\n root.setRight(temp);\r\n }\r\n } //若為((1+1)+1)的形式\r\n else if (b[b.length- 2].equals(\"\"+\"\") || b[b.length - 2].equals(\"\"-\"\") || b[b.length - 2].equals(\"\"*\"\") || b[b.length - 2].equals(\"\"/\"\")) {\r\n root.setValue(b[b.length - 2]);\r\n Node temp = new Node(null, null, b[b.length - 1]);\r\n root.setRight(temp);\r\n int checknum = 0;\r\n Node connectnode = new Node(null, null, null);\r\n for (int i = 0; i < b.length - 2; i++) {\r\n if (checknum == 0) {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String rightvalue = stack.pop();\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n checknum = 1;\r\n }\r\n } else {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String in = stack.pop();\r\n if (in.equals(\"\"+\"\") || in.equals(\"\"-\"\") || in.equals(\"\"*\"\") || in.equals(\"\"/\"\")) {\r\n String operator = in;\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, connectnode, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n } else {\r\n String rightvalue = in;\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n Node temproot = new Node(connectnode, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n }\r\n }\r\n }\r\n }\r\n root.setLeft(connectnode);\r\n }//若為((1+1)+(1+1))的形式\r\n else {\r\n int rootposition = 0;\r\n for (int i = 0; i < b.length; i++) {\r\n if (b[i].equals(\"\")\"\") || b[i + 2].equals(\"\"(\"\")) {\r\n rootposition = i + 1;\r\n break;\r\n }\r\n }\r\n root.setValue(b[rootposition]);\r\n int checknum = 0;\r\n Node connectnode = new Node(null, null, null);\r\n for (int i = 0; i < rootposition; i++) { //先連接root左邊\r\n if (checknum == 0) {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String rightvalue = stack.pop();\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n checknum = 1;\r\n }\r\n } else {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String in = stack.pop();\r\n if (in.equals(\"\"+\"\") || in.equals(\"\"-\"\") || in.equals(\"\"*\"\") || in.equals(\"\"/\"\")) {\r\n String operator = in;\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, connectnode, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n } else {\r\n String rightvalue = in;\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n Node temproot = new Node(connectnode, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n }\r\n }\r\n }\r\n }\r\n root.setLeft(connectnode);\r\n checknum = 0;\r\n for (int i = rootposition + 1; i < b.length; i++) { //再連接root右邊\r\n if (checknum == 0) {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String rightvalue = stack.pop();\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n checknum = 1;\r\n }\r\n } else {\r\n if (b[i].equals(\"\")\"\") != true) {\r\n stack.push(b[i]);\r\n } else {\r\n String in = stack.pop();\r\n if (in.equals(\"\"+\"\") || in.equals(\"\"-\"\") || in.equals(\"\"*\"\") || in.equals(\"\"/\"\")) {\r\n String operator = in;\r\n String leftvalue = stack.pop();\r\n Node lefttemp = new Node(null, null, leftvalue);\r\n Node temproot = new Node(lefttemp, connectnode, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n } else {\r\n String rightvalue = in;\r\n Node righttemp = new Node(null, null, rightvalue);\r\n String operator = stack.pop();\r\n Node temproot = new Node(connectnode, righttemp, operator);\r\n connectnode = temproot;\r\n stack.pop(); //remove the nearest '('}\r\n }\r\n }\r\n }\r\n }\r\n root.setRight(connectnode);\r\n }\r\n\r\n return root;\r\n }\r\n\r\n private void Prefixtraversal(Node x, Queue<Node> q) {\r\n if (x == null) {\r\n return;\r\n }\r\n q.enqueue(x);\r\n Prefixtraversal(x.getLeft(), q);\r\n Prefixtraversal(x.getRight(), q);\r\n }\r\n\r\n public Node[] PrintPrefix() {\r\n if (this.root == null) {\r\n System.out.println(\"\"NullPointerException\"\");\r\n return null;\r\n }\r\n Queue<Node> q = new Queue<Node>();\r\n Prefixtraversal(this.root, q);\r\n \r\n Node[] prefix = new Node[(b.length + 2) / 2];\r\n for (int i = 0; i < prefix.length; i++) {\r\n prefix[i] = q.dequeue();\r\n // System.out.println(prefix[i].getValue());\r\n }\r\n return prefix;\r\n }\r\n\r\n private void Postfixtraversal(Node x, Queue<Node> q) {\r\n if (x == null) {\r\n return;\r\n }\r\n Postfixtraversal(x.getLeft(), q);\r\n Postfixtraversal(x.getRight(), q);\r\n q.enqueue(x);\r\n }\r\n\r\n public Node[] PrintPostfix() {\r\n if (this.root == null) {\r\n System.out.println(\"\"NullPointerException\"\");\r\n return null;\r\n }\r\n Queue<Node> q = new Queue<Node>();\r\n Postfixtraversal(this.root, q);\r\n Node[] postfix = new Node[(b.length + 2) / 2];\r\n for (int i = 0; i < postfix.length; i++) {\r\n postfix[i] = q.dequeue();\r\n }\r\n return postfix;\r\n }\r\n\r\n public double Evaluation() {\r\n if (this.root == null) {\r\n System.out.println(\"\"NullPointerException\"\");\r\n return 0.0;\r\n }\r\n Node[] c = this.PrintPostfix();\r\n Stack<Double> stack = new Stack<Double>();\r\n for (int i = 0; i < c.length; i++) {\r\n if (c[i].getValue().equals(\"\"+\"\") == false && c[i].getValue().equals(\"\"-\"\") == false && c[i].getValue().equals(\"\"*\"\") == false && c[i].getValue().equals(\"\"/\"\") == false) {\r\n stack.push(Double.valueOf(c[i].getValue()));\r\n } else {\r\n double num2 = 0.0;\r\n double num1 = 0.0;\r\n switch (c[i].getValue()) {\r\n case \"\"+\"\":\r\n num2 = stack.pop();\r\n num1 = stack.pop();\r\n stack.push(num1 + num2);\r\n break;\r\n case \"\"-\"\":\r\n num2 = stack.pop();\r\n num1 = stack.pop();\r\n stack.push(num1 - num2);\r\n break;\r\n case \"\"*\"\":\r\n num2 = stack.pop();\r\n num1 = stack.pop();\r\n stack.push(num1 * num2);\r\n break;\r\n case \"\"/\"\":\r\n num2 = stack.pop();\r\n num1 = stack.pop();\r\n stack.push(num1 / num2);\r\n break;\r\n }\r\n }\r\n\r\n }\r\n double answer = stack.pop();\r\n return answer;\r\n }\r\n\r\n public static void main(String[] args) {\r\n// Expression b = new Expression();\r\n// //Node a = b.Infix2BT(\"\"(4+(((4*2)/2)/3))\"\");\r\n// // Node a = b.Infix2BT(\"\"(12+12)\"\");\r\n// Node a = b.Infix2BT(\"\"((1+1)+(1+1))\"\");\r\n// Node[] c = b.PrintPrefix();\r\n// for (int i = 0; i < c.length; i++) {\r\n// System.out.print(c[i].getValue());\r\n// }\r\n// System.out.println(\"\" \"\");\r\n// c = b.PrintPostfix();\r\n// for (int i = 0; i < c.length; i++) {\r\n// System.out.print(c[i].getValue());\r\n// }\r\n// b.Evaluation();\r\n// System.out.println(\"\" \"\");\r\n// System.out.println(b.Evaluation());\r\n\r\n }\r\n}",
"@Override\r\n\tpublic String infixToPostfix(String expression) {\r\n\t\tStringBuilder pf = new StringBuilder(); // the postfix expression \r\n\t\texpression = removespaces(expression); \r\n\t\texpression = CheckInputValidation(expression);\r\n\t\texpression = DummyZero(expression);\r\n\t\tString e = expression;\r\n\t\tfor(i1 = 0 ; i1 < e.length() ;i1++) { \r\n\t\t\t//take operand and append it to the string\r\n\t\t\tif(Character.isDigit(e.charAt(i1)) || Character.isLetter(e.charAt(i1))) { //check if the character is letter or number\r\n\t\t\t\tint j =0; //counter to know how many digits in the following operand \r\n\t\t\t\twhile (i1 != e.length() &&e.charAt(i1) != '+' &&e.charAt(i1) != '-' && e.charAt(i1) != '/' && e.charAt(i1) != '*'&&e.charAt(i1) != ')'&&e.charAt(i1) != '(' ) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t\ti1++;\r\n\t\t\t\t}\r\n\t\t\t\tif(j>0) {\r\n\t\t\t\t\tString s = e.substring(i1-j, i1);\r\n\t\t\t\t\tpf.append( s ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\ti1--;\r\n\t\t\t\tif(i1 == e.length()-1 ) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (e.charAt(i1)=='(') {\r\n\t\t\t\topt.push(e.charAt(i1));\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i1)=='-'||e.charAt(i1)=='/'||e.charAt(i1)=='+'||e.charAt(i1)=='*') {\r\n\t\t\t\twhile(!(opt.isEmpty()) && higherpres(e.charAt(i1)) && (char)opt.peek() !='(') {\r\n\t\t\t\t\tpf.append( opt.pop() ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\topt.push(e.charAt(i1));\r\n\t\t\t}\r\n\t\t\telse if (e.charAt(i1)==')') {\r\n\t\t\t\twhile((char)opt.peek() != '(') {\r\n\t\t\t\t\tpf.append( opt.pop() ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\topt.pop();\r\n\t\t\t}\r\n\t\t}\r\n\t\twhile(!(opt.isEmpty()) ) {\r\n\t\t\tif((char)opt.peek() != '(') {\r\n\t\t\t\tpf.append(opt.pop()).append(' ');}\r\n\t\t\telse if((char)opt.peek()=='(') {\r\n\t\t\t\topt.pop();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pf.toString();\r\n\t\t\r\n\t}",
"static String infixToPostfix(String txt) \n\t{\n\t\tString postfix = new String(\"\");\n Stack<Character> stack = new Stack<>();\n \n for (int i = 0; i<txt.length(); ++i)\n {\n char c = txt.charAt(i);\n \n // Ist das eingescannte Zeichen c ein Operand, addiere es zur Ausgabe hinzu\n if (Character.isLetterOrDigit(c)) \n {\n \tpostfix += c;\n }\n \n \n // Ist das eingescannte Zeichen c eine offene Klammer, lege es auf den Stapel\n else if (c == '(') \n {\n \tstack.push(c);\n }\n \n // Ist das eingescannte Zeichen c eine schließende Klammer, pop es aus dem Stapel bis eine öffnende Klammer erscheint\n else if (c == ')')\n {\n while (!stack.isEmpty() && stack.peek() != '(') \n {\n \tpostfix += stack.pop();\n stack.pop();\n } \n }\n else //falls es ein Operator ist\n {\n while (!stack.isEmpty() && precedence(c) < precedence(stack.peek()))\n {\n postfix += stack.pop();\n }\n stack.push(c);\n }\n }\n \n // pop all the operators from the stack\n while (!stack.isEmpty())\n {\n postfix += stack.pop();\n }\n return postfix;\n\n\t}",
"public static String infixToPostfix(String input) {\r\n\t\tStack<Object> infixStack = new Stack<>();\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tboolean digitPreviously = false;\r\n\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tchar temp = input.charAt(i);\r\n\r\n\t\t\t// CASE 1 : handling digits\r\n\t\t\tif (priority(temp) < 0) {\r\n\t\t\t\tsb.append(temp);\r\n\t\t\t\tdigitPreviously = true;\r\n\t\t\t// CASE 2 : handling (, )\r\n\t\t\t} else if (priority(temp) == 0) {\r\n\t\t\t\tif (temp == '(') {\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tdigitPreviously = false;\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tboolean foundOpener = false;\r\n\t\t\t\t\twhile (!infixStack.empty()) {\r\n\t\t\t\t\t\tif ((char)infixStack.peek() == '(') {\r\n\t\t\t\t\t\t\tfoundOpener = true;\r\n\t\t\t\t\t\t\tinfixStack.pop();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\tchar top = (char)infixStack.pop();\r\n\t\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t\t\tsb.append(top);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdigitPreviously = true;\t\r\n\t\t\t\t\tif (!foundOpener) {\r\n\t\t\t\t\t\t// invalid case : different number of ( and )\r\n\t\t\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// CASE 3 : handling operators\r\n\t\t\telse if (priority(temp) > 0) {\r\n\t\t\t\tif (infixStack.empty()) {\r\n\t\t\t\t\tif (!digitPreviously && temp == '-') {\r\n\t\t\t\t\t\ttemp = '~';\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t} else {\r\n\t\t\t\t\twhile (!infixStack.empty()) {\r\n\t\t\t\t\t\tif (!digitPreviously && temp == '-') {\r\n\t\t\t\t\t\t\ttemp = '~';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (priority((char)infixStack.peek()) < priority(temp) || temp == '^' || temp == '~') {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tchar top = (char)infixStack.pop();\r\n\t\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t\t\tsb.append(top);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t}\r\n\t\t\t\tdigitPreviously = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// pop remaining chars\r\n\t\twhile (!infixStack.empty()) {\r\n\t\t\tchar temp = (char)infixStack.pop();\r\n\t\t\tif (temp == '(') {\r\n\t\t\t\t// invalid case : different number of ( and )\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(' ');\r\n\t\t\t\tsb.append(temp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn sb.toString();\r\n\t}",
"public CustomQueue<String> calculate (CustomQueue<String> infixQueue){\r\n InfixToPostfixConverter converter = new InfixToPostfixConverter();\r\n \r\n CustomQueue<String> postFix = converter.convertToPostFix(infixQueue);\r\n CustomQueue<String> result = evaluatePostFix(postFix);\r\n return result;\r\n }",
"public List<Token> InfixToPostfixConverter(List<Token> tokenList){\n ArrayDeque<Token> stack = new ArrayDeque<Token>(); \n List<Token> output = new ArrayList<Token>(); \n\n for (Token token : tokenList){\n if (token instanceof Polynomial)\n output.add(token); \n else if (token instanceof OpenParenthesis)\n stack.push(token); \n else if (token instanceof CloseParenthesis){\n while (!stack.isEmpty() && !(stack.peek() instanceof OpenParenthesis))\n output.add(stack.pop()); \n if (stack.isEmpty()){ \n throw new PolyFormatException(\"Mismatched right parenthesis\");\n }\n stack.pop(); // throw away left parenthesis\n }\n else if (token instanceof Operator){\n Operator tokenOperator = (Operator) token; // cast Token to Operator\n Operator peekStackOp = new AddOperator();\n if (!(stack.peek() instanceof OpenParenthesis))\n peekStackOp = (Operator) stack.peek(); // cast Token to Operator\n while (!stack.isEmpty() && !(stack.peek() instanceof OpenParenthesis)\n && (peekStackOp.getPriority() >= tokenOperator.getPriority()))\n output.add(stack.pop()); \n stack.push(token);\n }\n }\n // empty out the stack at the end \n\n while (!stack.isEmpty()){\n Token token = stack.pop(); \n if (token instanceof OpenParenthesis){\n throw new PolyFormatException(\"Mismatched left parenthesis\");\n }\n output.add(token); \n }\n\n return output;\n }",
"private String infixToPostfixPlusPrecedence(String infix) {\n\t\tString postfix = \"\";\n\t\tStack<Character> stack = new Stack<>();\n\n\t\tfor (int i = 0; i < infix.length(); i++) {\n\t\t\tchar currentChar = infix.charAt(i);\n\t\t\tif (currentChar == '+' || currentChar == '*') {\n\t\t\t\tif (stack.isEmpty() || stack.peek() == '(') {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else if (precedence(stack.peek()) >= precedence(currentChar)) {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t}\n\t\t\t} else if (currentChar == '(') {\n\t\t\t\tstack.push(currentChar);\n\t\t\t} else if (currentChar == ')') {\n\n\t\t\t\twhile (stack.peek() != '(') {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t}\n\t\t\t\tstack.pop();\n\n\t\t\t} else if (currentChar != ' ') {\n\t\t\t\tpostfix = postfix + currentChar;\n\t\t\t}\n\n\t\t}\n\n\t\twhile (!stack.isEmpty()) {\n\t\t\tpostfix = postfix + stack.pop();\n\t\t}\n\n\t\treturn postfix;\n\t}",
"private CustomQueue<String> evaluatePostFix(CustomQueue<String>postfix){\r\n CustomStack<String> numberStack = new CustomStack();\r\n CustomQueue<String> result = new CustomQueue();\r\n \r\n while (postfix.isEmpty() == false){\r\n String value = postfix.remove();\r\n if (isOperator(value)){\r\n //First popped value should be on the right hand side of the operator\r\n double val2 = Double.parseDouble(numberStack.pop());\r\n //Second popped value should be on the left hand side of the operator\r\n double val1 = Double.parseDouble(numberStack.pop());\r\n String operation_result = calculate(val1, val2, value);\r\n numberStack.push(operation_result);\r\n }\r\n else{\r\n //It should be a number\r\n numberStack.push(value);\r\n }\r\n }\r\n \r\n if (numberStack.empty())\r\n result.add(\"0\");\r\n else\r\n result.add(numberStack.pop());\r\n \r\n return result;\r\n }",
"private static String infixToPostfix(String expression)\r\n {\r\n String result = \"\";\r\n char current_char = ' ';\r\n int index = 0;\r\n StackInterface<Character> operand_stack = new ArrayStack<>();\r\n switch(stack_type)\r\n {\r\n case(\"vector\"):\r\n operand_stack = new VectorStack<>();\r\n break;\r\n \r\n case(\"linked\"):\r\n operand_stack = new LinkedListStack<>();\r\n break;\r\n }\r\n\r\n //iterates through every character and puts them in the stack or the result accordingly\r\n while(index < expression.length())\r\n {\r\n current_char = expression.charAt(index);\r\n switch(current_char)\r\n {\r\n //checks if the character is an operand and if so checks if it should pop the previous input or not\r\n case '+': case '-': case '*': case '/':\r\n if(!operand_stack.isEmpty())\r\n {\r\n while(!operand_stack.isEmpty() && getOperandImportance(current_char) <= getOperandImportance(operand_stack.peek()))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.push(current_char);\r\n }\r\n else\r\n {\r\n operand_stack.push(current_char);\r\n }\r\n break;\r\n\r\n //exponents are always pushed onto the stack\r\n case '^':\r\n operand_stack.push(current_char);\r\n break;\r\n\r\n //if an open delimiter is there, we add it to the stack\r\n case '(': case '{': case '[':\r\n operand_stack.push(current_char);\r\n break;\r\n \r\n //if the delimiter is closing we pop until we find the open equivalent\r\n case ')': case '}': case ']':\r\n while(operand_stack.peek() != delimiterEquivalent(current_char))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.pop();\r\n break;\r\n\r\n case ' ':\r\n break;\r\n\r\n default: \r\n result += current_char;\r\n break;\r\n }\r\n index++;\r\n }\r\n\r\n //pops everything left in the stack to the result at the end\r\n while(!operand_stack.isEmpty())\r\n {\r\n result += operand_stack.pop();\r\n }\r\n\r\n return result;\r\n }",
"public void evalPostfix(String postfix){\r\n char ch;\r\n\r\n for(int i = 0; i < postfix.length() ; i++) //parses postfix string and performs operations based on operator found\r\n {\r\n ch = postfix.charAt(i);\r\n \r\n if(ch == '+')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x+y);\r\n \r\n }\r\n \r\n \r\n else if(ch == '-')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x-y);\r\n \r\n }\r\n \r\n else if(ch == '*')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x*y);\r\n \r\n }\r\n \r\n else if(ch == '/')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x/y);\r\n \r\n }\r\n \r\n else if(ch == '^')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push((int)Math.pow(x,y));\r\n \r\n } \r\n \r\n else if(ch >= '0' || ch <= '9')\r\n {\r\n numbers.push((int)(ch - '0'));\r\n }\r\n }\r\n }",
"public double processPostfix(String postfix){\n char[] postfixArr = postfix.toCharArray(); //Convert string to Char Array\n\n //loop through the array, looking at each value\n for(int i = 0; i < postfixArr.length; i++){\n\n //If digit, push it into the stack\n if(Character.isDigit(postfixArr[i])){\n s.push(postfixArr[i]);\n }\n else{\n double d1 = convertToDbl(s.pop()); //convert to double\n double d2 = convertToDbl(s.pop());\n\n //switch to determine what operation should be performed - printed out for testing\n switch(postfixArr[i]){\n case '+':\n System.out.println(d2 + \" + \" + d1); s.push(d2+d1); System.out.println(\"= \" + (d2+d1)); break;\n case '-':\n System.out.println(d2 + \" - \" + d1); s.push(d2-d1); System.out.println(\"= \" + (d2-d1)); break;\n case '*':\n System.out.println(d2 + \" * \" + d1); s.push(d2 * d1); System.out.println(\"= \" + (d2*d1));break;\n case '/':\n System.out.println(d2 + \"/\" + d1); s.push(d2/d1); System.out.println(\"= \" + (d2/d1));break;\n case '^':\n System.out.println(d2 + \" ^ \" + d1); s.push(Math.pow(d2, d1)); System.out.println(\"= \" + (Math.pow(d2,d1))); break;\n default:\n System.out.println(\"ERROR IN CODE!\");\n }\n }\n\n\n }\n\n double result = convertToDbl(s.top()); //return the item at top of the stack (converted to a double)\n s.pop();\n return result;\n }",
"public String convertInfix (String exp) throws NumberFormatException \n {\n \n initStack.clear();\n queue.clear();\n finalStack.clear();\n postfixExp = \"\";\n \n for (int i = 0; i<exp.length(); ++i){\n char c = exp.charAt(i); \n if(i > 0){\n char previous = exp.charAt(i-1);\n if((isNumber(c) && isNumber(previous)) || isBalanced(exp) == false){\n throw new NumberFormatException(\"**Invalid Expression**\");\n }\n }\n \n if (Precedence(c) > 0)\n {\n while(initStack.isEmpty() == false && Precedence((char) initStack.top()) >= Precedence(c))\n {\n queue.insertBack(initStack.pop());\n }\n initStack.push(c);\n }\n else if (c ==')')\n {\n char x = (char) initStack.pop();\n while(x!= '(')\n {\n queue.insertBack(x);\n x = (char) initStack.pop();\n }\n }\n else if (c == '(')\n {\n initStack.push(c);\n }\n else\n {\n queue.insertBack(c);\n }\n }\n while (!initStack.isEmpty()) \n {\n queue.insertBack(initStack.pop());\n }\n postfixExp = queue.postFixString();\n postfixExp = postfixExp.replaceAll(\"\\\\s\",\"\");\n return postfixExp;\n }",
"public PostFix(String infix) {\n this.infix = infix;\n infixList = new ArrayList<>();\n expStack = new Stack<>();\n postFix = new ArrayList<>();\n }",
"public String convertPostfix(String string){\r\n\r\n \t\tStack<Character> operatorStack = new Stack<Character>();\r\n\r\n \t\tStringBuffer postfix = new StringBuffer();\r\n\r\n \t\tCharacter topOperator;\r\n\t\tfor (int i = 0; i < string.length(); i++) {\r\n\t\t\tchar c = string.charAt(i);\r\n\r\n\t\t\tif (Character.isDigit(c)) {\r\n\t\t\t\tpostfix.append(c);\r\n\r\n\r\n\r\n\t\t\t\t// fixing bug to test next character before adding a space\r\n\t\t\t\t// if next character is not a digit add a space\r\n\t\t\t\tif (i + 1 >= string.length() || !Character.isDigit(string.charAt(i + 1)))\r\n\t\t\t\t\tpostfix.append(\" \");\r\n\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\t\r\n \t\t\t\tswitch(c){\r\n \t\t\t\t /////// add a minus to stack without a space\r\n \t\t\t\t\tcase'!':\r\n \t\t\t\t boolean Debug = true;\r\n\r\n\t\t\t\t\tif (Debug)\r\n\t\t\t\t\t\tSystem.out.println(\"Bugs\");\r\n\r\n\t\t\t\t\tpostfix.append('-');\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n \t\t\t\t\tbreak;\r\n \r\n \t\t\t\t\t\r\n \t\t\t\tcase '^':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase '.':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase '+':\r\n \t\t\t\tcase '-':\r\n \t\t\t\tcase '*':\r\n \t\t\t\tcase '/':\r\n \t\t\t\t\twhile (!operatorStack.isEmpty () &&\r\n \t\t\t\t\t\t\tgetPrecedence(c) <= getPrecedence(operatorStack.peek()))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tpostfix.append(operatorStack.peek() + \" \");\r\n \t\t\t\t\t\toperatorStack.pop();\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t}\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n\r\n \t\t\t\tcase '(':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n\r\n \t\t\t\tcase ')': \r\n\t\t\t\t\ttopOperator = operatorStack.pop();\r\n\t\t\t\t\twhile ((topOperator != '(') && !operatorStack.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpostfix.append(topOperator);\r\n\t\t\t\t\t\tpostfix.append(\" \");\r\n\t\t\t\t\t\ttopOperator = operatorStack.pop();\r\n\t\t\t\t\t}// end while\r\n\r\n\t\t\t\t\t/* if(!operatorStack.isEmpty() && operatorStack.peek().equals('(')){\r\n\t\t operatorStack.pop(); // pop/remove left parenthesis \r\n\t\t }*/\r\n\t\t\t\t\tbreak;\r\n \t\t\t\tdefault:\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} \r\n\t\t/*\r\n\t\t * popping off any final operators\r\n\t\t */\r\n \t\t\twhile (!operatorStack.isEmpty())\r\n \t\t\t{\r\n \t\t\t\ttopOperator = operatorStack.pop();\r\n \t\t\t\tpostfix.append(topOperator + \" \");\r\n \t\t\t\t\r\n \t\t\t}\r\n \t\t\treturn postfix.toString();\r\n\r\n \t\t}",
"public Calculator(ArrayList<String> postfix) {\n this.postfix = postfix;\n }",
"public void parseExpression() {\n String regex = \"[ ]\";\n //\"?<=[-+*/()ep])|(?=[-+*/()ei]\";\n String[] splitString = infix.split(regex);\n infixList.addAll(Arrays.asList(splitString));\n }",
"private static String convertToPostfix(String str) {\n Stack<Character> stack = new Stack<>();\n StringBuilder postfix = new StringBuilder();\n\n\n for (int index = 0; index < str.length(); index++) {\n char c = str.charAt(index);\n\n //if c is a digit, an algebraic variable, a dot, or blank (String formatting helper) it is added to\n //the postfix expression\n if ( Character.isLetterOrDigit(c) || c == '.' || c == ' ' ) {\n postfix.append(c);\n\n //if c is a left parenthesis it is added to the stack and a blank (string format helper) is appended\n //to postfix expression.\n } else if ( c == '(' ) {\n stack.push(c);\n postfix.append(\" \");\n\n //if c is an operator the stack is pop and added to the postfix expression only if c's precedence is\n // smaller or equal to the topmost operator in the stack. Otherwise, c is just added to the stack\n } else if ( isOperator(c) ) {\n while (!stack.isEmpty() && precedence(c) <= precedence(stack.peek()) ) {\n postfix.append(stack.pop()).append(\" \");\n }\n stack.push(c);\n\n //if c is a right parenthesis and the stack is not empty, the stack is then popped and added to the\n //postfix expression until a left parenthesis is encountered. If there is no left parenthesis then an\n //exception is thrown with a misplaced parenthesis statement\n } else if ( c == ')') {\n boolean hasLeftParenthesis = false;\n while ( !stack.isEmpty() ) {\n char popped = stack.pop();\n if ( popped == '(' ) {\n hasLeftParenthesis = true;\n break;\n } else {\n postfix.append(popped).append(\" \");\n }\n }//end of inner-loop\n if ( !hasLeftParenthesis ) {\n throw new ArithmeticException(\"Misplaced parenthesis\");\n }\n }\n }//end of for-loop\n\n //If stack is not empty, the stack is then popped and added to the postfix expression. If a left parenthesis is\n //found then an exception is thrown with a misplaced parenthesis statement;\n while (!stack.isEmpty()) {\n if (stack.peek() == '(') {\n throw new ArithmeticException(\"Misplaced parenthesis\");\n }\n postfix.append(stack.pop()).append(\" \");\n }\n\n //String is trimmed, double spaces are replaced by single spaces, and returned\n return postfix.toString().trim().replaceAll(\" \", \" \");\n }",
"public String infixToPostfix(String expression) {\n\t\tStack oPSt = new Stack();\n\t\tStack Sign = new Stack();\n\t\tStringBuilder PFE = new StringBuilder();\n\t\tString n = \"\";\n\t\t// flag -> marks adding new operator to the stack with or without removing the\n\t\t// previous one\n\t\tboolean flag = true;\n\t\t//negflag -> if (true) previous character was operator thus next(-) is negative sign\n\t\t//\t\t\t if (false) previous character was operand thus next (-) is operator\n\t\tboolean negflag = true; \n\t\tint counter = 0; // expresses number of open parenthesis at the moment and if it matches the\n\t\t// counter inside Sign Stack it means that the Sign was changed at this Counter\n\t\tString open = \"(\", closed = \")\";\n\t\tfor (int i = 0; i < expression.length(); i++) {\n\t\t\tString x = expression.substring(i, i + 1);\n\t\t\tStringBuilder longIntegers = new StringBuilder();\n\t\t\tif (x.equals(\"-\") && !expression.substring(i + 1, i + 2).equals(\" \")) {\n\t\t\t\tif(negflag) {\n\t\t\t\tif (n.equals(\"\"))\n\t\t\t\t\tn = \"-\";\n\t\t\t\telse\n\t\t\t\t\tn = \"\";\n\t\t\t\tSign.push(counter);\n\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tint counter2 = 0;\n\t\t\t\twhile (counter2 + i < expression.length()\n\t\t\t\t\t\t&& (isChar(expression.substring(i + counter2, i + counter2 + 1))\n\t\t\t\t\t\t\t\t|| isNum(expression.substring(i + counter2, i + counter2 + 1)))\n\t\t\t\t\t\t&& isNotOperator(expression.substring(i + counter2, i + counter2 + 1))) {\n\t\t\t\t\tlongIntegers.append(expression.substring(i + counter2, i + 1 + counter2));\n\t\t\t\t\tcounter2++;\n\t\t\t\t}\n\t\t\t\ti = i + counter2;\n\t\t\t\tif (counter2 > 0) {\n\t\t\t\t\ti--;\n\t\t\t\t\tx = longIntegers.toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\t// end of taking the expression\n\n\t\t\t// testing the expression\n\n\t\t\t// if the char. is an open parenthesis\n\t\t\tif (x.equals(open)) {\n\t\t\t\toPSt.push(x);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\t// if the char is a close parenthesis\n\t\t\telse if (x.equals(closed)) {\n\t\t\t\tif (counter == 0)\n\t\t\t\t\tthrow new RuntimeException(\"Invalid Input: Redundant \\\")\\\" \");\n\t\t\t\twhile (!((String) oPSt.peek()).equals(open)) {\n\t\t\t\t\tPFE.append(\" \");\n\t\t\t\t\tPFE.append(oPSt.pop());\n\t\t\t\t}\n\t\t\t\toPSt.pop();\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\t// checks if char was an operator\n\t\t\telse if (x.equals(\"*\") || x.equals(\"+\") || x.equals(\"/\") || x.equals(\"-\")) {\n\t\t\t\tnegflag = true;\n\t\t\t\twhile (!oPSt.isEmpty() && !((String) oPSt.peek()).equals(\"(\")) {\n\t\t\t\t\t// see which character has higher precedence\n\t\t\t\t\tflag = highOrLow(((String) oPSt.peek()).charAt(0), x.charAt(0));\n\t\t\t\t\tif (flag)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\telse {\n\t\t\t\t\t\tPFE.append(\" \");\n\t\t\t\t\t\tPFE.append(oPSt.pop());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\toPSt.push(x);\n\t\t\t}\n\t\t\t// if the char is space then check if the previous was space to avoid having two\n\t\t\t// spaces after each other\n\t\t\t// if the char was a new space/wasn't a space then it's definitely a\n\t\t\t// number/variable and will be pushed to PFE\n\t\t\telse if (!x.equals(\" \") || (PFE.length() > 0 && (char) PFE.charAt(PFE.length() - 1) != ' ')) {\n\t\t\t\tPFE.append(\" \");\n\t\t\t\tif (!x.equals(\" \")) {\n\t\t\t\t\tnegflag = false;\n\t\t\t\t\tPFE.append(n + x);\n\t\t\t}else \n\t\t\t\t\tPFE.append(x);\n\t\t\t\t\n\t\t\t}\n\t\t\twhile (!Sign.isEmpty() && counter == (int) Sign.peek()) {\n\t\t\t\tif (n.equals(\"\"))\n\t\t\t\t\tn = \"-\";\n\t\t\t\telse\n\t\t\t\t\tn = \"\";\n\t\t\t\tSign.pop();\n\t\t\t}\n\t\t}\n\t\t// add all the operator remaining in stack to the PFE except if '(' was found\n\t\t// then there's an runtime exception\n\t\twhile (!oPSt.isEmpty()) {\n\t\t\tif (((String) oPSt.peek()).equals(\"(\"))\n\t\t\t\tthrow new RuntimeException(\"Invalid Input : Redundant \\\"(\\\" \");\n\t\t\tPFE.append(\" \");\n\t\t\tPFE.append(oPSt.pop());\n\t\t}\n\t\t// replace any two consecutive spaces with only one\n\t\tint i = 0;\n\t\twhile (PFE.charAt(i) == ' ' && i < PFE.length() - 1) {\n\t\t\tPFE.deleteCharAt(i);\n\t\t}\n\t\tfor (i = 0; i < PFE.length() - 1; i++) {\n\t\t\tif (PFE.charAt(i) == ' ' && PFE.charAt(i + 1) == ' ') {\n\t\t\t\tPFE.deleteCharAt(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\treturn PFE.toString();\n\n\t}",
"public int evalPostfixExpression(String[] input) {\r\n\t\tStack<Integer> result = new Stack<Integer>();\r\n\t\tint num = 0;\r\n\t\tfor (String s: input) {\r\n\t\t\ttry {\r\n\t\t\t\tnum = Integer.parseInt(s);\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\tint y = result.pop();\r\n\t\t\t\tint x = result.pop();\r\n\t\t\t\tif (s.equals(\"+\"))\r\n\t\t\t\t\tnum = x + y;\r\n\t\t\t\telse if (s.equals(\"-\"))\r\n\t\t\t\t\tnum = x - y;\r\n\t\t\t\telse if (s.equals(\"*\"))\r\n\t\t\t\t\tnum = x * y;\r\n\t\t\t\telse if (s.equals(\"/\"))\r\n\t\t\t\t\tnum = x / y;\r\n\t\t\t}\r\n\t\t\tresult.push(num);\r\n\t\t}\r\n\t\treturn result.pop();\r\n\t}",
"public static String[] convertToPos(String[] string) {\n\n\t\tHashMap<String, Integer> operator = new HashMap<String, Integer>();\n\t\toperator.put(\"*\", 2);\n\t\toperator.put(\"/\", 2);\n\t\toperator.put(\"+\", 1);\n\t\toperator.put(\"-\", 1);\n\t\toperator.put(\"(\", 3);\n\t\toperator.put(\")\", 0);\n\n\t\tStack<String> evaluationStack = new Stack<String>();\n\t\tStack<String> operatorStack = new Stack<String>();\n\n\t\tfor (int i = 0; i < string.length; i++) {\n\t\t\tif (!(operator.containsKey(string[i]))) {\n\t\t\t\tevaluationStack.push(string[i]);\n\t\t\t} else {\n\t\t\t\tint precedence = operator.get(string[i]);\n\t\t\t\tif (!operatorStack.isEmpty()) {\n\t\t\t\t\tif (operator.get(operatorStack.peek()) >= precedence) {\n\t\t\t\t\t\tif (!(operatorStack.peek().equals(\"(\") || operatorStack.peek().equals(\")\") || operatorStack.peek().equals(\"(\")))\n\t\t\t\t\t\t\tevaluationStack.push(operatorStack.pop());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\toperatorStack.push(string[i]);\n\t\t\t}\n\t\t}\n\n\t\twhile (!operatorStack.isEmpty()) {\n\t\t\tif (!((operatorStack.peek().equals(\")\") || operatorStack.peek().equals(\"(\")))) {\n\t\t\t\tevaluationStack.push(operatorStack.pop());\n\t\t\t} else {\n\t\t\t\toperatorStack.pop();\n\t\t\t}\n\t\t}\n\t\t\n\t\tString str[] = new String[evaluationStack.size()];\n\n\t\tint c = str.length - 1;\n\t\twhile (!evaluationStack.isEmpty()) {\n\t\t\tstr[c] = evaluationStack.pop();\n\t\t\tc--;\n\t\t}\n\n\t\treturn str;\n\n\t}",
"public static String infixToPostfix(String expression) {\n if (expression.contains(\" \"))\n {\n String newExpression = expression.replaceAll(\" \", \"\");\n expression = newExpression;\n }\n\n // Check for correct parentheses placement\n int lp = 1, rp = 0;\n String errorMessage = \"\";\n for (int i = 1; i < expression.length(); i++)\n {\n if (expression.charAt(i) == '(') lp++;\n if (expression.charAt(i) == ')') rp++;\n\n if (lp == rp && i < expression.length()-1)\n {\n // Error extra parentheses\n errorMessage = \"Error: Extra parentheses\";\n return errorMessage;\n }\n else if (lp < rp)\n {\n // Error misplaced closing parentheses\n errorMessage = \"Error: Misplaced closing parentheses\";\n return errorMessage;\n }\n else if (lp > rp && i == expression.length()-1)\n {\n // Error missing closing parentheses\n errorMessage = \"Error: Missing closing parentheses\";\n return errorMessage;\n }\n }\n\n // Add implied multiplication\n String impliedMulOptions = \"123456789.)\";\n for (int i = 1; i < expression.length(); i++)\n {\n char c = expression.charAt(i);\n String prevChar = \"\";\n prevChar += expression.charAt(i-1);\n if (c == '(')\n {\n if (impliedMulOptions.contains(prevChar))\n {\n String pre = expression.substring(0, i);\n String post = expression.substring(i);\n expression = pre + '*' + post;\n }\n }\n\n // Also check for multiple subtraction signs can convert\n if (c == '-')\n {\n if (c == prevChar.charAt(0))\n {\n String pre = expression.substring(0, i-1);\n String post = expression.substring(i+1);\n if (expression.charAt(i-2) == '(')\n {\n expression = pre + post;\n i--;\n }\n else expression = pre + '+' + post;\n }\n }\n }\n\n // Handle functions within the expression\n while (expression.contains(\"s\") || expression.contains(\"c\") || expression.contains(\"t\") || expression.contains(\"l\")) {\n if (expression.charAt(0) == 'E') return expression;\n expression = functionPresent(expression);\n }\n\n\n // ----- Create RPN -----\n // Variables to store results\n Stack<String> rpn = new Stack<String>();\n Stack<String> stack = new Stack<String>();\n\n // Define all operators possible in the question\n String operators = \"^*/+-()\";\n\n for (int pos = 0; pos < expression.length(); pos++) {\n char c = expression.charAt(pos);\n\n // If a number, find the end of it and add to stack\n if (Character.isDigit(c)) {\n int endpos = 0;\n for (int i = pos; i < expression.length(); i++) {\n char seekChar = expression.charAt(i);\n if (Character.isDigit(seekChar) || seekChar == '.') {\n continue;\n } else {\n endpos = i;\n break;\n }\n }\n rpn.push(expression.substring(pos, endpos));\n pos = endpos - 1;\n continue;\n }\n\n // If a negative number, find end of it and add to stack\n if (c == '-' && operators.contains(expression.substring(pos-1, pos)))\n {\n int endpos = 0;\n for (int i = pos; i < expression.length(); i++) {\n char seekChar = expression.charAt(i);\n if (Character.isDigit(seekChar) || seekChar == '.' || seekChar == '-') {\n continue;\n } else {\n endpos = i;\n break;\n }\n }\n rpn.push(expression.substring(pos, endpos));\n pos = endpos - 1;\n continue;\n }\n\n // If opening a set of parentheses, push it to stack.\n if (c == '(') {\n stack.push(\"(\");\n continue;\n }\n\n // If closing a set of parentheses, pop to rpn until opening parentheses occurs.\n if (c == ')') {\n while (!stack.isEmpty() && stack.peek() != \"(\") {\n rpn.push(stack.pop());\n }\n // Once we hit the open parentheses, pop it and exit loop\n stack.pop();\n continue;\n }\n\n // When an operand has been found\n else {\n while (!stack.isEmpty() && pemdas(c) <= pemdas(stack.peek())) {\n rpn.push(stack.pop());\n }\n String operandString = new String();\n operandString += c;\n stack.push(operandString);\n }\n\n }\n\n // ----- Solve RPN -----\n // Grab the RPN from the stack and turn it into an array to access it properly\n String[] rpnArray = new String[rpn.size()];\n for (int i = rpn.size() - 1; i > -1; i--) {\n rpnArray[i] = rpn.pop();\n }\n\n // If array is just one number, return it\n if (rpnArray.length == 1) return rpnArray[0];\n\n\n\n // Create stack for solving the problem\n Stack<String> solvingStack = new Stack<String>();\n\n for (int i = 0; i < rpnArray.length; i++) {\n // If it is a number, add to stack\n if (!operators.contains(rpnArray[i])) {\n solvingStack.push(rpnArray[i]);\n continue;\n }\n else if (rpnArray[i].charAt(0) == '-' && rpnArray[i].length() > 1)\n {\n solvingStack.push(rpnArray[i]);\n continue;\n }\n // Otherwise we do the math\n else\n {\n // Popping B first because of subtraction, division, and exponent\n double b = Double.parseDouble(solvingStack.pop());\n double a = Double.parseDouble(solvingStack.pop());\n int operator = operators.indexOf(rpnArray[i]);\n double result = 0;\n String resultStr = new String();\n switch (operator) {\n // Exponent\n case 0:\n result = Math.pow(a, b);\n break;\n\n // Multiplication\n case 1:\n result = (a * b);\n break;\n\n // Division\n case 2:\n if (b == 0) return \"Error: Cannot divide by zero\";\n result = (a / b);\n break;\n\n // Addition\n case 3:\n result = (a + b);\n break;\n\n // Subtraction\n case 4:\n result = (a - b);\n break;\n }\n resultStr += result;\n solvingStack.push(resultStr);\n }\n }\n\n\n //double answer = Double.parseDouble(solvingStack.pop());\n return solvingStack.pop();\n }",
"private static String infixToPrefix(String expression)\r\n {\r\n String result = \"\";\r\n String reverse_expression = \"\";\r\n int expression_length = expression.length();\r\n Character current_char = ' ';\r\n\r\n //turns the expression around\r\n for(int index = expression_length - 1; index >= 0; index--)\r\n {\r\n current_char = expression.charAt(index);\r\n switch(current_char)\r\n {\r\n case '{':\r\n current_char = '}';\r\n break;\r\n case '}':\r\n current_char = '{';\r\n break;\r\n case '[':\r\n current_char = ']';\r\n break;\r\n case ']':\r\n current_char = '[';\r\n break;\r\n case '(':\r\n current_char = ')';\r\n break;\r\n case ')':\r\n current_char = '(';\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n reverse_expression += current_char;\r\n }\r\n\r\n //gets the postfix expression of the reversed expression\r\n String postfix_expression = infixToPostfix(reverse_expression);\r\n expression_length = postfix_expression.length();\r\n\r\n //reverses the postfix expression of the reversed expression\r\n for(int index = expression_length - 1; index >= 0; index--)\r\n {\r\n result += postfix_expression.charAt(index);\r\n }\r\n\r\n return result;\r\n }",
"public static String infixToPostfix(String regex) {\n String postfix = new String();\n\n Stack<Character> stack = new Stack<>();\n\n String formattedRegEx = formatRegEx(regex);\n\n for (Character c : formattedRegEx.toCharArray()) {\n switch (c) {\n case '(': {\n stack.push(c);\n break;\n }\n case ')': {\n while (!stack.peek().equals('(')) {\n postfix += stack.pop();\n }\n stack.pop();\n break;\n }\n default: {\n while (stack.size() > 0) {\n Character topChar = stack.peek();\n\n Integer topCharPrecedence = getPrecedence(topChar);\n Integer actualCharPrecedence = getPrecedence(c);\n\n if (topCharPrecedence >= actualCharPrecedence) {\n postfix += stack.pop();\n } else {\n break;\n }\n }\n stack.push(c);\n break;\n }\n }\n }\n while (stack.size() > 0) {\n postfix += stack.pop();\n }\n\n return postfix;\n }",
"@Override\n\tpublic String toPostfixNotation() {\n\t\tint num;\n\t\tExpressionTree left, right;\n\n\t\ttry {\n\t\t\tnum = Integer.parseInt(EMPTY + this.getValue());\n\t\t\treturn EMPTY + num;\n\t\t}\n\t\tcatch(NumberFormatException n) {\n\t\t\tleft = new ExpressionTree(getLeft());\n\t\t\tright = new ExpressionTree(getRight());\n\t\t\t\n\t\t\treturn left.toPostfixNotation() + SPACE + right.toPostfixNotation() + SPACE \n\t\t\t\t+ getValue();\n\t\t}\n\t}",
"private ArrayList<Affix> cleanInfix(ArrayList<Affix> origInfix)\n\t{\n\n\t\tArrayList<Affix> resultAffixes = new ArrayList<Affix>();\n\t\tAffix tempAffix, resultAffix;\n\t\tString resultingAffix = \"\";\n\t\tString singleAffix;\n\n\t\tfor( int i = 0; i < origInfix.size(); i++ )\n\t\t{\n\t\t\ttempAffix = origInfix.get(i);\n\t\t\tsingleAffix = tempAffix.getAffix();\n\n\t\t\tfor( int k = 0; k < singleAffix.length(); k++ )\n\t\t\t{\n\t\t\t\tif( singleAffix.charAt(k) == '-' )\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tresultingAffix = resultingAffix + singleAffix.charAt(k);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif( !resultingAffix.equalsIgnoreCase(\"\") )\n\t\t\t{\n//\t\t\t\tprintln(\"---------- resultingAffix: \" + resultingAffix);\n\t\t\t\tresultAffix = new Affix(resultingAffix, \"infix\");\n\t\t\t\tresultAffixes.add(resultAffix);\n\t\t\t}\n\n\t\t}\n\n\n\t\treturn resultAffixes;\n\t}",
"private String getInfixNotation(String query){\n Stack<Character> signs = new Stack<Character>();\n ArrayList<String> queryParts = new ArrayList<String>();\n String[] splitedQuery = query.split(\" \");\n String infixQuery;\n\n for(int i = 0; i < splitedQuery.length; i++){\n if(isSignOperator(splitedQuery[i]))\n signs.push(splitedQuery[i].charAt(0));\n else if(isOrderByCommand(splitedQuery[i]))\n queryParts.add(splitedQuery[i] + \" \" + splitedQuery[++i] + \" \" + splitedQuery[++i]);\n else {\n String word0 = splitedQuery[i];\n Character sign = signs.pop();\n String word1 = splitedQuery[++i];\n\n queryParts.add(\" ( \" + word0 + \" \" + sign + \" \" + word1 + \" ) \");\n this.subQueries.add(word0 + \" \" + sign + \" \" + word1);\n }\n }\n\n infixQuery = queryParts.get(0);\n\n for(int j = 1; j < queryParts.size(); j++){\n if(!signs.empty()) {\n infixQuery = \" ( \" + infixQuery + signs.pop() + queryParts.get(j) + \" ) \";\n }else\n infixQuery += \" \" + queryParts.get(j).toUpperCase();\n }\n\n return infixQuery;\n }",
"@Test\n public void t10() {\n try {\n sampleRule = \"&8=\\\"FIX.4.2Aqua\\\";&9000[0]->&9001=\\\"D\\\"\";\n rules = new InfixActions(sampleRule);\n result = rules.transformFIXMsg(TestCustomDictionary.customMsg42, \"FIX.4.2Aqua\"); // System.out.println(result);\n resultStore = StaticTestingUtils.parseMessage(result);\n String r = resultStore.get(\"9001\").get(0);\n Assert.assertEquals(r, \"D\");\n r = resultStore.get(\"8\").get(0);\n Assert.assertEquals(r, \"FIX.4.2Aqua\");\n System.out.println(StaticTestingUtils.rs(result));\n sampleRule = \"&8=\\\"FIX.4.2\\\"\";\n rules = new InfixActions(sampleRule);\n result = rules.transformFIXMsg(result, \"FIX.4.2Aqua\");\n resultStore = StaticTestingUtils.parseMessage(result);\n r = resultStore.get(\"8\").get(0);\n Assert.assertEquals(r, \"FIX.4.2\");\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail();\n }\n }",
"private String translateInfixExpression(InfixExpression e) {\n String left = translateExpression(e.getLeft());\n String right = translateExpression(e.getRight());\n return String.format(\"(%s %s %s)\", left, e.getOp(), right);\n }",
"private static String getPostfix(String s) {\n\t\tif(s.length() == 0){\n\t\t\treturn null;\n\t\t}\n\t\tString[] expression = s.split(\" \");\n\t\tStack stack = new Stack();\n\t\tString result = null;\n\t\tfor(int i = 0; i<expression.length;i++){\n\t\t\tString temp = expression[i];\n\t\t\tif(temp.equals(\"+\") || temp.equals(\"-\") || temp.equals(\"*\") || temp.equals(\"/\") || temp.equals(\"%\")){\n\t\t\t\twhile(!stack.isEmpty() && hasHigherPriority(stack.top(),temp)){\n\t\t\t\t\tif(result == null){\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Expression is not infix\");\n\t\t\t\t\t}\n\t\t\t\t\tresult = result + stack.pop();\n\t\t\t\t}\n\t\t\t\tstack.push(temp);\n\t\t\t}else{\n\t\t\t\tif(result == null){\n\t\t\t\t\tresult = temp;\n\t\t\t\t}else{\n\t\t\t\t\tresult = result + temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\twhile(!stack.isEmpty()){\n\t\t\tresult = result + stack.pop();\n\t\t}\n\t\treturn result;\n\t}",
"private String toReversePolishNotation(String expr) {\n\t\tString output = \"\";\n\t\tStack<String> operatorStack = new Stack<String>();\n\n\t\tfor(String token : expr.split(\"\\\\s+\")) {\n\t\t\tif(isNumber(token)) {\n\t\t\t\toutput += token + \" \";\n\t\t\t}\n\t\t\telse if(isMatrix(token)) {\n\t\t\t\toutput += token + \" \";\n\t\t\t}\n\t\t\telse if(isOperator(token)) {\n\t\t\t\tint precidenceToken = getPrecidence(token);\n\t\t\t\tint precidenceNext;\n\t\t\t\twhile(!operatorStack.isEmpty()) {\n\t\t\t\t\tprecidenceNext = getPrecidence(operatorStack.peek());\n\t\t\t\t\tif(precidenceNext >= precidenceToken) output += operatorStack.pop() + \" \";\n\t\t\t\t\telse break;\n\t\t\t\t}\n\t\t\t\toperatorStack.push(token);\n\t\t\t}\n\t\t\telse if(token.equals(\"(\")) {\n\t\t\t\toperatorStack.push(token);\n\t\t\t}\n\t\t\telse if(token.equals(\")\")) {\n\t\t\t\twhile(!operatorStack.peek().equals(\"(\")) output += operatorStack.pop() + \" \";\n\t\t\t\toperatorStack.pop();\n\t\t\t}\n\t\t\telse throw new IllegalArgumentException(INVALID_CHARACTER_MESSAGE);\n\t\t}\n\t\twhile(!operatorStack.isEmpty()) output += operatorStack.pop() + \" \";\n\n\t\treturn output;\n\t}",
"@Override\n public String infix(String string) \n {\n return infix;\n }",
"public static void main(String[] args) {\n\n String expresson = \"1+((2+3)*40)-5\";\n List<String> strings = toInffixExpresion(expresson);\n System.out.println(strings.toString());\n\n List<String> parse = parseSuffix(strings);\n System.out.println(parse);\n }",
"@Test\n\tpublic void postFixTest() {\n\t\tString query = \"( ( !hello | goodbye & hello ) & cya )\";\n\t\tString query2 = \"( hello & goodbye | foo & ( foo & bar ) )\";\n\t\t\n\t\t// this test verifies that implict AND's are added\n\t\tString query3 = \"( testing the waters | ( am & I ) | oh my )\";\n\t\tString query4 = \"a b c d e\";\n\t\t\n\t\tString queryAns = \"!hello goodbye hello & | cya &\";\n\t\tString query2Ans = \"hello goodbye & foo foo bar & & |\";\n\t\tString query3Ans = \"testing the & waters & am I & | oh my & |\";\n\t\tString query4Ans = \"a b & c & d & e &\";\n\t\t\n\t\tassertEquals(queryAns, String.join(\" \", queryTest.convertToPostfix(query.split(\" \"))));\n\t\tassertEquals(query2Ans, String.join(\" \", queryTest.convertToPostfix(query2.split(\" \"))));\n\t\tassertEquals(query3Ans, String.join(\" \", queryTest.convertToPostfix(queryTest.addExplicitAND(query3.split(\" \")))));\n\t\tassertEquals(query4Ans, String.join(\" \", queryTest.convertToPostfix(queryTest.addExplicitAND(query4.split(\" \")))));\n\t}",
"public static void main(String args[])\n {\n PostfixToInfixConversion obj = new PostfixToInfixConversion();\n Scanner sc = new Scanner(System.in);\n System.out.print(\"Enter the postfix expression you want to convert: \");\n//reads a postfix expression from the user\n String postfixstring = sc.next(); //for example ab+\n//prints the infix expression\n System.out.println(\"Infix expression for the given postfix expression is: \" + obj.convertPostfixToInfix(postfixstring));\n }",
"public String parsePrefixToPostfix(String exp) throws SyntaxError {\n \tif (exp.length() == 0) {\n \t\tthrow new SyntaxError(\"No expression has been entered.\");\n \t}\n //parser accepts user input into exp\n \tScanner parser = new Scanner(exp);\n int element;\n String operator;\n String entity;\n String postfixExpression = \"\"; \n String firstOperand, secondOperand;\n int result = 0;\n \n //tokenize prefix string and set up 2 stacks\n Stack<String> operandStack = new Stack<String>();\n Stack<String> reverseOperatorStack = new Stack<String>();\n //while statement to push onto the reversal stack if there are more tokens\n while (parser.hasNext()) {\n entity = parser.next();\n // unless there is a space\n if (!entity.equals(\" \"))\n reverseOperatorStack.push(entity);\n }\n try { \n \t// while statement to pop to reversal stack if it is not empty\n \twhile (!reverseOperatorStack.isEmpty()) {\n //peek to retrieve the token at the top of the stack\n \t\tentity = reverseOperatorStack.peek();\n \t\t//pop to take the token off the stack\n\t reverseOperatorStack.pop();\n\t \n\t // if it is an operand\n\t if (Character.isDigit(entity.charAt(0))) {\n\t \t//push token onto the operand stack\n\t \toperandStack.push(entity);\n\t }\n\t // if it is an operator\n\t else if (entity.equals(\"/\") || entity.equals(\"*\") \n\t \t\t|| entity.equals(\"+\") || entity.equals(\"-\")) {\n\t \t//retrieve, then pop first operand off the stack\n\t \tfirstOperand = operandStack.peek();\n\t operandStack.pop();\n\t //retrieve, then pop second operand off the stack\n\t secondOperand = operandStack.peek();\n\t operandStack.pop();\n\t // formats miniExpression String with the 2 operands followed by the operator \n\t String miniExpression = firstOperand + \" \" + secondOperand + \" \" + entity;\n\t //push the string onto the operand stack\n\t operandStack.push(miniExpression);\n\t }\n \t}\n \t //throws error if there is an incorrect entry improperly formatted \t\n } catch (Exception e) {\n throw new SyntaxError(\"You have entered an improper expression. Check your input.\");\n }\n //retrieve, then pop the postfix expression off the stack\n postfixExpression = operandStack.peek();\n operandStack.pop();\n //return postfix - holding the converted expression\n return postfixExpression; \n }",
"public String infix()\n\t {\n\t \t// create an empty string builder // \n\t \tStringBuilder sb = new StringBuilder();\n\t \t\n\t \t// fill the string builder//\n\t \tinfix(root, sb);\n\t \t\n\t \treturn sb.toString().trim();\n\t }",
"@Override\n\tpublic int postfixEval(String[] exp) {\n\t\t\n\t\tStack<Integer> stk = new Stack<Integer>();\n\t\t\n\t\tfor(String part: exp) {\n\t\t\tif(part.equals(EMPTY))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tstk.push(Integer.parseInt(part));\n\t\t\t}\n\t\t\tcatch (NumberFormatException n) {\n\t\t\t\tif(part.equals(PLUS_SIGN))\n\t\t\t\t\tstk.push(stk.pop() + stk.pop());\n\t\t\t\telse\n\t\t\t\t\tstk.push(stk.pop() * stk.pop());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn stk.pop();\n\t}",
"public String postfix()\n\t {\n\t \t// create an empty string builder // \n\t \tStringBuilder sb = new StringBuilder();\n\t \t\n\t \t// fill the string builder//\n\t \tpostfix(root, sb);\n\t \t\n\t \treturn sb.toString().trim();\n\t }",
"protected void operation(String operator){\n if (this.tail<2){\n this.arr[tail++] = this.value;\n this.arr[tail++] = operator;\n } else{\n if (this.peek() != \")\"){\n this.arr[this.tail++] = this.value;\n }\n this.arr[this.tail++] = operator;\n }\n this.value=\"\"; // reset tracking variables\n this.decimalUsed = false;\n }",
"public Polynomial postfixEval(List<Token> postfixtokenList){\n ArrayDeque<Token> stack = new ArrayDeque<Token>(); \n\n Polynomial result = new Polynomial(); \n for (Token token : postfixtokenList){\n if (token instanceof Polynomial)\n stack.push(token); \n else if (token instanceof Operator){\n Polynomial op2 = (Polynomial) stack.pop(); \n Polynomial op1 = (Polynomial) stack.pop(); \n result = ((Operator) token).operate(op1, op2);\n if (result == null) //for division by 0\n return null;\n stack.push(result); \n }\n }\n result = (Polynomial) stack.pop(); \n if (storingVar != ' '){\n memory.put(storingVar, result); \n storingVar = ' ';\n }\n return result; \n }",
"@Override\n\tpublic String toInfixNotation() {\n\t\tint num;\n\t\tExpressionTree left, right;\n\n\t\ttry {\n\t\t\tnum = Integer.parseInt(EMPTY + this.getValue());\n\t\t\treturn EMPTY + num;\n\t\t}\n\t\tcatch(NumberFormatException n) {\n\t\t\tleft = new ExpressionTree(getLeft());\n\t\t\tright = new ExpressionTree(getRight());\n\t\t\t\n\t\t\treturn OPEN_PAREN + left.toInfixNotation() + SPACE + getValue() \n\t\t\t\t\t+ SPACE + right.toInfixNotation() + CLOSED_PAREN;\n\t\t}\n\t}",
"int[] productExceptSelf(int[] nums) {\n int leng = nums.length;\n int[] ret = new int[leng];\n if (leng == 0)\n return ret;\n int runningprefix = 1;\n for (int i = 0; i < leng; i++) {\n ret[i] = runningprefix;\n runningprefix *= nums[i];\n }\n int runningsufix = 1;\n for (int i = leng - 1; i >= 0; i--) {\n ret[i] *= runningsufix;\n runningsufix *= nums[i];\n }\n return ret;\n }",
"private void infix(ExpressionNodes root, StringBuilder sb)\n\t {\t\n\t \t\n\t \tif (root.left != null) // if there is a left child\n\t \t{ \n\t \t\tinfix(root.left, sb); // run recursive method \n\t \t}\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t \t\n\t \t\n\t \tif (root.right != null) // if there is a right child\n\t \t{ \n\t \t\tinfix(root.right, sb); // run recursive method \n\t \t}\n\t \t\n\t }",
"public String parsePostfixToPrefix(String exp) throws SyntaxError {\n \t// throws error message if there is no expression entered\n \tif (exp.length() == 0) {\n \t\tthrow new SyntaxError(\"No expression has been entered.\");\n \t}\n Scanner parser = new Scanner(exp);\n String entity;\n //tokenize the string containing the postfix expression\n Stack<String> operandStack = new Stack<String>();\n String firstOperand, secondOperand;\n // try-catch to validate data has been entered\n try {\n\t \t//while there are more tokens\n \t\twhile (parser.hasNext()) {\n\t entity = parser.next();\n\t // if it is a space, skip it\n\t if (entity.equals(\" \"));\n\t // if it is a operand, push it onto the operand stack\n\t if (Character.isDigit(entity.charAt(0)))\n\t operandStack.push(entity);\n\t // if it is an operator\n\t else if (entity.equals(\"/\") || entity.equals(\"*\") \n\t || entity.equals(\"+\") || entity.equals(\"-\")) {\n\t \t//retrieve, then pop operand 1 off the operand stack\n\t \tsecondOperand = operandStack.peek();\n\t operandStack.pop();\n\t //retrieve, then pop operand 2 off the operand stack\n\t firstOperand = operandStack.peek();\n\t operandStack.pop();\n\t // formats miniExpression String with the operator followed by 2 operands\n\t String miniExpression = entity + \" \" + firstOperand + \" \" + secondOperand;\n\t //push the miniExpression string onto the operand stack\n\t operandStack.push(miniExpression);\n\t }\n\t }\n\t //throws error if there is an incorrect entry improperly formatted \t\n } catch (Exception e) {\n \tthrow new SyntaxError(\"You have entered an improper expression. Check your input.\");\n }\n //retrieve, then pop the prefix expression off the operand stack\n String prefix = operandStack.peek();\n operandStack.pop();\n //return prefix - holding the converted expression\n return prefix;\n }",
"public static void main(String[] args) {\n\t\tString str = \"264*8/+3-\";\n\t\t\n\t\tStack<Integer> val = new Stack<>();\n\t\tStack<String> in = new Stack<>();\n\t\tStack<String> pre = new Stack<>();\n\t\tfor(int i=0;i<str.length();i++) {\n\t\t\tchar ch = str.charAt(i);\n\t\t\tif(ch=='/'||ch=='+'||ch=='-'||ch=='*') {\n\t\t\t\tint val2 = val.pop();\n\t\t\t\tint val1 = val.pop();\n\t\t\t\tint valueVal = operations(val1, val2, ch);\n\t\t\t\tval.push(valueVal);\n\t\t\t\tString v2in = in.pop();\n\t\t\t\tString v1in = in.pop();\n\t\t\t\tString valueIn = \"(\"+v1in+ch+v2in+\")\";\n\t\t\t\tin.push(valueIn);\n\t\t\t\tString v2pre = pre.pop();\n\t\t\t\tString v1pre = pre.pop();\n\t\t\t\tString valuePre = ch+v1pre+v2pre;\n\t\t\t\tpre.push(valuePre);\n\t\t\t}else {\n\t\t\t\tval.push(ch-'0');\n\t\t\t\tin.push(ch+\"\");\n\t\t\t\tpre.push(ch+\"\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(val.pop());\n\t\tSystem.out.println(pre.pop());\n\t\tSystem.out.println(in.pop());\n\t}",
"public String getPostfix() {\n \t\t\treturn postfix;\n \t\t}",
"public final void rule__XPostfixOperation__FeatureAssignment_1_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:17747:1: ( ( ( ruleOpPostfix ) ) )\r\n // InternalDroneScript.g:17748:2: ( ( ruleOpPostfix ) )\r\n {\r\n // InternalDroneScript.g:17748:2: ( ( ruleOpPostfix ) )\r\n // InternalDroneScript.g:17749:3: ( ruleOpPostfix )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_1_0()); \r\n }\r\n // InternalDroneScript.g:17750:3: ( ruleOpPostfix )\r\n // InternalDroneScript.g:17751:4: ruleOpPostfix\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementOpPostfixParserRuleCall_1_0_1_0_1()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleOpPostfix();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementOpPostfixParserRuleCall_1_0_1_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public static void main(String[] args) throws FileNotFoundException {\n Stack postfixStack = new Stack();\n\n// create a dat file scanner\n\n //String path = new File(\"HW1/src/com/sunynp/assign1-in.dat\").getAbsolutePath();\n //System.out.println(path);\n Scanner datscan = new Scanner(new File(\"assign1-in.dat\"));\n double[] input = new double[100];\n int i = 0;\n\n while (datscan.hasNextLine()) {\n String s = datscan.nextLine();\n System.out.print(\"The value of \\\"\" + s + \"\\\" is \");\n String op = \"\";\n\n\n String[] parts = s.split(\" \");\n for (String next : parts) {\n\n Double a;\n Double b;\n switch (next) {\n case \"+\":\n a = postfixStack.pop();\n b = postfixStack.pop();\n // System.out.println(a + b);\n postfixStack.push(a + b);\n\n break;\n case \"-\":\n b = postfixStack.pop();\n a = postfixStack.pop();\n // System.out.println(a - b);\n postfixStack.push(a - b);\n break;\n case \"*\":\n a = postfixStack.pop();\n b = postfixStack.pop();\n //System.out.println(a * b);\n postfixStack.push(a * b);\n break;\n case \"/\":\n b = postfixStack.pop();\n a = postfixStack.pop();\n // System.out.println(a / b);\n postfixStack.push(a / b);\n break;\n case \"_\":\n a = postfixStack.pop();\n // System.out.println(0 - a);\n postfixStack.push(0 - a);\n break;\n case \"#\":\n a = postfixStack.pop();\n\n // System.out.println(Math.sqrt(a));\n postfixStack.push(Math.sqrt(a));\n break;\n case \"^\":\n b = postfixStack.pop();\n a = postfixStack.pop();\n // System.out.println(Math.pow(a, b));\n postfixStack.push(Math.pow(a, b));\n break;\n case \" \":\n //System.out.println(\"SPACE\");\n break;\n default:\n\n\n postfixStack.push(Double.valueOf(next));\n\n }\n }\n System.out.println(postfixStack.pop());\n System.out.println();\n }\n\n System.out.println(\"Bye-bye!\");\n datscan.close();\n }",
"static String arithmeticExpressions(int[] arr) {\n String result = \"\";\n String[] operation = {\"+\", \"-\", \"*\"};\n boolean done = false;\n Map<Integer, String> outputToExpression = new HashMap<>();\n outputToExpression.put(arr[0], String.valueOf(arr[0]));\n for(int i = 1; i < arr.length; i++) {\n Map<Integer, String> tempOutputToExpression = new HashMap<>();\n int currentInteger = arr[i];\n final Set<Map.Entry<Integer, String>> entry2 = outputToExpression.entrySet();\n for(int entry : outputToExpression.keySet()) {\n for(int k = 0; k < operation.length; k++) {\n int tempOutput = entry;\n if(operation[k].equals(\"+\")) {\n tempOutput = tempOutput + currentInteger;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"+\" + currentInteger);\n }\n if(operation[k].equals(\"-\")) {\n tempOutput = tempOutput - currentInteger;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"-\" + currentInteger);\n }\n if(operation[k].equals(\"*\")) {\n tempOutput = (tempOutput * currentInteger) % 101;\n tempOutputToExpression.put(tempOutput, outputToExpression.get(entry) + \"*\" + currentInteger);\n }\n if(tempOutput % 101 == 0) {\n result = tempOutputToExpression.get(tempOutput);\n for(int j = i + 1; j < arr.length; j++) {\n result += \"*\" + arr[j];\n }\n done = true;\n }\n if(done) break;\n }\n if(done) break;\n }\n if(done) break;\n outputToExpression = tempOutputToExpression;\n }\n\n\n return result;\n }",
"public String get_postfix()\n\t{\n\t\treturn temp;\n\t}",
"private static String[] calculateAllAdditionsAndSubtractions(String[] formulaArray){\n Integer operatorPosition = getAdditionOrSubtractionPosition(formulaArray);\n while(operatorPosition!=-1){\n try {\n formulaArray = calculateAdditionOrSubtraction(formulaArray, operatorPosition);\n }catch(Exception e){\n System.err.println(e);\n }\n operatorPosition= getAdditionOrSubtractionPosition(formulaArray);\n }\n return formulaArray;\n\n }",
"public static int evaluate(Math impl, String[] postfix) throws StackOverflowError, MalformedPostfixException {\n\n // a stack for implementing the evaluation\n Stack<Integer> stack = new Stack<Integer>();\n\n try {\n \n for (int i = 0; i < postfix.length; i++) {\n\n if (postfix[i].length() == 1 && !Character.isDigit(postfix[i].charAt(0))) {\n\n // if the first character of the element is not a digit then we \n // assume it is an operator\n\n String operator = postfix[i];\n\t\t\n if (operator.equals(\"<\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.lshift(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\">\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.rshift(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"+\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.add(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"-\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.sub(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"*\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.mul(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"/\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.div(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"^\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.pow(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"!\")) {\n int num = stack.pop();\n int result = impl.fac(num);\n stack.add(result);\n } // if\n\n } else {\n\n // otherwise we assume it is an operand and add it to the stack\n stack.add(Integer.parseInt(postfix[i]));\n\n } // if\n\n } // for\n\n } catch (Exception e) {\n \n // propogate as a malformed postfix exception\n throw new MalformedPostfixException(postfix);\n \n } // try\n \n // if the stack size is not 1, then the expression is malformed\n if (stack.size() != 1) {\n throw new MalformedPostfixException(postfix);\n } // if\n\n // the only element left in the stack will be the result of the evaluation\n return stack.pop();\n\n }",
"public static String inFixToPostFix(String equation) {\n\t\tString postFix = \"\";\n\n\t\tequation = equation.replaceAll(\"\\\\s+\", \"\");\n\n\t\tPattern pattern = Pattern.compile(\"\\\\d+\\\\p{Alpha}\");\n\t\tMatcher match = pattern.matcher(equation);\n\n\t\tequation = equation.replaceAll(\"(?<=\\\\p{Alpha})(?=\\\\d)|(?<=\\\\d)(?=\\\\p{Alpha})\", \"*\");\n\t\tequation = equation.replaceAll(\"^-|\\\\-(?=\\\\()\", \"-1*\");\n\t\tequation = equation.replaceAll(\"\\\\)\\\\(\",\")*(\");\n\t\tequation = equation.replaceAll(\"-x\", \"-1*x\");\n//\t\tequation = equation.replaceAll(\"(?<=\\\\^)\\\\-\", \"(-\");\n\n\t\t// context of \"-\"\n\n\t\t// finding 3*x or 3/x\n\t\tString vars = \"(\\\\p{Alpha})\";\n\n\t\t// letters without coefficients\n\t\tString coeff = \"(\\\\d*\\\\.?\\\\d*\\\\.?\\\\d+|^\\\\-\\\\d+|(?<=\\\\()\\\\-\\\\d+)|(?<=\\\\p{Punct})\\\\-\\\\d+\";\n//\t\tString coeffDec = \"\\\\d+\";\n\t\t\n\t\t\n\t\t// operators\n\t\tString oper = \"\\\\+|(?<!^)\\\\-|\\\\*|\\\\/|\\\\^\";\n\t\tString oper2 = \"\\\\+|\\\\-|\\\\*|\\\\/|\\\\^\";\n\n\t\tString brackets = \"\\\\(|\\\\)\";\n\n\t\tpattern = Pattern.compile(vars + \"|\" + coeff + \"|\" + oper + \"|\" + brackets);\n\t\tmatch = pattern.matcher(equation);\n\n\t\tLinkedList<String> stack = new LinkedList<String>();\n\n\t\tHashtable<String, Integer> priority = new Hashtable<String, Integer>();\n\n\t\tpriority.put(\"+\", 0);\n\t\tpriority.put(\"-\", 0);\n\t\tpriority.put(\"/\", 1);\n\t\tpriority.put(\"*\", 1);\n\t\tpriority.put(\"^\", 2);\n\n\t\tpriority.put(\"(\", 2);\n\t\tpriority.put(\")\", 2);\n\t\tboolean first = true;\n\t\twhile (match.find()) {\n//\t\t\tSystem.out.println(match.group());\n\t\t\tif (match.group().matches(vars + \"|\" + coeff)) {\n\n\t\t\t\tpostFix = postFix + match.group() + \" \";\n\n\t\t\t} else if (match.group().matches(oper2) || match.group().matches(\"\\\\(\")) {\n\n\t\t\t\tif (stack.isEmpty()) {\n\t\t\t\t\tstack.push(match.group());\n\t\t\t\t\tfirst = true;\n\n\t\t\t\t} else if (priority.get(match.group()).intValue() < priority.get(stack.peek()).intValue()) {\n\n\t\t\t\t\twhile (!stack.isEmpty() && !stack.peek().matches(brackets)) {\n\t\t\t\t\t\t// //System.out.println(stack.peek());\n\t\t\t\t\t\tpostFix = postFix + stack.peek() + \" \";\n\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t// //System.out.println(stack.peek());\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!first) {\n\t\t\t\t\tstack.push(match.group());\n\n\t\t\t\t}\n\t\t\t\tfirst = false;\n\t\t\t} else if (match.group().matches(\"\\\\)\")) {\n\t\t\t\twhile (!stack.peek().matches(\"\\\\(\")) {\n\t\t\t\t\t// //System.out.println(stack.peek());\n\t\t\t\t\tpostFix = postFix + stack.peek() + \" \";\n\t\t\t\t\tstack.pop();\n\t\t\t\t\t// //System.out.println(stack.peek());\n\t\t\t\t}\n\t\t\t\tstack.pop();\n\t\t\t}\n\n\t\t}\n\t\tif (!stack.isEmpty()) {\n\t\t\twhile (!stack.isEmpty()) {\n\t\t\t\tpostFix = postFix + stack.peek() + \" \";\n\t\t\t\tstack.pop();\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(equation);\n\t\t//System.out.println(postFix);\n\t\treturn postFix;\n\t}",
"private void postfix(ExpressionNodes root, StringBuilder sb)\n\t {\n\t \tif (root.left != null) // if there is a left child\n\t \t{ \n\t \t\tpostfix(root.left, sb); // run recursive method\n\t \t}\n\t \t\n\t \tif (root.right != null) // if there is a right child\n\t \t{ \n\t \t\tpostfix(root.right, sb); // run recursive method \n\t \t}\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t }",
"String[] translate(String[] input);",
"public static void main(String[] args) {\n //edgeCases();\n calc C = new calc();\n Scanner scan = new Scanner(System.in);\n boolean quit = false;\n boolean hasVar = false;\n \n while(!quit){\n System.out.print(\"Enter infix expression: \");\n hasVar = false;\n String infix = scan.nextLine();\n String[] postfix = new String[0];\n int x;\n \n if (C.hasVar(infix)){\n hasVar = true;\n }\n \n String[] infixArr = C.toArray(infix);\n \n if (C.isValidInfix(infixArr)) {\n postfix = C.infixToPost(infixArr);\n System.out.println(\"Converted expression: \" + C.toString(postfix));\n \n \n if (hasVar) {\n while(true){\n System.out.print(\"\\nEnter value of x: \");\n String input = scan.next();\n if (input.equals(\"q\")){\n quit = true;\n break;\n }\n \n String[] postfixTemp = Arrays.copyOf(postfix, postfix.length); \n for (int i = 0; i < postfix.length; i++){\n if (postfixTemp[i].equals(\"x\")){\n postfixTemp[i] = input;\n }\n }\n System.out.println(\"Answer to expression: \" + C.postfixCalc(postfixTemp));\n }\n }\n \n else {\n System.out.println(\"\\nAnswer to expression: \" + C.postfixCalc(postfix) + \"\\n\");\n }\n }\n }\n }",
"private String convertToString(ArrayList<String> arr, char sep) {\n StringBuilder builder = new StringBuilder();\n // Append all Integers in StringBuilder to the StringBuilder.\n for (String str : arr) {\n builder.append(str);\n builder.append(sep);\n }\n // Remove last delimiter with setLength.\n builder.setLength(builder.length() - 1);\n return builder.toString();\n }",
"private static List<Token> toReversePolishNotation(List<Token> tokens) {\n Stack<Token> operators = new Stack<>();\n List<Token> result = new LinkedList<>();\n\n Map<PredicateTokens, Consumer<Token>> tokensActions = new HashMap<>();\n tokensActions.put(PredicateTokens.VALUE, result::add);\n tokensActions.put(PredicateTokens.NEGATION, operators::push);\n tokensActions.put(PredicateTokens.OPEN_BRACKET, operators::push);\n tokensActions.put(PredicateTokens.CLOSE_BRACKET, t -> {\n while (PredicateTokens.OPEN_BRACKET != toPredicateToken(operators.peek())) {\n result.add(operators.pop());\n }\n\n operators.pop();\n });\n tokensActions.put(PredicateTokens.OR, t -> {\n try {\n while (PredicateTokens.NEGATION == toPredicateToken(operators.peek())\n || PredicateTokens.AND == toPredicateToken(operators.peek())) {\n result.add(operators.pop());\n }\n } catch (EmptyStackException ignored) {\n }\n\n operators.add(t);\n });\n tokensActions.put(PredicateTokens.AND, t -> {\n try {\n while (PredicateTokens.NEGATION == toPredicateToken(operators.peek())) {\n result.add(operators.pop());\n }\n } catch (EmptyStackException ignored) {\n }\n\n operators.add(t);\n });\n\n for (Token t : tokens) {\n tokensActions.get(toPredicateToken(t)).accept(t);\n }\n\n while (!operators.isEmpty()) {\n result.add(operators.pop());\n }\n\n return result;\n }",
"public String toPostfixString() {\n if (flavors.isEmpty()) {\n return \"\";\n }\n return \"#\" + toCommaSeparatedString();\n }",
"protected float post2ans(String[] a){\n Stack<Float> stack=new Stack<>();\n float result = 0f;\n String s;\n\n for (int i=0 ; i<(tail) ; i++){\n boolean notNum = true;\n s = a[i];\n\n switch (s){\n case\"/\":\n case\"*\":\n case\"+\":\n case\"-\":\n break;\n default: // by here assume number\n stack.push(toFloat(s));\n notNum = false;\n }\n\n if(notNum){\n float val2 = stack.pop();\n float val1 = stack.pop();\n\n switch(s){\n case\"+\":\n stack.push(val1+val2);\n break;\n case\"-\":\n stack.push(val1-val2);\n break;\n case\"/\":\n stack.push(val1/val2);\n break;\n case\"*\":\n stack.push(val1*val2);\n break;\n\n }\n }\n }\n return stack.pop();\n }",
"private static String[] calculateAdditionOrSubtraction(String[] formulaArray, Integer operatorPosition) throws Exception {\n int arrayLength = formulaArray.length;\n String[] arrayAfterCalculations= new String[formulaArray.length-2];\n\n // Same array until the number before the operator.\n for (int i = 0; i < operatorPosition - 1; i++) {\n arrayAfterCalculations[i] = formulaArray[i];\n }\n if(formulaArray[operatorPosition].equals(\"+\")) {\n arrayAfterCalculations[operatorPosition - 1] = add(formulaArray[operatorPosition-1],formulaArray[operatorPosition+1]);\n }else if(formulaArray[operatorPosition].equals(\"-\")) {\n arrayAfterCalculations[operatorPosition - 1] = subtract(formulaArray[operatorPosition-1],formulaArray[operatorPosition+1]);\n }else{\n throw new Exception(\"Unknown Operation Exception\");\n }\n // the rest of the array\n for (int i = operatorPosition+2; i < formulaArray.length; i++) {\n arrayAfterCalculations[i-2]= formulaArray[i];\n }\n return arrayAfterCalculations;\n }",
"private static String[] calc5(String[] s) {\n\t\ts[0]+=\"!\";\n\t\treturn s;\n\t}",
"private static Object[] chop(final Object[] t) {\r\n for(int i = 0; i < t.length; ++i) {\r\n if(t[i] instanceof byte[]) {\r\n t[i] = Token.string((byte[]) t[i]);\r\n } else if(t[i] instanceof Throwable) {\r\n final Throwable th = (Throwable) t[i];\r\n t[i] = th.getMessage() != null ? th.getMessage() : th.toString();\r\n } else if(!(t[i] instanceof String)) {\r\n t[i] = t[i].toString();\r\n }\r\n // [CG] XQuery/Exception: verify if/which strings are to be chopped\r\n //final String s = t[i].toString();\r\n //t[i] = s.length() > 1000 ? s.substring(0, 1000) + DOTS : s;\r\n }\r\n return t;\r\n }",
"private static String[] calculateMultiplicationOrDivision(String[] formulaArray, Integer operatorPosition) throws Exception {\n int arrayLength = formulaArray.length;\n String[] arrayAfterCalculations= new String[formulaArray.length-2];\n\n // Same array until the number before the operator.\n for (int i = 0; i < operatorPosition - 1; i++) {\n arrayAfterCalculations[i] = formulaArray[i];\n }\n if(formulaArray[operatorPosition].equals(\"*\")) {\n arrayAfterCalculations[operatorPosition - 1] = multiply(formulaArray[operatorPosition-1],formulaArray[operatorPosition+1]);\n }else if(formulaArray[operatorPosition].equals(\"/\")) {\n String divisionResult = divide(formulaArray[operatorPosition-1],formulaArray[operatorPosition+1]);\n if(!divisionResult.equals(\"DIVIDED_BY_ZERO\")){\n arrayAfterCalculations[operatorPosition - 1] =divisionResult;\n }else{\n return (new String[]{\"DIVIDED_BY_ZERO\"});\n }\n }else{\n throw new Exception(\"Unknown operation exception\");\n }\n // the rest of the array\n for (int i = operatorPosition+2; i < formulaArray.length; i++) {\n arrayAfterCalculations[i-2]= formulaArray[i];\n }\n return arrayAfterCalculations;\n }",
"public EvalPostfix(String postfix, PrintWriter pw)\r\n {\r\n this.pw = pw;\r\n numbers = new ObjectStack();\r\n }",
"public static ArrayDeque<String> parseSingle (String inputString) {\n\n //using ArrayDeque here since it does everything and is flexible. Could do a linkedList though..?\n ArrayDeque inputQueue = new ArrayDeque<String>();; //input queue. not sure if i really need this\n ArrayDeque outputQueue = new ArrayDeque<String>();//output queue\n ArrayDeque operatorStack = new ArrayDeque<String>(); //operator stack\n\n //remove spaces\n inputString = inputString.replaceAll(\"\\\\s+\", \"\");\n\n String inputArray[] = inputString.split(\"(?<==>|&|~|\\\\/|<=>)|(?==>|&|~|\\\\/|<=>)\"); //TODO build this regex dynamically from Connective enum\n for (String inputElement: inputArray) {\n inputQueue.add(inputElement);\n }\n\n //convert to rpn form\n //don't worry about parentheses, do later as part of research\n while (!inputQueue.isEmpty()) {\n //check if element is a operator\n if (isOperator((String)inputQueue.peekFirst())) {\n\n //add operator to stack if empty\n if (operatorStack.isEmpty()) {\n operatorStack.addLast(inputQueue.pollFirst());\n\n //while there is an operator on the operatorStack with greater precedence than the current pop that one\n } else if (compare((String)inputQueue.peekFirst(), (String)operatorStack.peekLast()) <= 0) {\n outputQueue.add(operatorStack.pollLast());\n continue; //need to restart loop since may be operatorStack.size() > 1\n } else {\n operatorStack.addLast(inputQueue.pollFirst());\n }\n //operands\n } else {\n outputQueue.add(inputQueue.pollFirst());\n }\n }\n\n //once inputQueue is empty need to finish draining the operators\n while (!operatorStack.isEmpty()) {\n outputQueue.add(operatorStack.pollLast());\n }\n\n //TODO: maybe convert proposition symbol to Horn form\n\n return (outputQueue);\n }",
"public static void main(String[] args) {\n\t\tEvaluateReversePolishNotation result = new EvaluateReversePolishNotation();\n\t\tSystem.out.println(result.evalusteReversePolishNotation(new String[] {\"2\", \"1\", \"+\", \"3\", \"*\"}));\n\t\tSystem.out.println(result.evalusteReversePolishNotation(new String[] {\"4\", \"13\", \"5\", \"/\", \"+\"}));\n\t\tSystem.out.println(result.evalusteReversePolishNotation(new String[] {\"0\", \"3\", \"/\"}));\n\t}",
"public int evalusteReversePolishNotation(String[] tokens) {\n\t\tif (tokens == null || tokens.length == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tStack<Integer> stack = new Stack<>();\n\t\tfor (String token: tokens) {\n\t\t\tif (token.equals(\"+\")) { // be care cannot use ==\n\t\t\t\tstack.push(stack.pop() + stack.pop());\n\t\t\t}\n\t\t\telse if (token.equals(\"-\")) {\n\t\t\t\tint b = stack.pop();\n\t\t\t\tint a = stack.pop();\n\t\t\t\tstack.push(a - b);\n\t\t\t}\n\t\t\telse if (token.equals(\"*\")) {\n\t\t\t\tstack.push(stack.pop() * stack.pop());\n\t\t\t}\n\t\t\telse if (token.equals(\"/\")) {\n\t\t\t\tint b = stack.pop();\n\t\t\t\tint a = stack.pop();\n\t\t\t\tstack.push(a / b);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tstack.push(Integer.valueOf(token));\n\t\t\t}\n\t\t}\n\t\treturn stack.pop();\n\t}",
"public static void main(String args[]) {\n StackVenkataKalyanKrishnaVarmaSagi<Integer> stackVenkataKalyanKrishnaVarmaSagi = new StackVenkataKalyanKrishnaVarmaSagi();\n\n //Take input\n System.out.println(\"Enter a string: \");\n Scanner scanner = new Scanner(System.in);\n String input = scanner.next();\n for (int i = 0; i < input.length(); i++) {\n if (input.charAt(i) == '*' || input.charAt(i) == '+' || input.charAt(i) == '-' || input.charAt(i) == '*' || input.charAt(i) == '^') {\n char operator = input.charAt(i);\n int a = stackVenkataKalyanKrishnaVarmaSagi.pop();\n int b = stackVenkataKalyanKrishnaVarmaSagi.pop();\n if (operator == '+')\n stackVenkataKalyanKrishnaVarmaSagi.push(b + a);\n if (operator == '-')\n stackVenkataKalyanKrishnaVarmaSagi.push(b - a);\n if (operator == '*')\n stackVenkataKalyanKrishnaVarmaSagi.push(b * a);\n if (operator == '/' && a != 0) //make sure you are not performing division with 0\n stackVenkataKalyanKrishnaVarmaSagi.push(b / a);\n if (operator == '^')\n stackVenkataKalyanKrishnaVarmaSagi.push((int) Math.pow(b, a));\n } else {\n int operand = Character.getNumericValue(input.charAt(i));\n stackVenkataKalyanKrishnaVarmaSagi.push(operand);\n }\n }\n if (stackVenkataKalyanKrishnaVarmaSagi.size() > 1)\n System.out.println(\"The input Postfix expression is not valid.\");\n else\n System.out.println(\"Result value: \" + stackVenkataKalyanKrishnaVarmaSagi.pop());\n }",
"public String solve(String postfixExp) {\n Stack<String> stack = new Stack<String>();\n char ch;\n int inputLength = postfixExp.length();\n\n for (int i = 0; i < inputLength; i++) {\n ch = postfixExp.charAt(i);\n\n if (ch == ' ') {\n // Do nothing, space found.\n }\n else if (isOperand(ch)) {\n int n = 0; // This will eventually hold our final value.\n\n while (isOperand(ch)) {\n n = (n * 10) + (int) (ch - '0');\n i++;\n ch = postfixExp.charAt(i);\n }\n i--;\n\n stack.push(Integer.toString(n));\n }\n else {\n double tempOne = Double.parseDouble(stack.pop());\n double tempTwo = Double.parseDouble(stack.pop());\n\n switch (ch) {\n case '+':\n stack.push(Double.toString(tempTwo + tempOne));\n break;\n case '-':\n stack.push(Double.toString(tempTwo - tempOne));\n break;\n case '*':\n stack.push(Double.toString(tempTwo * tempOne));\n break;\n case '/':\n if (tempOne == 0) {\n return \"Error: Division by 0\";\n } else {\n stack.push(Double.toString(tempTwo / tempOne));\n }\n break;\n case '^':\n double temp3 = (double)(Math.pow(tempTwo, tempOne));\n stack.push(Double.toString(temp3));\n break;\n }\n }\n }\n\n String evaluation = stack.pop();\n\n return evaluation;\n }",
"public static int evalPostfix(String postfix) throws PostFixException{\n\t\t//MyStack instance to store results of evaluation\n\t\tStack<Integer> result = new Stack<Integer>();\n\t\t\n\t\t//Scanner instance to scan tokens\n\t\tScanner getToken = new Scanner(postfix);\n\t\t\n\t\twhile(getToken.hasNext()){\n\t\t\t\n\t\t\tString curToken = getToken.next();\n\t\t\t//if the token is a valid operator, push it onto stack as a Double object\n\t\t\tif(isPositiveInteger(curToken)){\n\t\t\t\tresult.push(Integer.parseInt(curToken));\n\t\t\t}\n\t\t\t\n\t\t\t//if the current token is an operator\n\t\t\telse if(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\t\ttry{\n\t\t\t\t\t//Get the operands from the stack\n\t\t\t\t\tint operand2 = result.pop().intValue();\n\t\t\t\t\tint operand1 = result.pop().intValue();\n\t\t\t\t\t\n\t\t\t\t\t//find the operator and perform the arithmetic\n\t\t\t\t\tswitch(curToken){\n\t\t\t\t\t\tcase \"+\": result.push(operand1 + operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"-\": result.push(operand1 - operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"*\": result.push(operand1 * operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"/\": result.push(operand1 / operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tdefault: throw new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//if the stack is empty when attempting to pop, throw a PostFixException\n\t\t\t\tcatch(EmptyStackException e){\n\t\t\t\t\tthrow new PostFixException(\"Not enough operands\");\n\t\t\t\t}\n\t\t\t\t//If there is an ArithMetic Exception, rethrow it\n\t\t\t\tcatch(ArithmeticException e){\n\t\t\t\t\tthrow new ArithmeticException(\"Divide by 0\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if the token is not an operand or operator it is invalid,\n\t\t\t//throw a PostFixException\n\t\t\telse{\n\t\t\t\tthrow new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t}\n\t\t}\n\t\t\n\t\tgetToken.close();\n\t\t\n\t\t//if the result is not in the stack\n\t\tif(result.empty()){\n\t\t\tthrow new PostFixException(\"Not enough operands\");\n\t\t}\n\t\t\n\t\tint resultNum = result.pop().intValue();\n\t\t\n\t\t//If there are still operands in the stack\n\t\tif(!result.empty()){\n\t\t\tthrow new PostFixException(\"Too many operands\");\n\t\t}\n\t\t\n\t\treturn resultNum;\n\t}",
"public ArrayList<String> convertToRPN(String[] expression) {\n ArrayList<String> result = new ArrayList<String>();\n if (expression == null || expression.length == 0) {\n return result;\n }\n \n ExpressionTreeNode root = build(expression);\n Stack<ExpressionTreeNode> stack = new Stack<ExpressionTreeNode>();\n ExpressionTreeNode curr = null;\n ExpressionTreeNode prev = null;\n if (root == null) { // take care of here, null root can also be pushed to stack\n return result;\n }\n stack.push(root);\n while (!stack.isEmpty()) {\n curr = stack.peek();\n if (prev == null || prev.left == curr || prev.right == curr) {\n if (curr.left != null) {\n stack.push(curr.left);\n } else if (curr.right != null) {\n stack.push(curr.right);\n }\n } else if (curr.left == prev) {\n if (curr.right != null) {\n stack.push(curr.right);\n }\n } else {\n result.add(stack.pop().expression);\n }\n prev = curr;\n }\n \n return result;\n }",
"public String toStringRev() {\n String res= \"[\";\n // invariant: res = \"[s0, s1, .., sk\" where sk is the object after node n\n for (Node n = sentinel.pred; n != sentinel; n= n.pred) {\n if (n != sentinel.pred)\n res= res + \", \";\n res= res + n.data;\n }\n return res + \"]\";\n }",
"protected static char[] expand(char[] stack) {\n char[] newStack = new char[stack.length * 2];\n System.arraycopy(stack, 0, newStack, 0, stack.length);\n return newStack;\n }",
"@Test\n public void reverseArray () {\n\n int[] input = {-2,5,-1,7,-3};\n int[] output = {-3,7,-1,5,-2};\n assertArrayEquals(output, Computation.reversal(input));\n\n }",
"public static String getrp(String s){\n char[] arr = s.toCharArray();\n int len = arr.length;\n String out = \"\";\n\n for(int i = 0; i < len; i++){\n char ch = arr[i];\n if(ch == ' ') continue;\n\n // if is operand, add to\n // the output stream directly\n if(ch >= '0' && ch <= '9') {\n out+=ch;\n continue;\n }\n\n //if is '(', push to the stack directly\n if(ch == '(') op.push(ch);\n\n //if is '+' or '-', pop the operator\n // from the stack until '(' and add to\n // the output stream\n //push the operator to the stack\n if(ch == '+' || ch == '-'){\n while(!op.empty() && (op.peek() != '('))\n out+=op.pop();\n op.push(ch);\n continue;\n }\n\n //if is '*' or '/', pop the operator stack and\n // add to the output stream\n // until lower priority or '('\n //push the operator to the stack\n if(ch == '*' || ch == '/'){\n while(!op.empty() && (op.peek() == '*' || op.peek() == '/'))\n out+=op.pop();\n op.push(ch);\n continue;\n }\n\n //if is ')' pop the operator stack and\n // add to the output stream until '(',\n // pop '('\n if(ch == ')'){\n while(!op.empty() && op.peek() != '(')\n out += op.pop();\n op.pop();\n continue;\n }\n }\n while(!op.empty()) out += op.pop();\n return out;\n }",
"public static ArrayList<String> makePostV(String s){\r\n String sD = s+\"$\";\r\n Stack<String> st1 = new Stack<String>();//Operators and parenthesis are stored temporarily on string stack \"st1\"\r\n ArrayList<String> postV = new ArrayList<String>();\r\n int p=0;//Pointer for each character in the expression; Gets incremented \r\n \r\n while(p<s.length()){\r\n int count = 0;//Count for making sure only one of the following \"if\"s are executed in one iteration \r\n String s1=Character.toString(sD.charAt(p));\r\n \r\n String sNext = Character.toString(sD.charAt(p+1));\r\n if(Character.toString(s1.charAt(s1.length()-1)).matches(\"[a-zA-Z].*\")||Character.toString(s1.charAt(s1.length()-1)).matches(\"-?\\\\d+(\\\\.\\\\d+)?\")){\r\n while(!sNext.matches(\".*[-+*/^%$()].*\")){\r\n p++;\r\n s1=s1+sNext;\r\n sNext=Character.toString(sD.charAt(p+1));\r\n }\r\n }\r\n \r\n //For identifiers in the expression \r\n if((s1.matches(\"[a-zA-Z].*\"))&&count==0){postV.add(s1);count++;}\r\n \r\n //For numerical values given directly in the expression\r\n if(s1.matches(\"-?\\\\d+(\\\\.\\\\d+)?\")&&count==0){postV.add(s1);count++;}\r\n \r\n //For parenthesis in the expression\r\n if((s1.equals(\"(\")||s1.equals(\")\"))&&count==0){ \r\n if(s1.equals(\"(\")){st1.push(\"(\");}\r\n if(s1.equals(\")\")){\r\n while(!st1.peek().equals(\"(\")&&!st1.empty()){String currOp = st1.pop();postV.add(currOp);}\r\n st1.pop();\r\n }count++;\r\n } \r\n \r\n //For operators in the expression\r\n if(s1.equals(\"+\")||s1.equals(\"-\")||s1.equals(\"%\")||s1.equals(\"/\")||s1.equals(\"*\")||s1.equals(\"^\")){ \r\n if(st1.empty()&&count==0){st1.push(s1);count++;}\r\n \r\n if(!st1.empty()&&count==0){\r\n if(st1.peek().equals(\"(\")){st1.push(s1);count++;} \r\n \r\n String s2=st1.peek();\r\n char op1 = s2.charAt(0);\r\n char op2=s1.charAt(0); \r\n \r\n if(count==0){\r\n while((precedenceLevel(op1)>=precedenceLevel(op2))&&!st1.empty()){\r\n String currOp=st1.pop(); \r\n postV.add(currOp);\r\n if(!st1.empty()&&st1.peek().equals(\"(\")){break;}\r\n if(!st1.empty()){s2=st1.peek();op1 = s2.charAt(0);}\r\n } st1.push(s1);count++; \r\n }\r\n \r\n if((precedenceLevel(op1)<precedenceLevel(op2))&&count==0){\r\n st1.push(s1);\r\n count++;\r\n } \r\n } \r\n } \r\n p++; \r\n }\r\n \r\n //At the end pops operators if remained in the stack\r\n while(!st1.empty()){\r\n String currOp=st1.pop();\r\n postV.add(currOp);\r\n } \r\n return postV;//Returns the postfix expression\r\n }",
"Token fixPostfix(String baseName, int type, Token token)\r\n throws TokenStreamException\r\n {\r\n Token newToken = null, testToken;\r\n\r\n String text = makeInsertedText(baseName);\r\n newToken = makeToken(type, text, token);\r\n testToken = makeToken(MExprANTLRParserTokenTypes.POSTFIXID, text, token);\r\n pushToken(testToken);\r\n\r\n return newToken;\r\n }",
"public String inToPost(String userInput){\n // Pre-Check for Valid Expression:\n if(!validate(userInput)){\n return \"Error!\";\n }\n\n StringBuffer postfixInput = new StringBuffer(userInput.length());\n Stack<Character> stack = new Stack<Character>();\n char ch;\n int inputLength = userInput.length();\n\n // Adaptation of the Shunting Yard Algorithm:\n for(int i = 0; i < inputLength; i++){\n ch = userInput.charAt(i);\n\n if(ch == ' '){\n // Do nothing\n }\n else if(isOperand(ch) || ch == '.'){\n postfixInput.append(ch);\n }\n else if(ch == '('){\n stack.push(ch);\n }\n else if(ch == ')'){\n while((!stack.isEmpty()) && (stack.peek() != '(')){\n postfixInput.append(stack.pop());\n }\n\n if(!stack.isEmpty()){\n stack.pop();\n }\n else{\n return \"Parentheses Error!\";\n }\n }\n else if(isOperator(ch)){\n postfixInput.append(' ');\n\n while((!stack.isEmpty()) && (getPrecedence(stack.peek()) >= getPrecedence(ch))){\n postfixInput.append(stack.pop());\n }\n\n stack.push(ch);\n }\n else{\n return \"Input Error!\";\n }\n }\n\n while(!stack.isEmpty()){\n postfixInput.append(stack.pop());\n }\n\n String finalAnswer = postfixInput.toString();\n return solve(finalAnswer);\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n while (scanner.hasNext()) {\n System.out.println(InfixToPostfix(scanner.next()));\n }\n }",
"public static void transform() {\r\n \tString str = BinaryStdIn.readString();;\r\n \tCircularSuffixArray suffixArr = new CircularSuffixArray(str);\r\n \tfor (int i = 0; i < suffixArr.length(); i++) {\r\n \t\tif (suffixArr.index(i) == 0) {\r\n \t\t\tBinaryStdOut.write(i);\r\n \t\t\tbreak;\r\n \t\t}\r\n \t}\r\n \tfor (int i = 0; i < suffixArr.length(); i++) {\r\n \t\tint pos = suffixArr.index(i);\r\n \t\tif (pos == 0) {\r\n \t\t\tpos = suffixArr.length();\r\n \t\t}\r\n \t\tBinaryStdOut.write(str.charAt(pos - 1), 8);\r\n \t}\r\n \tBinaryStdOut.close();\r\n }",
"private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}",
"private void fixStringConcats(Element element) throws LookupException {\n for (InfixOperatorInvocation ioi : element.descendants(InfixOperatorInvocation.class)) {\n // args == right\n // target == left\n Type rightType = ioi.getActualParameters().get(0).getType();\n if (ioi.name().equals(\"+\") &&\n subtypeOf(rightType, TEXT) | subtypeOf(rightType, STRING)) {\n if (ioi.getTarget() instanceof Literal) {\n Literal lit = (Literal) ioi.getTarget();\n if (lit.text().isEmpty()) {\n ioi.replaceWith(ioi.getActualParameters().get(0));\n }\n }\n }\n }\n }",
"public PrefixExpression.Operator getReverse(PostfixExpression.Operator op) {\n if (op == PostfixExpression.Operator.DECREMENT)\n return PrefixExpression.Operator.INCREMENT;\n else if (op == PostfixExpression.Operator.INCREMENT)\n return PrefixExpression.Operator.DECREMENT;\n else\n return null;\n }"
] |
[
"0.7861875",
"0.68152773",
"0.67434895",
"0.6675808",
"0.6622604",
"0.6616683",
"0.6569146",
"0.65452677",
"0.65417725",
"0.65058416",
"0.6449714",
"0.64366287",
"0.6395759",
"0.6340964",
"0.63270116",
"0.63189816",
"0.6308311",
"0.6223523",
"0.6171168",
"0.61688393",
"0.6104145",
"0.61040044",
"0.60962313",
"0.6038276",
"0.5932866",
"0.5874397",
"0.58695847",
"0.58163357",
"0.58103776",
"0.56791234",
"0.5623661",
"0.5599211",
"0.5591523",
"0.55893207",
"0.55407137",
"0.55395174",
"0.54846466",
"0.5478439",
"0.5386499",
"0.5332701",
"0.5315412",
"0.53021675",
"0.52831626",
"0.5276929",
"0.5268803",
"0.52542746",
"0.5246054",
"0.52452016",
"0.5210458",
"0.51997775",
"0.51780504",
"0.5173693",
"0.51601124",
"0.5153736",
"0.5111306",
"0.5104115",
"0.5090795",
"0.5086545",
"0.50089943",
"0.50020415",
"0.4999723",
"0.49716535",
"0.49689767",
"0.49535325",
"0.49265304",
"0.4922366",
"0.48954755",
"0.48858696",
"0.488094",
"0.48774818",
"0.48479244",
"0.48437685",
"0.48365524",
"0.48200247",
"0.4811277",
"0.47948238",
"0.4793472",
"0.47804466",
"0.47783092",
"0.4732433",
"0.4708043",
"0.46987745",
"0.46903324",
"0.469021",
"0.46863955",
"0.46850428",
"0.46828425",
"0.4681057",
"0.46480787",
"0.46436962",
"0.46208706",
"0.46165752",
"0.46127105",
"0.4608072",
"0.46061566",
"0.46040007",
"0.4602416",
"0.45971152",
"0.45841834",
"0.45783123"
] |
0.6466999
|
10
|
a utility function to return precedence of a given operator (higher returned value means higher precedence)
|
static int Prec(String s){
switch (s)
{
case "+":
case "-":
return 1;
case "*":
case "/":
return 2;
}
return -1;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getPrecedence(char operator) {\n switch (operator) {\n case '+':\n case '-':\n return 1;\n case '*':\n case '/':\n return 2;\n case '^':\n return 3;\n }\n\n return -1;\n }",
"private static int getPrecedence(char operator)\r\n\t{\r\n\t\tswitch (operator)\r\n\t\t{\r\n\t\tcase '(': case ')': return 0;\r\n\t\tcase '+': case '-': return 1;\r\n\t\tcase '*': case '/': return 2;\r\n\t\tcase '^':\t\t\treturn 3;\r\n\t\tcase '.': return 4;\r\n\t\t} // end switch\r\n\r\n\t\treturn -1;\r\n\t\t\r\n\t}",
"@Override\n public int precedence() {\n return op.precedence();\n }",
"public int getPrecedence() {\n switch (operator) {\n case AND:\n return 2;\n case OR:\n default:\n return 1;\n }\n }",
"@Override public int precedence() {\n return precedence;\n }",
"abstract public int getPrecedence();",
"public abstract int getPrecedence();",
"@Override\n public int precedence() {\n return 1;\n }",
"@Override\n public int precedence() {\n return 1;\n }",
"private static Integer getPrecedence(Character c) {\n Integer precedence = operatorMap.get(c);\n return precedence == null ? 6 : precedence;\n }",
"public int precedence(String c){\n if(c.equals(\"+\")) return 1;\r\n if(c.equals(\"-\")) return 1;\r\n if(c.equals(\"*\")) return 2;\r\n if(c.equals(\"/\")) return 2;\r\n return -1;\r\n }",
"public int precedence(String c){\n if(c.equals(\"+\")) return 1;\n if(c.equals(\"-\")) return 1;\n if(c.equals(\"*\")) return 2;\n if(c.equals(\"/\")) return 2;\n return -1;\n }",
"@Override\n public int precedence() {\n return 2;\n }",
"@Override\n public int precedence() {\n return 2;\n }",
"private int precedenceOf(char x) {\n final int EXPONENT_PRECEDENCE = 2;\n final int MULTIPLY_PRECEDENCE = 1;\n final int ADDITION_PRECEDENCE = 0;\n\n int precedence = -1;\n if (x == '^') precedence = EXPONENT_PRECEDENCE;\n if (x == '*' || x == '/') precedence = MULTIPLY_PRECEDENCE;\n if (x == '+' || x == '-') precedence = ADDITION_PRECEDENCE;\n return precedence;\n }",
"private static int precedence(char c) {\n if (c == '-' || c == '+') {\n return 1;\n } else if (c == '*' || c == '/') {\n return 2;\n }\n return -1;\n }",
"public Precedence precedence() {\n\treturn this.precedence;\n }",
"private static int precedence(Element element1, Element element2) {\r\n\t\tif (element1.isLeftParenthesis()) {\r\n\t\t\treturn 2;\r\n\t\t}\r\n\t\tif (element1.isPlusSign() || element1.isMinusSign()) {\r\n\t\t\tif (element2.isTimesSign() || element2.isDividedBySign()) {\r\n\t\t\t\treturn 2;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 1;\r\n\t}",
"public static int getOperatorPrecedence(Tree.Kind kind) {\n switch (kind) {\n case AND:\n return BITWISE_AND;\n case BITWISE_COMPLEMENT:\n return UNARY;\n case CONDITIONAL_AND:\n return LOGICAL_AND;\n case CONDITIONAL_EXPRESSION:\n return TERNARY;\n case CONDITIONAL_OR:\n return LOGICAL_OR;\n case DIVIDE:\n return MULTIPLICATIVE;\n case EQUAL_TO:\n return EQUALITY;\n case GREATER_THAN:\n return RATIONAL;\n case INSTANCE_OF:\n return RATIONAL;\n case LEFT_SHIFT:\n return SHIFT;\n case LESS_THAN:\n return RATIONAL;\n case LESS_THAN_EQUAL:\n return RATIONAL;\n case LOGICAL_COMPLEMENT:\n return UNARY;\n case MINUS:\n return ADDITIVE;\n case MULTIPLY:\n return MULTIPLICATIVE;\n case NOT_EQUAL_TO:\n return EQUALITY;\n case OR:\n return BITWISE_INCLUSIVE_OR;\n case PLUS:\n return ADDITIVE;\n case POSTFIX_DECREMENT:\n return POSTFIX;\n case POSTFIX_INCREMENT:\n return POSTFIX;\n case PREFIX_DECREMENT:\n return UNARY;\n case PREFIX_INCREMENT:\n return UNARY;\n case REMAINDER:\n return MULTIPLICATIVE;\n case RIGHT_SHIFT:\n return SHIFT;\n case UNARY_MINUS:\n return UNARY;\n case UNARY_PLUS:\n return UNARY;\n case UNSIGNED_RIGHT_SHIFT:\n return SHIFT;\n case XOR:\n return BITWISE_EXCLUSIVE_OR;\n default:\n return 14;\n }\n }",
"public int getPriority(char operator){\n switch(operator){\n case '^':\n return 3;\n case '*':\n case '/':\n return 2;\n case '+':\n case '-':\n return 1;\n }\n\n return 0;\n }",
"public OperatorBuilder precedence(int precedence) {\n return new OperatorBuilder(this.unaryOp, this.binaryOp, this.symbol, precedence, this.type);\n }",
"public java.lang.Short getPrecedence() {\r\n return precedence;\r\n }",
"public static boolean precedenceOrder(char op1, char op2) {\n\t\t\n\t\tif (op2 == '(' || op2 == ')')\n\t\t\treturn false;\n\t\t// if the second operator is a + or - than it does not get higher precendence\n\t\t// over the * and /\n\t\tif ((op1 == '*' || op1 == '/') && (op2 == '+' || op2 == '-'))\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"private static boolean checkPrecedence(String operator1, String operator2){\n\n\t\tif((operator1.equals(\"*\") || operator1.equals(\"/\")) && (operator2.equals(\"*\") || operator2.equals(\"/\"))){\n\t\t\treturn true;\n\t\t}\n\t\telse if((operator1.equals(\"*\") || operator1.equals(\"/\")) && (operator2.equals(\"+\") || operator2.equals(\"-\"))){\n\t\t\treturn true;\n\t\t}\n\t\telse if((operator1.equals(\"+\") || operator1.equals(\"-\")) && (operator2.equals(\"+\") || operator2.equals(\"-\"))){\n\t\t\treturn true;\n\t\t}\n\t\telse if((operator1.equals(\"+\") || operator1.equals(\"-\")) && (operator2.equals(\"*\") || operator2.equals(\"/\"))){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean precedence(String input) {\n\t\tboolean complies = true;\n\t\t\n\t\tif(((input.equals(\"+\")) || (input.equals(\"-\"))) && (operationStack.empty() == false))\n\t\t{\n\t\t\tif((operationStack.peek().equals(\"*\")) || (operationStack.peek().equals(\"/\")))\n\t\t\t{\n\t\t\t\tcomplies = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn complies;\n\t}",
"java.lang.String getOperator();",
"String getOperator();",
"public String getOperator()\r\n\t{\r\n\t\tSystem.out.println(\"Choose the any operation from the following operations:\");\r\n System.out.println(\"1.+\");\r\n System.out.println(\"2.-\");\r\n System.out.println(\"3.*\");\r\n System.out.println(\"4./\");\r\n \r\n\t\tString op=sc.next();\r\n\t\treturn op;\r\n\t}",
"public java.lang.Integer getOperator() {\n\treturn operator;\n}",
"static BinaryOperator<SibillaValue> getOperator(String op) {\n if (op.equals(\"+\")) {return SibillaValue::sum;}\n if (op.equals(\"-\")) {return SibillaValue::sub; }\n if (op.equals(\"%\")) {return SibillaValue::mod; }\n if (op.equals(\"*\")) {return SibillaValue::mul; }\n if (op.equals(\"/\")) {return SibillaValue::div; }\n if (op.equals(\"//\")) {return SibillaValue::zeroDiv; }\n return (x,y) -> SibillaValue.ERROR_VALUE;\n }",
"public String getOperator()\r\n {\r\n return operator;\r\n }",
"private boolean hasPrecedence(char op1, char op2) {\n if (op1 == '(' || op1 == ')') {\n return false;\n }\n if ((op1 == '+' || op1 == '-') && (op2 == '*' || op2 == '/')) {\n return false;\n }\n return true;\n }",
"private DoubleBinaryOperator chooseOperator() {\n\t\tswitch(name) {\n\t\tcase \"+\":\n\t\t\treturn ADD;\n\t\t\t\n\t\tcase \"-\":\n\t\t\treturn SUB;\n\t\t\t\n\t\tcase \"*\":\n\t\t\treturn MULTIPLY;\n\t\t\t\n\t\tcase \"/\":\n\t\t\treturn DIVIDE;\n\t\t\t\n\t\tcase \"x^n\":\n\t\t\treturn POW;\n\t\t\t\n\t\tdefault:\n\t\t\tthrow new IllegalStateException(\"Invalid binary operator\");\n\t\t}\n\t}",
"public static String getrp(String s){\n char[] arr = s.toCharArray();\n int len = arr.length;\n String out = \"\";\n\n for(int i = 0; i < len; i++){\n char ch = arr[i];\n if(ch == ' ') continue;\n\n // if is operand, add to\n // the output stream directly\n if(ch >= '0' && ch <= '9') {\n out+=ch;\n continue;\n }\n\n //if is '(', push to the stack directly\n if(ch == '(') op.push(ch);\n\n //if is '+' or '-', pop the operator\n // from the stack until '(' and add to\n // the output stream\n //push the operator to the stack\n if(ch == '+' || ch == '-'){\n while(!op.empty() && (op.peek() != '('))\n out+=op.pop();\n op.push(ch);\n continue;\n }\n\n //if is '*' or '/', pop the operator stack and\n // add to the output stream\n // until lower priority or '('\n //push the operator to the stack\n if(ch == '*' || ch == '/'){\n while(!op.empty() && (op.peek() == '*' || op.peek() == '/'))\n out+=op.pop();\n op.push(ch);\n continue;\n }\n\n //if is ')' pop the operator stack and\n // add to the output stream until '(',\n // pop '('\n if(ch == ')'){\n while(!op.empty() && op.peek() != '(')\n out += op.pop();\n op.pop();\n continue;\n }\n }\n while(!op.empty()) out += op.pop();\n return out;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n return operator;\n }",
"public String getOperator() {\n\t\treturn operator;\n\t}",
"public String getOperator() {\n\t\treturn operator;\n\t}",
"public String getOperator() {\n return operator;\n }",
"public Long getOperator() {\n return operator;\n }",
"public int addPrecedence(int accumulatedPrecedence) {\n return precedence =\n Interpreter.mulDivPrecedence + accumulatedPrecedence;\n }",
"public String operator() {\n return this.operator;\n }",
"private long expr(int priority)\r\n throws IOException,\r\n LexerException {\r\n\r\n Token tok = expr_token();\r\n long lhs, rhs;\r\n\r\n // System.out.println(\"Expr lhs token is \" + tok);\r\n switch (tok.getType()) {\r\n case '(':\r\n lhs = expr(0);\r\n tok = expr_token();\r\n if (tok.getType() != ')') {\r\n expr_untoken(tok);\r\n error(tok, \"Missing ) in expression. Got \" + tok.getText());\r\n return 0;\r\n }\r\n break;\r\n\r\n case '~':\r\n lhs = ~expr(11);\r\n break;\r\n case '!':\r\n lhs = expr(11) == 0 ? 1 : 0;\r\n break;\r\n case '-':\r\n lhs = -expr(11);\r\n break;\r\n case NUMBER:\r\n NumericValue value = (NumericValue) tok.getValue();\r\n lhs = value.longValue();\r\n break;\r\n case CHARACTER:\r\n lhs = tok.getValue().toString().charAt(0);//((Character) tok.getValue()).charValue();\r\n break;\r\n case IDENTIFIER:\r\n if (warnings.contains(Warning.UNDEF))\r\n warning(tok, \"Undefined token '\" + tok.getText()\r\n + \"' encountered in conditional.\");\r\n lhs = 0;\r\n break;\r\n\r\n default:\r\n expr_untoken(tok);\r\n error(tok,\r\n \"Bad token in expression: \" + tok.getText());\r\n return 0;\r\n }\r\n\r\n EXPR:\r\n for (;;) {\r\n // System.out.println(\"expr: lhs is \" + lhs + \", pri = \" + priority);\r\n Token op = expr_token();\r\n int pri = expr_priority(op);\t/* 0 if not a binop. */\r\n\r\n if (pri == 0 || priority >= pri) {\r\n expr_untoken(op);\r\n break EXPR;\r\n }\r\n rhs = expr(pri);\r\n // System.out.println(\"rhs token is \" + rhs);\r\n switch (op.getType()) {\r\n case '/':\r\n if (rhs == 0) {\r\n error(op, \"Division by zero\");\r\n lhs = 0;\r\n } else {\r\n lhs = lhs / rhs;\r\n }\r\n break;\r\n case '%':\r\n if (rhs == 0) {\r\n error(op, \"Modulus by zero\");\r\n lhs = 0;\r\n } else {\r\n lhs = lhs % rhs;\r\n }\r\n break;\r\n case '*':\r\n lhs = lhs * rhs;\r\n break;\r\n case '+':\r\n lhs = lhs + rhs;\r\n break;\r\n case '-':\r\n lhs = lhs - rhs;\r\n break;\r\n case '<':\r\n lhs = lhs < rhs ? 1 : 0;\r\n break;\r\n case '>':\r\n lhs = lhs > rhs ? 1 : 0;\r\n break;\r\n case '&':\r\n lhs = lhs & rhs;\r\n break;\r\n case '^':\r\n lhs = lhs ^ rhs;\r\n break;\r\n case '|':\r\n lhs = lhs | rhs;\r\n break;\r\n\r\n case LSH:\r\n lhs = lhs << rhs;\r\n break;\r\n case RSH:\r\n lhs = lhs >> rhs;\r\n break;\r\n case LE:\r\n lhs = lhs <= rhs ? 1 : 0;\r\n break;\r\n case GE:\r\n lhs = lhs >= rhs ? 1 : 0;\r\n break;\r\n case EQ:\r\n lhs = lhs == rhs ? 1 : 0;\r\n break;\r\n case NE:\r\n lhs = lhs != rhs ? 1 : 0;\r\n break;\r\n case LAND:\r\n lhs = (lhs != 0) && (rhs != 0) ? 1 : 0;\r\n break;\r\n case LOR:\r\n lhs = (lhs != 0) || (rhs != 0) ? 1 : 0;\r\n break;\r\n\r\n case '?': {\r\n tok = expr_token();\r\n if (tok.getType() != ':') {\r\n expr_untoken(tok);\r\n error(tok, \"Missing : in conditional expression. Got \" + tok.getText());\r\n return 0;\r\n }\r\n long falseResult = expr(0);\r\n lhs = (lhs != 0) ? rhs : falseResult;\r\n }\r\n break;\r\n\r\n default:\r\n error(op,\r\n \"Unexpected operator \" + op.getText());\r\n return 0;\r\n\r\n }\r\n }\r\n\r\n /*\r\n * (new Exception(\"expr returning \" + lhs)).printStackTrace();\r\n */\r\n // System.out.println(\"expr returning \" + lhs);\r\n return lhs;\r\n }",
"private static char getOperator() throws ParseError {\n TextIO.skipBlanks(); // Skip past any blanks in the input.\n\n char op = TextIO.peek();\n\n if ( op == '+' || op == '-' || op == '*' || op == '/' )\n TextIO.getAnyChar(); // Read the operator.\n else\n throw new ParseError( \"Found \" + op + \" instead of an operator.\" );\n\n return op;\n\n }",
"public final Operator operator() {\n return operator;\n }",
"public Operator operator() {\n return _operator != null ? _operator : Operator.OR;\n }",
"public String operator( String op);",
"private boolean peekedHasPrecedence(\tchar peeked,\r\n\t\t\t\t\t\t\t\t\t\t\tchar current )\r\n\t{\r\n\t\tif ( ( peeked == '+' || peeked == '-' ) && ( current == '*' || current == '/' ) )\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}//end if\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}//end else\r\n\t}",
"public Operator getOperator()\n {\n return operator;\n }",
"public java.lang.Integer getOperator() throws java.rmi.RemoteException;",
"public void convertInfixToPostfix() {\n\t\t// Create operator stack\n\t\tStack<String> op_stack = new Stack<String>();\n\n\t\t// Prepare the input string\n\t\tprepareInput();\n\t\t\n\t\t// Split the expression \n\t\tString[] tokens = input.split(\"(?<=[^\\\\.a-zA-Z\\\\d])|(?=[^\\\\.a-zA-Z\\\\d])\");\n\t\t\n\t\t//For each token\n\t\tfor (String t : tokens) {\n\t\t\t// If the token is empty, skip it\n\t\t\tif(t.equals(\"\") || t.equals(\" \")) continue;\n\t\t\t\n\t\t\t// If operator (o1)\n\t\t\tif (Operator.isOperator(t)) {\n\n\t\t\t\t// While there is an operator (o2) an the stack and\n\t\t\t\t// (o1 is left associative AND o2 precedence is higher or equal to o1 precedence)\n\t\t\t\t// OR\n\t\t\t\t// (o1 is right associative AND o2 precedence is higher than o1 precedence)\n\t\t\t\twhile (!op_stack.empty()\n\t\t\t\t\t\t&& Operator.isOperator(op_stack.peek())\n\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.LEFT) && Operator.comparePrec(op_stack.peek(), t) >= 0) \n\t\t\t\t\t\t\t|| \n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.RIGHT) && Operator.comparePrec(op_stack.peek(), t) > 0)\n\t\t\t\t\t\t )\n\t\t\t\t ) \n\t\t\t\t{\n\t\t\t\t\t// add o2 to the output\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Push o1 on to the stack.\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\"(\")) {\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\")\")) {\n\t\t\t\t// While there is not a left parenthesis, add the top token from the stack to the output\n\t\t\t\twhile (!op_stack.peek().equals(\"(\")) {\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\n\t\t\t\t// Pop out the left parenthesis\n\t\t\t\top_stack.pop();\n\t\t\t\t\n\t\t\t\t// While there is a function on the top of the stack, add it to the output\n\t\t\t\tif(!op_stack.empty() && Function.isFunction(op_stack.peek())) output.add(op_stack.pop());\n\t\t\t}\n\t\t\telse if(Function.isFunction(t)){\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\t\t\telse if(isNumeric(t) || isVariable(t)){\n\t\t\t\toutput.add(t);\n\t\t\t}\n\t\t}\n\n\t\t// Finally empty the stack, by adding all remaining tokens to the output.\n\t\twhile (!op_stack.empty()) {\n\t\t\toutput.add(op_stack.pop());\n\t\t}\n\t}",
"public int getOperatorNum() {\n return operatorNum;\n }",
"Object findOperatorNeedCheck();",
"private boolean isOperator(String op){\n return (op.equals(\"+\") || op.equals(\"-\") || op.equals(\"*\") || op.equals(\"/\"));\n }",
"public static boolean hasPrecedence(char op1, char op2) {\n\n\t\tif (op2 == '(' || op2 == ')') {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ((op1 == '*' || op1 == '/') && (op2 == '+' || op2 == '-')){\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}",
"public BigDecimal getOperator() {\n return operator;\n }",
"Operator(String s, Precedence precedence) {\n this.operatorString = s;\n this.precedence = precedence;\n }",
"public Addition(int precedence){\n super(\"+\", precedence);\n }",
"private static boolean check_precedence_low(char c, char top)\n { \n\t\tif( ((c==')')||(c=='('))&& ((top=='*') || (top=='/') || (top=='^')|| (top=='r')|| \n \t\t(top=='s')|| (top=='c')|| (top=='t')|| (top=='+')||(top=='-') || (top=='*')|| (top=='/')||(top=='l')))\n \t\t{\n \t return false; \n \t\t}\n\t\telse if ((c=='+') && ((top=='*') || (top=='/') || (top=='^')|| (top=='r')|| (top=='s')|| (top=='c')|| (top=='t')))\n \t\t{\n \t return true;\n \t}\n else if((c=='-') && ((top=='*')||(top=='/') || (top=='^')|| (top=='r')|| (top=='s')|| (top=='c')|| (top=='t')))\n\t\t{\n \t return true;\n \t\t}\n else if(c=='*' && top=='^' || (top=='r')|| (top=='s')|| (top=='c')|| (top=='t'))\n {\n \t return true;\n }\n else if(c=='/' && top=='^'|| (top=='r')|| (top=='s')|| (top=='c')|| (top=='t'))\n {\n \t return true;\n }\n \n \n \n else return false;\n }",
"public Operator getOp() {\n return op;\n }",
"public OperatorEnum getOperator() {\n return operator;\n }",
"public static Operator getOperator(String string) {\n\t\tif (string.equals(\"%\")) {\n\t\t\treturn MOD;\n\t\t} else if (string.equals(\"/\")) {\n\t\t\treturn DIV;\n\t\t}\n\t\tfor (Operator operator : Operator.values()) {\n\t\t\tif (operator.toString().equals(string)) {\n\t\t\t\treturn operator;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private static int getOperandImportance(char operand)\r\n {\r\n int result = 0;\r\n switch(operand)\r\n {\r\n case '+':case '-':\r\n result = 1;\r\n break;\r\n case '*':case '/':\r\n result = 2;\r\n break;\r\n case '^':\r\n result = 3;\r\n }\r\n return result;\r\n }",
"public java.lang.Integer getOperator() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.Integer) __getCache(\"operator\")));\n }",
"boolean hasOperator();",
"public Operator getOperator() {\n return this.operator;\n }",
"public final SymbolNode getOperator() { return this.operator; }",
"public PredicateOperator getOperator();",
"private boolean isOperator(String s) {\n\t\treturn (s.equals(\"+\") || s.equals(\"-\") || s.equals(\"*\") || s.equals(\"/\") || s.equals(\"^\"));\n\t}",
"Operator.Type getOperation();",
"private int getPrio(int op){\n return ((Integer)opPrio.get(new Integer(op))).intValue();\n }",
"public Operator getOperator(Object key)\n\t{\n\t\tOperator operator = (Operator) mComparisonOperatorMap.get(key);\n\t\tif (operator == null)\n\t\t{\n\t\t\treturn mDefaultComparisonOperator;\n\t\t}\n\t\treturn operator;\n\t}",
"private String infixToPostfixPlusPrecedence(String infix) {\n\t\tString postfix = \"\";\n\t\tStack<Character> stack = new Stack<>();\n\n\t\tfor (int i = 0; i < infix.length(); i++) {\n\t\t\tchar currentChar = infix.charAt(i);\n\t\t\tif (currentChar == '+' || currentChar == '*') {\n\t\t\t\tif (stack.isEmpty() || stack.peek() == '(') {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else if (precedence(stack.peek()) >= precedence(currentChar)) {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t}\n\t\t\t} else if (currentChar == '(') {\n\t\t\t\tstack.push(currentChar);\n\t\t\t} else if (currentChar == ')') {\n\n\t\t\t\twhile (stack.peek() != '(') {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t}\n\t\t\t\tstack.pop();\n\n\t\t\t} else if (currentChar != ' ') {\n\t\t\t\tpostfix = postfix + currentChar;\n\t\t\t}\n\n\t\t}\n\n\t\twhile (!stack.isEmpty()) {\n\t\t\tpostfix = postfix + stack.pop();\n\t\t}\n\n\t\treturn postfix;\n\t}",
"private static String getPostfix(String s) {\n\t\tif(s.length() == 0){\n\t\t\treturn null;\n\t\t}\n\t\tString[] expression = s.split(\" \");\n\t\tStack stack = new Stack();\n\t\tString result = null;\n\t\tfor(int i = 0; i<expression.length;i++){\n\t\t\tString temp = expression[i];\n\t\t\tif(temp.equals(\"+\") || temp.equals(\"-\") || temp.equals(\"*\") || temp.equals(\"/\") || temp.equals(\"%\")){\n\t\t\t\twhile(!stack.isEmpty() && hasHigherPriority(stack.top(),temp)){\n\t\t\t\t\tif(result == null){\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Expression is not infix\");\n\t\t\t\t\t}\n\t\t\t\t\tresult = result + stack.pop();\n\t\t\t\t}\n\t\t\t\tstack.push(temp);\n\t\t\t}else{\n\t\t\t\tif(result == null){\n\t\t\t\t\tresult = temp;\n\t\t\t\t}else{\n\t\t\t\t\tresult = result + temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\twhile(!stack.isEmpty()){\n\t\t\tresult = result + stack.pop();\n\t\t}\n\t\treturn result;\n\t}",
"public boolean isSmallerPrecedenceThan(/*const*/ Token T){\n\t\tassert(isOprUner() || isOprBiner());\n\t\tassert(T.isOprUner() || T.isOprBiner());\n\t\t\n\t\treturn getRank() < T.getRank();\n\t}",
"public Operator operator() {\n\treturn this.op;\n }",
"static String infixToPostfix(String txt) \n\t{\n\t\tString postfix = new String(\"\");\n Stack<Character> stack = new Stack<>();\n \n for (int i = 0; i<txt.length(); ++i)\n {\n char c = txt.charAt(i);\n \n // Ist das eingescannte Zeichen c ein Operand, addiere es zur Ausgabe hinzu\n if (Character.isLetterOrDigit(c)) \n {\n \tpostfix += c;\n }\n \n \n // Ist das eingescannte Zeichen c eine offene Klammer, lege es auf den Stapel\n else if (c == '(') \n {\n \tstack.push(c);\n }\n \n // Ist das eingescannte Zeichen c eine schließende Klammer, pop es aus dem Stapel bis eine öffnende Klammer erscheint\n else if (c == ')')\n {\n while (!stack.isEmpty() && stack.peek() != '(') \n {\n \tpostfix += stack.pop();\n stack.pop();\n } \n }\n else //falls es ein Operator ist\n {\n while (!stack.isEmpty() && precedence(c) < precedence(stack.peek()))\n {\n postfix += stack.pop();\n }\n stack.push(c);\n }\n }\n \n // pop all the operators from the stack\n while (!stack.isEmpty())\n {\n postfix += stack.pop();\n }\n return postfix;\n\n\t}",
"@Override\n public int compareTo(BinaryOperator operator) {\n return this.priority.compareTo(((AbstractBinaryOperator)operator).priority);\n }",
"public int oper() {\n int ope = getFilter().getExp().oper();\n return ope;\n }",
"public static RelationalOperator getRelationalOperator(String operator) {\r\n return RelationalOperator.getOperatorForStringRepresentation(operator);\r\n }",
"public int operation(int number1,int number2,String operator)",
"public String convertPostfix(String string){\r\n\r\n \t\tStack<Character> operatorStack = new Stack<Character>();\r\n\r\n \t\tStringBuffer postfix = new StringBuffer();\r\n\r\n \t\tCharacter topOperator;\r\n\t\tfor (int i = 0; i < string.length(); i++) {\r\n\t\t\tchar c = string.charAt(i);\r\n\r\n\t\t\tif (Character.isDigit(c)) {\r\n\t\t\t\tpostfix.append(c);\r\n\r\n\r\n\r\n\t\t\t\t// fixing bug to test next character before adding a space\r\n\t\t\t\t// if next character is not a digit add a space\r\n\t\t\t\tif (i + 1 >= string.length() || !Character.isDigit(string.charAt(i + 1)))\r\n\t\t\t\t\tpostfix.append(\" \");\r\n\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\t\r\n \t\t\t\tswitch(c){\r\n \t\t\t\t /////// add a minus to stack without a space\r\n \t\t\t\t\tcase'!':\r\n \t\t\t\t boolean Debug = true;\r\n\r\n\t\t\t\t\tif (Debug)\r\n\t\t\t\t\t\tSystem.out.println(\"Bugs\");\r\n\r\n\t\t\t\t\tpostfix.append('-');\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n \t\t\t\t\tbreak;\r\n \r\n \t\t\t\t\t\r\n \t\t\t\tcase '^':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase '.':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase '+':\r\n \t\t\t\tcase '-':\r\n \t\t\t\tcase '*':\r\n \t\t\t\tcase '/':\r\n \t\t\t\t\twhile (!operatorStack.isEmpty () &&\r\n \t\t\t\t\t\t\tgetPrecedence(c) <= getPrecedence(operatorStack.peek()))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tpostfix.append(operatorStack.peek() + \" \");\r\n \t\t\t\t\t\toperatorStack.pop();\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t}\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n\r\n \t\t\t\tcase '(':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n\r\n \t\t\t\tcase ')': \r\n\t\t\t\t\ttopOperator = operatorStack.pop();\r\n\t\t\t\t\twhile ((topOperator != '(') && !operatorStack.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpostfix.append(topOperator);\r\n\t\t\t\t\t\tpostfix.append(\" \");\r\n\t\t\t\t\t\ttopOperator = operatorStack.pop();\r\n\t\t\t\t\t}// end while\r\n\r\n\t\t\t\t\t/* if(!operatorStack.isEmpty() && operatorStack.peek().equals('(')){\r\n\t\t operatorStack.pop(); // pop/remove left parenthesis \r\n\t\t }*/\r\n\t\t\t\t\tbreak;\r\n \t\t\t\tdefault:\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} \r\n\t\t/*\r\n\t\t * popping off any final operators\r\n\t\t */\r\n \t\t\twhile (!operatorStack.isEmpty())\r\n \t\t\t{\r\n \t\t\t\ttopOperator = operatorStack.pop();\r\n \t\t\t\tpostfix.append(topOperator + \" \");\r\n \t\t\t\t\r\n \t\t\t}\r\n \t\t\treturn postfix.toString();\r\n\r\n \t\t}",
"@Override\n\tpublic String getOperator() {\n\t\treturn \"?\";\n\t}",
"public java.lang.String getOperator_lx() {\r\n return localOperator_lx;\r\n }",
"public java.lang.String getOperator_lx() {\r\n return localOperator_lx;\r\n }",
"public String gettOperator() {\n return tOperator;\n }",
"private static boolean isOperator(String value){\r\n\t\tif (value.equals(\"+\") ||value.equals(\"-\")|| value.equals(\"*\")|| value.equals(\"/\"))\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}",
"String getOp();",
"String getOp();",
"String getOp();",
"public String getOper() {\n return oper;\n }",
"private boolean isOperator(String value) {\r\n return value.equals(\"*\") || value.equals(\"/\") || value.equals(\"-\") || value.equals(\"+\") || value.equals(\"(\") || value.equals(\")\");\r\n }",
"private void processOperator() {\r\n\t\tif (expression[currentIndex] == '*') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\t\t} else if (expression[currentIndex] == '+') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\t\t} else if (expression[currentIndex] == '!') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\t\t\t// xor operator has 2 characters more than any other operator.\r\n\t\t\tcurrentIndex += 2;\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}",
"public String getOperator() {\n return m_operatorBox.getSelectedItem().toString();\n }",
"public static String getOperator(Criteria criteria) {\n\t\tCriteria.OPERATOR op = criteria.getOp();\n\t\tif (Criteria.OPERATOR.LT.equals(op)) {\n\t\t\treturn \"$lt\";\n\t\t} else if (Criteria.OPERATOR.LTEQUAL.equals(op)) {\n\t\t\treturn \"$lte\";\n\t\t} else if (Criteria.OPERATOR.GT.equals(op)) {\n\t\t\treturn \"$gt\";\n\t\t} else if (Criteria.OPERATOR.GTEQUAL.equals(op)) {\n\t\t\treturn \"$gte\";\n\t\t} else if (Criteria.OPERATOR.REGEX.equals(op)) {\n\t\t\treturn \"$regex\";\n\t\t} else if (Criteria.OPERATOR.IN.equals(op)) {\n\t\t\treturn \"$in\";\n\t\t} else if (Criteria.OPERATOR.NOT_EQUAL.equals(op)) {\n\t\t\treturn \"$ne\";\n\t\t} else if (Criteria.OPERATOR.NOT_IN.equals(op)) {\n\t\t\treturn \"$nin\";\n\t\t}\n\t\treturn null;\n\t}",
"public String getOperatorName() {\n return operatorName;\n }",
"public String getOperatorName() {\n return operatorName;\n }"
] |
[
"0.81549954",
"0.8123206",
"0.80692077",
"0.79984623",
"0.7880535",
"0.7794648",
"0.77525246",
"0.7642094",
"0.7642094",
"0.7512285",
"0.7500053",
"0.74614316",
"0.74220353",
"0.74220353",
"0.7370423",
"0.727422",
"0.7262538",
"0.72554713",
"0.7136439",
"0.7078337",
"0.6696669",
"0.6678856",
"0.6656324",
"0.6573203",
"0.6528864",
"0.65146923",
"0.650311",
"0.63571644",
"0.625562",
"0.620908",
"0.6120216",
"0.61145926",
"0.61058",
"0.6084849",
"0.6081839",
"0.6081839",
"0.6081839",
"0.6081839",
"0.6081839",
"0.6081839",
"0.60729784",
"0.60729784",
"0.6037525",
"0.59602505",
"0.59358186",
"0.59284085",
"0.59064347",
"0.58750767",
"0.5874161",
"0.586919",
"0.5851894",
"0.5847275",
"0.58419365",
"0.58374166",
"0.5835695",
"0.583368",
"0.580834",
"0.5802079",
"0.5795515",
"0.5789287",
"0.57880217",
"0.57874566",
"0.5783338",
"0.5768877",
"0.57541645",
"0.57527846",
"0.57433647",
"0.57307386",
"0.5729181",
"0.57155395",
"0.5699768",
"0.5696784",
"0.56852734",
"0.56822985",
"0.5682038",
"0.56795764",
"0.56713873",
"0.56520593",
"0.5648939",
"0.5645686",
"0.5634741",
"0.56341255",
"0.5630087",
"0.5617164",
"0.56066036",
"0.5597545",
"0.55961657",
"0.55755645",
"0.55755645",
"0.5554862",
"0.55548465",
"0.5554663",
"0.5554663",
"0.5554663",
"0.5540665",
"0.55400646",
"0.5538459",
"0.55341387",
"0.55011374",
"0.5499898",
"0.5499898"
] |
0.0
|
-1
|
calculates the answer from postfix notation
|
protected float post2ans(String[] a){
Stack<Float> stack=new Stack<>();
float result = 0f;
String s;
for (int i=0 ; i<(tail) ; i++){
boolean notNum = true;
s = a[i];
switch (s){
case"/":
case"*":
case"+":
case"-":
break;
default: // by here assume number
stack.push(toFloat(s));
notNum = false;
}
if(notNum){
float val2 = stack.pop();
float val1 = stack.pop();
switch(s){
case"+":
stack.push(val1+val2);
break;
case"-":
stack.push(val1-val2);
break;
case"/":
stack.push(val1/val2);
break;
case"*":
stack.push(val1*val2);
break;
}
}
}
return stack.pop();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private CustomQueue<String> evaluatePostFix(CustomQueue<String>postfix){\r\n CustomStack<String> numberStack = new CustomStack();\r\n CustomQueue<String> result = new CustomQueue();\r\n \r\n while (postfix.isEmpty() == false){\r\n String value = postfix.remove();\r\n if (isOperator(value)){\r\n //First popped value should be on the right hand side of the operator\r\n double val2 = Double.parseDouble(numberStack.pop());\r\n //Second popped value should be on the left hand side of the operator\r\n double val1 = Double.parseDouble(numberStack.pop());\r\n String operation_result = calculate(val1, val2, value);\r\n numberStack.push(operation_result);\r\n }\r\n else{\r\n //It should be a number\r\n numberStack.push(value);\r\n }\r\n }\r\n \r\n if (numberStack.empty())\r\n result.add(\"0\");\r\n else\r\n result.add(numberStack.pop());\r\n \r\n return result;\r\n }",
"public void evalPostfix(String postfix){\r\n char ch;\r\n\r\n for(int i = 0; i < postfix.length() ; i++) //parses postfix string and performs operations based on operator found\r\n {\r\n ch = postfix.charAt(i);\r\n \r\n if(ch == '+')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x+y);\r\n \r\n }\r\n \r\n \r\n else if(ch == '-')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x-y);\r\n \r\n }\r\n \r\n else if(ch == '*')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x*y);\r\n \r\n }\r\n \r\n else if(ch == '/')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push(x/y);\r\n \r\n }\r\n \r\n else if(ch == '^')\r\n {\r\n int y = ((int)numbers.pop());\r\n int x = ((int)numbers.pop());\r\n numbers.push((int)Math.pow(x,y));\r\n \r\n } \r\n \r\n else if(ch >= '0' || ch <= '9')\r\n {\r\n numbers.push((int)(ch - '0'));\r\n }\r\n }\r\n }",
"public String solve(String postfixExp) {\n Stack<String> stack = new Stack<String>();\n char ch;\n int inputLength = postfixExp.length();\n\n for (int i = 0; i < inputLength; i++) {\n ch = postfixExp.charAt(i);\n\n if (ch == ' ') {\n // Do nothing, space found.\n }\n else if (isOperand(ch)) {\n int n = 0; // This will eventually hold our final value.\n\n while (isOperand(ch)) {\n n = (n * 10) + (int) (ch - '0');\n i++;\n ch = postfixExp.charAt(i);\n }\n i--;\n\n stack.push(Integer.toString(n));\n }\n else {\n double tempOne = Double.parseDouble(stack.pop());\n double tempTwo = Double.parseDouble(stack.pop());\n\n switch (ch) {\n case '+':\n stack.push(Double.toString(tempTwo + tempOne));\n break;\n case '-':\n stack.push(Double.toString(tempTwo - tempOne));\n break;\n case '*':\n stack.push(Double.toString(tempTwo * tempOne));\n break;\n case '/':\n if (tempOne == 0) {\n return \"Error: Division by 0\";\n } else {\n stack.push(Double.toString(tempTwo / tempOne));\n }\n break;\n case '^':\n double temp3 = (double)(Math.pow(tempTwo, tempOne));\n stack.push(Double.toString(temp3));\n break;\n }\n }\n }\n\n String evaluation = stack.pop();\n\n return evaluation;\n }",
"public double processPostfix(String postfix){\n char[] postfixArr = postfix.toCharArray(); //Convert string to Char Array\n\n //loop through the array, looking at each value\n for(int i = 0; i < postfixArr.length; i++){\n\n //If digit, push it into the stack\n if(Character.isDigit(postfixArr[i])){\n s.push(postfixArr[i]);\n }\n else{\n double d1 = convertToDbl(s.pop()); //convert to double\n double d2 = convertToDbl(s.pop());\n\n //switch to determine what operation should be performed - printed out for testing\n switch(postfixArr[i]){\n case '+':\n System.out.println(d2 + \" + \" + d1); s.push(d2+d1); System.out.println(\"= \" + (d2+d1)); break;\n case '-':\n System.out.println(d2 + \" - \" + d1); s.push(d2-d1); System.out.println(\"= \" + (d2-d1)); break;\n case '*':\n System.out.println(d2 + \" * \" + d1); s.push(d2 * d1); System.out.println(\"= \" + (d2*d1));break;\n case '/':\n System.out.println(d2 + \"/\" + d1); s.push(d2/d1); System.out.println(\"= \" + (d2/d1));break;\n case '^':\n System.out.println(d2 + \" ^ \" + d1); s.push(Math.pow(d2, d1)); System.out.println(\"= \" + (Math.pow(d2,d1))); break;\n default:\n System.out.println(\"ERROR IN CODE!\");\n }\n }\n\n\n }\n\n double result = convertToDbl(s.top()); //return the item at top of the stack (converted to a double)\n s.pop();\n return result;\n }",
"@Override\r\n\tpublic String infixToPostfix(String expression) {\r\n\t\tStringBuilder pf = new StringBuilder(); // the postfix expression \r\n\t\texpression = removespaces(expression); \r\n\t\texpression = CheckInputValidation(expression);\r\n\t\texpression = DummyZero(expression);\r\n\t\tString e = expression;\r\n\t\tfor(i1 = 0 ; i1 < e.length() ;i1++) { \r\n\t\t\t//take operand and append it to the string\r\n\t\t\tif(Character.isDigit(e.charAt(i1)) || Character.isLetter(e.charAt(i1))) { //check if the character is letter or number\r\n\t\t\t\tint j =0; //counter to know how many digits in the following operand \r\n\t\t\t\twhile (i1 != e.length() &&e.charAt(i1) != '+' &&e.charAt(i1) != '-' && e.charAt(i1) != '/' && e.charAt(i1) != '*'&&e.charAt(i1) != ')'&&e.charAt(i1) != '(' ) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t\ti1++;\r\n\t\t\t\t}\r\n\t\t\t\tif(j>0) {\r\n\t\t\t\t\tString s = e.substring(i1-j, i1);\r\n\t\t\t\t\tpf.append( s ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\ti1--;\r\n\t\t\t\tif(i1 == e.length()-1 ) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if (e.charAt(i1)=='(') {\r\n\t\t\t\topt.push(e.charAt(i1));\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i1)=='-'||e.charAt(i1)=='/'||e.charAt(i1)=='+'||e.charAt(i1)=='*') {\r\n\t\t\t\twhile(!(opt.isEmpty()) && higherpres(e.charAt(i1)) && (char)opt.peek() !='(') {\r\n\t\t\t\t\tpf.append( opt.pop() ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\topt.push(e.charAt(i1));\r\n\t\t\t}\r\n\t\t\telse if (e.charAt(i1)==')') {\r\n\t\t\t\twhile((char)opt.peek() != '(') {\r\n\t\t\t\t\tpf.append( opt.pop() ).append(' ');\r\n\t\t\t\t}\r\n\t\t\t\topt.pop();\r\n\t\t\t}\r\n\t\t}\r\n\t\twhile(!(opt.isEmpty()) ) {\r\n\t\t\tif((char)opt.peek() != '(') {\r\n\t\t\t\tpf.append(opt.pop()).append(' ');}\r\n\t\t\telse if((char)opt.peek()=='(') {\r\n\t\t\t\topt.pop();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pf.toString();\r\n\t\t\r\n\t}",
"public static int evalPostfix(String postfix) throws PostFixException{\n\t\t//MyStack instance to store results of evaluation\n\t\tStack<Integer> result = new Stack<Integer>();\n\t\t\n\t\t//Scanner instance to scan tokens\n\t\tScanner getToken = new Scanner(postfix);\n\t\t\n\t\twhile(getToken.hasNext()){\n\t\t\t\n\t\t\tString curToken = getToken.next();\n\t\t\t//if the token is a valid operator, push it onto stack as a Double object\n\t\t\tif(isPositiveInteger(curToken)){\n\t\t\t\tresult.push(Integer.parseInt(curToken));\n\t\t\t}\n\t\t\t\n\t\t\t//if the current token is an operator\n\t\t\telse if(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\t\ttry{\n\t\t\t\t\t//Get the operands from the stack\n\t\t\t\t\tint operand2 = result.pop().intValue();\n\t\t\t\t\tint operand1 = result.pop().intValue();\n\t\t\t\t\t\n\t\t\t\t\t//find the operator and perform the arithmetic\n\t\t\t\t\tswitch(curToken){\n\t\t\t\t\t\tcase \"+\": result.push(operand1 + operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"-\": result.push(operand1 - operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"*\": result.push(operand1 * operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tcase \"/\": result.push(operand1 / operand2);\n\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\tdefault: throw new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//if the stack is empty when attempting to pop, throw a PostFixException\n\t\t\t\tcatch(EmptyStackException e){\n\t\t\t\t\tthrow new PostFixException(\"Not enough operands\");\n\t\t\t\t}\n\t\t\t\t//If there is an ArithMetic Exception, rethrow it\n\t\t\t\tcatch(ArithmeticException e){\n\t\t\t\t\tthrow new ArithmeticException(\"Divide by 0\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if the token is not an operand or operator it is invalid,\n\t\t\t//throw a PostFixException\n\t\t\telse{\n\t\t\t\tthrow new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t}\n\t\t}\n\t\t\n\t\tgetToken.close();\n\t\t\n\t\t//if the result is not in the stack\n\t\tif(result.empty()){\n\t\t\tthrow new PostFixException(\"Not enough operands\");\n\t\t}\n\t\t\n\t\tint resultNum = result.pop().intValue();\n\t\t\n\t\t//If there are still operands in the stack\n\t\tif(!result.empty()){\n\t\t\tthrow new PostFixException(\"Too many operands\");\n\t\t}\n\t\t\n\t\treturn resultNum;\n\t}",
"public static void main(String[] args) {\n\t\tPostFix aux,courant, racine;\r\n\t\t\r\n\t\t sc = new Scanner(System.in);\r\n\t\t System.out.println(\"Entrer l'expression postfixée--->\");\r\n\t\t ArrayList<String> list ; \r\n\t\t String PostEntre = sc.nextLine();\r\n\t\t \r\n\t\t list = new ArrayList<>(Arrays.asList(PostEntre.split(\" \")));\r\n\t\t \r\n\t\t ArrayDeque<PostFix> pil = new ArrayDeque<PostFix>();\r\n\t\t for (String s : list){\r\n\t\t\t courant = new PostFix(s);\r\n\t\t\t if (isOperator(s)){\r\n\t\t\t\t aux = pil.pop();\r\n\t\t\t\t courant.setfilsgauche(pil.pop());\r\n\t\t\t\t courant.setfilsdroit(aux);\r\n\t\t\t }\r\n\t\t\t pil.push(courant);\r\n\t\t\t \r\n\t\t }\r\n\t\t racine = pil.pop();\r\n\t\t System.out.println(\"L'arbre est : \" );\r\n\t\t System.out.println(racine + \"\\n\" );\r\n\t\t // racine.Afficher(racine);\r\n\t\t \r\n\t\t //----------------------------to prefix------------------------\r\n\t\t String s1,s2,sor;\r\n\t\t \r\n\t\t ArrayDeque<String> operst = new ArrayDeque<String>();\r\n\t\t for (String n : list){\r\n\t\t\t if (!isOperator(n))\r\n\t\t\t\t operst.push(n);\r\n\t\t\t else{\r\n\t\t\t\ts2 = operst.pop();\r\n\t\t\t \ts1 = operst.pop();\r\n\t\t\t \tsor = n +\" \"+ s1 +\" \"+ s2;\r\n\t\t\t operst.push(sor);\r\n\t\t\t }\r\n\t\t\t \t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"L'expression prefixee donne: \");\r\n\t\t System.out.println(operst.pop()+\"\\n\");\r\n\t\t //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\t\t \r\n\t\t \r\n\t\t //-----------------------------evaluation-----------------------\r\n\t\t Double oper1, oper2,result;\r\n\t\t ArrayDeque<Double> abc = new ArrayDeque<Double>();\r\n\t\t for (String n : list){\r\n\t\t\t if (!isOperator(n))\r\n\t\t\t\t abc.push(Double.valueOf(n));\t\t\t\r\n\t\t\t else{\r\n\t\t\t\t oper2 = abc.pop();\t\t\t \t\r\n\t\t\t\t oper1 = abc.pop();\r\n\t\t\t \tresult = operate(oper1,oper2,n);\t\t\t \r\n\t\t\t \t\tabc.push(result);\r\n\t\t\t }\r\n\t\t\t \t\t\t \r\n\t\t }\r\n\t\t System.out.println(\"l'evaluation donne: \");\r\n\t\t System.out.println(abc.pop());\r\n\t\t //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\r\n\t}",
"Double postfixCalc(PostFixReturn returnValue){\r\n //data initialization\r\n Stack<Character> input = returnValue.postFix;\r\n\r\n char event;\r\n Stack<Double> Values = new Stack<>();\r\n String numStr=\"\";\r\n double number1,number2,number;\r\n double result = 0.0000;\r\n Long temp;\r\n //main loop\r\n while (!input.empty()){\r\n //detects numerics and converts it into doubles and place it within stack\r\n if(input.peek()=='|'){\r\n input.pop();\r\n while(input.peek()!='|'){\r\n Character c = input.pop();\r\n numStr += c;\r\n }\r\n input.pop();\r\n //detects strings as keys\r\n if(map.containsKey(numStr)){\r\n number = map.get(numStr);\r\n }\r\n else {\r\n number = Double.valueOf(numStr);\r\n }\r\n// number = Double.valueOf(numStr);\r\n Values.push(number);\r\n numStr = deleteString();\r\n }\r\n // checks operand and uses the last 2 numerics as input\r\n else if(operator(input.peek())){\r\n //checks events and does calculations\r\n event = input.pop();\r\n number1= Values.pop();\r\n System.out.println(\"Operand1: \" + number1);\r\n number2 = Values.pop();\r\n System.out.println(\"Operand2: \" + number2);\r\n System.out.println(\"Operator: \" + event);\r\n if (event == '+'){\r\n result = number2 + number1;\r\n }\r\n else if (event == '-'){\r\n result = number2 - number1;\r\n }\r\n else if (event == '*'){\r\n result = number2 * number1;\r\n }\r\n else if (event == '/'){\r\n result = number2 / number1;\r\n }\r\n else if (event == '^') {\r\n result = Math.pow(number2, number1);\r\n }\r\n System.out.println(\"result: \"+result);\r\n Values.push(result);\r\n }\r\n\r\n else{\r\n input.pop();\r\n }\r\n }\r\n result = Values.pop();\r\n //places into hashmap\r\n if (returnValue.status){\r\n map.put(returnValue.key,result);\r\n }\r\n\r\n return result;\r\n }",
"public double evaluatePostfix(double x) {\n\n\t\tScanner scan = new Scanner(postFix);\n\t\tString s;\n\t\tLinkedList<Double> stack = new LinkedList<Double>();\n\t\tdouble temp;\n\t\tdouble partSum = 0;\n\n\t\twhile (scan.hasNext()) {\n\t\t\ts = scan.next();\n\t\t\tif (s.matches(\"\\\\p{Alpha}\")) {\n\t\t\t\ts = x + \"\";\n\t\t\t}\n\n\t\t\tif (s.matches(\"(^-?\\\\d*\\\\.\\\\d+|^-?\\\\d+\\\\.\\\\d*$|^-?\\\\d+)|(\\\\d*\\\\.\\\\d+|-?\\\\d+\\\\.\\\\d*$|\\\\d+)\")) {\n\t\t\t\tstack.push(Double.parseDouble(s));\n\t\t\t} else if (s.matches(\"\\\\+|\\\\-(?<!\\\\d)|\\\\*|\\\\/|\\\\^\")) {\n\t\t\t\ttemp = stack.peek();\n\t\t\t\tstack.pop();\n\t\t\t\tif (s.equals(\"+\")) {\n\t\t\t\t\tpartSum = stack.peek() + temp;\n\t\t\t\t\tstack.pop();\n\t\t\t\t} else if (s.equals(\"-\")) {\n\t\t\t\t\tpartSum = stack.peek() - temp;\n\t\t\t\t\tstack.pop();\n\t\t\t\t} else if (s.equals(\"*\")) {\n\t\t\t\t\tpartSum = stack.peek() * temp;\n\t\t\t\t\tstack.pop();\n\t\t\t\t} else if (s.equals(\"/\")) {\n\t\t\t\t\tpartSum = stack.peek() / temp;\n\t\t\t\t\tstack.pop();\n\t\t\t\t} else if (s.equals(\"^\")) {\n\t\t\t\t\tpartSum = Math.pow(stack.peek(), temp);\n\t\t\t\t\tstack.pop();\n\t\t\t\t}\n\t\t\t\tstack.push(partSum);\n\t\t\t}\n\t\t}\n\n\t\treturn stack.peek();\n\t}",
"public CustomQueue<String> calculate (CustomQueue<String> infixQueue){\r\n InfixToPostfixConverter converter = new InfixToPostfixConverter();\r\n \r\n CustomQueue<String> postFix = converter.convertToPostFix(infixQueue);\r\n CustomQueue<String> result = evaluatePostFix(postFix);\r\n return result;\r\n }",
"public static String convertInfixToPostfix(String infix) throws InvalidNotationFormatException {\n\t\tNotationQueue<String> postfix = new NotationQueue<String>(infix.length());\n\t\tNotationStack<String> eval = new NotationStack<String>(infix.length());\n\t\tchar[] expr = infix.toCharArray();\n\t\tfor (int i = 0; i < expr.length; i++) {\n\t\t\tif (Character.isDigit(expr[i])) {\n\t\t\t\ttry {\n\t\t\t\t\tpostfix.enqueue(String.valueOf(expr[i]));\n\t\t\t\t}catch(QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i] == '(') {\n\t\t\t\ttry {\n\t\t\t\t\teval.push(String.valueOf(expr[i]));\n\t\t\t\t}catch(StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i]=='+'||expr[i]=='-'||expr[i]=='*'||expr[i]=='/') {\n\t\t\t\ttry {\n\t\t\t\t\twhile(!eval.isEmpty() && eval.top().charAt(0)!='(' && prec(expr[i]) <= prec(eval.top().charAt(0))){\n\t\t\t\t\t\tString pop1 = eval.pop();\n\t\t\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t\t\t}\n\t\t\t\t\teval.push(String.valueOf(expr[i]));\n\t\t\t\t}catch (StackUnderflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else if (expr[i]==')') { \n\t\t\t\ttry {\n\t\t\t\t\twhile(!eval.isEmpty() && eval.top().charAt(0)!='(') {\n\t\t\t\t\t\tString pop1 = eval.pop();\n\t\t\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t\t\t}\n\t\t\t\t\tif(eval.size()==0){\n\t\t\t\t\t\tthrow new InvalidNotationFormatException();\n\t\t\t\t\t}else {\n\t\t\t\t\t\teval.pop();\n\t\t\t\t\t}\n\t\t\t\t}catch (StackUnderflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch (QueueOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\twhile(!eval.isEmpty()) {\n\t\t\t\tString pop1 = eval.pop();\n\t\t\t\tpostfix.enqueue(pop1);\n\t\t\t}\n\t\t}catch (StackUnderflowException e) {\n\t\t\te.printStackTrace();\n\t\t}catch (QueueOverflowException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn postfix.toString();\n\t}",
"public String parsePrefixToPostfix(String exp) throws SyntaxError {\n \tif (exp.length() == 0) {\n \t\tthrow new SyntaxError(\"No expression has been entered.\");\n \t}\n //parser accepts user input into exp\n \tScanner parser = new Scanner(exp);\n int element;\n String operator;\n String entity;\n String postfixExpression = \"\"; \n String firstOperand, secondOperand;\n int result = 0;\n \n //tokenize prefix string and set up 2 stacks\n Stack<String> operandStack = new Stack<String>();\n Stack<String> reverseOperatorStack = new Stack<String>();\n //while statement to push onto the reversal stack if there are more tokens\n while (parser.hasNext()) {\n entity = parser.next();\n // unless there is a space\n if (!entity.equals(\" \"))\n reverseOperatorStack.push(entity);\n }\n try { \n \t// while statement to pop to reversal stack if it is not empty\n \twhile (!reverseOperatorStack.isEmpty()) {\n //peek to retrieve the token at the top of the stack\n \t\tentity = reverseOperatorStack.peek();\n \t\t//pop to take the token off the stack\n\t reverseOperatorStack.pop();\n\t \n\t // if it is an operand\n\t if (Character.isDigit(entity.charAt(0))) {\n\t \t//push token onto the operand stack\n\t \toperandStack.push(entity);\n\t }\n\t // if it is an operator\n\t else if (entity.equals(\"/\") || entity.equals(\"*\") \n\t \t\t|| entity.equals(\"+\") || entity.equals(\"-\")) {\n\t \t//retrieve, then pop first operand off the stack\n\t \tfirstOperand = operandStack.peek();\n\t operandStack.pop();\n\t //retrieve, then pop second operand off the stack\n\t secondOperand = operandStack.peek();\n\t operandStack.pop();\n\t // formats miniExpression String with the 2 operands followed by the operator \n\t String miniExpression = firstOperand + \" \" + secondOperand + \" \" + entity;\n\t //push the string onto the operand stack\n\t operandStack.push(miniExpression);\n\t }\n \t}\n \t //throws error if there is an incorrect entry improperly formatted \t\n } catch (Exception e) {\n throw new SyntaxError(\"You have entered an improper expression. Check your input.\");\n }\n //retrieve, then pop the postfix expression off the stack\n postfixExpression = operandStack.peek();\n operandStack.pop();\n //return postfix - holding the converted expression\n return postfixExpression; \n }",
"@Override\n\tpublic int postfixEval(String[] exp) {\n\t\t\n\t\tStack<Integer> stk = new Stack<Integer>();\n\t\t\n\t\tfor(String part: exp) {\n\t\t\tif(part.equals(EMPTY))\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tstk.push(Integer.parseInt(part));\n\t\t\t}\n\t\t\tcatch (NumberFormatException n) {\n\t\t\t\tif(part.equals(PLUS_SIGN))\n\t\t\t\t\tstk.push(stk.pop() + stk.pop());\n\t\t\t\telse\n\t\t\t\t\tstk.push(stk.pop() * stk.pop());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn stk.pop();\n\t}",
"String convertToPostfix(String input);",
"private static String getPostfix(String s) {\n\t\tif(s.length() == 0){\n\t\t\treturn null;\n\t\t}\n\t\tString[] expression = s.split(\" \");\n\t\tStack stack = new Stack();\n\t\tString result = null;\n\t\tfor(int i = 0; i<expression.length;i++){\n\t\t\tString temp = expression[i];\n\t\t\tif(temp.equals(\"+\") || temp.equals(\"-\") || temp.equals(\"*\") || temp.equals(\"/\") || temp.equals(\"%\")){\n\t\t\t\twhile(!stack.isEmpty() && hasHigherPriority(stack.top(),temp)){\n\t\t\t\t\tif(result == null){\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Expression is not infix\");\n\t\t\t\t\t}\n\t\t\t\t\tresult = result + stack.pop();\n\t\t\t\t}\n\t\t\t\tstack.push(temp);\n\t\t\t}else{\n\t\t\t\tif(result == null){\n\t\t\t\t\tresult = temp;\n\t\t\t\t}else{\n\t\t\t\t\tresult = result + temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\twhile(!stack.isEmpty()){\n\t\t\tresult = result + stack.pop();\n\t\t}\n\t\treturn result;\n\t}",
"public int evalPostfixExpression(String[] input) {\r\n\t\tStack<Integer> result = new Stack<Integer>();\r\n\t\tint num = 0;\r\n\t\tfor (String s: input) {\r\n\t\t\ttry {\r\n\t\t\t\tnum = Integer.parseInt(s);\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\tint y = result.pop();\r\n\t\t\t\tint x = result.pop();\r\n\t\t\t\tif (s.equals(\"+\"))\r\n\t\t\t\t\tnum = x + y;\r\n\t\t\t\telse if (s.equals(\"-\"))\r\n\t\t\t\t\tnum = x - y;\r\n\t\t\t\telse if (s.equals(\"*\"))\r\n\t\t\t\t\tnum = x * y;\r\n\t\t\t\telse if (s.equals(\"/\"))\r\n\t\t\t\t\tnum = x / y;\r\n\t\t\t}\r\n\t\t\tresult.push(num);\r\n\t\t}\r\n\t\treturn result.pop();\r\n\t}",
"private static String convertToPostfix(String str) {\n Stack<Character> stack = new Stack<>();\n StringBuilder postfix = new StringBuilder();\n\n\n for (int index = 0; index < str.length(); index++) {\n char c = str.charAt(index);\n\n //if c is a digit, an algebraic variable, a dot, or blank (String formatting helper) it is added to\n //the postfix expression\n if ( Character.isLetterOrDigit(c) || c == '.' || c == ' ' ) {\n postfix.append(c);\n\n //if c is a left parenthesis it is added to the stack and a blank (string format helper) is appended\n //to postfix expression.\n } else if ( c == '(' ) {\n stack.push(c);\n postfix.append(\" \");\n\n //if c is an operator the stack is pop and added to the postfix expression only if c's precedence is\n // smaller or equal to the topmost operator in the stack. Otherwise, c is just added to the stack\n } else if ( isOperator(c) ) {\n while (!stack.isEmpty() && precedence(c) <= precedence(stack.peek()) ) {\n postfix.append(stack.pop()).append(\" \");\n }\n stack.push(c);\n\n //if c is a right parenthesis and the stack is not empty, the stack is then popped and added to the\n //postfix expression until a left parenthesis is encountered. If there is no left parenthesis then an\n //exception is thrown with a misplaced parenthesis statement\n } else if ( c == ')') {\n boolean hasLeftParenthesis = false;\n while ( !stack.isEmpty() ) {\n char popped = stack.pop();\n if ( popped == '(' ) {\n hasLeftParenthesis = true;\n break;\n } else {\n postfix.append(popped).append(\" \");\n }\n }//end of inner-loop\n if ( !hasLeftParenthesis ) {\n throw new ArithmeticException(\"Misplaced parenthesis\");\n }\n }\n }//end of for-loop\n\n //If stack is not empty, the stack is then popped and added to the postfix expression. If a left parenthesis is\n //found then an exception is thrown with a misplaced parenthesis statement;\n while (!stack.isEmpty()) {\n if (stack.peek() == '(') {\n throw new ArithmeticException(\"Misplaced parenthesis\");\n }\n postfix.append(stack.pop()).append(\" \");\n }\n\n //String is trimmed, double spaces are replaced by single spaces, and returned\n return postfix.toString().trim().replaceAll(\" \", \" \");\n }",
"public Double postfixEvaluate(String postfix) {\r\n\t \tStack<Double> valueStack = new Stack<Double> ();\r\n\t\t\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tScanner tokens = new Scanner(postfix);\r\n\t\t\r\n\t\twhile (tokens.hasNext()) {\r\n\t\t\tif (tokens.hasNextInt()) {\r\n\t\t\t\tvalueStack.push(tokens.nextDouble());\r\n\t\t\t} else {\r\n\t\t\t\tdouble operandTwo = valueStack.pop();\r\n\t\t\t\tdouble operandOne = valueStack.pop();\r\n\t\t\t\tString function = tokens.next();\r\n\t\t\t\t\r\n\t\t\t\t switch (function)\r\n\t\t\t\t {\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t case \"+\":\r\n\t\t\t\t \tvalueStack.push(operandOne + operandTwo);\r\n\t\t\t\t \tbreak;\r\n\t\t\t\t case \"-\":\r\n\t\t\t\t \tvalueStack.push(operandOne - operandTwo);\r\n\t\t\t\t \tbreak;\r\n\t\t\t\t case \"*\":\r\n\t\t\t\t \tvalueStack.push(operandOne * operandTwo);\r\n\t\t\t\t \tbreak;\r\n\t\t\t\t case \"/\":\r\n\t\t\t\t \tvalueStack.push(operandOne / operandTwo);\r\n\t\t\t\t \tbreak;\r\n\t\t\t\t case \"^\":\r\n\t\t\t\t \tvalueStack.push( (double) Math.pow(operandOne, operandTwo));\r\n\t\t\t\t \tbreak;\r\n\t\t\t\t \t//working on decimal point calculations. also give it a precedence of 4\r\n\t\t\t\t case \".\":\r\n\t\t\t\t \tdouble temp = operandTwo/10;\r\n\t\t\t\t \tvalueStack.push(operandOne = (temp + operandOne));\r\n\t\t\t\t \tbreak;\r\n\t\t\t\t \r\n\t\t\t\t default:\r\n\t\t\t\t break;\r\n\t\t\t\t }// end of switch\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t}// end of else\r\n\t\t}// end of while\r\n\t\treturn valueStack.peek();\r\n }",
"public static String infixToPostfix(String infix) throws PostFixException{\n\t\t//Create a new stack object to hold operators from infix expression\n\t\tStack<String> operatorStack = new Stack<String>();\n\t\tString postfix = \"\";\n\t\tString curToken = \"\";\n\t\tScanner getToken = new Scanner(infix);\n\t\t//holds the previous token type as a string\n\t\tString previousTokenType = \"first token\";\n\t\t\n\t\t//Iterate over all tokens in expression\n\t\twhile(getToken.hasNext()){\n\t\t\tcurToken = getToken.next();\n\t\t\t\n\t\t\t//if the token is an operand (meaning it is an integer), add to postfix expression\n\t\t\tif(isPositiveInteger(curToken)){\n\t\t\t\t//if the token sequence is valid, add the current token to the psotfix expression\n\t\t\t\tif(checkValidTokenSequence(\"operand\", previousTokenType)){\n\t\t\t\t\tpostfix += (curToken + \" \");\n\t\t\t\t\tpreviousTokenType = \"operand\";\n\t\t\t\t}\n\t\t\t\telse{ //otherwise throw an exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the current token is a left bracket check that the token sequence is valid and push the\n\t\t\t//token on the stack\n\t\t\telse if(curToken.equals(\"(\")){\n\t\t\t\tif(checkValidTokenSequence(\"left bracket\", previousTokenType)){\n\t\t\t\t\toperatorStack.push(curToken);\n\t\t\t\t\tpreviousTokenType = \"left bracket\";\n\t\t\t\t}\n\t\t\t\telse{//if the token sequence is invalid throw and exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the token is an operator, check sequence validity\n\t\t\telse if(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\t\t//if the token is an operator and it is the first token, the expression is invalid\n\t\t\t\tif(previousTokenType.equals(\"first token\")){\n\t\t\t\t\tthrow new PostFixException(\"Invalid operator placement\");\n\t\t\t\t}\n\t\t\t\t//if the token sequence is valid, add all operator on stack with lower or equal precedence to\n\t\t\t\t//to the prefix expression\n\t\t\t\tif(checkValidTokenSequence(\"operator\", previousTokenType)){\n\t\t\t\t\twhile(!operatorStack.empty() && checkPrecedence(operatorStack.peek(),curToken)){\n\t\t\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t\t\t\t}\n\t\t\t\t\t//push the current token on the operator stack\n\t\t\t\t\toperatorStack.push(curToken);\n\t\t\t\t\tpreviousTokenType = \"operator\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//if the token sequence is invalid, throw exception\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if the token is a right bracket, check that token sequence is valid\n\t\t\telse if(curToken.equals(\")\")){\n\t\t\t\t\n\t\t\t\t//if the token sequence is valid, add all operators on operator stack \n\t\t\t\t//to the prefix expression until the matching left bracket is reached\n\t\t\t\tif(checkValidTokenSequence(\"right bracket\", previousTokenType)){\n\t\t\t\t\tboolean hasMatchingBracket = false;\n\t\t\t\t\t\n\t\t\t\t\twhile(!operatorStack.empty()){\n\t\t\t\t\t\tif(!operatorStack.peek().equals(\"(\")){\n\t\t\t\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\toperatorStack.pop();\n\t\t\t\t\t\t\thasMatchingBracket = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If the right bracket does not have a matching left bracket, throw an exception\n\t\t\t\t\tif(!hasMatchingBracket){\n\t\t\t\t\t\tthrow new PostFixException(\"Missing left bracket\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tpreviousTokenType = \"right bracket\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//If the token sequence is invalid throw an exception\n\t\t\t\telse{\n\t\t\t\t\tthrow new PostFixException(\"Invalid token sequence\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the current token is not a valid token, throw an exception\n\t\t\telse{\n\t\t\t\tthrow new PostFixException(\"Invalid token: \" + curToken);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Check to see if the last token was an operator, if so throw an exception\n\t\tif(curToken.equals(\"+\")||curToken.equals(\"-\")||curToken.equals(\"*\")||curToken.equals(\"/\")){\n\t\t\tthrow new PostFixException(\"Invalid operator placement\");\n\t\t}\n\t\t\n\t\t//while there operator stack is not empty, pop whatever is in the stack and append\n\t\twhile(!operatorStack.empty()){\n\t\t\t//if there is a bracket left in the stack, then the infix expression is invalid\n\t\t\tif(operatorStack.peek().equals(\"(\") || operatorStack.peek().equals(\")\")){\n\t\t\t\tthrow new PostFixException(\"Bracket mismatch\");\n\t\t\t}\n\t\t\t\tpostfix += (operatorStack.pop() + \" \");\n\t\t}\n\t\t\n\t\tgetToken.close();\n\t\t\n\t\t//return the postfix expression\n\t\treturn postfix;\n\t}",
"public static String inFixToPostFix(String equation) {\n\t\tString postFix = \"\";\n\n\t\tequation = equation.replaceAll(\"\\\\s+\", \"\");\n\n\t\tPattern pattern = Pattern.compile(\"\\\\d+\\\\p{Alpha}\");\n\t\tMatcher match = pattern.matcher(equation);\n\n\t\tequation = equation.replaceAll(\"(?<=\\\\p{Alpha})(?=\\\\d)|(?<=\\\\d)(?=\\\\p{Alpha})\", \"*\");\n\t\tequation = equation.replaceAll(\"^-|\\\\-(?=\\\\()\", \"-1*\");\n\t\tequation = equation.replaceAll(\"\\\\)\\\\(\",\")*(\");\n\t\tequation = equation.replaceAll(\"-x\", \"-1*x\");\n//\t\tequation = equation.replaceAll(\"(?<=\\\\^)\\\\-\", \"(-\");\n\n\t\t// context of \"-\"\n\n\t\t// finding 3*x or 3/x\n\t\tString vars = \"(\\\\p{Alpha})\";\n\n\t\t// letters without coefficients\n\t\tString coeff = \"(\\\\d*\\\\.?\\\\d*\\\\.?\\\\d+|^\\\\-\\\\d+|(?<=\\\\()\\\\-\\\\d+)|(?<=\\\\p{Punct})\\\\-\\\\d+\";\n//\t\tString coeffDec = \"\\\\d+\";\n\t\t\n\t\t\n\t\t// operators\n\t\tString oper = \"\\\\+|(?<!^)\\\\-|\\\\*|\\\\/|\\\\^\";\n\t\tString oper2 = \"\\\\+|\\\\-|\\\\*|\\\\/|\\\\^\";\n\n\t\tString brackets = \"\\\\(|\\\\)\";\n\n\t\tpattern = Pattern.compile(vars + \"|\" + coeff + \"|\" + oper + \"|\" + brackets);\n\t\tmatch = pattern.matcher(equation);\n\n\t\tLinkedList<String> stack = new LinkedList<String>();\n\n\t\tHashtable<String, Integer> priority = new Hashtable<String, Integer>();\n\n\t\tpriority.put(\"+\", 0);\n\t\tpriority.put(\"-\", 0);\n\t\tpriority.put(\"/\", 1);\n\t\tpriority.put(\"*\", 1);\n\t\tpriority.put(\"^\", 2);\n\n\t\tpriority.put(\"(\", 2);\n\t\tpriority.put(\")\", 2);\n\t\tboolean first = true;\n\t\twhile (match.find()) {\n//\t\t\tSystem.out.println(match.group());\n\t\t\tif (match.group().matches(vars + \"|\" + coeff)) {\n\n\t\t\t\tpostFix = postFix + match.group() + \" \";\n\n\t\t\t} else if (match.group().matches(oper2) || match.group().matches(\"\\\\(\")) {\n\n\t\t\t\tif (stack.isEmpty()) {\n\t\t\t\t\tstack.push(match.group());\n\t\t\t\t\tfirst = true;\n\n\t\t\t\t} else if (priority.get(match.group()).intValue() < priority.get(stack.peek()).intValue()) {\n\n\t\t\t\t\twhile (!stack.isEmpty() && !stack.peek().matches(brackets)) {\n\t\t\t\t\t\t// //System.out.println(stack.peek());\n\t\t\t\t\t\tpostFix = postFix + stack.peek() + \" \";\n\t\t\t\t\t\tstack.pop();\n\t\t\t\t\t\t// //System.out.println(stack.peek());\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!first) {\n\t\t\t\t\tstack.push(match.group());\n\n\t\t\t\t}\n\t\t\t\tfirst = false;\n\t\t\t} else if (match.group().matches(\"\\\\)\")) {\n\t\t\t\twhile (!stack.peek().matches(\"\\\\(\")) {\n\t\t\t\t\t// //System.out.println(stack.peek());\n\t\t\t\t\tpostFix = postFix + stack.peek() + \" \";\n\t\t\t\t\tstack.pop();\n\t\t\t\t\t// //System.out.println(stack.peek());\n\t\t\t\t}\n\t\t\t\tstack.pop();\n\t\t\t}\n\n\t\t}\n\t\tif (!stack.isEmpty()) {\n\t\t\twhile (!stack.isEmpty()) {\n\t\t\t\tpostFix = postFix + stack.peek() + \" \";\n\t\t\t\tstack.pop();\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(equation);\n\t\t//System.out.println(postFix);\n\t\treturn postFix;\n\t}",
"public Polynomial postfixEval(List<Token> postfixtokenList){\n ArrayDeque<Token> stack = new ArrayDeque<Token>(); \n\n Polynomial result = new Polynomial(); \n for (Token token : postfixtokenList){\n if (token instanceof Polynomial)\n stack.push(token); \n else if (token instanceof Operator){\n Polynomial op2 = (Polynomial) stack.pop(); \n Polynomial op1 = (Polynomial) stack.pop(); \n result = ((Operator) token).operate(op1, op2);\n if (result == null) //for division by 0\n return null;\n stack.push(result); \n }\n }\n result = (Polynomial) stack.pop(); \n if (storingVar != ' '){\n memory.put(storingVar, result); \n storingVar = ' ';\n }\n return result; \n }",
"static String infixToPostfix(String txt) \n\t{\n\t\tString postfix = new String(\"\");\n Stack<Character> stack = new Stack<>();\n \n for (int i = 0; i<txt.length(); ++i)\n {\n char c = txt.charAt(i);\n \n // Ist das eingescannte Zeichen c ein Operand, addiere es zur Ausgabe hinzu\n if (Character.isLetterOrDigit(c)) \n {\n \tpostfix += c;\n }\n \n \n // Ist das eingescannte Zeichen c eine offene Klammer, lege es auf den Stapel\n else if (c == '(') \n {\n \tstack.push(c);\n }\n \n // Ist das eingescannte Zeichen c eine schließende Klammer, pop es aus dem Stapel bis eine öffnende Klammer erscheint\n else if (c == ')')\n {\n while (!stack.isEmpty() && stack.peek() != '(') \n {\n \tpostfix += stack.pop();\n stack.pop();\n } \n }\n else //falls es ein Operator ist\n {\n while (!stack.isEmpty() && precedence(c) < precedence(stack.peek()))\n {\n postfix += stack.pop();\n }\n stack.push(c);\n }\n }\n \n // pop all the operators from the stack\n while (!stack.isEmpty())\n {\n postfix += stack.pop();\n }\n return postfix;\n\n\t}",
"public static int evaluatePostFix(String S)\n {\n \n if(S.length()==1){\n return (int)S.charAt(0);\n }\n Stack<Integer> stack = new Stack<Integer>();\n for(char ch:S.toCharArray()){\n if(Character.isDigit(ch)){\n int value = ch-'0';\n stack.push(value);\n }\n else{\n int first=stack.pop();\n int second=stack.pop();\n if(ch=='*'){\n stack.push(first*second);\n }\n else if(ch=='+'){\n stack.push(first+second);\n }\n else if(ch=='-'){\n stack.push(second-first);\n }else{\n stack.push(second/first);\n }\n \n }\n }\n \n if(stack.isEmpty()==false)\n return stack.pop();\n else return -1;\n \n }",
"public static String produceAnswer(String input) {\n // TODO: Implement this function to produce the solution to the input\n \n // Parsing one line of input\n int space = input.indexOf(\" \"); // find the index of the first space\n String operandOne = input.substring(0, space); // substring of beginning to space before operator\n \n String newString1 = input.substring(space + 1, input.length());\n int space2 = newString1.indexOf(\" \"); // find the index of the second space\n String operator = newString1.substring(0, space2); // operator is between the first space and the second space\n \n String newString2 = newString1.substring(space2, newString1.length());\n String operandTwo = newString2.substring(space2, newString2.length()); // substring of space after operator to the end\n \n \n // Multiple operations\n while (operandTwo.indexOf(\" \") > 0) {\n int space3 = operandTwo.indexOf(\" \");\n String value = operandTwo.substring(0, space3);\n String new_String3 = operandTwo.substring(space3 + 1, operandTwo.length());\n int space4 = new_String3.indexOf(\" \");\n String operator2 = new_String3.substring(space4 - 1, space4);\n operandTwo = new_String3.substring(space4 + 1, new_String3.length());\n String new_equation = operandOne + \" \" + operator + \" \" + value;\n operandOne = produceAnswer(new_equation);\n operator = operator2;\n }\n \n // Parsing fractions: Operand 1\n String whole1 = operandOne; // hi_\n String num1 = \"\";\n String denom1 = \"\";\n int slash1 = operandOne.indexOf(\"/\");\n \n if (slash1 > 0) {\n int underscore1 = operandOne.indexOf(\"_\");\n if (underscore1 > 0) {\n whole1 = operandOne.substring(0, underscore1);\n num1 = operandOne.substring(underscore1 + 1, slash1);\n denom1 = operandOne.substring(slash1 + 1, operandOne.length());\n } else {\n whole1 = \"0\";\n num1 = operandOne.substring(underscore1 + 1, slash1);\n denom1 = operandOne.substring(slash1 + 1, operandOne.length());\n }\n \n } else {\n num1 = \"0\";\n denom1 = \"1\";\n }\n \n // Parsing fractions: Operand 2\n String whole2 = operandTwo;\n String num2 = \"\";\n String denom2 = \"\";\n int slash2 = operandTwo.indexOf(\"/\");\n \n if (slash2 > 0) {\n int underscore2 = operandTwo.indexOf(\"_\");\n if (underscore2 > 0) {\n whole2 = operandTwo.substring(0, underscore2);\n num2 = operandTwo.substring(underscore2 + 1, slash2);\n denom2 = operandTwo.substring(slash2 + 1, operandTwo.length());\n } else {\n whole2 = \"0\";\n num2 = operandTwo.substring(underscore2 + 1, slash2);\n denom2 = operandTwo.substring(slash2 + 1, operandTwo.length());\n }\n \n } else {\n num2 = \"0\";\n denom2 = \"1\";\n }\n \n \n // change strings to integers\n int intwhole1 = Integer.parseInt(whole1);\n int intnum1 = Integer.parseInt(num1);\n int intdenom1 = Integer.parseInt(denom1);\n \n int intwhole2 = Integer.parseInt(whole2);\n int intnum2 = Integer.parseInt(num2);\n int intdenom2 = Integer.parseInt(denom2);\n \n // convert to improper fraction\n intnum1 += intdenom1 * Math.abs(intwhole1);\n if (intwhole1 < 0) {\n intnum1 *= -1;\n }\n \n intnum2 += intdenom2 * Math.abs(intwhole2);\n if (intwhole2 < 0) {\n intnum2 *= -1;\n }\n \n int finalnum = 0;\n int finaldenom = 0;\n int finalwhole = 0;\n \n // if denominator equals 0, quit\n if (intdenom1 == 0 || intdenom2 == 0) {\n return \"Invalid\";\n }\n \n // if operator is incorrect, quit\n if (operator.length() > 1) {\n return \"Invalid\";\n }\n \n // addition calculation\n // multiply whole values to fraction to get a common denominator\n if (operator.equals(\"+\")) {\n intnum1 *= intdenom2;\n intnum2 *= intdenom1;\n finalnum = intnum1 + intnum2;\n finaldenom = intdenom1 * intdenom2;\n }\n \n // subtraction calculation\n if (operator.equals(\"-\")) {\n intnum1 *= intdenom2;\n intnum2 *= intdenom1;\n finalnum = intnum1 - intnum2;\n finaldenom = intdenom1 * intdenom2;\n }\n \n // multiplication calculation\n if (operator.equals(\"*\")) {\n finalnum = intnum1 * intnum2;\n finaldenom = intdenom1 * intdenom2;\n if (intnum1 == 0 || intnum2 == 0) {\n return 0 + \"\";\n }\n }\n \n // division calculation\n if (operator.equals(\"/\")) {\n finalnum = intnum1 * intdenom2;\n finaldenom = intdenom1 * intnum2;\n }\n \n // make numerator negative instead of the denominator\n if (finaldenom < 0 && finalnum > 0) {\n finaldenom *= -1;\n finalnum *= -1;\n }\n \n // convert to mixed fraction if numerator is positive\n while (finalnum / finaldenom >= 1) {\n finalnum -= finaldenom;\n finalwhole += 1;\n }\n \n // convert to mixed fraction if numerator is negative\n while (finalnum / finaldenom <= -1) {\n finalnum += finaldenom;\n finalwhole -= 1;\n }\n \n // remove signs from numerator and denominator if there is a whole number\n if (finalwhole != 0) {\n finalnum = Math.abs(finalnum);\n finaldenom = Math.abs(finaldenom);\n }\n \n // reduce fraction\n int gcd = 1;\n for (int i = 1; i <= Math.abs(finalnum) && i <= Math.abs(finaldenom); i++) {\n if (finalnum % i == 0 && finaldenom % i == 0)\n gcd = i;\n }\n finalnum /= gcd;\n finaldenom /= gcd;\n \n // final output\n if (finalwhole == 0) {\n if (finalnum == 0) {\n return \"0\";\n } else {\n return finalnum + \"/\" + finaldenom;\n }\n } else if (finalnum == 0 || finaldenom == 1) {\n return finalwhole + \"\";\n } else {\n return finalwhole + \"_\" + finalnum + \"/\" + finaldenom;\n }\n }",
"public String postfix()\n\t {\n\t \t// create an empty string builder // \n\t \tStringBuilder sb = new StringBuilder();\n\t \t\n\t \t// fill the string builder//\n\t \tpostfix(root, sb);\n\t \t\n\t \treturn sb.toString().trim();\n\t }",
"public static double evaluatePostfixExpression (String postfixExpr) throws InvalidNotationFormatException {\n\t\tNotationStack<Double> eval = new NotationStack<Double>(postfixExpr.length());\n\t\tchar[] expr = postfixExpr.toCharArray();\n\t\tfor (int i = 0; i < expr.length; i++) {\n\t\t\tif (Character.isDigit(expr[i])) {\n\t\t\t\tdouble d = expr[i]-'0';\n\t\t\t\ttry {\n\t\t\t\t\teval.push(d);\n\t\t\t\t} catch (StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(eval.size() < 2) {\n\t\t\t\t\tthrow new InvalidNotationFormatException();\n\t\t\t\t}\n\t\t\t\tDouble pop1=0.0, pop2=0.0, result=0.0;\n\t\t\t\ttry {\n\t\t\t\t\tpop2 = eval.pop();\n\t\t\t\t\tpop1 = eval.pop();\n\t\t\t\t}catch(StackUnderflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tswitch(expr[i]) {\n\t\t\t\tcase '+' : result = pop1 + pop2;\n\t\t\t\tbreak;\n\t\t\t\tcase '-' : result = pop1 - pop2;\n\t\t\t\tbreak;\n\t\t\t\tcase '*' : result = pop1 * pop2;\n\t\t\t\tbreak;\n\t\t\t\tcase '/' : result = pop1 / pop2;\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\teval.push(result);\n\t\t\t\t} catch (StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (eval.size() > 1) {\n\t\t\tthrow new InvalidNotationFormatException();\n\t\t}\n\t\tDouble output=0.0;\n\t\ttry {\n\t\t\toutput = eval.pop();\n\t\t} catch (StackUnderflowException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn output;\n\t}",
"public static int evaluate(Math impl, String[] postfix) throws StackOverflowError, MalformedPostfixException {\n\n // a stack for implementing the evaluation\n Stack<Integer> stack = new Stack<Integer>();\n\n try {\n \n for (int i = 0; i < postfix.length; i++) {\n\n if (postfix[i].length() == 1 && !Character.isDigit(postfix[i].charAt(0))) {\n\n // if the first character of the element is not a digit then we \n // assume it is an operator\n\n String operator = postfix[i];\n\t\t\n if (operator.equals(\"<\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.lshift(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\">\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.rshift(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"+\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.add(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"-\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.sub(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"*\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.mul(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"/\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.div(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"^\")) {\n int rhs = stack.pop();\n int lhs = stack.pop();\n int result = impl.pow(lhs, rhs);\n stack.add(result);\n } else if (operator.equals(\"!\")) {\n int num = stack.pop();\n int result = impl.fac(num);\n stack.add(result);\n } // if\n\n } else {\n\n // otherwise we assume it is an operand and add it to the stack\n stack.add(Integer.parseInt(postfix[i]));\n\n } // if\n\n } // for\n\n } catch (Exception e) {\n \n // propogate as a malformed postfix exception\n throw new MalformedPostfixException(postfix);\n \n } // try\n \n // if the stack size is not 1, then the expression is malformed\n if (stack.size() != 1) {\n throw new MalformedPostfixException(postfix);\n } // if\n\n // the only element left in the stack will be the result of the evaluation\n return stack.pop();\n\n }",
"public String convertPostfix(String string){\r\n\r\n \t\tStack<Character> operatorStack = new Stack<Character>();\r\n\r\n \t\tStringBuffer postfix = new StringBuffer();\r\n\r\n \t\tCharacter topOperator;\r\n\t\tfor (int i = 0; i < string.length(); i++) {\r\n\t\t\tchar c = string.charAt(i);\r\n\r\n\t\t\tif (Character.isDigit(c)) {\r\n\t\t\t\tpostfix.append(c);\r\n\r\n\r\n\r\n\t\t\t\t// fixing bug to test next character before adding a space\r\n\t\t\t\t// if next character is not a digit add a space\r\n\t\t\t\tif (i + 1 >= string.length() || !Character.isDigit(string.charAt(i + 1)))\r\n\t\t\t\t\tpostfix.append(\" \");\r\n\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\t\r\n \t\t\t\tswitch(c){\r\n \t\t\t\t /////// add a minus to stack without a space\r\n \t\t\t\t\tcase'!':\r\n \t\t\t\t boolean Debug = true;\r\n\r\n\t\t\t\t\tif (Debug)\r\n\t\t\t\t\t\tSystem.out.println(\"Bugs\");\r\n\r\n\t\t\t\t\tpostfix.append('-');\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n \t\t\t\t\tbreak;\r\n \r\n \t\t\t\t\t\r\n \t\t\t\tcase '^':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase '.':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n \t\t\t\tcase '+':\r\n \t\t\t\tcase '-':\r\n \t\t\t\tcase '*':\r\n \t\t\t\tcase '/':\r\n \t\t\t\t\twhile (!operatorStack.isEmpty () &&\r\n \t\t\t\t\t\t\tgetPrecedence(c) <= getPrecedence(operatorStack.peek()))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tpostfix.append(operatorStack.peek() + \" \");\r\n \t\t\t\t\t\toperatorStack.pop();\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t}\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n\r\n \t\t\t\tcase '(':\r\n \t\t\t\t\toperatorStack.push (c);\r\n \t\t\t\t\tbreak;\r\n\r\n \t\t\t\tcase ')': \r\n\t\t\t\t\ttopOperator = operatorStack.pop();\r\n\t\t\t\t\twhile ((topOperator != '(') && !operatorStack.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpostfix.append(topOperator);\r\n\t\t\t\t\t\tpostfix.append(\" \");\r\n\t\t\t\t\t\ttopOperator = operatorStack.pop();\r\n\t\t\t\t\t}// end while\r\n\r\n\t\t\t\t\t/* if(!operatorStack.isEmpty() && operatorStack.peek().equals('(')){\r\n\t\t operatorStack.pop(); // pop/remove left parenthesis \r\n\t\t }*/\r\n\t\t\t\t\tbreak;\r\n \t\t\t\tdefault:\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t} \r\n\t\t/*\r\n\t\t * popping off any final operators\r\n\t\t */\r\n \t\t\twhile (!operatorStack.isEmpty())\r\n \t\t\t{\r\n \t\t\t\ttopOperator = operatorStack.pop();\r\n \t\t\t\tpostfix.append(topOperator + \" \");\r\n \t\t\t\t\r\n \t\t\t}\r\n \t\t\treturn postfix.toString();\r\n\r\n \t\t}",
"public void convertInfixToPostfix() {\n\t\t// Create operator stack\n\t\tStack<String> op_stack = new Stack<String>();\n\n\t\t// Prepare the input string\n\t\tprepareInput();\n\t\t\n\t\t// Split the expression \n\t\tString[] tokens = input.split(\"(?<=[^\\\\.a-zA-Z\\\\d])|(?=[^\\\\.a-zA-Z\\\\d])\");\n\t\t\n\t\t//For each token\n\t\tfor (String t : tokens) {\n\t\t\t// If the token is empty, skip it\n\t\t\tif(t.equals(\"\") || t.equals(\" \")) continue;\n\t\t\t\n\t\t\t// If operator (o1)\n\t\t\tif (Operator.isOperator(t)) {\n\n\t\t\t\t// While there is an operator (o2) an the stack and\n\t\t\t\t// (o1 is left associative AND o2 precedence is higher or equal to o1 precedence)\n\t\t\t\t// OR\n\t\t\t\t// (o1 is right associative AND o2 precedence is higher than o1 precedence)\n\t\t\t\twhile (!op_stack.empty()\n\t\t\t\t\t\t&& Operator.isOperator(op_stack.peek())\n\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.LEFT) && Operator.comparePrec(op_stack.peek(), t) >= 0) \n\t\t\t\t\t\t\t|| \n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.RIGHT) && Operator.comparePrec(op_stack.peek(), t) > 0)\n\t\t\t\t\t\t )\n\t\t\t\t ) \n\t\t\t\t{\n\t\t\t\t\t// add o2 to the output\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Push o1 on to the stack.\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\"(\")) {\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\")\")) {\n\t\t\t\t// While there is not a left parenthesis, add the top token from the stack to the output\n\t\t\t\twhile (!op_stack.peek().equals(\"(\")) {\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\n\t\t\t\t// Pop out the left parenthesis\n\t\t\t\top_stack.pop();\n\t\t\t\t\n\t\t\t\t// While there is a function on the top of the stack, add it to the output\n\t\t\t\tif(!op_stack.empty() && Function.isFunction(op_stack.peek())) output.add(op_stack.pop());\n\t\t\t}\n\t\t\telse if(Function.isFunction(t)){\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\t\t\telse if(isNumeric(t) || isVariable(t)){\n\t\t\t\toutput.add(t);\n\t\t\t}\n\t\t}\n\n\t\t// Finally empty the stack, by adding all remaining tokens to the output.\n\t\twhile (!op_stack.empty()) {\n\t\t\toutput.add(op_stack.pop());\n\t\t}\n\t}",
"public int evalPostfix(String exp) \n { \n exp = exp.replaceAll(\"\\\\s\", \"\");\n \n if (exp == \"**Invalid Expression**\")\n return 0;\n // Scan all characters one by one \n for(int i=0;i<exp.length();i++) \n { \n char c=exp.charAt(i); \n \n // If the scanned character is an operand (number here), \n // push it to the stack. \n if(Character.isDigit(c)) \n finalStack.push(c - '0'); \n \n // If the scanned character is an operator, pop two \n // elements from stack apply the operator \n else\n { \n try{\n int val1 = (int) finalStack.pop(); \n int val2 = (int) finalStack.pop(); \n\n switch(c) \n { \n case '+': \n finalStack.push(val2+val1); \n break; \n\n case '-': \n finalStack.push(val2- val1); \n break; \n\n case '/': \n finalStack.push(val2/val1); \n break; \n\n case '*': \n finalStack.push(val2*val1); \n break;\n\n case '%':\n finalStack.push(val2%val1);\n break;\n } \n }\n catch(NullPointerException nullException){\n postfixExp = \"**Invalid Expression**\";\n throw nullException;\n \n }\n } \n } \n return (int) finalStack.pop(); \n }",
"private String infixToPostfixPlusPrecedence(String infix) {\n\t\tString postfix = \"\";\n\t\tStack<Character> stack = new Stack<>();\n\n\t\tfor (int i = 0; i < infix.length(); i++) {\n\t\t\tchar currentChar = infix.charAt(i);\n\t\t\tif (currentChar == '+' || currentChar == '*') {\n\t\t\t\tif (stack.isEmpty() || stack.peek() == '(') {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else if (precedence(stack.peek()) >= precedence(currentChar)) {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t}\n\t\t\t} else if (currentChar == '(') {\n\t\t\t\tstack.push(currentChar);\n\t\t\t} else if (currentChar == ')') {\n\n\t\t\t\twhile (stack.peek() != '(') {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t}\n\t\t\t\tstack.pop();\n\n\t\t\t} else if (currentChar != ' ') {\n\t\t\t\tpostfix = postfix + currentChar;\n\t\t\t}\n\n\t\t}\n\n\t\twhile (!stack.isEmpty()) {\n\t\t\tpostfix = postfix + stack.pop();\n\t\t}\n\n\t\treturn postfix;\n\t}",
"public String transformInfixToPostfix(String input) {\n\n List<String> outputQueue = new LinkedList<>();\n\n Stack<Operation> operationStack = new Stack<>();\n final String[] splitedEquation = input.split(\" \");\n for (String token : splitedEquation) {\n if (isOperator(token)) {\n OperatorParser operatorParser = new OperatorParser(outputQueue, operationStack,\n token).invoke();\n outputQueue = operatorParser.getOutputQueue();\n operationStack = operatorParser.getOperationStack();\n } else {\n outputQueue = addImmutable(outputQueue, token);\n }\n }\n\n outputQueue = addOperationsToOutputQueue(outputQueue, operationStack);\n\n return Stream.of(outputQueue)\n .collect(Collectors.joining(\" \"));\n }",
"public String convertPostfixToInfix(String postfixstring)\n {\n//implementing stack\n Stack<String> s = new Stack<>();\n//iterates over the postfix expression\n for (int i = 0; i < postfixstring.length(); i++)\n {\n//reading a character at a time\n char ch = postfixstring.charAt(i);\n//inside the if-statement we have called the user-defined function that checks whether the character is operator or not\n if (isOperator(ch))\n {\n String b = s.pop();\n String a = s.pop();\n//push the character (operator) into stack in between the string a and b\n s.push(\"(\" + a + ch + b + \")\");\n }\n else\n//push character into the stack\n s.push(\"\" + ch);\n }\n//pop character from the stack and returns the same\n return s.pop();\n }",
"private static String infixToPostfix(String expression)\r\n {\r\n String result = \"\";\r\n char current_char = ' ';\r\n int index = 0;\r\n StackInterface<Character> operand_stack = new ArrayStack<>();\r\n switch(stack_type)\r\n {\r\n case(\"vector\"):\r\n operand_stack = new VectorStack<>();\r\n break;\r\n \r\n case(\"linked\"):\r\n operand_stack = new LinkedListStack<>();\r\n break;\r\n }\r\n\r\n //iterates through every character and puts them in the stack or the result accordingly\r\n while(index < expression.length())\r\n {\r\n current_char = expression.charAt(index);\r\n switch(current_char)\r\n {\r\n //checks if the character is an operand and if so checks if it should pop the previous input or not\r\n case '+': case '-': case '*': case '/':\r\n if(!operand_stack.isEmpty())\r\n {\r\n while(!operand_stack.isEmpty() && getOperandImportance(current_char) <= getOperandImportance(operand_stack.peek()))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.push(current_char);\r\n }\r\n else\r\n {\r\n operand_stack.push(current_char);\r\n }\r\n break;\r\n\r\n //exponents are always pushed onto the stack\r\n case '^':\r\n operand_stack.push(current_char);\r\n break;\r\n\r\n //if an open delimiter is there, we add it to the stack\r\n case '(': case '{': case '[':\r\n operand_stack.push(current_char);\r\n break;\r\n \r\n //if the delimiter is closing we pop until we find the open equivalent\r\n case ')': case '}': case ']':\r\n while(operand_stack.peek() != delimiterEquivalent(current_char))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.pop();\r\n break;\r\n\r\n case ' ':\r\n break;\r\n\r\n default: \r\n result += current_char;\r\n break;\r\n }\r\n index++;\r\n }\r\n\r\n //pops everything left in the stack to the result at the end\r\n while(!operand_stack.isEmpty())\r\n {\r\n result += operand_stack.pop();\r\n }\r\n\r\n return result;\r\n }",
"public String parsePostfixToPrefix(String exp) throws SyntaxError {\n \t// throws error message if there is no expression entered\n \tif (exp.length() == 0) {\n \t\tthrow new SyntaxError(\"No expression has been entered.\");\n \t}\n Scanner parser = new Scanner(exp);\n String entity;\n //tokenize the string containing the postfix expression\n Stack<String> operandStack = new Stack<String>();\n String firstOperand, secondOperand;\n // try-catch to validate data has been entered\n try {\n\t \t//while there are more tokens\n \t\twhile (parser.hasNext()) {\n\t entity = parser.next();\n\t // if it is a space, skip it\n\t if (entity.equals(\" \"));\n\t // if it is a operand, push it onto the operand stack\n\t if (Character.isDigit(entity.charAt(0)))\n\t operandStack.push(entity);\n\t // if it is an operator\n\t else if (entity.equals(\"/\") || entity.equals(\"*\") \n\t || entity.equals(\"+\") || entity.equals(\"-\")) {\n\t \t//retrieve, then pop operand 1 off the operand stack\n\t \tsecondOperand = operandStack.peek();\n\t operandStack.pop();\n\t //retrieve, then pop operand 2 off the operand stack\n\t firstOperand = operandStack.peek();\n\t operandStack.pop();\n\t // formats miniExpression String with the operator followed by 2 operands\n\t String miniExpression = entity + \" \" + firstOperand + \" \" + secondOperand;\n\t //push the miniExpression string onto the operand stack\n\t operandStack.push(miniExpression);\n\t }\n\t }\n\t //throws error if there is an incorrect entry improperly formatted \t\n } catch (Exception e) {\n \tthrow new SyntaxError(\"You have entered an improper expression. Check your input.\");\n }\n //retrieve, then pop the prefix expression off the operand stack\n String prefix = operandStack.peek();\n operandStack.pop();\n //return prefix - holding the converted expression\n return prefix;\n }",
"public String infixToPostfix(String expression) {\n\t\tStack oPSt = new Stack();\n\t\tStack Sign = new Stack();\n\t\tStringBuilder PFE = new StringBuilder();\n\t\tString n = \"\";\n\t\t// flag -> marks adding new operator to the stack with or without removing the\n\t\t// previous one\n\t\tboolean flag = true;\n\t\t//negflag -> if (true) previous character was operator thus next(-) is negative sign\n\t\t//\t\t\t if (false) previous character was operand thus next (-) is operator\n\t\tboolean negflag = true; \n\t\tint counter = 0; // expresses number of open parenthesis at the moment and if it matches the\n\t\t// counter inside Sign Stack it means that the Sign was changed at this Counter\n\t\tString open = \"(\", closed = \")\";\n\t\tfor (int i = 0; i < expression.length(); i++) {\n\t\t\tString x = expression.substring(i, i + 1);\n\t\t\tStringBuilder longIntegers = new StringBuilder();\n\t\t\tif (x.equals(\"-\") && !expression.substring(i + 1, i + 2).equals(\" \")) {\n\t\t\t\tif(negflag) {\n\t\t\t\tif (n.equals(\"\"))\n\t\t\t\t\tn = \"-\";\n\t\t\t\telse\n\t\t\t\t\tn = \"\";\n\t\t\t\tSign.push(counter);\n\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tint counter2 = 0;\n\t\t\t\twhile (counter2 + i < expression.length()\n\t\t\t\t\t\t&& (isChar(expression.substring(i + counter2, i + counter2 + 1))\n\t\t\t\t\t\t\t\t|| isNum(expression.substring(i + counter2, i + counter2 + 1)))\n\t\t\t\t\t\t&& isNotOperator(expression.substring(i + counter2, i + counter2 + 1))) {\n\t\t\t\t\tlongIntegers.append(expression.substring(i + counter2, i + 1 + counter2));\n\t\t\t\t\tcounter2++;\n\t\t\t\t}\n\t\t\t\ti = i + counter2;\n\t\t\t\tif (counter2 > 0) {\n\t\t\t\t\ti--;\n\t\t\t\t\tx = longIntegers.toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\t// end of taking the expression\n\n\t\t\t// testing the expression\n\n\t\t\t// if the char. is an open parenthesis\n\t\t\tif (x.equals(open)) {\n\t\t\t\toPSt.push(x);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\t// if the char is a close parenthesis\n\t\t\telse if (x.equals(closed)) {\n\t\t\t\tif (counter == 0)\n\t\t\t\t\tthrow new RuntimeException(\"Invalid Input: Redundant \\\")\\\" \");\n\t\t\t\twhile (!((String) oPSt.peek()).equals(open)) {\n\t\t\t\t\tPFE.append(\" \");\n\t\t\t\t\tPFE.append(oPSt.pop());\n\t\t\t\t}\n\t\t\t\toPSt.pop();\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t\t// checks if char was an operator\n\t\t\telse if (x.equals(\"*\") || x.equals(\"+\") || x.equals(\"/\") || x.equals(\"-\")) {\n\t\t\t\tnegflag = true;\n\t\t\t\twhile (!oPSt.isEmpty() && !((String) oPSt.peek()).equals(\"(\")) {\n\t\t\t\t\t// see which character has higher precedence\n\t\t\t\t\tflag = highOrLow(((String) oPSt.peek()).charAt(0), x.charAt(0));\n\t\t\t\t\tif (flag)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\telse {\n\t\t\t\t\t\tPFE.append(\" \");\n\t\t\t\t\t\tPFE.append(oPSt.pop());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\toPSt.push(x);\n\t\t\t}\n\t\t\t// if the char is space then check if the previous was space to avoid having two\n\t\t\t// spaces after each other\n\t\t\t// if the char was a new space/wasn't a space then it's definitely a\n\t\t\t// number/variable and will be pushed to PFE\n\t\t\telse if (!x.equals(\" \") || (PFE.length() > 0 && (char) PFE.charAt(PFE.length() - 1) != ' ')) {\n\t\t\t\tPFE.append(\" \");\n\t\t\t\tif (!x.equals(\" \")) {\n\t\t\t\t\tnegflag = false;\n\t\t\t\t\tPFE.append(n + x);\n\t\t\t}else \n\t\t\t\t\tPFE.append(x);\n\t\t\t\t\n\t\t\t}\n\t\t\twhile (!Sign.isEmpty() && counter == (int) Sign.peek()) {\n\t\t\t\tif (n.equals(\"\"))\n\t\t\t\t\tn = \"-\";\n\t\t\t\telse\n\t\t\t\t\tn = \"\";\n\t\t\t\tSign.pop();\n\t\t\t}\n\t\t}\n\t\t// add all the operator remaining in stack to the PFE except if '(' was found\n\t\t// then there's an runtime exception\n\t\twhile (!oPSt.isEmpty()) {\n\t\t\tif (((String) oPSt.peek()).equals(\"(\"))\n\t\t\t\tthrow new RuntimeException(\"Invalid Input : Redundant \\\"(\\\" \");\n\t\t\tPFE.append(\" \");\n\t\t\tPFE.append(oPSt.pop());\n\t\t}\n\t\t// replace any two consecutive spaces with only one\n\t\tint i = 0;\n\t\twhile (PFE.charAt(i) == ' ' && i < PFE.length() - 1) {\n\t\t\tPFE.deleteCharAt(i);\n\t\t}\n\t\tfor (i = 0; i < PFE.length() - 1; i++) {\n\t\t\tif (PFE.charAt(i) == ' ' && PFE.charAt(i + 1) == ' ') {\n\t\t\t\tPFE.deleteCharAt(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\treturn PFE.toString();\n\n\t}",
"public String processInfix(char[] input) {\n String result = \"\"; //Initialize the string. This will be the postfix formatted input.\n\n for (int i = 0; i < input.length; i++) {\n\n //If it is a digit it is sent straight to the result\n if (Character.isDigit(input[i])) {\n result += input[i];\n }\n\n //If it is an open bracket it is pushed into the stack.\n else if (input[i] == '(') {\n s.push(input[i]);\n }\n\n //If it is a closed bracket, all items in the stack are popped until an open bracket is found.\n //Both brackets are then discarded\n else if (input[i] == ')') {\n\n while (!s.isEmpty() && (char)s.top() != '(') {\n result += (char)s.pop();\n }\n\n if (!s.isEmpty() && (char)s.top() != '(') {\n System.out.println(\"Invalid Expression. A '(' character must be followed by a ')' in the Expression.\");\n } else {\n s.pop(); //get rid of ( from the eq.\n }\n }\n\n //Else it must be an operand...\n else {\n //loop checks:\n // 1. that the stack is not empty and\n // 2. that the current token is less or equal in priority to the one on the top of the stack\n // If it both are true then the operator is sent to the result\n while(!s.isEmpty() && getPriority(input[i]) <= getPriority((char)s.top())){\n result += (char)s.pop();\n }\n s.push(input[i]);\n }\n }\n\n //Pop the remainder of the stack to the result\n while(!s.isEmpty()){\n result += (char)s.pop();\n }\n\n return result;\n }",
"public static String infixToPostfix(String input) {\r\n\t\tStack<Object> infixStack = new Stack<>();\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tboolean digitPreviously = false;\r\n\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tchar temp = input.charAt(i);\r\n\r\n\t\t\t// CASE 1 : handling digits\r\n\t\t\tif (priority(temp) < 0) {\r\n\t\t\t\tsb.append(temp);\r\n\t\t\t\tdigitPreviously = true;\r\n\t\t\t// CASE 2 : handling (, )\r\n\t\t\t} else if (priority(temp) == 0) {\r\n\t\t\t\tif (temp == '(') {\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tdigitPreviously = false;\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tboolean foundOpener = false;\r\n\t\t\t\t\twhile (!infixStack.empty()) {\r\n\t\t\t\t\t\tif ((char)infixStack.peek() == '(') {\r\n\t\t\t\t\t\t\tfoundOpener = true;\r\n\t\t\t\t\t\t\tinfixStack.pop();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\tchar top = (char)infixStack.pop();\r\n\t\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t\t\tsb.append(top);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdigitPreviously = true;\t\r\n\t\t\t\t\tif (!foundOpener) {\r\n\t\t\t\t\t\t// invalid case : different number of ( and )\r\n\t\t\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// CASE 3 : handling operators\r\n\t\t\telse if (priority(temp) > 0) {\r\n\t\t\t\tif (infixStack.empty()) {\r\n\t\t\t\t\tif (!digitPreviously && temp == '-') {\r\n\t\t\t\t\t\ttemp = '~';\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t} else {\r\n\t\t\t\t\twhile (!infixStack.empty()) {\r\n\t\t\t\t\t\tif (!digitPreviously && temp == '-') {\r\n\t\t\t\t\t\t\ttemp = '~';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (priority((char)infixStack.peek()) < priority(temp) || temp == '^' || temp == '~') {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tchar top = (char)infixStack.pop();\r\n\t\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t\t\tsb.append(top);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinfixStack.push(temp);\r\n\t\t\t\t\tif (digitPreviously) sb.append(' ');\r\n\t\t\t\t}\r\n\t\t\t\tdigitPreviously = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// pop remaining chars\r\n\t\twhile (!infixStack.empty()) {\r\n\t\t\tchar temp = (char)infixStack.pop();\r\n\t\t\tif (temp == '(') {\r\n\t\t\t\t// invalid case : different number of ( and )\r\n\t\t\t\tthrow new IllegalArgumentException();\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(' ');\r\n\t\t\t\tsb.append(temp);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn sb.toString();\r\n\t}",
"public static String infixToPostfix(String expression) {\n if (expression.contains(\" \"))\n {\n String newExpression = expression.replaceAll(\" \", \"\");\n expression = newExpression;\n }\n\n // Check for correct parentheses placement\n int lp = 1, rp = 0;\n String errorMessage = \"\";\n for (int i = 1; i < expression.length(); i++)\n {\n if (expression.charAt(i) == '(') lp++;\n if (expression.charAt(i) == ')') rp++;\n\n if (lp == rp && i < expression.length()-1)\n {\n // Error extra parentheses\n errorMessage = \"Error: Extra parentheses\";\n return errorMessage;\n }\n else if (lp < rp)\n {\n // Error misplaced closing parentheses\n errorMessage = \"Error: Misplaced closing parentheses\";\n return errorMessage;\n }\n else if (lp > rp && i == expression.length()-1)\n {\n // Error missing closing parentheses\n errorMessage = \"Error: Missing closing parentheses\";\n return errorMessage;\n }\n }\n\n // Add implied multiplication\n String impliedMulOptions = \"123456789.)\";\n for (int i = 1; i < expression.length(); i++)\n {\n char c = expression.charAt(i);\n String prevChar = \"\";\n prevChar += expression.charAt(i-1);\n if (c == '(')\n {\n if (impliedMulOptions.contains(prevChar))\n {\n String pre = expression.substring(0, i);\n String post = expression.substring(i);\n expression = pre + '*' + post;\n }\n }\n\n // Also check for multiple subtraction signs can convert\n if (c == '-')\n {\n if (c == prevChar.charAt(0))\n {\n String pre = expression.substring(0, i-1);\n String post = expression.substring(i+1);\n if (expression.charAt(i-2) == '(')\n {\n expression = pre + post;\n i--;\n }\n else expression = pre + '+' + post;\n }\n }\n }\n\n // Handle functions within the expression\n while (expression.contains(\"s\") || expression.contains(\"c\") || expression.contains(\"t\") || expression.contains(\"l\")) {\n if (expression.charAt(0) == 'E') return expression;\n expression = functionPresent(expression);\n }\n\n\n // ----- Create RPN -----\n // Variables to store results\n Stack<String> rpn = new Stack<String>();\n Stack<String> stack = new Stack<String>();\n\n // Define all operators possible in the question\n String operators = \"^*/+-()\";\n\n for (int pos = 0; pos < expression.length(); pos++) {\n char c = expression.charAt(pos);\n\n // If a number, find the end of it and add to stack\n if (Character.isDigit(c)) {\n int endpos = 0;\n for (int i = pos; i < expression.length(); i++) {\n char seekChar = expression.charAt(i);\n if (Character.isDigit(seekChar) || seekChar == '.') {\n continue;\n } else {\n endpos = i;\n break;\n }\n }\n rpn.push(expression.substring(pos, endpos));\n pos = endpos - 1;\n continue;\n }\n\n // If a negative number, find end of it and add to stack\n if (c == '-' && operators.contains(expression.substring(pos-1, pos)))\n {\n int endpos = 0;\n for (int i = pos; i < expression.length(); i++) {\n char seekChar = expression.charAt(i);\n if (Character.isDigit(seekChar) || seekChar == '.' || seekChar == '-') {\n continue;\n } else {\n endpos = i;\n break;\n }\n }\n rpn.push(expression.substring(pos, endpos));\n pos = endpos - 1;\n continue;\n }\n\n // If opening a set of parentheses, push it to stack.\n if (c == '(') {\n stack.push(\"(\");\n continue;\n }\n\n // If closing a set of parentheses, pop to rpn until opening parentheses occurs.\n if (c == ')') {\n while (!stack.isEmpty() && stack.peek() != \"(\") {\n rpn.push(stack.pop());\n }\n // Once we hit the open parentheses, pop it and exit loop\n stack.pop();\n continue;\n }\n\n // When an operand has been found\n else {\n while (!stack.isEmpty() && pemdas(c) <= pemdas(stack.peek())) {\n rpn.push(stack.pop());\n }\n String operandString = new String();\n operandString += c;\n stack.push(operandString);\n }\n\n }\n\n // ----- Solve RPN -----\n // Grab the RPN from the stack and turn it into an array to access it properly\n String[] rpnArray = new String[rpn.size()];\n for (int i = rpn.size() - 1; i > -1; i--) {\n rpnArray[i] = rpn.pop();\n }\n\n // If array is just one number, return it\n if (rpnArray.length == 1) return rpnArray[0];\n\n\n\n // Create stack for solving the problem\n Stack<String> solvingStack = new Stack<String>();\n\n for (int i = 0; i < rpnArray.length; i++) {\n // If it is a number, add to stack\n if (!operators.contains(rpnArray[i])) {\n solvingStack.push(rpnArray[i]);\n continue;\n }\n else if (rpnArray[i].charAt(0) == '-' && rpnArray[i].length() > 1)\n {\n solvingStack.push(rpnArray[i]);\n continue;\n }\n // Otherwise we do the math\n else\n {\n // Popping B first because of subtraction, division, and exponent\n double b = Double.parseDouble(solvingStack.pop());\n double a = Double.parseDouble(solvingStack.pop());\n int operator = operators.indexOf(rpnArray[i]);\n double result = 0;\n String resultStr = new String();\n switch (operator) {\n // Exponent\n case 0:\n result = Math.pow(a, b);\n break;\n\n // Multiplication\n case 1:\n result = (a * b);\n break;\n\n // Division\n case 2:\n if (b == 0) return \"Error: Cannot divide by zero\";\n result = (a / b);\n break;\n\n // Addition\n case 3:\n result = (a + b);\n break;\n\n // Subtraction\n case 4:\n result = (a - b);\n break;\n }\n resultStr += result;\n solvingStack.push(resultStr);\n }\n }\n\n\n //double answer = Double.parseDouble(solvingStack.pop());\n return solvingStack.pop();\n }",
"private String doAddition(String answer)\n\t{\n\t\tint signSpot;\n\t\tString stringToDelete;\n\t\tdouble number1;\n\t\tdouble number2;\n\t\tint minValue = 0;\n\t\tint maxValue = 0;\n\n\t\twhile (answer.contains(\"+\"))\n\t\t{\n\t\t\tsignSpot = answer.indexOf(\"+\");\n\n\t\t\t// start\n\t\t\tfor (int count = signSpot - 1; count >= 0; count -= 1)\n\t\t\t{\n\t\t\t\tif (isNumeric(answer.substring(count, count + 1)) == true\n\t\t\t\t\t\t|| answer.substring(count, count + 1).equals(\".\"))\n\t\t\t\t{\n\t\t\t\t\tminValue = count;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// finish\n\t\t\tfor (int count = signSpot + 2; count <= answer.length(); count += 1)\n\t\t\t{\n\t\t\t\tif (isNumeric(answer.substring(count - 1, count)) == true\n\t\t\t\t\t\t|| answer.substring(count - 1, count).equals(\".\"))\n\t\t\t\t{\n\t\t\t\t\tmaxValue = count;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstringToDelete = answer.substring(minValue, maxValue);\n\t\t\tString myString = answer.substring(minValue, signSpot);\n\t\t\tnumber1 = Double.parseDouble(myString);\n\t\t\tmyString = answer.substring(signSpot + 1, maxValue);\n\t\t\tnumber2 = Double.parseDouble(myString);\n\t\t\tDouble numberAnswer1 = number1 + number2;\n\t\t\tanswer = answer.replace(stringToDelete, \"\" + numberAnswer1);\n\t\t\tSystem.out.println(answer);\n\t\t}\n\t\treturn answer;\n\t}",
"public String convertInfix (String exp) throws NumberFormatException \n {\n \n initStack.clear();\n queue.clear();\n finalStack.clear();\n postfixExp = \"\";\n \n for (int i = 0; i<exp.length(); ++i){\n char c = exp.charAt(i); \n if(i > 0){\n char previous = exp.charAt(i-1);\n if((isNumber(c) && isNumber(previous)) || isBalanced(exp) == false){\n throw new NumberFormatException(\"**Invalid Expression**\");\n }\n }\n \n if (Precedence(c) > 0)\n {\n while(initStack.isEmpty() == false && Precedence((char) initStack.top()) >= Precedence(c))\n {\n queue.insertBack(initStack.pop());\n }\n initStack.push(c);\n }\n else if (c ==')')\n {\n char x = (char) initStack.pop();\n while(x!= '(')\n {\n queue.insertBack(x);\n x = (char) initStack.pop();\n }\n }\n else if (c == '(')\n {\n initStack.push(c);\n }\n else\n {\n queue.insertBack(c);\n }\n }\n while (!initStack.isEmpty()) \n {\n queue.insertBack(initStack.pop());\n }\n postfixExp = queue.postFixString();\n postfixExp = postfixExp.replaceAll(\"\\\\s\",\"\");\n return postfixExp;\n }",
"public void printEval()\r\n {\r\n eval = ((int)numbers.pop());\r\n System.out.println(\"Postfix Evaluation: \" + eval);\r\n pw.println(\"Postfix Evaluation: \" + eval);\r\n}",
"public static String convertInfixToPostfix(String infixExpression) {\r\n //Initializing final return string\r\n String postfix = \"\";\r\n //String Array of all elements\r\n String[] expElements = infixExpression.split(\" \");\r\n //New String Array for the numbers\r\n String[] operands = new String[infixExpression.length()];\r\n //New expressions for operators\r\n Expressions operators = new Expressions();\r\n //New stack for operators\r\n Stack operatorStack = new Stack();\r\n \r\n //Trackers for parentheses\r\n int openParenthesis = 0;\r\n int closedParenthesis = 0;\r\n \r\n //Iterate through for length of array of all expressions\r\n for(int i = 0; i < expElements.length; i++) {\r\n //If operator than push to stack\r\n if(expElements[i].equals(\"*\")||expElements[i].equals(\"/\")\r\n ||expElements[i].equals(\"+\")||expElements[i].equals(\"-\")) {\r\n operatorStack.push(new Expressions(expElements[i]));\r\n }\r\n //if open parenthesis add to count\r\n else if(expElements[i].equals(\"(\")) {\r\n openParenthesis++;\r\n }\r\n //if closed parenthesis add to count and pop operator\r\n else if(expElements[i].equals(\")\")) {\r\n closedParenthesis++;\r\n postfix += \" \" + operatorStack.pop();\r\n }\r\n //otherwise it is an integer, add it to array of operands\r\n else {\r\n operands[i] = expElements[i];\r\n postfix += \" \" + operands[i];\r\n }\r\n \r\n }\r\n //Error detection for not enough matching parentheses.\r\n if(openParenthesis!=closedParenthesis){\r\n postfix = \"Parenthesis not equal error.\";\r\n }\r\n //return final expression in postfix notation, delimited by spaces\r\n return postfix; \r\n }",
"public static int Evaluate(String post){\n\t\tObjectStack postfix =new ObjectStack();\n\t\t\n\t\tfor (int i = 0; i < post.length(); i++) {\n\t\t\tchar ch = post.charAt(i);\n\t\t\tif (ch >= '0' && ch <= '9') {\n\t\t\t\tint number = ch - '0';\n\t\t\t\tpostfix.push(number);\n\t\t\t} else if ((ch == '*' || ch == '/' || ch == '+' || ch == '-' || ch == '^')) {\n\t\t\t\tint top2 = (Integer) postfix.pop();\n\t\t\t\tint top1 = (Integer) postfix.pop();\n\t\t\t\tchar operator = ch;\n\t\t\t\tif (operator == '+')\n\t\t\t\t\tpostfix.push(top1 + top2);\n\t\t\t\telse if (operator == '-')\n\t\t\t\t\tpostfix.push(top1 - top2);\n\t\t\t\telse if (operator == '*')\n\t\t\t\t\tpostfix.push(top1 * top2);\n\t\t\t\telse if (operator == '/')\n\t\t\t\t\tpostfix.push(top1 / top2);\n\t\t\t\telse if (operator == '^')\n\t\t\t\t\tpostfix.push((int) Math.pow(top1, top2));\n\t\t\t}\n\t\t}\n\t\treturn (Integer) postfix.pop();\n\t\n}",
"public static void main(String[] args) {\n //edgeCases();\n calc C = new calc();\n Scanner scan = new Scanner(System.in);\n boolean quit = false;\n boolean hasVar = false;\n \n while(!quit){\n System.out.print(\"Enter infix expression: \");\n hasVar = false;\n String infix = scan.nextLine();\n String[] postfix = new String[0];\n int x;\n \n if (C.hasVar(infix)){\n hasVar = true;\n }\n \n String[] infixArr = C.toArray(infix);\n \n if (C.isValidInfix(infixArr)) {\n postfix = C.infixToPost(infixArr);\n System.out.println(\"Converted expression: \" + C.toString(postfix));\n \n \n if (hasVar) {\n while(true){\n System.out.print(\"\\nEnter value of x: \");\n String input = scan.next();\n if (input.equals(\"q\")){\n quit = true;\n break;\n }\n \n String[] postfixTemp = Arrays.copyOf(postfix, postfix.length); \n for (int i = 0; i < postfix.length; i++){\n if (postfixTemp[i].equals(\"x\")){\n postfixTemp[i] = input;\n }\n }\n System.out.println(\"Answer to expression: \" + C.postfixCalc(postfixTemp));\n }\n }\n \n else {\n System.out.println(\"\\nAnswer to expression: \" + C.postfixCalc(postfix) + \"\\n\");\n }\n }\n }\n }",
"public static String produceAnswer(String input) { \r\n \tString[] array = input.split(\" \");\t//create an array that will store the 3 split string outputs(split on spaces)\t\r\n String firstOperand = array[0];\t\t//create a variable that will store the firstoperand\r\n String operator = array[1];\t\t//create a variable that will store the secondoperand\r\n String secondOperand = array[2];\t//create a variable that will store the thirdoperand\r\n int[] finalAnswer = new int [3];\t//create a new array that stores 3 values and will also serve to store the final answer\r\n \r\n int operand1Whole= findWhole(firstOperand);\t//use findwhole method to find the whole # and store in variable\r\n int operand1Num= findNumerator(firstOperand);\t//use findnumerator method to get the num of first frac\r\n int operand1Denom= findDenominator(firstOperand);\t//use finddenominator method to find denom of first frac\r\n int[] op1Fraction = toImproperFrac(operand1Whole, operand1Num, operand1Denom);\t//make a new int array to store \r\n \r\n int operand2Whole= findWhole(secondOperand);\t//use findwhole method to find the whole # and store in variable for the 2nd fraction\r\n int operand2Num= findNumerator(secondOperand);\t//use findnumerator method to find num of 2nd operand\r\n int operand2Denom= findDenominator(secondOperand);\t//use find denominator method to find the denom of the 2nd operand\r\n int[] op2Fraction = toImproperFrac(operand2Whole, operand2Num, operand2Denom);\t//make a new int array to store the improper frac of operand 2\r\n \r\n String result=\"\";\t//make a string variable that will be used when returning the result\r\n if(operator.equals(\"+\")) {\t//make a conditional that checks if the operator is +\r\n \taddingFrac(op1Fraction, op2Fraction, finalAnswer);\t//if it is use the addingfrac method with op1fraction, op2, and the final answer to get the sum\r\n \tresult = toMixedNum(finalAnswer[1], finalAnswer[2]);\t//convert the sum into a mixed number using the tomixednumber method; set = to result\r\n \t\r\n } else if(operator.equals(\"-\")) {\t//also test if operator is -\r\n \t\tsubFrac(op1Fraction, op2Fraction, finalAnswer);\t//if so use subfrac method to get the difference (use op1frac, op2 frac, and final answer\r\n \t\tresult = toMixedNum(finalAnswer[1], finalAnswer[2]);\t//convert diff into mixed number set = to result\r\n \t\t\r\n \t} else if(operator.equals(\"*\")) {\t//also test if operator is *\r\n \t\t\tmultiplyFrac(op1Fraction, op2Fraction, finalAnswer);\t//if so use multiply frac to get the product \r\n \t\t\tresult = toMixedNum(finalAnswer[1], finalAnswer[2]);\t//convert to mixed number set = to result\r\n \t\t\t\r\n \t\t} else if(operator.equals(\"/\")) {\t//also check if operator is /\r\n \t\t\t\tdivideFrac(op1Fraction, op2Fraction, finalAnswer);\t//if so use dividefrac method to get the quotient\r\n \t\t\t\tresult = toMixedNum(finalAnswer[1], finalAnswer[2]);\t//convert to mixed number set = to result\r\n \t\t\t\t\t\r\n \t\t\t}\r\n \treturn result;\t\t//return result\r\n \t\t}",
"public int calculate(String s) {\n Deque<Integer> stack = new ArrayDeque<>();\n\n // Init\n int result = 0; // For the on-going result\n int sign = 1; // 1 means positive, -1 means negative\n int operand = 0;\n\n // 1 + 2 + 1\n // The tricky part is that we find an operator/sign first, then we know\n // the operand after that. We save the sign first, and when we evaluate the\n // expression so far, we use that sign.\n\n // Go through the expression string character by character.\n // Evaluate to the left when we find '+', '-', ')', or end of loop.\n // We use a stack when we find parenthesis.\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (Character.isDigit(c)) {\n // Form operand, since it could be more than one digit.\n operand = 10 * operand + (c - '0');\n } else if (c == '+') {\n // We can evaluate the expression to the left,\n // with result, sign, operand\n result += sign * operand;\n // Save the recently encountered '+' sign\n sign = 1;\n // Reset operand\n operand = 0;\n } else if (c == '-') {\n // We can evaluate the expression to the left,\n result += sign * operand;\n // Save the '-' sign.\n sign = -1;\n operand = 0;\n } else if (c == '(') {\n // Push the result so far and sign onto the stack, for later use.\n // We push the result first, then sign in the stack.\n stack.push(result);\n stack.push(sign);\n // Reset result, sign, and operand, as if new evaluation begins for the new\n // sub-expression\n result = 0;\n sign = 1;\n operand = 0;\n } else if (c == ')') {\n // We can evaluate the sub-expression to the left.\n result += sign * operand;\n // Now that we know the sub-expression ended, we can also evaluate to the left.\n // First we take the sign out of the stack, and then add the result we saved\n // before to the result of the sub-expression.\n result *= stack.pop();\n result += stack.pop();\n // Reset sign and operand.\n sign = 1;\n operand = 0;\n }\n }\n\n // We need to evaluate again.\n result += sign * operand;\n\n return result;\n }",
"@Override\n\tpublic String toPostfixNotation() {\n\t\tint num;\n\t\tExpressionTree left, right;\n\n\t\ttry {\n\t\t\tnum = Integer.parseInt(EMPTY + this.getValue());\n\t\t\treturn EMPTY + num;\n\t\t}\n\t\tcatch(NumberFormatException n) {\n\t\t\tleft = new ExpressionTree(getLeft());\n\t\t\tright = new ExpressionTree(getRight());\n\t\t\t\n\t\t\treturn left.toPostfixNotation() + SPACE + right.toPostfixNotation() + SPACE \n\t\t\t\t+ getValue();\n\t\t}\n\t}",
"static String infixToPostfix(String infix) {\n final String ops = \"-+/*^\";\n \n StringBuilder sb = new StringBuilder();\n Stack<Integer> s = new Stack<>();\n \n for (String token : infix.split(\"\\\\s\")) {\n if (token.isEmpty())\n continue;\n char c = token.charAt(0);\n int idx = ops.indexOf(c);\n \n // check for operator\n if (idx != -1) {\n if (s.isEmpty())\n s.push(idx);\n \n else {\n while (!s.isEmpty()) {\n int prec2 = s.peek() / 2;\n int prec1 = idx / 2;\n if (prec2 > prec1 || (prec2 == prec1 && c != '^'))\n sb.append(ops.charAt(s.pop())).append(' ');\n else break;\n }\n s.push(idx);\n }\n } \n else if (c == '(') {\n s.push(-2); // -2 stands for '('\n } \n else if (c == ')') {\n // until '(' on stack, pop operators.\n while (s.peek() != -2)\n sb.append(ops.charAt(s.pop())).append(' ');\n s.pop();\n }\n else {\n sb.append(token).append(' ');\n }\n }\n while (!s.isEmpty())\n sb.append(ops.charAt(s.pop())).append(' ');\n return sb.toString();\n }",
"public int evalusteReversePolishNotation(String[] tokens) {\n\t\tif (tokens == null || tokens.length == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tStack<Integer> stack = new Stack<>();\n\t\tfor (String token: tokens) {\n\t\t\tif (token.equals(\"+\")) { // be care cannot use ==\n\t\t\t\tstack.push(stack.pop() + stack.pop());\n\t\t\t}\n\t\t\telse if (token.equals(\"-\")) {\n\t\t\t\tint b = stack.pop();\n\t\t\t\tint a = stack.pop();\n\t\t\t\tstack.push(a - b);\n\t\t\t}\n\t\t\telse if (token.equals(\"*\")) {\n\t\t\t\tstack.push(stack.pop() * stack.pop());\n\t\t\t}\n\t\t\telse if (token.equals(\"/\")) {\n\t\t\t\tint b = stack.pop();\n\t\t\t\tint a = stack.pop();\n\t\t\t\tstack.push(a / b);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tstack.push(Integer.valueOf(token));\n\t\t\t}\n\t\t}\n\t\treturn stack.pop();\n\t}",
"public String inToPost(String userInput){\n // Pre-Check for Valid Expression:\n if(!validate(userInput)){\n return \"Error!\";\n }\n\n StringBuffer postfixInput = new StringBuffer(userInput.length());\n Stack<Character> stack = new Stack<Character>();\n char ch;\n int inputLength = userInput.length();\n\n // Adaptation of the Shunting Yard Algorithm:\n for(int i = 0; i < inputLength; i++){\n ch = userInput.charAt(i);\n\n if(ch == ' '){\n // Do nothing\n }\n else if(isOperand(ch) || ch == '.'){\n postfixInput.append(ch);\n }\n else if(ch == '('){\n stack.push(ch);\n }\n else if(ch == ')'){\n while((!stack.isEmpty()) && (stack.peek() != '(')){\n postfixInput.append(stack.pop());\n }\n\n if(!stack.isEmpty()){\n stack.pop();\n }\n else{\n return \"Parentheses Error!\";\n }\n }\n else if(isOperator(ch)){\n postfixInput.append(' ');\n\n while((!stack.isEmpty()) && (getPrecedence(stack.peek()) >= getPrecedence(ch))){\n postfixInput.append(stack.pop());\n }\n\n stack.push(ch);\n }\n else{\n return \"Input Error!\";\n }\n }\n\n while(!stack.isEmpty()){\n postfixInput.append(stack.pop());\n }\n\n String finalAnswer = postfixInput.toString();\n return solve(finalAnswer);\n }",
"@Test\n public void testCalculateRPNStack() throws Exception {\n String[] expression = {\"3\",\"4\",\"+\",\"8\",\"3\",\"-\",\"+\",\"10\",\"2\",\"/\", \"3\", \"+\", \"*\", \"15\",\"/\"};\n double result = solver.calculateRPNCustom(expression);\n\n assertThat(result, is(6.4));\n }",
"public String getPostfix() {\n \t\t\treturn postfix;\n \t\t}",
"private String infixToPostfixNoPrecedence(String infix) {\n\t\tString postfix = \"\";\n\t\tStack<Character> stack = new Stack<>();\n\n\t\tfor (int i = 0; i < infix.length(); i++) {\n\t\t\tchar currentChar = infix.charAt(i);\n\t\t\tif (currentChar == '+' || currentChar == '*') {\n\t\t\t\tif (stack.isEmpty()) {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else if (stack.peek() == '+' || stack.peek() == '*') {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t} else {\n\t\t\t\t\tstack.push(currentChar);\n\t\t\t\t}\n\t\t\t} else if (currentChar == '(') {\n\t\t\t\tstack.push(currentChar);\n\t\t\t} else if (currentChar == ')') {\n\n\t\t\t\twhile (stack.peek() != '(') {\n\t\t\t\t\tpostfix = postfix + stack.pop();\n\t\t\t\t}\n\n\t\t\t\tstack.pop();\n\n\t\t\t} else if (currentChar != ' ') {\n\t\t\t\tpostfix = postfix + currentChar;\n\t\t\t}\n\n\t\t}\n\n\t\twhile (!stack.isEmpty()) {\n\t\t\tpostfix = postfix + stack.pop();\n\t\t}\n\n\t\treturn postfix;\n\t}",
"public static void main(String args[]) {\n StackVenkataKalyanKrishnaVarmaSagi<Integer> stackVenkataKalyanKrishnaVarmaSagi = new StackVenkataKalyanKrishnaVarmaSagi();\n\n //Take input\n System.out.println(\"Enter a string: \");\n Scanner scanner = new Scanner(System.in);\n String input = scanner.next();\n for (int i = 0; i < input.length(); i++) {\n if (input.charAt(i) == '*' || input.charAt(i) == '+' || input.charAt(i) == '-' || input.charAt(i) == '*' || input.charAt(i) == '^') {\n char operator = input.charAt(i);\n int a = stackVenkataKalyanKrishnaVarmaSagi.pop();\n int b = stackVenkataKalyanKrishnaVarmaSagi.pop();\n if (operator == '+')\n stackVenkataKalyanKrishnaVarmaSagi.push(b + a);\n if (operator == '-')\n stackVenkataKalyanKrishnaVarmaSagi.push(b - a);\n if (operator == '*')\n stackVenkataKalyanKrishnaVarmaSagi.push(b * a);\n if (operator == '/' && a != 0) //make sure you are not performing division with 0\n stackVenkataKalyanKrishnaVarmaSagi.push(b / a);\n if (operator == '^')\n stackVenkataKalyanKrishnaVarmaSagi.push((int) Math.pow(b, a));\n } else {\n int operand = Character.getNumericValue(input.charAt(i));\n stackVenkataKalyanKrishnaVarmaSagi.push(operand);\n }\n }\n if (stackVenkataKalyanKrishnaVarmaSagi.size() > 1)\n System.out.println(\"The input Postfix expression is not valid.\");\n else\n System.out.println(\"Result value: \" + stackVenkataKalyanKrishnaVarmaSagi.pop());\n }",
"public static void main(String[] args) throws FileNotFoundException {\n Stack postfixStack = new Stack();\n\n// create a dat file scanner\n\n //String path = new File(\"HW1/src/com/sunynp/assign1-in.dat\").getAbsolutePath();\n //System.out.println(path);\n Scanner datscan = new Scanner(new File(\"assign1-in.dat\"));\n double[] input = new double[100];\n int i = 0;\n\n while (datscan.hasNextLine()) {\n String s = datscan.nextLine();\n System.out.print(\"The value of \\\"\" + s + \"\\\" is \");\n String op = \"\";\n\n\n String[] parts = s.split(\" \");\n for (String next : parts) {\n\n Double a;\n Double b;\n switch (next) {\n case \"+\":\n a = postfixStack.pop();\n b = postfixStack.pop();\n // System.out.println(a + b);\n postfixStack.push(a + b);\n\n break;\n case \"-\":\n b = postfixStack.pop();\n a = postfixStack.pop();\n // System.out.println(a - b);\n postfixStack.push(a - b);\n break;\n case \"*\":\n a = postfixStack.pop();\n b = postfixStack.pop();\n //System.out.println(a * b);\n postfixStack.push(a * b);\n break;\n case \"/\":\n b = postfixStack.pop();\n a = postfixStack.pop();\n // System.out.println(a / b);\n postfixStack.push(a / b);\n break;\n case \"_\":\n a = postfixStack.pop();\n // System.out.println(0 - a);\n postfixStack.push(0 - a);\n break;\n case \"#\":\n a = postfixStack.pop();\n\n // System.out.println(Math.sqrt(a));\n postfixStack.push(Math.sqrt(a));\n break;\n case \"^\":\n b = postfixStack.pop();\n a = postfixStack.pop();\n // System.out.println(Math.pow(a, b));\n postfixStack.push(Math.pow(a, b));\n break;\n case \" \":\n //System.out.println(\"SPACE\");\n break;\n default:\n\n\n postfixStack.push(Double.valueOf(next));\n\n }\n }\n System.out.println(postfixStack.pop());\n System.out.println();\n }\n\n System.out.println(\"Bye-bye!\");\n datscan.close();\n }",
"private String evaluate(String expression) {\n String separators = \"()*+/-\";\n String result;\n // Stack for using in algorithm\n Stack<String> stackOperations = new Stack<String>();\n // Stack for RPN - reverse polish notation\n Stack<String> stackRPN = new Stack<String>();\n // Stack for evaluating answer\n Stack<String> stackTemp = new Stack<String>();\n //splitting expression into tokens\n StringTokenizer stringTokenizer = new StringTokenizer(updateUnaryMinus(expression), separators, true);\n\n while (stringTokenizer.hasMoreTokens()) {\n String token = stringTokenizer.nextToken();\n if (isNumber(token)) {\n stackRPN.push(token);\n } else if (isOpenBracket(token)) {\n stackOperations.push(token);\n } else if (isCloseBracket(token)) {\n while (!isOpenBracket(stackOperations.lastElement())) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.pop();\n } else if (isOperator(token)) {\n while (!stackOperations.empty() && isOperator(stackOperations.lastElement())\n && getPrecedence(stackOperations.lastElement()) > getPrecedence(token)) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.push(token);\n }\n }\n while (!stackOperations.empty()) {\n stackRPN.push(stackOperations.pop());\n }\n Collections.reverse(stackRPN);\n\n // Evaluation if RPN expression\n while (!stackRPN.empty()) {\n if (isNumber(stackRPN.lastElement())) stackTemp.push(stackRPN.pop());\n else stackTemp.push(makeOperation(stackRPN.pop(), stackTemp.pop(), stackTemp.pop()));\n }\n result = stackTemp.pop();\n return result;\n }",
"private String doMultiplication(String answer)\n\t{\n\t\tint signSpot;\n\t\tString stringToDelete;\n\t\tdouble number1;\n\t\tdouble number2;\n\t\tint minValue = 0;\n\t\tint maxValue = 0;\n\n\t\twhile (answer.contains(\"*\"))\n\t\t{\n\t\t\tsignSpot = answer.indexOf(\"*\");\n\n\t\t\t// start\n\t\t\tfor (int count = signSpot - 1; count >= 0; count -= 1)\n\t\t\t{\n\t\t\t\tif (isNumeric(answer.substring(count, count + 1)) == true\n\t\t\t\t\t\t|| answer.substring(count, count + 1).equals(\".\"))\n\t\t\t\t{\n\t\t\t\t\tminValue = count;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// finish\n\t\t\tfor (int count = signSpot + 2; count <= answer.length(); count += 1)\n\t\t\t{\n\t\t\t\tif (isNumeric(answer.substring(count - 1, count)) == true\n\t\t\t\t\t\t|| answer.substring(count - 1, count).equals(\".\"))\n\t\t\t\t{\n\t\t\t\t\tmaxValue = count;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstringToDelete = answer.substring(minValue, maxValue);\n\t\t\tString myString = answer.substring(minValue, signSpot);\n\t\t\tnumber1 = Double.parseDouble(myString);\n\t\t\tmyString = answer.substring(signSpot + 1, maxValue);\n\t\t\tnumber2 = Double.parseDouble(myString);\n\t\t\tDouble numberAnswer1 = number1 * number2;\n\t\t\tanswer = answer.replace(stringToDelete, \"\" + numberAnswer1);\n\t\t\tSystem.out.println(answer);\n\t\t}\n\t\treturn answer;\n\t}",
"public String evaluate(String statement) {\n // TODO: Implement the logic here\n\n if (statement == null | statement == \"\"){\n return null;\n }\n\n String addition = \"+\";\n String substraction = \"-\";\n String multiplication = \"*\";\n String division = \"/\";\n String leftbracket = \"(\";\n String rightbracket = \")\";\n\n Stack<String> temporaryStack = new Stack<>();\n Stack<String> inputStack = new Stack<>();\n Stack<String> outputStack = new Stack<>();\n Stack<String> stackOperators = new Stack<>();\n Stack<String> reverseStack = new Stack<>();\n Stack<Double> computingStack = new Stack<>();\n\n String crutch = \"crutch\";\n stackOperators.push(crutch);\n inputStack.push(crutch);\n\n Double leftNumber;\n Double rightNumber;\n Double outResult;\n int stackCounter = 1;\n int reverseCounter = 0;\n\n String solution;\n\n if (statement.contains(\",\") | statement.contains(\"..\") | statement.contains(\"//\")| statement.contains(\"**\") | statement.contains(\"++\") |\n statement.contains(\"--\")) {\n return null;\n }\n\n//преобразование выражения в обратную польскую нотацию\n StringTokenizer stTok = new StringTokenizer(statement, \"+-*/()\", true);\n while (stTok.hasMoreTokens()) {\n temporaryStack.push(stTok.nextToken());\n stackCounter++;\n }\n while (!temporaryStack.isEmpty()){\n inputStack.push(temporaryStack.peek());\n temporaryStack.pop();\n }\n\n for (int i=1; i<stackCounter; i++){\n if (Character.isDigit(inputStack.peek().charAt(0))){\n outputStack.push(inputStack.peek());\n inputStack.pop();\n }\n else if (stackOperators.peek().equals(crutch) && (inputStack.peek().equals(addition) |\n inputStack.peek().equals(substraction) | inputStack.peek().equals(multiplication) |\n inputStack.peek().equals(division))){\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(addition) | inputStack.peek().equals(substraction)){\n while (stackOperators.peek().equals(addition) | stackOperators.peek().equals(substraction) |\n stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(multiplication) | inputStack.peek().equals(division)){\n while (stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(leftbracket)){\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(rightbracket)){\n while (!stackOperators.peek().equals(leftbracket)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n if (stackOperators.peek().equals(crutch)){\n return null;\n }\n inputStack.pop();\n stackOperators.pop();\n }\n }\n while (!stackOperators.peek().equals(crutch)){\n if (stackOperators.peek().equals(leftbracket) | stackOperators.peek().equals(rightbracket)){\n return null;\n } else {\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n\n }\n while (!outputStack.isEmpty()){\n reverseStack.push(outputStack.peek());\n outputStack.pop();\n reverseCounter++;\n }\n\n//вычисление выражения\n for (int i=0; i<reverseCounter; i++){\n if (Character.isDigit(reverseStack.peek().charAt(0))) {\n computingStack.push(Double.parseDouble(reverseStack.peek()));\n }\n else if (reverseStack.peek().equals(addition)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber + rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(substraction)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber - rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(multiplication)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber * rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(division)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n if (rightNumber!=0){\n outResult = leftNumber / rightNumber;\n computingStack.push(outResult);\n } else\n return null;\n }\n reverseStack.pop();\n }\n\n DecimalFormat myFormatter = new DecimalFormat(\"#.####\");\n String format = myFormatter.format(computingStack.peek());\n\n solution = format.replace( ',', '.');\n\n return solution;\n }",
"public String get_postfix()\n\t{\n\t\treturn temp;\n\t}",
"public static String convertPostfixToInfix(String postfix) throws InvalidNotationFormatException {\n\t\tNotationStack<String> eval = new NotationStack<String>(postfix.length());\n\t\tchar[] expr = postfix.toCharArray();\n\t\tfor (int i = 0; i < expr.length; i++) {\n\t\t\tif (Character.isDigit(expr[i])) {\n\t\t\t\ttry {\n\t\t\t\t\teval.push(String.valueOf(expr[i]));\n\t\t\t\t}catch(StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif (eval.size() < 2) {\n\t\t\t\t\tthrow new InvalidNotationFormatException();\n\t\t\t\t}\n\t\t\t\tString pop1=\"\", pop2=\"\", result=\"\";\n\t\t\t\ttry {\n\t\t\t\t\tpop2 = eval.pop();\n\t\t\t\t\tpop1 = eval.pop();\n\t\t\t\t\tresult += \"(\" + pop1 + String.valueOf(expr[i]) + pop2 + \")\";\n\t\t\t\t\teval.push(result);\n\t\t\t\t}catch(StackUnderflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}catch(StackOverflowException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (eval.size() > 1) {\n\t\t\tthrow new InvalidNotationFormatException();\n\t\t}\n\t\treturn eval.toString();\n\t}",
"public double evaluate(String expression) throws InvalidExpressionException {\n assertProperExpression(expression);\n \n // creating postfix\n String postfix = \"\";\n while (expression.length() > 0) {\n char item = expression.charAt(0);\n expression = expression.substring(1);\n // disregard spaces by\n if (item == ' ') continue;\n // add digits straight to postfix expression\n else if (isDigit(item)) postfix += item;\n // always push '(' on stack no matter what\n else if (item == '(') postfixStack.push('(');\n // dump stack until you hit end parenthesis which is voided\n else if (item == ')') {\n while (postfixStack.peek() != '(') {\n postfix += postfixStack.pop();\n }\n postfixStack.pop();\n continue;\n }\n // item must be operator, so push onto stack after removing higher precedents below it\n else if (isOperator(item)) {\n while (!postfixStack.isEmpty() &&\n isOperator(item) &&\n precedenceOf(postfixStack.peek()) >= precedenceOf(item)) postfix += postfixStack.pop();\n postfixStack.push(item);\n }\n }\n while (!postfixStack.isEmpty()) postfix += postfixStack.pop();\n\n // solving the postfix expression \n while (postfix.length() > 0) {\n char item = postfix.charAt(0);\n postfix = postfix.substring(1);\n\n if (isDigit(item)) solutionStack.push((double) (item - '0'));\n if (isOperator(item)) {\n double y = solutionStack.pop();\n double x = solutionStack.pop();\n if (item == '^') solutionStack.push(Math.pow(x, y));\n if (item == '*') solutionStack.push(x * y);\n if (item == '/') solutionStack.push(x / y);\n if (item == '+') solutionStack.push(x + y);\n if (item == '-') solutionStack.push(x - y);\n }\n }\n\n Double solution = solutionStack.pop();\n return solution;\n }",
"public static String produceAnswer(String input)\r\n { \r\n // TODO: Implement this function to produce the solution to the input\r\n\t\tint space = input.indexOf(' ');\r\n String value1 = input.substring(0, space);\r\n\t\tString value2 = input.substring(space + 3, input.length());\r\n\t\tString operator = input.substring(space, space + 3);\r\n\t\tif (value1.contains(\"_\"))\r\n\t\t{\r\n\t\t\tString newValue1 = convertMixedNumber(value1);\r\n\t\t\tif (value2.contains(\"_\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertMixedNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse if (value2.contains(\"/\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = value2;\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertWholeNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\telse if (value1.contains(\"/\"))\r\n\t\t{\r\n\t\t\tString newValue1 = value1;\r\n\t\t\tif (value2.contains(\"_\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertMixedNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse if (value2.contains(\"/\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = value2;\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertWholeNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\tString newValue1 = convertWholeNumber(value1);\r\n\t\t\tif (value2.contains(\"_\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertMixedNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse if (value2.contains(\"/\"))\r\n\t\t\t{\r\n\t\t\t\tString newValue2 = value2;\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tString newValue2 = convertWholeNumber(value2);\r\n\t\t\t\tinput = newValue1 + operator + newValue2;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif (input.contains(\" / \"))\r\n\t\t{\r\n\t\t int slash = input.indexOf('/');\r\n\t\t int slash2 = input.indexOf('/', slash + 1);\r\n\t\t int slash3 = input.indexOf('/', slash2 + 1);\r\n\t\t space = input.indexOf(' ');\r\n\t\t int num1 = Integer.parseInt(input.substring(0, slash));\r\n\t\t int denom1 = Integer.parseInt(input.substring(slash + 1, space));\r\n\t\t int num2 = Integer.parseInt(input.substring(space + 3, slash3));\r\n\t\t int denom2 = Integer.parseInt(input.substring(slash3 + 1, input.length()));\r\n\t\t if (num2 < 0)\r\n\t\t {\r\n\t\t\t num2 = num2 * -1;\r\n\t\t\t denom2 = denom2 * -1;\r\n\t\t\t int numerator = num1 * denom2;\r\n\t\t\t int denominator = denom1 * num2;\r\n\t\t\t String Answer = numerator + \"/\" + denominator;\r\n\t\t\t return reduceAnswer(Answer);\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t int numerator = num1 * denom2;\r\n\t\t int denominator = denom1 * num2;\r\n\t\t String Answer = numerator + \"/\" + denominator;\r\n\t\t return reduceAnswer(Answer);\r\n\t\t }\r\n\t\t}\r\n\t\telse {\r\n\t\t int slash = input.indexOf('/');\r\n\t int slash2 = input.indexOf('/', slash + 1);\r\n\t space = input.indexOf(' ');\r\n\t\t int num1 = Integer.parseInt(input.substring(0, slash));\r\n\t int denom1 = Integer.parseInt(input.substring(slash + 1, space));\r\n\t int num2 = Integer.parseInt(input.substring(space + 3, slash2));\r\n\t int denom2 = Integer.parseInt(input.substring(slash2 + 1, input.length()));\r\n\t if (input.contains(\" + \"))\r\n {\r\n \t int numerator1 = num1 * denom2;\r\n \t int numerator2 = num2 * denom1;\r\n \t int finalNumerator = numerator1 + numerator2;\r\n \t int denominator = denom2 * denom1;\r\n \t String Answer = finalNumerator + \"/\" + denominator;\r\n \t return reduceAnswer(Answer);\r\n \t\t\r\n }\r\n else if (input.contains(\" - \"))\r\n {\r\n \tint numerator1 = num1 * denom2;\r\n \tint numerator2 = num2 * denom1;\r\n \tint finalNumerator = numerator1 - numerator2;\r\n \tint denominator = denom2 * denom1;\r\n \tString Answer = finalNumerator + \"/\" + denominator;\r\n \treturn reduceAnswer(Answer);\r\n }\r\n else if (input.contains(\" * \"))\r\n {\r\n \tint numerator = num1 * num2;\r\n \tint denominator = denom1 * denom2;\r\n \tString Answer = numerator + \"/\" + denominator;\r\n \treturn reduceAnswer(Answer);\r\n }\r\n else\r\n {\r\n \tString error = \"Error: Invalid user input\";\r\n \treturn error; \r\n }\r\n\t}\r\n }",
"private void postfix(ExpressionNodes root, StringBuilder sb)\n\t {\n\t \tif (root.left != null) // if there is a left child\n\t \t{ \n\t \t\tpostfix(root.left, sb); // run recursive method\n\t \t}\n\t \t\n\t \tif (root.right != null) // if there is a right child\n\t \t{ \n\t \t\tpostfix(root.right, sb); // run recursive method \n\t \t}\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t }",
"public void infixToPostFix() {\n for (String str : infixList) {\n if (str.equals(\"(\")) {\n leftParenthesis(str);\n } else if (str.equals(\")\")) {\n rightParenthesis();\n } else if (OperatorOperand.isOperator(str)) {\n operator(str);\n } else {\n operand(str);\n }\n }\n clearTheStack();\n }",
"public int evalRPN(String[] tokens) {\n Stack<Integer> stack = new Stack<>();\n for(String token : tokens){\n if(token.equals(\"+\")){\n int a = stack.pop();\n int b = stack.pop();\n stack.push(b+a);\n }else if(token.equals(\"-\")){\n int a = stack.pop();\n int b = stack.pop();\n stack.push(b-a);\n }else if(token.equals(\"*\")){\n stack.push(stack.pop()*stack.pop());\n }else if(token.equals(\"/\")){\n int a = stack.pop();\n int b = stack.pop();\n stack.push(b/a);\n }else{\n stack.push(Integer.parseInt(token));\n }\n }\n return stack.pop();\n }",
"public int calculate_2(String s) {\n if ((s == null) || (s.length() == 0)) return 0;\n int i = 0;\n int j = 0;\n s = s.replace(\" \", \"\");\n String val = \"\";\n boolean ifStop = true;\n while (i < s.length()) {\n if ((s.charAt(i) == '+') || (s.charAt(i) == '-') || (s.charAt(i) == '*')\n || (s.charAt(i) == '/')) {\n j = i;\n ifStop = false;\n break;\n } else {\n val = val + s.charAt(i);\n }\n i++;\n }\n if (ifStop) return Integer.parseInt(val);\n while (j < s.length()) {\n char op = s.charAt(j);\n if (op == ' ') {\n j++;\n continue;\n }\n if ((op == '+') || (op == '-')) {\n int nextOperator = calculate(s.substring(j + 1, s.length()));\n // System.out.println(nextOperator);\n if (op == '+') return (Integer.parseInt(val) + nextOperator);\n else if (op == '-') return (Integer.parseInt(val) - nextOperator);\n j++;\n } else {\n i = j + 1;\n String anotherval = \"\";\n ifStop = true;\n while (i < s.length()) {\n if ((s.charAt(i) == '+') || (s.charAt(i) == '-') || (s.charAt(i) == '*')\n || (s.charAt(i) == '/')) {\n j = i;\n ifStop = false;\n break;\n } else {\n anotherval = anotherval + s.charAt(i);\n }\n i++;\n }\n if (op == '*')\n val = Integer.parseInt(val) * Integer.parseInt(anotherval) + \"\";\n else if (op == '/')\n val = Integer.parseInt(val) / Integer.parseInt(anotherval) + \"\";\n\n if (ifStop)\n return Integer.parseInt(val);\n }\n }\n return Integer.parseInt(val);\n }",
"public int evalRPN(String[] tokens) {\n\n\t\tStack<String> stack = new Stack<String>();\n\n\t\tString operators = \"+-*/\";\n\n\t\tint result = 0;\n\n\t\tfor (int i = 0; i < tokens.length; i++) {\n\n\t\t\tif (tokens[i].equals(\"+\") || tokens[i].equals(\"*\")\n\t\t\t\t\t|| tokens[i].equals(\"-\") || tokens[i].equals(\"/\")) {\n\t\t\t\tint a = Integer.valueOf(stack.pop());\n\t\t\t\tint b = Integer.valueOf(stack.pop());\n\n\t\t\t\tint index = operators.indexOf(tokens[i]);\n\n\t\t\t\tswitch (index) {\n\t\t\t\tcase 0:\n\t\t\t\t\tstack.push(String.valueOf(a + b));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tstack.push(String.valueOf(b - a));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tstack.push(String.valueOf(a * b));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\n\t\t\t\t\tstack.push(String.valueOf(b / a));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\telse {\n\n\t\t\t\tstack.push(tokens[i]);\n\t\t\t}\n\n\t\t}\n\t\tresult = Integer.valueOf(stack.pop());\n\n\t\treturn result;\n\t}",
"private static String evaluate(ArrayList<String> operators, ArrayList<String> operands) {\n\n /* Check for valid input. There should be one more operand than operator. */\n if (operands.size() != operators.size()+1)\n return \"Invalid Input\";\n\n String current;\n int value;\n int numMultiply = 0;\n int numAdd = 0;\n int currentOperator = 0;\n\n /* Get the number of multiplications in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"*\"))\n numMultiply++;\n }\n\n /* Get the number of addition and subtraction in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"-\") || operators.get(i).equals(\"+\"))\n numAdd++;\n }\n\n /* Evaluate multiplications first, from left to right. */\n while (numMultiply > 0){\n\n current = operators.get(currentOperator);\n if (current.equals(\"*\")) {\n\n /* When multiplication is found in the operators, get the associative operands from the operands list.\n Associative operands are found in the operands list at indexes current operator and current operator + 1.\n */\n value = Integer.parseInt(operands.get(currentOperator)) * Integer.parseInt(operands.get(currentOperator+1));\n\n /* Remove the operands and the operator since they have been evaluated and add the evaluated answer back in the operands. */\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n\n numMultiply--;\n }\n else\n currentOperator++;\n }\n\n currentOperator = 0;\n\n /* Next evaluate the addition and subtraction, from left to right. */\n while (numAdd > 0){\n current = operators.get(currentOperator);\n if (current.equals(\"+\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) + Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n\n else if (current.equals(\"-\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) - Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n else\n currentOperator++;\n }\n\n /* When all the operations have been evaluated, the final answer will be in the first element of the operands list. */\n return operands.get(0);\n }",
"public int evalRPN(String[] tokens){\n\t\tStack<Integer> s = new Stack<Integer>();\n\t\t\n\t\tfor (int i = 0; i < tokens.length; i++){\n\t\t\tif (!tokens[i].equals(\"+\") && !tokens[i].equals(\"-\") && !tokens[i].equals(\"*\") && !tokens[i].equals(\"/\"))\n\t\t\t\ts.push(Integer.parseInt(tokens[i]));\n\t\t\telse {\n\t\t\t\tint v2 = s.pop();\n\t\t\t\tint v1 = s.pop();\n\t\t\t\tif (tokens[i].equals(\"+\"))\n\t\t\t\t\ts.push(v1 + v2);\n\t\t\t\telse if(tokens[i].equals(\"-\"))\n\t\t\t\t\ts.push(v1-v2);\n\t\t\t\telse if(tokens[i].equals(\"*\"))\n\t\t\t\t\ts.push(v1 * v2);\n\t\t\t\telse if(tokens[i].equals(\"/\"))\n\t\t\t\t\ts.push(v1/v2);\n\t\t\t}\n\t\t}\n\t\treturn s.pop();\n\t}",
"@Test\n\tpublic void postFixTest() {\n\t\tString query = \"( ( !hello | goodbye & hello ) & cya )\";\n\t\tString query2 = \"( hello & goodbye | foo & ( foo & bar ) )\";\n\t\t\n\t\t// this test verifies that implict AND's are added\n\t\tString query3 = \"( testing the waters | ( am & I ) | oh my )\";\n\t\tString query4 = \"a b c d e\";\n\t\t\n\t\tString queryAns = \"!hello goodbye hello & | cya &\";\n\t\tString query2Ans = \"hello goodbye & foo foo bar & & |\";\n\t\tString query3Ans = \"testing the & waters & am I & | oh my & |\";\n\t\tString query4Ans = \"a b & c & d & e &\";\n\t\t\n\t\tassertEquals(queryAns, String.join(\" \", queryTest.convertToPostfix(query.split(\" \"))));\n\t\tassertEquals(query2Ans, String.join(\" \", queryTest.convertToPostfix(query2.split(\" \"))));\n\t\tassertEquals(query3Ans, String.join(\" \", queryTest.convertToPostfix(queryTest.addExplicitAND(query3.split(\" \")))));\n\t\tassertEquals(query4Ans, String.join(\" \", queryTest.convertToPostfix(queryTest.addExplicitAND(query4.split(\" \")))));\n\t}",
"public static void main(String[] args) {\n\n String expresson = \"1+((2+3)*40)-5\";\n List<String> strings = toInffixExpresion(expresson);\n System.out.println(strings.toString());\n\n List<String> parse = parseSuffix(strings);\n System.out.println(parse);\n }",
"@Override\n public String Calculo(String expresion) throws ArithmeticException {\n while(!stack.empty()){\n stack.pop();\n }\n try {\n for(int i = 0; i<expresion.length(); i++){\n //Obtener cada caracter del string.\n char op = expresion.charAt(i);\n //Determinar si es un operador, operando o un termino no valido.\n if(nums.contains(Character.toString(op))){\n stack.push(Character.getNumericValue(op));\n }\n else if(ops.contains(Character.toString(op))){\n postFixEvalution(op);\n }\n else if(op != ' '){\n return \"Error: No se pudo realizar la operacion por invalidez de simbolos\";\n }\n }\n\n //Al finalizar, se debe validar que el stack tenga un solo dato dentro, el cual sera\n //probablemente el resultado de la operacion.\n\n if(stack.empty() || stack.size() > 1){\n return \"Error: Expresion invalida\";\n }\n else{\n return stack.pop().toString();\n }\n }\n catch (ArithmeticException e){\n\n throw new ArithmeticException(e.getMessage());\n }\n\n\n }",
"static double resultRPN(String[] s){\n\t\t\tif(s.length == 0)\treturn -1;\n\t\t\tStack<Double> stack = new Stack<Double>();\n\n\t\t\tdouble res = 0;\n\t\t\t\n\t\t\tfor(int i=0; i<s.length; i++){\n\t\t\t\tif(!isSign(s[i])){\n\t\t\t\t\tstack.push(Double.parseDouble(s[i]));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tdouble val1 = stack.pop();\n\t\t\t\t\tdouble val2 = stack.pop();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(s[i] == \"*\"){\n\t\t\t\t\t\tres = val2*val1;\n\t\t\t\t\t}\n\t\t\t\t\tif(s[i] == \"+\"){\n\t\t\t\t\t\tres = val2+val1;\n\t\t\t\t\t}\n\t\t\t\t\tif(s[i] == \"-\"){\n\t\t\t\t\t\tres = val2-val1;\n\t\t\t\t\t}\n\t\t\t\t\telse if(s[i] == \"/\"){\n\t\t\t\t\t\tif(val1 == 0){\n\t\t\t\t\t\t\tthrow new ArithmeticException();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tres = val2/val1;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tstack.push(res);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tres = stack.pop();\n\t\t\t\n\t\t\tif(!stack.isEmpty()){\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\t\t\t\n\t\t\treturn res;\n\n\t\t}",
"private static String calculate(String entStr) {\n Stack<Double> dStack = new Stack<>();\n Stack<Character> chStack = new Stack<>();\n int minus = 1;\n int priority;\n double operand;\n String strOperand = \"\";\n\n for (int i = 0; i < entStr.length(); i++) {\n priority = getPriority(entStr.charAt(i));\n if ((entStr.charAt(i) == '-' && (i == 0 || entStr.charAt(i - 1) == '('))) {\n minus = -1;\n } else if (priority == 0) {\n while (getPriority(entStr.charAt(i)) == 0) {\n strOperand += entStr.charAt(i);\n i++;\n if (i == entStr.length()) break;\n }\n try {\n operand = Double.parseDouble(strOperand) * minus;\n dStack.push(operand);\n strOperand = \"\";\n minus = 1;\n //System.out.println(\"operand= \" + operand);\n } catch (NumberFormatException e) {\n return e.getMessage();\n }\n i--;\n } else if (priority > 1) {\n if (chStack.empty() || priority > getPriority(chStack.peek()) || chStack.peek() == '(') {\n chStack.push(entStr.charAt(i));\n } else {\n if (dStack.peek() == 0 && chStack.peek() == '/') return \"ERROR: Dividing by zero !!!\";\n else {\n dStack.push(mathAction(dStack.pop(), dStack.pop(), chStack.pop()));\n //System.out.println(\"res= \" + dStack.peek());\n i--;\n }\n }\n } else if (entStr.charAt(i) == '(') {\n chStack.push('(');\n } else if (entStr.charAt(i) == ')') {\n if (chStack.peek() == '(') chStack.pop();\n else {\n if (dStack.peek() == 0 && chStack.peek() == '/') return \"ERROR: Dividing by zero !!!\";\n else {\n dStack.push(mathAction(dStack.pop(), dStack.pop(), chStack.pop()));\n //System.out.println(\"res= \" + dStack.peek());\n i--;\n }\n }\n }\n }\n while (!chStack.empty()) {\n if (dStack.peek() == 0 && chStack.peek() == '/') {\n return \"ERROR: Dividing by zero !!!\";\n } else {\n dStack.push(mathAction(dStack.pop(), dStack.pop(), chStack.pop()));\n }\n }\n //double res = dStack.pop();\n //System.out.println(\"dSteck is emty = \" + dStack.empty());\n //System.out.println(\"chSteck is emty = \" + chStack.empty());\n return String.valueOf(dStack.pop());\n }",
"public static void main(String[] args) {\n\t\tString str = \"264*8/+3-\";\n\t\t\n\t\tStack<Integer> val = new Stack<>();\n\t\tStack<String> in = new Stack<>();\n\t\tStack<String> pre = new Stack<>();\n\t\tfor(int i=0;i<str.length();i++) {\n\t\t\tchar ch = str.charAt(i);\n\t\t\tif(ch=='/'||ch=='+'||ch=='-'||ch=='*') {\n\t\t\t\tint val2 = val.pop();\n\t\t\t\tint val1 = val.pop();\n\t\t\t\tint valueVal = operations(val1, val2, ch);\n\t\t\t\tval.push(valueVal);\n\t\t\t\tString v2in = in.pop();\n\t\t\t\tString v1in = in.pop();\n\t\t\t\tString valueIn = \"(\"+v1in+ch+v2in+\")\";\n\t\t\t\tin.push(valueIn);\n\t\t\t\tString v2pre = pre.pop();\n\t\t\t\tString v1pre = pre.pop();\n\t\t\t\tString valuePre = ch+v1pre+v2pre;\n\t\t\t\tpre.push(valuePre);\n\t\t\t}else {\n\t\t\t\tval.push(ch-'0');\n\t\t\t\tin.push(ch+\"\");\n\t\t\t\tpre.push(ch+\"\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(val.pop());\n\t\tSystem.out.println(pre.pop());\n\t\tSystem.out.println(in.pop());\n\t}",
"public static String[] infixToPostfix(String[] infix) {\n\n // a list for the resulting postfix expression\n List<String> postfix = new ArrayList<String>();\n\n // a stack for implementing the conversion\n Stack<String> operatorStack = new Stack<String>();\n\n // check the length of the expression\n if (infix.length != 0) {\n \n for (int i = 0; i < infix.length; i++) {\n \n // precedence is null for operands\n Integer precedence = precedenceMap.get(infix[i]);\n\n if (precedence != null) {\n\n // then the current token is an operator\n while (!operatorStack.isEmpty()) {\n String opFromStack = operatorStack.pop();\n if (precedenceMap.get(opFromStack) < precedence) {\n operatorStack.push(opFromStack);\n break;\n } else {\n postfix.add(opFromStack);\n } // if\n } // while\n \n operatorStack.push(infix[i]);\n \n } else { \n // current token is not an operator\n postfix.add(infix[i]);\n } // if\n \n } // for\n \n // add the remaining operators to the postfix expression\n while (!operatorStack.isEmpty()) {\n postfix.add(operatorStack.pop());\n } // while\n \n } // if\n \n return postfix.toArray(new String[postfix.size()]);\n\n }",
"public static float calrp(String rp){\n Stack<Float> v = new Stack<>();\n char[] arr = rp.toCharArray();\n int len = arr.length;\n for(int i = 0; i < len; i++){\n Character ch = arr[i];\n\n // if is operand, push to the stack\n if(ch >= '0' && ch <= '9') v.push(Float.valueOf(ch - '0'));\n\n // if is operator, calculate the result\n // with top 2 operands in the stack,\n // push the result into the stack\n else v.push(getv(ch, v.pop(), v.pop()));\n }\n return v.pop();\n }",
"public EvalPostfix(String postfix, PrintWriter pw)\r\n {\r\n this.pw = pw;\r\n numbers = new ObjectStack();\r\n }",
"public static long evaluate(String post) {\r\n\t\tlong a, b;\r\n\t\tStack<Long> tmpStack = new Stack<>();\r\n\t\tboolean digitPreviously = false;\r\n\t\tfor (int i = 0; i < post.length(); i++) {\r\n\t\t\tchar ch = post.charAt(i);\r\n\t\t\t// CASE 1 : ch is digit\r\n\t\t\tif (Character.isDigit(ch)) {\r\n\t\t\t\tif (digitPreviously) {\r\n\t\t\t\t\tlong temp = tmpStack.pop();\r\n\t\t\t\t\ttemp = 10 * temp + (long)(ch - '0');\r\n\t\t\t\t\ttmpStack.push(temp);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttmpStack.push((long)(ch - '0'));\r\n\t\t\t\t}\r\n\t\t\t\tdigitPreviously = true;\r\n\t\t\t\t// CASE 2 : ch is operator\r\n\t\t\t} else if (priority(ch) > 0) {\r\n\t\t\t\tif (ch == '~') {\r\n\t\t\t\t\ta = tmpStack.pop();\r\n\t\t\t\t\ta *= -1;\r\n\t\t\t\t\ttmpStack.push(a);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta = tmpStack.pop();\r\n\t\t\t\t\tb = tmpStack.pop();\r\n\t\t\t\t\tlong ret = calculate(b, a, ch);\r\n\t\t\t\t\ttmpStack.push(ret);\r\n\t\t\t\t}\r\n\t\t\t\tdigitPreviously = false;\r\n\t\t\t\t// CASE 3 : ch is blank\r\n\t\t\t} else {\r\n\t\t\t\tdigitPreviously = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn tmpStack.pop();\r\n\t}",
"public int calculate2(String s) {\n Stack<Integer> stack = new Stack<>();\n char sign = '+';\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if(Character.isDigit(c)) {\n int tmp = 0;\n while (i < s.length() && Character.isDigit(s.charAt(i))) {\n tmp = tmp * 10 + s.charAt(i) - '0';\n i++;\n }\n while(i < s.length() && s.charAt(i) == ' '){i++;}\n if (sign == '+' || sign == '-' || sign == '*' || sign == '/' || i == s.length() - 1) {\n if (sign == '+') {\n stack.push(tmp);\n } else if (sign == '-') {\n stack.push(-tmp);\n } else if (sign == '*') {\n stack.push(stack.pop() * tmp);\n } else if (sign == '/') {\n stack.push(stack.pop() / tmp);\n }\n if(i < s.length()){\n sign = s.charAt(i);\n }\n }\n }\n }\n int res = 0;\n while (!stack.isEmpty()) {\n res += stack.pop();\n }\n return res;\n }",
"private String solveProblem(String answer)\n\t{\n\t\tint signSpot;\n\t\tString stringToDelete;\n\t\tint parenthesisCount = 0;\n\t\tint i = 0;\n\t\tString stringToSolve;\n\n\t\twhile (answer.contains(\"(\"))\n\t\t{\n\t\t\tsignSpot = answer.indexOf(\"(\");\n\t\t\tfor (i = signSpot; i < answer.length(); i += 1)\n\t\t\t{\n\t\t\t\tif (answer.charAt(i) == '(')\n\t\t\t\t\tparenthesisCount += 1;\n\t\t\t\telse if (answer.charAt(i) == ')')\n\t\t\t\t\tparenthesisCount -= 1;\n\t\t\t\tif (parenthesisCount == 0)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (parenthesisCount == 0)\n\t\t\t{\n\t\t\t\tstringToDelete = answer.substring(signSpot, i + 1);\n\t\t\t\tstringToSolve = answer.substring(signSpot + 1, i);\n\t\t\t\tanswer = answer.replace(stringToDelete,\n\t\t\t\t\t\tsolveProblem(stringToSolve));\n\t\t\t}\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\tanswer = doExponent(answer);\n\t\tanswer = doMultiplication(answer);\n\t\tanswer = doDivision(answer);\n\t\tanswer = doAddition(answer);\n\t\tanswer = doSubtraction(answer);\n\t\treturn answer;\n\t}",
"public static int calculate2(String s) {\n\t\tStack<Character> operators = new Stack<Character>();\n\t\tStack<Integer> operands = new Stack<Integer>();\n\t\t\n\t\tList<String> tokens = tokenize(s);\n\t\tfor (String token : tokens) {\n\t\t\ttoken = token.trim();\n\t\t\tif (!Character.isDigit(token.charAt(0))) {\n\t\t\t\tchar op = token.charAt(0);\n\t\t\t\tif (op == '+' || op == '-' || op == '*' || op == '/') {\n\t\t\t\t\twhile (!operators.empty() && priority(op) <= priority(operators.peek()))\n\t\t\t\t\t\teval(operators.pop(), operands);\n\t\t\t\t\toperators.push(op);\n\t\t\t\t} else if (op == '(')\n\t\t\t\t\toperators.push(op);\n\t\t\t\telse {\n\t\t\t\t\twhile (!operators.empty()) {\n\t\t\t\t\t\tchar tmp = operators.pop();\n\t\t\t\t\t\tif (tmp == '(')\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\teval(tmp, operands);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\toperands.push(Integer.parseInt(token));\n\t\t}\n\t\twhile(! operators.empty())\n\t\t\teval(operators.pop(), operands);\n\t\treturn operands.pop();\n\t}",
"private String compute(String equ,String op)\n {\n String equation = equ;\n Pattern mdPattern = Pattern.compile(\"(\\\\d+([.]\\\\d+)*)(([\"+op+\"]))(\\\\d+([.]\\\\d+)*)\");\n Matcher matcher\t\t= mdPattern.matcher(equation);\n while(matcher.find())\n {\n String[] arr = null;\n double ans = 0;\n String eq = matcher.group(0);//get form x*y\n if(eq.contains(op))\n {\n arr = eq.split(\"\\\\\"+op);//make arr\n if(op.equals(\"*\"))\n ans = Double.valueOf(arr[0])*Double.valueOf(arr[1]);//compute\n if(op.equals(\"/\"))\n ans = Double.valueOf(arr[0])/Double.valueOf(arr[1]);//compute\n if(op.equals(\"+\"))\n ans = Double.valueOf(arr[0])+Double.valueOf(arr[1]);//compute\n if(op.equals(\"-\"))\n ans = Double.valueOf(arr[0])-Double.valueOf(arr[1]);//compute\n }\n\n equation = matcher.replaceFirst(String.valueOf(ans));//replace in equation\n matcher = mdPattern.matcher(equation);//look for more matches\n }\n return equation;\n }",
"public static void main (String[] args)\n {\n String expression, again;\n int result;\n String infix;\n String postfix;\n try\n {\n Scanner in = new Scanner(System.in);\n \n do\n {\n PostfixEvaluator evaluator = new PostfixEvaluator();\n System.out.println (\"Enter a infix: \"); // enter infix to get the post fix \n infix = in.nextLine(); // its goes through the scanner \n InfixToPostFixConverter myConverter = new InfixToPostFixConverter(infix); // tranfers to the converter\n myConverter.setInfix(infix);// set the converter\n postfix = myConverter.getPostfix(); // returns the post fix\n \n // this starts to evaluate it \n expression = postfix;\n\n result = evaluator.evaluate (expression);\n System.out.println();\n System.out.println (\"That expression equals \" + result);\n\n System.out.print (\"Evaluate another expression [Y/N]? \");\n again = in.nextLine();\n System.out.println();\n }\n while (again.equalsIgnoreCase(\"y\"));\n }\n catch (Exception IOException)\n\t{\n\t System.out.println(\"Input exception reported\");\n }\n }",
"private void solveEquation( \tVectorStack<Integer> numbers,\t\t//If the vector stacks aren't referencing the original addresses correctly,\r\n\t\t\t\t\t\t\t\t\tVectorStack<Character> operands )\t//convert this method to return an int, being fed the parameters of two\r\n\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//popped ints and one popped operand char\r\n\t\tint rightValue = \tnumbers.pop();\r\n\t\tint leftValue = \tnumbers.pop();\r\n\t\tchar operand = \t\toperands.pop();\r\n\t\t\r\n\t\tswitch ( operand )\r\n\t\t{\r\n\t\t\tcase '*': \tnumbers.push( leftValue * rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '/':\tnumbers.push( leftValue / rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '+':\tnumbers.push( leftValue + rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '-':\tnumbers.push( leftValue - rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '(':\r\n\t\t\tcase ')':\tSystem.out.println( \"solveEquation called improperly.\"\r\n\t\t\t\t\t\t+ \"Parantheses should be peeked and solveEquation not called on them\" );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tdefault:\tSystem.out.println( \"Invalid character in operands stack.\" );\r\n\t\t\t\t\t\tbreak;\r\n\t\t}//end switch\r\n\t}",
"static String resultRPNtoInfix(String[] s){\n\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tStack<String> st = new Stack<String>();\n\t\t\t\n\t\t\tfor(int i=0; i<s.length; i++){\n\t\t\t\tif(!isSign(s[i])){\n\t\t\t\t\tst.add(s[i]);\n\t\t\t\t}\n\t\t\t\t//if it's a sign then we need to pop from the stack\n\t\t\t\telse{\n\t\t\t\t\tString s1 = st.pop();\n\t\t\t\t\tString s2 = st.pop();\n\t\t\t\t\t\n\t\t\t\t\tif(s[i] == \"*\"){\n\t\t\t\t\t\tsb.append(s1);\n\t\t\t\t\t\tsb.append(\"*\");\n\t\t\t\t\t\tsb.append(s2);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(s[i] == \"+\"){\n\t\t\t\t\t\tsb.append(\"(\");\n\t\t\t\t\t\tsb.append(s1);\n\t\t\t\t\t\tsb.append(\"+\");\n\t\t\t\t\t\tsb.append(s2);\n\t\t\t\t\t\tsb.append(\")\");\n\t\t\t\t\t}\n\t\t\t\t\tif(s[i] == \"-\"){\n\t\t\t\t\t\tsb.append(\"(\");\n\t\t\t\t\t\tsb.append(s2);\n\t\t\t\t\t\tsb.append(\"-\");\n\t\t\t\t\t\tsb.append(s1);\n\t\t\t\t\t\tsb.append(\")\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(s[i] == \"/\"){\n\t\t\t\t\t\tsb.append(s2);\n\t\t\t\t\t\tsb.append(\"/\");\n\t\t\t\t\t\tsb.append(s1);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tst.add(sb.toString());\n\t\t\t\t\tsb = new StringBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn st.pop();\n\t\t}",
"public double calculate(String expression) {\n\t\tString[] inputs = expression.split(\" \");\n\t if(debug) {\n\t\tSystem.out.print(\"Input array: \");\n\t\tfor(String value : inputs) {\n\t\t\tSystem.out.print(value + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t }\t\n\t\t\n\t\t// Go through the string array and pop operators onto the\n\t\t// operators stack and operands onto the the operands stack\n\t\tfor(String value : inputs) {\n\t\t if(debug) System.out.println(\"Evaluating: \" + value);\n\t\t\tif(value.equals(\"*\") || value.equals(\"/\") || value.equals(\"+\") || value.equals(\"-\")) {\n\t\t\t\t// If stack is empty push onto stack\n\t\t\t\tif(operand.empty()) {\n\t\t\t\t\toperand.push(value);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// If new operator is higher than old push onto\n\t\t\t\t// stack\n\t\t\t\telse if(value.equals(\"*\") || value.equals(\"/\")) {\n\t\t\t\t\tString old = (String)operand.peek();\n\t\t\t\t\tif(old.equals(\"*\")) {\n\t\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\t if(debug) {\n\t\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t\t }\n\t\t\t\t\t \ta = a*b;\n\t\t\t\t\t\toperators.push(a);\n\t\t\t\t\t\told = (String)operand.pop();\n\t\t\t\t\t\toperand.push(value);\n\t\t\t\t\t}\n\t\t\t\t\telse if(old.equals(\"/\")) {\n\t\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\t if(debug) {\n\t\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t\t }\n\t\t\t\t\t \ta = b/a;\n\t\t\t\t\t\toperators.push(a);\n\t\t\t\t\t\told = (String)operand.pop();\n\t\t\t\t\t\toperand.push(value);\n\t\t\t\t\t}\n\t\t\t\t\telse operand.push(value);\n\t\t\t\t}\n\n\t\t\t\t// Else pop old operator and evaluate top two\n\t\t\t\t// elements on operand stack then push new\n\t\t\t\t// operator onto stack\n\t\t\t\telse {\n\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\tString old = (String)operand.pop();\n\t\t\t\t if(debug) {\n\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t }\n\t\t\t\t\tif(old.equals(\"*\")) a = a*b;\n\t\t\t\t\telse if(old.equals(\"/\")) a = b/a;\n\t\t\t\t\telse if(old.equals(\"+\")) a = a+b;\n\t\t\t\t\telse a = b-a;\n\t\t\t\t\toperators.push(a);\n\t\t\t\t\toperand.push(value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Put operators into operators stack\n\t\t\telse {\n\t\t\t try {\n\t\t\t\tDouble num = Double.parseDouble(value);\n\t\t\t\toperators.push(num);\n\t\t\t }\n\t\t\t catch(NumberFormatException e) {\n\t\t\t\t System.out.println(\"NumberFormatException: Something besides a number or operator entered\");\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\t// Finish up everything left over in stack\n\t\tString old;\n\t\tdouble a;\n\t\tdouble b;\n\t\twhile(!operand.empty()) {\n\t\t\told = (String)operand.pop();\n\t\t\ta = (Double)operators.pop();\n\t\t\tb = (Double)operators.pop();\n\t\t\tif(old.equals(\"*\")) a = a*b;\n\t\t\telse if(old.equals(\"/\")) a = b/a;\n\t\t\telse if(old.equals(\"+\")) a = a+b;\n\t\t\telse a = b-a;\n\t\t\toperators.push(a);\n\t\t}\n\t\treturn (Double)operators.peek();\n\t}",
"public static void main(String[] args) {\n System.out.println(solution(\"1 + 2\"));\n System.out.println(solution(\"1 * 2 + 3\"));\n System.out.println(solution(\"1 + 2 * 3\"));\n System.out.println(solution(\"1 + 2 * 3 - 4 / 2 + 6 / 2 - 7\"));\n\n System.out.println(solution(\"1 + 2 * (3 * (1 + 2))\"));\n }",
"public int calculate(String s) {\n if ((s == null) || (s.length() == 0)) return 0;\n int i = 0;\n int j = 0;\n s = s.replace(\" \", \"\");\n String val = \"\";\n int prevVal = 0;\n Stack<Integer> stack = new Stack<Integer>();\n while ((i < s.length()) && (j < s.length())) {\n char ch = s.charAt(i);\n if ((ch == '+') || (ch == '-')) {\n Integer top = null;\n if ( ! stack.isEmpty()) top = stack.peek();\n if (top != null) {\n int topValue = top.intValue();\n if ((topValue == '+') || (topValue == '-') && (stack.size() >= 2)) {\n stack.pop();\n Integer op = stack.pop();\n if (val.length() > 0) {\n if (topValue == '+') stack.push(Integer.parseInt(val) + op.intValue());\n else stack.push(op.intValue() - Integer.parseInt(val));\n }\n }\n }\n else if (val.length() > 0) stack.push(Integer.parseInt(val));\n stack.push((int) ch);\n val = \"\";\n i++;\n } else if ((ch == '*') || (ch == '/')) {\n prevVal = Integer.parseInt(val);\n val = \"\";\n j = i + 1;\n while (j < s.length()) {\n char ch_next = s.charAt(j);\n if ((ch_next == '+') || (ch_next == '-') || (ch_next == '*') || (ch_next == '/')) {\n i = j;\n break;\n } else {\n val = val + ch_next;\n }\n j++;\n }\n if (val.length() > 0) {\n if (ch == '*') val = (Integer.parseInt(val) * prevVal) + \"\";\n else val = (prevVal / Integer.parseInt(val)) + \"\";\n prevVal = 0;\n }\n } else {\n val = val + ch;\n i++;\n }\n }\n if (val.length() > 0) {\n stack.push(Integer.parseInt(val));\n }\n int res = 0;\n while ( ! stack.isEmpty()) {\n int op_2 = stack.pop();\n res = op_2;\n if (stack.size() >= 2) {\n int op = stack.pop();\n int op_1 = stack.pop();\n if (op == '+') stack.push(op_2 + op_1);\n else stack.push(op_1 - op_2);\n\n }\n }\n return res;\n }",
"private String compute(String str) {\n String array[];\n array=str.split(\" \");\n Stack<Double> s=new Stack<Double>();\n Double a=Double.parseDouble(array[0]);\n s.push(a);\n for(int i=1;i<array.length;i++) {\n if(i%2==1) {\n if(array[i].compareTo(\"+\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n s.push(b);\n }\n if(array[i].compareTo(\"-\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n s.push(-b);\n }\n if(array[i].compareTo(\"*\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n\n double c=s.pop();\n\n c*=b;\n s.push(c);\n\n\n }\n if(array[i].compareTo(\"/\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n\n double c=s.peek();\n s.pop();\n c/=b;\n s.push(c);\n\n\n }\n }\n }\n double sum=0;\n while(!s.isEmpty()) {\n sum+=s.pop();\n\n }\n String result=String.valueOf(sum);\n return result;\n }",
"private String doExponent(String answer)\n\t{\n\t\tint signSpot;\n\t\tString stringToDelete;\n\t\tdouble number1;\n\t\tdouble number2;\n\t\tint minValue = 0;\n\t\tint maxValue = 0;\n\n\t\twhile (answer.contains(\"^\"))\n\t\t{\n\t\t\tsignSpot = answer.indexOf(\"^\");\n\n\t\t\t// start\n\t\t\tfor (int count = signSpot - 1; count >= 0; count -= 1)\n\t\t\t{\n\t\t\t\tif (isNumeric(answer.substring(count, count + 1)) == true\n\t\t\t\t\t\t|| answer.substring(count, count + 1).equals(\".\"))\n\t\t\t\t{\n\t\t\t\t\tminValue = count;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// finish\n\t\t\tfor (int count = signSpot + 2; count <= answer.length(); count += 1)\n\t\t\t{\n\t\t\t\tif (isNumeric(answer.substring(count - 1, count)) == true\n\t\t\t\t\t\t|| answer.substring(count - 1, count).equals(\".\"))\n\t\t\t\t{\n\t\t\t\t\tmaxValue = count;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstringToDelete = answer.substring(minValue, maxValue);\n\t\t\tString myString = answer.substring(minValue, signSpot);\n\t\t\tnumber1 = Double.parseDouble(myString);\n\t\t\tmyString = answer.substring(signSpot + 1, maxValue);\n\t\t\tnumber2 = Double.parseDouble(myString);\n\t\t\tDouble numberAnswer1 = Math.pow(number1, number2);\n\n\t\t\tanswer = answer.replace(stringToDelete, \"\" + numberAnswer1);\n\t\t\tSystem.out.println(answer);\n\t\t}\n\t\treturn answer;\n\t}",
"public Calculator(ArrayList<String> postfix) {\n this.postfix = postfix;\n }",
"public int score(String ops[]) {\n int result = 0;\n\n Deque<Integer> stack = new ArrayDeque<>();\n\n for (String op : ops) {\n if (\"+\".equals(op)) {\n int prev1 = stack.pop();\n int prev2 = stack.peek();\n\n stack.push(prev1);\n stack.push(prev1 + prev2);\n } else if (\"D\".equals(op)) {\n int prev1 = stack.peek();\n stack.push(prev1 * prev1);\n } else if (\"C\".equals(op)) {\n stack.pop();\n } else {\n stack.push(Integer.parseInt(op));\n }\n }\n\n System.out.println(stack);\n\n while (!stack.isEmpty()) {\n result += stack.pop();\n }\n\n return result;\n }",
"@Override\r\n\tpublic int evaluate(String expression) {\r\n\t\tString e =expression;\r\n\t\tfloat result=0; //the returned result \r\n\t\tif(e.length()==2) {\r\n\t\t\te = removespaces(e);\r\n\t\t\tint z =Integer.parseInt(e);\r\n\t\t\treturn z;\r\n\t\t}\r\n\t\tfor(int i =0 ;i<expression.length();i++){\r\n\t\t\tif(Character.isLetter(e.charAt(i))){\r\n\t\t\t\tthrow new RuntimeException(\"You Can't evaluate letters\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i =0 ;i<expression.length()-1;i++) {\r\n\t\t\twhile(e.charAt(i) != '+' &&e.charAt(i) != '/' &&e.charAt(i) != '-' &&e.charAt(i) != '*' ) {\r\n\t\t\t\tint j = 0;\r\n\t\t\t\twhile(e.charAt(i) != ' ' ) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\tif(j>0) {\r\n\t\t\t\t\tString k = e.substring(i-j, i);\r\n\t\t\t\t\tk = removespaces(k);\r\n\t\t\t\t\tfloat z = Integer.parseInt(k);\r\n\t\t\t\t\topr.push(z);}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\tif(e.charAt(i)== '+') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result + x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i)== '*') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result * x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i)== '-') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result - x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i)== '/') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result / x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn (int)result;\r\n\r\n\t}",
"public static void main(String[] args) {\n\r\n\t\tString[] s = new String[] {\"10\", \"6\", \"9\", \"3\", \"+\", \"-11\", \"*\", \"/\", \"*\", \"17\", \"+\", \"5\", \"+\"};\r\n\t\tevalrpn eval = new evalrpn();\r\n\t\tint k = eval.evalRPN(s);\r\n\t\tSystem.out.print(k);\r\n\t}",
"private boolean postFixEvalution(char operator) throws ArithmeticException{\n //Pre: Validar que el stack no este vacio y que los operandos sean numeros.\n //Post: Realizar la operacion indicada\n try{\n if(!stack.empty()){\n //Se obtienen los dos operandos mas recientes del stack.\n Integer op2 = stack.pop();\n Integer op1 = stack.pop();\n\n //Se determina la operacion por hacer.\n if(op1 != null && op2 != null){\n switch (operator){\n case '+':\n stack.push(op1 + op2);\n break;\n case '-':\n stack.push(op1 - op2);\n break;\n case '*':\n stack.push(op1 * op2);\n break;\n case '/':\n stack.push(op1 / op2);\n break;\n }\n return true;\n }\n else\n return false;\n }\n else{\n return false;\n }\n }\n catch (ArithmeticException e){\n String ex = \"Error: Division por 0\";\n throw new ArithmeticException(ex);\n }\n }",
"@Test\n public void testCalculateRPNCustom() throws Exception {\n String[] expression = {\"3\",\"4\",\"+\",\"8\",\"3\",\"-\",\"+\",\"10\",\"2\",\"/\", \"3\", \"+\", \"*\", \"15\",\"/\"};\n double result = solver.calculateRPNCustom(expression);\n\n assertThat(result, is(6.4));\n }",
"public static void main(String[] args) {\n\t\tEvaluateReversePolishNotation result = new EvaluateReversePolishNotation();\n\t\tSystem.out.println(result.evalusteReversePolishNotation(new String[] {\"2\", \"1\", \"+\", \"3\", \"*\"}));\n\t\tSystem.out.println(result.evalusteReversePolishNotation(new String[] {\"4\", \"13\", \"5\", \"/\", \"+\"}));\n\t\tSystem.out.println(result.evalusteReversePolishNotation(new String[] {\"0\", \"3\", \"/\"}));\n\t}",
"@Override\n\t public String solve() {\n\t if (count == 0) {\n\t answer1 = getVariable2()*getVariable3();\n\t setAnswer(answer1 + \"\");\n\t } else if (count == 1) {\n\t answer1 = getVariable1()/getVariable2();\n\t setAnswer(answer1 + \"\");\n\t }else if (count == 2) {\n\t answer1 = getVariable1()/getVariable3();\n\t setAnswer(answer1 + \"\");\n\t }\n\t return getAnswer();\n\t }",
"private String toReversePolishNotation(String expr) {\n\t\tString output = \"\";\n\t\tStack<String> operatorStack = new Stack<String>();\n\n\t\tfor(String token : expr.split(\"\\\\s+\")) {\n\t\t\tif(isNumber(token)) {\n\t\t\t\toutput += token + \" \";\n\t\t\t}\n\t\t\telse if(isMatrix(token)) {\n\t\t\t\toutput += token + \" \";\n\t\t\t}\n\t\t\telse if(isOperator(token)) {\n\t\t\t\tint precidenceToken = getPrecidence(token);\n\t\t\t\tint precidenceNext;\n\t\t\t\twhile(!operatorStack.isEmpty()) {\n\t\t\t\t\tprecidenceNext = getPrecidence(operatorStack.peek());\n\t\t\t\t\tif(precidenceNext >= precidenceToken) output += operatorStack.pop() + \" \";\n\t\t\t\t\telse break;\n\t\t\t\t}\n\t\t\t\toperatorStack.push(token);\n\t\t\t}\n\t\t\telse if(token.equals(\"(\")) {\n\t\t\t\toperatorStack.push(token);\n\t\t\t}\n\t\t\telse if(token.equals(\")\")) {\n\t\t\t\twhile(!operatorStack.peek().equals(\"(\")) output += operatorStack.pop() + \" \";\n\t\t\t\toperatorStack.pop();\n\t\t\t}\n\t\t\telse throw new IllegalArgumentException(INVALID_CHARACTER_MESSAGE);\n\t\t}\n\t\twhile(!operatorStack.isEmpty()) output += operatorStack.pop() + \" \";\n\n\t\treturn output;\n\t}"
] |
[
"0.7669654",
"0.73439085",
"0.7287396",
"0.72569305",
"0.7117909",
"0.7109864",
"0.6957115",
"0.69458205",
"0.69389075",
"0.693418",
"0.69294024",
"0.6848306",
"0.68413424",
"0.6809616",
"0.68028575",
"0.6767349",
"0.6739025",
"0.6664814",
"0.6655083",
"0.6612063",
"0.65720123",
"0.65655696",
"0.6494089",
"0.647425",
"0.6451531",
"0.644881",
"0.644535",
"0.64379704",
"0.64217216",
"0.640228",
"0.6358839",
"0.63566065",
"0.634597",
"0.6345588",
"0.62928987",
"0.6277855",
"0.62723315",
"0.6265156",
"0.6259748",
"0.6254251",
"0.6201076",
"0.62002546",
"0.61995184",
"0.61988205",
"0.6189279",
"0.6181642",
"0.61474293",
"0.61441797",
"0.6120898",
"0.611516",
"0.6103237",
"0.6085605",
"0.6079071",
"0.60368305",
"0.6034959",
"0.60125595",
"0.60015017",
"0.5998017",
"0.59957105",
"0.5977435",
"0.5966432",
"0.5946494",
"0.59304655",
"0.59266573",
"0.5923662",
"0.59050316",
"0.5903472",
"0.58985054",
"0.5878916",
"0.5866736",
"0.5860265",
"0.5856322",
"0.58502966",
"0.5847554",
"0.58441514",
"0.5842955",
"0.583541",
"0.5827654",
"0.58255625",
"0.58138615",
"0.5793614",
"0.5787683",
"0.5779605",
"0.576507",
"0.57612276",
"0.5760202",
"0.57538664",
"0.5750163",
"0.57377785",
"0.57181025",
"0.571516",
"0.57147664",
"0.57110786",
"0.57094646",
"0.56729734",
"0.567201",
"0.5667959",
"0.56671226",
"0.5656813",
"0.5645115",
"0.56434214"
] |
0.0
|
-1
|
converts a String to a float
|
protected float toFloat(String s){
return Float.parseFloat(s);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static float toFloat (String string) {\n return Float.valueOf(string).floatValue();\n }",
"public Float convertStringToFloat(String s ) {\n\t\t\treturn Float.valueOf(s);\n\t\t}",
"public static float StringToFloat(String StringValue){\n Float floatee;\n floatee = Float.valueOf(StringValue);\n return floatee.floatValue(); \n }",
"public float toFloat(String stringItem) {\n Float floatItem = (float) 0.0;\n try {\n floatItem = Float.valueOf(stringItem);\n } // try\n catch (NumberFormatException ioError) {\n System.out.print(\"Error converting \" + stringItem);\n System.out.print(\" to a floating point number::\");\n System.out.println(\" Termio.ToFloat method.\");\n } // catch\n return floatItem;\n }",
"private static float parse_number() {\n skip_spaces();\n\n if (i == l) {\n throw new Error(String.format(\"Unexpected end (s=%s)\", s));\n }\n\n int start = i;\n\n char c = s.charAt(i);\n\n // Consume sign.\n if (c == '-' || c == '+') {\n i += 1;\n c = s.charAt(i);\n }\n\n // Consume integer.\n if (c >= '0' && c <= '9') {\n skip_digits();\n if (i < l) {\n c = s.charAt(i);\n }\n } else if (c != '.') {\n throw new Error(\n String.format(\"Invalid number formating character '%c' (i=%d, s=%s)\", c, i, s));\n }\n\n // Consume fraction.\n if (c == '.') {\n i += 1;\n skip_digits();\n if (i < l) {\n c = s.charAt(i);\n }\n }\n\n if ((c == 'e' || c == 'E') && i + 1 < l) {\n char c2 = s.charAt(i + 1);\n // Check for `em`/`ex`.\n if (c2 != 'm' && c2 != 'x') {\n i += 1;\n c = s.charAt(i);\n\n if (c == '+' || c == '-') {\n i += 1;\n skip_digits();\n } else if (c >= '0' && c <= '9') {\n skip_digits();\n } else {\n throw new Error(\n String.format(\"Invalid number formating character '%c' (i=%d, s=%s)\", c, i, s));\n }\n }\n }\n\n String num = s.substring(start, i);\n float n = Float.parseFloat(num);\n\n // inf, nan, etc. are an error.\n if (Float.isInfinite(n) || Float.isNaN(n)) {\n throw new Error(\n String.format(\"Invalid number '%s' (start=%d, i=%d, s=%s)\", num, start, i, s));\n }\n\n return n;\n }",
"@Override\r\n\tpublic float getFloat(String string) {\n\t\treturn 0;\r\n\t}",
"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}",
"static Value<Float> parseFloat(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Float.parseFloat(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }",
"public static double readFloat() {\n return Float.parseFloat(readString());\n }",
"float toFloat(String value, float divideBy) {\n value = value.trim();\n if (value.indexOf(\"9999\") > -1) {\n // .9999's were made floatnull - check for them!\n if (value.indexOf(\".9999\") == -1) value = \"\"; // ub01\n } // if (value.indexOf(\"9999\") > -1)s\n return (!\"\".equals(value)\n ? new Float(value).floatValue() / divideBy\n : Tables.FLOATNULL);\n }",
"public static boolean isValidFloatStr (String str) {\n\t\ttry {\n\t\t\tFloat f = Float.valueOf(str);\n\t\t\treturn true;\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static float parseFloatValue(String floatValue) throws ParseException {\n NumberFormat numberFormat = NumberFormat.getInstance();\n Number number = null;\n try {\n number = numberFormat.parse(floatValue);\n } catch (ParseException e) {\n throw e;\n }\n return number.floatValue();\n }",
"public static double MyParseFloat(String s) throws Exception {\n\t\tStateFloat state;\n\n\t\tstate = StateFloat.SA;\n\n\t\tint i = 0;\n\t\tBoolean neg = false;\n\t\tBoolean nege = false;\n\t\tdouble divider = 10;\n\t\tdouble value = 0;\n\t\tint exponent = 0;\n\n\twhile (i < s.length() && (state != StateFloat.SC || state != StateFloat.SF || state != StateFloat.SH)) {\n\t\t\tchar ch = s.charAt(i);\n\t\t\tswitch (state) {\n\t\t\t\tcase SA:\n\t\t\t\t\tif (Character.isDigit(ch)) {\n\t\t\t\t\t\tstate = StateFloat.SC;\n\t\t\t\t\t\tvalue = Character.getNumericValue(ch);\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else if (ch == '.') {\n\t\t\t\t\t\tstate = StateFloat.SD;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else if (ch == '+' || ch == '-') {\n\t\t\t\t\t\tstate = StateFloat.SB;\n\t\t\t\t\t\tif (ch == '-') neg = true;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception(\"Bad Format\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase SB:\n\t\t\t\t\tif (Character.isDigit(ch)) {\n\t\t\t\t\t\tstate = StateFloat.SC;\n\t\t\t\t\t\tif (neg) value = 10*value - Character.getNumericValue(ch);\n\t\t\t\t\t\telse value = 10*value + Character.getNumericValue(ch);\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else if (ch == '.') {\n\t\t\t\t\t\tstate = StateFloat.SD;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception(\"Bad Format\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase SC:\n\t\t\t\t\tif (Character.isDigit(ch)) {\n\t\t\t\t\t\tif (neg) value = 10*value - Character.getNumericValue(ch);\n\t\t\t\t\t\telse value = 10*value + Character.getNumericValue(ch);\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else if (ch == '.') {\n\t\t\t\t\t\tstate = StateFloat.SD;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else if (ch == 'e' || ch == 'E') {\n\t\t\t\t\t\tstate = StateFloat.SE;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception(\"Bad Format\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase SD:\n\t\t\t\t\tif (Character.isDigit(ch)) {\n\t\t\t\t\t\tstate = StateFloat.SF;\n\t\t\t\t\t\tif (neg) value -= Character.getNumericValue(ch)/divider;\n\t\t\t\t\t\telse value += Character.getNumericValue(ch)/divider;\n\t\t\t\t\t\tdivider *= 10;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception(\"Bad Format\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase SE:\n\t\t\t\t\tif (Character.isDigit(ch)) {\n\t\t\t\t\t\tstate = StateFloat.SH;\n\t\t\t\t\t\tif (nege) exponent = 10*exponent - Character.getNumericValue(ch);\n\t\t\t\t\t\telse exponent = 10*exponent + Character.getNumericValue(ch);\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else if (ch == '+' || ch == '-') {\n\t\t\t\t\t\tstate = StateFloat.SG;\n\t\t\t\t\t\tif (ch == '-') nege = true;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception(\"Bad Format\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase SF:\n\t\t\t\t\tif (Character.isDigit(ch)) {\n\t\t\t\t\t\t//Divider comes here\n\t\t\t\t\t\tif (neg) value -= Character.getNumericValue(ch)/divider;\n\t\t\t\t\t\telse value += Character.getNumericValue(ch)/divider;\n\t\t\t\t\t\tdivider *= 10;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else if (ch == 'e' || ch == 'E') {\n\t\t\t\t\t\tstate = StateFloat.SE;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception(\"Bad Format\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase SG:\n\t\t\t\t\tif (Character.isDigit(ch)) {\n\t\t\t\t\t\tstate = StateFloat.SH;\n\t\t\t\t\t\tif (nege) exponent = 10*exponent - Character.getNumericValue(ch);\n\t\t\t\t\t\telse exponent = 10*exponent + Character.getNumericValue(ch);\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception(\"Bad Format\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase SH:\n\t\t\t\t\tif (Character.isDigit(ch)) {\n\t\t\t\t\t\tif (nege) exponent = 10*exponent - Character.getNumericValue(ch);\n\t\t\t\t\t\telse exponent = 10*exponent + Character.getNumericValue(ch);\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception(\"Bad Format\");\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (state != StateFloat.SC && state != StateFloat.SF && state != StateFloat.SH) throw new Exception(\"Bad Format\");\n\t\tvalue = value * Math.pow(10, exponent);\n\t\treturn value;\n\t}",
"public Float toReal(String lex){\r\n\t\treturn Float.parseFloat(lex);\r\n\t}",
"public float getFloat() throws NoSuchElementException,\n\t NumberFormatException\n {\n\tString s = tokenizer.nextToken();\n\treturn Float.parseFloat(s);\n }",
"public static double atof(String s)\n {\n int i = 0;\n int sign = 1;\n double r = 0; // integer part\n // double f = 0; // fractional part\n double p = 1; // exponent of fractional part\n int state = 0; // 0 = int part, 1 = frac part\n\n while ((i < s.length()) && Character.isWhitespace(s.charAt(i)))\n {\n i++;\n }\n\n if ((i < s.length()) && (s.charAt(i) == '-'))\n {\n sign = -1;\n i++;\n }\n else if ((i < s.length()) && (s.charAt(i) == '+'))\n {\n i++;\n }\n\n while (i < s.length())\n {\n char ch = s.charAt(i);\n\n if (('0' <= ch) && (ch <= '9'))\n {\n if (state == 0)\n {\n r = ((r * 10) + ch) - '0';\n }\n else if (state == 1)\n {\n p = p / 10;\n r = r + (p * (ch - '0'));\n }\n }\n else if (ch == '.')\n {\n if (state == 0)\n {\n state = 1;\n }\n else\n {\n return sign * r;\n }\n }\n else if ((ch == 'e') || (ch == 'E'))\n {\n long e = (int) parseLong(s.substring(i + 1), 10);\n\n return sign * r * Math.pow(10, e);\n }\n else\n {\n return sign * r;\n }\n\n i++;\n }\n\n return sign * r;\n }",
"@Override\r\n public void updateValue(String s) {\r\n //Covert from string to float\r\n this.value = Float.valueOf(s);\r\n }",
"public float getFloat(String subExpression) {\n return (float)getNumber(subExpression);\n }",
"protected float toFloat(String bean, String value) throws OxyException {\r\n try { \r\n return Float.parseFloat(value); \r\n } catch (NumberFormatException e) { \r\n throw new OxyException(\"cannot parse '\"+bean+\"' with float value: \"+value); \r\n }\r\n }",
"void mo9698a(String str, float f);",
"public abstract void getFloatImpl(String str, double d, Resolver<Double> resolver);",
"private static float parseCoOrdinate(String value) {\n\t\tfloat result = 0f;\n\n\t\t// Quick and dirty way to determine if the value appears to have a units suffix.\n\t\tif (value.charAt(value.length() - 1) >= 'a') {\n\t\t\tif (value.endsWith(\"px\")) {\n\t\t\t\tvalue = value.substring(0, value.length() - 2);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// TODO: Add support in future for other units here.\n\t\t\t\t// TODO: Call our error reporting function.\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tresult = Float.parseFloat(value);\n\t\t}\n\t\tcatch (final NumberFormatException nfe) {\n\n\t\t}\n\t\treturn result;\n\t}",
"public static float failsafeParseFloat(String value, float failsafe){\n\t\ttry {\n\t\t\treturn Float.parseFloat(value);\n\t\t} catch ( Throwable t ){ \n\t\t\treturn failsafe;\n\t\t}\n\t}",
"public static boolean isFloat(String str) {\n\t\ttry {\n\t\t\tfloat f = Float.parseFloat(str);\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic Double convert(String s) {\n\t\t\treturn Double.parseDouble(s);\n\t\t}",
"String floatRead();",
"public float readFloat() {\n return Float.parseFloat(readNextLine());\n }",
"public abstract float mo70722e(String str);",
"public static String cleanupFloatStr(String str1) {\n\t\t\tSystem.out.println(\"NOTE: Cleaning up \" + str1);\n\t\t\tMatcher match = Pattern.compile(\"\\\\[(New|Old):(\\\\d+(\\\\.\\\\d*)?)\\\\]\").matcher(str1);\n\t\t\ttry {\n\t\t\t\tmatch.find();\n\t\t\t\treturn match.group(2);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"ERR: Caught an exception while matching pattern! str1: \" + str1);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}",
"public static float foo(String number) {\n switch (stringEval(number)) {\n case \"one\": return 1;\n case \"two\": return 2;\n case \"three\": return 3;\n default: return -3.14159f; //not a number\n }\n }",
"public float getFloat(String key) {\n\t\tfloat defaultValue = 0;\n\t\tif (getDefault(key) != null)\n\t\t\tdefaultValue = (Float) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tfloat value;\n\t\ttry {\n\t\t\tvalue = Float.parseFloat(sp);\n\t\t} catch (NumberFormatException ex) {\n\t\t\tsetFloat(key, defaultValue);\n\t\t\treturn defaultValue;\n\t\t}\n\t\treturn value;\n\t}",
"public static double parseFloat(final Object self, final Object string) {\n final String str = JSType.trimLeft(JSType.toString(string));\n final int length = str.length();\n\n // empty string is not valid\n if (length == 0) {\n return Double.NaN;\n }\n\n int start = 0;\n boolean negative = false;\n char ch = str.charAt(0);\n\n if (ch == '-') {\n start++;\n negative = true;\n } else if (ch == '+') {\n start++;\n } else if (ch == 'N') {\n if (str.startsWith(\"NaN\")) {\n return Double.NaN;\n }\n }\n\n if (start == length) {\n // just the sign character\n return Double.NaN;\n }\n\n ch = str.charAt(start);\n if (ch == 'I') {\n if (str.substring(start).startsWith(\"Infinity\")) {\n return negative? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;\n }\n }\n\n boolean dotSeen = false;\n boolean exponentOk = false;\n int exponentOffset = -1;\n int end;\n\nloop:\n for (end = start; end < length; end++) {\n ch = str.charAt(end);\n\n switch (ch) {\n case '.':\n // dot allowed only once\n if (exponentOffset != -1 || dotSeen) {\n break loop;\n }\n dotSeen = true;\n break;\n\n case 'e':\n case 'E':\n // 'e'/'E' allow only once\n if (exponentOffset != -1) {\n break loop;\n }\n exponentOffset = end;\n break;\n\n case '+':\n case '-':\n // Sign of the exponent. But allowed only if the\n // previous char in the string was 'e' or 'E'.\n if (exponentOffset != end - 1) {\n break loop;\n }\n break;\n\n case '0':\n case '1':\n case '2':\n case '3':\n case '4':\n case '5':\n case '6':\n case '7':\n case '8':\n case '9':\n if (exponentOffset != -1) {\n // seeing digit after 'e' or 'E'\n exponentOk = true;\n }\n break;\n\n default: // ignore garbage at the end\n break loop;\n }\n }\n\n // ignore 'e'/'E' followed by '+/-' if not real exponent found\n if (exponentOffset != -1 && !exponentOk) {\n end = exponentOffset;\n }\n\n if (start == end) {\n return Double.NaN;\n }\n\n try {\n final double result = Double.valueOf(str.substring(start, end));\n return negative ? -result : result;\n } catch (final NumberFormatException e) {\n return Double.NaN;\n }\n }",
"public float evaluateAsFloat();",
"public static float parseFloatSeguro(String numero) {\n if (!(\"&\".equals(numero)) && !(\"-&\".equals(numero))) {\n return Float.parseFloat(numero);\n } else if (\"&\".equals(numero)) {\n return Integer.MAX_VALUE / 1000F;\n } else {\n return Integer.MIN_VALUE / 1000F; //Por que si no en validar dan overflow\n }\n }",
"public Float getFloat(String key)\n\t{\n\t\tDouble d = getDouble(key);\n\t\tif(d == null)\n\t\t\treturn null;\n\t\treturn d.floatValue();\n\t}",
"public static boolean isFloat(String s) {\n try {\n Float.parseFloat(s);\n } catch(NumberFormatException e) {\n return false;\n } catch(NullPointerException e) {\n return false;\n } return true;\n }",
"public static List<Float> extractFloats(String string) {\r\n\t\t\tList<Float> floats = new ArrayList<Float>();\r\n\r\n\t\t\tScanner scanner = new Scanner(string);\r\n\t\t\tscanner.useDelimiter(\"[^\\\\d,]\");\r\n\r\n\t\t\twhile (scanner.hasNextFloat() || scanner.hasNext()) {\r\n\t\t\t\tif (scanner.hasNextFloat()) {\r\n\t\t\t\t\tfloats.add(scanner.nextFloat());\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tscanner.next();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tscanner.close();\r\n\t\t\treturn floats;\r\n\t\t}",
"public double toDouble(String stringItem) {\n Float floatItem = (float) 0.0;\n try {\n floatItem = Float.valueOf(stringItem);\n } // try\n catch (NumberFormatException ioError) {\n System.out.print(\"Error converting \" + stringItem);\n System.out.print(\" to a floating point number::\");\n System.out.println(\" Termio.ToDouble method.\");\n } // catch\n return floatItem.doubleValue();\n }",
"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 getFloat(String plcAddress) throws Df1LibraryNativeException\n\t{\n\t\treturn Df1_Read_Float(plcAddress);\n\t}",
"public float getFloat(String property)\n\tthrows PropertiesPlusException\n\t{\n\t\tString value = getProperty(property);\n\t\tif (value == null)\n\t\t\tthrow new PropertiesPlusException(property+\" is not defined.\");\n\n\t\ttry\n\t\t{\n\t\t\treturn Float.valueOf(value);\n\t\t}\n\t\tcatch (NumberFormatException ex)\n\t\t{\n\t\t\tthrow new PropertiesPlusException(String.format(\n\t\t\t\t\t\"%s = %s cannot be converted to type double\", property, value));\n\t\t}\n\t}",
"public final Float _parseFloat(JsonParser jVar, DeserializationContext gVar) throws IOException {\n JsonToken l = jVar.mo29328l();\n if (l == JsonToken.VALUE_NUMBER_FLOAT || l == JsonToken.VALUE_NUMBER_INT) {\n return Float.valueOf(jVar.mo29250F());\n }\n if (l == JsonToken.VALUE_STRING) {\n String trim = jVar.mo29334t().trim();\n if (trim.length() == 0) {\n return (Float) _coerceEmptyString(gVar, this._primitive);\n }\n if (_hasTextualNull(trim)) {\n return (Float) _coerceTextualNull(gVar, this._primitive);\n }\n char charAt = trim.charAt(0);\n if (charAt != '-') {\n if (charAt != 'I') {\n if (charAt == 'N' && _isNaN(trim)) {\n return Float.valueOf(Float.NaN);\n }\n } else if (_isPosInf(trim)) {\n return Float.valueOf(Float.POSITIVE_INFINITY);\n }\n } else if (_isNegInf(trim)) {\n return Float.valueOf(Float.NEGATIVE_INFINITY);\n }\n _verifyStringForScalarCoercion(gVar, trim);\n try {\n return Float.valueOf(Float.parseFloat(trim));\n } catch (IllegalArgumentException unused) {\n return (Float) gVar.mo31517b(this._valueClass, trim, \"not a valid Float value\", new Object[0]);\n }\n } else if (l == JsonToken.VALUE_NULL) {\n return (Float) _coerceNullToken(gVar, this._primitive);\n } else {\n if (l == JsonToken.START_ARRAY) {\n return (Float) _deserializeFromArray(jVar, gVar);\n }\n return (Float) gVar.mo31493a(this._valueClass, jVar);\n }\n }",
"public FloatLiteral(Range range, AstNode parent, String rawString) {\n super(range, parent, rawString);\n // this.isDouble = isDouble(rawString);\n // this.value = parseFloat(rawString);\n }",
"public static Double getDoubleFromString(String value) {\n\n if (value == null) {\n return null;\n }\n Double doubleVal = null;\n\n try {\n doubleVal = Double.parseDouble(value);\n } catch (RuntimeException exc) {\n // could not parse into float, null will be returned\n }\n return doubleVal;\n }",
"float readFloat();",
"private static boolean validateFloat(String floatString) {\n try {\n Float.parseFloat(floatString);\n } catch (NumberFormatException e) {\n // Not a valid float\n return false;\n }\n return true;\n }",
"public float getFloat(String name) {\n Enumeration enumer = FLOATS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectFloatItem item = (SimpleMessageObjectFloatItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return -1F;\n }",
"public static float readFloat()\n \n {\n float f=0.0f;\n String wort=\"xxxx\";\n try {\n wort=eingabe.readLine();\n f=Float.valueOf(wort).floatValue() ;\n } catch(IOException e1) {\n System.out.println(\"Eingabefehler, bitte noch einmal!\");\n f=readFloat();\n } catch(NumberFormatException e2) {\n if(wort.equals(\"\"))\n System.out.println(\"Bitte etwas eingeben, noch einmal:\");\n else {\n System.out.print(\"Fehler beim Format, \");\n System.out.println(\"bitte noch einmal!\");}\n f=readFloat();\n }\n return f;\n }",
"public static float getFloat(String pName) {\n float out = 0f;\n try {\n out = Float.parseFloat(properties.getProperty(pName));\n } catch (Exception e) {\n out = Float.parseFloat(defaults.getProperty(pName));\n Log.debug(\"Cannot parse property: \" + pName);\n Log.debug(e);\n }\n return out;\n }",
"public float getFloat(String column)\n {\n return FloatType.instance.compose(get(column));\n }",
"float readFloat() {\n try {\n return in.readFloat();\n } catch (IOException ex) {\n return DisasmError();\n }\n }",
"@Nullable\r\n public Float getFloat(String key) {\r\n return getFloat(key, null);\r\n }",
"public Float getFloat(String attr) {\n return (Float) super.get(attr);\n }",
"int mo9691a(String str, String str2, float f);",
"public float getFloat(String key)\n {\n return getFloat(key, 0);\n }",
"public static Object parseFloat(Context cx, Scriptable thisObj,\n Object[] args, Function funObj)\n {\n if (args.length < 1)\n return ScriptRuntime.NaNobj;\n String s = ScriptRuntime.toString(args[0]);\n int len = s.length();\n if (len == 0)\n return ScriptRuntime.NaNobj;\n \n int i;\n char c;\n // Scan forward to the first digit or .\n for (i=0; TokenStream.isJSSpace(c = s.charAt(i)) && i+1 < len; i++)\n /* empty */\n ;\n \n int start = i;\n \n if (c == '+' || c == '-')\n c = s.charAt(++i);\n \n if (c == 'I') {\n // check for \"Infinity\"\n double d;\n if (i+8 <= len && s.substring(i, i+8).equals(\"Infinity\"))\n d = s.charAt(start) == '-' ? Double.NEGATIVE_INFINITY\n : Double.POSITIVE_INFINITY;\n else\n return ScriptRuntime.NaNobj;\n return new Double(d);\n }\n \n // Find the end of the legal bit\n int decimal = -1;\n int exponent = -1;\n for (; i < len; i++) {\n switch (s.charAt(i)) {\n case '.':\n if (decimal != -1) // Only allow a single decimal point.\n break;\n decimal = i;\n continue;\n \n case 'e':\n case 'E':\n if (exponent != -1)\n break;\n exponent = i;\n continue;\n \n case '+':\n case '-':\n // Only allow '+' or '-' after 'e' or 'E'\n if (exponent != i-1)\n break;\n continue;\n \n case '0': case '1': case '2': case '3': case '4':\n case '5': case '6': case '7': case '8': case '9':\n continue;\n \n default:\n break;\n }\n break;\n }\n s = s.substring(start, i);\n try {\n return Double.valueOf(s);\n }\n catch (NumberFormatException ex) {\n return ScriptRuntime.NaNobj;\n }\n }",
"public boolean isFloat(String value) {\n try {\n Float.parseFloat(value);\n return true;\n } catch (Exception e) {\n return false;\n }\n }",
"protected float[] convertIntoFloat(String[] str) {\r\n\r\n if (str == null) {\r\n return null;\r\n }\r\n\r\n float[] imagePositionCoords = new float[str.length];\r\n\r\n for (int i = 0; i < str.length; i++) { // convert all 3 axis coords from string into float.\r\n imagePositionCoords[i] = Float.valueOf(str[i]).floatValue();\r\n }\r\n\r\n return imagePositionCoords;\r\n }",
"public float getFloat(String name, float defaultValue)\n/* */ {\n/* 984 */ String value = getString(name);\n/* 985 */ if (value == null) {\n/* 986 */ return defaultValue;\n/* */ }\n/* 988 */ return PApplet.parseFloat(value, defaultValue);\n/* */ }",
"@Override\n public Number fromString(String string) {\n return Double.valueOf(string).intValue();\n }",
"private static float checkNull(String current) {\n if (current.equals(NULLSTR)) {\n return ZERO;\n } else {\n return Float.parseFloat(current);\n }\n }",
"private boolean canConvertTextToFloat(String currentText) {\n try {\n Float.valueOf(currentText);\n return true;\n } catch (Exception e) {\n return false;\n }\n }",
"public boolean loadFromFloatText(String text) {\n return loadFromFloatText(text, 4);\n }",
"public static float toFloat(byte [] bytes) {\n return toFloat(bytes, 0);\n }",
"@Test\n public void shouldParseFLOAT() {\n printTest(\"shouldParseFLOAT()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_FLOAT);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n\n content = typeString + \" (5)\";\n tokens = getTokens(content);\n dType = parser.parse(tokens);\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n Assert.assertEquals(\"DataType length is not correct\", 5, dType.getPrecision()); // PRECISION\n\n // ADDED SCALE\n content = typeString + \" (5, 2)\";\n tokens = getTokens(content);\n dType = null;\n try {\n dType = parser.parse(tokens);\n } catch (ParsingException e) {\n // Expect exception\n }\n Assert.assertNull(\"DataType should NOT have been found for Type = \" + content, dType);\n\n }",
"public float getFloat(String key, float fallback)\n {\n if (key.contains(\".\"))\n {\n String[] pieces = key.split(\"\\\\.\", 2);\n DataSection section = getSection(pieces[0]);\n return section == null ? fallback : section.getFloat(pieces[1], fallback);\n }\n\n if (!data.containsKey(key)) return -1;\n Object obj = data.get(key);\n try\n {\n return Float.parseFloat(obj.toString());\n }\n catch (Exception ex)\n {\n return fallback;\n }\n }",
"@Test\n public void test_TCM__float_getFloatValue() {\n Attribute attr = new Attribute(\"test\", \"1.00000009999e+10f\");\n float flt = 1.00000009999e+10f;\n try {\n assertTrue(\"incorrect float conversion\",\n attr.getFloatValue() == flt);\n } catch (DataConversionException e) {\n fail(\"couldn't convert to float\");\n }\n\n // test an invalid float\n\n attr.setValue(\"1.00000009999e\");\n try {\n attr.getFloatValue();\n fail(\"incorrect float conversion from non float\");\n } catch (DataConversionException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n }\n\n }",
"public Float getFloat(String name) {\n Object o = get(name);\n if (o instanceof Number) {\n return ((Number)o).floatValue();\n }\n\n if (o != null) {\n try {\n String string = o.toString();\n if (string != null) {\n return Float.parseFloat(string);\n }\n }\n catch (NumberFormatException e) {}\n }\n return null;\n }",
"public float getFloat(String name) {\n\t\tfinal Object val = values.get(name);\n\t\tif (val == null) {\n\t\t\tthrow new IllegalArgumentException(\"Float value required, but not specified\");\n\t\t}\n\t\tif (val instanceof Number) {\n\t\t\treturn ((Number) val).floatValue();\n\t\t}\n\t\ttry {\n\t\t\treturn Float.parseFloat((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Float value required, but found: \" + val);\n\t\t}\n\t}",
"public Float getFloat(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Float) extGet(key);\n\t}",
"@Override\n\t\tpublic java.math.BigDecimal convert(String s) {\n\t\t\treturn new java.math.BigDecimal(s);\n\t\t}",
"public float getFloat(String property, float defaultValue)\n\tthrows PropertiesPlusException\n\t{\n\t\tString value = getProperty(property);\n\t\t\n\t\tif (value == null)\n\t\t{\n\t\t\taddRequestedProperty(property, Float.toString(defaultValue));\n\t\t\treturn defaultValue;\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\treturn Float.valueOf(value);\n\t\t}\n\t\tcatch (NumberFormatException ex)\n\t\t{\n\t\t\tthrow new PropertiesPlusException(String.format(\n\t\t\t\t\t\"%s = %s cannot be converted to type float\", property, value));\n\t\t}\n\t}",
"public float readFloat() throws IOException {\n return in.readFloat();\n }",
"public double parse(String inputString){\n\t\tclear();\n\t\tinput = inputString;\n\t\treturn expr(true);\n\t}",
"public static float promptForFloat(String prompt, float min, float max) {\n if(min > max) throw new IllegalArgumentException(\"min cannot be greater than max.\");\n float result = (float) promptForDouble(prompt, min, max);\n return result;\n }",
"public static Float toFloat(Object o,byte type) throws ExecException {\n try {\n switch (type) {\n case BOOLEAN:\n return (Boolean) o ? Float.valueOf(1.0F) : Float.valueOf(0.0F);\n\n case INTEGER:\n return new Float(((Integer)o).floatValue());\n\n case LONG:\n return new Float(((Long)o).floatValue());\n\n case FLOAT:\n return (Float)o;\n\n case DOUBLE:\n return new Float(((Double)o).floatValue());\n\n case DATETIME:\n return new Float(Long.valueOf(((DateTime)o).getMillis()).floatValue());\n\n case BYTEARRAY:\n return Float.valueOf(((DataByteArray)o).toString());\n\n case CHARARRAY:\n return Float.valueOf((String)o);\n\n case BIGINTEGER:\n return Float.valueOf(((BigInteger)o).floatValue());\n\n case BIGDECIMAL:\n return Float.valueOf(((BigDecimal)o).floatValue());\n\n case NULL:\n return null;\n\n case BYTE:\n case MAP:\n case INTERNALMAP:\n case TUPLE:\n case BAG:\n case UNKNOWN:\n default:\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to a Float\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n } catch (ClassCastException cce) {\n throw cce;\n } catch (ExecException ee) {\n throw ee;\n } catch (NumberFormatException nfe) {\n int errCode = 1074;\n String msg = \"Problem with formatting. Could not convert \" + o + \" to Float.\";\n throw new ExecException(msg, errCode, PigException.INPUT, nfe);\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to Float.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n }",
"private static double stringToDouble(String valor) throws ParseException\n\t{\n\t\tDecimalFormat format = new DecimalFormat(\"#,###,##0.00\", new DecimalFormatSymbols(Locale.ENGLISH));\n\t\t\n\t\tdouble result = 0.0d;\n\t\ttry\n\t\t{\n\t\t\tif(!valor.equalsIgnoreCase(\"\"))\n\t\t\t{\n\t\t\t\tresult = format.parse(valor).doubleValue();\n\t\t\t}\n\t\t}\n\t\tcatch(ParseException e)\n\t\t{\n\t\t\tresult = 0;\n\t\t}\n\n\t\treturn result;\n\t}",
"public float[] getFloatArray(String str) {\n if (str != null) {\n String str1[] = str.split(\",\");\n float arr[] = new float[str1.length - 1];\n // at i=0 it is space so start from 1\n for (int i = 1; i < str1.length; i++) {\n arr[i - 1] = Float.parseFloat(str1[i]);\n }\n return arr;\n }\n return null;\n }",
"public static float promptForFloat(String prompt, float min, float max) throws IOException {\r\n\t\treturn (float) promptForDouble(prompt, min, max);\r\n\t}",
"public static float getFloatValue(Node node, String attrName, float defaultValue) {\r\n String value = getValue(node, attrName, null);\r\n\r\n if (value == null)\r\n return defaultValue;\r\n\r\n try {\r\n return Float.valueOf(value);\r\n } catch (NumberFormatException e) {\r\n return defaultValue;\r\n }\r\n }",
"@Test\n public void testParseFloat() {\n FloatSpec floatSpec = new FloatSpec();\n floatSpec.setDefaultValue(0f);\n dataTypeParser.setDataTypeSpec(floatSpec);\n dataTypeParser.parse();\n FloatSpec parsedFloatSpec = (FloatSpec) dataTypeParser.getDataTypeSpec();\n\n assertNull(parsedFloatSpec.getMinValue());\n assertNull(parsedFloatSpec.getMaxValue());\n }",
"float readFloat(int start)\n {\n int bits = readInt(start);\n\n return Float.intBitsToFloat(bits);\n }",
"public Float getFloat(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).floatValue();\n }",
"public static float getFloatValue(String propID, float dft)\n {\n String strVal = SystemProps.getStringValue(propID, null);\n return StringTools.parseFloat(strVal, dft);\n }",
"public abstract void setFloatImpl(String str, double d, Resolver<Void> resolver);",
"static float queryFloat (String prompt)\n\t{\n\t\tString entry ;\n\t\tfloat entryFloat ;\n\t\tSystem.out.print (prompt) ;\n\t\tentry = scanIn.nextLine() ;\n\t\tif (entry.length() == 0)\n\t\t{\n\t\t\tentryFloat = 0f ;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tentryFloat = Float.parseFloat (entry) ;\n\t\t}\n\n\t\treturn entryFloat ;\n\t}",
"public static _float parse(javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n _float object = new _float();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n object.set_float(java.lang.Float.NaN);\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.microsoft.com/2003/10/Serialization/\",\n \"float\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.set_float(org.apache.axis2.databinding.utils.ConverterUtil.convertToFloat(\n content));\n } else {\n object.set_float(java.lang.Float.NaN);\n\n reader.getElementText(); // throw away text nodes if any.\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }",
"public final void mFLOAT() throws RecognitionException {\r\n try {\r\n final int _type = SparqlMarcoLexer.FLOAT;\r\n final int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:58:5: ( ( '0' .. '9' )+\r\n // '.' ( '0' .. '9' )* ( EXPONENT )? | '.' ( '0' .. '9' )+ ( EXPONENT )? | ( '0' ..\r\n // '9' )+ EXPONENT )\r\n int alt11 = 3;\r\n alt11 = this.dfa11.predict(this.input);\r\n switch (alt11) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:58:9: ( '0' .. '9'\r\n // )+\r\n int cnt5 = 0;\r\n loop5: do {\r\n int alt5 = 2;\r\n final int LA5_0 = this.input.LA(1);\r\n\r\n if (LA5_0 >= '0' && LA5_0 <= '9') {\r\n alt5 = 1;\r\n }\r\n\r\n switch (alt5) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:58:10:\r\n // '0' .. '9'\r\n {\r\n this.matchRange('0', '9');\r\n\r\n }\r\n break;\r\n\r\n default:\r\n if (cnt5 >= 1) {\r\n break loop5;\r\n }\r\n final EarlyExitException eee = new EarlyExitException(5, this.input);\r\n throw eee;\r\n }\r\n cnt5++;\r\n } while (true);\r\n this.match('.');\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:58:25: ( '0' ..\r\n // '9' )*\r\n loop6: do {\r\n int alt6 = 2;\r\n final int LA6_0 = this.input.LA(1);\r\n\r\n if (LA6_0 >= '0' && LA6_0 <= '9') {\r\n alt6 = 1;\r\n }\r\n\r\n switch (alt6) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:58:26:\r\n // '0' .. '9'\r\n {\r\n this.matchRange('0', '9');\r\n\r\n }\r\n break;\r\n\r\n default:\r\n break loop6;\r\n }\r\n } while (true);\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:58:37: ( EXPONENT\r\n // )?\r\n int alt7 = 2;\r\n final int LA7_0 = this.input.LA(1);\r\n if (LA7_0 == 'E' || LA7_0 == 'e') {\r\n alt7 = 1;\r\n }\r\n switch (alt7) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:58:37:\r\n // EXPONENT\r\n {\r\n this.mEXPONENT();\r\n\r\n }\r\n break;\r\n\r\n }\r\n break;\r\n case 2:\r\n this.match('.');\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:59:13: ( '0' ..\r\n // '9' )+\r\n int cnt8 = 0;\r\n loop8: do {\r\n int alt8 = 2;\r\n final int LA8_0 = this.input.LA(1);\r\n\r\n if (LA8_0 >= '0' && LA8_0 <= '9') {\r\n alt8 = 1;\r\n }\r\n\r\n switch (alt8) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:59:14:\r\n // '0' .. '9'\r\n {\r\n this.matchRange('0', '9');\r\n\r\n }\r\n break;\r\n\r\n default:\r\n if (cnt8 >= 1) {\r\n break loop8;\r\n }\r\n final EarlyExitException eee = new EarlyExitException(8, this.input);\r\n throw eee;\r\n }\r\n cnt8++;\r\n } while (true);\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:59:25: ( EXPONENT\r\n // )?\r\n int alt9 = 2;\r\n final int LA9_0 = this.input.LA(1);\r\n if (LA9_0 == 'E' || LA9_0 == 'e') {\r\n alt9 = 1;\r\n }\r\n switch (alt9) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:59:25:\r\n // EXPONENT\r\n {\r\n this.mEXPONENT();\r\n\r\n }\r\n break;\r\n\r\n }\r\n break;\r\n case 3:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:60:9: ( '0' .. '9'\r\n // )+\r\n int cnt10 = 0;\r\n loop10: do {\r\n int alt10 = 2;\r\n final int LA10_0 = this.input.LA(1);\r\n\r\n if (LA10_0 >= '0' && LA10_0 <= '9') {\r\n alt10 = 1;\r\n }\r\n\r\n switch (alt10) {\r\n case 1:\r\n // /Users/Marco/Desktop/Tesi Davide/Antlr-doc/SparqlMarco.g:60:10:\r\n // '0' .. '9'\r\n {\r\n this.matchRange('0', '9');\r\n\r\n }\r\n break;\r\n\r\n default:\r\n if (cnt10 >= 1) {\r\n break loop10;\r\n }\r\n final EarlyExitException eee = new EarlyExitException(10, this.input);\r\n throw eee;\r\n }\r\n cnt10++;\r\n } while (true);\r\n this.mEXPONENT();\r\n break;\r\n default:\r\n break;\r\n\r\n }\r\n this.state.type = _type;\r\n this.state.channel = _channel;\r\n } finally {\r\n }\r\n }",
"private static float miniFloatFromString(String bitSequence){\n int sign , exponent;\r\n float mantissa , value;\r\n sign = bitSequence.charAt(0)=='0'?1:-1;\r\n exponent = Integer.parseInt(bitSequence.substring(2,5), 2);\r\n\t\tif(bitSequence.charAt(1)=='1'){\r\n\t\t\texponent=exponent-8;\r\n\t\t}\r\n mantissa = 1;\r\n mantissa += bitSequence.charAt(5)=='0'?0:0.5;\r\n mantissa += bitSequence.charAt(6)=='0'?0:0.25;\r\n mantissa += bitSequence.charAt(7)=='0'?0:0.125;\r\n\r\n value = sign * mantissa * (float)Math.pow(2, exponent);\r\n return value;\r\n }",
"float expectFloatParameter(String strParamName);",
"public abstract float read_float();",
"public static float readNumFromConsole(Scanner scan1) {\n \t String str = null;\r\n \t Pattern p = Pattern.compile(\"^\\\\d+(?:\\\\.\\\\d+)?$\");\r\n \t Matcher m = null;\r\n \t int counter = 0;\r\n \t \tdo {\r\n \t \t\tif (counter != 0) {\r\n \t \t\t\tSystem.out.println(\"Invalid numeric input\");\r\n \t \t\t}\r\n \t \t\tstr = scan1.nextLine();\r\n \t \t\tm = p.matcher(str);\r\n \t \t\tcounter++;\r\n\t \t} while(!m.matches());\r\n \t //scan1.close();\r\n \t return Float.parseFloat(str);\r\n\t }",
"int mo9702b(String str, String str2, float f);",
"public boolean isNumber(String stringItem) {\n Float floatItem = (float) 0.0;\n try {\n floatItem = Float.valueOf(stringItem);\n } // try\n catch (NumberFormatException IOError) {\n return false;\n } // catch\n return true;\n }",
"public static double toDouble(String s) {\n\t\tint i;\n\t\tif((i = s.indexOf(\",\")) > 0)\n\t\t\ts = s.substring(0, i) + \".\" + s.substring(i + 1);\n\t\telse if(i == 0)\n\t\t\ts = \".\" + s.substring(i + 1);\n\t\t\n\t\tif((i = s.indexOf(\" \")) > 0)\n\t\t\ts = s.substring(0, i) + s.substring(i + 1);\n\t\telse if(i == 0)\n\t\t\ts = s.substring(i + 1);\n\t\t\n\t\ttry {\n\t\t\treturn Double.parseDouble(s);\n\t\t} catch(NumberFormatException e) {\n\t\t\treturn 0.0;\n\t\t}\n\t}",
"public float f(String key) throws AgentBuilderRuntimeException {\n\t\treturn getFloat(key).floatValue();\n\t}",
"public static Float parseInput(String romanNr) throws InvalidCharacterException, InvalidNumber, InvalidNrOfCharacters {\r\n if (romanNr.length() == 1) {\r\n //if the length is 1, you just have to return the value\r\n if (!disableSyntax) {\r\n checkIfIsValid(romanNr);\r\n }\r\n return symbols.get(romanNr);\r\n }\r\n \r\n if (!disableSyntax) {\r\n checkIfIsValid(romanNr);\r\n checkRomanNumber(romanNr);\r\n checkSubstractions(romanNr);\r\n }\r\n \r\n \r\n //the roman number will pe processed from right to left so\r\n //I have to save the previous letter in case of a subtract operation\r\n String prevLetter = romanNr.charAt(romanNr.length() - 1) + \"\";\r\n Float decimalNr = symbols.get(prevLetter + \"\");\r\n String curLetter;\r\n int j = romanNr.length() - 2;\r\n while (j >= 0) {\r\n curLetter = romanNr.charAt(j) + \"\";\r\n if (symbols.get(curLetter) < symbols.get(prevLetter)) {\r\n //when smaller values precede larger values, \r\n //the smaller values are subtracted from the larger values\r\n decimalNr -= symbols.get(curLetter);\r\n } else {\r\n //otherwise, they are added to the total\r\n decimalNr += symbols.get(curLetter);\r\n }\r\n prevLetter = romanNr.charAt(j--) + \"\";\r\n }\r\n return decimalNr;\r\n }",
"public float leerFloat() throws IOException\r\n {\r\n return maestro.readFloat(); \r\n }",
"public abstract void mo70718c(String str, float f);",
"public static float toFloat(byte [] bytes, int offset) {\n return Float.intBitsToFloat(toInt(bytes, offset, SIZEOF_INT));\n }"
] |
[
"0.8481587",
"0.8309727",
"0.80932236",
"0.7722442",
"0.758974",
"0.7522806",
"0.74754995",
"0.74320173",
"0.7346439",
"0.7042728",
"0.69959223",
"0.69882655",
"0.6968638",
"0.6958185",
"0.69002134",
"0.689307",
"0.687276",
"0.6813455",
"0.67812586",
"0.6737648",
"0.66356945",
"0.6591403",
"0.65846705",
"0.65825987",
"0.6577629",
"0.65652084",
"0.6541977",
"0.6536119",
"0.65280014",
"0.65051097",
"0.6504956",
"0.65026784",
"0.64804256",
"0.6478668",
"0.6475501",
"0.6429802",
"0.6428004",
"0.63991416",
"0.6396461",
"0.63917416",
"0.6362972",
"0.6354685",
"0.6350051",
"0.63475645",
"0.6345119",
"0.631613",
"0.63129604",
"0.6292696",
"0.6277685",
"0.627165",
"0.6266898",
"0.6240449",
"0.6232337",
"0.6228379",
"0.62201613",
"0.62103784",
"0.6198834",
"0.6183496",
"0.6183376",
"0.6169039",
"0.61589825",
"0.6150687",
"0.6131385",
"0.61206883",
"0.6084733",
"0.60550267",
"0.6053481",
"0.60471964",
"0.60461104",
"0.60261977",
"0.59857947",
"0.59630346",
"0.5951126",
"0.5947665",
"0.59440464",
"0.59332436",
"0.59172875",
"0.591663",
"0.5909912",
"0.5898666",
"0.589224",
"0.58900565",
"0.58889246",
"0.5886125",
"0.5879571",
"0.5879462",
"0.5871925",
"0.58621305",
"0.58149946",
"0.5808485",
"0.5793879",
"0.5791075",
"0.57831705",
"0.5778866",
"0.5777086",
"0.5772498",
"0.5765306",
"0.57581687",
"0.5750681",
"0.57460004"
] |
0.8375211
|
1
|
Loads a given properties file
|
public static Properties load(File file) {
try {
if (file != null && file.exists()) {
return load(new FileInputStream(file));
}
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static void loadPropertiesFile() {\n checkNotNull(propertyFileName, \"propertyFileName cannot be null\");\n String currentDir = new File(\"\").getAbsolutePath();\n propertyFile = currentDir + \"/\" + propertyFileName;\n File propFile = new File(propertyFile);\n try {\n propFile.createNewFile();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n\n props = new Properties();\n try {\n FileInputStream fis = new FileInputStream(propertyFile);\n props.load(fis);\n fis.close();\n } catch (IOException ex) {\n Debugger.logMessage(ex);\n }\n }",
"public void loadPropertyFile(String filename) {\n try (InputStream is = new FileInputStream(filename)) {\n properties.load(is);\n } catch (IOException x) {\n throw new IllegalArgumentException(x);\n }\n }",
"private void loadPropertiesFile(String propertiesFile) {\n\n\t\t//open the properties file.\n\t\t_props = new Properties();\n\n\t\t//sanity check the properties file\n\t\tFile f = new File(propertiesFile);\n\t\tif (!f.canRead()) {\n\t\t\t//print an error - can't read the props file.\n\t\t\tSystem.err.println(\"Properties file \" + propertiesFile + \" cannot be read.\");\n\t\t}\n\n\t\ttry {\n\t\t\t_props.load(new FileInputStream(f));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }",
"public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }",
"public static void loadProperties(String filename) {\n\n if (filename.equals(\"\")) {\n return;\n }\n propfilename = userhome + FS + filename;\n File f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n } else {\n propfilename = userhome + FS + \"Properties\" + FS + filename;\n f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n }\n }\n\n try {\n try (FileInputStream i = new FileInputStream(propfilename)) {\n prop.load(i);\n //prtProperties();\n }\n } catch (FileNotFoundException e) {\n System.out.println(\" ** Properties file not found=\" + propfilename + \" userhome=\" + userhome + \" \" + System.getProperty(\"user.home\"));\n saveProperties();\n } catch (IOException e) {\n System.out.println(\"IOException reading properties file=\" + propfilename);\n System.exit(1);\n }\n }",
"private void loadProperties(){\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }",
"public static void loadPropertyFile() {\r\n\t\t\r\n\t\tif (loaded) {\r\n\t\t\tthrow new IllegalStateException(\"Properties have already been loaded!\"); \r\n\t\t}\r\n\t\tloaded = true; \r\n\t\t\r\n\t\t// if property file was specified, use it instead of standard property\r\n\t\t// file\r\n\r\n\t\tString file = STANDARD_PROPERTY_FILE;\r\n\r\n\t\tif (System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE) != null\r\n\t\t\t\t&& System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE)\r\n\t\t\t\t\t\t.length() != 0) {\r\n\t\t\tfile = System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE);\r\n\t\t}\r\n\r\n\t\t// load property file\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.load(ClassLoader.getSystemResourceAsStream(file));\r\n\t\t\tSystem.setProperties(props);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t}\r\n\r\n\t}",
"private void loadPropertyFile(InputStream stream) throws IOException{\n\t\tproperties = new Properties();\n\t\tproperties.load(stream);\n\t}",
"private void loadProperties() {\n try (InputStream in = getClass().getClassLoader().getResourceAsStream(PATH_TO_PROPERTIES)) {\n this.prs.load(in);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }",
"void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}",
"public static void loadProperties(Properties p, String fileName)throws IOException {\n ClassLoader classLoader = ClassLoader.getSystemClassLoader();\n URL f = classLoader.getResource(fileName);\n FileInputStream fr = new FileInputStream(new File(fileName));\n p.load(fr);\n fr.close();\n }",
"void load() {\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(propertyFile);\n\t\t\tfinal Properties newProperties = new Properties();\n\t\t\tnewProperties.load(fis);\n\t\t\ttimeLastRead = propertyFile.lastModified();\n\t\t\tproperties = newProperties;\n\t\t\tfis.close();\n\t\t} catch (final Exception e) {\n\t\t\tlogger.info(\"Property file \" + propertyFile + \" \" + e.getMessage());\n\t\t}\n\t}",
"private Properties loadPropertiesFile(String file) {\n\t\tFileInputStream fis = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tif (fis != null) {\n\t\t\t\tProperties props = new Properties();\n\t\t\t\tprops.load(fis);\n\t\t\t\treturn props;\n\t\t\t}\n\t\t\tSystem.err.println(\"Cannot load \" + file\n\t\t\t\t\t+ \" , file input stream object is null\");\n\t\t} catch (java.io.IOException ioe) {\n\t\t\tSystem.err.println(\"Cannot load \" + file + \", error reading file\");\n\t\t}\n\t\treturn null;\n\t}",
"public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }",
"private Properties loadProperties(String propertyFile) {\n\t\toAuthProperties = new Properties();\n\t\ttry {\n\t\t\toAuthProperties.load(App.class.getResourceAsStream(propertyFile));\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to read \" + propertyFile\n\t\t\t\t\t+ \" configuration. Make sure you have a properly formatted \" + propertyFile + \" file.\");\n\t\t\treturn null;\n\t\t}\n\t\treturn oAuthProperties;\n\t}",
"private void initProperties()\r\n {\r\n try\r\n {\r\n properties.load(new FileInputStream(propertiesURL));\r\n }\r\n catch (IOException ex)\r\n {\r\n log.log(DEBUG,\"\"+ex);\r\n } \r\n }",
"private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }",
"private Properties loadProperties(String fileName){\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tInputStream input = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tinput = new FileInputStream(fileName);\r\n\t\t\tprop.load(input);\r\n\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (input != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn prop;\t \r\n\t}",
"public final void loadPropertiesFromFile(final String fileName)\n {\n\n Properties tempProp = PropertyLoader.loadProperties(fileName);\n fProp.putAll(tempProp);\n\n }",
"@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }",
"public Properties loadPropertiesFromFile(String path) {\n\n\t\ttry {\n\t\t\tInputStream fileInputStream = PropertyUtil.class\n\t\t\t\t\t.getResourceAsStream(path);\n\t\t\tproperties.load(fileInputStream);\n\t\t\tfileInputStream.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn properties;\n\t}",
"void loadProperties(final String fileName){\n mProperties = new Properties();\n try {\n InputStreamReader stream = new InputStreamReader(CoreLib.getAppContext().getResources().\n getAssets().open(fileName));\n mProperties.load(stream);\n }catch (IOException e){\n throw new Error(\"Make sure you have both properties file(\" + fileName + \")present under assets\");\n }\n }",
"private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1);\n } catch (IOException e2) {\n logger.error(\"Error while reading External properties file!\", e2);\n System.exit(1);\n }\n }",
"@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}",
"public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}",
"public static void loadProps(InputStream in) {\r\n\t\ttry {\r\n properties.load(in);\r\n } catch (IOException e) {\r\n System.out.println( \"No config.properties was found.\");\r\n e.printStackTrace();\r\n }\r\n\t}",
"public static Properties loadProperties(final String filename) throws IllegalArgumentException {\n final File file = new File(filename);\n final Properties properties = new Properties();\n try {\n properties.load(new FileInputStream(file));\n } catch (FileNotFoundException ex) {\n throw new IllegalArgumentException(\"File not found: \" + file, ex);\n } catch (IOException ex) {\n throw new IllegalArgumentException(\"Unable to load properties: \" + file, ex);\n }\n return properties;\n }",
"public void load(File file)\n throws FileNotFoundException, IOException, MissingRequiredTestPropertyException \n {\n\t initializeTestProperties(new BufferedInputStream(new FileInputStream(file)));\n\t}",
"public void load(File configFile) {\n try {\n this.getProperties().load(new FileInputStream(configFile));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static Properties loadProperties(String file) throws Exception {\n Properties props = new Properties();\n props.load(new FileInputStream(file));\n\n return props;\n }",
"public void loadObject() {\n\n obj = new Properties();\n try {\n obj.load(new FileInputStream(\"./src/test/resources/config.properties\"));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public void load(String fileName)\n throws FileNotFoundException, IOException, MissingRequiredTestPropertyException\n {\n\t\tinitializeTestProperties(new BufferedInputStream(new FileInputStream(fileName)));\n\t}",
"protected Properties loadClientProperties(String filename) throws Exception {\n InputStream is = null;\n try {\n Properties props = new Properties();\n\n // Open the properties file specified by the user.\n File f = new File(filename);\n if (f.exists()) {\n is = new FileInputStream(f);\n } else {\n throw new FileNotFoundException(\"Properties file '\" + filename + \"' not found.\");\n }\n\n // Load the properties.\n props.load(is);\n is.close();\n\n return props;\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }",
"public static void loadProperties() {\n properties = new Properties();\n try {\n File f = new File(\"system.properties\");\n if (!(f.exists())) {\n OutputStream out = new FileOutputStream(f);\n }\n InputStream is = new FileInputStream(f);\n properties.load(is);\n lastDir = getLastDir();\n if (lastDir == null) {\n lastDir = \"~\";\n setLastDir(lastDir);\n }\n properties.setProperty(\"lastdir\", lastDir);\n\n // Try loading properties from the file (if found)\n properties.load(is);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static Properties loadProperties(String filePath)\n {\n \tProperties listProperties = new Properties();\n\t\t//System.out.println(filePath);\n\n\t\tFileInputStream file = null;\n\t\ttry \n\t\t{\n\t\t\tfile = new FileInputStream(filePath);\n\t\t\t\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry \n\t\t{\n\t\t\t listProperties.load(file);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listProperties;\n }",
"public abstract void load(Properties props, InputStream in)\n throws IOException, InvalidPropertiesFormatException;",
"public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}",
"public void loadObjectData(String datafile) {\n\t\tProperties databaseAddData = new Properties();\n\t\ttry {\n\t\t\tdatabaseAddData.load(new FileInputStream(langFile));\n\t\t} catch (Exception e) {}\n\t\t//put values from the properties file into hashmap\n\t\tthis.properties.put(\"PROPERTY\", databaseAddData.getProperty(\"PROPERTY\"));\n\t}",
"private static ConfigImpl loadProperties(Path path) throws IOException {\n final ConfigImpl ret;\n try (FileInputStream stream = new FileInputStream(path.toFile())) {\n try (InputStreamReader reader = new InputStreamReader(stream, UTF_8)) {\n ret = loadProperties(reader);\n }\n }\n return ret;\n }",
"default void load(Map<String, Object> properties)\r\n {\r\n }",
"private void loadProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Loading Properties from {}\", path.toString());\n try {\n FileInputStream fis = new FileInputStream(getSamplePropertiesPath().toFile());\n Properties properties = new Properties();\n properties.load(fis);\n\n String privateKey = properties.getProperty(PRIVATE_KEY);\n this.credentials = Credentials.create(privateKey);\n this.contract1Address = properties.getProperty(CONTRACT1_ADDRESS);\n this.contract2Address = properties.getProperty(CONTRACT2_ADDRESS);\n this.contract3Address = properties.getProperty(CONTRACT3_ADDRESS);\n this.contract4Address = properties.getProperty(CONTRACT4_ADDRESS);\n this.contract5Address = properties.getProperty(CONTRACT5_ADDRESS);\n this.contract6Address = properties.getProperty(CONTRACT6_ADDRESS);\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }",
"@Test\r\n\t\tpublic static void Properties() \r\n\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\tprop = new Properties();\r\n\t\t\t\tfile = new File(\"C:\\\\Users\\\\vardhan\\\\eclipse-workspace\\\\com.makemytrip\\\\prop.properties\");\r\n\t\t\t\tfilereader = new FileReader(file);\r\n\t\t\t\tprop.load(filereader);\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t\r\n\t\t\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}",
"protected SftpPropertyLoad(final String bundleFileName) {\n\n\t\tthis.bundleFileName = bundleFileName;\n\n\t\tfinal Resource res = new ClassPathResource(StringUtil.replace(bundleFileName, \".\", \"/\") + \".properties\");\n\t\tfinal EncodedResource encodedResource = new EncodedResource(res, \"UTF-8\");\n\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(encodedResource);\n\t\t} catch (IOException e) {\n\t\t\tthrow new WebRuntimeException(e);\n\t\t}\n\t}",
"protected static Properties loadFileAsProperty(File file) throws FileNotFoundException, IOException {\r\n\t\tProperties result = new Properties();\r\n\t\tresult.load(new FileReader(file));\r\n\t\treturn result;\r\n\t}",
"public static Properties load(String propsFile)\n {\n \tProperties props = new Properties();\n FileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(propsFile));\n\t\t\tprops.load(fis); \n\t\t fis.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n return props;\n }",
"@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }",
"public ConfigFileReader(){\r\n\t\tBufferedReader reader;\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\tproperties = new Properties();\r\n\t\t\ttry {\r\n\t\t\t\tproperties.load(reader);\r\n\t\t\t\treader.close();\r\n\t\t\t}catch(IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}catch(FileNotFoundException ex) {\r\n\t\t\tSystem.out.println(\"Configuration.properties not found at \"+propertyFilePath);\r\n\t\t}\r\n\t}",
"void loadProperties(File propertiesFile) throws IOException\n {\n // Load the properties.\n LOGGER.info(\"Loading properties from \\\"{}\\\" file...\", propertiesFile);\n try (InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream(propertiesFile), \"UTF-8\"))\n {\n properties.load(inputStreamReader);\n }\n\n // Log all properties except for password.\n StringBuilder propertiesStringBuilder = new StringBuilder();\n for (Object key : properties.keySet())\n {\n String propertyName = key.toString();\n propertiesStringBuilder.append(propertyName).append('=')\n .append(HERD_PASSWORD_PROPERTY.equalsIgnoreCase(propertyName) ? \"***\" : properties.getProperty(propertyName)).append('\\n');\n }\n LOGGER.info(\"Successfully loaded properties:%n{}\", propertiesStringBuilder.toString());\n }",
"void setPropertiesFile(File file);",
"public static void loadPropertyFile() throws IOException {\n\t\tPropertyFileReader.property = new Properties();\n\t\tPropertyFileReader.targetPlatform = System.getProperty(\"targetPlatform\");\n\t\tPropertyFileReader.targetDevice = System.getProperty(\"targetDevice\");\n\n\t\t// Load the property file based on platform and device\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"android\")) {\n\t\t\tfinal File file = new File(String.valueOf(System.getProperty(\"user.dir\"))\n\t\t\t\t\t+ \"\\\\src\\\\main\\\\resources\\\\testdata\\\\\" + PropertyFileReader.targetPlatform + \"\\\\\"\n\t\t\t\t\t+ PropertyFileReader.targetDevice + \"\\\\capabilities.properties\");\n\t\t\tPropertyFileReader.filereader = new FileReader(file);\n\t\t\tPropertyFileReader.property.load(PropertyFileReader.filereader);\n\t\t}\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"iOS\")) {\n\t\t\t// To do in case of iOS\n\t\t}\n\t}",
"public ConfigFileReader(){\r\n\t\t \r\n\t\t BufferedReader reader;\r\n\t\t try {\r\n\t\t\t reader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\t properties = new Properties();\r\n\t\t\t try {\r\n\t\t\t\t properties.load(reader);\r\n\t\t\t\t reader.close();\r\n\t\t\t } catch (IOException e) {\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t throw new RuntimeException(\"configuration.properties not found at \" + propertyFilePath);\r\n\t \t } \r\n\t }",
"public static void loadConfigurationFile() throws IOException {\n\t\tFileInputStream fis= new FileInputStream(\"config.properties\");\n\t\tprop.load(fis);\n\t}",
"public static Properties loadProperties(String path) throws IOException {\n BufferedReader br = IOTools.asReader(path);\n Properties prop = new Properties();\n prop.load(br);\n br.close();\n return prop;\n }",
"public ReadProperties(String filename) {\n\n\t\ttry {\n\t\t\tInputStream in = new FileInputStream(filename);\n\n\t\t\tprop = new Properties();\n\n\t\t\tprop.load(in);\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static Properties getProperties(String filename)\r\n/* 13: */ {\r\n/* 14:26 */ Properties properties = new Properties();\r\n/* 15: */ try\r\n/* 16: */ {\r\n/* 17:29 */ properties.load(new FileInputStream(System.getProperty(\"user.dir\") + \"/properties/\" + filename));\r\n/* 18: */ }\r\n/* 19: */ catch (IOException ex)\r\n/* 20: */ {\r\n/* 21:31 */ logger.error(\"Can't load properties file: \" + filename, ex);\r\n/* 22: */ }\r\n/* 23:33 */ return properties;\r\n/* 24: */ }",
"private void loadProperties() {\n\t\tInputStream propsFile;\n\t\tProperties tempProp = new Properties();\n\n\t\ttry {\n\t\t\t//propsFile = new FileInputStream(\"plugins\\\\balloonplugin\\\\BalloonSegmentation.properties\");\n\t\t\tpropsFile = getClass().getResourceAsStream(\"/BalloonSegmentation.properties\");\n\t\t\ttempProp.load(propsFile);\n\t\t\tpropsFile.close();\n\n\t\t\t// load properties\n\t\t\tinit_channel = Integer.parseInt(tempProp.getProperty(\"init_channel\"));\t\t\t\t// initial channel selected for segmenting the cell architecture 1 - red, 2 - green, 3 - blue\n\t\t\tinit_max_pixel = Integer.parseInt(tempProp.getProperty(\"init_max_pixel\"));\t\t\t// initial max pixel intensity used for finding the doundaries of the colony of cells\n\t\t\tinit_HL = Integer.parseInt(tempProp.getProperty(\"init_HL\"));\t\t\t\t\t\t// initial H*L factor used finding seeds in the population\n\t\t\tinit_min_I = Integer.parseInt(tempProp.getProperty(\"init_min_I\"));\t\t\t\t\t// initial pixel intensity when balloon algorithm starts\n\t\t\tinit_max_I = Integer.parseInt(tempProp.getProperty(\"init_max_I\"));\t\t\t\t\t// final pixel intensity when balloon algorithm stops\n\n\t\t}\n\t\tcatch (IOException ioe) {\n\t\t\tIJ.error(\"I/O Exception: cannot read .properties file\");\n\t\t}\n\t}",
"private static Properties readPropertiesFile(String fileName) throws IOException\n {\n LOG.log(Level.FINE, \"Searching for {0} file...\", fileName);\n try (final InputStream stream = SmartProperties.class.getClassLoader().getResourceAsStream(fileName))\n {\n Properties properties = new Properties();\n properties.load(stream);\n LOG.log(Level.FINE, \"{0} loaded successfully\", fileName);\n return properties;\n }\n }",
"public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public Properties loadProps(String propFile) {\n Properties props = new Properties();\n BufferedReader f;\n try {\n f = new BufferedReader(new FileReader(propFile));\n } catch (FileNotFoundException e) {\n return null;\n }\n try {\n props.load(f);\n } catch (IOException e) {\n System.err.println(\"IO EXception in loadProps in EvalModels class\");\n }\n System.out.println(props.toString());\n return props;\n }",
"File getPropertiesFile();",
"private static Properties getProperties(final String filename) throws IOException, FileNotFoundException {\r\n \r\n final Properties result = new Properties();\r\n final InputStream propertiesStream = getInputStream(filename);\r\n result.load(propertiesStream);\r\n return result;\r\n }",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public void loadConfigProperties() {\n Properties properties = new Properties();\n InputStream inputStream = null;\n try {\n String configFile = Constant.CONFIGURATION_PROPERTIES;\n inputStream = RepositoryParser.class.getClassLoader().getResourceAsStream(configFile);\n // Loading the property file\n properties.load(inputStream);\n } catch (FileNotFoundException e) {\n Log.error(\"Property file was not found\");\n } catch (IOException e) {\n Log.error(\"The key was not found in the property file\");\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e) {\n Log.error(\"The property file was not closed\");\n }\n }\n }\n\n // Getting the corresponding value of the key in the property file\n configPropertiesMap = new HashMap<String, String>((Map) properties);\n }",
"public void loadGame(){\n\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n System.out.println(\"--- LOADING GAMEFILE PROPERTIES ---\");\n\n int highestReachedLevel = getHighestLevelFromProperties();\n GameModel.getInstance().setHighestCompletedLevel(highestReachedLevel);\n\n GameModel.getInstance().setfirstTimePlay(false);\n\n //TODO: Save properties to gameModel\n\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n GameModel.getInstance().setfirstTimePlay(true);\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n\n }",
"public HashMap<String, String> readPropertyFile(String propertyFilePath) throws Exception {\n File propertyFile = null;\n InputStream inputStream = null;\n Properties properties = null;\n HashMap<String, String> propertyMap = new HashMap<String, String>();\n try {\n\n //creating file object\n propertyFile = new File(propertyFilePath);\n\n //check if property file exists on hard drive\n if (propertyFile.exists()) {\n inputStream = new FileInputStream(propertyFile);\n // check if the file exists in web environment or relative to class path\n } else {\n inputStream = getClass().getClassLoader().getResourceAsStream(propertyFilePath);\n }\n\n if (inputStream == null) {\n throw new Exception(\"FILE NOT FOUND : inputStream = null : \" + propertyFilePath);\n }\n\n properties = new Properties();\n properties.load(inputStream);\n Enumeration enuKeys = properties.keys();\n while (enuKeys.hasMoreElements()) {\n\n String key = (String) enuKeys.nextElement();\n String value = properties.getProperty(key);\n\n //System.out.print(\"key = \"+key + \" : value = \"+value);\n propertyMap.put(key, value);\n }\n if (propertyMap == null) {\n throw new Exception(\"readPropertyFile : propertyMap = null\");\n }\n\n return propertyMap;\n } catch (Exception e) {\n throw new Exception(\"readPropertyFile : \" + e.toString());\n } finally {\n try {\n inputStream.close();\n } catch (Exception e) {\n }\n try {\n properties = null;\n } catch (Exception e) {\n }\n }\n }",
"PropertiesTask setProperties( File propertiesFile );",
"private void LoadConfigFromClasspath() throws IOException \n {\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(\"lrs.properties\");\n config.load(is);\n is.close();\n\t}",
"public static Properties loadProperties(@NonNull File file) throws IOException {\n FileInputStream fileInputStream = new FileInputStream(file);\n Properties properties = new Properties();\n properties.load(fileInputStream);\n return properties;\n }",
"private void loadProperties() {\n\t\t\n\t\tString fldr = env.getProperty(\"response.folder\");\n\t\tthis.repo.setRootFolder( new File(fldr));;\n\t\t\n\t\tint nthConfigItem = 1;\n\t\twhile(true) {\n\t\t\tString seq = (\"\"+nthConfigItem++).trim();\n\t\t\t\n\t\t\tString xpathPropName = \"request.\" + seq + \".xpath\";\n\t\t\tString responseTextFilePropName = \"request.\" + seq + \".response.file\";\n\t\t\tString xpath = env.getProperty(xpathPropName);\n\t\t\tString responseTextFileName = env.getProperty(responseTextFilePropName);\n\t\t\tif (xpath!=null && !\"\".equals(xpath.trim())\n\t\t\t\t&& responseTextFileName!=null & !\"\".equals(responseTextFileName.trim())\t) {\n\t\t\t\t\n\t\t\t\trepo.addFile(xpath, responseTextFileName);\n\t\t\t\tController.logAlways(\"Loading config item [\" + seq + \"] xpath: [\" + rpad(xpath, 60) + \"] data file: [\" + rpad(responseTextFileName,25) + \"]\" );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tController.logAlways(\"End of littleMock initialization. No more properties from application.properties will be loaded because either [\" + xpathPropName + \"] or [\" + responseTextFilePropName + \"] was not found in application.properties.\");\n\t\t\t\t//parameters in application.properties must be\n\t\t\t\t//in sequential order, starting at 1.\n\t\t\t\t//When we discover the first missing one, stop looking for more.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\thumanReadableConfig = PlaybackRepository.SINGLETON.humanReadable();\n\t}",
"public void refresh() {\n try (InputStream stream = new FileInputStream(file)) {\n Map<String, String> properties = new HashMap<>();\n Properties props = new Properties();\n props.load(stream);\n for (String key : props.stringPropertyNames()) {\n properties.put(key, props.getProperty(key));\n }\n LOG.log(Level.FINEST, \"Loaded properties from \" + file);\n this.properties = properties;\n } catch (IOException e) {\n LOG.log(Level.FINEST, \"Cannot load properties from \" + file, e);\n }\n }",
"public HistogramConfiguration loadProperties(String propertyFileName)\n {\n HistogramConfiguration histConfig = HistogramConfiguration.getInstance();\n\n try(FileInputStream inputStream = new FileInputStream(propertyFileName))\n {\n properties.load(inputStream);\n\n histConfig.setShouldIgnoreWhiteSpaces(loadShouldIgnoreWhiteSpace());\n histConfig.setIgnoreCharacters(loadIgnoredCharactersProperties());\n\n }catch (IOException e)\n {\n e.printStackTrace();\n }\n\n return histConfig;\n }",
"@Override\n public Map<String, String> readProperty(String fileName) {\n Map<String, String> result = new HashMap<>();\n Properties prop = new Properties();\n InputStream input;\n try {\n input = FullPropertyReader.class.getClassLoader().getResourceAsStream(fileName);\n prop.load(input);\n Set<String> strings = prop.stringPropertyNames();\n for (String string : strings) {\n result.put(string, prop.getProperty(string));\n }\n } catch (IOException e) {\n throw new PropertyReaderException(\"Trouble in FullPropertyReader\", e);\n }\n return result;\n }",
"private void loadPropertiesFromFile(String propertiesFileName) {\t\t\n\t\tif ( (propertiesFileName != null) && !(propertiesFileName.isEmpty()) ) {\n\t\t\tpropertiesFileName = config_file_name;\n\t \t\ttry {\n\t \t\t\t// FileInputStream lFis = new FileInputStream(config_file_name);\n\t \t\t\t// FileInputStream lFis = getServletContext().getResourceAsStream(config_file_name);\n\t \t\t\tInputStream lFis = Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\");\n\t \t\t\tif (lFis != null) {\n\t\t \t\t\tProperties lConnectionProps = new Properties();\n\t\t \t\t\tlConnectionProps.load(lFis);\n\t\t \t\t\tlFis.close();\n\t\t \t\t\tlLogger.info(DEBUG_PREFIX + \"Using configuration file \" + config_file_name);\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceNname\") != null) ssosvc_name = lConnectionProps.getProperty(\"SsoServiceNname\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceLabel\") != null) ssosvc_label = lConnectionProps.getProperty(\"SsoServiceLabel\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServicePlan\") != null) ssosvc_plan = lConnectionProps.getProperty(\"SsoServicePlan\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_clientId = lConnectionProps.getProperty(\"SsoServiceCredential_clientId\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_secret = lConnectionProps.getProperty(\"SsoServiceCredential_secret\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_serverSupportedScope = lConnectionProps.getProperty(\"SsoServiceCredential_serverSupportedScope\");\n\t\t\tlLogger.info(DEBUG_PREFIX + \"CONFIG FILE parsing, found Scopes = \" + ssosvc_cred_serverSupportedScope + \" for service name = \" + ssosvc_name);\t\n\t\t\t Pattern seperators = Pattern.compile(\".*\\\\[ *(.*) *\\\\].*\");\n\t\t\t if (seperators != null) {\n\t\t\t \tMatcher scopeMatcher = seperators.matcher(ssosvc_cred_serverSupportedScope);\n\t\t\t\t scopeMatcher.find();\n\t\t\t\t ssosvc_cred_serverSupportedScope = scopeMatcher.group(1); // only get the first occurrence\n\t\t\t\t lLogger.info(DEBUG_PREFIX + \"CONFIG FILE parsing, retrieved first Scope = \" + ssosvc_cred_serverSupportedScope);\n\t\t\t }\n\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_issuerIdentifier = lConnectionProps.getProperty(\"SsoServiceCredential_issuerIdentifier\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_tokenEndpointUrl = lConnectionProps.getProperty(\"SsoServiceCredential_tokenEndpointUrl\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_authorizationEndpointUrl = lConnectionProps.getProperty(\"SsoServiceCredential_authorizationEndpointUrl\");\n\t\n\t\t \t\t\tlLogger.info(DEBUG_PREFIX + \"Using config for SSO Service with name \" + ssosvc_name);\n\t \t\t\t} else {\n\t \t\t\t\tlLogger.severe(DEBUG_PREFIX + \"Configuration file not found! Using default settings.\");\n\t \t\t\t}\n\n\t \t\t} catch (FileNotFoundException e) {\n\t \t\t\tlLogger.severe(DEBUG_PREFIX + \"Configuration file = \" + config_file_name + \" not found! Using default settings.\");\n\t \t\t\te.printStackTrace();\n\t \t\t} catch (IOException e) {\n\t \t\t\tlLogger.severe(\"SF-DEBUG: Configuration file = \" + config_file_name + \" not readable! Using default settings.\");\n\t \t\t\te.printStackTrace();\n\t \t\t}\n\t \t} else {\n\t \t\tlLogger.info(DEBUG_PREFIX + \"Configuration file = \" + config_file_name + \" not found! Using default settings.\");\n\t \t}\n\t}",
"public static void loadProperties()\n {\n Properties props = new Properties();\n try {\n props.load( new BufferedInputStream( ClassLoader.getSystemResourceAsStream(\"bench.properties\") ) );\n } catch (IOException ioe)\n {\n logger.log(Level.SEVERE, ioe.getMessage());\n }\n props.putAll(System.getProperties()); //overwrite\n System.getProperties().putAll(props);\n }",
"public static Properties loadResource(String propertyName) throws IOException {\n Properties properties = new Properties();\n InputStream in = Configuration.class.getClassLoader().getResourceAsStream(propertyName);\n try {\n if (null == in) {\n String path = propertyName.replace('/', separatorChar);\n path = path.replace('\\\\', separatorChar);\n if (!path.startsWith(File.separator)) {\n path = separatorChar + path;\n }\n File configurationFile = new File(ConfigurationHolder.getHome() + separatorChar\n + \"properties\" + path);\n if (configurationFile.exists()) {\n in = new FileInputStream(configurationFile);\n }\n }\n if (null != in) {\n properties.load(in);\n }\n } finally {\n IOUtils.closeQuietly(in);\n }\n return properties;\n }",
"private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }",
"public ConfigFile(String fileName, String encoding) {\n InputStream inputStream = null;\n try {\n inputStream = getClassLoader().getResourceAsStream(fileName); // properties.load(ConfigFile.class.getResourceAsStream(fileName));\n if (inputStream == null) {\n throw new IllegalArgumentException(\"Properties file not found in classpath: \" + fileName);\n }\n\n properties = new Properties();\n if (fileName.endsWith(\"yml\")){\n isYml = true;\n properties= new Yaml().loadAs(new InputStreamReader(inputStream, encoding),Properties.class);\n }else\n properties.load(new InputStreamReader(inputStream, encoding));\n } catch (IOException e) {\n throw new RuntimeException(\"Error loading properties file.\", e);\n } finally {\n if (inputStream != null) try {\n inputStream.close();\n } catch (IOException e) {\n LogKit.error(e.getMessage(), e);\n }\n }\n }",
"public static String loadProperty(String key) {\n Properties prop = new Properties();\n InputStream is;\n\n try {\n is = new FileInputStream(\"./config.properties\");\n prop.load(is);\n } catch (IOException e) {\n System.out.println(\"Error al cargar el archivo\");\n }\n\n return prop.getProperty(key);\n }",
"public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public final Properties readPropertiesFromFile(final String fileName)\n {\n\n if (!StringUtils.isEmpty(fileName))\n {\n return PropertyLoader.loadProperties(fileName);\n } else\n {\n return null;\n } // end if..else\n\n }",
"public static Properties loadProperties(String filePath) throws MnoConfigurationException {\n\t\tProperties properties = new Properties();\n\t\tInputStream input = getInputStreamFromClassPathOrFile(filePath);\n\t\ttry {\n\t\t\tproperties.load(input);\n\t\t} catch (IOException e) {\n\t\t\tthrow new MnoConfigurationException(\"Could not load properties file: \" + filePath, e);\n\t\t}\n\t\treturn properties;\n\t}",
"public ReadConfigFile (){\n\t\ttry {\n\t\t\tinput = ReadConfigFile.class.getClassLoader().getResourceAsStream(Constant.CONFIG_PROPERTIES_DIRECTORY);\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}",
"public final Properties init() throws FileNotFoundException, IOException{\n /*\n Your properties file must be in the deployed .war file in WEB-INF/classes/tokens. It is there automatically\n if you have it in Source Packages/java/tokens when you build. That is how this will read it in without defining a root location\n https://stackoverflow.com/questions/2395737/java-relative-path-of-a-file-in-a-java-web-application\n */\n String fileLoc =TinyTokenManager.class.getResource(Constant.PROPERTIES_FILE_NAME).toString();\n fileLoc = fileLoc.replace(\"file:\", \"\");\n setFileLocation(fileLoc);\n InputStream input = new FileInputStream(propFileLocation);\n props.load(input);\n input.close();\n currentAccessToken = props.getProperty(\"access_token\");\n currentRefreshToken = props.getProperty(\"refresh_token\");\n currentS3AccessID = props.getProperty(\"s3_access_id\");\n currentS3Secret = props.getProperty(\"s3_secret\");\n currentS3BucketName = props.getProperty(\"s3_bucket_name\");\n currentS3Region = Region.US_WEST_2;\n apiSetting = props.getProperty(\"open_api_cors\");\n return props;\n }",
"private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }",
"private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"/bmo-data.tsv\");\n properties.setProperty(BMO_URI_KEY,\n \"http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt\");\n\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propertiesFilename);\n properties.load(stream);\n System.out.println(\"Loading data input client properties from: \" + propertiesFilename);\n }\n catch (IOException e) {\n System.out.println(propertiesFilename\n + \" not found. Using default data input client properties.\");\n throw e;\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n trimProperties(properties);\n }",
"public static Properties readProperties(String filePath){\n try {\n FileInputStream fileInputStream= new FileInputStream(filePath);\n properties=new Properties();\n properties.load(fileInputStream);\n fileInputStream.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return properties;\n }",
"public static void loadProperties() {\r\n\t\tif (!isLoaded) {\r\n\t\t\tnew BCProperties() ;\r\n\t\t\tisLoaded = true ;\r\n\t\t}\r\n\t}",
"private static synchronized void initialize(String prop) {\n\t\tFileInputStream is=null;\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tis = new FileInputStream(prop);\n\t\t\tif (is == null) {\n\t\t\t System.out.println(\"The prop is null.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tproperties.load(is);\n\t\t} \n\t\tcatch (IOException e) {\n\t\t System.out.println(\"properties loading fails.\");\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\tfinally{\n\t\t\t\ttry{\n\t\t\t\t\tif(is!=null)\n\t\t\t\t\t\tis.close();\n\t\t\t\t}\n\t\t\t\tcatch(Exception ex){\n\t\t\t\t System.out.println(\"properties loading fails for runtime exception.\");\n\t\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t}\n\t\t}\n\t}",
"private static void readCitProperties(String fileName) {\n/* */ try {\n/* 91 */ ResourceLocation e = new ResourceLocation(fileName);\n/* 92 */ InputStream in = Config.getResourceStream(e);\n/* */ \n/* 94 */ if (in == null) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 99 */ Config.dbg(\"CustomItems: Loading \" + fileName);\n/* 100 */ Properties props = new Properties();\n/* 101 */ props.load(in);\n/* 102 */ in.close();\n/* 103 */ useGlint = Config.parseBoolean(props.getProperty(\"useGlint\"), true);\n/* */ }\n/* 105 */ catch (FileNotFoundException var4) {\n/* */ \n/* */ return;\n/* */ }\n/* 109 */ catch (IOException var5) {\n/* */ \n/* 111 */ var5.printStackTrace();\n/* */ } \n/* */ }",
"public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}",
"private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"private boolean load(Properties properties) {\n\t\tlog.info(\"Looking for config file api.properties\");\n\n\t try {\n\t // properties.load(new FileReader(cfg));\n\t\t \tInputStream is = getClass().getClassLoader().getResourceAsStream(\"api.properties\");\n\t\t \tif(is != null && is.available() > 0) {\n\t\t properties.load(is);\n\t\t return true;\n\t\t \t}\n\t } catch (IOException e) {\n\t \t\tthrow new IllegalStateException(\"Could not load file \", e);\n\t }\n\n\t\tlog.warn(\"Could not find api.properties\");\n\t\treturn false;\n\t}",
"public static Properties file2Properties(File file) {\r\n Properties props = new Properties();\r\n FileInputStream stream = null;\r\n InputStreamReader streamReader = null;\r\n\r\n\r\n try {\r\n stream = new FileInputStream(file);\r\n streamReader = new InputStreamReader(stream, charSet);\r\n props.load(streamReader);\r\n } catch (IOException ex) {\r\n Logger.getLogger(RunProcessor.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return props;\r\n }",
"private void loadProperties(){\n\t\tProperties properties = new Properties();\n\t\ttry{\n\t\t\tlog.info(\"-------------------------------------------------------------------\");\n\t\t\tlog.info(\"Updating config settings\");\n\n\t\t\tproperties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\"));\n\t\t\tservletContext.setAttribute(\"properties\", properties);\n\t\t\t\n\t\t\tthis.cswURL=(String)properties.get(\"cswURL\");\n\t\t\tthis.proxyHost=(String)properties.get(\"proxyHost\");\n\t\t\tif(!this.proxyHost.equals(\"\") && this.proxyHost != null){\n\t\t\t\tthis.proxyPort=Integer.parseInt((String)properties.get(\"proxyPort\"));\n\t\t\t}\n\t\t\tthis.feedURL=(String)properties.get(\"feedURL\");\n\t\t\tthis.servicePath=(String)properties.get(\"servicePath\");\n\t\t\tthis.dataSetPath=(String)properties.get(\"dataSetPath\");\n\t\t\tthis.opensearchPath=(String)properties.get(\"opensearchPath\");\n\t\t\tthis.downloadUUIDs=(String)properties.get(\"serviceUUIDs\");\t\n\t\t\tthis.transOpt=(String)properties.get(\"transOpt\");\t\n\t\t\t\n\t\t }catch (Exception e){\n\t\t\t log.error(e.toString(), e.fillInStackTrace());\n\t\t\t System.out.println(\"Error: \" + e.getMessage());\n\t\t }\t\n\t }",
"private Properties loadConfigProperties() {\n \tProperties prop = new Properties();\n \tInputStream in = null;\n \ttry {\n \t\tin = this.getClass().getClassLoader().getResourceAsStream(\"resources/config.properties\");\n \t\tprop.load(in);\n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n \t} finally {\n \t\tif (in != null) {\n \t\t\ttry {\n \t\t\t\tin.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}\n \treturn prop;\n\t}",
"private static void loadPropertiesFromURL(String url, Properties properties) {\n \t\tif(url == null) throw new IllegalArgumentException(\"url cannot be null\");\n \t\tif(properties == null) throw new IllegalArgumentException(\"properties cannot be null\");\n \t\tURL propertiesLocation;\n \t\ttry {\n \t\t\tpropertiesLocation = new URL(url);\n \t\t} catch (MalformedURLException e1) {\n \t\t\tthrow new IllegalArgumentException(\"Could not load property file from url: \"+url, e1);\n \t\t}\n \t\ttry {\n \t\t\tproperties.load(propertiesLocation.openStream());\n \t\t} catch (Exception e) {\n \t\t\tthrow new Error(e);\n \t\t}\n \t}",
"protected abstract void loadProperty(String key, String value);",
"public static Properties loadProperties(@NonNull String path) throws IOException {\n File file = loadFile(path);\n if(file == null){ throw new IOException(\"没有找到文件\"); }\n return ReaderUtils.loadProperties(file);\n }",
"public void load(Map<String, String> props) {\n if (props != null && props.size() > 0) {\n for (String key : props.keySet()) {\n if (isSupported(key)) {\n String suffix = getSuffix(key);\n String value = props.get(key);\n loadProperty(suffix, value);\n }\n }\n }\n }",
"private ConfigProperties parsePropertiesFile(final String propertiesFile) {\n properties = ConfigFactory.getInstance().getConfigPropertiesFromAbsolutePath(propertiesFile);\n return properties;\n }"
] |
[
"0.7925995",
"0.7773492",
"0.7722111",
"0.76807976",
"0.7678702",
"0.7646186",
"0.7555788",
"0.75380623",
"0.75283957",
"0.7518393",
"0.7477665",
"0.7454759",
"0.742565",
"0.7411438",
"0.7384508",
"0.7293903",
"0.72878134",
"0.725391",
"0.7201719",
"0.71834433",
"0.71581304",
"0.7117323",
"0.7072017",
"0.7063777",
"0.7062834",
"0.7053068",
"0.70400006",
"0.69665307",
"0.695991",
"0.6956804",
"0.693489",
"0.6924127",
"0.6919489",
"0.6916735",
"0.6893763",
"0.6878929",
"0.6866419",
"0.68446666",
"0.6830445",
"0.6826947",
"0.68204415",
"0.67894125",
"0.6779565",
"0.6764198",
"0.67630154",
"0.67623526",
"0.6756666",
"0.6741669",
"0.67281884",
"0.67269",
"0.6721137",
"0.6711622",
"0.6704968",
"0.6702293",
"0.6680544",
"0.6650275",
"0.66235805",
"0.6620609",
"0.66190004",
"0.6610526",
"0.660731",
"0.6604308",
"0.657204",
"0.6566764",
"0.6561119",
"0.655392",
"0.65455294",
"0.6543863",
"0.6539983",
"0.6527115",
"0.65264744",
"0.65246356",
"0.6521279",
"0.65094566",
"0.6502588",
"0.6496374",
"0.6487302",
"0.647819",
"0.64416933",
"0.6428561",
"0.64219695",
"0.6399603",
"0.6396632",
"0.63907087",
"0.6389753",
"0.6387374",
"0.63837224",
"0.63753414",
"0.63728356",
"0.63716435",
"0.63579386",
"0.635468",
"0.63499516",
"0.63496304",
"0.6344178",
"0.6342976",
"0.63288355",
"0.6328671",
"0.63278025",
"0.6324254"
] |
0.6351738
|
92
|
counting the number of player by reading each line of the inputfile
|
public static int numberofplayers (String filename) throws IOException
{
int countplayer = 0;
LineNumberReader L1= new LineNumberReader(new FileReader(filename));// reading the lines by using line reader
while ((L1.readLine())!=null) {}; // reading the line while its not null
countplayer = L1.getLineNumber(); // number of lines equals the number of player
L1.close();
return countplayer;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static int countLines(String inputFileName) {\n int count = 0;\n Path path = Paths.get(inputFileName);\n try {\n Scanner sc = new Scanner(path);\n while (sc.hasNextLine()) {\n sc.nextLine();\n count++;\n }\n sc.close();\n }\n catch(FileNotFoundException e) {\n System.out.println(\"File Error\");\n e.printStackTrace();\n }\n catch(IOException e) {\n System.out.println(\"File Error\");\n e.printStackTrace();\n }\n return count;\n }",
"public static int readScore() {\n try {\n Scanner diskScanner = new Scanner(new File(\"input.txt\"));\n while (diskScanner.hasNextLine()) {\n System.out.println(diskScanner.nextLine());\n }\n diskScanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return 0;\n }",
"private int lineCount() throws IOException\n {\n //This integer will hold the amount of lines\n int lines = 0;\n\n //Create a temporary scanner to iterate through the map file\n Scanner lineCounter = new Scanner(new File(mapFile));\n\n //Iterate through the map file and increment the counter per each line\n while(lineCounter.hasNextLine())\n {\n lineCounter.nextLine();\n lines++;\n //System.out.println(\"I am at line\" + lines);\n }\n \n //Close lineCounter\n lineCounter.close();\n\n //Spit out the amount of lines\n return lines;\n }",
"public static int getSize(){\n Scanner input;\n \n \n File f = new File(fName);\n \n \n int size = 0;\n \n try{\n input = new Scanner(f);\n input.nextLine();\n \n while(input.hasNextLine()){\n input.nextLine();\n size++;\n \n }\n input.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n return size;\n}",
"public static int countLines(Scanner countFractions){\n try{\n countFractions = new Scanner (new FileInputStream(\"fractions.txt\"));\n }\n catch(FileNotFoundException e){\n System.out.println(\"File not found\");\n }\n int count = 0;\n while(countFractions.hasNextLine()){\n count++;\n countFractions.nextLine();\n }\n countFractions.close();\n return count;\n }",
"private void countCharactersInFile() {\n\t\ttry (BufferedReader reader = Files.newBufferedReader(sourceFile, CHARSET)) {\n\t\t\tfinal char[] buffer = new char[8192];\n\t\t\tint nb = -1;\n\t\t\twhile (reader.ready()) {\n\t\t\t\tnb = reader.read(buffer);\n\t\t\t\tfor (int i = 0; i < nb; i++) {\n\t\t\t\t\tcharacterCount[buffer[i]]++;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (final IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}",
"public static int dataNum(File file) {\n int lineCount = 0; // Start line count at 0\n\n try { // Try catch\n Scanner scan = new Scanner(file); // Scans file that was specified\n while(scan.hasNextLine()) { // While loop runs until there are no more lines to read\n String line = scan.nextLine(); // Line read is stored as a string\n if (Character.isDigit(line.charAt(4))) { // Sees if the 4th character in the line is a integer\n lineCount++; // If it is an integer, it counts that line\n }\n }\n return lineCount; // Returns the line count\n } catch (FileNotFoundException e) { // If error occurs\n System.out.println(\"An error has occured\"); // Print that error has occured\n }\n return 0; // In case there is no lineCount return and to get rid of errors\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 }",
"private static int lines(String file) {\n\t\tint lineCount = 0;\ntry{\n \t\tFileReader fr = new FileReader(file);\n \t\t LineNumberReader lnr = new LineNumberReader(fr);\n \t\t while (lnr.readLine() != null){\n \t\t \tlineCount++;\n \t }\n \t lnr.close(); \n \t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\nreturn lineCount;\n\n\t\t\n\t}",
"int readRepetitionCount();",
"@Override\n\tpublic void run() {\n\n\t\t// count the lines in the file \"listName\"\n\t\tFile fileToRead = new File(listName);\n\t\tScanner fileScanner = null;\n\t\ttry {\n\t\t\tfileScanner = new Scanner(fileToRead);\n\n\t\t\t\n\t\t\twhile (fileScanner.hasNextLine()) {\n\n\t\t\t\tfileScanner.nextLine();\n\t\t\t\tlineCount += 1;\n\n\t\t\t}\n\n\t\t\t//System.out.println(listName + \" : \" + lineCount);\n\t\t\tfileScanner.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (fileScanner != null){\n\t\t\t\tfileScanner.close();\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException {\n\n int n = Integer.parseInt(scanner.nextLine());\n // scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n String s = scanner.nextLine();\n\n long result = substrCount(n, s);\nSystem.out.println(result);\n // bufferedWriter.write(String.valueOf(result));\n // bufferedWriter.newLine();\n\n // bufferedWriter.close();\n\n scanner.close();\n }",
"public static void main(String[] args) throws FileNotFoundException {\nint zbir=0;\n\n\t\tFileReader file=new FileReader(\"maraton.txt\");\n\nArrayList<Integer> lista = new ArrayList<>();\nScanner input=new Scanner(file);\n\nwhile (input.hasNext()) {\n\t\nString ime = input.next();\n\nlista.add(input.nextInt());\n}\nfor(int i=0; i<lista.size();i++) {\n\n\t zbir += lista.get(i);\n\t \n\t\n}\nSystem.out.println(\"Zbir je :\" +zbir);\n\t System.out.println(\"Prosjek je :\" + (zbir/lista.size()));\n\n}",
"public int numCases(){\n\t\tint numberCases = 0;\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n\n while ((! reader.readLine().equals(\"0\"))){\n \tnumberCases++;\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t\t\n\t\treturn numberCases;\n\t}",
"static void experiment1Day1Part1() {\n\n File file = new File(\"src/main/java/weekone/input01.txt\");\n FileReader fileReader = null;\n BufferedReader bufferedReader = null;\n int sum = 0;\n\n try {\n fileReader = new FileReader(file);\n bufferedReader = new BufferedReader(fileReader);\n\n while ((bufferedReader.read() != -1)) {\n String line = bufferedReader.readLine();\n System.out.println(\"\\nThe string is: \" + line);\n int number = Integer.valueOf(line);\n\n System.out.println(\"The number is: \" + number);\n\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (fileReader != null)\n fileReader.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n System.out.println(\"The sum is: \" + sum);\n }",
"public int checkPlayerInPlayers(String username) throws IOException{\r\n\t\tScanner userFinder = new Scanner(new BufferedReader(new FileReader(\"players.txt\")));\r\n\t\tint numberOfPlayers = userFinder.nextInt(); // read in number of players (first line in file);\r\n\t\tint playerId = -1; // should return -1 if numberOfPlayers is 0\r\n\t\tString playerName;\r\n\t\tboolean found = false;\r\n\t\tint iteration = 0;\r\n\t\t\r\n\t\twhile((iteration < numberOfPlayers) && (!found)) {\r\n\t\t\tplayerId = userFinder.nextInt();\r\n\t\t\tplayerName = userFinder.next();\r\n\t\t\tif(playerName.equals(username) == true) {\r\n\t\t\t\tfound = true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\titeration++;\r\n\t\t\t\tplayerId = -1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tuserFinder.close();\r\n\t\treturn playerId;\r\n\t}",
"public static void files(Scanner input) throws FileNotFoundException { \n File inputName = inputVerify(input); // call inputVerify method to get the name of the input file \n\n System.out.print(\"Output file name: \"); // ask user for output file name and save it to outputFile variable \n\t\tString outputName = input.next();\n\n Scanner inputFile = new Scanner(inputName); // reads input file\n\n // creates a new PrintStream object to print to the output file\n PrintStream output = new PrintStream(new File(outputName)); \n\n // while loop that runs as long as the input file has another line\n while (input.hasNextLine()){\n String line = inputFile.nextLine(); // reads entire line\n output.println(line + \":\"); // prints name to file\n String scoreLine = inputFile.nextLine(); // reads next line\n abCount(scoreLine, output); // call abCount method\n }\n }",
"public static long count(String path) throws IOException {\n\n Configuration conf = NutchConfiguration.create();\n FileSystem fs = FileSystem.get(conf);\n\n Path file = new Path(path);\n System.out.println(file);\n\n SequenceFile.Reader reader = new SequenceFile.Reader(conf, SequenceFile.Reader.file(file));\n\n Writable key = (Writable)\n ReflectionUtils.newInstance(reader.getKeyClass(), conf);\n Writable value = (Writable)\n ReflectionUtils.newInstance(reader.getValueClass(), conf);\n\n\n //skip rows\n long i = 0;\n\n\n while(reader.next(key, value)) {\n i += 1;\n }\n return i;\n }",
"public static void countRowCol(){\n\t String line=\"\";\n\t row=0;\n\t col=0;\n try{\n Scanner reader = new Scanner(file);\n while(reader.hasNextLine()){\n row++;\n line=reader.nextLine();\n }\n reader.close();\n }catch (FileNotFoundException e) {\n \t e.printStackTrace();\n }\n String[] seperatedRow = line.split(\"\\t\");\n col=seperatedRow.length;\n\t}",
"public static void main(String[] args) throws IOException {\n File file = new File(\"Noten.txt\");\n FileInputStream fileInputStream = new FileInputStream(file);\n\n int byteRead;\n int count = 0;\n while ((byteRead = fileInputStream.read())!= -1) {\n char[] ch = Character.toChars(byteRead);\n System.out.println(ch[0]);\n count++;\n }\n System.out.println(count);\n fileInputStream.close();\n }",
"public static int getFileCount(String path)\r\n {\r\n int lines=0;\r\n System.out.println(\"Path of the source file is: \"+path);\r\n String raw_output_lines = new String();\r\n try\r\n {\r\n Channel line_channel=Syncer.session.openChannel(\"exec\");\r\n String get_count_cmd=\"wc -l < \"+path;\r\n System.out.println(get_count_cmd);\r\n ((ChannelExec)line_channel).setCommand(get_count_cmd);\r\n line_channel.setInputStream(null);\r\n ((ChannelExec)line_channel).setErrStream(System.err); \r\n in=line_channel.getInputStream();\r\n line_channel.connect(); \r\n while(true)\r\n {\r\n while(in.available()>0)\r\n {\r\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n raw_output_lines = br.readLine();\r\n System.out.println(\"Raw_output: \"+raw_output_lines);\r\n }\r\n if(line_channel.isClosed())\r\n break; \r\n }\r\n in.close();\r\n line_channel.disconnect();\r\n System.out.println(\"Out of loop\");\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Lines (in string): \"+raw_output_lines);\r\n String buffer = new String(raw_output_lines);\r\n System.out.println(\"Out of loop\");\r\n lines = Integer.parseInt(buffer);\r\n System.out.println(\"Out of loop\");\r\n System.out.println(\"lines FOUND: \"+lines);\r\n return lines;\r\n }",
"public static void main(String[] args) throws IOException {\n if(args.length!=2 || args[0].length()!=1 || !isFile(args[1]))\n {\n System.out.println(\"\\nIncorrect Format\");\n System.out.println(\".\\\\Assignment3.java [char] [file]\");\n }\n\n FileReader fr = new FileReader(f); //FileNotFoundException thrown because dealt with when forcing format\n int line;\n int count = 0;\n char c = args[0].charAt(0); //String --> char\n while((line = fr.read()) != -1)\n if((char) line == c) //If char in window == requested value\n count++;\n System.out.println(\"Total number of \" + c + \"\\'s occuring in \" + args[1] + \" = \" + count);\n fr.close();\n }",
"public static void main(String[] args) throws IOException {\n Path path = Paths.get(\"C:\\\\Users\\\\Pixie Waffle\\\\Desktop\\\\adventofcode2020\\\\adventofcode2020\\\\textfiles\\\\day6.txt\");\n String file = Files.readString(path);\n\n //The sum of the counts\n int yesPerGroup = 0;\n\n //Split the paragraphs into groups\n List<String> groups = Arrays.asList(file.split(\"\\n\\n\"));\n\n //The Hashset does not accept duplicates so we can check each group\n //by adding it to the hashset and clearing after we have counted the\n //unique characters\n Set set = new HashSet<>();\n for (int i = 0; i < groups.size(); i++){\n char[] group = groups.get(i).replace(\"\\n\", \"\").toCharArray();\n for (int j = 0; j < group.length; j++){\n if(set.add(group[j])){\n yesPerGroup++;\n }\n }\n set.clear();\n }\n System.out.println(yesPerGroup);\n }",
"private int getSize(File f) {\n int lines = 0;\n try {\n Scanner s = new Scanner(f);\n while (s.hasNextLine()) {\n s.nextLine();\n lines++;\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return lines;\n }",
"public int getTotalNumRows(String inputFile){\n\t\tBufferedReader br = null;\n\t\tint totalNumOfLines = 0;\n\t\ttry {\t\t \t\t\t\n br = new BufferedReader(new FileReader(inputFile));\n \t\t\twhile ( br.readLine() != null) {\n \t\t\t\ttotalNumOfLines++;\t\t\n \t\t\t}\n\t\t} catch (IOException e){\n\t\t\te.printStackTrace();\n\t\t} finally {\n \t\t\tif (br != null) {\n \t\t\t\ttry {\n \t\t\t\t\tbr.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}\t\n\t\tSystem.out.println(\"----------------------------------------------------------------------\");\n\t\tSystem.out.println(\"Total number of rows in \" + inputFile + \" is \" + totalNumOfLines);\n\t\treturn totalNumOfLines;\t\t\n\t}",
"public static int countLines(InputStream filename) throws IOException {\r\n\t\tLineNumberReader reader = new LineNumberReader(new InputStreamReader(\r\n\t\t\t\tfilename));\r\n\t\tint cnt = 0;\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString lineRead = \"\";\r\n\t\twhile ((lineRead = reader.readLine()) != null) {\r\n\t\t}\r\n\r\n\t\tcnt = reader.getLineNumber();\r\n\t\treader.close();\r\n\t\treturn cnt;\r\n\t}",
"public int readPersonsFromFile(int numberOfLines) {\n listOfPatients = new Person[numberOfLines];\n StdIn.readLine();\n for(int i = 0 ; i < numberOfLines ; i ++){\n String data = StdIn.readLine();\n // System.out.println(data);\n String[] dataValues = data.split(\" \");\n for(int j = 0; j < dataValues.length ; j++){\n dataValues[j] = dataValues[j].trim();\n }\n \n Person p = new Person(Integer.parseInt(dataValues[0]),Integer.parseInt(dataValues[1]),Integer.parseInt(dataValues[2]),Integer.parseInt(dataValues[3]),Integer.parseInt(dataValues[4]),Integer.parseInt(dataValues[5]),Integer.parseInt(dataValues[6]));\n addPerson(p, i);\n }\n\n return numberOfLines;\n\n }",
"public int countUsers()\n {\n int nbUser = 0;\n pw.println(12);\n try\n {\n nbUser = Integer.parseInt(bis.readLine()) ;\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return nbUser ;\n }",
"public int idNum(String fullFilePath){\n\n int lines = 0;\n\n try {\n BufferedReader reader = new BufferedReader(new FileReader(fullFilePath));\n while (reader.readLine() != null) {\n lines++;\n }\n reader.close();\n }\n catch(IOException ioe) {\n ioe.printStackTrace();\n }\n return lines;\n }",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\twhile(input.hasNext()) {\n\t\t\tString player1 = input.nextLine();\n\t\t\tString player2 = input.nextLine();\n\t\t\tString com = input.nextLine();\n\t\t\tint check = input.nextInt();\n\t\t\tint[][] one = new int[3][3];\n\t\t\tint[][] two = new int[3][3];\n\t\t\tString[] split1 = player1.split(\" \");\n\t\t\tString[] split2 = player2.split(\" \");\n\t\t\tString[] split3 = com.split(\" \");\n\t\t\tint total = 0;\n\t\t\tint countA = 0;\n\t\t\tint countB = 0;\n\t\t\tfor(int i = 0; i < split3.length; i++) {\n\t\t\t\ttotal += Integer.parseInt(split3[i]);\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tint count = 0;\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tone[i][j] = Integer.parseInt(split1[3*i+j]);\n\t\t\t\t\tcount += one[i][j];\n\t\t\t\t}\n\t\t\t\tif(count == total) {\n\t\t\t\t\tcountA++;\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tint count = 0;\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\ttwo[i][j] = Integer.parseInt(split2[3*i+j]);\n\t\t\t\t\tcount += two[i][j];\n\t\t\t\t}\n\t\t\t\tif(count == total) {\n\t\t\t\t\tcountB++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tint count = 0;\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tone[j][i] = Integer.parseInt(split1[3*i+j]);\n\t\t\t\t\tcount += one[j][i];\n\t\t\t\t}\n\t\t\t\tif(count == total) {\n\t\t\t\t\tcountA++;\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tint count = 0;\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\ttwo[j][i] = Integer.parseInt(split2[3*i+j]);\n\t\t\t\t\tcount += two[j][i];\n\t\t\t\t}\n\t\t\t\tif(count == total) {\n\t\t\t\t\tcountB++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tint count = 0;\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tone[i][j] = Integer.parseInt(split1[3*i+j]);\n\t\t\t\t\tif(j == 2) {\n\t\t\t\t\t\tcount += one[i][i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(count == total) {\n\t\t\t\t\tcountA++;\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\tfor(int i = 0; i < 3; i++) {\n\t\t\t\tint count = 0;\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\ttwo[i][j] = Integer.parseInt(split2[3*i+j]);\n\t\t\t\t\tif(j == 2) {\n\t\t\t\t\t\tcount += two[i][i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(count == total) {\n\t\t\t\t\tcountB++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(countA == countB) {\n\t\t\t\tSystem.out.println(\"Draw\");\n\t\t\t}\n\t\t\tif(countA > countB) {\n\t\t\t\tSystem.out.println(\"Player1 wins\");\n\t\t\t}\n\t\t\tif(countA < countB) {\n\t\t\t\tSystem.out.println(\"Player2 wins\");\n\t\t\t}\n\t\t\tinput.nextLine();\n\t\t\tif(check == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter filename: \");\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString filename = scanner.nextLine();\n\t\tBufferedReader fileReader = null;\n\t\tint[] counts = new int[10];\n\t\tint total = 0;\n\t\ttry {\n\t\t\tfileReader = new BufferedReader(new FileReader(filename));\n\t\t\tString line;\n\t\t\twhile ((line = fileReader.readLine()) != null) {\n\t\t\t\tif(line.length() > 0) {\n\t\t\t\t\tString[] parts = line.split(\" \");\n\t\t\t\t\tint num;\n\t\t\t\t\tif(parts.length > 0) {\n\t\t\t\t\t\tnum = Integer.parseInt(parts[parts.length - 1]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnum = Integer.parseInt(line); \n\t\t\t\t\t}\n\t\t\t\t\tint firstDigit = firstDigit(num);\n\t\t\t\t\tcounts[firstDigit]++;\n\t\t\t\t\ttotal++;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfor(int i = 1; i < counts.length; i++) {\n\t\t\tSystem.out.printf(\"%d : %d : %.2f%%\\n\", i, counts[i], counts[i] * 100. / total);\n\t\t}\n\t}",
"void incrementLinesRead();",
"public void whatGame() throws IOException{\n try{\n inFile = new Scanner(new File(\"output.txt\"));\n } catch (InputMismatchException e) {\n System.err.printf(\"ERROR: Cannot open %s\\n\", \"output.txt\");\n System.exit(1);\n }\n \n gameNumber = inFile.nextInt();\n System.out.println(gameNumber);\n inFile.close();\n \n try {\n outFile = new PrintWriter(\"output.txt\");\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(1);\n }\n outFile.print(gameNumber+1);\n outFile.close();\n \n }",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint t = Integer.parseInt(br.readLine());\n\t\tchar[] input = br.readLine().toCharArray();\n\t\tint[] arr = new int[26];\n\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\tarr[input[i] - 'A']++;\n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tfor (int i = 1; i < t; i++) {\n\t\t\tchar[] candidates = br.readLine().toCharArray();\n\t\t\tint[] scores = new int[26];\n\t\t\tfor (int j = 0; j < candidates.length; j++) {\n\t\t\t\tscores[candidates[j] - 'A']++;\n\t\t\t}\n\t\t\t\n\t\t\tif (similar(arr, scores)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}",
"private int lineNumber() throws IOException {\n int count = 0;\n File answers = new File(this.settings.getValue(\"botAnswerFile\"));\n try (RandomAccessFile raf = new RandomAccessFile(answers, \"r\")) {\n while (raf.getFilePointer() != raf.length()) {\n raf.readLine();\n count++;\n }\n }\n return count;\n }",
"@Override\n\tpublic void doStuff(File fileName) {\n\t\tScanner s;\n\t\tint lineTotal=0;\n\t\ttry {\n\t\t\ts = new Scanner(fileName);\n\t\t\twhile(s.hasNext()){\n\t\t\t\ts.nextLine();\n\t\t\t\tlineTotal++;\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(lineTotal>0){\n\t\t\tInteger i = lineTotal;\n\t\t\tmap.put(fileName, i);\n\t\t}\n\t}",
"public int totalMatrices(){\n try{ \n br = new BufferedReader(new FileReader(\"E:\\\\NUST\\\\6th Semester\\\\Advanced Programming - AP\\\\Labs\\\\Advanced Programming Lab-1\\\\src\\\\pk\\\\edu\\\\nust\\\\seecs\\\\bscs2\\\\advancedprogramming\\\\lab1\\\\matrices.txt\") );\n while( (currentLine = br.readLine()) != null){ \n if (currentLine.trim().length() > 0){\n //System.out.println(totalMatrices+\": \"+currentLine); \n totalMatrices++;\n }\n }\n }catch(IOException e){\n e.printStackTrace(); \n }finally{ \n try{\n if(br!=null)\n br.close();\n }catch(IOException e){\n e.printStackTrace();\n }\n } \n return totalMatrices;\n }",
"private static void wordCount(File fileEntry) throws FileNotFoundException {\n\t\tScanner sc = new Scanner(new FileInputStream(fileEntry));\n\t\t int count=0;\n\t\t while(sc.hasNext()){\n\t\t sc.next();\n\t\t count++;\n\t\t }\n\t\tSystem.out.println(\"Number of words: \" + count);\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tin.nextLine();\n\t\tString[] input = new String[100];\n\t\tfor(int j = 0; j < n ; j++){\n\t\t\tString line = in.nextLine();\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i < line.length()-1;i++){\n\t\t\t\tif(line.charAt(i) == line.charAt(i+1)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} \n\t}",
"int countFile(File file) {\n return readFile(file).length;\n }",
"private int countLetter(char c, File trainDir) {\r\n\t\tint totalCharacterCount = 0;\r\n\t\tfor(File file : trainDir.listFiles()){\r\n\t\t\ttry{\r\n\t\t\t\t// open file\r\n\t\t\t\tFileReader fr = new FileReader(file);\r\n\t\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\t\t\r\n\t\t\t\twhile(br.ready()){\r\n\t\t\t\t\t// read a character and increment our counter\r\n\t\t\t\t\t// if this character matches the one we are looking for\r\n\t\t\t\t\tif((char)br.read() == c){\r\n\t\t\t\t\t\ttotalCharacterCount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(FileNotFoundException e){\r\n\t\t\t\tSystem.err.println(\"Failed to Find File: \" + file.toString());\r\n\t\t\t}\r\n\t\t\tcatch(IOException ioe){\r\n\t\t\t\tSystem.err.println(ioe.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn totalCharacterCount;\r\n\t}",
"public static void main( String [] args )\n\t{\n\t\ttry ( Scanner inScanner = new Scanner(System.in) ) {\n\t\t\tboolean keepGoing = false;\n\t\t\tdo {\n\n\t\t\t\tSystem.out.print( \"Please enter the name of the file to open: \" );\n\t\t\t\tString fpath = \"\";\n\t\t\t\tif ( inScanner.hasNext() ) {\n\t\t\t\t\tfpath = inScanner.next();\n\t\t\t\t} else {\n\t\t\t\t\tfpath = \"\";\n\t\t\t\t}\n\n\t\t\t\t// Safely open the file for reading.\n\t\t\t\tFile inFile = new File( fpath );\n\n\t\t\t\tint lineCount = 0;\n\t\t\t\tint charCount = 0;\n\t\t\t\tString lastLine = \"\";\n\n\t\t\t\ttry ( Scanner fileScanner = new Scanner(inFile) ) {\n\t\t\t\t\t// Read file line by line and increment lineCount.\n\t\t\t\t\twhile ( fileScanner.hasNextLine() ) {\n\t\t\t\t\t\tlastLine = fileScanner.nextLine();\n\t\t\t\t\t\t++lineCount;\n\n\t\t\t\t\t\t// For each line, count the chars and increment charCount.\n\t\t\t\t\t\tcharCount += lastLine.length();\n\t\t\t\t\t\t\n\t\t\t\t\t\t// print out the first and second lines of the file.\n\t\t\t\t\t\tif ( lineCount <= 2 ) {\n\t\t\t\t\t\t\tSystem.out.printf( \"Line %d: %s\\n\", lineCount, lastLine );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Print out the last line of the file.\n\t\t\t\t\tSystem.out.printf( \"Last Line: %s\\n\", lastLine );\t\n\n\t\t\t\t\t// At EOF, print the char and line counts.\n\t\t\t\t\tSystem.out.printf( \"Program read %d lines and %d characters.\\n\", lineCount, charCount );\n\n\t\t\t\t\t// Ask the user if they want to go again?\n\t\t\t\t\tSystem.out.printf( \"Would you like to count the words and characters in another file? (Y/n): \" );\n\t\t\t\t\tString answer = inScanner.next();\n\n\t\t\t\t\tswitch ( answer.toLowerCase() ) {\n\t\t\t\t\t\tcase \"y\":\n\t\t\t\t\t\t\tkeepGoing = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"n\":\n\t\t\t\t\t\t\tkeepGoing = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tkeepGoing = false;\n\t\t\t\t\t\t\tSystem.out.println( \"INVALID INPUT.\" );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t} catch ( FileNotFoundException e ) {\n\t\t\t\t\tSystem.out.println( \"Could not find the file!\" );\n\t\t\t\t} catch ( NoSuchElementException e ) {\n\t\t\t\t\tSystem.out.println( \"Scanner couldn't get any more input!\" );\n\t\t\t\t} \n\t\t\t} while ( keepGoing );\n\t\t} \n\t}",
"static int[] countBlock() throws java.io.IOException {\n\t\tScanner fileScanner = new Scanner(new FileReader(\"level.txt\")); // load the .txt file that contains the level\n\t\tint width = fileScanner.nextInt(); // initialize with width using the first integer of the first line...\n\t\tint height = fileScanner.nextInt(); // ... second integer of the first line\n\t\tString inputText = fileScanner.nextLine(); // read in all subsequent characters after the first line\n\n\t\tfor(int row = 0; row < height; row++){ // get the count of wall blocks\n\t\t\tinputText = fileScanner.nextLine(); \n\t\t\tfor (int column = 0; column < inputText.length(); column++){\n\t\t\t\tchar ch = inputText.charAt(column);\n\t\t\t\tswitch(ch){\n\t\t\t\t\tcase 'W':\n\t\t\t\t\t\tcountElements[0]++; // for every wall element, add 1 to the wall counter in the array\n\t\t\t\t\t\tbreak;\t\n\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcountElements[1]++; // for every dirt element, add 1 to the dirt counter in the array\n\t\t\t\t\t\tcountElements[3]++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcountElements[2]++;\n\t\t\t\t\t\tcountElements[3]++;\n\t\t\t\t\t\tbreak; // if not either a wall or dirt, then just continue on\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t\tfileScanner.close();\n\t\treturn new int[] {countElements[0], countElements[1], countElements[2], countElements[3]}; // return the array elements after counting through the entire map\n\t}",
"public void countByCharacter() {\n if (super.getInput() == null) {\n return;\n }\n FileInputStream is;\n try {\n is = new FileInputStream(super.getInput());\n NxParser nxp = new NxParser();\n System.out.println(\"Parsing \" + super.getInput() + \"...\");\n nxp.parse(is);\n for (Node[] nx : nxp) {\n String nodeid = nx[0].toString();\n String predicate = nx[1].getLabel();\n if (!PredicateUtils.isSchemaOrgEvent(predicate)) {\n continue;\n }\n predicate = PredicateUtils.fixSchemaOrg(predicate);\n if (!ATTR.equalsIgnoreCase(PredicateUtils.getEventProperty(predicate))) {\n continue;\n }\n String obj = nx[2].getLabel();\n int length = obj.length();\n Integer count = mapEvents.get(nodeid);\n mapEvents.put(nodeid, (count == null ? length : count + length));\n Integer countLength = mapLengths.get(String.valueOf(length));\n mapLengths.put(String.valueOf(length), (countLength == null ? 1 : countLength + 1));\n }\n System.out.println(\"The total number of lines: \" + nxp.lineNumber());\n System.out.println(\"The total number of events: \" + mapEvents.size());\n System.out.println(\"Start sorting mapEvents...\");\n Map<String, Integer> mapEvent = VectorUtils.sortByValue(mapEvents, VectorUtils.SortBy.DESC);\n FileUtils.writeMapdataToFile(this.getOutput(\"event\"), mapEvent);\n System.out.println(\"Start sorting mapLengths...\");\n Map<String, Integer> mapLength = VectorUtils.sortByValue(mapLengths, VectorUtils.SortBy.DESC);\n FileUtils.writeMapdataToFile(this.getOutput(\"length\"), mapLength);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"Auditorium(java.util.Scanner input, java.io.File file){\r\n\t\t\r\n\t\tString line = input.next(); // read in next line from file // or nextLine()\r\n\t\tboolean flag = true;\r\n\t\tcolumns = line.length();\r\n\t\twhile(line != \"\" && flag != false) {\r\n\t\t\trows++; // increment number of rows\r\n\t\t\tif (!input.hasNext())\r\n\t\t\t\tflag = false;\r\n\t\t\tparseLine(line, rows, columns); // send line, array, and rows to a parse function\r\n\t\t\tif(input.hasNext())\r\n\t\t\t\tline = input.next(); //read in next line\r\n\t\t}\r\n\t}",
"private void exercise4() throws IOException {\n final Path resourcePath = retrieveResourcePath();\n try (BufferedReader reader = newBufferedReader(resourcePath)) {\n long count = reader.lines()\n .count();\n System.out.println(count);\n }\n }",
"static int [] readFile() throws IOException {\n\n // Scanner used to get name of file from user\n Scanner in = new Scanner(System.in);\n System.out.println(\"Please enter the name of your file: \");\n String name = in.nextLine();\n\n File file = new File(name); \n \n // Scanner used to read file\n Scanner inputFile = new Scanner(file); \n // reads first line of file for length of array\n int x = inputFile.nextInt();\n\n //Creates array \n int [] scores = new int[x]; \n\n for (int i=0; i<x; i++) {\n int value = inputFile.nextInt();\n scores[i] = value;\n }\n inputFile.close();\n in.close();\n return scores; \n }",
"private static int lines(String path) throws FileNotFoundException {\n\t\tFile file = new File(path);\n\t\tScanner in = new Scanner(file);\n\t\tint l = 0;\n\t\twhile(in.hasNext()) {\n\t\t\tin.nextLine();\n\t\t\tl++;\n\t\t}\n\t\treturn l;\n\t}",
"public static void main(String[] args) {\n\t\tMap<String, Integer> map = new HashMap<>();\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(\"story.txt\")))) {\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tString tokens[] = line.split(\" \");\r\n\t\t\t\tfor (String token : tokens) {\r\n\t\t\t\t\tif (map.containsKey(token)) {\r\n\t\t\t\t\t\tInteger freq = map.get(token);\r\n\t\t\t\t\t\tmap.put(token, ++freq);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmap.put(token, 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\r\n\t\tSet<Entry<String, Integer>> entry = map.entrySet();\r\n\t\tfor (Entry<String, Integer> entryset : entry) {\r\n\t\t\tSystem.out.println(entryset.getKey() + \" : \" + entryset.getValue());\r\n\t\t}\r\n\t}",
"private int readLines() throws IOException\n\t{\n\t\t//Same as above, creating FileReader and BufferedReader for reading the file\n\t\tFileReader file_to_read = new FileReader(path);\n\t\tBufferedReader bf = new BufferedReader(file_to_read);\n\t\t\n\t\t//Temporary variable to hold the read line\n\t\tString aLine;\n\t\t//While the line is not null or there is nothing on the line\n\t\twhile ((aLine = bf.readLine()) != null)\n\t\t{\n\t\t\t//Add to the numberOfLines to count how many lines there are\n\t\t\tnumberOfLines++;\n\t\t}\n\t\t//Close the BufferedReader\n\t\tbf.close();\n\t\t\n\t\t//Return the number of lines in the text file\n\t\treturn numberOfLines;\n\t}",
"public int countRess()\n {\n int nbRess = 0;\n pw.println(13);\n try\n {\n nbRess = Integer.parseInt(bis.readLine()) ;\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return nbRess ;\n }",
"public int playerCount()\r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor(Player player: this.players)\r\n\t\t{\r\n\t\t\tif(player != null)\r\n\t\t\t{\r\n\t\t\t\t++count;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"public int countLines() throws IOException {\n InputStream is = new BufferedInputStream(new FileInputStream(filename));\n try {\n byte[] c = new byte[1024];\n\n int readChars = is.read(c);\n if (readChars == -1) {\n // bail out if nothing to read\n return 0;\n }\n\n // make it easy for the optimizer to tune this loop\n int count = 0;\n while (readChars == 1024) {\n for (int i=0; i<1024;) {\n if (c[i++] == '\\n') {\n ++count;\n }\n }\n readChars = is.read(c);\n }\n\n // count remaining characters\n while (readChars != -1) {\n for (int i=0; i<readChars; ++i) {\n if (c[i] == '\\n') {\n ++count;\n }\n }\n readChars = is.read(c);\n }\n\n return count == 0 ? 1 : count;\n } finally {\n is.close();\n }\n }",
"int getLinesCount();",
"public static void main(String[] args) {\n FastReader sc = new FastReader();\n long t = sc.nextLong();\n for (long i = 0; i < t; i++) {\n String[] in = sc.nextLine().split(\" \");\n BigInteger A = new BigInteger(in[1]);\n BigInteger B = new BigInteger(in[2]);\n BigInteger K = new BigInteger(in[3]);\n BigInteger N = new BigInteger(in[0]);\n BigInteger countA=N.divide(A);\n BigInteger countB=N.divide(B);\n BigInteger count=countA.add(countB);\n //System.out.println(\"countA = \" + countA);\n //System.out.println(\"countB = \" + countB);\n BigInteger countBoth=(N.divide(A.multiply(B)));\n count=count.subtract(countBoth.multiply(BigInteger.valueOf(2)));\n //System.out.println(\"count = \" + count);\n if (count.compareTo(K)>=0) {\n System.out.println(\"Win\");\n } else {\n System.out.println(\"Lose\");\n }\n }\n }",
"int countFile(String path) {\n return readFile(path).length;\n }",
"int getNumberOfLines();",
"private static void countVowels(File fileEntry) throws FileNotFoundException {\n\t\tScanner sc = new Scanner(new FileInputStream(fileEntry));\n\t String fileContent = \"\";\n\t while (sc.hasNext())\n\t {\n\t fileContent += sc.next() + \" \";\n\t }\n\t sc.close();\n\n\t char[] charArr = fileContent.toCharArray();\n\t int counter = 0;\n\t for (char c : charArr)\n\t {\n\t if(c == 'a' || c == 'e' ||c == 'i' ||c == 'o' ||c == 'u')\n\t counter++;\n\t }\n\t System.out.println(\"The file \" + fileEntry.getName() + \" has AEIOU in order \" + counter + \" times\");\n\t}",
"public void inputFromStream(BufferedReader dis) throws IOException {\n String line = dis.readLine();\n setFile(line);\n int lines = Str.strToInt(dis.readLine());\n if (lines != 0) {\n lineNos = new int[lines];\n for (int i = 0; i < lineNos.length; ++i) {\n lineNos[i] = Str.strToInt(dis.readLine());\n }\n }\n }",
"public void count(String dataFile) {\n\t\tScanner fileReader;\n\t\ttry {\n\t\t\tfileReader= new Scanner(new File(dataFile));\n\t\t\twhile(fileReader.hasNextLine()) {\n\t\t\t\tString line= fileReader.nextLine().trim(); \n\t\t\t\tString[] data= line.split(\"[\\\\W]+\");\n\t\t\t\tfor(String word: data) {\n\t\t\t\t\tthis.wordCounter= map.get(word);\n\t\t\t\t\tthis.wordCounter= (this.wordCounter==null)?1: ++this.wordCounter;\n\t\t\t\t\tmap.put(word, this.wordCounter);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n\t\tcatch(FileNotFoundException fnfe) {\n\t\t\tSystem.out.println(\"File\" +dataFile+ \"can not be found.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}",
"public void readInputFile(){\n no_of_videos = 5;\n video_size = new int [no_of_videos];\n\n }",
"private static int readScore() {\n try {\n fis = activity.openFileInput(scoreFileName);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis));\n String readLine = br.readLine();\n fis.close();\n br.close();\n Log.v(\"Setting score to: \", readLine);\n return Integer.parseInt(readLine);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return 0;\n }",
"public static void main(String[] args) {\n\t\tHashSet<String> players=new HashSet<String>(); \n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tString player;\n\t\tfor(int i=0;i<count+1;i++)\n\t\t{\n\t\t\tplayer = sc.nextLine();\n\t\t\tplayers.add(player);\n\t\t}\n\t\tSystem.out.println(players.size());\n\t}",
"private int getTotalLetters(File trainDir) {\r\n\t\tint totalCharacterCount = 0;\r\n\t\tfor(File file : trainDir.listFiles()){\r\n\t\t\ttry{\r\n\t\t\t\t// open file\r\n\t\t\t\tFileReader fr = new FileReader(file);\r\n\t\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\t\t\r\n\t\t\t\twhile(br.ready()){\r\n\t\t\t\t\t// read a character and increment our counter if it is \r\n\t\t\t\t\t// a valid character (a-z, A-Z, ' ')\r\n\t\t\t\t\tchar c = (char) br.read();\r\n\t\t\t\t\tif(String.valueOf(c).matches(\"[A-Za-z ]\")){\r\n\t\t\t\t\t\ttotalCharacterCount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(FileNotFoundException e){\r\n\t\t\t\tSystem.err.println(\"Failed to Find File: \" + file.toString());\r\n\t\t\t}\r\n\t\t\tcatch(IOException ioe){\r\n\t\t\t\tSystem.err.println(ioe.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn totalCharacterCount;\r\n\t}",
"int computeNumberOfLines(String text);",
"public static void main(String[] args) throws FileNotFoundException {\n Scanner input = new Scanner(System.in);\n System.out.print(\"Enter a file of scores: \");\n String fileName = input.next();\n File file = new File(fileName);\n int numberOfScores = 0;\n double totalScores = 0;\n double avarege = 0;\n if (!file.exists()) {\n throw new FileNotFoundException();\n }\n\n try (\n Scanner inputFile = new Scanner(file);\n ) {\n while (inputFile.hasNext()) {\n totalScores += Double.parseDouble(inputFile.next());\n numberOfScores++;\n }\n\n }\n avarege = totalScores / numberOfScores;\n System.out.println(\"Total Score: \" + totalScores +\n \"\\nAvarage: \" + avarege);\n }",
"public static void addtoHashMap (File filename){\n\t\tFileInputStream fin;\n\t\ttry{\n\t\t\tfin = new FileInputStream(filename);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(fin));\n\t\t\tString n;\n\t\t\ttry{\n\t\t\t\twhile ((n = br.readLine()) != null){\n\t\t\t\t\tif(h.containsKey(n)){\n\t\t\t\t\t\tint i = (Integer) h.get(n);\n\t\t\t\t\t\th.put(n, (i+1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\th.put(n, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}catch(FileNotFoundException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"private static int Initialize (String[] list)\n {\n\t\tString filename, stateInput;\n \t\tint i = 0, numItems = 0;\n \t \ttry {\n System.out.print(\"Input File : \");\n Scanner stdin = new Scanner(System.in);\n filename = stdin.nextLine();\n stdin = new Scanner(new File(filename));\n\n while ((stdin.hasNext()) && (i < list.length))\n {\n stateInput = stdin.nextLine();\n System.out.println(\"S = \" + stateInput);\n list[i] = stateInput;\n i++;\n }\n numItems = i;\n }\n catch (IOException e) {\n System.out.println(e.getMessage());\n }\n return numItems;\n }",
"private static void ProcessFile(File fileEntry) throws FileNotFoundException {\n \n\t wordCount(fileEntry) ;\n\t\t\n countVowels(fileEntry);\n\t\n\t\t\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 static void main(String[] args) throws IOException {\n\n String file = \"C:/Java Projects/java-web-dev-exercises/src/exercises/CountingCharsSentence.txt\";\n Path path = Paths.get(file);\n List<String> lines = Files.readAllLines(path);\n Object[] string = lines.toArray();\n String string2 = Arrays.toString(string);\n\n String[] wordsInString = string2.toLowerCase().split(\"\\\\W+\");\n String rejoinedString = String.join(\"\", wordsInString);\n char[] charactersInString = rejoinedString.toCharArray();\n\n HashMap<Character, Integer> letterMap = new HashMap<>();\n\n\n for (char letter : charactersInString) {\n if (!letterMap.containsKey(letter)) {\n int letterCount = 1;\n letterMap.put(letter, letterCount);\n } else if (letterMap.containsKey(letter)) {\n letterMap.put(letter, letterMap.get(letter) + 1);\n }\n }\n\n\n System.out.println(letterMap);\n }",
"private int countNumberOfStringBlocks() {\n\t\tint counter = 0;\n\t\tString currentLine = \"\";\n\t\t\n\t\twhile (reader.hasNext()) {\n\t\t\tif(currentLine.isEmpty()) {\n\t\t\t\tcurrentLine = reader.nextLine();\n\t\t\t\t\n\t\t\t\tif(!currentLine.isEmpty()) {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tcurrentLine = reader.nextLine();\n\t\t}\n\t\t\n\t\t\n\t\treturn counter;\n\t}",
"public static void main(String[] args) throws IOException {\n//\n// int playerCount = Integer.parseInt(bufferedReader.readLine().trim());\n//\n// List<Integer> player = Stream.of(bufferedReader.readLine().replaceAll(\"\\\\s+$\", \"\").split(\" \"))\n// .map(Integer::parseInt)\n// .collect(toList());\n\n List<Integer> ranked = new ArrayList<>();\n ranked.add(100); ranked.add(90); ranked.add(90); ranked.add(80); ranked.add(75); ranked.add(60);\n List<Integer> player = new ArrayList<>();\n player.add(50); player.add(65); player.add(77); player.add(90); player.add(102);\n\n List<Integer> result = climbingLeaderboard(ranked, player);\n\n// bufferedWriter.write(\n// result.stream()\n// .map(Object::toString)\n// .collect(joining(\"\\n\"))\n// + \"\\n\"\n// );\n//\n// bufferedReader.close();\n// bufferedWriter.close();\n }",
"public static void main(String[] args) throws IOException \r\n\t{\n\t\tString bowlerName = null;\r\n\t\tString wicket;\r\n\t\tString name;\r\n\t\tint wicketCount = 0;\r\n\t\tString ans,ans1;\r\n\t\tPlayer p=new Player(bowlerName, wicketCount);\r\n\t\tHashMap<String, Integer> hmap=new HashMap<String, Integer>();\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tdo\r\n\t\t{\r\n\t\tSystem.out.println(\"Enter the player name\");\r\n\t\tbowlerName=br.readLine();\r\n\t\tSystem.out.println(\"Enter wickets - seperated by \\\"|\\\" symbol.\");\r\n\t\twicket=br.readLine();\r\n\t\tString[] arr=wicket.split(\"\\\\|\");\r\n\t\twicketCount=arr.length;\r\n\t\tSystem.out.println(\"Do you want to add another player (yes/no)\");\r\n\t\tans=br.readLine();\r\n\t\thmap.put(bowlerName, wicketCount);\r\n\t\t}\r\n\t\twhile(ans.equalsIgnoreCase(\"yes\"));\r\n\t\tdo\r\n\t\t{\r\n\t\tSystem.out.println(\"Enter the player name to search\");\r\n\t\tname=br.readLine();\r\n\t\tif(hmap.containsKey(name))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Player name : \"+name);\r\n\t\t\tSystem.out.println(\"Wicket Count : \"+hmap.getOrDefault(name, wicketCount));\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"No player found with the name \"+name);\r\n\t\tSystem.out.println(\"Do you want to search another player (yes/no)\");\r\n\t\tans1=br.readLine();\r\n\t\t}\r\n\t\twhile(ans1.equalsIgnoreCase(\"yes\"));\r\n\t}",
"private void readFile() {\n\t\tint newPlayerScore = level.animal.getPoints();\n\t\t\n\t\tlevel.worDim = 30;\n\t\tlevel.wordShift = 25;\n\t\tlevel.digDim = 30;\n\t\tlevel.digShift = 25;\n\t\t\n\t\tfor( int y =0; y<10; y++ ) { //display placeholder numbers\n\t\t\tfor( int x=0; x<4; x++ ) {\n\t\t\t\tbackground.add(new Digit( 0, 30, 470 - (25*x), 200 + (35*y) ) );\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry { //display highscores from highscores.txt\n\t\t\tScanner fileReader = new Scanner(new File( System.getProperty(\"user.dir\") + \"\\\\highscores.txt\"));\n\t\t\t\n\t\t\tint loopCount = 0;\n\t\t\twhile( loopCount < 10 ) {\n\t\t\t\tString playerName = fileReader.next() ;\n\t\t\t\tString playerScore = fileReader.next() ;\n\t\t\t\tint score=Integer.parseInt(playerScore);\n\t\t\t\t\n\t\t\t\tif( newPlayerScore >= score && newHighScore == false ) {\n\t\t\t\t\tstopAt = loopCount;\n\t\t\t\t\tnewHighScore = true;\n\t\t\t\t\tlevel.wordY = 200 + (35*loopCount);\n\t\t\t\t\t\n\t\t\t\t\tpointer = new Icon(\"pointer.png\", 30, 75, 200 + (35*loopCount) );// add pointer indicator\n\t\t\t\t\tbackground.add( pointer ); \n\t\t\t\t\tlevel.setNumber(newPlayerScore, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t\tlevel.setWord(playerName, 10, 100, 200 + (35*loopCount));\n\t\t\t\t\tlevel.setNumber(score, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t}else {\n\t\t\t\t\tlevel.setWord(playerName, 10, 100, 200 + (35*loopCount));\n\t\t\t\t\tlevel.setNumber(score, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t}\n\t\t\t}//end while\n\t\t\tfileReader.close();\n\t\t\tif( newHighScore ) {\n\t\t\t\tnewHighScoreAlert();\n\t\t\t}else {\n\t\t\t\tgameOverAlert();\n\t\t\t}\n } catch (Exception e) {\n \tSystem.out.print(\"ERROR: Line 168: Unable to read file\");\n //e.printStackTrace();\n }\n\t}",
"public void loadPlayers(String filename) throws IOException {\r\n //TODO:4\r\n // 1. use try-with-resources syntax to ensure the file is closed\r\n // 2. read the number of players, then read an empty line\r\n // 3. for each player:\r\n // 3.1 read playerName, gold, sciencePoint, productionPoint, numCities and numMinisters separated by blank characters.\r\n // 3.2 create a player of corresponding values\r\n // 3.3 for (int i=1; i<numCities; i++):\r\n // read population, troops, cropYields\r\n // create a corresponding city object and add to the player's city list\r\n // 3.4 for (int i=1; i<numMinisters; i++):\r\n // read type, intelligence, experience, leadership\r\n // use switch-case to create a corresponding minister object and add to the player's minister list\r\n // check for invalid formats and throw custom exceptions.\r\n // (When there is any invalid minister type, throw InvalidMinisterTypeException.\r\n // Only \"WarGeneral\", \"Scientist\" and \"Economist\" are allowed.)\r\n // 3.5 add the player to the ArrayList<Player> players\r\n // Hint: use add() method of ArrayList.\r\n players = new ArrayList<>();\r\n File inputFile = new File(filename);\r\n try(\r\n Scanner reader = new Scanner(inputFile);\r\n ) {\r\n int numOfPlayers = reader.nextInt();\r\n String line = \"\";\r\n for (int i = 0; i < numOfPlayers; i++) {\r\n String name = reader.next();\r\n int gold = reader.nextInt();\r\n int sciencePoint = reader.nextInt();\r\n int productionPoint = reader.nextInt();\r\n Player newPlayer = new Player(name, gold, sciencePoint, productionPoint);\r\n this.players.add(newPlayer);\r\n\r\n int numOfCity = reader.nextInt();\r\n int numOfMin = reader.nextInt();\r\n\r\n for (int j = 0; j < numOfCity; j++) {\r\n int cityID = reader.nextInt();\r\n String cName = reader.next();\r\n int pop = reader.nextInt();\r\n int troops = reader.nextInt();\r\n int cropYields= reader.nextInt();\r\n\r\n City temp = new City(cityID, cName, pop, troops, cropYields);\r\n this.players.get(i).getCities().add(temp);\r\n }\r\n\r\n for (int j = 0; j < numOfMin; j++) {\r\n String mName = reader.next();\r\n int intel = reader.nextInt();\r\n int exp = reader.nextInt();\r\n int lead = reader.nextInt();\r\n\r\n if (mName.equals(\"Scientist\")) {\r\n Scientist temp = new Scientist(intel, exp, lead);\r\n this.players.get(i).getMinisters().add(temp);\r\n }\r\n else if (mName.equals(\"Economist\")) {\r\n Economist temp = new Economist(intel, exp, lead);\r\n this.players.get(i).getMinisters().add(temp);\r\n }\r\n else if (mName.equals(\"WarGeneral\")) {\r\n WarGeneral temp = new WarGeneral(intel, exp, lead);\r\n this.players.get(i).getMinisters().add(temp);\r\n }\r\n else {\r\n throw new InvalidMinisterTypeException(\"Only \\\"WarGeneral\\\", \\\"Scientist\\\" and \\\"Economist\\\" are allowed\");\r\n }\r\n }\r\n }\r\n }\r\n }",
"public int getNumberOfPersons(String file) throws FileNotFoundException, IOException, ParseException {\n\t\tarrayList = pareseFile(file);\n\t\tSystem.out.println(arrayList.toString());\n\t\treturn arrayList.size();\n\t}",
"public static void countTokens(Scanner in) {\n }",
"static int countInputs(String mergedVcf) throws Exception\n\t{\n\t\tScanner input = new Scanner(new FileInputStream(new File(mergedVcf)));\n\t\twhile(input.hasNext())\n\t\t{\n\t\t\tString line = input.nextLine();\n\t\t\tif(line.length() == 0 || line.startsWith(\"#\"))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tVcfEntry entry = new VcfEntry(line);\n\t\t\tinput.close();\n\t\t\treturn entry.getInfo(\"SUPP_VEC\").length();\n\t\t}\n\t\tinput.close();\n\t\treturn 0;\n\t}",
"public boolean readFile(){\n\t\tboolean counter=false;\n\t\t\ttry {\n\t FileReader reader = new FileReader(readFile);\n\t BufferedReader bufferedReader = new BufferedReader(reader);\n\t \n\t String line;\n\t \n\t while ((line = bufferedReader.readLine()) != null) {\n\t \tStringTokenizer st = new StringTokenizer(line,SEPARATOR);\n\t\t if (st.nextToken().equals(user) && st.nextToken().equals(password)) {\n\t\t \tcounter=true;\n\t\t \treturn counter;\n\t\t }\n\t\t else break;\n\t }\n\t reader.close();\n\t \n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t\t return counter;\n\t}",
"public static void main(String[] args) throws IOException{\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n int n = Integer.parseInt(f.readLine());\n HashSet<Integer> next = new HashSet<>();\n StringTokenizer st = new StringTokenizer(f.readLine());\n int rounds = 0;\n for(int i = 0; i < n; i++) {\n int x = Integer.parseInt(st.nextToken());\n if(!next.contains(x)) {\n rounds++;\n }\n next.remove(x);\n next.add(x+1);\n }\n out.println(rounds);\n f.close();\n out.close();\n }",
"public int run() throws IOException {\n\n\t\t// The variable to be returned later as the answer\n\t\tint answer = 0;\n\n\t\t// Reading the file\n\t\twhile (reader.ready()) {\n\t\t\tString line = reader.readLine();\n\n\t\t\t// Calculates a 'hashcode' for the particular line (see the method\n\t\t\t// definition for more info)\n\t\t\tint noobHash = asciiCalc(line);\n\n\t\t\t// Generate an array of integer to represent the string\n\t\t\t// Each ascii character has a slot, thus the size of array 128 (the\n\t\t\t// fact that 10 and 13 being always 0 is ignored for simplicity)\n\t\t\tInteger[] chars = new Integer[128];\n\n\t\t\t// Converts the string into the array of integer\n\t\t\tfor (int i = 0; i < line.length(); i++) {\n\n\t\t\t\t// converts char to int\n\t\t\t\tint k = line.charAt(i);\n\n\t\t\t\t// Because of the usage of wrapper class Integer instead of int,\n\t\t\t\t// the default value is null instead of 0\n\t\t\t\tif (chars[k - 1] == null) {\n\t\t\t\t\t// If char with ascii value k is found the first time,\n\t\t\t\t\t// change the value of the respective slot in the array to 1\n\t\t\t\t\t// k-1 instead of kth slot is used because of the max index\n\t\t\t\t\t// being 127 instead of 128 in an array of size 128\n\t\t\t\t\tchars[k - 1] = 1;\n\t\t\t\t} else {\n\t\t\t\t\t// if a char with ascii value k is found again, just\n\t\t\t\t\t// increment the initial value\n\t\t\t\t\tchars[k - 1]++;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// Checks if the 'hashcode' is already in the hashmap\n\t\t\twhile (hashMap.get(noobHash) != null) {\n\n\t\t\t\t// if the array of int in the hashmap with noobhash hashcode is\n\t\t\t\t// the same as the array of int being checked, increment the\n\t\t\t\t// count on that element\n\t\t\t\tif (Arrays.deepEquals(hashMap.get(noobHash).getCharList(),\n\t\t\t\t\t\tchars)) {\n\t\t\t\t\tanswer += hashMap.get(noobHash).getTotal();\n\t\t\t\t\thashMap.get(noobHash).incrementTotal();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// Linear probing is used\n\t\t\t\tnoobHash++;\n\n\t\t\t}\n\n\t\t\t// this branch is reached if either the hashcode is not in the\n\t\t\t// hashmap yet, or the hashcode is in the hashmap but actually of\n\t\t\t// different value (collision), so a new key is added to the hashmap\n\t\t\t// via linear probing method\n\t\t\tif (hashMap.get(noobHash) == null) {\n\t\t\t\thashMap.put(noobHash, new CustomPair(chars, 1));\n\t\t\t}\n\n\t\t}\n\t\treader.close();\n\n\t\treturn answer;\n\t}",
"public int loadRecords()\n\t{\n\t\ttry\n\t\t{\n\t\t\tString line = null;\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(FILE_PATH));\n\t\t\n\t\t\t\n\t\t\twhile ((line = br.readLine()) != null) \n\t\t\t{\t\n\t\t\t\tif (line.trim().length()==0) continue;\t// skip empty line\n\t\t\t\n\t\t\t\t// So convenient to use the overloaded construcor of Record that takes a Line!\n\t\t\t\trecordList.add(new Record(line));\t\t\t\t\n \t\t\t}\n\t\t\tbr.close();\n\t\t}\n\t\tcatch(IOException ioe)\n\t\t{\n\t\t\tSystem.err.println(ioe);\n\t\t}\n\t\t\n\t\treturn recordList.size();\n\t}",
"public static int getWordsNumber(String file) throws FileNotFoundException {\n File inputFile = new File(file);\n Scanner input = new Scanner(inputFile);\n\n int words = 0;\n while (input.hasNext()) {\n String value = input.next();\n words++;\n }\n\n input.close();\n\n return words;\n }",
"public static void main(String[] args) throws IOException {\n FileWriter fw = new FileWriter(new File(\"src/output_files/threesumA.txt\"));\n StringBuilder sb = new StringBuilder();\n // the rest input files\n String[] inputFiles = {\"src/input_files/8ints.txt\", \"src/input_files/1Kints.txt\", \"src/input_files/2Kints.txt\",\n \"src/input_files/2Kints.txt\", \"src/input_files/4Kints.txt\", \"src/input_files/8Kints.txt\",\n \"src/input_files/16Kints.txt\", \"src/input_files/32Kints.txt\"};\n int i = 8;\n for (String file : inputFiles) {\n In in = new In(file);\n int[] a = in.readAllInts();\n long startTime = System.nanoTime();\n int result = count(a);\n long elapsedTime = System.nanoTime() - startTime;\n sb.append(String.format(\"%d %d\\n\", i, elapsedTime));\n System.out.println(result);\n if (i == 8) {\n i = 1000;\n } else {\n i *= 2;\n }\n }\n fw.write(sb.toString());\n fw.close();\n }",
"public long countEntries() {\n\t\tlong entries=0;\n\t\ttry {\n\t\t\tentries=Files.lines(new File(PAYROLL_FILE_NAME).toPath()).count();\n\t\t}catch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn entries;\n\t}",
"public int getNbPawns(Player player) {\n Pawn aPawn;\n int Size, nbPawn;\n Size = getSize();\n nbPawn = 0;\n\n for (int numLine = 0; numLine < Size; numLine++) {\n for (int numCol = 0; numCol < Size; numCol++) {\n\n aPawn = field[numLine][numCol];\n if (aPawn != null) {\n if (aPawn.getPlayer() == player) nbPawn++; //if the pawn belong to player\n }\n\n }\n }\n\n return nbPawn;\n }",
"private void getNumPlayers() {\n\t\tSystem.out.println(\"How many people are playing? (must be between \"+MIN_PLAYERS+\" and \"+MAX_PLAYERS+\")\");\n\t\tnumPlayers = GetInput.getInstance().anInteger(MIN_PLAYERS, MAX_PLAYERS);\n\t}",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\ttry {\r\n\t\t\tin = new FileReader(\"Pride & Prejudice.txt\");\r\n\t\t\treader = new BufferedReader(in);\r\n\r\n\t\t\twhile(reader.readLine()!=null){\r\n\t\t\t\tline=reader.readLine().split(\" \");\r\n\t\t\t\tfor(int index=0;index<line.length;index++){\r\n\t\t\t\t\tif(map.containsKey(line[index])){\r\n\t\t\t\t\t\tint value= map.get(line[index])+1;\r\n\t\t\t\t\t\tmap.put(line[index],value);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tmap.put(line[index],1);\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} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tfor(String key: map.keySet()){\r\n\t\t\tSystem.out.println(\"The word \"+key+\" occurs \"+map.get(key)+\" times\");\r\n\t\t}\r\n\t}",
"public int getPlayerCount() {\n return 0;\n }",
"public void count(String problem2)\n\t\t{\n\t\t\t\t\n\t\t\t//this will begin to run\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\t//we create a scanner for input\n\t\t\t\tScanner readUserFile = new Scanner(new File(problem2));\n\t\t\t\t\n\t\t\t\t//a while function that will run as long as the text has more input\n\t\t\t\twhile(readUserFile.hasNext())\n\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tString nextUserWord = readUserFile.next();\n\t\t\t\t\t\n\t\t\t\t\tif (totalOccurence.containsKey(nextUserWord))\n\t\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\tint occurence = totalOccurence.get(nextUserWord);\n\t\t\t\t\t\ttotalOccurence.put(nextUserWord, occurence + 1);\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse totalOccurence.put(nextUserWord, 1);\n\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t//free up used resources\n\t\t\t\treadUserFile.close();\n\t\t\t\n\t\t\t//we have a catch in place for any issues\t\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\t//system print out if any error occurs\n\t\t\t\tSystem.out.println(\"Unfourtantly an issue occured when opening the file!\");\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\t\n\t\t}",
"public static void main(String[] args) throws FileNotFoundException{ \n File file = new File(\"/Users/admin/NetBeansProjects/AlgoDataA3/src/algodataa3e3/output_interpret.txt\");\n Scanner input = new Scanner(file); \n \n SeparateChainingHash_A3E3<String, Integer> st = new SeparateChainingHash_A3E3<>(INTERVAL);\n //141491 words\n //9944 uniqe (with toLowerCase)\n \n //read file word by word and store in array\n while (input.hasNext()) {\n String key = input.next().toLowerCase();\n st.put(key, 1);\n }\n \n for(int i = 0; i < INTERVAL; i++){\n \n System.out.println(\"In hash #\" + (i+1) + \" there are \" + st.sizeOfList(i) + \" nodes\");\n }\n }",
"private List<Integer> parseFile(Scanner input) {\n mySimType = input.next();\n myCellShape = input.next();\n neighborPolicy = input.next();\n edgePolicy = input.next();\n isOutlined = input.next();\n initialConfig = input.next();\n\n myNumStates = input.nextInt();\n myStateMap = new HashMap<>();\n for (int i = 0; i < myNumStates; i++){\n var name = input.next();\n var type = input.nextInt();\n var colorString = input.next();\n var image = input.next();\n var prob = Double.parseDouble(input.next());\n var amt = input.nextInt();\n State s = new State(name, type, Color.valueOf(colorString), image, prob, amt);\n myStateMap.put(type, s);\n }\n\n numCols = input.nextInt();\n numRows = input.nextInt();\n\n checkValid();\n\n return getResults(input);\n }",
"public int count(String filePath) throws IOException {\n\t\tint ret;\n\t\t\n\t\tTFSClientFile file = getFileFromCache(filePath);\n\t\tif (file == null) {\t\t// cannot find the file, try to get file info from the master\n\t\t\tret = getFileInfo(filePath);\n\t\t\t\n\t\t\tif (ret != OK)\n\t\t\t\treturn -1;\n\t\t\telse {\n\t\t\t\tfile = getFileFromCache(filePath);\t\t\t\t\n\t\t\t\tassert(file != null);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// now the file info is ready\n\t\t// pick-up a chunkserver to read from\n\t\tList<String> servers = new LinkedList<String>();\n\t\tfor (String server : file.getChunkServers())\n\t\t\tservers.add(server);\n\t\t\n\t\tRandom rand = new Random();\n\t\tint index = 0;\n\t\twhile (!servers.isEmpty()) {\n\t\t\tindex = rand.nextInt(servers.size());\n\t\t\t\n\t\t\tString[] strs = servers.get(index).split(\" \");\n\t\t\tservers.remove(index);\n\t\t\t\n\t\t\tSocketIO sockIO = new SocketIO(strs[0], Integer.parseInt(strs[1]));\n\t\t\tsockIO.write((COUNT + \" \" + filePath + \"\\r\\n\").getBytes());\n\t\t\tsockIO.flush();\n\t\t\t\n\t\t\tString line = sockIO.readLine();\n\t\t\tif (line.startsWith(STR_OK)) {\n\t\t\t\tstrs = line.split(\" \");\n\t\t\t\treturn Integer.parseInt(strs[1]);\n\t\t\t} else {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn -1;\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tint n = readInt(), m = readInt();\n\t\tint[] freq = new int[m+1];\n\t\tint total = 0;\n\t\tint count = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint x = readInt();\n\t\t\tfreq[x]++;\n\t\t\tif (freq[x] == 1) {\n\t\t\t\ttotal++;\n\t\t\t}\n\t\t\tif (total == m) {\n\t\t\t\tcount++;\n\t\t\t\ttotal = 0;\n\t\t\t\tArrays.fill(freq, 0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count+1);\n\t}",
"public static void main(String[] args) throws FileNotFoundException {\n\t\tFile file = new File(\"src/input.txt\");\n\t\tScanner scan = new Scanner(file);\n\t\tint N = scan.nextInt();\n\t\tscan.nextLine(); // clear buffer\n\t\tint[] arr = new int[N];\n\t\tfor (int i=0; i<N; i++) {\n\t\t\tarr[i] = scan.nextInt();\n\t\t}\n\t\tSystem.out.print(\"Before: \");\n\t\tfor (int el : arr) System.out.print(el + \" \");\n\t\tSystem.out.println();\n\t\tcountSwaps(arr);\n\t\tscan.close();\n\t\t\n\n\t}",
"public void input(File inputFile){\n instantiateTable();\n try{\n String line = \"\";\n //method to scan certain words between 2 delimiting characters, usually blank lines or white spaces or tabs.\n Scanner read = new Scanner(inputFile).useDelimiter(\"\\\\W+|\\\\n|\\\\r|\\\\t|, \");\n //while there is a next word, keeps reading the file \n while (read.hasNext()){\n line = read.next().toLowerCase();\n LLNodeHash words = new LLNodeHash(line, 1, null);\n add(words);\n }\n read.close();\n }\n catch (FileNotFoundException e){\n System.out.print(\"Not found\");\n e.printStackTrace();\n }\n System.out.println(hashTable.length);\n System.out.println(space());\n System.out.println(loadFactor);\n System.out.println(collisionLength());\n print();\n }",
"public void addPlayerToPlayers(String username) throws IOException{\r\n\t\tScanner readPlayers = new Scanner(new BufferedReader(new FileReader(\"players.txt\")));\r\n\t\tint numberOfPlayers = readPlayers.nextInt();\r\n\t\tif(numberOfPlayers == 0) { // no need to store data to rewrite\r\n\t\t\ttry {\r\n\t\t\t\tFileWriter writer = new FileWriter(\"players.txt\");\r\n\t\t\t\tBufferedWriter playerWriter = new BufferedWriter(writer);\r\n\t\t\t\tnumberOfPlayers++;\r\n\t\t\t\tInteger numPlayers = numberOfPlayers; // allows conversion to string for writing\r\n\t\t\t\tplayerWriter.write(numPlayers.toString());\r\n\t\t\t\tplayerWriter.write(\"\\n\");\r\n\t\t\t\tplayerWriter.write(numPlayers.toString()); // write userId as 1 because only 1 player\r\n\t\t\t\tplayerWriter.write(\"\\n\");\r\n\t\t\t\tplayerWriter.write(username);\r\n\t\t\t\tplayerWriter.write(\"\\n\");\r\n\t\t\t\tplayerWriter.close();\r\n\t\t\t}\r\n\t\t\tcatch(IOException e) {\r\n\t\t\t\tSystem.out.println(e);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\t/* Store all current usernames and userIds in a directory to rewrite to file */\r\n\t\t\tPlayerName[] directory = new PlayerName[numberOfPlayers];\r\n\t\t\t\r\n\t\t\tfor(int index = 0; index < numberOfPlayers; index++) {\r\n\t\t\t\tPlayerName playerName = new PlayerName();\r\n\t\t\t\tplayerName.setUserId(readPlayers.nextInt());\r\n\t\t\t\tplayerName.setUserName(readPlayers.next());\r\n\t\t\t\tdirectory[index] = playerName;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treadPlayers.close();\r\n\t\t\t/* Add a new player */\r\n\t\t\ttry {\r\n\t\t\t\tnumberOfPlayers++;\r\n\t\t\t\tFileWriter writer = new FileWriter(\"players.txt\");\r\n\t\t\t\tBufferedWriter playerWriter = new BufferedWriter(writer);\r\n\t\t\t\tInteger numPlayers = numberOfPlayers; // allows conversion to string for writing\r\n\t\t\t\tplayerWriter.write(numPlayers.toString());\r\n\t\t\t\tplayerWriter.write(\"\\n\"); // maintains format of players.txt\r\n\t\t\t\t\r\n\t\t\t\tfor(int index = 0; index < numberOfPlayers - 1; index++) { // - 1 because it was incremented\r\n\t\t\t\t\tInteger nextId = directory[index].getUserId();\r\n\t\t\t\t\tplayerWriter.write(nextId.toString());\r\n\t\t\t\t\tplayerWriter.write(\"\\n\");\r\n\t\t\t\t\tplayerWriter.write(directory[index].getUserName());\r\n\t\t\t\t\tplayerWriter.write(\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tInteger lastId = numberOfPlayers;\r\n\t\t\t\tplayerWriter.write(lastId.toString());\r\n\t\t\t\tplayerWriter.write(\"\\n\");\r\n\t\t\t\tplayerWriter.write(username);\r\n\t\t\t\tplayerWriter.write(\"\\n\");\r\n\t\t\t\tplayerWriter.close();\r\n\t\t\t}\r\n\t\t\tcatch(IOException e) {\r\n\t\t\t\tSystem.out.println(e);\r\n\t\t\t}\r\n\t\t}\r\n\t\treadPlayers.close();\r\n\t}",
"public int getLines() throws IOException {\n\t\n\t\n\ttry {\n\tFileReader file = new FileReader(path);\n\tBufferedReader reader = new BufferedReader(file); //creates a buffered file reader\n\t\n\tString line = null;\n\tint numberOfLines = 0;\n\t\n\twhile ((line = reader.readLine()) != null){ // as long as file still has another line\n\t\tnumberOfLines++; // count up\n\t}\n\treader.close(); // reader is done\n\treturn numberOfLines; // return number of lines\n\t} catch (IOException e) {\n\t\treturn 0;\n\t}\n}",
"public static void main(String[] args) throws IOException {\n final String KEY = \"hackerrank\";\n Scanner in = new Scanner(System.in);\n Matcher matcher = Pattern.compile(KEY, Pattern.CASE_INSENSITIVE).matcher(\"\");\n //Count the tweets with KEY in it\n int count = 0;\n for(int N = Integer.parseInt(in.nextLine()); N > 0; --N) {\n String tweet = in.nextLine();\n matcher.reset(tweet);\n count += matcher.find() ? 1 : 0;\n }\n //Output count\n System.out.println(count);\n }"
] |
[
"0.6901034",
"0.67680186",
"0.6713807",
"0.6386238",
"0.62369776",
"0.6209128",
"0.61135995",
"0.607545",
"0.60700554",
"0.60644275",
"0.60444677",
"0.6025495",
"0.60209614",
"0.60198903",
"0.6015971",
"0.6014369",
"0.59640676",
"0.59556246",
"0.59068435",
"0.5902737",
"0.590177",
"0.58559394",
"0.5781697",
"0.57738733",
"0.5769174",
"0.5766614",
"0.5755026",
"0.57388896",
"0.57314783",
"0.5720281",
"0.570663",
"0.5705026",
"0.56968",
"0.56957334",
"0.56716245",
"0.56585413",
"0.5651205",
"0.5646907",
"0.5635905",
"0.56237113",
"0.5602241",
"0.5584857",
"0.55766535",
"0.5549196",
"0.5511353",
"0.55030835",
"0.5499638",
"0.5491431",
"0.5480726",
"0.54709595",
"0.5467581",
"0.5464236",
"0.5464031",
"0.54446775",
"0.5434875",
"0.5429133",
"0.5426974",
"0.5423654",
"0.54200363",
"0.54109484",
"0.5409175",
"0.53958637",
"0.5394257",
"0.538832",
"0.5387215",
"0.53809845",
"0.53750396",
"0.53646773",
"0.535489",
"0.5352067",
"0.53468424",
"0.53432167",
"0.53424096",
"0.5328075",
"0.5326251",
"0.5325926",
"0.53238773",
"0.53160846",
"0.53121",
"0.53071165",
"0.5301727",
"0.5300203",
"0.5296785",
"0.52904326",
"0.5285916",
"0.5281929",
"0.52770406",
"0.52704585",
"0.52664804",
"0.52587914",
"0.5256118",
"0.52518576",
"0.52412033",
"0.52397096",
"0.5236212",
"0.52308005",
"0.5229806",
"0.52276903",
"0.522391",
"0.5221642"
] |
0.7654461
|
0
|
iterating through the array to find the highest value
|
public static float[] Findingleader(boolean[] ineligible,float[] stat, int numberofplayer)
{
float first,second,third; // initializing to negative number, so even a zero can be the leader value
first=second=third = -100;
for (int a = 0; a<numberofplayer; a++) // loops till a is less than numofplayer
{
if ((first<stat[a]||first==stat[a])&& ineligible[a] != true)// if stat is higher or same as first, and the stat is not empty
{ if(first==stat[a]) { // ignore the tie because the second value will be same as the first value
}
else {
third = second; // previous second value becomes third
second = first; // previous fisrt value becomes second now
first = stat[a]; // replace the first value with stat[a]
}
}
else if((second<stat[a]||second==stat[a])&& ineligible[a] != true) { // if stat is higher than or equal to second value
if(second==stat[a]) { // ignoring the tie
}
else {
third = second; // previous second value is now assigned to third
second = stat[a]; // second is replaced by the value of stat[a]
}
}
else if((third<stat[a]||third==stat[a])&& ineligible[a] != true) { // if stat is higher than or equal the third value
if(third==stat[a]) { // ignoring the tie value
}
else {
third = stat[a]; // third value is now replaced by the stat[a]
}
}
}
float []top3value = {first,second,third}; // using array to return more than 1 value
return top3value; // top3value array
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public T findHighest(){\n T highest = array[0];\n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()>highest.doubleValue())\n {\n highest = array[i];\n } \n }\n return highest;\n }",
"int max() {\n\t\t// added my sort method in the beginning to sort out array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the last term in the array --> if array is sorted then the last\n\t\t// term should be max\n\t\tint x = array[array.length - 1];\n\t\treturn x;\n\t}",
"int max(){\r\n int auxMax = array[0];\r\n for (int i=1;i<array.length;i++){\r\n if(array[i] > auxMax){\r\n auxMax = array[i];\r\n }\r\n }\r\n return auxMax;\r\n }",
"private static Pair<Double, Integer> findMaxEntry(double[] array) {\n int index = 0;\n double max = array[0];\n for (int i = 1; i < array.length; i++) {\n if ( array[i] > max ) {\n max = array[i];\n index = i;\n }\n }\n return new Pair<Double, Integer>(max, index);\n }",
"public static int getIndexOfMax(double[] array){\n\n int largest = 0;\n for ( int i = 1; i < array.length; i++ )\n {\n if ( array[i] > array[largest] ) largest = i;\n }\n return largest;\n\n }",
"private static int max(int[] array) {\n int result = array[0];\n for (int x : array)\n result = Math.max(x, result);\n return result;\n }",
"public static void main(String[] args) {\n int[] arr={24,34,56,98,2,59};\r\n int val =arr [0];\r\n for(int i=0;i<arr.length;i++){\r\n \t if(arr[i]>val){\r\n \t\t val=arr[i];\r\n \t }\r\n }\r\n System.out.println(\"largest value\"+ val);\r\n\t}",
"public double max(){\r\n\t\t//variable for max val\r\n\t\tdouble max = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the maximum is less than the current index, change max to that value\r\n\t\t\tif (max < this.data[i]){\r\n\t\t\t\tmax = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the maximum val\r\n\t\treturn max;\r\n\t}",
"public void findMax(int[] arr){\n int max = arr[0];\n for(int val : arr){\n if(max < val){\n max = val;\n }\n }\n System.out.println( \"Maximum values: \" + max );\n }",
"public static int getMax(int[] inputArray){ \n int maxValue = inputArray[0]; \n for(int i=1;i < inputArray.length;i++){ \n if(inputArray[i] > maxValue){ \n maxValue = inputArray[i]; \n } \n } \n return maxValue; \n }",
"public static double getMax(double[] arr) \n { \n double max = arr[0]; \n for(int i=1;i<arr.length;i++) \n { \n if(arr[i]>max) \n max = arr[i]; \n } \n return max; \n }",
"public static int getMaximum(int[] array) {\n int length = array.length;\n int max = array[0];\n for (int i = 1; i < length; i++) {\n if(max < array[i]) {\n max = array[i];\n }\n }\n\n Arrays.sort(array);\n// return array[length - 1];\n return max;\n }",
"public static int maxValue(int [] array){\n int hold = array[0];\n for(int i = 1; i < array.length; i++){\n if(array[i] > hold){\n hold = array[i];\n }\n }\n return hold;\n }",
"static double getMax(double[] array) {\n\t\tif (array.length < 0) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Arrays start from index 0\");\n\t\t}\n\t\tdouble max = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (max < array[i]) {\n\t\t\t\tmax = array[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}",
"public static int max(int[] theArray) {\n\n int biggest = theArray[0];\n\n //Converts the array to a list\n List<Integer> values = Arrays.stream(theArray).boxed().collect(Collectors.toList());\n\n //get the biggest by streaming the list and using min which gets the min value by using the Integer Comparator.comparing().\n //which means it will loop through the array and compare all the values for the biggest values\n biggest= values.stream().max(Integer::compare).get();\n\n// //Alternative code does the samething\n// for (int number : theArray) {\n//\n// if (biggest < number) {\n// biggest = number;\n// }\n// }\n\n return biggest;\n\n }",
"static int findHighestNumber(int [] array){\n int highestNumber = array [0];\n for (int x=0; x< array.length; x++){\n if (highestNumber<array[x]){\n highestNumber=array[x];\n }\n }\nreturn highestNumber;\n}",
"private static int[] findGreatestNumInArray(int[] array) {\r\n\t\tint maxValue = Integer.MIN_VALUE;\r\n \r\n\t\tint secondValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t\tint thirdValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t int[] result = new int[2];\r\n\t \r\n\t int[] result2 = new int[3];\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tif (array[i] > maxValue) {\r\n\t\t\t\tthirdValue = secondValue;\r\n\t\t\t\tsecondValue = maxValue;\r\n\t\t\t\tmaxValue = array[i];\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if(array[i]>secondValue)\r\n\t\t\t{\r\n\t\t\t\tsecondValue = array[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if(array[i]>thirdValue)\r\n\t\t\t{\r\n\t\t\t\tthirdValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\tallowResult( result,maxValue,secondValue);\r\n\t\t\r\n\t\tallowResult( result2,maxValue,secondValue,thirdValue);\r\n\t\t//return maxValue;\r\n\t\treturn result2;\r\n\t}",
"public static void main(String[] args) {\nint arr[]=new int[] {10,20,36,50,30};\nint max=0,i;\nfor(i=0;i<arr.length;i++)\n{\n\tif(arr[i]>max)\n\t{\n\t\tmax=arr[i];\n\t}\n}\nSystem.out.println(max);\n\t}",
"private static double max(Double[] darray){\n\t\tdouble max = darray[0];\n\t\tfor ( double dd : darray){\n\t\t\tmax = Math.max(max,dd);\n\t\t}\n\t\treturn max;\n\t}",
"double largestNumber(double[] a) {\n\t\tdouble max = a[0];\n\t\tdouble no = 0;\n\t\tfor (int index = 1; index < a.length; index++) {\n\t\t\tif (max > a[index] && max > a[index + 1]) {\n\t\t\t\tno = max;\n\t\t\t\tbreak;\n\t\t\t} else if (a[index] > max && a[index] > a[index + 1]) {\n\t\t\t\tno = a[index];\n\t\t\t\tbreak;\n\t\t\t} else if (a[index + 1] > max && a[index + 1] > a[index]) {\n\t\t\t\tno = a[index + 1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn no;\n\t}",
"public static int getMax(int[] array) {\n //TODO: write code here\n int max = array[0];\n for(int a : array) {\n max = a > max ? a : max;\n }\n return max;\n }",
"public static double max(double[] array) {\n\t\tif (array.length==0) return Double.NEGATIVE_INFINITY;\n\t\tdouble re = array[0];\n\t\tfor (int i=1; i<array.length; i++)\n\t\t\tre = Math.max(re, array[i]);\n\t\treturn re;\n\t}",
"public long max() {\n\t\tif (!this.isEmpty()) {\n\t\t\tlong result = theElements[0];\n\t\t\tfor (int i=1; i<numElements; i++) {\n\t\t\t\tif (theElements[i] > result) {\n\t\t\t\t\tresult = theElements[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException(\"Attempted to find max of empty array\");\n\t\t}\n\t}",
"public static void main(String[] args) {\n int[] nums = {24, 32, 1, 0, -57, 982, 446, 11, 177, 390, 2923, 7648, 242, 234, 1123, 875};\n int maxValue = nums[0];\n\n for(int i = 0; i < nums.length; i++) {\n if (nums[i] > maxValue) {\n maxValue = nums[i];\n }\n }\n System.out.println(\"Max Value in Array: \" + maxValue);\n }",
"public static int get_max(Integer[] a){\n int max = Integer.MIN_VALUE;\n\n for (int i = 0; i < a.length; i++){\n if (a[i] > max);\n max = a[i];\n }\n return max;\n }",
"public static int maximo (int[] array) {\n\t\tint max = array[0], i;\n\t\t\n\t\tfor (i = 1; i < array.length; i++) {\n\t\t\tif (array[i] > max) {\n\t\t\t\tmax = array[i];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn max;\n\t}",
"public static int max(int[] a) {\n\t\tint b=a[0];\r\n\t\tfor(int i=0;i<a.length;i++) {\r\n\t\t\tif(a[i]>b) {\r\n\t\t\t\tb=a[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn b;\r\n\t}",
"public static int maxValue(int[] numArr) {\r\n\t\tint temp = numArr[0] > numArr[1] ? numArr[0] : numArr[1];\r\n\t\tfor (int i = 2; i < numArr.length; i++) {\r\n\t\t\ttemp = temp > numArr[i] ? temp : numArr[i];\r\n\t\t}\r\n\t\treturn temp;\r\n\t}",
"public int findMax() {\n\t\tint max = (int)data.get(0);\n\t\tfor (int count = 1; count < data.size(); count++)\n\t\t\tif ( (int)data.get(count) > max)\n\t\t\t\tmax = (int)data.get(count);\n\t\treturn max;\n\t}",
"public static float max(float [] array)\r\n\t{\r\n\t\tfloat maxValue = array[0];\r\n\t\tfor (int i = 1; i < array.length; i++)\r\n\t\t{\r\n\t\t\tif (array[i] > maxValue)\r\n\t\t\t{\r\n\t\t\t\tmaxValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn maxValue;\r\n\t}",
"public int determineHighestVal() {\n if (playerCards[0].value > playerCards[1].value) {\n return playerCards[0].value;\n }\n return playerCards[1].value;\n\n }",
"public static double getMax(double[] array)\r\n\t{\r\n\t\tdouble max = Double.NEGATIVE_INFINITY;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (max < array[i])\r\n\t\t\t\tmax = array[i];\r\n\t\treturn max;\r\n\t}",
"public static double max(double[] v) {\n double max = v[0];\n for (int ktr = 0; ktr < v.length; ktr++) {\n if (v[ktr] > max) {\n max = v[ktr];\n }\n }\n return max;\n}",
"public static void arrayMax(){\n int [] array={12,3,4,5,6,1,0,3};\n //using the for loop to iterate through the numbers in the array\n int max=array[0];\n int size=array.length;\n\n for(int i = 0; i<size; i++){\n if(array[i]>max){\n max=array[i];\n }\n }\n System.out.println(new StringBuilder().append(max).append(\": is the maximum number in the given array.\").toString());\n\n }",
"public static int findMax(int[] a) {\r\n int max = a[0];\r\n\r\n //10th error , n = 1\r\n for (int n = 1; n < a.length; n++) {\r\n if (a[n] > max) {\r\n max = a[n];\r\n }\r\n }\r\n return max;\r\n\r\n }",
"public int theHighest() {\r\n\t\tint highest = 0;\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++) {\r\n\t\t\t\tif(game[i][j].getValue() > highest)\r\n\t\t\t\t\thighest = game[i][j].getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn highest;\r\n\t}",
"private void getMaxValue(){\n maxValue = array[0];\n for(int preIndex = -1; preIndex<number; preIndex++){\n for(int sufIndex = preIndex+1; sufIndex<=number;sufIndex++){\n long maxTmp = getPrefixValue(preIndex)^getSuffixCValue(sufIndex);\n if(maxTmp>maxValue){\n maxValue = maxTmp;\n }\n }\n }\n System.out.println(maxValue);\n }",
"private static int maxValue(int[] a) {\n\t\tint max_value =0;\r\n\t\tint current_max=0;\r\n\t\t\r\n\t\tfor(int i=0;i<a.length;i++)\r\n\t\t{\r\n\t\t\tcurrent_max += a[i];\r\n\t\t\tmax_value= Math.max(max_value, current_max);\r\n\t\t\tif(a[i]<0)\r\n\t\t\t\tcurrent_max=0;\r\n\t\t}\r\n\t\t\r\n\t\treturn max_value;\r\n\t}",
"public static int getMaxIndex(double[] array)\r\n\t{\r\n\t\tdouble max = Double.NEGATIVE_INFINITY;\r\n\t\tint maxIndex = 0;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (max < array[i]) {\r\n\t\t\t\tmax = array[i];\r\n\t\t\t\tmaxIndex = i;\r\n\t\t\t}\r\n\t\treturn maxIndex;\r\n\t}",
"public static int max(int[] a){\r\n\t\tint m = a[0];\r\n\t\tfor( int i=1; i<a.length; i++ )\r\n\t\t\tif( m < a[i] ) m = a[i];\r\n\t\treturn m;\r\n\t}",
"static public long max(long[] valarray) {\r\n long max = 0;\r\n for (long i : valarray) {\r\n if (i > max)\r\n max = i;\r\n }\r\n return max;\r\n }",
"public static int argmax(double[] array) {\n\t\tdouble max = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]>max) {\n\t\t\t\tmax = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}",
"static int getMax(int[] array) {\n\n\t\tif (array.length > 6 && array.length < 0) {\n\t\t\tthrow new IndexOutOfBoundsException(\"There is no that index in this array.\");\n\t\t}\n\t\tint max = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (max < array[i]) {\n\t\t\t\tmax = array[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\n\t}",
"public int findMax(int[] arr) {\n return 0;\n }",
"public static int argmax(float[] array) {\n\t\tfloat max = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]>max) {\n\t\t\t\tmax = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}",
"private int postprocess() {\n // Index with highest probability\n int maxIndex = -1;\n float maxProb = 0.0f;\n for (int i = 0; i < outputArray[0].length; i++) {\n if (outputArray[0][i] > maxProb) {\n maxProb = outputArray[0][i];\n maxIndex = i;\n }\n }\n return maxIndex;\n }",
"int findMax(int[] arr){\n\t\tint maximum=0;\n\t\tfor (int i=0; i<arr.length; i++) {\n\t\t\tif (arr[i]>maximum) {\n\t\t\t\tmaximum=arr[i];\n\t\t\t}\n\t\t}\n\t\treturn maximum;\n\t}",
"public int max()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tint maxNumber = array[0];\n\t\t\tfor (int index = 0; index < arraySize; index++) \n\t\t\t{\n\t\t\t\tif (array[index] > maxNumber)\n\t\t\t\t{\n\t\t\t\t\tmaxNumber = array[index];\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn maxNumber;\n\t\t}\n\t\treturn -1;\n\t\t\n\t}",
"private void calcMax(int[] data){\r\n for(int i=0; i<data.length; i++){\r\n if(data[i]>maxWert[i]){\r\n maxWert[i]=data[i];\r\n }\r\n }\r\n }",
"private int getBestGuess(double values[]){\n int maxIndex=0;\n double max=0;\n for(int i=0;i<4;i++){\n if(values[i]>max) {\n max = values[i];\n maxIndex=i;\n }\n }\n return maxIndex+1;\n }",
"public static int max(int[] arr){\n return maxInRange(arr, 0, arr.length-1);\n }",
"public T getMax()\n\t{\n\t\tif(size == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\telse if(size == 1)\n\t\t{\n\t\t\treturn array[0];\n\t\t}\n\t\telse if(size == 2)\n\t\t{\n\t\t\treturn array[1];\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\tif(object.compare(array[1], array[2]) < 0)\n\t\t\t{\n\t\t\t\treturn array[2];\n\t\t\t}\n\t\t\telse if(object.compare(array[1], array[2]) > 0)\n\t\t\t{\n\t\t\t\treturn array[1];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn array[1];\n\t\t\t}\n\n\t\t}\n\t}",
"public Object[] argmax(float[] array) {\n int best = -1;\n float best_confidence = 0.0f;\n\n for (int i = 0; i < array.length; i++) {\n\n float value = array[i];\n\n if (value > best_confidence) {\n\n best_confidence = value;\n best = i;\n }\n }\n return new Object[]{best, best_confidence};\n }",
"public static int max(int[] mainArray) {\r\n\t\tint max1 = 0;\r\n\t\tfor(int greaterThan = 1; greaterThan < mainArray.length; greaterThan ++) {\r\n\r\n\t\t\tif(mainArray[greaterThan]>mainArray[max1]) {\r\n\t\t\t\tmax1 = greaterThan;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max1;\r\n\t}",
"private static int findMaxInArr(int[] arr) {\n\n\t\tint max = arr[0];\n\t\tfor (int elem : arr) {\n\t\t\tif (elem > max) {\n\t\t\t\tmax = elem;\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}",
"public static int findMax(int arr[]){\n int max =Integer.MIN_VALUE;\n\n //find max\n for(int i =0;i<arr.length;i++){\n if (arr[i]>max){\n max=arr[i];\n }\n }\n return max;\n }",
"private Double getMax(Double[] values) {\n Double ret = null;\n for (Double d: values) {\n if (d != null) ret = (ret == null) ? d : Math.max(d, ret);\n }\n return ret;\n }",
"public static int pointFree(double[] numbers){\n String completeString = \"\";\n String redactedString = \"\";\n int newArray[] = new int[numbers.length];\n int greatestValue=0;\n \n \n \n for (double x : numbers) {\n int currentValue;\n \n completeString = String.valueOf(x);\n redactedString = completeString.replaceAll(\"\\\\.\",\"\");\n currentValue = Integer.parseInt(redactedString);\n for (int i = 0; i < newArray.length; i++) {\n \n newArray[i]=currentValue;\n \n \n }\n greatestValue=newArray[0];\n for (int i = 0; i < newArray.length; i++) {\n if(newArray[i]>greatestValue){\n greatestValue=newArray[i];\n \n }\n \n }\n \n \n }\n return greatestValue;\n \n }",
"public long findMax(long[] incomes) {\n long current_max_index = 0;\n long current_max = incomes[0];\n for (long income : incomes)\n if (current_max < income)\n current_max = income;\n return current_max;\n }",
"public static <T extends Comparable<T>> T findMax(T[] arr) {\n if (arr.length == 0 || arr == null) {\n throw new IllegalArgumentException(\"Array null or empty.\");\n }\n\n T max = arr[0];\n for (int i = 1; i < arr.length; i++) {\n max = MathUtils.max(arr[i], max);\n }\n return max;\n }",
"public int getMaximun(){\n int highGrade = grades[0]; //assumi que grades[0] é a maior nota\n //faz o loop pelo array de notas\n for(int grade: grades){\n //se a nota for maior que highGrade. atribui essa nota a highGrade\n if(grade > highGrade){\n highGrade = grade; //nota mais alta\n }\n }\n \n return highGrade;\n }",
"public int calculateMaximumPosition() {\n\t\tdouble[] maxVal = { inputArray[0], 0 };\n\t\tfor (int i = 0; i < inputArray.length; i++) {\n\t\t\tif (inputArray[i] > maxVal[0]) {\n\t\t\t\tmaxVal[0] = inputArray[i];\n\t\t\t\tmaxVal[1] = i;\n\t\t\t}\n\t\t}\n\t\treturn (int) maxVal[1];\n\t}",
"public static int getMaxValue(int[] numberArray)\n\t{\n\t\tint maxValue = numberArray[0];\n\t\tfor (int i = 1; i < numberArray.length; i++)\n\t\t{\n\t\t\tif (numberArray[i] > maxValue)\n\t\t\t\tmaxValue = numberArray[i];\n\t\t}\n\t\treturn maxValue;\n\t}",
"public static int getMax(int[] scores) {\r\n\t\r\n\t\tint temp = scores[0];\r\n\t\tfor(int i = 1; i < scores.length; ++i) {\r\n\t\t\r\n\t\t\tif (scores[i] > temp) {\r\n\t\t\t\ttemp = scores[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn temp;\r\n\t\r\n\t}",
"private int getYmax(int[] yt){\n\t\tint max = -1;\n\t\tfor(int i = 0;i<=3;i++){\n\t\t\tif(max < yt[i]){\n\t\t\t\tmax = yt[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}",
"public static Object max(Object[] object) {\n // Find max of array object\n Object maxOfA = object[0];\n for(int i = 1; i < object.length; i++) {\n if ((((Comparable) maxOfA).compareTo(object[i])) == -1) {\n maxOfA = object[i];\n }\n }\n\n // Return results.\n return maxOfA;\n }",
"public final void max() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue > topMostValue) {\n\t\t\t\tpush(secondTopMostValue);\n\t\t\t} else {\n\t\t\t\tpush(topMostValue);\n\t\t\t}\n\t\t}\n\t}",
"private double getMaxNumber(ArrayList<Double> provinceValues)\n {\n Double max = 0.0;\n\n for (Double type : provinceValues)\n {\n if (type > max)\n {\n max = type;\n }\n }\n return max;\n }",
"private double getMax() {\n return Collections.max(values.values());\n }",
"public int maxValue( int[ ] n ) {\n int max = Integer.MIN_VALUE;\n for(int each: n){\n if(each > max){\n max = each;\n }\n }\n return max;\n }",
"public static double max(double[]array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n double max = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(Double.isNaN(array[i])){\n return Double.NaN;\n }\n if(array[i] > max){\n max = array[i];\n }\n }\n return max;\n }",
"static void displayMaxValue (ForeighStockHolding array[])\r\n\t{\n\t\tForeighStockHolding temp = array[0];\r\n\t\t\r\n\t\t//traversing the array to find the max value stock\r\n\t\tfor(int i=1; i<array.length; i++)\r\n\t\t{\r\n\t\t\tif(temp.valueInDollars() < array[i].valueInDollars())\r\n\t\t\t{\r\n\t\t\t\ttemp = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//printing the maximum value stock\r\n\t\tSystem.out.println(\"Maximum Value Stock :\");\r\n\t\tSystem.out.println(\"Company Name : \"+temp.companyName);\r\n\t\tSystem.out.println(\"Purchase Share Price : \"+temp.purchaseSharePrice);\r\n\t\tSystem.out.println(\"Current Share Price : \"+temp.currentSharePrice);\r\n\t\tSystem.out.println(\"Number of Shares : \"+temp.numberOfShares);\r\n\t\tSystem.out.println(\"Conversion Rate : \"+temp.conversionRate);\r\n\t\tSystem.out.println();\r\n\t}",
"private int getMax(int[] times) {\n\n\t\t//Initially set max to the first value\n\t\tint max = times[0];\n\n\t\t//Loop through all times in the array\n\t\tfor (int i = 0; i < times.length; i++) {\n\n\t\t\t//Find max\n\t\t\tif (times[i]>max) {\n\n\t\t\t\t//Update max\n\t\t\t\tmax = times[i];\n\t\t\t}\n\t\t}\n\n\t\treturn max;\n\t\t//Print the max time to the console\n\n\t}",
"public static int getMax(float[][] storage) {\n float []arr=new float[WINDOW];\n for (int i = 0;i<WINDOW;i++){\n arr[i]=storage[i][1];\n }\n\n if(arr==null||arr.length==0){\n return 0;//如果数组为空 或者是长度为0 就返回null\n }\n int maxIndex=0;//假设第一个元素为最小值 那么下标设为0\n int[] arrnew=new int[2];//设置一个 长度为2的数组 用作记录 规定第一个元素存储最小值 第二个元素存储下标\n for(int i =0;i<arr.length-1;i++){\n if(arr[maxIndex]<arr[i+1]){\n maxIndex=i+1;\n }\n }\n arrnew[0]=(int)arr[maxIndex];\n arrnew[1]=maxIndex;\n\n return arrnew[0];\n }",
"public Integer findLargestNumber() {\r\n\t\t// take base index element as largest number\r\n\t\tInteger largestNumber = numArray[0];\r\n\t\t// smallest number find logic\r\n\t\tfor (int i = 1; i < numArray.length; i++) {\r\n\t\t\tif (numArray[i] != null && numArray[i] > largestNumber) {\r\n\t\t\t\tlargestNumber = numArray[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t// return smallest number from the given array\r\n\t\treturn largestNumber;\r\n\t}",
"private static int getMax(int[] original) {\n int max = original[0];\n for(int i = 1; i < original.length; i++) {\n if(original[i] > max) max = original[i];\n }\n return max;\n }",
"private static int[] findMaxValues(int[] weightArr, int[] heightArr){\r\n int[] max = new int[3];\r\n for(int i = 0; i < weightArr.length; i++){\r\n if(weightArr[i] > max[0]){\r\n max[0] = weightArr[i];\r\n max[1] = heightArr[i];\r\n max[2] = i;\r\n }\r\n }\r\n\r\n return max;\r\n }",
"include<stdio.h>\nint main()\n{\n int arr_size;\n scanf(\"%d\",&arr_size);\n int arr[10];\n // Get the array elements\n for(int idx = 0; idx <= arr_size - 1; idx++)\n {\n scanf(\"%d\",&arr[idx]);\n }\n // Get the searching element 1\n int max;\n if(arr[0]>arr[1])\n {\n max=arr[0];\n }\n else\n {\n max=arr[1];\n }\n \n for(int idx = 2; idx <= arr_size - 1; idx++)\n {\n if(max< arr[idx])\n {\n max= arr[idx];\n }\n }\n printf(\"%d\\n\",max);\n return 0;\n}",
"public static int max(int[] m) {\n int x = 1;\n int ret = m[0];\n while (x < m.length) {\n if (m[x] > ret) {\n ret = m[x];\n }\n x = x + 1;\n }\n return ret;\n }",
"public static int secondaryArgmax(double[] a) {\n\t\tint mi = argmax(a);\n\t\t// scan left until increasing\n\t\tint i;\n\t\tfor (i=mi-1; i>=0 && a[i]<=a[i+1]; i--);\n\t\tint l = argmax(a,0,i+1);\n\t\tfor (i=mi+1; i<a.length && a[i]<=a[i-1]; i++);\n\t\tint r = argmax(a,i,a.length);\n\t\tif (l==-1) return r;\n\t\tif (r==-1) return l;\n\t\treturn a[l]>=a[r]?l:r;\n\t}",
"public static int max(int[] array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n int max = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(array[i] > max){\n max = array[i];\n }\n }\n return max;\n }",
"public static void exampleForEach_FindMaximum(int[] numbers) {\r\n\t\tint maxSoFar = numbers[0]; \r\n \r\n // for each loop \r\n for (int num : numbers) \r\n { \r\n if (num > maxSoFar) \r\n { \r\n maxSoFar = num; \r\n } \r\n } \r\n \r\n System.out.println(\"\\nThe highest score is \" + maxSoFar);\r\n\t}",
"private float calculateMaxValue(int[] probes) {\r\n float max = 0f;\r\n float value;\r\n final int samples = experiment.getNumberOfSamples();\r\n for (int sample=0; sample<samples; sample++) {\r\n for (int probe=0; probe<probes.length; probe++) {\r\n value = experiment.get(probes[probe], sample);\r\n if (!Float.isNaN(value)) {\r\n max = Math.max(max, Math.abs(value));\r\n }\r\n }\r\n }\r\n return max;\r\n }",
"private static int getMax(int[] arr, int i) {\n\t\tif (i == 0) {\n\t\t\treturn arr[0];\n\t\t}\n\t\treturn Math.max(getMax(arr,i-1),arr[i]);\n\t}",
"public double max()\n\n {\n double max=xyValueArray.get(0).getY();\n\n for (int i = 0; i < xyValueArray.size(); i++) {\n if (xyValueArray.get(i).getY() > max) {\n max = xyValueArray.get(i).getY();\n }\n }\n return max;\n }",
"public static int max() {\r\n\r\n\t\tint[] arr1 = ArrayMethods.get5();\r\n\t\tint[] arr2 = ArrayMethods.get5();\r\n\r\n\t\tint sum1 = 0;\r\n\t\tint sum2 = 0;\r\n\r\n\t\tint max = 0;\r\n\r\n\t\tfor (int num : arr1) {\r\n\t\t\tsum1 += num;\r\n\t\t}\r\n\t\tfor (int num : arr2) {\r\n\t\t\tsum2 += num;\r\n\t\t}\r\n\r\n\t\tif (sum1 > sum2) {\r\n\r\n\t\t\tmax = sum1;\r\n\r\n\t\t} else if (sum1 == sum2) {\r\n\r\n\t\t\tmax = sum1;\r\n\r\n\t\t} else {\r\n\r\n\t\t\tmax = sum2;\r\n\t\t}\r\n\t\treturn max;\r\n\t}",
"private int maxIndex(int[] values){\n int curMaxIndex = 0;\n int curMax = values[0];\n for(int i = 1; i < values.length; i++){\n if(values[i] > curMax){\n curMaxIndex = i;\n curMax = values[i];\n }\n }\n return curMaxIndex;\n }",
"E maxVal();",
"public static double findMax(double[] da) {\n\n\t\tdouble max = da[0];\n\n\t\tfor (double d : da) {\n\t\t\tif (d > max) {\n\t\t\t\tmax = d;\n\t\t\t}\n\t\t}\n\n\t\treturn max;\n\t}",
"private static int maximumSubarray(int[] array) {\n\t\tint max = array[0];\n for (int i = 0; i < array.length; i++)\n {\n int sum = 0;\n for (int j = i; j < array.length; j++)\n {\n sum += array[j];\n if (sum > max)\n max = sum;\n }\n }\n return max; \n\t}",
"public static <E extends Comparable<E>> E compare(E[] element){\n Arrays.sort(element);\n int length = element.length;\n E max = element[length -1];\n System.out.println(\"max\"+max); //std to give the max value\n return max;\n\n }",
"public static double max(double[] prices) {\n\t\tdouble biggest = 0;\n\n\t\tfor (int i = 0; i < prices.length; i++) {\n\t\t\tif (prices[i] > biggest) {\n\t\t\t\tbiggest = prices[i];\n\t\t\t}\n\t\t}\n\n\t\treturn biggest\n\t}",
"public double getMaxValue() {\n double max = Double.NEGATIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] > max)\n max = data[i][j];\n }\n }\n return max;\n }",
"public static void main(String[] args) {\n int[] arr = {123,100,200,345,456,678,89,90,10,56};\n Arrays.sort(arr);\n System.out.println(Arrays.toString(arr));\n int lastIndex = arr.length-1;\n int secondIndexNUm =lastIndex-1; //arr.length-1-1;\n int secondMaxNum = arr[secondIndexNUm];\n System.out.println(secondMaxNum);\n\n int[]arr2 = {1,2,3,4,5,6};\n int num2 =secondMax(arr2);\n System.out.println(num2 );\n\n }",
"private static int[] FindHighest(int[][] terrainMap) {\n\n int[] highestPosition = {-1, -1};\n int highestValue = terrainMap[0][0];\n\n int i, j;\n\n for (i = 0; i < terrainMap.length; i++) {\n for (j = 0; j < terrainMap[0].length; j++) {\n if (terrainMap[i][j] > highestValue) {\n highestValue = terrainMap[i][j];\n highestPosition[0] = i;\n highestPosition[1] = j;\n }\n }\n }\n\n return highestPosition;\n }",
"public long getMaxTime(){\n long max;\n if(myPlaces_ra != null){\n // max variable set to the first time element in the array\n max = myPlaces_ra.get(0).getTime();\n\n for (int i = 0; i < myPlaces_ra.size(); i++) {\n //compare if the current is bigger than the one hold in the max variable\n if(myPlaces_ra.get(i).getTime() > max ){\n max = myPlaces_ra.get(i).getTime();\n\n }\n }\n Log.d(TAG, \"getMaxTime: \" + max);\n\n }else{\n Log.d(TAG, \"array is empty\");\n max = -1;\n return max;\n }\n return max;\n\n }",
"private int largestCard(Card[] cards) {\n int i;\n\n // Initialize maximum element\n int max = 0;\n\n // Traverse array elements from second and\n // compare every element with current max\n for (i = 1; i < cards.length; i++)\n if (cards[i].getDenomination() > cards[max].getDenomination())\n max = i;\n\n return max;\n }",
"public int findHighestTemp() {\n\t\t\n\t\tint max = 0;\n\t\tint indexHigh = 0;\n\t\tfor (int i=0; i<temps.length; i++)\n\t\t\tif (temps[i][0] > max) {\n\t\t\t\tmax = temps[i][0];\n\t\t\t\tindexHigh = i;\n\t\t\t}\n\t\t\n\t\treturn indexHigh;\n\t\t\n\t}",
"private static int maxIndex(int[] vals) {\n \n int indOfMax = 0;\n int maxSoFar = vals[0];\n \n for (int i=1;i<vals.length;i++){\n \n if (vals[i]>maxSoFar) {\n maxSoFar = vals[i];\n indOfMax = i;\n }\n }\n \n return indOfMax;\n }",
"public static float max(final float[] data) {\r\n float max = Float.MIN_VALUE;\r\n for (final float element : data) {\r\n if (max < element) {\r\n max = element;\r\n }\r\n }\r\n return max;\r\n }",
"public static String maxWeather(int[] array, String[]a) {\n String day=\" \";\n int max = array[0];//set int to array[0] because could be more or less than 0 but the first number in array is largest for now\n //finding max value in the array that will be plugged in when we use this method\n for (int i = 1; i < array.length; i++) {//start loop at 0 because array also start at 0, not super necessary here because already at 0 so here we'll do = to 1\n if (array[i] > max) { // when put i in loop, linking it to loop, this will check every index 1st to end\n max = array[i]; //can't just do return max here because haven't checked the rest so return outside the loop\n day = a[i];\n }\n }return day+ \" at \"+max+\".\"; //returns a string\n }"
] |
[
"0.83687705",
"0.8034786",
"0.78930014",
"0.7850081",
"0.7818939",
"0.78182685",
"0.7758851",
"0.7750125",
"0.7743717",
"0.7739349",
"0.7686719",
"0.7682112",
"0.7627739",
"0.76038307",
"0.75886244",
"0.7578975",
"0.752548",
"0.75163555",
"0.7493152",
"0.74923074",
"0.73953986",
"0.73908275",
"0.7373608",
"0.73688465",
"0.7364446",
"0.7348633",
"0.7329592",
"0.7280897",
"0.72669476",
"0.7266009",
"0.7254762",
"0.72503525",
"0.72332245",
"0.7229025",
"0.7227871",
"0.722319",
"0.72216177",
"0.72189933",
"0.72163624",
"0.7210916",
"0.7205375",
"0.7165623",
"0.71645576",
"0.71550053",
"0.7132371",
"0.7123111",
"0.7116864",
"0.711588",
"0.7100474",
"0.70999384",
"0.7094335",
"0.70906144",
"0.7079853",
"0.70241064",
"0.7020983",
"0.7018912",
"0.70143604",
"0.6999439",
"0.6996924",
"0.6952946",
"0.69364065",
"0.6936109",
"0.6934544",
"0.69251716",
"0.6916881",
"0.6909458",
"0.69066685",
"0.6901994",
"0.6884991",
"0.68738496",
"0.6854538",
"0.6850196",
"0.68495077",
"0.6845162",
"0.6839888",
"0.6831847",
"0.68300754",
"0.6825203",
"0.68190277",
"0.6812336",
"0.68110424",
"0.6807606",
"0.6806352",
"0.68015146",
"0.6794987",
"0.67933387",
"0.6792392",
"0.6785183",
"0.678164",
"0.67586553",
"0.67549926",
"0.67303467",
"0.67244905",
"0.67056495",
"0.67045075",
"0.6702626",
"0.6699218",
"0.6697012",
"0.6689426",
"0.668156",
"0.6676106"
] |
0.0
|
-1
|
iterating through the array to find the lowest value
|
public static float[] FindingKleader(boolean[] ineligible, float[] kstat, int numberofplayer)
{
float first,second,third;
first=second=third = Float.POSITIVE_INFINITY; // assigned positive infinity so any integer lower than infinity can be assigned to leader value
for (int a = 0; a<numberofplayer; a++) // for number of players
{
if ((first>kstat[a]||first==kstat[a]) && ineligible[a] != true)// if stat exists and the stat is equal to or greater than first
{ if(first==kstat[a]) { // do nothing if the stat is same fisrt value
}
else { // if not tie
third = second; // previous second value is assigned to third
second = first; // previous first value is now assigned to second
first = kstat[a]; // value of the stat is now assigned to first
}
}
else if((second>kstat[a]||second==kstat[a]) && ineligible[a] != true) {
if(second==kstat[a]) {
}
else {
third = second;// previous second value is assigned to third
second = kstat[a]; // value of second is stat
}
}
else if((third>kstat[a]||third==kstat[a]) && ineligible[a] != true) {
if(third==kstat[a]) {
}
else {
third = kstat[a]; // value of third is replace by the value of stat
}
}
}
float[] top3kleader = {first,second,third};
return top3kleader;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public T findLowest(){\n T lowest = array[0]; \n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()<lowest.doubleValue())\n {\n lowest = array[i]; \n } \n }\n return lowest;\n }",
"public static int findMin(){\n int min = array[0];\n for(int x = 1; x<array.length; x++ ){\n if(array[x]<min){\n min=array[x];\n }\n }\n return min;\n}",
"int min() {\n\t\t// added my sort method in the beginning to sort our array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the first term in the array --> first term should be min if\n\t\t// sorted\n\t\tint x = array[0];\n\t\treturn x;\n\t}",
"public static int getMin(int[] inputArray){\n int minValue = inputArray[0];\n for(int i=1; i<inputArray.length;i++){\n if(inputArray[i] < minValue){\n minValue=inputArray[i];\n }\n }\n return minValue;\n }",
"public static double min(double[] array) { \r\n \r\n double minNum = array[0];\r\n for(int i = 0; i < array.length; i++) {\r\n if(minNum > array[i]) {\r\n minNum = array[i];\r\n }\r\n }\r\n return minNum;\r\n }",
"public static int getMin(int[] array) {\n //TODO: write code here\n int min = array[0];\n for(int a : array) {\n min = a < min ? a : min;\n }\n return min;\n }",
"private double getLowest()\n {\n if (currentSize == 0)\n {\n return 0;\n }\n else\n {\n double lowest = scores[0];\n for (int i = 1; i < currentSize; i++)\n {\n if (scores[i] < lowest)\n {\n scores[i] = lowest;\n }\n }\n return lowest;\n }\n }",
"public int min(int[] array) {\n if (array == null || array.length == 0){\n return 0;\n }\n int min = array[0];\n for(int i = 0; i < array.length; i++){\n if (array[i] < min){\n min = array[i];\n }\n }\n return min;\n }",
"public static float min(float [] array)\r\n\t{\r\n\t\tfloat minValue = array[0];\r\n\t\tfor (int i = 1; i < array.length; i++)\r\n\t\t{\r\n\t\t\tif (array[i] < minValue)\r\n\t\t\t{\r\n\t\t\t\tminValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn minValue;\r\n\t}",
"public static int Min(int[] array) {\r\n\t\tint minValue = array[0];\r\n\t\tfor (int i = 1; i < array.length; i++) {\r\n\t\t\tif (array[i] < minValue) {\r\n\t\t\t\tminValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn minValue;\r\n\t}",
"public static int min(int[] theArray) {\n\n //sets a starting value is used if use the alternative code.\n int smallest = theArray[0];\n\n //Converts the array to a list\n List<Integer> values = Arrays.stream(theArray).boxed().collect(Collectors.toList());\n\n Collections.min(values);\n\n //get the smallest by streaming the list and using min which gets the min value by using the Integer Comparator.comparing().\n //which means it will loop through the array and compare all the values for the smallest values\n smallest = values.stream().min(Integer::compare).get();\n\n ////Alternative code does the same thing.\n// for (int number : theArray) {\n//\n// if (smallest > number) {\n// smallest = number;\n// }\n// }\n\n return smallest;\n\n }",
"private static double min(Double[] darray){\n\t\tdouble min = darray[0];\n\t\tfor ( double dd : darray){\n\t\t\tmin = Math.min(min,dd);\n\t\t}\n\t\treturn min;\n\t}",
"public static double min(double[] array) {\n\t\tif (array.length==0) return Double.POSITIVE_INFINITY;\n\t\tdouble re = array[0];\n\t\tfor (int i=1; i<array.length; i++)\n\t\t\tre = Math.min(re, array[i]);\n\t\treturn re;\n\t}",
"public static double getMin(double[] array)\r\n\t{\r\n\t\tdouble min = Double.POSITIVE_INFINITY;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (min > array[i])\r\n\t\t\t\tmin = array[i];\r\n\t\treturn min;\r\n\t}",
"public double min(){\r\n\t\t//variable for min val\r\n\t\tdouble min = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the minimum is more than the current index, change min to that value\r\n\t\t\tif (min > this.data[i]){\r\n\t\t\t\tmin = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the minimum val\r\n\t\treturn min;\r\n\t}",
"private static void min(int[] a) {\n int min = a[0];\n for(int i=1; i<a.length; i++){\n if(min > a[i]){\n min = a[i];\n }\n }\n System.out.println(\"Min\" + min);\n\n }",
"public static int CalculateLowest(int[] LowestArray){\n LowestInArray l1 = new LowestInArray();\n l1.LowestNumber = LowestArray[0];\n if (LowestArray.length>1){\n System.out.println(\"Many Elements in Array\");\n for (int i=0; i<LowestArray.length;i++){\n if (LowestArray[i]< l1.LowestNumber){\n l1.LowestNumber = LowestArray[i];\n }\n }\n }\n return l1.LowestNumber;\n }",
"private static int getMin(int[] original) {\n int min =original[0];\n for(int i = 1; i < original.length; i++) {\n if(original[i] < min) min = original[i];\n }\n return min;\n }",
"public int getMinimumScore(){\n\n /*\n * creating variable of type int name it lowestScore go in to index 0 and sub 0\n * and lowestScore is refering to instance variable scores\n */\n int lowestScore = scores[0][0]; // assume this value is the smallest score value\n\n /* enhanced for loop with array of type int named gameScores and it will go trough scores array*/\n for (int[] gameScores : scores){\n\n /*\n * and another enhanced for loop inside first for loop\n * int variable, name score and it will iterate(go/repeat) through array gameScores\n *\n */\n for (int score : gameScores){\n if (score < lowestScore){\n lowestScore = score;\n }\n }\n }\n return lowestScore;\n }",
"public static int minValue(int[] numArr) {\r\n\t\tint temp = numArr[0] < numArr[1] ? numArr[0] : numArr[1];\r\n\t\tfor (int i = 2; i < numArr.length; i++) {\r\n\t\t\ttemp = temp < numArr[i] ? temp : numArr[i];\r\n\t\t}\r\n\t\treturn temp;\r\n\t}",
"int findMin(int[] arr){\n\t\tint minimum=1000;\n\t\tfor (int i=0; i<arr.length; i++) {\n\t\t\tif (arr[i]<minimum) {\n\t\t\t\tminimum=arr[i];\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}",
"public static int min(int[] array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n int min = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n \n if(array[i] < min){\n min = array[i];\n }\n }\n return min;\n }",
"public static int min(int[] a){\r\n\t\tint m = a[0];\r\n\t\tfor( int i=1; i<a.length; i++ )\r\n if( m > a[i] ) m = a[i];\r\n\t\treturn m;\r\n\t}",
"public long min() {\n\t\tif (!this.isEmpty()) {\n\t\t\tlong result = theElements[0];\n\t\t\tfor (int i=1; i<numElements; i++) {\n\t\t\t\tif (theElements[i] < result) {\n\t\t\t\t\tresult = theElements[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException(\"Attempted to find min of empty array\");\n\t\t}\n\t}",
"public static int findMinimum(int[] array) {\n\n int min;\n\n if (array == null || array.length == 0) {\n return Integer.MIN_VALUE;\n } else {\n min = array[0];\n for (int i= 0; i<array.length; i++) {\n if (min > array[i]) {\n min = array[i];\n }\n }\n return min;\n }\n \n }",
"public static double min(double[] array, double min) {\n for (int i = 1; i < array.length; i++) {\n if (array[i] <= min) {\n min = array[i];\n }\n }\n return min;\n }",
"private static int findMinInArr(int[] arr) {\n\t\tint min = arr[0];\n\t\tfor (int elem : arr) {\n\t\t\tif (elem < min) {\n\t\t\t\tmin = elem;\n\t\t\t}\n\t\t}\n\n\t\treturn min;\n\t}",
"public void minimum(int[] arr){\n int min = arr[0];\n for(int i = 1; i< arr.length-1; i++){ //why i = 1 means because we have already taken the arr[0] as minimum\n if(arr[i] < min){\n min = arr[i];\n }\n } \n System.out.println(\"The minimum Element in the array is : \"+min);\n }",
"public static float min(float[] array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n float min = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(Float.isNaN(array[i])){\n return Float.NaN;\n }\n if(array[i] < min){\n min = array[i];\n }\n }\n return min;\n }",
"public static int getMinIndex(double[] array)\r\n\t{\r\n\t\tdouble min = Double.POSITIVE_INFINITY;\r\n\t\tint minIndex = 0;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (min > array[i]) {\r\n\t\t\t\tmin = array[i];\r\n\t\t\t\tminIndex = i;\r\n\t\t\t}\r\n\t\treturn minIndex;\r\n\t}",
"public static int argmin(double[] array) {\n\t\tdouble min = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]<min) {\n\t\t\t\tmin = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}",
"public int findMin() {\n\t\tint min = (int)data.get(0);\n\t\tfor (int count = 1; count < data.size(); count++)\n\t\t\tif ((int)data.get(count) < min)\n\t\t\t\tmin = (int)data.get(count);\n\t\treturn min;\n\t}",
"public static double min(double[]array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n double min = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(Double.isNaN(array[i])){\n return Double.NaN;\n }\n if(array[i] < min){\n min = array[i];\n }\n }\n return min;\n }",
"public static int findMinimum(int[] array) {\n if (array == null || array.length == 0) {\n return Integer.MIN_VALUE;\n }\n int left = 0;\n int right = array.length -1;\n int element = findPivot(array, left, right);\n return element;\n }",
"private void regularMinDemo() {\n int min = numbers[0];\n for(int i = 1; i < numbers.length; i++) {\n if (numbers[i] < min) min = numbers[i];\n }\n System.out.println(min);\n }",
"public static int min(int[] mainArray) {\r\n\t\tint min1 = 0;\r\n\t\tfor(int lessThan = 1; lessThan < mainArray.length; lessThan ++) {\r\n\r\n\t\t\tif(mainArray[lessThan]<mainArray[min1]) {\r\n\t\t\t\tmin1 = lessThan;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn min1;\r\n\t}",
"private Double getMin(Double[] values) {\n Double ret = null;\n for (Double d: values) {\n if (d != null) ret = (ret == null) ? d : Math.min(d, ret);\n }\n return ret;\n }",
"int minPriority(){\n if (priorities.length == 0)\n return -1;\n\n int index = 0;\n int min = priorities[index];\n\n for (int i = 1; i < priorities.length; i++){\n if ((priorities[i]!=(-1))&&(priorities[i]<min)){\n min = priorities[i];\n index = i;\n }\n }\n return values[index];\n }",
"static int minValues(int[] x) {\n\t\tint min = 0;\n\n\t\tfor (int y : x) {\n\t\t\tif (y < min) {\n\t\t\t\tmin = y;\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}",
"private int getMin(int[] times) {\n\n\t\t//Initially set min to the first value\n\t\tint min = times[0];\n\n\t\t//Loop through all times in the array\n\t\tfor (int i = 0; i < times.length; i++) {\n\n\t\t\t//Set the minimum\n\t\t\tif (times[i]<min) {\n\n\t\t\t\tmin = times[i];\n\t\t\t}\n\t\t}\n\n\t\treturn min;\n\t}",
"public static int minArray(int[] arr) {\n int min_value = Integer.MAX_VALUE;\n for (int i = 0; i < arr.length; i++) {\n if (min_value > arr[i]) {\n min_value = arr[i];\n }\n }\n return min_value;\n }",
"static int findMin(double[] pq)\n\t{\n\t\tint ind = -1; \n\t\tfor (int i = 0; i < pq.length; ++i)\n\t\t\tif (pq[i] >= 0 && (ind == -1 || pq[i] < pq[ind]))\n\t\t\t\tind = i;\n\t\treturn ind;\n\t}",
"public int min()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tint minNumber = array[0];\n\t\t\tfor (int index = 0; index < arraySize; index++) \n\t\t\t{\n\t\t\t\tif (array[index] < minNumber)\n\t\t\t\t{\n\t\t\t\t\tminNumber = array[index];\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn minNumber;\n\t\t}\n\t\tSystem.out.println(\"Syntax error, array is empty.\");\n\t\treturn -1;\n\n\t}",
"private double[] getMin(double[][] res) {\r\n\t\tdouble min[] = new double [3];\r\n\t\t\tmin[0] = res[0][0];\r\n\t\tfor(int i = 0 ; i < res.length ; i ++){\r\n\t\t\tfor(int j = 0 ; j < res.length ; j++)\r\n\t\tif(res[i][j] < min[0] && res[i][j] != -1){\r\n\t\t\tmin[0] = res[i][j];\r\n\t\t\tmin[1] = i;\r\n\t\t\tmin[2] = j;\r\n\t\tSystem.out.println(\"test\" + res[i][j]);\r\n\t\t}\r\n\t\t}\r\n\t\treturn min;\r\n\t}",
"public double getMinValue() {\n double min = Double.POSITIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] < min)\n min = data[i][j];\n }\n }\n return min;\n }",
"static int findMin0(int[] nums) {\r\n \r\n // **** sanity check ****\r\n if (nums.length == 1)\r\n return nums[0];\r\n\r\n // **** check if there is no rotation ****\r\n if (nums[nums.length - 1] > nums[0])\r\n return nums[0];\r\n\r\n // **** loop looking for the next smallest value ****\r\n for (int i = 0; i < nums.length - 1; i++) {\r\n if (nums[i] > nums[i + 1])\r\n return nums[i + 1];\r\n }\r\n\r\n // **** min not found ****\r\n return -1;\r\n }",
"public static int getMin(int arr[][]) {\n\t\tint minNum;\n\t\t\n\t\tminNum = arr[0][0];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tfor (int j = 0; j < arr[i].length; j++) {\n\t\t\t\tif (arr[i][j] < minNum) {\n\t\t\t\t\tminNum = arr[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t} // end of outer for\n\t\treturn minNum;\n\t}",
"private double findMin(){\r\n Set<Map.Entry<Double, Double>> list = heap.entrySet();\r\n double minKey = heap.firstKey();\r\n double minVal = MAX_WEIGHT;\r\n if (list != null){\r\n for (Map.Entry<Double, Double> entry: list){\r\n if (minVal > entry.getValue()){\r\n minVal = entry.getValue();\r\n minKey = entry.getKey();\r\n }\r\n }\r\n }\r\n return minKey;\r\n }",
"public static float min(final float[] data) {\r\n float min = Float.MAX_VALUE;\r\n for (final float element : data) {\r\n if (min > element) {\r\n min = element;\r\n }\r\n }\r\n return min;\r\n }",
"public static double findMin(double[] da) {\n\n\t\t// fjern = \"0.0\" når metoden implementeres for ikke få forkert minimum\n\t\tdouble min = da[0];\n\t\t\n\t\t// TODO\n\t\t// OPPGAVE - START\n\t\tfor(double d : da) {\n\t\t\tif(d < min) {\n\t\t\t\tmin = d;\n\t\t\t}\n\t\t}\n\t\t// OPPGAVE - SLUT\n\t\treturn min;\n\t}",
"public int findMin(int[] num) {\n \t\n \tif (num.length == 1) {\n \t return num[0];\n \t}\n \t\n \tint up = num.length - 1,\n \t low = 0,\n \t mid = (up + low) / 2;\n \twhile (up > low) {\n \t if (mid + 1 < num.length && mid - 1 >= 0 && num[mid] < num[mid - 1] && num[mid] < num[mid + 1]) {\n \t return num[mid];\n \t }\n \t if (num[mid] > num[up]) {\n \t low = mid + 1;\n \t } else {\n \t up = mid - 1;\n \t }\n \t \n \t mid = (up + low) / 2;\n \t}\n \treturn num[mid];\n\t}",
"public Score lowestScore()\n {\n Score lowest = new Score();\n int smallSoFar = 201;\n if(scores[0] == null)\n {\n return null;\n }\n else\n {\n for(int i = 0; i < scores.length; i++)\n {\n lowest = scores[0];\n if(scores[i] == null)\n {\n break;\n }\n if(scores[i].getScore() < lowest.getScore())\n {\n lowest = scores[i];\n }\n \n }\n return lowest;\n } \n }",
"private static int[] FindLowest(int[][] terrainMap) {\n\n int[] lowestPosition = {-1, -1};\n int lowestValue = terrainMap[0][0];\n\n int i, j;\n\n for (i = 0; i < terrainMap.length; i++) {\n for (j = 0; j < terrainMap[0].length; j++) {\n if (terrainMap[i][j] < lowestValue) {\n lowestValue = terrainMap[i][j];\n lowestPosition[0] = i;\n lowestPosition[1] = j;\n }\n }\n\n }\n\n return lowestPosition;\n\n }",
"private static int indexOfSmallest(int[] a, int start) {\n int minNum = a[start];\n int minIndex = start;\n for(int i=start; i<a.length; i++){\n if(a[i]<minNum){\n minNum = a[i];\n minIndex = i;\n }\n\n }\n return minIndex;\n }",
"public Integer findSmallestNumber() {\r\n\t\t// take base index element as smallest number\r\n\t\tInteger smallestNumber = numArray[0];\r\n\t\t// smallest number find logic\r\n\t\tfor (int i = 1; i < numArray.length; i++) {\r\n\t\t\tif (numArray[i] != null && numArray[i] < smallestNumber) {\r\n\t\t\t\tsmallestNumber = numArray[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t// return smallest number from the given array\r\n\t\treturn smallestNumber;\r\n\t}",
"private double getMin() {\n return Collections.min(values.values());\n }",
"private double min(double[] vector){\n if (vector.length == 0)\n throw new IllegalStateException();\n double min = Double.MAX_VALUE;\n for(double e : vector){\n if(!Double.isNaN(e) && e < min)\n min = e;\n }\n return min;\n }",
"public static int min(int[] a) throws IllegalArgumentException {\n if (a == null || a.length == 0) {\n throw new IllegalArgumentException();\n }\n int min = a[0];\n \n if (a.length > 1) {\n for (int i = 1; i < a.length; i++) {\n if (a[i] < min) {\n min = a[i];\n }\n }\n }\n return min;\n }",
"public static int findMinElement(int[] array) {\n if(array.length < 1) {\n throw new IllegalArgumentException(\"array is empty\");\n }\n int left = 0;\n int right = array.length - 1;\n int mid = (left + right) / 2;\n while(left < right) {\n if(array[(mid - 1) % array.length] > array[mid]) {\n return array[mid];\n } else if (array[mid] < array[right]) {\n right = mid - 1;\n } else {\n left = mid + 1;\n }\n mid = (left + right) / 2;\n }\n return array[mid];\n }",
"public static int findMin(int[] A) {\n\t\tint ans = 0;\n\t\tfor(int i=1; i<A.length; i++) {\n\t\t\tif(ans > A[i]) {\n\t\t\t\tans = A[i];\n\t\t\t}\n\t\t}\n\t\treturn ans;\n\t}",
"public static int indexOfSmallestElement(int[] array) {\n\t\tint min = array[0];\n\t\tint minIndex = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (array[i] < min) {\n\t\t\t\tmin = array[i];\n\t\t\t\tminIndex = i;\n\t\t\t}\n\t\t}\n\t\treturn minIndex;\t\n\t}",
"private int[] getLowestPricesInTerm(int[] prices){\n int lowest = Integer.MAX_VALUE;\n int index = -1;\n for(int i=0;i<prices.length;i++){\n if(prices[i]<lowest){\n lowest = prices[i];\n index = i;\n }\n }\n return new int[]{lowest,index};\n }",
"public int eightMin(int[] array) {\n\t\tcountMin++;\n\t\tif (array.length != 8)\n\t\t\treturn -1;\n\t\telse {\n\t\t\tint min = array[0];\n\t\t\tint pos = 0;\n\n\t\t\tfor (int i = 1; i < array.length; i++) {\n\t\t\t\tif (array[i] < min) {\n\t\t\t\t\tpos = i;\n\t\t\t\t\tmin = array[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn pos;\n\t\t}\n\t}",
"public static float waveDataGetLowestValue(ArrayList<Float> wave){\r\n float lowestWaveValue = Collections.min(wave);\r\n return lowestWaveValue;\r\n\r\n }",
"public static void main(String[] args) {\n int array[] = new int[]{110, 99, 34, 67, 89, 67, 456, 321, 456, 78, 90, 45, 32, 56, 78, 90, 54, 32, 123, 67, 5, 679, 54, 32, 65};\n System.out.println(FindTheLowestNumber(array));\n }",
"private static int findMin(int startPos,int[] x){\n\t\tint result = startPos;\n\t\tfor(int i= startPos;i<x.length;i++){\n\t\t\tif(x[i]<x[result]){\n\t\t\t\tresult = i;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"long smallestpositive(long[] arr, int n){\n\nArrays.sort(arr);\n\nlong res =1;\n\nfor (int i = 0; i < n && arr[i] <= res; i++)\nres = res + arr[i];\n\nreturn res;\n}",
"public double[] getMin(){\n double[] min = new double[3];\n for (Triangle i : triangles) {\n double[] tempmin = i.minCor();\n min[0] = Math.min( min[0], tempmin[0]);\n min[1] = Math.min( min[1], tempmin[1]);\n min[2] = Math.min( min[2], tempmin[2]);\n }\n return min;\n }",
"public DHeap_Item Get_Min()\n {\n\treturn array[0];\n }",
"public static int getIndexOfMin(double[] x) {\n Objects.requireNonNull(x, \"The supplied array was null\");\n int index = 0;\n double min = Double.MAX_VALUE;\n for (int i = 0; i < x.length; i++) {\n if (x[i] < min) {\n min = x[i];\n index = i;\n }\n }\n return (index);\n }",
"private double getMinNumber(ArrayList<Double> provinceValues)\n {\n Double min = 999999999.0;\n\n for (Double type : provinceValues)\n {\n if (type < min)\n {\n min = type;\n }\n }\n return min;\n }",
"public static int min(int[] values) throws MathsException {\r\n\t\tif(values.length < Integer.MIN_VALUE || values.length > Integer.MAX_VALUE)\r\n\t\t\tthrow new MathsException(\"Not ok\");\r\n\t\tint minimum = values[0];\r\n\t\tfor(int i=1;i<values.length;i++)\r\n\t\t\tif(minimum > values[i])\r\n\t\t\t\tminimum = values[i];\r\n\t\treturn minimum;\r\n\t}",
"public int findLowestTemp() {\n\t\t\n\t\tint min = 0;\n\t\tint indexLow = 0;\n\t\tfor (int i=0; i<temps.length; i++)\n\t\t\tif (temps[i][1] < min) {\n\t\t\t\tmin = temps[i][1];\n\t\t\t\tindexLow = 0;\n\t\t\t}\n\t\t\n\t\treturn indexLow;\n\t\t\n\t}",
"static int minimumAbsoluteDifferenceSlower(int[] arr) {\n int smallest = 0;\n for (int i = 0; i < arr.length; i++) {\n for (int j = i + 1; j < arr.length; j++) {\n int current = Math.abs(arr[i] - arr[j]);\n if (i == 0) {\n smallest = current;\n } else if (smallest > current) {\n smallest = current;\n }\n }\n }\n\n return smallest;\n }",
"public static void main(String[] args) {\n int[] myArray = {1, 3, 4, 5, 2, -1, 3};\n System.out.println(getLowestPositiveInteger(myArray));\n }",
"public T findMin();",
"public static double min(double... values) {\n/* 86 */ Objects.requireNonNull(values, \"The specified value array must not be null.\");\n/* 87 */ if (values.length == 0) {\n/* 88 */ throw new IllegalArgumentException(\"The specified value array must contain at least one element.\");\n/* */ }\n/* 90 */ double min = Double.MAX_VALUE;\n/* 91 */ for (double value : values)\n/* 92 */ min = Math.min(value, min); \n/* 93 */ return min;\n/* */ }",
"public double min() {\n/* 305 */ Preconditions.checkState((this.count != 0L));\n/* 306 */ return this.min;\n/* */ }",
"public int cariMinimum(int[] min) {\n\t\tint minimum = min[0];\n\t\tint jumlah = min.length;\n\t\tfor (int i = 0; i < jumlah; i++) {\n\t\t\tif (min[i] < minimum) {\n\t\t\t\tminimum = min[i];\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}",
"public double minXp(){\n\t\tmin = xp[0];\n\t\tfor(int i=1;i<xp.length;i++){\n\t\t\tif(xp[i]<min){\n\t\t\t\tmin=xp[i];\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}",
"public static int getMin(int[] scores) {\r\n\t\t\r\n\t\tint temp = 100;\r\n\t\tfor(int i = 0; i < scores.length; ++i) {\r\n\t\t\t\r\n\t\t\tif (scores[i] < temp) {\r\n\t\t\t\ttemp = scores[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn temp;\r\n\t\r\n\t}",
"private Point lowestFInOpen() {\n\t\tPoint lowestP = null;\n\t\tfor (Point p : openset) {\n\t\t\tif (lowestP == null) \n\t\t\t\tlowestP = p;\n\t\t\telse if (fscores.get(p) < fscores.get(lowestP))\n\t\t\t\tlowestP = p;\n\t\t}\n\t\treturn lowestP;\n\t}",
"public E returnMinElement(){\r\n if (theData.size() <= 0) return null;\r\n\r\n E min = theData.get(0).getData();\r\n\r\n for (int i = 0; i< theData.size() ; i++){\r\n if (min.compareTo(theData.get(i).getData()) > 0 ){\r\n min = theData.get(i).getData();\r\n }\r\n }\r\n return min;\r\n }",
"public static float min(float [] array, boolean [] isValid)\r\n\t{\r\n\t\tfloat minValude = Float.MAX_VALUE;\r\n\t\tfor (int i = 0; i < isValid.length; i++)\r\n\t\t{\r\n\t\t\tif (isValid[i])\r\n\t\t\t{\r\n\t\t\t\tminValude = array[i];\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 1; i < array.length; i++)\r\n\t\t{\r\n\t\t\tif (array[i] < minValude && isValid[i])\r\n\t\t\t{\r\n\t\t\t\tminValude = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn minValude;\r\n\t}",
"public int minJump(int[] array) {\n if (array == null || array.length <= 1) {\n return 0;\n }\n int[] minJump = new int[array.length];\n minJump[0] = 0;\n for (int i = 1; i < array.length; i++) {\n minJump[i] = -1;\n for (int j = i - 1; j >= 0; j--) {\n if (j + array[j] >= i && minJump[j] != -1) {\n if (minJump[j] + 1 < minJump[i] || minJump[i] == -1) {\n minJump[i] = minJump[j] + 1;\n }\n }\n }\n }\n return minJump[minJump.length - 1];\n }",
"public void minimum()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(rowTick[i]==8888)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(cost[i][j]<min)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmin=cost[i][j];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"int minKey(float key[], Boolean mstSet[]){\n float min = Float.MAX_VALUE;\n int min_index = -1;\n \n for (int v = 0; v < V; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n \n return min_index;\n }",
"public int findMin(int[] nums) {\n int n = nums.length;\n int l = 0;\n int r = n - 1;\n int m;\n while (l + 1 < r) {\n m = (l + r) / 2;\n if (nums[m] > nums[l]) {\n l = m;\n }\n else if (nums[m] < nums[r]) {\n r = m;\n }\n }\n \n return Math.min(nums[0], Math.min(nums[l], nums[r]));\n }",
"private Point findStartPoint(){\n Point min = points.get(0);\n for (int i = 1; i < points.size(); i++) {\n min = getMinValue(min, points.get(i));\n }\n return min;\n }",
"public int getMin() {\n\t\t\treturn harr[0];\n\t\t}",
"Object getMinimumValue(Object elementID) throws Exception;",
"private static Key min(Key... ks) {\n\t\tif (ks == null || ks.length == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tKey min = ks[0];\n\t\tfor (int i = 1; i < ks.length; i++) {\n\t\t\tif (ks[i].compareTo(min) < 0) {\n\t\t\t\tmin = ks[i];\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}",
"public FindMinimumInRotatedSortedArray() {\n\t\t// Initialization here.\n\t\t// this.count = 0;\n\t}",
"static int findMin(int[] nums) {\r\n \r\n // **** sanity check(s) ****\r\n if (nums.length == 1)\r\n return nums[0];\r\n\r\n // **** initialization ****\r\n int left = 0;\r\n int right = nums.length - 1;\r\n\r\n // **** check if there is no rotation ****\r\n if (nums[right] > nums[left])\r\n return nums[left];\r\n\r\n // **** binary search approach ****\r\n while (left < right) {\r\n\r\n // **** compute mid point ****\r\n int mid = left + (right - left) / 2;\r\n\r\n // **** check if we found min ****\r\n if (nums[mid] > nums[mid + 1])\r\n return nums[mid + 1];\r\n\r\n if (nums[mid - 1] > nums[mid])\r\n return nums[mid];\r\n\r\n // **** decide which way to go ****\r\n if (nums[mid] > nums[0])\r\n left = mid + 1; // go right\r\n else\r\n right = mid - 1; // go left\r\n }\r\n\r\n // **** min not found (needed to keep the compiler happy) ****\r\n return 69696969;\r\n }",
"Double getMinimumValue();",
"public static int minimumAbsoluteDifference(int[] arr) {\n Arrays.sort(arr);\n int smallest = Math.abs(arr[0] - arr[arr.length - 1]);\n\n for (int i = 0; i < arr.length; i++) {\n if (i + 1 < arr.length) {\n int current = Math.abs(arr[i + 1] - arr[i]);\n if (smallest > current) {\n smallest = current;\n }\n }\n }\n\n return smallest;\n }",
"public float min(Collection<Float> data){\r\n return Collections.min(data);\r\n }",
"public int findMin(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n if (nums.length == 1) {\n return nums[0];\n }\n int l = 0;\n int r = nums.length - 1;\n while (l < r) {\n int m = (l + r) / 2;\n if (m > 0 && nums[m] < nums[m - 1]) {\n return nums[m];\n }\n if (nums[l] <= nums[m] && nums[m] > nums[r]) {\n l = m + 1;\n } else {\n r = m - 1;\n }\n }\n return nums[l];\n }",
"public abstract int findRowMin(boolean z, int i, int[] iArr);",
"public int[] smallestRange(int[][] arrays) {\n \n int[] pointer = new int[arrays.length];\n int max = Integer.MIN_VALUE;\n int minY = Integer.MAX_VALUE;\n int minX = 0;\n boolean flag = true;\n \n // PriorityQueue<Integer> queue = new PriorityQueue<>((i,j)-> arrays[i][pointer[i]] - arrays[j][pointer[j]]);\n \n PriorityQueue<Integer> queue = new PriorityQueue<>(new Comparator<Integer>(){\n public int compare(Integer i, Integer j){\n return arrays[i][pointer[i]] - arrays[j][pointer[j]];\n }\n });\n \n for(int i = 0; i < arrays.length; i++){\n queue.offer(i);\n max = Math.max(max, arrays[i][0]);\n }\n \n for(int i = 0; i < arrays.length && flag; i ++){\n for(int j = 0; j < arrays[i].length && flag; j++){\n int minTemp = queue.poll();\n if(minY - minX > max - arrays[minTemp][pointer[minTemp]]){\n minX = arrays[minTemp][pointer[minTemp]];\n minY = max;\n }\n pointer[minTemp]++;\n if(pointer[minTemp] == arrays[minTemp].length){\n flag = false;\n break;\n }\n queue.offer(minTemp);\n max = Math.max(max, arrays[minTemp][pointer[minTemp]]);\n }\n }\n return new int[]{minX, minY};\n }",
"public int findMinimum(int[] numbers, int length)\n {\n }"
] |
[
"0.8458062",
"0.812835",
"0.81244195",
"0.8086573",
"0.79237276",
"0.7892053",
"0.7825355",
"0.7818337",
"0.7810177",
"0.77952415",
"0.7703595",
"0.7671368",
"0.7651772",
"0.76509553",
"0.76348686",
"0.7603415",
"0.76010346",
"0.75039023",
"0.75007737",
"0.749842",
"0.7491761",
"0.74873257",
"0.74751836",
"0.7470812",
"0.74502283",
"0.74266136",
"0.7426167",
"0.74037415",
"0.7365665",
"0.7348044",
"0.73326343",
"0.73128074",
"0.73122966",
"0.7303083",
"0.7301198",
"0.7289366",
"0.7239253",
"0.72071266",
"0.7186958",
"0.7182778",
"0.716504",
"0.7124882",
"0.7123492",
"0.7095591",
"0.7086364",
"0.70602214",
"0.70211667",
"0.7003027",
"0.6998266",
"0.69944173",
"0.69895625",
"0.6978859",
"0.6972183",
"0.6943579",
"0.6941953",
"0.6933715",
"0.69191253",
"0.6916971",
"0.69162214",
"0.6901715",
"0.68972003",
"0.6878885",
"0.68648016",
"0.6826128",
"0.6806086",
"0.6797378",
"0.6785407",
"0.6777634",
"0.67722064",
"0.6761081",
"0.67514324",
"0.6744282",
"0.67275995",
"0.6710824",
"0.6710076",
"0.6686386",
"0.6681707",
"0.6672125",
"0.66716784",
"0.6670173",
"0.6657885",
"0.6657883",
"0.6654826",
"0.6650151",
"0.6648549",
"0.6627676",
"0.6617038",
"0.66075563",
"0.6603868",
"0.6602286",
"0.6602034",
"0.66000354",
"0.6597223",
"0.6593645",
"0.6585358",
"0.65845954",
"0.65842223",
"0.65813893",
"0.65678585",
"0.6559437",
"0.6548387"
] |
0.0
|
-1
|
iterating through the array to find the name that matches with the leader value
|
public static String[] displayleader(boolean[] ineligible, String[] name, float []top3, float[] stat, int numberofplayer)
{
String top1name,top2name,top3name;
top1name = top2name = top3name = ""; // initialize null value of all names
int top1counter,top2counter,top3counter;
top1counter = top2counter = top3counter = 0; // initialize 0 to all counters
String top1namearray[] = new String[50]; // arrays to hold top3 names
String top2namearray[] = new String[50];
String top3namearray[] = new String[50];
int a,b,c;
a=b=c= 0;
for (int i=0;i<numberofplayer;i++)
{
if (top3[0]==stat[i] && ineligible[i] != true) { // if the value of top1 equals the stat of player
if (top1counter < 1) { // if the first place is only one person
top1namearray[a]=name[i]; // putting in array to sort
top1name=name[i]; // assign name to top1name array
a++;
} else {
top1namearray[a]=name[i]; // if there is more than one person with the top1 value
top1name = top1name + ", " + name[i];//if there is more than one leader, it prints out the names of the leader with comma between.
a++;
}
top1counter++;
}
if (top3[1]==stat[i] && ineligible[i] != true) { // if the value of top2 equals the stat of player
if (top2counter < 1) {
top2namearray[b]=name[i];
top2name=name[i];
b++;
} else {
top2namearray[b]=name[i];
top2name = top2name + ", " + name[i];//if there is more than one leader, it prints out the names of the leader with comma between.
b++;
}
top2counter++;
}
if (top3[2]==stat[i] && ineligible[i] != true) {// if the value of top1 equals the stat of player
if (top3counter < 1) {
top3namearray[c]=name[i];
top3name=name[i];
c++;
} else {
top3namearray[c]=name[i];
top3name = top3name + ", " + name[i];//if there is more than one leader, it prints out the names of the leader with comma between.
c++;
}
top3counter++;
}
}
sortname(top1namearray);// sorting the names of top1players in alphabetical order
sortname(top2namearray);// sorting the names of top2players in alphabetical order
sortname(top3namearray);// sorting the names of top3players in alphabetical order
int q =1;
if(top1counter >1) { top1name = top1namearray[0];} // reassigning name of top 1 value in alphabetical order if there is more than one
while (top1namearray[q]!=null&&top1counter!=1) { // while there is more than 1 player with top1value and while top1name is not null
top1name = top1name + ", " + top1namearray[q]; //inserting comma between names
q++;
}
q=1;
if(top2counter >1) { top2name = top2namearray[0];}// reassigning name of top 1 value in alphabetical order if there is more than one
while (top2namearray[q]!=null&&top2counter!=1) { // while there is more than 1 player with top2value and while top2name is not null
top2name = top2name + ", " + top2namearray[q]; //inserting comma between names
q++;
}
q=1;
if(top3counter >1) { top3name = top3namearray[0];}// reassigning name of top 1 value in alphabetical order if there is more than one
while (top3namearray[q]!=null&&top3counter!=1) { // while there is more than 1 player with top3value and while top3name is not null
top3name = top3name + ", " + top3namearray[q]; //inserting comma between names
q++;
}
if(numberofplayer ==1) {top2name = null; top3name = null;} // if there is only one player top2 and top3 does not exist
else if (numberofplayer==2&&top1counter<2) {top3name =null;} // if there is only 2 players top3 is null
else if(numberofplayer==2&&top1counter>1) {top2name =null;top3name=null;} // if there is 2 players but 2players have tie value then top2 and top3 is null
else if(top1counter>2) {top2name=null;top3name=null;} // if there is more than 2 ties with top1value, top2 and top3 does not exist
else if(top2counter>1||top1counter>1) {top3name=null;} // if there is more than one top1 or top2, then top3 does not exist
String []top3names = {top1name,top2name,top3name};
return top3names;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static void findLeader(Integer[] array) {\n Map<Integer, Integer> map = new HashMap<>();\n for (int i = 0; i < array.length; i++) {\n // Map key -> value from input array\n Integer key = array[i];\n // Map value -> occurrences number\n Integer count = map.get(key);\n if (count == null) {\n // if null put new occurrence with count 1\n map.put(key, 1);\n } else {\n // if not null increment occurrences and replace in map (put works the same in this situation)\n // https://stackoverflow.com/a/35297640\n count++;\n map.replace(key, count);\n }\n }\n Integer leader = 0;\n Integer maxCount = 0;\n // Iterator enables you to cycle through a collection, obtaining or removing elements\n // https://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html\n // Take map iterator\n Iterator it = map.entrySet().iterator();\n // Loop till iterator has next element\n while (it.hasNext()) {\n // Take map next entry -> map entry consists of key and value\n Map.Entry pair = (Map.Entry) it.next();\n // Check if map value (occurrences number) is greater than current maximum\n if ((Integer) pair.getValue() > maxCount) {\n // if true swap current maxCount and leader\n maxCount = (Integer) pair.getValue();\n leader = (Integer) pair.getKey();\n }\n }\n // Check if occur more than 50%\n if(maxCount < array.length / 2 + 1){\n leader = -1;\n }\n System.out.println(leader);\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 }",
"private Creature findLeader(Game game){\n Creature lead = facCreatures.firstElement();\n // App.log(\"Leader of \" + fFaction.getName() + \" is \" + lead);\n return lead;\n }",
"public static LinkedList<Actor> nameSearch(String name) {\n //sets name to lower case\n String hname = name.toLowerCase();\n //hashes the lower cased name\n int hash = Math.abs(hname.hashCode()) % ActorList.nameHashlist.length;\n //finds the location of the linked list\n LinkedList<Actor> location = ActorList.nameHashlist[hash];\n //sets the head to the head of the linked list\n LinkedList.DataLink head = location.header;\n\n\n while (head.nextDataLink != null) {\n //runs until next data link is null and gets each Actor\n Actor actor = (Actor) head.nextDataLink.data;\n //checks the name of the actor to inputted name\n if (actor.getName().toLowerCase().equals(hname)) {\n //if it's the same it returns the actor\n return location;\n //or moves to next link\n } else {\n head = head.nextDataLink;\n }\n }\n //returns null if the list does not match input\n return null;\n\n\n }",
"public static float[] FindingKleader(boolean[] ineligible, float[] kstat, int numberofplayer)\n {\n float first,second,third;\n first=second=third = Float.POSITIVE_INFINITY; // assigned positive infinity so any integer lower than infinity can be assigned to leader value\n for (int a = 0; a<numberofplayer; a++) // for number of players\n {\n\n if ((first>kstat[a]||first==kstat[a]) && ineligible[a] != true)// if stat exists and the stat is equal to or greater than first \n {\tif(first==kstat[a]) { // do nothing if the stat is same fisrt value\n \t}\n \telse { // if not tie\n third = second; // previous second value is assigned to third \n second = first; // previous first value is now assigned to second\n first = kstat[a]; // value of the stat is now assigned to first\n \t}\n }\n else if((second>kstat[a]||second==kstat[a]) && ineligible[a] != true) {\n \tif(second==kstat[a]) {\n \t}\n \telse {\n \tthird = second;// previous second value is assigned to third\n \tsecond = kstat[a]; // value of second is stat \n \t}\n \t}\n \telse if((third>kstat[a]||third==kstat[a]) && ineligible[a] != true) {\n \t\tif(third==kstat[a]) {\n \t}\n \telse {\n \tthird = kstat[a]; // value of third is replace by the value of stat\n \t}\n }\n }\n float[] top3kleader = {first,second,third};\n return top3kleader;\n }",
"private boolean searchName(String username, ArrayList<String> existingList) {\n int low = 0;\n int high = existingList.size() - 1;\n int mid;\n\n while (low <= high) {\n mid = (low + high) / 2;\n String name = existingList.get(mid);\n String substr = name.substring(0, name.indexOf(\" \"));\n\n if (substr.compareToIgnoreCase(username) < 0) {\n low = mid + 1;\n } else if (substr.compareToIgnoreCase(username) > 0) {\n high = mid - 1;\n } else {\n return true;\n }\n\n }\n\n return false;\n }",
"public static void oneTeam(String[] name, int[] team)\n {\n int a=0;\n System.out.println(\"The following players played with one team for their entire NHL careers:\");\n for(int i=0;i<team.length;i++)\n { \n if(team[i]==1)\n {\n System.out.println(name[i]);\n }//end of if statement\n }//end of for loop\n }",
"public static void searchName(Contact[] myContacts, String find)\n {\n int high = myContacts.length;\n int low = -1;\n int probe;\n while(high - low > 1)\n {\n probe = (high+low)/2;\n if(myContacts[probe].getName().compareTo(find) > 0)\n {\n high = probe;\n }\n else\n {\n low = probe;\n if(myContacts[probe].getName().compareTo(find) == 0)\n {\n break;\n }\n }\n }\n System.out.println(\"Find results: \");\n if((low>=0)&&(myContacts[low].getName().compareTo(find) == 0))\n {\n findMoreNames(myContacts, low, find);\n }\n else\n {\n System.out.println(\"There are no listings for \"+find);\n }\n }",
"private static int getLeader(int [] A) {\n int leader = 0;\n Map<Integer, Integer> occurrencesCounter = new HashMap<>();\n int N = A.length;\n\n if(N == 0)\n return -1;\n else if (N == 1)\n return 0;\n\n\n for(int i =0; i< A.length; i++) {\n if(!occurrencesCounter.containsKey(A[i])) {\n occurrencesCounter.put(A[i], 1);\n }else {\n occurrencesCounter.replace(A[i], occurrencesCounter.get(A[i])+1);\n if(occurrencesCounter.get(A[i]) > (N/2.0))\n leader = i;\n else leader = -1;\n }\n }\n\n return leader;\n }",
"public ArrayList<TakeStock> findMemberByName(String name) {\n\n matches.clear();\n\n for(TakeStock member : mTakeStockList) {\n\n if(member.getProducts_name().toLowerCase().contains(name)){\n matches.add(member);\n }\n\n }\n return matches; // return the matches, which is empty when no member with the given name was found\n }",
"static int searchFirstname(String firstName) {\n for (Person p : people) {\n if (p.getFirstName().contains(firstName))\n return people.indexOf(p);//returns the index of people in the list.\n\n }\n return -1;\n }",
"private Employee searchEmployee(String empName)\n {\n empName = empName.toLowerCase();\n Employee found = null;\n // Find the employee in the array list\n Iterator<Employee> emp = employees.iterator();\n while(emp.hasNext() && found == null)\n {\n myEmployee = emp.next(); //get employee from array list\n String fullName = myEmployee.getName().toLowerCase();\n String[] FirstLast = fullName.split(\" \");\n \n if (\n matchString(fullName,empName) ||\n matchString(FirstLast[0],empName) ||\n matchString(FirstLast[1],empName)\n )\n found = myEmployee;\n } \n return found;\n }",
"private JSONObject lookupJsonArrByName(String patName, JSONArray resultsArr){\n for(Object jObj: resultsArr){\n JSONObject result = (JSONObject) jObj;\n if(result.getString(\"patientname\").compareToIgnoreCase(patName)==0){\n return result;\n }\n }\n System.out.println(\"Patient not in cache\");\n\n return null;\n\n }",
"public Utente containUsername(String username) {\r\n \t\r\n \tfor(Utente ut: utenti) {\r\n \t\tString us=ut.getUsername();\r\n \t\tif(us.equals(username)) {\r\n \t\t\treturn ut;\r\n \t\t}\r\n \t}\r\n \t\r\n \treturn null;\r\n \t\r\n }",
"static int searchByFirstName(String firstName) {\n for (Contact c : contact)\n if (c.getFirstName().contains(firstName)) //if the firstName is the same then print out the index!\n return contact.indexOf(c);\n\n return -1; //if it did not find the index then you return -1\n }",
"public String searchByName(String name){\n for(Thing things: everything){\n if(things.getName().equalsIgnoreCase(name)){\n return things.toString();\n }\n }\n return \"Cannot Find given Name\";\n }",
"public int[] findUser(String name){\r\n\t\tint[] ctrl= new int[2];\r\n\t\tctrl[0] = 0;\r\n\t\tctrl[1] = 0;\r\n\t\tfor(int i=0; i<user.length && ctrl[0]!=1; i++){\r\n\t\t\tif(user[i]!=null && name.equals(user[i].getUsername()) ){\r\n\t\t\t\tctrl[0]=1;\r\n\t\t\t\tctrl[1]=i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ctrl;\r\n\t}",
"public List<Eetakemon> findEetakemonContain(String name){\n List<Eetakemon>resultlist = new ArrayList<Eetakemon>();\n for (String key: eetakemonmap.keySet()){\n Eetakemon e = eetakemonmap.get(key);\n if(e.getName().contains(name)){\n resultlist.add(e);\n }\n }\n return resultlist;\n }",
"public int nameBinarySearch (String name) {\n\t\t//sorting records by first name alphabetical order\n\t\tthis.nameQuickSort(this.getList(), 0, getSize()-1);\n\t\tint low = 0;\n\t\tint high = this.size-1;\n\t\tint middle;\n\n\t\twhile (low<=high) { \n\t\t\tmiddle = (low+high)/2;\n\t\t\tif (name.compareToIgnoreCase(list[middle].getName()) == 0) { //check if name found\n\t\t\t\treturn middle; //return index\n\t\t\t}\n\t\t\tif (name.compareToIgnoreCase(list[middle].getName()) <0) { //check if name to find is in the lower half\n\t\t\t\thigh = middle-1; //move the high to one lower than the middle\n\t\t\t}\n\t\t\telse { //if it is in higher part of the list\n\t\t\t\tlow = middle+1; //move the low to one higher than the middle\n\t\t\t}\n\t\t}\n\t\t//not found\n\t\treturn -1;\n\t}",
"public static void findNameAndindex(List<String> list1, String name){\n\t\tboolean found = false;\n\t\tfor(String s: list1){\n\t\t\tif(s.contains(name)){\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Found \" + s + \" at index \" + list1.indexOf(name));\n\t\t\t\tfound = true;\n\t\t\t}\t\t\n\t\t}\n\t\tif(!found)\n\t\t\tJOptionPane.showMessageDialog(null, \"Name not found\");\n\t\t\n\t}",
"public ArrayList<NameRecord> getMatches(String partialName){\n\t\tpartialName=partialName.toLowerCase();\n\t\tArrayList<NameRecord> result = new ArrayList<NameRecord>();\n\t\tfor (int i = 0;i<names.size();i++){\n\t\t\tString s = names.get(i).toLowerCase();\n\t\t\tif (s.contains(partialName)){\n\t\t\t\tresult.add(list.get(i));\n\t\t\t}\n\t\t}\t\n\t\treturn result;\n\t}",
"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 }",
"public void findLeader(String fileName) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(fileName));\n\t\t\tString line;\n\n\t\t\t// Find Reader (1): First instruction of program\n\t\t\tline = br.readLine();\n\t\t\tLeaders.put(lineCount, line);\n\t\t\tlineCount++;\n\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t// Find Reader (2): Target instruction of branch\n\t\t\t\tif (line.charAt(0) == '$') {\n\t\t\t\t\tLeaders.put(lineCount, line);\n\n\t\t\t\t}\n\t\t\t\t// Find Reader (3): Next instruction of branch instruction\n\t\t\t\telse if (line.charAt(12) == 'j') {\n\t\t\t\t\tline = br.readLine();\n\t\t\t\t\tlineCount++;\n\t\t\t\t\tLeaders.put(lineCount, line);\n\t\t\t\t}\n\t\t\t\tlineCount++;\n\t\t\t}\n\n\t\t\ttotalLineNum = lineCount - 1;\n\t\t\tlineCount = 1;\n\n\t\t\t// Print Leaders\n\t\t\tSystem.out.println(\"------------------ Leader ------------------\");\n\t\t\tleaderLineNum = new int[Leaders.size() + 1];\n\t\t\tint leaderNumber = 0;\n\t\t\tfor (int i = 1; i <= totalLineNum; i++) {\n\t\t\t\tif (Leaders.containsKey(i)) {\n\t\t\t\t\tSystem.out.printf(\"%3d: %s\\n\", i, Leaders.get(i));\n\t\t\t\t\tleaderLineNum[leaderNumber] = i;\n\t\t\t\t\tleaderNumber++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tleaderLineNum[leaderLineNum.length - 1] = totalLineNum;\n\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"::: I/O error\");\n\t\t\tSystem.exit(1);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"::: I/O error\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}",
"public static void searchFriends(String name) {\n\t\tScanner reader = new Scanner(System.in);\t\n\t\tSystem.out.println(\"Please Enter the Profile Name of the Person you need to Search\");\n\t\tString profilename = reader.nextLine();\n\t\t\n\t\t\n\t\tif(profiles.get(index.indexOf(name)).searchFriends(profilename)) {\n\t\t\tSystem.out.println(\"Yes \" + name + \" is a friend of \"+ profilename);\t\n\t\t}else {\n\t\t\tSystem.out.println(\"No \" + name + \" is not a friend of \"+ profilename);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Click Enter to go back to Menu\");\n\t\t\n\t\tString input = reader.nextLine();\n\n\t\t\t\n\t\n\t}",
"public void findL()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n if(scores[i][j] < low)\n low = scores[i][j];\n }\n }\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n if(scores[i][j] == low)\n System.out.println(names[i] + \" had the lowest score of \" + low);\n break;\n \n }\n \n }\n }",
"void searchByName(String name) {\n\t\tint i=0;\n\t\t\tfor (Entity entity : Processing.nodeSet) {\n\t\t\t\t\n\t\t\t\t/* if Entity is person */\n\t\t\t\tif(entity instanceof Person) {\n\t\t\t\t\tPerson person=(Person)entity;\n\t\t\t\t\tif(person.getName().equalsIgnoreCase(name)){\n\t\t\t\t\tSystem.out.println(\"the person details are :\");\n\t\t\t\t\tSystem.out.println(\" name : \" + person.getName());\n\t\t\t\t\tSystem.out.println(\" phone : \" + person.getPhone());\n\t\t\t\t\tSystem.out.println(\" email : \" + person.getEmail());\n\t\t\t\t\tSystem.out.println(\" school : \" + person.getSchool());\n\t\t\t\t\tSystem.out.println(\" college : \" + person.getCollege() + \"\\n\");\n\t\t\t\t\t\tfor(String interest:person.getInterests()){\n\t\t\t\t\t\t\tSystem.out.println(\" interest in : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/* If entity is organization */\n\t\t\t\telse {\n\t\t\t\t\tOrganization organization=(Organization)entity;\n\t\t\t\t\tif(organization.getName().equalsIgnoreCase(name)){\n\t\t\t\t\t\tSystem.out.println(\"the person details are :\");\n\t\t\t\t\t\tSystem.out.println(\" name : \" + organization.getName());\n\t\t\t\t\t\tSystem.out.println(\" phone : \" + organization.getPhone());\n\t\t\t\t\t\tSystem.out.println(\" email : \" + organization.getEmail());\n\t\t\t\t\t\tfor(String interest:organization.getCourses()){\n\t\t\t\t\t\t\tSystem.out.println(\" courses are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(String interest:organization.getFaculty()){\n\t\t\t\t\t\t\tSystem.out.println(\" Faculties are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(String interest:organization.getPlacements()){\n\t\t\t\t\t\t\tSystem.out.println(\" Placements are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif(i>=Processing.nodeSet.size()) {//if no such name exist\n\t\t\t\tSystem.out.println(name+\" does not exist\");\n\t\t\t}\n\t}",
"public Keeper[] searchByName(String name){\r\n ArrayList<Keeper> keeperList = new ArrayList<Keeper>();\r\n for(Keeper keeper:keepers){\r\n if(keeper.getName().contains(name)){\r\n keeperList.add(keeper);\r\n }\r\n }\r\n if(keeperList.isEmpty()){return null;}\r\n return keeperList.toArray(new Keeper[keeperList.size()]); \r\n }",
"private boolean checkUserNameExists(ArrayList<Member> members) throws Exception {\nfor(Member member:members) {\nif(this.userName.equals(member.userName)){\nreturn true;\n}\n}\nreturn false;\n}",
"public static int findName(List<AirportEntry> data,String targetName)\n {\n for(AirportEntry entry : data)\n {\n if(entry.getName().equalsIgnoreCase(targetName))\n return entry.getID();\n }\n return -1;\n }",
"private int findValue(String v, String[] names, int[] values, int dflt) {\n if (v == null) {\n return dflt;\n }\n v = v.toLowerCase();\n for (int fidx = 0; fidx < names.length; fidx++) {\n if (v.equals(names[fidx])) {\n return values[fidx];\n }\n }\n\n return dflt;\n\n }",
"public Patient[] findID(String sv)\r\n\t{\r\n\t\tPatient[] foundPatients = new Patient[999];//Creates a blank array\r\n\t\tint count = 0;\r\n\r\n\t\tfor(int i=0; arrayPatients[i]!=null ;i++)//loops through the array\r\n\t\t{\r\n\t\t\tif(arrayPatients[i].forename.contains(sv)||arrayPatients[i].surname.contains(sv))//sees if either surname or firstname contain the search term allowing for partieal searching\r\n\t\t\t{\r\n\t\t\t\tfoundPatients[count] = arrayPatients[i];//if found it adds the patient to an array\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn foundPatients;//that array is then returned\r\n\t}",
"static int[] climbingLeaderboard(int[] scores, int[] alice) {\n /*\n * Write your code here.\n */\n List<Integer> ranks = new ArrayList<>();\n int i=0;\n while(i<scores.length-1) {\n ranks.add(scores[i]);\n int j=i+1;\n while(j<scores.length && scores[i]==scores[j]) {\n j+=1;\n }\n i=j;\n }\n ranks.add(scores[scores.length-1]);\n int[] aliceRank = new int[alice.length];\n for (int j=0; j< alice.length; j++) {\n int index = Collections.binarySearch(ranks, alice[j],Comparator.reverseOrder());\n aliceRank[j] = index > 0 ? index + 1 : index == 0 ? 1 : Math.abs(index);\n }\n return aliceRank;\n }",
"public Person find(String name) {\n\t\tfor (Person person : listOfPeople) {\n\t\t\tif(person.getName().contains(name)) {\n\t\t\t\treturn person;\n\t\t\t}\n\t\t}\n\t\treturn null; // only reached if person with name not found by search.\n\t}",
"public static Object find(ArrayList<Course> list, String name) {\r\n\t\tfor (Course course : list) {\r\n\t\t\tif (course.courseName == name) {\r\n\t\t\t\treturn \"Index: \" + list.indexOf(course);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private WordRecord lookUp(String word)\n {\n int contains = 0;\n boolean check = false;\n //loops through concordance\n for(int i = 0; i < this.concordance.size();i++)\n {\n //checks to see if the words are equal\n if(word.equalsIgnoreCase(this.concordance.get(i).getWord()))\n {\n //gets location of what position the word is true\n contains = i;\n check = true;\n }\n \n }\n //checks to see if it was found in concordance\n if(check)\n return this.concordance.get(contains);\n \n return null;\n }",
"private int getIndexForName(String teammateName) {\r\n\t\tfor (int x = 0; x < targetTracking.size(); x++) {\r\n\t\t\tif (targetTracking.get(x).getAlly().getName().equals(teammateName)) {\r\n\t\t\t\treturn x;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"public int getPlayerScoreFromHighscoreList(String name) {\n\t\t//if the name isn't found in the list\n\t\tif(highscore.containsKey(name))\n\t\t\treturn 0;\n\t\t\n\t\treturn highscore.get(name);\n\t}",
"protected int indexFromName(String name) {\n for (int index = 0; index < values.length; index++) {\n if (getNames()[index] == name) {\n return index;\n }\n }\n return -1;\n }",
"public void getName(ArrayList<String> document) {\r\n name = \"\";\r\n int atIndex = address.indexOf('@');\r\n String username = address.substring(0, atIndex);\r\n for(int i = 0; i < document.size(); i++)\r\n {\r\n String[] words = document.get(i).split(\" \");\r\n for(int j = 0; j < words.length; j++)\r\n {\r\n if(username.contains(words[j].toLowerCase()))\r\n {\r\n name = document.get(i);\r\n break;\r\n }\r\n }\r\n if(!name.equals(\"\"))\r\n {\r\n break;\r\n }\r\n } \r\n }",
"public Handle search(String name) {\n int homePos = hash(table, name);\n int pos;\n\n // QUADRATIC PROBE\n for (int i = 0; i < table.length; i++) {\n // possibly iterate over entire table, but will\n // likely stop before then\n pos = (homePos + i * i) % table.length;\n if (table[pos] == null) {\n break;\n }\n else if (table[pos] != GRAVESTONE\n && table[pos].getStringAt().equals(name)) {\n return table[pos];\n }\n } // end for\n\n return null;\n }",
"private int indexValue(String value) {\n int loc = openHashCode(value);\n //if the searchVal exist\n if (this.openHashSetArray[loc] == null||!this.openHashSetArray[loc].myList.contains(value))\n return -1;\n else\n return loc;\n\n }",
"@Override\n public String findState(String name) {\n int hash = getHash(name); // Calculate the hash for the input value \n String message;\n int pos = 1;\n Node temp = hashTable[hash]; // Go to the first node in the appropriate linked list\n\n // Traverse the linked list until the value is found or the end of the list is reached\n while (temp != null && name.compareTo(temp.getState().getName()) != 0) {\n temp = temp.getNext();\n pos++;\n }\n if (temp == null) { // Was the end of the list reached\n message = String.format(\"%s was not found\", name);\n } else {\n message = String.format(\"%s is located at Hash: %d Position: %d\", name, hash, pos);\n }\n return message;\n }",
"public void personLookup() {\n\t\tSystem.out.print(\"Person: \");\n\t\tString entryName = getInputForName();\n\t\tphoneList\n\t\t\t.stream()\n\t\t\t.filter(n -> n.getName().equals(entryName))\n\t\t\t.forEach(n -> System.out.println(n));\n\t}",
"public String findWinnerName(){\n\t\t\n\t\tContestant t = contestants[0][0];\n\t\t\n\t\tfor (int i = 0; i < contestants.length; i++) {\n\t\t\tfor (int j = 0; j < contestants[i].length; j++) {\n\t\t\t\tif(contestants[i][j].getScore()>t.getScore()) {\n\t\t\t\t\tt = contestants[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn t.getName();\n\t}",
"public void voteFor (String name)\n {\n boolean searching = true;\n int index = 0;\n\n while(searching)\n {\n if(index < pList.size())\n {\n Personality objectHolder = pList.get(index);\n String personalityName = objectHolder.getName();\n\n if(name.equals(personalityName))\n {\n objectHolder.increaseVotes(1);\n searching = false;\n }\n }\n else\n {\n System.out.println(\"No personality found with the name : \" + name);\n searching = false;\n }\n\n index++;\n }\n }",
"public static String matchNameToSpender(double max, double[] prices, String[] names) {\n\t\tfor (int y = 0; y < prices.length; y++) {\n\t\t\tdouble price = prices[i];\n\n\t\t\tif (max == price) {\n\t\t\t\treturn names[i];\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}",
"public int search(String name){\n\t\tfor(Map.Entry<String, Integer> e : map.entrySet()){\n\t\t\tif(e.getKey().equals(name)){\n\t\t\t\treturn e.getValue();\n\t\t\t}\n\t\t}\n\t\tthrow new NullPointerException();\n\t\t/*\n\t\twhile(pointer < locations.length){\n\t\t\tif(locations[pointer].getName() == name){\n\t\t\t\tmap.put(locations[pointer].getName(), locations[pointer].getID());\n\t\t\t\tpointer++;\n\t\t\t\treturn locations[pointer - 1].getID();\n\t\t\t} else {\n\t\t\t\tmap.put(locations[pointer].getName(), locations[pointer].getID());\n\t\t\t\tpointer++;\n\t\t\t}\n\t\t}\n\t\tthrow new NullPointerException();\n\t\t*/\n\t}",
"public static void leaders(int[] input) {\n\n\t\tfor (int i=0; i < input.length; i++) {\n boolean leader = true;\n int candidate = input[i];\n // check if it's a leader\n int j = i+1;\n while (j<input.length) {\n if (input[j] > input[i]) {\n leader = false;\n break;\n }\n j++;\n }\n if (leader==true) {\n System.out.print(candidate+\" \");\n }\n }\n\t}",
"private static String bestMatch(String s,ArrayList<Token>list) {\n\t\tfor(int i = 0; i<list.size();i++){\n\t\t\tif(list.get(i).value.equals(s)){\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}",
"public int isIn(String name){\r\n\t\tfor(ParamRanking prAux : ranking){\r\n\t\t\tif(prAux.getName().equals(name))\r\n\t\t\t\treturn ranking.indexOf(prAux);\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"Contact searchContact(String searchName){\n for(int i = 0; i < friendsCount; i++){\n if(myFriends[i].name.equals(searchName)){\n return myFriends[i];\n }\n }\n return null;\n }",
"public void findH()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n if(scores[i][j] > high)\n high = scores[i][j];\n }\n }\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n if(scores[i][j] == high)\n System.out.println(names[i] + \" had the highest score of \" + high);\n break;\n \n }\n \n }\n }",
"public String searchName(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username, name from \"+ TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname, name;\n name = \"not found\";\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if (uname.equals(username)) {\n name = cursor.getString(1);\n break;\n }\n } while (cursor.moveToNext());\n }\n\n return name;\n }",
"private int findEmp(String name) {\n int i;\n for (i = 0; i <= counter; i++) {\n \tif(employees[i].name.equals(name))\n \t\treturn i;\n }\n return -1;\n\t}",
"public static float[] Findingleader(boolean[] ineligible,float[] stat, int numberofplayer)\n {\n float first,second,third; // initializing to negative number, so even a zero can be the leader value\n first=second=third = -100;\n for (int a = 0; a<numberofplayer; a++) // loops till a is less than numofplayer\n {\n\n if ((first<stat[a]||first==stat[a])&& ineligible[a] != true)// if stat is higher or same as first, and the stat is not empty\n {\tif(first==stat[a]) { // ignore the tie because the second value will be same as the first value\n \t}\n \telse {\n third = second; // previous second value becomes third \n second = first; // previous fisrt value becomes second now\n first = stat[a]; // replace the first value with stat[a]\n \t}\n }\n else if((second<stat[a]||second==stat[a])&& ineligible[a] != true) { // if stat is higher than or equal to second value\n \tif(second==stat[a]) { // ignoring the tie \n \t}\n \telse {\n \tthird = second; // previous second value is now assigned to third\n \tsecond = stat[a]; // second is replaced by the value of stat[a]\n \t}\n }\n else if((third<stat[a]||third==stat[a])&& ineligible[a] != true) { // if stat is higher than or equal the third value\n \tif(third==stat[a]) { // ignoring the tie value\n \t}\n \telse {\n \tthird = stat[a]; // third value is now replaced by the stat[a]\n \t}\n }\n }\n float []top3value = {first,second,third}; // using array to return more than 1 value\n return top3value; // top3value array\n }",
"@Override\n\tpublic void searchByName() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's name\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t}",
"private String checkName(String name){\n\n if(name.isBlank()){\n name = \"guest\";\n }\n int i = 1;\n if(users.contains(name)) {\n while (users.contains(name + i)) {\n i++;\n }\n name+=i;\n }\n return name;\n }",
"public Amount<Mineral> searchByName(String name){\n\t\tfor(int i=0; i<this.mineralList.size(); i++) {\n\t\t\tif(this.mineralList.get(i).getObject().getName() == name)\n\t\t\t\treturn this.mineralList.get(i);\n\t\t}\n\t\treturn null;\n\t}",
"public Player getPlayerFromList(String name){\n for (Player player : players){\n if (player.getName().equals(name)){\n return player;\n }\n }\n return null; //This will never happen. Will always be found. Only called from the takeoverTerritory method\n }",
"public NameSurferEntry findEntry(String name) {\n\t\tchar ch = name.charAt(0);\n\t\tif(Character.isLowerCase(ch) == true) {\n\t\t\tch = Character.toUpperCase(ch);\n\t\t}\n\t\tString otherLetters = name.substring(1);\n\t\totherLetters = otherLetters.toLowerCase();\n\t\tname = ch + otherLetters;\n\t\tif (nameFromDatabase.containsKey(name)) {\n\t\t\treturn nameFromDatabase.get(name);\n\t\t}\t\t\t\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}",
"private boolean exist(List<PlayerTeam> l, String name) {\n boolean ex = false;\n PlayerTeam curr = l.first();\n while (curr != null) {\n if (curr.getName().equals(name))\n return true;\n curr = l.next();\n }\n return ex;\n }",
"public ArrayList<Literal> lookAround(String agName){\r\n\t\tperceptModel = MapEnv.model;\r\n\t\tArrayList<Literal> lookArr = new ArrayList<Literal>();\r\n\t\tint \t id \t \t = perceptModel.getAgentID(agName);\r\n\t\tLocation lplayer \t = perceptModel.getAgPos(id); \r\n\t\tif(agName != null){\r\n\t\t\t/** Searching direct neighbours to the Agent's location*/\r\n\t\t\tfor(int y = -1; y <= 1; y++){\r\n\t\t\t\tfor(int x = -1; x <= 1; x++){\r\n\t\t\t\t\tif(!(x == 0 && y == 0)){\r\n\t\t\t\t\t\tLocation l = new Location(lplayer.x + x, lplayer.y + y);\r\n//\t\t\t\t\t\tSystem.out.println(\"Player 1 Loc: (\" + lplayer.x + \",\" + lplayer.y + \"):: See Loc (\" + l.x + \",\" + l.y + \")\");\r\n\t\t\t\t\t\tif(perceptModel.getAgAtPos(l) != -1){\r\n\t\t\t\t\t\t\tint agt = perceptModel.getAgAtPos(l);\r\n\t\t\t\t\t\t\tString plyr = perceptModel.getAgName(agt);\r\n\t\t\t\t\t\t\t/** Detects and adds nearby agents flagholder status perception */\r\n\t\t\t\t\t\t\tif(perceptModel.flag.agentCarrying == perceptModel.getAgentID(plyr)){\r\n\t\t\t\t\t\t\t\tLiteral nfh = Literal.parseLiteral(\"flagholder(\" + plyr + \")\");\r\n\t\t\t\t\t\t\t\tlookArr.add(nfh);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tLiteral np = Literal.parseLiteral(\"close(\" + plyr + \")\"); \r\n\t\t\t\t\t\t\t\tlookArr.add(np);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/** Searching an single space further in the cardinal directions*/\r\n\t\t\tfor(int y = -2; y <= 2; y+=4){\r\n\t\t\t\tfor(int x = -2; x <= 2; x+=4){\r\n\t\t\t\t\tLocation l = new Location(lplayer.x + x, lplayer.y + y);\r\n\t//\t\t\t\tSystem.out.println(\"Player Loc: (\" + lplayer.x + \",\" + lplayer.y + \"):: See Loc (\" + l.x + \",\" + l.y + \")\");\r\n\t\t\t\t\tif(perceptModel.getAgAtPos(l) != -1 ){\r\n\t\t\t\t\t\tint \tagt = perceptModel.getAgAtPos(l);\r\n\t\t\t\t\t\tString plyr = perceptModel.getAgName(agt);\r\n\t\t\t\t\t\t/** Detects and adds nearby agents flagholder status perception */\r\n\t\t\t\t\t\tif(perceptModel.flag.agentCarrying == perceptModel.getAgentID(plyr)){\r\n\t\t\t\t\t\t\tLiteral nfh = Literal.parseLiteral(\"flagholder(\" + plyr + \")\");\r\n\t\t\t\t\t\t\tlookArr.add(nfh);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tLiteral np = Literal.parseLiteral(\"close\" + plyr + \")\"); \r\n\t\t\t\t\t\t\tlookArr.add(np);\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/** Returns completed ArrayList */ \r\n\t\t\treturn lookArr;\r\n\t\t} else return null;\r\n\t}",
"public static String itemNameForSearch(){\n\n String[] itemNameArr = new String[3];\n itemNameArr[0] = \"nivea\";\n itemNameArr[1] = \"dove\";\n itemNameArr[2] = \"ricci\";\n\n return itemNameArr[CommonMethods.getRandomValue(0,2)];\n }",
"public static Animal getByName(String name) {\n for(var animal : animals){\n if(animal.getName().equalsIgnoreCase(name))\n return animal;\n }\n return null;\n\n //Diffrent way of finding the animal\n /*return animals.stream()\n .filter(a -> a.getName().equalsIgnoreCase(name))\n .findAny()\n .orElse(null);*/\n }",
"public void searchByName(String name) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"./src/data/contactInfo.text\"));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tif(line.toLowerCase().contains(name.toLowerCase())) {\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"public void getSimilarNames(String name) {\n\t\tString parseName = parseName(name);\n\t\tif (mapNames.containsKey(parseName)) {\n\t\t\tSystem.out.print(name + \": \");\n\n\t\t\t/*\n\t\t\t * To get correct output as documentation I'm using a for loop to\n\t\t\t * optimise you can just use .toString() arrayList function\n\t\t\t */\n\t\t\tfor (int i = 0; i < mapNames.get(parseName).size(); i++) {\n\t\t\t\tSystem.out.print(mapNames.get(parseName).get(i));\n\n\t\t\t\t// To match ',' not happening on final word.\n\t\t\t\tif (i != (mapNames.get(parseName).size() - 1)) {\n\t\t\t\t\tSystem.out.print(\", \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} else {\n\t\t\tSystem.out.println(name + \": There is no name stored that matches the parsed name you input\");\n\t\t}\n\t}",
"public Match findMatchFromTeamName(String name1, String name2){\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n Match m;\r\n while (itr.hasNext()) {\r\n m = itr.next();\r\n if (m.getTeam1().getName().equals(name1) \r\n && m.getTeam2().getName().equals(name2)){\r\n return m;\r\n }\r\n }\r\n return null;\r\n }",
"public User findUserName(String name)\n\t\t{\n\t\t\tfor (int i = 0; i < users.size(); i++)\n\t\t\t{\n\t\t\t\tif (name.equals(users.get(i).getUsername()))\n\t\t\t\t{\n\t\t\t\t\treturn users.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t}",
"public Student getStudent(String match);",
"public ListWord findAList(String name) {\n for (ListWord list: list) {\n if (list.getName().equals(name)) {\n return list;\n }\n }\n return null;\n }",
"Road findByName(String toFind, ArrayList<Road> list)\n\t{\n\t\tRoad tmp;\n\t\tIterator<Road> it = list.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\ttmp = it.next();\n\t\t\tif(tmp.getName().equals(toFind))\n\t\t\t{\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public int searchFriends(String name) {\n\n int index = -1;\n\n if (name != null) {\n\n Schedule sched;\n for (int i = 0; i < buddies.size(); i++) {\n\n sched = buddies.get(i);\n\n if (name.equals(sched.getWhosSchedule())) {\n \n index = i;\n break;\n }\n }\n }\n\n return index;\n }",
"@SuppressWarnings(\"UnusedReturnValue\")\n public List<String> depthFirstSearch(List<String> array) {\n // Write your code here.\n array.add(name);\n for (Node child : children) {\n child.depthFirstSearch(array);\n }\n return array;\n }",
"@Override\r\n public String[] getResult(){\n int max = Collections.max(user_input.values());\r\n //iterate the inputs and find the players who matches\r\n List<String> winners = new ArrayList<>();\r\n for (Entry<String, Integer> entry : user_input.entrySet()) {\r\n if (entry.getValue()==max) {\r\n winners.add(entry.getKey());\r\n }\r\n }\r\n return Arrays.copyOf(winners.toArray(), winners.size(), String[].class);\r\n }",
"public abstract SmartObject findIndividualName(String individualName);",
"private static int check_and_get_bone_id(String candidate, String[] bone_id_names)\n {\n char[] name_tester = candidate.toCharArray();\n StringBuilder builder = new StringBuilder();\n boolean add = false;\n for(int i = 0; i < name_tester.length; i++)\n {\n if(name_tester[i] == 34 && !add) {add = true; continue;}\n else if(name_tester[i] == 34 && add) {add = false; continue; }\n if(add) builder.append(name_tester[i]);\n }\n String test = builder.toString();\n for(int i = 0; i < bone_id_names.length; i++)\n {\n if( bone_id_names[i].equals(test)) return i;\n }\n\n return -1;\n }",
"public static void findName(String searchedWord, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getName().contains(searchedWord)) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }",
"public String searchArrayList(int increment, String username) {\n if (registeredUsers.contains(username)) {\n for (int i = 0; i < registeredUsers.size(); i += 3) {\n if (registeredUsers.get(i).equals(username))\n return registeredUsers.get(i+increment);\n }\n }\n return null;\n }",
"private int findIndex(String value) {\n\tint index = 0;\n\tfor (int i = 0; i < getData().length && index == 0;) {\n\t if (value.compareTo(getData()[i]) <= 0) {\n\t\tindex = i;\n\t }\n\t else {\n\t\ti++;\n\t }\n\t}\n\treturn index;\n }",
"public User whoIsTheUser(String name){\n boolean space5 = false;\n User userPrivate = null;\n for(int i = 0; i<MAX_USER && !space5; i++){\n userPrivate = user[i];\n if(userPrivate.getUserName().equals(name)){\n space5 = true;\n }\n }\n return userPrivate;\n }",
"public ArrayList<Guest> searchGuestList(String name) {\n \tString checkName = name.toUpperCase();\n \tArrayList<Guest> result = new ArrayList<>();\n \tfor(Guest guest : guestList){\n if(guest.getName().toUpperCase() != null && guest.getName().toUpperCase().contains(checkName)) {\n \tresult.add(guest);\n }\n }\n \treturn result;\n }",
"private int checkPatientID(List<Patient> list, String value){\n int index = -1;\n for (Patient r : list){\n if(r.getName().compareTo(value) == 0)\n index = r.getPatient_id();\n }\n return index;\n }",
"public static void main(String[] args) {\n\n ArrayList<String> students = new ArrayList<>();\n students.add(\"Sayeem\");\n students.add(\"Wagar\");\n students.add(\"Beslan\");\n students.add(\"Dawut\");\n students.add(\"Ramazan\");\n students.add(\"Mehary\");\n\n // Verify that the names: Ulku, Busra are contained in students list\n\n boolean r = students.containsAll(Arrays.asList(\"Ulku\", \"Busra\") );\n System.out.println(r);\n\n System.out.println(\"=======================================\");\n\n ArrayList<String> group1 = new ArrayList<>();\n\n // add all student names in your group\n group1.addAll( Arrays.asList(\"Muhtar\", \"Nadir\", \"Asiya\", \"Saim\"));\n\n // verify your mentor and one of your closest friend' names are contained in the list\n group1.containsAll( Arrays.asList(\"Mike\"));\n\n\n\n }",
"public static void main(String[] args) {\n\t\tString Name[][] = new String[2][];\n\t\tName[0] = new String[]{\"Mr\", \"Mrs\", \"Miss\"};\n\t\tName[1] = new String[]{\"Pratik\", \"Aishwarya\", \"Surya\", \"Dishant\", \"Somesh\", \"Praveen\"};\n\n\t\tfor(int i=0;i<=5;i++)\n\t\t{\n\t\t\tif(Name[1][i] == \"Pratik\" || Name[1][i] == \"Rohan\" || Name[1][i] == \"Somesh\" || Name[1][i] == \"Dishant\" || Name[1][i] == \"Praveen\") \n\t\t\t{\n\t\t\t\tSystem.out.println(Name[0][0]+\" \"+Name[1][i]);\n\t\t\t}\n\t\t\telse if(Name[1][i] == \"Surya\") \n\t\t\t\tSystem.out.println(Name[0][1]+\" \"+Name[1][i]);\n\t\t\telse \t\n\t\t\t\tSystem.out.println(Name[0][2]+\" \"+Name[1][i]);\n\t\t}\n\n\n\t}",
"public NodeP findPatient (String name){\r\n NodeP current = front;\r\n \r\n while (!current.getPatient().getName().trim().equalsIgnoreCase(name)){\r\n current = current.getNext();\r\n }\r\n return current;\r\n }",
"public static String findName(Map<Integer, String> map, Integer roll) {\r\n\t\t\r\n\t\tSet<Integer> set1= map.keySet();\r\n\t\tIterator<Integer> it =set1.iterator();\r\n\t\twhile(it.hasNext()) {\r\n\t\t\tInteger key= it.next();\r\n\t\t\tif(roll==key) {\r\n\t\t\tString value=map.get(key);\r\n\t\t\treturn value;\r\n\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn \"nill\";\r\n\t\t\t}\r\n\t\t\t\r\n\t}\r\n\t\treturn \"nill\";\r\n}",
"private static int find_value(String b)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n //System.out.println(name);\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == b.charAt(0))\n store = x;\n }\n List<Integer> value = new ArrayList<Integer>(library.return_value());\n return value.get(store);\n }",
"public int getPersonIndex(String name) {\r\n for (int i = 0; i < this.personList.size(); i++) {\r\n if (this.personList.get(i).getName().equals(name)) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }",
"private boolean containsName(String name, Human ... human) {\n boolean result = false;\n\n for(Human h : human) {\n if(h.getName().toLowerCase().contains(name.toLowerCase())) {\n result = true;\n break;\n }\n }\n\n return result;\n }",
"@Override\n\tpublic String nameFind(String user_id) {\n\t\treturn mapper.nameFind(user_id);\n\t}",
"public static int lookup(String first, String last,Phonebook[] phonebook,int size) \n\t{\n\t\tint position= -1;\n\t\tName temp= new Name(last,first);\n\t\tfor(int i=0; i<size;i++) \n\t\t{\n\t\t\tif(phonebook[i].getName().equals(temp)) \n\t\t\t{\n\t\t\t\tposition=i;\n\t\t\t}\n\t\t}\n\t\treturn position;\n\t}",
"public Movie findMovie(String name){\n\n Movie find = null ;\n\n for (Movie movie :movies) {\n\n if(movie.getTitle().equals(name)){\n\n find = movie;\n\n }\n\n }\n\n return find;\n\n }",
"@Override\r\n public int locate(Copiable value) {\r\n for (int i = 0; i < count; i++) {\r\n if (list[i].equals(value)) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }",
"private void findFirstPlayer() { \n if(isFirstTurn) {\n for(PlayerId p: PlayerId.ALL) {\n if(handsOfCards.get(p).contains(Card.of(Color.DIAMOND, Rank.SEVEN))) {\n firstPlayer = p;\n }\n }\n }\n else {\n firstPlayer = PlayerId.ALL.get((firstPlayer.ordinal()+1)%PlayerId.COUNT);\n }\n }",
"public String searchByMaterial(String string, ArrayList<String> materiallist, int count, Set<String> keys, Collection<String> values, Map<String, String> dataTable1) {\nfor(String s:materiallist) {\r\n\t\t\t\r\n\t\t\tif (string.equals(s)) {\r\n\t\t\t//\tSystem.out.print(s);\r\n\t\t\t\tcount--;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\t}\r\nSystem.out.println(\"A List of Home that matches the Material \"+string+\":\");\r\n\r\nfor(String k: keys) {\r\n\t\r\n\tarraytoprintkey=k.split(\"_\");\r\n\r\n\r\n\t\r\n\t\tif(arraytoprintkey[1].equals(string)) {\r\n\t\t\t\r\n\t\t\t\tSystem.out.print(k);\r\n\t\t\t\tSystem.out.println(\" \"+dataTable1.get(k));\r\n\t\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n}\r\nSystem.out.println();\r\n\t\tif(count==0) {\r\n\t\t\treturn string;\r\n\t\t}\r\n\t\t\t\r\n\t\treturn null;\r\n\t}",
"ore_values FindOreValue(String ore) {\n int i;\n for (i = 0; i < ov.size(); i++) {\n ore_values v = ov.get(i);\n if (v.ore_name.equals(ore)) {\n return v;\n }\n }\n return null;\n }",
"public static ArrayList<StudentGrade> getGradesbyRubric(ArrayList<Rubric> rubric , String rubricName)\n{\n ArrayList<StudentGrade> grades = null;\n for(Rubric search: rubric)\n {\n if(search.getRubricName().equalsIgnoreCase(rubricName))\n {\n \n grades= search.getGrades();\n }\n\n }\n return grades; \n}",
"private NFAState checkIfExists(String name) {\n\t\tNFAState ret = null;\n\t\tfor(NFAState s : states){\n\t\t\tif(s.getName().equals(name)){\n\t\t\t\tret = s;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public Archangel buscarName(String name){\n\tboolean val = false;\n Archangel angel = null;\n\tfor(int i =0;i<arch.length && !val;i++){\n\t\tif(arch[i]!=null){\n\t\tif(arch[i].getName().equalsIgnoreCase(name)){\n\t\t\tangel = arch[i];\n\t\t\tval = true;\n\t\t}\n\t}\n\t\telse{\n\t\t\tval=true;\n\t\t}\n\t\t}\n\t\nreturn angel;\n\n}",
"List<Member> findByName(String name);"
] |
[
"0.6191353",
"0.6034115",
"0.5837665",
"0.5809467",
"0.5646967",
"0.5645374",
"0.56399256",
"0.5563684",
"0.5459743",
"0.54443383",
"0.543971",
"0.5434605",
"0.54293054",
"0.5383404",
"0.5376418",
"0.53573114",
"0.5342759",
"0.53166676",
"0.5276489",
"0.52702606",
"0.5259597",
"0.52557486",
"0.52260435",
"0.522488",
"0.5200645",
"0.52004296",
"0.5194106",
"0.51919806",
"0.51860917",
"0.51815164",
"0.51805073",
"0.51646554",
"0.5154705",
"0.5152257",
"0.51474226",
"0.5134536",
"0.51337063",
"0.51285946",
"0.5123033",
"0.51228285",
"0.5121687",
"0.51121885",
"0.50998443",
"0.5099579",
"0.50940955",
"0.50881565",
"0.5086982",
"0.50807524",
"0.5069348",
"0.50620806",
"0.50605166",
"0.506027",
"0.50587285",
"0.5056354",
"0.5024374",
"0.5017359",
"0.5011549",
"0.5006411",
"0.5001662",
"0.49891907",
"0.4986143",
"0.4985119",
"0.4979441",
"0.4978903",
"0.49779493",
"0.49767977",
"0.49648154",
"0.49632207",
"0.49614125",
"0.49573228",
"0.49494994",
"0.4944598",
"0.49272436",
"0.49267197",
"0.49164444",
"0.49160722",
"0.4915927",
"0.49102885",
"0.48966852",
"0.48779243",
"0.48773718",
"0.48674858",
"0.48646834",
"0.48628575",
"0.48622862",
"0.48614687",
"0.48576406",
"0.48454505",
"0.48441368",
"0.4839694",
"0.4839214",
"0.48349398",
"0.48281512",
"0.48255554",
"0.48227513",
"0.48175937",
"0.48119286",
"0.48103997",
"0.48069176",
"0.48059213"
] |
0.5702807
|
4
|
TODO Autogenerated method stub hay que decirle cuantas veces encontro el numero y en que posicion se encuentra
|
public static void main(String[] args) {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static String switchNumeriPosizioni(int numero, String pariOrDispari) {\n\t\tString valoreCorrispondente = \"\";\n\t\tswitch (numero) {\n\t\tcase 0:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"0\";\n\t\t\t} else valoreCorrispondente = \"1\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"1\";\n\t\t\t} else valoreCorrispondente = \"0\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"2\";\n\t\t\t} else valoreCorrispondente = \"5\";\n\t\t\tbreak;\n\t\tcase 3:\t\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"3\";\n\t\t\t} else valoreCorrispondente = \"7\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"4\";\n\t\t\t} else valoreCorrispondente = \"9\";\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"5\";\n\t\t\t} else valoreCorrispondente = \"13\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"6\";\n\t\t\t} else valoreCorrispondente = \"15\";\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"7\";\n\t\t\t} else valoreCorrispondente = \"17\";\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"8\";\n\t\t\t} else valoreCorrispondente = \"19\";\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\tif (pariOrDispari.equals(\"pari\")) {\n\t\t\t\tvaloreCorrispondente = \"9\";\n\t\t\t} else valoreCorrispondente = \"21\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn valoreCorrispondente;\n\t}",
"public void generaNumeros() {\n\n\n int number =0;\n int numeroSeleccionado=gameMemoriaUno.getNumberaleatorio();\n //se agrega numero a las lista de numeros\n\n if(numeroSeleccionado == -1){\n llamaResultado(super.getActividad(), tFinal, tInicio, Num3_5_1Activity.class,gameMemoriaUno.getNumeros(),gameMemoriaUno.getAciertosTotales(),gameMemoriaUno.getFallosTotales(),gameMemoriaUno.getNumEcxluidosList(),gameMemoriaUno.getNumeroPregunta());\n\n }else {\n\n\n gameMemoriaUno.addNumerosSet(numeroSeleccionado);\n for (int i = 1; i < 6; i++) {\n //obtiene numeros del costalito menos el numero seleccionado\n number = gameMemoriaUno.getNumeroArreglo();\n //agrego numeros\n gameMemoriaUno.addNumerosSet(number);\n }\n\n Iterator<Integer> iter = gameMemoriaUno.getNumerosSet().iterator();\n\n int contadorNumeros=0;\n while (iter.hasNext()) {\n int valor=iter.next().intValue();\n lista.add(valor);\n if(gameMemoriaUno.getDificultad()==contadorNumeros){\n gameMemoriaUno.setNumerosElejidos(new int[valor]);\n }\n\n contadorNumeros+=1;\n }\n Collections.shuffle(lista, new Random());\n Collections.shuffle(lista, new Random());\n\n\n\n }\n\n\n }",
"private int getNumero() {\n\t\treturn numero;\n\t}",
"public void setNumero(int numero) {\n this.dado1 = numero;\n }",
"public void setNumero(int numero) { this.numero = numero; }",
"private int obtem_primeiro(int numero)\n {\n for (Map.Entry i : janela.entrySet()) if(((Estado)i.getValue()).getNumero_sequencia() == numero && !((Estado) i.getValue()).isEstado()) return (int) i.getKey();\n return 0;\n }",
"public void setPosicion(int posicion){\n _posicion = posicion;\n }",
"public static void OrdenarNumeros(){\n\t\t//Variables\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tString tomar;\n\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese tres numeros numero\");\n\t\ta=reader.nextInt();\n\t\tb=reader.nextInt();\n\t\tc=reader.nextInt();\n\t\tif(a>b && b>c){\n\t\t\tTexto=a+\",\"+b+\",\"+c;\n\t\t}else if(a>c && c>b){\n\t\t\tTexto=a+\",\"+c+\",\"+b;\n\t\t}else if(b>a && a>c){\n\t\t\tTexto=b+\",\"+a+\",\"+c;\n\t\t}else if(b>c && c>a){\n\t\t\tTexto=b+\",\"+c+\",\"+a;\n\t\t}else if(c>a && a>b){\n\t\t\tTexto=c+\",\"+a+\",\"+b;\n\t\t}else if(c>b && b>a ){\n\t\t\tTexto=c+\",\"+b+\",\"+a;\n\t\t}\n\t\tSystem.out.println(Texto);\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}",
"public void setNumero(int numero) {\n\t\tthis.numero = numero;\n\t}",
"public void setNumero(int numero) {\n\t\tthis.numero = numero;\n\t}",
"public void iniciarNovaPartida(Integer posicao);",
"public int getNumero() { return this.numero; }",
"public int Menor(List<Integer>num){\n this.numero = num;\n int menor = 99999;\n int contador;\n \n Iterator i = num.iterator();\n \n while(i.hasNext()){\n if (menor>num.get((int) i.next())) {\n menor = num.get((int) i.next());\n }\n }\n return menor;\n }",
"public void leerNumero() {\r\n\t\tdo {\r\n\t\t\tnumeroDNI=Integer.parseInt(JOptionPane.showInputDialog(\"Numero de DNI: \"));\r\n\t\t\tSystem.out.println(\"Numero de 8 digitos...\");\r\n\t\t}while(numeroDNI<9999999||numeroDNI>99999999);\r\n\t\tletra=hallarLetra();\r\n\t}",
"private void setNumber(final int pos, final String number) {\n\t\tif (pos < 0 || pos >= this.objects.size()) {\n\t\t\tPreferences.this.objects.add(number);\n\t\t} else {\n\t\t\tPreferences.this.objects.set(pos, number);\n\t\t}\n\t\tPreferences.this.adapter.notifyDataSetChanged();\n\t}",
"public int getNumero()\r\n/* 190: */ {\r\n/* 191:202 */ return this.numero;\r\n/* 192: */ }",
"public void contarDigitos(int numero) { //recibe como parametro un valor entero\r\n while (numero > 0) {\r\n numero = numero / 10; //se divide entre 10 el numero ingresado y luego este ocupa su lugar\r\n contador++; //cada vez que se divida entre 10 se aumenta en 1 el contador, el cual\r\n //indica los digitos que tiene el numero ingresado\r\n }\r\n }",
"public void setPositionnum(Integer positionnum) {\n\t\tthis.positionnum = positionnum;\n\t}",
"public void setNUMSECFO(int value) {\n this.numsecfo = value;\n }",
"public String determinarNombrePosicion(int num){\r\n String atributo = \"\";\r\n switch(num){\r\n case 0:\r\n atributo = \"cantidad\";\r\n break;\r\n case 1:\r\n atributo = \"fuerza\";\r\n break;\r\n case 2:\r\n atributo = \"infanteria\";\r\n break;\r\n case 3:\r\n atributo = \"lado oscuro\";\r\n break;\r\n case 4:\r\n atributo = \"riqueza\";\r\n break;\r\n case 5:\r\n atributo = \"sigilo\";\r\n break;\r\n case 6:\r\n atributo = \"tecnologia\";\r\n break;\r\n case 7:\r\n atributo = \"velocidad\";\r\n break;\r\n }\r\n return atributo;\r\n }",
"private int aleatorizarNumero() {\n\t\tint aux;\n\t\taux = r.getIntRand(13) + 1;\n\t\treturn aux;\n\t}",
"public void setNUMARGEO(int value) {\n this.numargeo = value;\n }",
"public void printNo(String numar)\r\n {\r\n //toate verificarile posibile pentru a afisa ce trebuie\r\n //mi-e lene sa scriu la fiecare in parte, daca vrei ti le explic la telefon\r\n if(Character.getNumericValue(numar.charAt(0)) ==0 && Character.getNumericValue(numar.charAt(1)) == 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else{\r\n if(Character.getNumericValue(numar.charAt(0)) > 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(0))] + \" hundread \");\r\n }\r\n if(Character.getNumericValue(numar.charAt(1)) == 1){\r\n System.out.print(v1[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else if (Character.getNumericValue(numar.charAt(1)) > 1 && Character.getNumericValue(numar.charAt(2)) > 0){\r\n System.out.print(v2[Character.getNumericValue(numar.charAt(1)) - 2] + v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else if(Character.getNumericValue(numar.charAt(2)) == 0 && Character.getNumericValue(numar.charAt(1)) > 1){\r\n System.out.print(v2[Character.getNumericValue(numar.charAt(1)) - 2] + \" \");\r\n }\r\n if(Character.getNumericValue(numar.charAt(1)) == 0 && Character.getNumericValue(numar.charAt(2)) > 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n }\r\n }",
"public int getPosicionCero(){\n\t\tint posicionDelCero = -1;\n\t\tint i = 0;\n\t\twhile(i < celdas.size()){\n\t\t\tif(celdas.get(i).getValor() == 0){\n\t\t\t\tposicionDelCero = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn posicionDelCero;\n\t}",
"public int getNumero() {\n\t\treturn numero;\n\t}",
"public int getNumero() {\n\t\treturn numero;\n\t}",
"public int getNumero() {\n\t\treturn numero;\n\t}",
"public int getNumero() {\n return numero;\n }",
"protected void jouerOrdinateur() {\n Random rdmPropoOrdi = new Random();\n\n for (int i = 0; i < nbrPosition; i++) {\n int min = 0;\n int max = propositionHaute[i];\n if (propositionBasse[i] != 0) {\n min = propositionBasse[i] + 1;\n }\n\n if (propositionOrdinateur[i] != combinaisonJoueur[i]) {\n int propoOrdi = min + rdmPropoOrdi.nextInt(max - min);\n propositionOrdinateur[i] = (byte) (propoOrdi);\n\n if (propositionOrdinateur[i] < combinaisonJoueur[i]) {\n propositionBasse[i] = propositionOrdinateur[i];\n } else {\n propositionHaute[i] = propositionOrdinateur[i];\n }\n }\n }\n }",
"public void getnumber() {\n\r\n\t\tnumberofticket[numberposition] = number;\r\n\t\tticketnumber[numberposition] = numberresult;\r\n\t\ttickettype[numberposition] = ticketname[btn_menu1_int];\r\n\t\tnumberposition++;\r\n\r\n\t}",
"public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }",
"@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\t\t\t\" deberá acertar un número PAR comprendido entre el 0 y el 10 mediante un número limitado de intentos(vidas)\");\n\t}",
"public void qtadeDeNumeros(){\n for(int i = 0; i < 9; i++){\n qtadePorNum.add(i, new Pair(i+1, numeroDeElementos(i+1)));\n }\n }",
"private static void obterNumeroLugar(String nome) {\n\t\tint numero = gestor.obterNumeroLugar(nome);\n\t\tif (numero > 0)\n\t\t\tSystem.out.println(\"O FUNCIONARIO \" + nome + \" tem LUGAR no. \" + numero);\n\t\telse\n\t\t\tSystem.out.println(\"NAO EXISTE LUGAR de estacionamento atribuido a \" + nome);\n\t}",
"public int getNumero() {\n return dado1;\n }",
"int generarNumeroNota();",
"public void ingresarNumero() {\n do {\r\n System.out.print(\"\\nIngrese un numero entre 0 y 100000: \");\r\n numero = teclado.nextInt();\r\n if (numero < 0 || numero > 100000){\r\n System.out.println(\"Error, rango invalido. Intentelo de nuevo.\");\r\n }\r\n } while(numero < 0 || numero > 100000);\r\n contarDigitos(numero); //el numero ingresado se manda como parametro al metodo\r\n menu();\r\n }",
"private void OpcionControl(int NumeroOpciones)\n {\n if (input.isKeyPressed(Input.KEY_DOWN)) \n {\n if (eleccionJugador == (NumeroOpciones - 1)) \n {\n eleccionJugador = 0;\n } \n else \n {\n eleccionJugador++;\n }\n }\n if (input.isKeyPressed(Input.KEY_UP)) \n {\n if (eleccionJugador == 0) {\n eleccionJugador = NumeroOpciones - 1;\n } else {\n eleccionJugador--;\n }\n } \n }",
"public int EliminarNodo() {\r\n int auxiliar = UltimoValorIngresado.informacion;\r\n UltimoValorIngresado = UltimoValorIngresado.siguiente;\r\n tamaño--;\r\n return auxiliar;\r\n }",
"private String obtenerNid(int posicion) {\n if (propuestas != null) {\n return propuestas[posicion].getNid();\n }\n return null;\n }",
"private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }",
"private void ActualizaPosicionesFondos() {\n xFondo-=10; //Es el cursor de la posición\n xFondoBase-=10; //Aqui se puede implementar metodo de modificacion de velocidad de fondo.\n xFondoApoyo-=10;\n if (xFondo == -texturaFondoBase.getWidth()){\n xFondoBase = xFondoApoyo+texturaFondoApoyo.getWidth();\n cambiosFondo++;\n }\n if (xFondo == -(texturaFondoApoyo.getWidth()+texturaFondoBase.getWidth())) {\n xFondoApoyo = xFondoBase+texturaFondoBase.getWidth();\n cambiosFondo++;\n }\n }",
"public int getPosicion(String referencia) throws Exception{\n if (buscar(referencia)) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // COntado para almacenar la posición del nodo.\r\n int cont = 0;\r\n // Recoore la lista hasta llegar al nodo de referencia.\r\n while(referencia != aux.getValor()){\r\n // Incrementa el contador.\r\n cont ++;\r\n // Avansa al siguiente. nodo.\r\n aux = aux.getSiguiente();\r\n }\r\n // Retorna el valor del contador.\r\n return cont;\r\n // Crea una excepción de Valor inexistente en la lista.\r\n } else {\r\n throw new Exception(\"Valor inexistente en la lista.\");\r\n }\r\n }",
"public static void NumeroAmigo(){\n\t\tint a;\n\t\tint b;\n\t\tString tomar;\n\t\tint resultado;\n\t\tScanner reader= new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese dos numeros\");\n\t\ta=reader.nextInt();\n\t\tb=reader.nextInt();\n\t\tif(a>=0 && b>=0){\n\t\t\tresultado=RepetidorFor(a);\n\t\t\t\tif(resultado==b){\n\t\t\t\tresultado=RepetidorFor(b);\n\t\t\t\tif(resultado==a){\n\t\t\t\t\tSystem.out.println(\"Son numeros amigos\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"No son numeros amigos\");\n\t\t\t}\n\t\t}else{\n\t\t\tSystem.out.println(\"Ingrese numeros positivos\");\n\t\t}\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}",
"public boolean restarUno(){\n\t\tif (numero>0){\n\t\t\tnumero--;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public int Mayor(List<Integer>num){\n this.numero = num;\n int mayor = 0;\n int contador;\n \n Iterator i = num.iterator();\n \n while(i.hasNext()){\n if (mayor<num.get((int) i.next())) {\n mayor = num.get((int) i.next());\n }\n }\n return mayor;\n }",
"@Override\n\t\tpublic int compareTo(Pos o) {\n\t\t\treturn this.num-o.num;\n\t\t}",
"public void setNumeroAnterior(int numeroAnterior)\r\n/* 205: */ {\r\n/* 206:214 */ this.numeroAnterior = numeroAnterior;\r\n/* 207: */ }",
"private synchronized void agregarElemento(int numero){\n int hashtag = funcionHash(numero);\n int cantDigitos = cantidadDigitos(numero);\n \n if(!listaPorDigitos.containsKey(cantDigitos)){\n listaPorDigitos.put(cantDigitos, new TreeMap());\n }\n if(listaPorDigitos.get(cantDigitos).get(hashtag) == null){\n listaPorDigitos.get(cantDigitos).put(hashtag, new ArrayList<Integer>());\n }\n listaPorDigitos.get(cantDigitos).get(hashtag).add(numero);\n this.add(numero);\n }",
"public int getNumNudo() {\n return numNudo;\n }",
"public void setNumeroInicial(int numeroInicial)\r\n/* 185: */ {\r\n/* 186:198 */ this.numeroInicial = numeroInicial;\r\n/* 187: */ }",
"public int limitesX(){\n int v=0;\n if (fila==0 && columna>0 && columna<15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if (fila==15 && columna>0 && columna<15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else{v=limitesY();}\n return v;\n }",
"public void alterarDadosCadastraisNumeroInvalido() {\n\t\tAlterarDadosCadastraisPage alterarDadosCadastraisPage = new AlterarDadosCadastraisPage(driver);\n\t\talterarDadosCadastraisPage.getInputCel().clear();\n\t\talterarDadosCadastraisPage.getButtonSalvar().click();\n\t}",
"private boolean isPosicaoFerrovia(int posicao) {\n return (posicao == 5 || posicao == 15 || posicao == 25 || posicao == 35);\n }",
"public void generarNumeroFacura(){\n try{\n FacturaDao facturaDao = new FacturaDaoImp();\n //Comprobamos si hay registros en la tabla Factura de la BD\n this.numeroFactura = facturaDao.numeroRegistrosFactura();\n \n //Si no hay registros hacemos el numero de factura igual a 1\n if(numeroFactura <= 0 || numeroFactura == null){\n numeroFactura = Long.valueOf(\"1\");\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }else{\n //Recuperamos el ultimo registro que existe en la tabla Factura\n Factura factura = facturaDao.getMaxNumeroFactura();\n //Le pasamos a la variable local el numero de factura incrementado en 1\n this.numeroFactura = Long.valueOf(factura.getNumeroFactura() + 1);\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }\n \n \n }catch(Exception e){\n e.printStackTrace();\n }\n \n }",
"public void ejercicio06() {\r\n\t\tcabecera(\"06\", \"Numero mayor\");\r\n\r\n\t\t// Inicio modificacion\r\n\r\n\t\tSystem.out.println(\"Por favor, introduzca un numero\");\r\n\t\tint n1 = Teclado.readInteger();\r\n\t\tSystem.out.println(\"Por favor, introduzca otro numero\");\r\n\t\tint n2 = Teclado.readInteger();\r\n\t\tSystem.out.println(\"Por favor, introduzca otro numero\");\r\n\t\tint n3 = Teclado.readInteger();\r\n\r\n\t\tStringBuffer salida = new StringBuffer();\r\n\r\n\t\tint mayor = n1;\r\n\r\n\t\tif (n1==n2&&n2==n3) {\r\n\t\t\tsalida.append(\"Los tres numeros son \"+n2+\", y son iguales. \");\r\n\t\t}else{\r\n\t\t\tif (n1==n2) {\r\n\t\t\tsalida.append(\"El numero \"+n1+\" esta repetido 2 veces \");\r\n\t\t\t}else if (n2==n3) {\r\n\t\t\tsalida.append(\"El numero \"+n2+\" esta repetido 2 veces \");\r\n\t\t\t}else if (n1==n3) {\r\n\t\t\tsalida.append(\"El numero \"+n3+\" esta repetido 2 veces \");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (mayor < n2) {\r\n\t\tmayor = n2;\r\n\t\t}else if(mayor < n3){\r\n\t\t\tmayor = n3;\r\n\t\t}\r\n\t\tsalida.append(\"El numero dado mas grande es \"+mayor+\".\");\r\n\r\n\t\tSystem.out.println(salida.toString());\r\n\r\n\t\t// Fin modificacion\r\n\t}",
"public int numerico(String n){\n if(n.equals(\"Limpieza\")){\r\n tipon=1;\r\n }\r\n if(n.equals(\"Electrico\")){\r\n tipon=2;\r\n } \r\n if(n.equals(\"Mecanico\")){\r\n tipon=3;\r\n } \r\n if(n.equals(\"Plomeria\")){\r\n tipon=4;\r\n } \r\n if(n.equals(\"Refrigeracion\")){\r\n tipon=5;\r\n }\r\n if(n.equals(\"Carpinteria\")){\r\n tipon=6;\r\n }\r\n if(n.equals(\"Area Verde\")){\r\n tipon=7;\r\n } \r\n if(n.equals(\"Preventivo\")){\r\n tipon=8;\r\n } \r\n if(n.equals(\"Pintura\")){\r\n tipon=9;\r\n } \r\n if(n.equals(\"TI\")){\r\n tipon=10;\r\n }\r\n return tipon; \r\n }",
"@Override // androidx.lifecycle.Observer\n public void onChanged(Integer num) {\n Integer num2 = num;\n if (num2 != null) {\n this.a.c.scrollToPosition(num2.intValue());\n }\n }",
"public List<Integer> codificarDigitoASieteSegmentos(int numero) {\n\n\t\tList<Integer> segList = new ArrayList<>();\n\n\t\tswitch (numero) {\n\t\tcase 1:\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(4);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(6);\n\t\t\tsegList.add(2);\n\t\t\tsegList.add(7);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(6);\n\t\t\tsegList.add(4);\n\t\t\tsegList.add(7);\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tsegList.add(1);\n\t\t\tsegList.add(6);\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(4);\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(1);\n\t\t\tsegList.add(6);\n\t\t\tsegList.add(4);\n\t\t\tsegList.add(7);\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(1);\n\t\t\tsegList.add(6);\n\t\t\tsegList.add(2);\n\t\t\tsegList.add(7);\n\t\t\tsegList.add(4);\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(4);\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\tsegList.add(1);\n\t\t\tsegList.add(2);\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(4);\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(6);\n\t\t\tsegList.add(7);\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\tsegList.add(1);\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(4);\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(6);\n\t\t\tsegList.add(7);\n\t\t\tbreak;\n\t\tcase 0:\n\t\t\tsegList.add(1);\n\t\t\tsegList.add(2);\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(4);\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(7);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\treturn segList;\n\t}",
"private static int invertirNumero(int num) {\n\t\tint cifra, inverso = 0;\n\t\twhile (num > 0) {\n\t\t\tcifra = num % 10;\n\t\t\tinverso = cifra + inverso * 10;\n\t\t\tnum /= 10;\n\t\t}\n\t\treturn inverso;\n\t}",
"public int getNumeroInicial()\r\n/* 180: */ {\r\n/* 181:194 */ return this.numeroInicial;\r\n/* 182: */ }",
"public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }",
"public void ejercicio03() {\r\n\t\tcabecera(\"03\", \"Comparar numeros\");\r\n\r\n // Inicio modificacion\r\n\t\t\r\n NumeroEntero n1 = new NumeroEntero(10);\r\n NumeroEntero n2 = new NumeroEntero(10);\r\n\r\n if (n1.comapreTo(n2) == -1){\r\n \t System.out.println(\"N1-> \"+n1);\r\n System.out.println(\"N1 es mayor que N2\");\r\n }\r\n else if (n1.comapreTo(n2) ==1) {\r\n System.out.println(\"N1 -> \"+n1);\r\n System.out.println(\"N1 es menor que N2\");\r\n }\r\n else{\r\n System.out.println(\"N1 y N2 son iguales -> N1 ->\"+n1+\" N2 -> \"+n2);\r\n }\r\n\r\n\t\t// Fin modificacion\r\n\t\t\r\n\t}",
"public clsNaipeEspañol(int numero, String palo) {\r\n\t\tsetNumero(numero);\r\n\t\tsetPalo(palo);\r\n\t\tasignaNombre();\r\n\t}",
"int getPosition() {\n\n for (int i = 0; i < numbers.length; i++) {\n\n if (numbers[i] == \"0\") {\n\n Toast.makeText(getApplicationContext(), (CharSequence) (\"Position: \" + new Integer(i).toString()), Toast.LENGTH_SHORT).show();\n return i;\n }\n }\n return 0;\n }",
"public static int RepetidorFor(int numero){\n\t\tint suma=0;\n\t\tint resultado=0;\n\t\tfor(int i=1;i<numero;i++){\n\t\t\tresultado=(numero%i);\n\t\t\tif(resultado==0){\n\t\t\t\tsuma=suma+i;\n\t\t\t}\n\t\t}\n\t\treturn suma;\n\t}",
"@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }",
"public int getNumeroAnterior()\r\n/* 200: */ {\r\n/* 201:210 */ return this.numeroAnterior;\r\n/* 202: */ }",
"public void setNumero(int index, int value){\r\n\t\tnumeros.set(index, value);\r\n\t}",
"private void nextNumber() {\n\t\tint old=pos;\n\t\tmany(digits);\n\t\ttoken=new Token(\"num\",program.substring(old,pos));\n }",
"public String getPremierNumeroLibre() {\n\t\tString requete_s = \"SELECT id from LIVRES\";\n\t\tint i = 0;\n\t\tboolean egalite = true;\n\t\t\n\t\ttry{\n\t\t\trequete.execute(requete_s);\n\t\t\t\n\t\t\tResultSet rs = requete.getResultSet();\n\t\t\t\n\t\t\tdo{\n\t\t\t\ti++;\n\t\t\t\trs.next();\n\t\t\t\tegalite = (i ==((Integer) rs.getObject(1)));\n\t\t\t}while(egalite);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString s = \"\" + i;\n\t\t\n\t\treturn s;\n\t}",
"private MsoSmartArtNodePosition(int value) { this.value = value; }",
"int obtenerNumeroMovimiento();",
"public Profesor(int _NoEmpleado) {\r\n\t\tsuper();\r\n\t\tthis._NoEmpleado = _NoEmpleado;\r\n\t}",
"private void atualizarNumeroBombas() {\n\t\tlblNumeroBombas.setText(Integer.toString(this.numeroBombas));\r\n\t}",
"public void mostrarTareasNumeradas(){\n int numeroPosicion = 1;\n for (String tarea : tareas){\n System.out.println(numeroPosicion + \". \" + tarea);\n numeroPosicion = numeroPosicion + 1;\n }\n }",
"private static int[] ubicarPosicionCero(int[][] estado) {\n\t\tfor(int i = 0 ; i < estado.length ; i++) {\n\t\t\tfor(int j = 0 ; j < estado.length ; j++) {\n\t\t\t\tif(estado[i][j]==0) {\n\t\t\t\t\tSystem.out.println(\"La posicion del espacio cero es: \"+ i +\",\"+j);\n\t\t\t\t\treturn new int[] {i,j};\n\t\t\t\t}\n\t\t\t\t//System.out.println(\"La posicion del espacio cero es: \"+ i +\",\"+j);\n\t\t\t\t//posicion[0]= i;\n\t\t\t\t//posicion[1]=j;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private void setNumeros(Set<Integer> numeros) {\n\t\tthis.numeros = new Vector<Integer>(numeros);\n\t}",
"int getNo() {\n\t\treturn no;\n\t}",
"public void InsertarNodo(int nodo) {\r\n Nodo nuevo_nodo = new Nodo(nodo);\r\n nuevo_nodo.siguiente = UltimoValorIngresado;\r\n UltimoValorIngresado = nuevo_nodo;\r\n tamaño++;\r\n }",
"public void pone_posicion(int x){\n this.x = x;\n }",
"public void insertarPos(int pos,Nodo nNodo) throws Exception {\n if(pos>this.size || pos<0){\r\n throw new Exception(\"Posicion invalida\");\r\n //Si la posicion es igual al tamaño de la lista, quiere decir que se\r\n //quiere insertar al final\r\n } else if(pos==this.size){\r\n this.agregarNodo(nNodo);\r\n //Se inserta en cualquer lugar\r\n } else {\r\n size++;\r\n Nodo temp = nIni;\r\n if(pos ==0){\r\n nIni.setnAnt(nNodo);\r\n nNodo.setnSig(nIni);\r\n nIni = nNodo;\r\n } else{\r\n for (int i = 0; i < pos-1; i++) {\r\n temp=temp.getnSig();\r\n }\r\n temp.getnSig().setnAnt(nNodo);\r\n nNodo.setnSig(temp.getnSig());\r\n nNodo.setnAnt(temp);\r\n temp.setnSig(nNodo);\r\n }\r\n }\r\n }",
"void setPosNr(String posNr);",
"public static int invertirNum(int num, int pos){\n if(num < 10){\n return num;\n }else{\n return (num % 10) * (int) Math.pow(10, pos) + (invertirNum(num/10, pos-1));\n }\n }",
"public Integer getPositionnum() {\n\t\treturn positionnum;\n\t}",
"private static void menuno(int menuno2) {\n\t\t\r\n\t}",
"public void setNumFilhos(int numFilhos){ \n this.numFilhos = numFilhos;\n }",
"void determinarEdad(int index) {\r\n\t\t\tcantEdad = index+15;\r\n\t\t}",
"public int getNumPrimo()\n {\n return numPrimo;\n\n }",
"public Nodo (int info)\n\t\t{\n\t\t\n\t\t\tthis.info = info;\n\t\t\tnext = null ;\n\t\t}",
"public static void NumeroCapicua(){\n\t\tint numero,resto,falta,invertido;\n\t\tString tomar;\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese un numero\");\n\t\tnumero=reader.nextInt();\n\t\tfalta=numero;\n\t\tinvertido=0;\n\t\tresto=0;\n\t\twhile(falta!=0){\n\t\t\tresto=(falta%10);\n\t\t\tinvertido=(invertido*10)+resto;\n\t\t\tfalta=(int)(falta/10);\n\t\t}\n\t\tif(invertido==numero){\n\t\t\tSystem.out.println(\"Es Capicua\");\n\t\t}else{\n\t\t\tSystem.out.println(\"No es Capicua\");\n\t\t}\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}",
"public static void main(String[] args) { \n /* Grafo grafo = new Grafo();\n \n No no;\n no = new No(\"1\");//0\n grafo.addNo(no);\n no = new No(\"2\");//1\n grafo.addNo(no);\n no = new No(\"3\");//2\n grafo.addNo(no);\n no = new No(\"4\");//3\n grafo.addNo(no);\n no = new No(\"5\");//4\n grafo.addNo(no);\n no = new No(\"6\");//5\n grafo.addNo(no);\n no = new No(\"7\");//6\n grafo.addNo(no);\n \n //Cria as arestas do nó\n \n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(1), 2);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(2), 5);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(3), 4);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(2), 2);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(4), 7);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(3), 1);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(4), 4);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(5), 3);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(5), 4);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(5), 1);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(6), 5);\n Aresta.inserirAresta(grafo.getNo(5), grafo.getNo(6), 7);\n \n No no;\n no = new No(\"SF\");//0\n grafo.addNo(no);\n no = new No(\"LA\");//1\n grafo.addNo(no);\n no = new No(\"D\");//2\n grafo.addNo(no);\n no = new No(\"C\");//3\n grafo.addNo(no);\n no = new No(\"A\");//4\n grafo.addNo(no);\n no = new No(\"B\");//5\n grafo.addNo(no);\n no = new No(\"NY\");//6\n grafo.addNo(no);\n no = new No(\"M\");//7\n grafo.addNo(no);\n \n \n //Cria as arestas do nó\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(1), 39);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(2), 89);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(3), 120);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(6), 210);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(2), 50);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(6), 170);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(3), 65);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(5), 79);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(6), 59);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(4), 99);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(6), 80);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(7), 70);\n Aresta.inserirAresta(grafo.getNo(5), grafo.getNo(6), 20);\n Aresta.inserirAresta(grafo.getNo(6), grafo.getNo(7), 66);*/\n \n Grafo grafo = GrafoAleatorioKruskal.gerar(1000, 10, 10, 100);\n //Gera a arvore geradora com custo minimo\n grafo.kruskal();\n \n //TESTE\n int teste = grafo.getNo(0).getConjunto();\n boolean answer = true;\n for(No n : grafo.getNos()){\n if (teste!= n.getConjunto()){\n answer = false;\n }\n }\n if(answer){\n System.out.println(\"Todos os nós pertecem ao mesmo conjunto\");\n }\n else{\n System.out.println(\"Deu erro\");\n }\n }",
"public int getNumber() {\n return this.numPizzas;\n }",
"public void afegirPosicio() {\n\t\tfor(int i=0; i<cal.length; ++i){\n\t\t\tcal[i] = new Dia(false);\n\t\t\tfor(int j=0; j<3; ++j) cal[i].getTorns()[j].setPosicio(i);\n\t\t}\n\t}",
"@Override\n public void movimiento_especial(){\n\n movesp=ataque/2;\n defensa+=5;\n PP= PP-4;\n }",
"@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}",
"public int getNumero(int index){\r\n\t\treturn numeros.get(index);\r\n\t}",
"private int getNum() {\r\n int i = currentNum.incrementAndGet();\r\n if (i < 0)\r\n i = -i;\r\n return i % n;\r\n }",
"boolean insertar(Nodo_B nuevo){\n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n size ++;\n return true;\n }else{\n if(this.primero == this.ultimo){ // -------------------------solo hay un nodo \n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }\n }else{ // ---------------------------------------------------hay mas de un nodo\n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n Nodo_B pivote = this.primero;\n while(pivote != null){\n if(nuevo.valor < pivote.valor){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n //--------------------------- cambia los punteros a las paginas\n pivote.izq = nuevo.der;\n pivote.anterior.der = nuevo.izq;\n //-----------------------------------------------------------\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n size++;\n return true;\n }else if(nuevo.valor == pivote.valor){\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n }\n return false;\n }",
"private boolean esPrimo(int pNumero)\r\n\t{\r\n\t\tboolean esPrimo = true;\r\n\t\tfor(int i=2; i<=pNumero/2 && esPrimo;i++)\r\n\t\t{\r\n\t\t\tif(pNumero%i == 0)\r\n\t\t\t{\r\n\t\t\t\tesPrimo = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn esPrimo;\r\n\t}",
"public boolean restarVarios(int num){\n\t\tif (numero>0 && numero>num) {\n\t\t\tnumero -= num;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}"
] |
[
"0.6716628",
"0.65991664",
"0.6502587",
"0.64850676",
"0.64142627",
"0.64139104",
"0.6385199",
"0.6342088",
"0.62823385",
"0.62823385",
"0.61955786",
"0.6194174",
"0.6186208",
"0.6182573",
"0.616128",
"0.6140776",
"0.6129222",
"0.6047135",
"0.60407203",
"0.6030762",
"0.59802514",
"0.59755784",
"0.5958154",
"0.59557",
"0.59525466",
"0.59525466",
"0.59525466",
"0.5941633",
"0.59274775",
"0.591075",
"0.5867987",
"0.58678764",
"0.58431417",
"0.58291686",
"0.5828855",
"0.58259916",
"0.5819157",
"0.58153105",
"0.5813501",
"0.57978773",
"0.57832366",
"0.57704717",
"0.57696867",
"0.5757586",
"0.5757482",
"0.575476",
"0.57473844",
"0.57192725",
"0.5716605",
"0.5716095",
"0.57094634",
"0.5692957",
"0.5666187",
"0.5665024",
"0.56578827",
"0.5642088",
"0.563695",
"0.5635109",
"0.5628746",
"0.5628593",
"0.5622345",
"0.56094605",
"0.56067276",
"0.5600344",
"0.56000733",
"0.55948615",
"0.5593909",
"0.5581987",
"0.55796564",
"0.55758667",
"0.5575442",
"0.55696166",
"0.55676395",
"0.5565335",
"0.5559481",
"0.55582035",
"0.5557007",
"0.5556337",
"0.55555826",
"0.55490977",
"0.55405444",
"0.5535093",
"0.5521472",
"0.55214065",
"0.5515622",
"0.55111724",
"0.55069506",
"0.5501762",
"0.55013406",
"0.5496454",
"0.54905945",
"0.5489691",
"0.54880303",
"0.548717",
"0.54815054",
"0.5475038",
"0.5474263",
"0.5470469",
"0.5466559",
"0.5463206",
"0.54629004"
] |
0.0
|
-1
|
Parses a string and returns a Comparator.
|
private Comparator parseString(final String val) {
Comparator ret = null;
for (Comparator comp : Comparator.values()) {
if (comp.toParseString().equals(val)) {
ret = comp;
break;
}
}
return ret;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static Comparator parse(final String value) {\n\t\treturn GREATER_THAN.parseString(value);\n\t}",
"public abstract int compare(String s1, String s2) throws NumberFormatException, ParseException;",
"public static SortOrder fromString(String s) {\n\t\treturn EnumUtil.fromString(SortOrder.class, s, ASCENDING);\n\t}",
"public interface Lexicon extends Comparator<String>{\r\n\r\n\t\r\n\r\n\t/** (non-Javadoc)\r\n\t * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)\r\n\t */\r\n\tint compare(String a, String b);\r\n\r\n\t/**\r\n\t * Uses binary search to find the order of key.\r\n\t * @param key\r\n\t * @return ordering value for key or -1 if key is an invalid character.\r\n\t */\r\n\tint getCharacterOrdering(char key);\r\n\r\n\t/**\r\n\t * Returns whether or not word is valid.\r\n\t * @param word word to be checked.\r\n\t * @return\r\n\t */\r\n\tboolean isValid(String word);\r\n\t\r\n}",
"Comparator<String> getPatternComparator(String path);",
"public StringParser getStringParser();",
"public Comparison(String s)\n\t{\n\t\ttype = getType(s);\n\t}",
"private void parseQuery(String str) {\n String[] parts = str.split(\"orderby\");\n String[] elements = parts[0].split(\"\\\\s+\");\n\n // Use two-stack algorithm to parse prefix notation\n Stack<Comparable<String>> terms = new Stack<Comparable<String>>();\n Stack<Comparable<String>> helper = new Stack<Comparable<String>>();\n\n for (String el : elements) { terms.push(el); }\n while (!terms.isEmpty()) {\n Comparable<String> term = terms.pop();\n String operands = \"+|-\";\n if (operands.contains(term.toString())) {\n Comparable<String> leftSide = helper.pop();\n Comparable<String> rightSide = helper.pop();\n helper.push(new Subquery(leftSide, term.toString(), rightSide));\n } else {\n helper.push(term);\n }\n }\n\n Comparable<String> resultQuery = helper.pop();\n parsedQuery = resultQuery instanceof String ? new Subquery(resultQuery) : (Subquery) resultQuery;\n computeUniqueNotation(parsedQuery);\n\n if (parts.length < 2) {\n return;\n }\n\n // Parse sorting properties\n if (parts[1].contains(\"relevance\")) {\n property = \"RELEVANCE\";\n } else if (parts[1].contains(\"popularity\")) {\n property = \"POPULARITY\";\n }\n\n if (parts[1].contains(\"asc\")) {\n direction = 1;\n } else if (parts[1].contains(\"desc\")) {\n direction = -1;\n }\n }",
"private static Order parseFixToOrder(String fixStringOrd) {\n\t\tString[] tOrdParsed = fixStringOrd.split(\"\\\\x01\");\n\t\tOrder newOrd = new Order(tOrdParsed[12].split(\"=\")[1],\n\t\t\t\ttOrdParsed[11].split(\"=\")[1].charAt(0),\n\t\t\t\ttOrdParsed[9].split(\"=\")[1].charAt(0),\n\t\t\t\tDouble.parseDouble(tOrdParsed[10].split(\"=\")[1]),\n\t\t\t\tDouble.parseDouble(tOrdParsed[8].split(\"=\")[1]),\n\t\t\t\ttOrdParsed[4].split(\"=\")[1]);\n\t\treturn newOrd;\n\t}",
"public static String parseSortClassName(final String name) {\n final int index = name.lastIndexOf('.');\n return name.substring(index + 1, name.length());\n }",
"public static ResidueLocator fromString(String s)\n\t{\n\t\tif(s.startsWith(\"[\")&&s.endsWith(\"]\"))\n\t\t\ts = s.substring(1,s.length()-1);\n\t\tString toks[] = s.split(\"\\\\|\");\n\t\treturn new ResidueLocator(toks[0],toks[1],Integer.parseInt(toks[2]));\n\t}",
"public static SortBy valueOf(final String name) {\n\t\treturn valueOf(name, SortBy.class);\n\t}",
"private static int cmp( String str1, String str2 )\n \t\t{\n \t\t\tif ( str1==null && str2==null )\n \t\t\t\treturn 0;\n \t\t\tif ( str1==null )\n \t\t\t\treturn -1;\n \t\t\tif ( str2==null )\n \t\t\t\treturn 1;\n \t\t\t\n \t\t\tint p1 = 0;\n \t\t\tint p2 = 0;\n \t\t\tfor ( ;; ) {\n \t\t\t\tif ( p1>=str1.length() ) {\n \t\t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\t\treturn 0;\n \t\t\t\t\treturn 1;\n \t\t\t\t}\n \t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\treturn -1;\n \t\t\t\tchar ch1 = str1.charAt(p1);\n \t\t\t\tchar ch2 = str2.charAt(p2);\n \t\t\t\tif ( ch1>='0' && ch1<='9' && ch2>='0' && ch2<='9' ) {\n \t\t\t\t\tint n1 = 0;\n \t\t\t\t\tint n2 = 0;\n \t\t\t\t\twhile ( ch1>='0' && ch1<='9' ) {\n \t\t\t\t\t\tp1++;\n \t\t\t\t\t\tn1 = n1 * 10 + (ch1-'0');\n \t\t\t\t\t\tif ( p1>=str1.length() )\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\tch1 = str1.charAt(p1);\n \t\t\t\t\t}\n \t\t\t\t\twhile ( ch2>='0' && ch2<='9' ) {\n \t\t\t\t\t\tp2++;\n \t\t\t\t\t\tn2 = n2 * 10 + (ch2-'0');\n \t\t\t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\tch2 = str2.charAt(p2);\n \t\t\t\t\t}\n \t\t\t\t\tint c = cmp(n1, n2);\n \t\t\t\t\tif ( c!=0 )\n \t\t\t\t\t\treturn c;\n \t\t\t\t} else {\n \t\t\t\t\tif ( ch1<ch2 )\n \t\t\t\t\t\treturn -1;\n \t\t\t\t\tif ( ch1>ch2 )\n \t\t\t\t\t\treturn 1;\n \t\t\t\t\tp1++;\n \t\t\t\t\tp2++;\n \t\t\t\t}\n \t\t\t}\n \t\t}",
"@Override\r\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\tString[] values = o1.split(\";\");\r\n\t\t\t\t//Take the second string and do the same thing\r\n\t\t\t\tString[] values2 = o2.split(\";\");\r\n\t\t\t\t//Compare strings according to their integer values\r\n\t\t\t\treturn Integer.valueOf(values[0].replace(\"\\\"\", \"\")).compareTo(Integer.valueOf(values2[0].replace(\"\\\"\", \"\")));\r\n\t\t\t}",
"public String[] sortString(String input)\n {\n if(input==null)\n {\n return null;\n }\n else {\n //split string by \" \"\n String[] arrInput=input.split(\" \");\n //sort the string array\n Arrays.sort(arrInput);\n return arrInput;\n }\n }",
"public static int compareStringVersion(String ver1, String ver2)\n throws NumberFormatException {\n int i1, i2;\n while (ver1 != null || ver2 != null) {\n if (ver1 != null) {\n\tint d1 = ver1.indexOf(\".\");\n\tif (d1 == -1) {\n\t i1 = Integer.parseInt(ver1.trim());\n\t ver1 = null;\n\t} else {\n\t i1 = Integer.parseInt(ver1.substring(0, d1).trim());\n\t ver1 = ver1.substring(d1 + 1);\n\t}\n } else {\n\ti1 = 0;\n }\n if (ver2 != null) {\n\tint d2 = ver2.indexOf(\".\");\n\tif (d2 == -1) {\n\t i2 = Integer.parseInt(ver2.trim());\n\t ver2 = null;\n\t} else {\n\t i2 = Integer.parseInt(ver2.substring(0, d2).trim());\n\t ver2 = ver2.substring(d2 + 1);\n\t}\n } else {\n\ti2 = 0;\n }\n if (i1 < i2) {\n\treturn -1;\n }\n if (i1 > i2) {\n\treturn 1;\n }\n }\n return 0;\n }",
"public static ResourceOperation.Type parseType(String str) {\n if (StringComparator.isSameIgnoreCase(str, \"added\")) {\n return ADDED;\n } else if (StringComparator.isSameIgnoreCase(str, \"removed\")) {\n return REMOVED;\n } else if (StringComparator.isSameIgnoreCase(str, \"moved_from\")) {\n return MOVED_FROM;\n } else if (StringComparator.isSameIgnoreCase(str, \"moved_to\")) {\n return MOVED_TO;\n } else if (StringComparator.isSameIgnoreCase(str, \"renamed_from\")) {\n return RENAMED_FROM;\n } else if (StringComparator.isSameIgnoreCase(str, \"renamed_to\")) {\n return RENAMED_TO;\n }\n \n return OTHERS;\n }",
"@Test\n public void testSerialization() throws Exception {\n ExtendedRegexStringComparator a = new ExtendedRegexStringComparator(\"a|b\");\n ExtendedRegexStringComparator b = ExtendedRegexStringComparator.parseFrom(a.toByteArray());\n assertTrue(a.areSerializedFieldsEqual(b));\n assertTrue(b.getEngine() instanceof ExtendedRegexStringComparator.JavaRegexEngine);\n\n // joni engine\n a = new ExtendedRegexStringComparator(\"a|b\", ExtendedRegexStringComparator.EngineType.JONI);\n b = ExtendedRegexStringComparator.parseFrom(a.toByteArray());\n assertTrue(a.areSerializedFieldsEqual(b));\n assertTrue(b.getEngine() instanceof ExtendedRegexStringComparator.JoniRegexEngine);\n\n // re2j engine\n a = new ExtendedRegexStringComparator(\"a|b\", ExtendedRegexStringComparator.EngineType.RE2J);\n b = ExtendedRegexStringComparator.parseFrom(a.toByteArray());\n assertTrue(a.areSerializedFieldsEqual(b));\n assertTrue(b.getEngine() instanceof ExtendedRegexStringComparator.Re2JRegexEngine);\n\n // brics engine\n a = new ExtendedRegexStringComparator(\"a|b\", ExtendedRegexStringComparator.EngineType.BRICS);\n b = ExtendedRegexStringComparator.parseFrom(a.toByteArray());\n assertTrue(a.areSerializedFieldsEqual(b));\n assertTrue(b.getEngine() instanceof ExtendedRegexStringComparator.BricsRegexEngine);\n\n // fast brics engine\n a = new ExtendedRegexStringComparator(\"a|b\", ExtendedRegexStringComparator.EngineType.FAST_BRICS);\n b = ExtendedRegexStringComparator.parseFrom(a.toByteArray());\n assertTrue(a.areSerializedFieldsEqual(b));\n assertTrue(b.getEngine() instanceof ExtendedRegexStringComparator.FastBricsRegexEngine);\n\n // fastest brics engine\n a = new ExtendedRegexStringComparator(\"a|b\", ExtendedRegexStringComparator.EngineType.FASTEST_BRICS);\n b = ExtendedRegexStringComparator.parseFrom(a.toByteArray());\n assertTrue(a.areSerializedFieldsEqual(b));\n assertTrue(b.getEngine() instanceof ExtendedRegexStringComparator.FastBricsRegexEngine);\n\n }",
"static Rule parse(String s) {\n var arr = s.split(\" bags contain \");\n var left = arr[0];\n var right = List.of(arr[1].split(\", \"));\n return new Rule(left, right.map(Bags::parse).filter(bag -> bag != null));\n }",
"public static Object parse(String s) throws ParseException {\n try {\n return parse(new StringReader(s));\n } catch (IOException e) {\n // We cannot get an IOException when reading from String.\n throw new AssertionError(e);\n }\n }",
"public StringParseable getParser(String input) {\n\t\treturn new XMLStringParser(input);\n\t}",
"private static List<String> sort(String a)\n {\n String temp;\n List<String> list = new ArrayList<String>();\n for(int t = 0; t < a.length(); t++)\n {\n list.add(\"\"+a.charAt(t));\n }\n for(int i = 1; i < list.size(); i++)\n {\n for(int j = i ; j > 0; j--)\n {\n if(list.get(j).charAt(0) < list.get(j-1).charAt(0))\n {\n temp = list.get(j);\n list.set(j,list.get(j-1));\n list.set(j-1,temp);\n }\n \n }\n }\n return list;\n }",
"@Override\n\tpublic String sortString(String input) {\n\t\tchar[] chars = input.toCharArray();\n\t\tArrays.sort(chars);\n\t\tString sorted = new String(chars);\n\t\treturn sorted;\t\n\t}",
"public abstract T parse(String s);",
"public static Comparator<Term> byLexicographicOrder()\n\t{\n\t\tComparator<Term> comp = new byLexicographicOrder();\n\t\treturn comp;\n\t}",
"private static Comparator<Person> comparator(CrudFilter filter) {\n return filter.getSortOrders().entrySet().stream()\n .map(sortClause -> {\n try {\n Comparator<Person> comparator\n = Comparator.comparing(person ->\n (Comparable) valueOf(sortClause.getKey(), person));\n\n if (sortClause.getValue() == SortDirection.DESCENDING) {\n comparator = comparator.reversed();\n }\n\n return comparator;\n } catch (Exception ex) {\n return (Comparator<Person>) (o1, o2) -> 0;\n }\n })\n .reduce(Comparator::thenComparing)\n .orElse((o1, o2) -> 0);\n }",
"public static SortBy valueOfUsingSortName(final String sortString) {\n\t\tfor (final SortBy sortBy : values()) {\n\t\t\tif (sortBy.getSortString().equals(sortString)) {\n\t\t\t\treturn sortBy;\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalArgumentException(\"No such SortBy with sortString \" + sortString);\n\t}",
"private static Currency parseInput(String input) {\n\n\t\t// The column looks like following:\n\t\t// column 0 = Period\n\t\t// column 1 = Group\n\t\t// column 2 = \"Serie\" (Currency code)\n\t\t// column 3 = Exchange rate\n\t\tString[] parts = input.split(\";\");\n\n\t\tString[] currencyCodeParts = parts[2].split(\" \");\n\t\tString currencyCode = currencyCodeParts[1].strip();\n\n\t\tString exchangeRateString = parts[3].strip();\n\t\tdouble exchangeRate = Double.parseDouble(exchangeRateString);\n\n\t\tif (currencyCodeParts[0].strip().length() > 1)\n\t\t\treturn new Currency(currencyCode, exchangeRate/100);\n\t\telse\n\t\t\treturn new Currency(currencyCode, exchangeRate);\n\t}",
"public T parse(String value);",
"public void parse(String string) {\n\t\t\n\t}",
"public abstract T parse(String str);",
"private static Comparator<String> arbitraryStringComparator(String... stringsInOrder) {\n var arbitraryComparator = comparing((String s) -> ImmutableList.copyOf(stringsInOrder).reverse().indexOf(s));\n return arbitraryComparator.reversed().thenComparing(naturalOrder());\n }",
"private static Map<String, List<String>> getCustomStringStructure(@NotNull String s) {\n String[] arr = s.split(\" \");\n // the storage\n Map<String, List<String>> map = new TreeMap<>();\n // put the first element in the storage\n List<String> l = new ArrayList<>();\n l.add(arr[0]);\n map.put(arr[0].substring(0, 1), l);\n\n for (int i = 1; i < arr.length; i++) {\n String sub = arr[i].substring(0, 1);\n // if map contains key put String arr[i] in the List\n if (map.containsKey(sub)) {\n map.get(sub).add(arr[i]);\n } else {\n // if not put first letter as a key and arr[i] as a value in the map\n List<String> list = new ArrayList<>();\n list.add(arr[i]);\n map.put(sub, list);\n }\n }\n\n // sort by size, by string's length and alphabetically\n Map<String, List<String>> collect = map.entrySet()\n .stream()\n .filter(k -> k.getValue().size() > 1)\n .collect(Collectors.toMap(\n Map.Entry::getKey,\n e -> e.getValue().stream().sorted((o1, o2) -> {\n if (o2.length() != o1.length()) {\n return o2.length() - o1.length();\n } else {\n return o1.compareTo(o2);\n }\n })\n .collect(Collectors.toList())\n ));\n\n // return TreeMap to sort keys\n return new TreeMap<>(collect);\n }",
"protected Comparator getNameComparator()\n {\n if(nameComparator == null)\n {\n nameComparator = new SMComponentNameComparator();\n }\n\n return nameComparator;\n }",
"@Override\r\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\tif ((Double.parseDouble(o1)-Double.parseDouble(o2))>0) {\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t} else if ((Double.parseDouble(o1)-Double.parseDouble(o2))<0) {\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t}",
"private Comparator<Character> getCharacterComparator(String type, String sort) {\n String term = type + \" \" + sort;\n return DashboardController.getCharacterComparator(term);\n }",
"@Test\n public void parseCamelCase_returnsSortCommand() {\n assertParseSuccess(PARAM_CAMEL_CASE);\n }",
"public int compare(String str1, String str2) {\r\n int num1 = Integer.parseInt(str1.substring(4, str1.length()));\r\n int num2 = Integer.parseInt(str2.substring(4, str2.length()));\r\n\r\n return num1 - num2;\r\n\r\n }",
"@Override\r\n\tpublic int compare(String str0, String str1) {\n\t\tString[] tempStr0 = str0.split(\",\", 2);\r\n\t\tString[] tempStr1 = str1.split(\",\", 2);\r\n\r\n\t\t// Hilbert code comparison\r\n\t\tint hilbertComparedValue = _hibertComp.compare(tempStr0[0], tempStr1[0]);\r\n\r\n\t\tif (hilbertComparedValue != 0) \r\n\t\t{\r\n\t\t\treturn hilbertComparedValue;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\treturn tempStr0[1].compareTo(tempStr1[1]);\r\n\t\t}\t\t\r\n\t}",
"@Override\n public int compare(String s, String t1) {\n return t1.charAt(t1.length()-1)-s.charAt(s.length()-1);\n// return s.charAt(4);\n\n }",
"public static TableId parse(String str) {\n return parse(str, true);\n }",
"public String customSortString(String S, String T) {\n order = new HashMap();\n // String length of S\n int lenS = S.length();\n // go through S string.\n for(int i = 0; i < lenS; i++){\n order.put(S.charAt(i), i);\n }\n\n // sort string T\n char[] arrT = T.toCharArray();\n Arrays.sort(arrT, new Comparator<Character>(){\n public int compare(Character a, Character b){\n if(order.get(a) < order.get(b)) return -1;\n if(order.get(a) > order.get(b)) return 1;\n return 0;\n }\n });\n\n return new String(arrT);\n }",
"@Override\n\tpublic int compare(String o1, String o2) {\n\t\tif (o1.length() > o2.length()) {\n\t\t\treturn 1;\n\t\t} else if (o1.length() < o2.length()) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tif (o1.compareTo(o2) > 0) {\n\t\t\t\treturn 1;\n\t\t\t} else {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\tpublic int compare(String o1, String o2) {\n\t\t\treturn sort(o1).compareTo(sort(o2));\n\t\t}",
"private String[] compareKeys(String currentString) {\n String s1 = \"\";\n String s2 = \"\";\n String[] answer = new String[2];\n for(int i = 0; i < currentString.length(); i++) {\n if(currentString.charAt(i) == '|') {\n s1 = currentString.substring(0,i);\n s2 = currentString.substring(i + 1);\n }\n }\n int compare = s1.compareTo(s2);\n String lesser = \"\";\n String greater = \"\";\n if(compare < 1) {\n lesser = s1;\n greater = s2;\n }\n else{\n lesser = s2;\n greater = s1;\n }\n answer[0] = lesser;\n answer[1] = greater;\n return answer;\n }",
"private static @NotNull List<String> parse(@Nullable String s) {\n if (s == null) {\n return Collections.emptyList();\n }\n final Pattern COMPONENT_RE = Pattern.compile(\"\\\\d+|[a-z]+|\\\\.|-|.+\");\n final List<String> results = new ArrayList<>();\n final Matcher matcher = COMPONENT_RE.matcher(s);\n while (matcher.find()) {\n final String component = replace(matcher.group());\n if (component == null) {\n continue;\n }\n results.add(component);\n }\n for (int i = results.size() - 1; i > 0; i--) {\n if (\"00000000\".equals(results.get(i))) {\n results.remove(i);\n }\n else {\n break;\n }\n }\n results.add(\"*final\");\n return results;\n }",
"static String sortString(String a){\n char[] charInString = a.toCharArray();\n Arrays.sort(charInString);\n return String.valueOf(charInString);\n }",
"public static CompressorType fromString(String name) {\n for (CompressorType v : values()) {\n if (v.name().equalsIgnoreCase(name)) {\n return v;\n }\n }\n\n // cannot get here\n assert false;\n return null;\n }",
"Optional<T> parse(@Nonnull String s);",
"@Override\n public int compare(String str1, String str2) {\n String digitRegex = \".*\\\\d+.*\";\n boolean hasDigits1 = str1.matches(digitRegex);\n boolean hasDigits2 = str2.matches(digitRegex);\n int result = -Boolean.valueOf(hasDigits1).compareTo(hasDigits2);\n\n if (result == 0) {\n // Secondary order: length, descending\n result = -Integer.valueOf(str1.length()).compareTo(str2.length());\n }\n\n return result;\n }",
"public static Complex parse(String s) {\n\n Pattern pattern = Pattern.compile(\"[+-]?\\\\d*\\\\.?\\\\d+\");\n Matcher matcher = pattern.matcher(s);\n\n List<Double> values = new ArrayList<>();\n\n while (matcher.find()) {\n values.add(Double.parseDouble(matcher.group()));\n }\n\n if (values.size() == 2) {\n return new Complex(values.get(0), values.get(1));\n\n } else if (values.size() == 1) {\n if (s.charAt(s.length() - 1) == 'i') {\n if (s.charAt(s.length() - 2) == '+' || s.charAt(s.length() - 2) == '-') {\n return new Complex(values.get(0), s.charAt(s.length() - 2) == '-' ? -1 : 1);\n } else {\n return new Complex(0, values.get(0));\n }\n\n } else {\n return new Complex(values.get(0), 0);\n\n }\n } else if (s.charAt(s.length() - 1) == 'i') {\n return new Complex(0, s.charAt(0) == '-' ? -1 : 1);\n } else {\n throw new IllegalArgumentException();\n }\n }",
"public static long parse(String s) throws NumberFormatException {\n return parse(s, ByteUnit.B);\n }",
"public IValuable parse(String value);",
"public static ConnectionDirection fromString(String s) {\n if (s != null) {\n for (ConnectionDirection cd : ConnectionDirection.values()) {\n if (s.equals(cd.text)) {\n return cd;\n }\n }\n }\n return ConnectionDirection.INVALID;\n }",
"public static List<String> parse(String s) {\r\n\t\tVector<String> rval = new Vector<String>();\r\n\t\tStringTokenizer tkn = new StringTokenizer(s);\r\n\t\twhile (tkn.hasMoreTokens())\r\n\t\t\trval.add(tkn.nextToken());\r\n\t\treturn rval;\r\n\t}",
"@Override \n\tpublic int compare(String str1, String str2) {\n\t\treturn str2.compareTo(str1);\n\t}",
"public SortSpecification getSortSpecification(String s, boolean flag) {\n return null;\r\n }",
"public static Vect3 parse(String str) {\n\t\tString[] fields = str.split(Constants.wsPatternParens);\n\t\tif (fields[0].equals(\"\")) {\n\t\t\tfields = Arrays.copyOfRange(fields,1,fields.length);\n\t\t}\n\t\ttry {\n\t\t\tif (fields.length == 3) {\n\t\t\t\treturn new Vect3(Double.parseDouble(fields[0]),Double.parseDouble(fields[1]),Double.parseDouble(fields[2]));\n\t\t\t} else if (fields.length == 6) {\n\t\t\t\treturn new Vect3(Units.from(Units.clean(fields[1]),Double.parseDouble(fields[0])),\n\t\t\t\t\t\tUnits.from(Units.clean(fields[3]),Double.parseDouble(fields[2])),\n\t\t\t\t\t\tUnits.from(Units.clean(fields[5]),Double.parseDouble(fields[4])));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// ignore exception\n\t\t}\n\t\treturn INVALID;\n\t}",
"@Override\n\t\tpublic int compare(String o1, String o2) {\n\t\t\treturn o1.compareTo(o2);\n\t\t}",
"public static Comparator<File> createComparator(String order) {\n switch (order) {\n case SIZE:\n return new SizeOrder();\n case TYPE:\n return new TypeOrder();\n case ABS:\n return new AbsOrder();\n }\n return new AbsOrder();\n }",
"public static SortOrder valueOfName(String name) {\n\t\tif (name == null) {\n\t\t\treturn null;\n\t\t}\n\t\tfor (SortOrder p : SortOrder.values()) {\n\t\t\tif (name.equals(p.getSimpleName())) {\n\t\t\t\treturn p;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public TreeNode deserialize(String data) {\n\t\tString[] orders = data.split(\":\");\n\t\tString[] preorderString = orders[0].split(\",\");\n\t\tString[] inorderString = orders[1].split(\",\");\n\n\t\tint[] preorder = new int[preorderString.length], inorder = new int[inorderString.length];\n\t\tfor (int i = 0; i < preorderString.length; i++) {\n\t\t\tpreorder[i] = Integer.parseInt(preorderString[i]);\n\t\t\tinorder[i] = Integer.parseInt(inorderString[i]);\n\t\t}\n\t\treturn buildTree(preorder, inorder, 0, preorder.length - 1, 0, inorder.length - 1);\n\t}",
"private int parseCoefficientString(String str) {\n\t\tif(str.length() == 1 && str.charAt(0) == MINUS_SYMBOL) {\n\t\t\treturn -1;\n\t\t}\n\t\telse if(str.length() == 1 && str.charAt(0) == PLUS_SYMBOL) {\n\t\t\treturn 1;\n\t\t}\n\t\telse {\n\t\t\treturn Integer.parseInt(str);\n\t\t}\n\t}",
"public static ArrayDeque<String> parseSingle (String inputString) {\n\n //using ArrayDeque here since it does everything and is flexible. Could do a linkedList though..?\n ArrayDeque inputQueue = new ArrayDeque<String>();; //input queue. not sure if i really need this\n ArrayDeque outputQueue = new ArrayDeque<String>();//output queue\n ArrayDeque operatorStack = new ArrayDeque<String>(); //operator stack\n\n //remove spaces\n inputString = inputString.replaceAll(\"\\\\s+\", \"\");\n\n String inputArray[] = inputString.split(\"(?<==>|&|~|\\\\/|<=>)|(?==>|&|~|\\\\/|<=>)\"); //TODO build this regex dynamically from Connective enum\n for (String inputElement: inputArray) {\n inputQueue.add(inputElement);\n }\n\n //convert to rpn form\n //don't worry about parentheses, do later as part of research\n while (!inputQueue.isEmpty()) {\n //check if element is a operator\n if (isOperator((String)inputQueue.peekFirst())) {\n\n //add operator to stack if empty\n if (operatorStack.isEmpty()) {\n operatorStack.addLast(inputQueue.pollFirst());\n\n //while there is an operator on the operatorStack with greater precedence than the current pop that one\n } else if (compare((String)inputQueue.peekFirst(), (String)operatorStack.peekLast()) <= 0) {\n outputQueue.add(operatorStack.pollLast());\n continue; //need to restart loop since may be operatorStack.size() > 1\n } else {\n operatorStack.addLast(inputQueue.pollFirst());\n }\n //operands\n } else {\n outputQueue.add(inputQueue.pollFirst());\n }\n }\n\n //once inputQueue is empty need to finish draining the operators\n while (!operatorStack.isEmpty()) {\n outputQueue.add(operatorStack.pollLast());\n }\n\n //TODO: maybe convert proposition symbol to Horn form\n\n return (outputQueue);\n }",
"private String[] sortStringArray(String[] lines, Comparator<String> comparator) {\n Arrays.sort(lines, comparator);\n return lines;\n }",
"public TreeNode str2tree(String s) {\n if (s == null || s.length() == 0) {\n return null;\n }\n Stack<TreeNode> stack = new Stack<>();\n for (int i = 0; i < s.length(); i++) {\n int j = i;\n char c = s.charAt(i);\n if (c == ')') {\n stack.pop();\n } else if (c >= '0' && c <= '9' || c =='-') {\n while (i + 1 < s.length() && s.charAt(i + 1) >= '0' && s.charAt(i + 1) <= '9') {\n i++;\n }\n TreeNode cur = new TreeNode(Integer.valueOf(s.substring(j, i + 1)));\n if (!stack.isEmpty()) {\n TreeNode parent = stack.peek();\n if (parent.left != null) {\n parent.right = cur;\n } else {\n parent.left = cur;\n }\n }\n stack.push(cur);\n }\n }\n return stack.peek();\n }",
"public String sortTheCharInString(String s){\n\n\t\treturn Stream.of(s.split(\"\"))\n\t\t\t\t.sorted()\n\t\t\t\t.collect(Collectors.joining());\n\t}",
"public static Result<MessageType, JSONException> fromString(String str) {\r\n return Result.ofRuntime(() -> valueOf(str))\r\n .mapError(ignored -> new JSONException(\"command not recognised\"));\r\n }",
"@Override\r\n\tpublic int compare(String o1, String o2) {\n\t\treturn sortChars(o1).compareTo(sortChars(o2));\r\n\t}",
"private Token tokenize(String string) {\n\t\t\tswitch(string) {\n\t\t\tcase \"<\":\n\t\t\t\tif(text[currentIndex] == '=') {\n\t\t\t\t\tcurrentIndex++;\n\t\t\t\t\treturn new Token(TokenType.OPERATOR, ComparisonOperators.LESS_OR_EQUALS);\n\t\t\t\t}\n\t\t\t\treturn new Token(TokenType.OPERATOR, ComparisonOperators.LESS);\n\t\t\tcase \">\":\n\t\t\t\tif(text[currentIndex] == '=') {\n\t\t\t\t\tcurrentIndex++;\n\t\t\t\t\treturn new Token(TokenType.OPERATOR, ComparisonOperators.GREATER_OR_EQUALS);\n\t\t\t\t}\n\t\t\t\treturn new Token(TokenType.OPERATOR, ComparisonOperators.GREATER);\n\t\t\tcase \"=\":\n\t\t\t\treturn new Token(TokenType.OPERATOR, ComparisonOperators.EQUALS);\n\t\t\tcase \"!=\":\n\t\t\t\treturn new Token(TokenType.OPERATOR, ComparisonOperators.NOT_EQUALS);\n\t\t\tcase \"LIKE\":\n\t\t\t\treturn new Token(TokenType.OPERATOR, ComparisonOperators.LIKE);\n\t\t\tcase \"jmbag\":\n\t\t\t\treturn new Token(TokenType.FIELD, FieldValueGetters.JMBAG);\n\t\t\tcase \"lastName\":\n\t\t\t\treturn new Token(TokenType.FIELD, FieldValueGetters.LAST_NAME);\n\t\t\tcase \"firstName\":\n\t\t\t\treturn new Token(TokenType.FIELD, FieldValueGetters.FIRST_NAME);\n\t\t\tcase \"\\\"\":\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\n\t\t\t\twhile(currentIndex < text.length) {\n\t\t\t\t\tchar currentChar = text[currentIndex++];\n\t\t\t\t\t\n\t\t\t\t\tif(currentChar == '\"') {\n\t\t\t\t\t\treturn new Token(TokenType.STRING_LITERAL, sb.toString());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsb.append(currentChar);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tthrow new LexerException(\"String literal not closed! It was: \" + sb.toString());\n\t\t}\n\t\t\t\n\t\tif(string.toLowerCase().equals(\"and\"))\n\t\t\treturn new Token(TokenType.AND, null);\n\t\t\n\t\treturn null;\n\t}",
"private static String sortString(String str) {\n char[] charArray = str.toCharArray();\n java.util.Arrays.sort(charArray);\n return new String(charArray);\n }",
"@Override\n public int compare(String o1, String o2) {\n int res = String.CASE_INSENSITIVE_ORDER.compare(o1, o2);\n if (res == 0) {\n res = o1.compareTo(o2);\n }\n return res;\n }",
"@Override\n\tpublic OrdineTestata fromString(String ordineTestata) {\n\t\treturn null;\n\t}",
"public ArrayList<Card> stringToCards(String s) {\n ArrayList<Card> cards = new ArrayList<>();\n String[] splitS = s.split(\" \");\n for(int x = 0; x < splitS.length; x++) {\n cards.add(new Card(splitS[x].substring(0, 1), splitS[x].substring(1)));\n }\n return cards;\n }",
"int stringsConstruction(String a, String b){\n a=\" \"+a+\" \";\n b=\" \"+b+\" \";\n int output = b.split(\"\"+a.charAt(1)).length - 1;\n for(char i = 'a'; i <= 'z'; i++) {\n if (a.split(\"\"+i).length > 1) {\n int tempOut = (b.split(\"\"+i).length - 1) / (a.split(\"\"+i).length - 1);\n if (output > tempOut) {\n output = tempOut;\n }//if (output > tempOut) {\n }//if (a.split(\"\"+i).length > 1) {\n }//for(char i = 'a'; i <= 'z'; i++) {\n return output;\n }",
"@Override\n public int compare(String s1, String s2) {\n return s1.compareTo(s2);\n\n }",
"public String comp(String s) {\n\t\tif(s.equals(\"0\")) {\n\t\t\treturn \"0101010\";\n\t\t} else if(s.equals(\"1\")) {\n\t\t\treturn \"0111111\";\n\t\t} else if(s.equals(\"-1\")) {\n\t\t\treturn \"0111010\";\n\t\t} else if(s.equals(\"D\")) {\n\t\t\treturn \"0001100\";\n\t\t} else if(s.equals(\"A\")) {\n\t\t\treturn \"0110000\";\n\t\t} else if(s.equals(\"M\")) {\n\t\t\treturn \"1110000\";\n\t\t} else if(s.equals(\"!D\")) {\n\t\t\treturn \"0001101\";\n\t\t} else if(s.equals(\"!A\")) {\n\t\t\treturn \"0110001\";\n\t\t} else if(s.equals(\"!M\")) {\n\t\t\treturn \"1110001\";\n\t\t} else if(s.equals(\"-D\")) {\n\t\t\treturn \"0001111\";\n\t\t} else if(s.equals(\"-A\")) {\n\t\t\treturn \"0110011\";\n\t\t} else if (s.equals(\"-M\")) {\n\t\t\treturn \"1110011\";\n\t\t} else if(s.equals(\"D+1\")) {\n\t\t\treturn \"0011111\";\n\t\t} else if(s.equals(\"A+1\")) {\n\t\t\treturn \"0110111\";\n\t\t} else if (s.equals(\"M+1\")) {\n\t\t\treturn \"1110111\";\n\t\t} else if(s.equals(\"D-1\")) {\n\t\t\treturn \"0001110\";\n\t\t} else if(s.equals(\"A-1\")) {\n\t\t\treturn \"0110010\";\n\t\t} else if(s.equals(\"M-1\")) {\n\t\t\treturn \"1110010\";\n\t\t} else if(s.equals(\"D+A\")) {\n\t\t\treturn \"0000010\";\n\t\t} else if(s.equals(\"D+M\")) {\n\t\t\treturn \"1000010\";\n\t\t} else if(s.equals(\"D-A\")) {\n\t\t\treturn \"0010011\";\n\t\t} else if(s.equals(\"D-M\")) {\n\t\t\treturn \"1010011\";\n\t\t} else if(s.equals(\"A-D\")) {\n\t\t\treturn \"0000111\";\n\t\t} else if(s.equals(\"M-D\")) {\n\t\t\treturn \"1000111\";\n\t\t} else if(s.equals(\"D&A\")) {\n\t\t\treturn \"0000000\";\n\t\t} else if(s.equals(\"D&M\")) {\n\t\t\treturn \"1000000\";\n\t\t} else if(s.equals(\"D|A\")) {\n\t\t\treturn \"0010101\";\n\t\t} else if(s.equals(\"D|M\")) {\n\t\t\treturn \"1010101\";\n\t\t}\n\t\telse {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public Expression determine(String s);",
"@Override\n\t\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\t\tif(o1.compareTo(o2) < 0){\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}else if(o1.compareTo(o2) > 0){\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\t}\n\t\t\t\t\treturn 0;\n\t\t\t\t}",
"public static String sortString(String s) {\n char[] buf = s.toCharArray();\n Arrays.sort(buf);\n return new String(buf);\n }",
"public int convert(String str) {\n if(str == null || str.length() == 0)\n return 0;\n// Integer pre = null;\n int i = str.length() - 1;\n int res = 0; // assume there will not be overflow\n while(i >= 0) {\n Character cur = str.charAt(i);\n Character pre = i - 1 > 0 ? str.charAt(i-1) : null;\n if(pre != null && pre <= cur) {\n res += map.get(cur) - map.get(pre);\n i--;\n }\n else {\n res += map.get(cur);\n }\n i--;\n }\n return res;\n }",
"public int compareTo(XMLString anotherString) {\n/* 242 */ return this.m_str.compareTo(anotherString.toString());\n/* */ }",
"public static void sortStringsDictionary( ArrayList<String> lst )\n {\n PredicateStringPair p = (a, b) -> {\n String[] newA = a.split(\"\");\n String[] newB = b.split(\"\");\n int min;\n boolean mismatch = false;\n String adif = \"\";\n String bdif = \"\";\n if (a.length() < b.length()) {\n min = a.length();\n } else {\n min = b.length();\n }\n\n for (int i = 0; i < min; i++) {\n if (!newA[i].equals(newB[i])) {\n mismatch = true;\n adif = newA[i];\n bdif = newB[i];\n break;\n\n }\n }\n if (mismatch == false) {\n if(a.length() < b.length()) {\n return true;\n }\n else{\n return false;\n }\n }\n else{\n if(adif.matches(\"[a-zA-Z]\") && !bdif.matches(\"[a-zA-Z]\")) {\n return true;\n }\n else if (bdif.matches(\"[a-zA-Z]\") && !adif.matches(\"[a-zA-Z]\")) {\n return false;\n }\n else if (adif.matches(\"[a-zA-Z]\") && bdif.matches(\"[a-zA-Z]\")){\n //Automates the creation of the custom alphabetical ordering\n ArrayList<String> alph = new ArrayList<String>();\n for (int i = 0; i < 26; i++){\n alph.add(Character.toString(97 + i));\n alph.add(Character.toString(65 + i));\n }\n if (alph.indexOf(adif) < alph.indexOf(bdif)){\n return true;\n }\n else {\n return false;\n }\n }\n else {\n if (adif.compareTo(bdif) > 1) {\n return false;\n }\n else{\n return true;\n }\n\n\n }\n\n }\n\n };\n sortStrings(lst, p);\n }",
"@Override\n\tpublic int compare(String s1, String s2) {\n\t\t// compareTo is a method of the comparaiable interface\n\t\treturn s1.compareTo(s2);\n\t}",
"List<Object> parse(String inputLine) {\n List<Object> lo = new ArrayList<>();\n int lineLength = inputLine.length();\n for (int i = 0; i < lineLength; i++) {\n char c = inputLine.charAt(i);\n //creator of constant:\n if (isPartOfNumber(c)) {\n String constantValue = \"\";\n for (; i < lineLength; i++) {\n c = inputLine.charAt(i);\n if (!isPartOfNumber(c)) {\n break;\n }\n constantValue += c;\n }\n //assign constant\n lo.add(new Constant(Double.parseDouble(constantValue)));\n if (i == lineLength) {\n break;\n }\n }\n switch (c) {\n case '(':\n lo.add(Brackets.OPENING);\n break;\n case ')':\n lo.add(Brackets.CLOSING);\n break;\n case '²':\n lo.add(Operators.SQUARE);\n break;\n case '√':\n lo.add(Operators.SQUARE_ROOT);\n break;\n case '÷':\n lo.add(Operators.DIVIDE);\n break;\n case '×':\n lo.add(Operators.MULTIPLY);\n break;\n case '%':\n lo.add(Operators.PERCENTAGE);\n break;\n case '+':\n lo.add(Operators.ADD);\n break;\n case '−':\n lo.add(Operators.SUBTRACT);\n break;\n default:\n throw new IllegalArgumentException(\"Unknown symbol used as input string\");\n }\n }\n return lo;\n }",
"public static LocalDateInterval parseString(final String input) {\n String[] values = input.split(\"/\");\n try {\n return new LocalDateInterval(parseLocalDate(values[0]), parseLocalDate(values[1]), IntervalEnding.EXCLUDING_END_DATE);\n } catch (Exception e) {\n throw new IllegalArgumentException(\"Unable to parse \" + input);\n }\n }",
"public static TreeNode deserialize(String data) {\n String[] split = data.split(\"-\");\n if (split[0].length() == 2 && split[1].length() == 2) {\n return null;\n }\n split[0] = split[0].replace('[', ' ').replace(']', ' ').trim();\n split[1] = split[1].replace('[', ' ').replace(']', ' ').trim();\n String[] split1 = split[0].split(\",\");\n String[] split2 = split[1].split(\",\");\n int[] pre = new int[split1.length];\n int[] inor = new int[split2.length];\n for (int i = 0; i < pre.length; i++) {\n pre[i] = Integer.parseInt(split1[i].trim());\n }\n for (int i = 0; i < inor.length; i++) {\n inor[i] = Integer.parseInt(split2[i].trim());\n }\n return buildTree(pre, inor);\n }",
"private Command parseCommand(String input) {\r\n\r\n String[] splittedInput = input.toUpperCase().split(\" \");\r\n String command = splittedInput[0];\r\n\r\n switch (command) {\r\n case \"PLACE\":\r\n return new PlaceCommand(input);\r\n case \"MOVE\":\r\n return new MoveCommand();\r\n case \"LEFT\":\r\n return new RotateLeftCommand();\r\n case \"RIGHT\":\r\n return new RotateRightCommand();\r\n case \"REPORT\":\r\n return new ReportCommand();\r\n default:\r\n return new IgnoreCommand();\r\n }\r\n }",
"public int compare(String str, String str2) {\n return str.compareTo(str2);\n }",
"public static IMove parseSequence(String string) {\n\t\t\r\n\t\tfinal String[] parts = string.split(\"[,\\\\s()]\");\r\n\t\tfinal List<IMove> moves = new ArrayList<IMove>();\r\n\t\t\r\n\t\tfor (int i=0; i<parts.length; i++)\r\n\t\t{\r\n\t\t\tparts[i] = parts[i].trim();\r\n\t\t\t\r\n\t\t\tif (parts[i].isEmpty())\r\n\t\t\t\tcontinue;\t\t\t\t\r\n\t\t\t\t\r\n\t\t\tmoves.add(parse(parts[i]));\r\n\t\t}\r\n\t\t\r\n\t\treturn new Algorithm(moves);\r\n\t}",
"private static int compare(String st1, String st2) {\n if (st1.length() < st2.length()) {\n return -1;\n } else {\n return st1.compareTo(st2);\n }\n }",
"@Override\r\n\t\tpublic int compare(String arg0, String arg1) {\n\t\t\treturn arg0.compareTo(arg1);\r\n\t\t}",
"public static Comparator<Transfer> getSortComparator(String sortPropertyName) {\n if (sortPropertyName == null) return null;\n\n try {\n // translate field name to accessor to property\n final Method method = Transfer.class.getMethod(\"get\" + StringUtils.capitalize(sortPropertyName));\n return (x, y) -> MethodGetWrapper.of(method, x).compareTo(MethodGetWrapper.of(method, y));\n } catch (NoSuchMethodException ex) {\n throw new IllegalArgumentException(\"Invalid field name in query parameter 'sort'\", ex);\n }\n }",
"public TreeNode deserialize(String data) {\n return preOrderFromString(data);\n }",
"public static LogicalPath parse(String str) {\n\t\treturn new LogicalPath(Arrays.asList(str.split(\".\")));\n\t}",
"public void testTableColumnStringComparator()\n throws TableException\n {\n\t\tTableColumn<String> tableColumn = new TableColumn<String>(\"name\", comparator);\n\t\tassertSame(tableColumn.getComparator(), comparator);\n\t\tassertNotNull(tableColumn.getReverseComparator());\n\t\tassertNotSame(tableColumn.getReverseComparator(), tableColumn.getComparator());\n\t\tassertEquals(tableColumn.isSortable(), true);\n assertEquals(tableColumn.getReverseComparator().compare(a, b),\n tableColumn.getComparator().compare(b, a));\n }",
"public int CompareTo(String comp){\n\t\t return producto.getNombre().compareTo(comp);\n\t }",
"public JsonParser createParser(String content)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 879 */ int strLen = content.length();\n/* */ \n/* 881 */ if ((this._inputDecorator != null) || (strLen > 32768) || (!canUseCharArrays()))\n/* */ {\n/* */ \n/* 884 */ return createParser(new StringReader(content));\n/* */ }\n/* 886 */ IOContext ctxt = _createContext(content, true);\n/* 887 */ char[] buf = ctxt.allocTokenBuffer(strLen);\n/* 888 */ content.getChars(0, strLen, buf, 0);\n/* 889 */ return _createParser(buf, 0, strLen, ctxt, true);\n/* */ }",
"public static Token tokenize(String s, Token parent) {\n\t\tOperator operator = null;\n\t\tint index = -1;\n\t\tif (s.indexOf('=') != -1) {\n\t\t\toperator = Operator.EQUAL;\n\t\t\tindex = s.indexOf('=');\n\t\t} else if (s.indexOf('<') != -1) {\n\t\t\toperator = Operator.LESS;\n\t\t\tindex = s.indexOf('<');\n\t\t} else if (s.indexOf('>') != -1) {\n\t\t\toperator = Operator.MORE;\n\t\t\tindex = s.indexOf('>');\n\t\t}\n\t\t\n\t\tif (index == -1)\n\t\t\treturn new Token(s, null, null, parent);\n\t\telse\n\t\t\treturn new Token(s.substring(0, index).trim(), s.substring(index + 1).trim(), operator, parent);\n\t}",
"public static Command parse(String str) throws DukeException {\n\n String[] arr = str.split(\" \", 2);\n if (arr.length < 1) {\n throw new DukeException(\"No command was given.\");\n }\n String firstWord = arr[0];\n if (str.equalsIgnoreCase(\"bye\")) {\n return new ExitCommand();\n } else if (str.equalsIgnoreCase(\"list\")) {\n return new ListCommand();\n } else {\n Action action = parseFirstWord(firstWord.toLowerCase());\n\n if (arr.length < 2 && (action == Action.Done || action == Action.Delete)) {\n throw new DukeException(\"duke.task.Task number for \" + firstWord + \" is not given.\");\n } else if (arr.length < 2 || arr[1].isBlank()) {\n throw new DukeException(\"The description of \" + firstWord + \" cannot be empty\");\n } else {\n return actionToCommand(action, arr[1]);\n }\n }\n }"
] |
[
"0.70414084",
"0.59867126",
"0.5854648",
"0.53877515",
"0.5321768",
"0.5241755",
"0.5026431",
"0.491475",
"0.4906323",
"0.48888654",
"0.48811927",
"0.4868003",
"0.48525622",
"0.48490724",
"0.4832845",
"0.4827353",
"0.48042017",
"0.47699448",
"0.47698325",
"0.4756923",
"0.475428",
"0.47493717",
"0.4745981",
"0.47298515",
"0.47214648",
"0.47088787",
"0.46994656",
"0.46964067",
"0.46941283",
"0.46896225",
"0.4672396",
"0.46447694",
"0.46355873",
"0.4629494",
"0.46018645",
"0.45962566",
"0.45671344",
"0.4550332",
"0.45428365",
"0.45421845",
"0.45415774",
"0.4535808",
"0.45347056",
"0.45288044",
"0.45134676",
"0.45041367",
"0.4502541",
"0.4502222",
"0.4497196",
"0.44926137",
"0.4475275",
"0.4474697",
"0.44663447",
"0.446592",
"0.44615647",
"0.44569442",
"0.44408476",
"0.44327593",
"0.44323856",
"0.4430652",
"0.44299063",
"0.4426839",
"0.44253612",
"0.44250676",
"0.44215512",
"0.4419736",
"0.44150424",
"0.44145185",
"0.44129026",
"0.44099706",
"0.4401207",
"0.4387469",
"0.4382216",
"0.43614247",
"0.436098",
"0.43596163",
"0.43592098",
"0.43553692",
"0.4352127",
"0.43487942",
"0.43473458",
"0.4338663",
"0.4334725",
"0.43320546",
"0.43231153",
"0.4322176",
"0.4315547",
"0.43118268",
"0.43068957",
"0.43067193",
"0.4306525",
"0.43045542",
"0.42992726",
"0.42958847",
"0.4295233",
"0.42923284",
"0.42871895",
"0.42824998",
"0.42822194",
"0.427585"
] |
0.7640588
|
0
|
Parse a string and return the value.
|
public static Comparator parse(final String value) {
return GREATER_THAN.parseString(value);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public T parse(String value);",
"public IValuable parse(String value);",
"private static Expr parseValue(String string) {\r\n\t\tif (string.isEmpty()) return null;\r\n\r\n\t\tchar first = string.charAt(0);\r\n\t\tif (first != '\"' && first != '-' && isReserved(first)) {\r\n\t\t\treturn new ExprUnary(Operator.get(Character.toString(first)), new ExprVal(string.substring(1)));\r\n\t\t} else {\r\n\t\t\treturn new ExprVal(string);\r\n\t\t}\r\n\t}",
"Optional<T> parse(@Nonnull String s);",
"public abstract void parseValue(String value);",
"public abstract T parse(String s);",
"public String parseString() {\n\t\tString string = scanner.next();\n\t\treturn string;\n\t}",
"public void parse(String string) {\n\t\t\n\t}",
"public final IValue parseString(String s) {\r\n SimpleType v = doParseString(s);\r\n if (v != null) {\r\n v.blueprint = false;\r\n }\r\n return (IValue) v;\r\n }",
"public abstract T parse(String str);",
"protected Object parseValue (String value)\n throws Exception\n {\n return value;\n }",
"private T parse(String value)\n\t\t{\n\t\t\treturn null;\n\t\t}",
"protected abstract MAJOR_JAVA_TYPE parseValue(@Nonnull String value) throws ParsingException;",
"public DataValue parse(String value) {\r\n \tthrow new RuntimeException(\"no implementation\");\r\n }",
"public Object parse(String arg) {\n return (arg);\n }",
"protected abstract SimpleType doParseString(String s);",
"public String getValue(String s) {\n return s;\n }",
"public final Value parseValue(String textValue) {\n\t\tif (textValue == null) {\n\t\t\treturn Value.newUnknownValue(this.getValueType());\n\t\t}\n\n\t\tString text = textValue.trim();\n\n\t\tif (text.length() == 0 && this.getValueType() != ValueType.TEXT) {\n\t\t\treturn Value.newUnknownValue(this.getValueType());\n\t\t}\n\n\t\tif (this.validValues != null) {\n\t\t\treturn this.validValues.get(text);\n\t\t}\n\t\t/*\n\t\t * parse and validate\n\t\t */\n\t\tValue value = Value.parseValue(text, this.getValueType());\n\t\tif (value != null) {\n\t\t\tvalue = this.validateValue(value);\n\t\t}\n\t\treturn value;\n\t}",
"public static DataValue parseValue(String value) {\r\n \tif(value == null) {\r\n \t\tthrow new IllegalArgumentException(\"null value\");\r\n \t}\r\n \t\r\n \tint i = value.indexOf(\",\");\r\n \tif(i < 0 || i == value.length()) {\r\n \t\tthrow new IllegalArgumentException(\"wrong string format\");\r\n \t}\r\n \t\r\n \tString rmName = value.substring(0, i);\r\n \tDataValue dv = dataValueMap.get(rmName);\r\n \t\r\n \tif(dv == null) {\r\n \t\tthrow new IllegalArgumentException(\"unsupported RM class[\" + rmName + \"]\");\r\n \t}\r\n \t\r\n \tString v = value.substring(i + 1).trim(); \t\r\n \treturn dv.parse(v);\r\n }",
"public E parse(String argument);",
"public StringParser getStringParser();",
"public T getFromString(String str) throws NumberFormatException;",
"private static Object parseStringValue(String value) {\n // Boolean (Boolean.parseBoolean() only detects 'true' properly).\n if (value.equalsIgnoreCase(\"true\")) {\n return Boolean.TRUE;\n }\n if (value.equalsIgnoreCase(\"false\")) {\n return Boolean.FALSE;\n }\n\n // Long.\n try {\n return Long.valueOf(value);\n } catch (NumberFormatException e) {\n }\n\n // Double.\n try {\n return Double.valueOf(value);\n } catch (NumberFormatException e) {\n }\n\n // Fallback to String.\n return value;\n }",
"private static int getVal(String s) {\n int val = Integer.parseInt(s.split(\" \")[0]);\r\n return val;\r\n }",
"protected final Object fromStringImpl(String string)\n throws TypeValueException {\n int y, m, d;\n try {\n y = Integer.parseInt(string.substring(0, 4));\n m = Integer.parseInt(string.substring(4, 6));\n d = Integer.parseInt(string.substring(6, 8));\n } catch (NumberFormatException nfe) {\n\n // Should never happen, since isValidValueImpl(String) will have been\n // called\n throw new TypeValueException(this, string);\n }\n\n // Check that the values are in the correct range\n return new Value(y, m, d);\n }",
"public void parse(final String s) throws NumberFormatException {\r\n\t}",
"public static Object parse(String s) throws ParseException {\n try {\n return parse(new StringReader(s));\n } catch (IOException e) {\n // We cannot get an IOException when reading from String.\n throw new AssertionError(e);\n }\n }",
"public Number parse( final String input, final ParsePosition position ) {\n\t\t\treturn null;\n\t\t}",
"public Object parseValue(String expr);",
"public double parse(String inputString){\n\t\tclear();\n\t\tinput = inputString;\n\t\treturn expr(true);\n\t}",
"public static long parse(String s) throws NumberFormatException {\n return parse(s, ByteUnit.B);\n }",
"public Number parse( final String input, final ParsePosition position ) {\n\t\treturn null;\n\t}",
"public int parseString(String string,\n int offset)\n throws XMLParseException {\n return this.parseCharArray(string.toCharArray(), offset,\n string.length(), 1);\n }",
"public int parseString(String string,\n int offset,\n int end)\n throws XMLParseException {\n return this.parseCharArray(string.toCharArray(), offset, end, 1);\n }",
"public void parseString(String string)\n throws XMLParseException {\n this.parseCharArray(string.toCharArray(), 0, string.length(), 1);\n }",
"public Object stringToValue(String text) throws ParseException {\n Pattern pattern = getPattern();\n\n if (pattern != null) {\n Matcher matcher = pattern.matcher(text);\n\n if (matcher.matches()) {\n setMatcher(matcher);\n return super.stringToValue(text);\n }\n throw new ParseException(\"Pattern did not match\", 0);\n }\n return text;\n }",
"public static State parseString(String name)\n\t\t{\n\t\t\tif (FULL.toString().equals(name))\n\t\t\t\treturn FULL;\n\t\t\telse if (PARTIAL.toString().equals(name))\n\t\t\t\treturn PARTIAL;\n\t\t\telse if (DELETED.toString().equals(name))\n\t\t\t\treturn DELETED;\n\t\t\telse\n\t\t\t\treturn null;\n\t\t}",
"public static Result<MessageType, JSONException> fromString(String str) {\r\n return Result.ofRuntime(() -> valueOf(str))\r\n .mapError(ignored -> new JSONException(\"command not recognised\"));\r\n }",
"java.lang.String getStringValue();",
"java.lang.String getStringValue();",
"@Override\r\n\tprotected Object stringToValue(String valueString) throws ParseException {\r\n\t\ttry {\r\n\t\t\treturn PersistentBean.findOrCreate(beanClass, valueString);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new ParseException(e.getMessage(), 0);\r\n\t\t}\r\n\t}",
"public Number fromString(String s){\n\n return 0;\n }",
"String getStringValue();",
"String getStringValue();",
"public <V> V readValue(String jsonString, Type valueType) throws JsonException {\n try (StringReader reader = new StringReader(jsonString)) {\n return readValue(reader, valueType);\n }\n }",
"public static native JavaScriptObject parseString(String xml) /*-{\n\t\treturn Titanium.XML.parseString(xml);\n\t}-*/;",
"private Object parse(\n String value\n ){\n return \n value.startsWith(\"P\") || value.startsWith(\"-P\") ? Datatypes.create(Duration.class, value) : \n value.indexOf('T') < 0 ? Datatypes.create(XMLGregorianCalendar.class, value) : \n Datatypes.create(java.util.Date.class, value);\n }",
"public Object parse(String s) throws JDBFException {\r\n s = s.trim();\r\n if (type == 'N' || type == 'F') {\r\n if (s.equals(\"\")) {\r\n s = \"0\";\r\n }\r\n try {\r\n if (getDecimalCount() == 0) {\r\n return new Long(s);\r\n } else {\r\n return new Double(s);\r\n }\r\n } catch (NumberFormatException numberformatexception) {\r\n throw new JDBFException(numberformatexception);\r\n }\r\n }\r\n if (type == 'C') {\r\n return s;\r\n }\r\n if (type == 'L') {\r\n if (s.equals(\"Y\") || s.equals(\"y\") || s.equals(\"T\") || s.equals(\"t\")) {\r\n return new Boolean(true);\r\n }\r\n if (s.equals(\"N\") || s.equals(\"n\") || s.equals(\"F\") || s.equals(\"f\")) {\r\n return new Boolean(false);\r\n } else {\r\n throw new JDBFException(\"Unrecognized value for logical field: \" + s);\r\n }\r\n }\r\n if (type == 'D') {\r\n SimpleDateFormat simpledateformat = new SimpleDateFormat(\"yyyyMMdd\");\r\n try {\r\n if (\"\".equals(s)) {\r\n return null;\r\n } else {\r\n return simpledateformat.parse(s);\r\n }\r\n } catch (ParseException parseexception) {\r\n //throw new JDBFException(parseexception);\r\n return null;\r\n }\r\n } else {\r\n throw new JDBFException(\"Unrecognized JDBFField type: \" + type);\r\n }\r\n }",
"@Override\r\n public Object getValueFromString(String text_p) throws Exception\r\n {\n return null;\r\n }",
"public static TableId parse(String str) {\n return parse(str, true);\n }",
"public Integer fromString(String s) {\n if (s == null || s.trim().length() == 0)\n return 0;\n try {\n return Integer.parseInt(s);\n }\n catch (NumberFormatException e) {\n return null;\n }\n }",
"@Override\n public Integer fromString(String value) {\n if (value == null) {\n return null;\n }\n\n // Take off the spaces\n value = value.trim();\n\n // If it's 0 (Was full of spaces) return 0\n if (value.length() < 1) {\n return null;\n }\n int valueConverted = 0;\n try {\n valueConverted = Integer.valueOf(value);\n } catch (NumberFormatException e) {\n System.err.println(\"[ERROR-INFO (IntegerString Converter)] - \" + e);\n }\n return valueConverted;\n }",
"private static Integer parseIntString( String valueString ) {\n return Integer.parseInt( valueString.replaceAll( \"[^0-9]\", \"\" ) );\n }",
"private void parse(String str) {\n if (str == null) {\n throw new IllegalArgumentException(\"Empty job execution instruction found!\");\n }\n String[] parts = str.split(\" \");\n if (parts.length == 1) {\n parseSpecial(str);\n } else if (parts.length == 5) {\n try {\n setMinutes(parseMinutes(parts[0].trim().toLowerCase()));\n setHours(parseHours(parts[1].trim().toLowerCase()));\n setDaysOfMonth(parseDaysOfMonth(parts[2].trim().toLowerCase()));\n setMonths(parseMonths(parts[3].trim().toLowerCase()));\n setDaysOfWeek(parseDaysOfWeek(parts[4].trim().toLowerCase()));\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"Schedule \" + str + \" is malformed:\" + e.getMessage());\n }\n } else {\n throw new IllegalArgumentException(\"Schedule \" + str + \" is malformed!\");\n }\n }",
"public int parseString(String string,\n int offset,\n int end,\n int startingLineNr)\n throws XMLParseException {\n return this.parseCharArray(string.toCharArray(), offset, end,\n startingLineNr);\n }",
"private static String _getConfValue(String s) {\n int pos = s.indexOf('=');\n if (pos > 0)\n return s.substring(pos+1);\n throw new ConfLibException(\"Invalid parameter string \" + s);\n }",
"public int parseNumber(String str) {\r\n \r\n try {\r\n int i = Integer.parseInt(str);\r\n return i;\r\n } catch (Exception e) {\r\n \r\n }\r\n \r\n return 0;\r\n }",
"public int parseValue (String text, int offset) {\n\t\tParsing t = new Parsing(text, offset);\n\t\tint posini;\n\t\t/* Ignore the leading blanks */\n\t\tt.gobbleSpaces();\n\t\tposini = t.pos;\n\t\t/* Take care of units requiring data in Sexagesimal */\n\t\tif ((mksa&_sex) != 0)\n\t\t\tvalue = t.parseSexa();\n\t\telse value = t.parseFactor();\n\t\tif (t.pos == posini) \t\t// Nothing (NaN checked in Parsing)\n\t\t\treturn(offset);\n\t\t// while ((t.pos < t.length) && (t.a[t.pos] == '-')) t.pos++;\n\t\treturn(t.pos);\n\t}",
"public static Value makeStr(String s) {\n Value r = new Value();\n r.str = s;\n return canonicalize(r);\n }",
"private static Object makeValue(String string, Schema schema) {\n if (string == null) {\n return null;\n }\n\n try {\n switch (schema.getType()) {\n case BOOLEAN:\n return Boolean.valueOf(string);\n case STRING:\n return string;\n case FLOAT:\n return Float.valueOf(string);\n case DOUBLE:\n return Double.valueOf(string);\n case INT:\n return Integer.valueOf(string);\n case LONG:\n return Long.valueOf(string);\n case ENUM:\n // TODO: translate to enum class\n if (schema.hasEnumSymbol(string)) {\n return string;\n } else {\n try {\n return schema.getEnumSymbols().get(Integer.valueOf(string));\n } catch (IndexOutOfBoundsException ex) {\n return null;\n }\n }\n case UNION:\n Object value = null;\n for (Schema possible : schema.getTypes()) {\n value = makeValue(string, possible);\n if (value != null) {\n return value;\n }\n }\n return null;\n case NULL:\n return null;\n default:\n // FIXED, BYTES, MAP, ARRAY, RECORD are not supported\n throw new RuntimeException(\n \"Unsupported field type:\" + schema.getType());\n }\n } catch (NumberFormatException ex) {\n return null;\n }\n }",
"public static double parseDouble(String s){\r\n double v=-1;\r\n try{\r\n v = Double.parseDouble(s);\r\n }catch(NumberFormatException e){\r\n System.out.println(\"Invalid input\");\r\n }\r\n return v;\r\n }",
"private Variable stringToVariable(String value, int smiSyntax) {\n Variable var = AbstractVariable.createFromSyntax(smiSyntax);\n try {\n if (var instanceof AssignableFromString) {\n ((AssignableFromString) var).setValue(value);\n } else if (var instanceof AssignableFromInteger) {\n ((AssignableFromInteger) var).setValue(Integer.valueOf(value));\n } else if (var instanceof AssignableFromLong) {\n ((AssignableFromLong) var).setValue(Long.valueOf(value));\n } else {\n this.getLogger().error(\"Unsupported conversion of [\" + value +\"] to \" + var.getSyntaxString());\n var = null;\n }\n } catch (IllegalArgumentException e) {\n this.getLogger().error(\"Unsupported conversion of [\" + value +\"] to \" + var.getSyntaxString(), e);\n var = null;\n }\n return var;\n }",
"public static Name parse(String name) {\n return new Name(name, \"unknown\");\n }",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"private Object parseSingle() {\n Object ret = null;\n \n // c == -1 --> done\n if (c == -1){\n \n }\n else if (c == '('){\n ret = parseList();\n }\n else if (c == '\"' || c == '\\''){\n ret = parseString();\n }\n else {\n ret = parseAtom();\n }\n return ret;\n }",
"@Override\n public Number fromString(String string) {\n return Double.valueOf(string).intValue();\n }",
"@Nonnull\n default T parseOrFail(@Nonnull String s) throws CommandInterruptException {\n Optional<T> ret = parse(s);\n if (!ret.isPresent()) {\n throw new CommandInterruptException(\"&cUnable to parse argument: \" + s);\n }\n return ret.get();\n }",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"public static Config parseString(String s) {\n return parseString(s, ConfigParseOptions.defaults());\n }",
"@Override\n\t\tpublic Integer convert(String s) {\n\t\t\treturn Integer.parseInt(s);\n\t\t}",
"public DialogueNode parseString(String dialogueString) {\n\t\tString[] allStrings = dialogueString.split(\"::\");\n\t\t\n\t\t\n\t\tString message = (String) allStrings[0];\n\t\tString[] responses = java.util.Arrays.copyOfRange(allStrings, 1, allStrings.length);\n\t\t\n\t\t\n\t\tDialogueNode newNode = createNode(message, responses);\n\t\t\n\t\treturn newNode;\n\t\t\n\t}",
"public static Object parseStringObject(String value, Schema.Type dataType) throws TimeSeriesException {\r\n\t\tswitch(dataType) {\r\n\t\t\tcase DOUBLE: \r\n\t\t\t\treturn new Double(Double.parseDouble(value));\r\n\t\t\tcase BOOLEAN: \r\n\t\t\t\treturn new Boolean(Boolean.parseBoolean(value));\r\n\t\t\tcase FLOAT: \r\n\t\t\t\treturn new Float(Float.parseFloat(value));\r\n\t\t\tcase INT: \r\n\t\t\t\treturn new Integer(Integer.parseInt(value));\r\n\t\t\tcase LONG: \r\n\t\t\t\treturn new Long(Long.parseLong(value));\r\n\t\t\tcase STRING: \r\n\t\t\t\treturn value;\r\n\t\t\tcase BYTES: \r\n\t\t\t\tthrow new TimeSeriesException(\"Requested data type is currently not supported \" + dataType);\r\n\t\t\tdefault: \r\n\t\t\t\tthrow new TimeSeriesException(\"Requested data type is currently not supported \" + dataType);\r\n\t\t}\r\n\t}",
"public static IValueNode eval(@NonNull final String s) {\n return compile(s).eval();\n }",
"protected static Integer getIntegerString(String string) {\n Integer i;\n try {\n i = Integer.parseInt(string);\n } catch(Exception e) {\n return null;\n }\n\n return i;\n }",
"public int parse (String text, int offset) {\n\t\tParsing t = new Parsing(text, offset);\n\t\tif (true) {\n\t\t\tthis.parsing(t);\n\t\t}\n\t\telse {\t\t\t\t//*** OLD CODE\n\t\t\tdouble val;\n\t\t\tint pos1, pos2, pos3;\n\t\t\tboolean has_value, has_unit;\n\t\t\tif (!initialized) init();\t// Be sure everyting in place\n\n\t\t\t/* Ignore the leading blanks */\n\t\t\tt.gobbleSpaces();\n\t\t\tpos1 = t.pos;\t\t\t// Just before the possible value\n\n\t\t\t/* Interpret the Value, if any */\n\t\t\tval = t.parseFactor();\t\t// Default value is 1\n\t\t\tpos2 = t.pos;\t\t\t// After interpretation of Value\n\t\t\thas_value = pos2 > pos1; \t// Something was found.\n\n\t\t\t/* Skip blanks between value and Unit */\n\t\t\tt.gobbleSpaces();\n\n\t\t\t/* It may happen that interpreting the Value first generates an error,\n\t for instance 1/4. That means that the number (1) is part of the\n\t unit, and is not the value in front of the unit.\n\t\t\t */\n\t\t\tif (t.lookup(op_symb) >= 0) {\n\t\t\t\thas_value = false;\n\t\t\t\tt.pos = pos1;\n\t\t\t\tpos2 = pos1;\n\t\t\t}\n\n\t\t\t/* Interpret the Unit */\n\t\t\thas_unit = true;\n\t\t\tpos3 = t.pos;\t\t\t// Starting offset of unit\n\t\t\ttry { unitec(t, null) ; }\n\t\t\tcatch (Exception e) {\n\t\t\t\thas_unit = false;\n\t\t\t\tt.pos = pos2;\n\t\t\t\tif (!has_value) t.pos = offset;\n\t\t\t}\n\t\t\tif (has_unit) symbol = text.substring(pos3, t.pos);\n\t\t\tvalue = has_value ? val : 0./0. ;\n\t\t}\n\t\treturn(t.pos);\n\t}",
"public WebutilsExpression parse(String expressionStr)\r\n\t{\r\n\t\tExpression expression = expressionEvaluator.parse(expressionStr);\r\n\t\treturn new WebutilsExpression(expression, expressionRegistry);\r\n\t}",
"public abstract Object parseRecord(String input);",
"protected Element parseString(String str){\n\t\ttry {\n\t\t\tparser.parse(str);\n\t\t\treturn parser.getDocument().getDocumentElement();\n\t\t} catch (SAXException e) {\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn el(\"failure\", text(\"The workflow instrumenter could not insert an activity here, because\" +\n\t\t\t\"the code for the activitiy, that was supplied in the requirement specification was not correct!\"));\n\t}",
"public abstract T parse(Object valueToParse, Type type);",
"private double parseScore(String s) {\n String[] arg = s.split(\" \");\n double score = Double.parseDouble(arg[0]);\n // double total = Double.parseDouble(arg[3]);\n return score;\n }",
"public Parse(String str)\r\n {\r\n super(str);\r\n }",
"ValueExp parseExpression(String s)\n\t{\n\t\tValueExp expr = null;\n\t\ttry\n\t\t{\n\t\t\texpr = m_exprCache.parse(s);\n\t\t}\n\t\tcatch(ParseException pe)\n\t\t{\n\t\t\t// bad operation code\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"expressionCouldNotBeParsed\") + \" \" + pe.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t}\n\t\tcatch(IOException io)\n\t\t{\n\t\t\t// thrown from parser\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"expressionCouldNotBeParsed\") + \" \" + s); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t}\n\t\treturn expr;\n\t}",
"public static Formula parse_string(String sf)\n\t{\n\t\tFormula f = new Formula(sf, Formula.formula_type(sf.substring(1, sf.length()-1)), new MetaFormula());\n\t\treturn f;\n\t}",
"public static <T> T parseSimple(String value, Class<T> argType) {\n if (UUID.class.equals(argType)) {\n try {\n return argType.cast(UUID.fromString(value));\n } catch (Exception e) {\n throw wrapException(\n BadRequest,\n e,\n UUID.randomUUID().toString());\n }\n }\n\n try {\n return argType.getConstructor(String.class).newInstance(value);\n } catch (Exception e) {\n return JSonUtil.parseJson(value, argType)\n .orElseThrow(() -> wrapException(\n BadRequest,\n new IllegalArgumentException(\"Unable to parse \" + value),\n UUID.randomUUID().toString()));\n }\n }",
"final Integer getIdFromStringPerson(String selectedValue) {\n String [] tokens = selectedValue.split(\":\"); //Split our String\n int idPosition = 1; // ID's position in the our String(See getAsString())\n return Integer.parseInt(tokens[idPosition]); //Extract Id from the string\n }",
"Single<String> parse(String planeArticle);",
"@Override\r\n\t\t\t\tpublic Object stringToValue(String text) throws ParseException {\n\t\t\t\t\treturn \"\";\r\n\t\t\t\t}"
] |
[
"0.76286364",
"0.7598958",
"0.7038453",
"0.69914407",
"0.6939282",
"0.68986297",
"0.68537503",
"0.68074524",
"0.68043625",
"0.67478526",
"0.6745522",
"0.67340726",
"0.6666951",
"0.66292506",
"0.6614557",
"0.65527385",
"0.6538725",
"0.6494053",
"0.6474893",
"0.6414112",
"0.64000475",
"0.6323578",
"0.6314064",
"0.62652826",
"0.6253153",
"0.6197129",
"0.61700416",
"0.613577",
"0.6132984",
"0.6106872",
"0.60948646",
"0.6090172",
"0.60808563",
"0.60327405",
"0.5894963",
"0.587932",
"0.58419514",
"0.5819417",
"0.58033997",
"0.58033997",
"0.57898235",
"0.577693",
"0.577267",
"0.577267",
"0.5753126",
"0.5746129",
"0.57084477",
"0.5697243",
"0.5689446",
"0.5663987",
"0.56488705",
"0.5645664",
"0.5640238",
"0.5601912",
"0.5598964",
"0.5584328",
"0.55782676",
"0.5571858",
"0.5567162",
"0.55659544",
"0.5526209",
"0.55209106",
"0.5519823",
"0.55084014",
"0.55084014",
"0.55084014",
"0.55084014",
"0.55084014",
"0.55084014",
"0.55084014",
"0.55084014",
"0.55084014",
"0.55084014",
"0.548707",
"0.54832166",
"0.54790574",
"0.5463871",
"0.5463871",
"0.5463871",
"0.5463871",
"0.5463871",
"0.5463871",
"0.54601777",
"0.5454676",
"0.54432786",
"0.5441944",
"0.5422138",
"0.54218924",
"0.5417852",
"0.5412209",
"0.54071826",
"0.54049695",
"0.5401614",
"0.5388234",
"0.5385264",
"0.5376477",
"0.53713083",
"0.53614306",
"0.5334712",
"0.533147",
"0.5331215"
] |
0.0
|
-1
|
Converts a persisted int to the matching enumeration value.
|
public static Comparator convert(final int value) {
return GREATER_THAN.convertInt(value);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public IntType asInt(){\n return TypeFactory.getIntType(this.toInt(this.getValue()));\n }",
"public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }",
"public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }",
"public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }",
"public static Enum forInt(int i)\r\n { return (Enum)table.forInt(i); }",
"public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }",
"public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }",
"public static BendType toEnum(int val) {\r\n\t\t\ttry {\r\n\t\t\t\treturn values()[val - 1];\r\n\t\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}",
"public int toInt(){\n\t\treturn super.ordinal();\n\t}",
"public int toInt(String entity) { return ent_2_i.get(entity); }",
"public static FileImport_RunImporter_PauseProcessing_Current_Type_ID_Enum fromValue( int value_ ) {\n for (FileImport_RunImporter_PauseProcessing_Current_Type_ID_Enum c: FileImport_RunImporter_PauseProcessing_Current_Type_ID_Enum.values()) {\n if (c.value == value_ ) {\n return c;\n }\n }\n throw new IllegalArgumentException( \"FileImport_RunImporter_PauseProcessing_Current_Type_ID_Enum not valid for value: \" + value_ );\n }",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default int asInt() {\n \n return notSupportedCast(BasicTypeID.INT);\n }",
"public int toInt()\n\t{\n\t\treturn (int) toLong();\n\t}",
"public static final StatusOrder stringToEnum(int statusInt) throws Exception {\n\t\tswitch (statusInt) {\n\t\tcase 0:\n\t\t\treturn AWAITING;\n\t\tcase 1:\n\t\t\treturn APPROVED;\n\t\tcase 2:\n\t\t\treturn REJECTED;\n\t\tcase 3:\n\t\t\treturn CLOSED;\n\t\tdefault:\n\t\t\tthrow new EnumNotFindException(\"Значение <\"+statusInt+\"> не входит в заданный список\");\n\t\t}\n\t}",
"public static FileImport_RunImporter_PauseProcessing_Schedule_Type_ID_Enum fromValue( int value_ ) {\n for (FileImport_RunImporter_PauseProcessing_Schedule_Type_ID_Enum c: FileImport_RunImporter_PauseProcessing_Schedule_Type_ID_Enum.values()) {\n if (c.value == value_ ) {\n return c;\n }\n }\n throw new IllegalArgumentException( \"FileImport_RunImporter_PauseProcessing_Request_Type_ID_Enum not valid for value: \" + value_ );\n }",
"private FileImport_RunImporter_PauseProcessing_Current_Type_ID_Enum( int v) {\n value = v;\n }",
"private void valueOfInt(Instruction o, Type value){\n\t\tif (! value.equals(Type.INT))\n\t\t\t\tconstraintViolated(o, \"The 'value' is not of type int but of type \"+value+\".\");\n\t}",
"public T caseIntEnum(IntEnum object)\n {\n return null;\n }",
"@Override\n public int intValue(int numId) {\n return 0;\n }",
"public static ARCOMMANDS_COMMON_COMMONSTATE_PRODUCTMODEL_MODEL_ENUM getFromValue (int value) {\n if (null == valuesList) {\n ARCOMMANDS_COMMON_COMMONSTATE_PRODUCTMODEL_MODEL_ENUM [] valuesArray = ARCOMMANDS_COMMON_COMMONSTATE_PRODUCTMODEL_MODEL_ENUM.values ();\n valuesList = new HashMap<Integer, ARCOMMANDS_COMMON_COMMONSTATE_PRODUCTMODEL_MODEL_ENUM> (valuesArray.length);\n for (ARCOMMANDS_COMMON_COMMONSTATE_PRODUCTMODEL_MODEL_ENUM entry : valuesArray) {\n valuesList.put (entry.getValue (), entry);\n }\n }\n ARCOMMANDS_COMMON_COMMONSTATE_PRODUCTMODEL_MODEL_ENUM retVal = valuesList.get (value);\n if (retVal == null) {\n retVal = eARCOMMANDS_COMMON_COMMONSTATE_PRODUCTMODEL_MODEL_UNKNOWN_ENUM_VALUE;\n }\n return retVal; }",
"IntegerValue createIntegerValue();",
"IntegerValue createIntegerValue();",
"private FileImport_RunImporter_PauseProcessing_Schedule_Type_ID_Enum( int v) {\n value = v;\n }",
"EnumValue createEnumValue();",
"EnumValue createEnumValue();",
"EnumValue createEnumValue();",
"int decodeInt();",
"public static LuaInteger valueOf(int i) {\n if (i <= 255 && i >= -256) {\n return intValues[i + 256];\n }\n return new LuaInteger(i);\n }",
"public EnumC30728c fromValue(int i) {\n return EnumC30728c.fromValue(i);\n }",
"@Override\n public TransactionType convertToEntityAttribute(String s) {\n if (s == null) return null;\n\n return TransactionType.getEnumFromString(s);\n }",
"@Override\r\n\tpublic Object visitIntLitExpression(IntLitExpression intLitExpression,\r\n\t\t\tObject arg) throws Exception {\r\n\t\tintLitExpression.setType(intType);\r\n\t\treturn intType;\r\n\t}",
"int getFromValue();",
"IntValue createIntValue();",
"IntValue createIntValue();",
"public Integer toInteger() {\n\t\treturn this.getValue().intValue();\n\t}",
"public static UrlType mapIntToValue(int intValue) {\n\t\tfor (UrlType type : UrlType.values()) {\n\t\t\tif (type.intValue == intValue) {\n\t\t\t\treturn type;\n\t\t\t}\n\t\t}\n\t\treturn UrlType.TYPE_UNKNOW;\n\t}",
"Int(int v){\n val = v;\n }",
"Integer getValue();",
"Integer getValue();",
"public final MessageDirection fromValue(int i) {\n return MessageDirection.fromValue(i);\n }",
"public static int getValueInt()\n {\n return Util.valueInt;\n }",
"public static ReasonCode fromInt(int i)\n {\n if (i == I2C_OPERATION_IN_PROGRESS.getValue()) return I2C_OPERATION_IN_PROGRESS;\n if (i == I2C_MASTER_BUSY.getValue()) return I2C_MASTER_BUSY;\n for (ReasonCode reasonCode : ReasonCode.values())\n {\n if (i == reasonCode.getValue())\n return reasonCode;\n }\n return PACKET_TYPE_ID_UNKNOWN;\n }",
"private Integer convertSpinnerValueToInt(Object spinnerValue){\n String spinnerAsString = (String) spinnerValue;\n return Integer.parseInt(spinnerAsString);\n }",
"public static CardType fromInteger(int i){\n switch(i){\n case 0:\n return Spell;\n case 2:\n return Creature;\n case 3:\n return Building;\n default:\n return Unknown;\n }\n }",
"public static ModalityState valueOf(int value) {\r\n switch(value) {\r\n case 0: return ucModalityDisconnected;\r\n case 1: return ucModalityConnecting;\r\n case 2: return ucModalityNotified;\r\n case 3: return ucModalityJoining;\r\n case 4: return ucModalityConnectingToCaller;\r\n case 5: return ucModalityConnected;\r\n case 6: return ucModalitySuspended;\r\n case 7: return ucModalityOnHold;\r\n case 8: return ucModalityForwarding;\r\n case 9: return ucModalityTransferring;\r\n case 10: return ucModalityDisconnecting;\r\n default: return new ModalityState(value);\r\n }\r\n }",
"public int toInt() {\n return this.toIntArray()[0];\n }",
"public static Attributes convert(int value) {\n for (Attributes v : Attributes.values()) {\n if (v.getValue() == value) {\n return v;\n }\n }\n return null;\n }",
"private CommonEnum(int value) {\n\t\tthis.value = value;\n\t}",
"public static interface ToInteger<T> {\n /**\n * What integer should we use for sorting purposes for\n * the given item?\n */\n int v(T item);\n }",
"int intValue();",
"TestEnum selectByPrimaryKey(String id);",
"IntegerValue getValueObject();",
"@Override\r\n public int intValue() {\r\n return (int) this.m_current;\r\n }",
"public final int getInt()\n {\n return intValue;\n }",
"public int getVal()\n {\n return this.ordinal();\n }",
"void setToValue(int val);",
"@Nullable\n public static <T extends Enum<T>> T getEnumValueSafe(@Nullable String name, int id, Class<T> enumClass)\n {\n return getEnumValueSafe(name, id, enumClass, null);\n }",
"@Test\n\tvoid testRomanToInteger() {\n\t\tassertEquals(3, new RomanToInteger().romanToInt(\"III\"));\n\t\tassertEquals(4, new RomanToInteger().romanToInt(\"IV\"));\n\t\tassertEquals(9, new RomanToInteger().romanToInt(\"IX\"));\n\t\tassertEquals(58, new RomanToInteger().romanToInt(\"LVIII\"));\n\t\tassertEquals(1994, new RomanToInteger().romanToInt(\"MCMXCIV\"));\n\t}",
"public interface IntEncodedValue extends EncodedValue {\n\n /**\n * This method restores the integer value from the specified 'flags' taken from the storage.\n */\n int getInt(boolean reverse, IntsRef ref);\n\n /**\n * This method stores the specified integer value in the specified IntsRef.\n */\n void setInt(boolean reverse, IntsRef ref, int value);\n\n /**\n * The int value this EncodedValue accepts for setInt without throwing an exception.\n */\n int getMaxInt();\n\n /**\n * @return true if this EncodedValue can store a different value for its reverse direction\n */\n boolean isStoreTwoDirections();\n}",
"public static RecordStatusEnum getById(Integer id) {\n if (id == null) {\n return null;\n }\n for (RecordStatusEnum type : RecordStatusEnum.values()) {\n if (type.id == id) {\n return type;\n }\n }\n return null;\n }",
"public Integer getInt(int defaultVal) {\n return get(ContentType.IntegerType, defaultVal);\n }",
"private void int_to_int_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Get the operand value\r\n long x = getIntOperand( nd, vms, 0 ) ;\r\n \r\n // Compute the value\r\n Assert.check( op_code == IABS ) ;\r\n long value = x < 0 ? -x : x ;\r\n \r\n putIntResult(nd, vms, value ) ;\r\n }",
"public int intVal() {\r\n\t\t\tassert kind == Kind.INTEGER_LITERAL;\r\n\t\t\treturn Integer.valueOf(String.copyValueOf(chars, pos, length));\r\n\t\t}",
"public int intValue();",
"public IntColumn getOrdinal() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"ordinal\", IntColumn::new) :\n getBinaryColumn(\"ordinal\"));\n }",
"public IntColumn getOrdinal() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"ordinal\", IntColumn::new) :\n getBinaryColumn(\"ordinal\"));\n }",
"EnumTypeRule createEnumTypeRule();",
"int enumField(String name, boolean isDefined, int value,\n GPSEnumDefinition definition) throws NullField, InvalidFieldValue;",
"io.dstore.values.IntegerValue getValueLanguageId();",
"public EnumData(int value) {\n this.value = value;\n }",
"public IntColumn getOrdinalId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"ordinal_id\", IntColumn::new) :\n getBinaryColumn(\"ordinal_id\"));\n }",
"public int getIntValue() {\n return (int)getValue();\n }",
"int applyAsInt(T value);",
"int getIntValue();",
"public int getInt()\n {\n return intValue;\n }",
"public int getInt()\n {\n return intValue;\n }",
"public int toInt(){\n\t\tString s = txt().trim();\n\t\tint i;\n\t\ttry{\n\t\t\ti = Integer.parseInt(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t\treturn i;\t\n\t}",
"@Override\n\tpublic Type getType() {\n\t\treturn Type.INT_TYPE;\n\t}",
"public static EvalTypes valueOf(int s) throws IllegalArgumentException\n {\n EvalTypes types[] = values();\n for (int i = 0; i < types.length; i++)\n {\n if (types[i].getValue() == s)\n return types[i];\n }\n throw new IllegalArgumentException(\"No match for value: \" + s);\n }",
"public int getValue() {\n\t\t \treturn ordinal();\n\t\t }",
"public int getIntegerValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an integer.\");\n }",
"public static int toInt(RubyObject irb, String var) {\n\t\treturn toInt(irb.getInstanceVariable(var));\n\t}",
"public Value(int i) {\n integer = i;\n itemClass = Integer.class;\n type = DataType.INT;\n }",
"public int getValue();",
"public int getValue();",
"public static int stringToInt(Object val) {\n String intStr = String.valueOf(val);\n return Integer.parseInt(intStr);\n }",
"public int get_int_value()\n\t{\n\t\treturn this.int_value;\n\t}",
"public TIPO toTipo(int c)\r\n\t{\r\n\t\tif(c==tInt)return TIPO.ent;\r\n\t\telse if(c==tReal)return TIPO.real;\r\n\t\telse return TIPO.err;\r\n\t}",
"public static BasicEnum fromOrdinal(int ordinal)\n {\n return _ENUMERATIONS[ordinal];\n }",
"public static Integer i (int val) {\n return Integer.valueOf(val);\n }",
"com.google.protobuf.Int64Value getFromId();",
"public int getIdAsInt(String key) {\n Object obj = ids.get(key);\n if (obj == null) {\n return 0;\n }\n if (obj instanceof Integer) {\n return (Integer) obj;\n }\n\n if (obj instanceof String) {\n try {\n return Integer.parseInt((String) obj);\n }\n catch (Exception e) {\n LOGGER.trace(\"could not parse int: {}\", e.getMessage());\n }\n }\n\n return 0;\n }",
"private LanguagesEnum(Integer languagesEnumValue)\r\n\t{\r\n\r\n\t\tlanguagesEnum = languagesEnumValue;\r\n\r\n\t}",
"public int intVal(){\n\n if(currentTokenType == TYPE.INT_CONST){\n\n return Integer.parseInt(currentToken);\n }else {\n throw new IllegalStateException(\"Current token is not an integer constant!\");\n }\n }",
"public int intValue() {\n return value;\n }",
"public static int toInt(IRubyObject irb) {\n\t\treturn Integer.valueOf(irb.toString());\n\t}",
"@Override\n\tpublic String getValue() {\n\t\treturn integerLiteral;\n\t}",
"public void handleIntValue(int type, int val) {\n\t\t\n\t}",
"public int getM_Inventory_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Inventory_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"public int getInt(){\n return new BigInteger(this.value).intValue();\n }",
"public Int(int v) {\n value = v;\n }"
] |
[
"0.65546733",
"0.6329271",
"0.6329271",
"0.6329271",
"0.63290554",
"0.6326245",
"0.62984127",
"0.6291835",
"0.6224506",
"0.6157369",
"0.60374755",
"0.58669215",
"0.58209604",
"0.57324",
"0.5708113",
"0.57054484",
"0.57045823",
"0.56786084",
"0.56463504",
"0.56163895",
"0.5604854",
"0.5604854",
"0.5594222",
"0.55841374",
"0.55841374",
"0.55841374",
"0.5581854",
"0.55220956",
"0.5521196",
"0.54862744",
"0.54620117",
"0.5444487",
"0.54352474",
"0.54352474",
"0.5427125",
"0.54209656",
"0.5412872",
"0.54124665",
"0.54124665",
"0.5410695",
"0.5387856",
"0.5381717",
"0.5381242",
"0.5369754",
"0.53684986",
"0.53672314",
"0.53584504",
"0.5329489",
"0.5315879",
"0.5292482",
"0.52846944",
"0.52766097",
"0.52748245",
"0.5229906",
"0.52270025",
"0.5222995",
"0.51854014",
"0.516925",
"0.51615345",
"0.5159859",
"0.5151259",
"0.51494944",
"0.5146207",
"0.5143838",
"0.51438224",
"0.51438224",
"0.51351285",
"0.5132908",
"0.5127859",
"0.51196516",
"0.5119585",
"0.5104817",
"0.51028293",
"0.50937563",
"0.50934196",
"0.50934196",
"0.50916517",
"0.50838166",
"0.50811875",
"0.50784177",
"0.50720173",
"0.5070802",
"0.5070221",
"0.506262",
"0.506262",
"0.5062559",
"0.5062011",
"0.5058422",
"0.5056907",
"0.50556004",
"0.50468534",
"0.5045375",
"0.50444734",
"0.5035568",
"0.50301445",
"0.5029873",
"0.5029128",
"0.5026975",
"0.5024145",
"0.50227875",
"0.5022342"
] |
0.0
|
-1
|
which value of the variable this is. Constructor
|
public Value( String inName, Variable inVar, int inIndex )
{
_var = inVar;
_name = inName;
_index = inIndex;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private Value() {\n\t}",
"@Override\n\tpublic int getVarThisFlag() {\n\t\treturn heldObj.getVarThisFlag();\n\t}",
"int getValue() {\r\n switch (this) {\r\n case Boolean:\r\n return BOOLEAN;\r\n case Number:\r\n return NUMBER;\r\n case Array:\r\n return ARRAY;\r\n default:\r\n return STRING;\r\n }\r\n }",
"public Variable(){\n name = \"\";\n initialValue = 0;\n }",
"public int value(){\n return this.value;\n }",
"public int value() { \n return this.value; \n }",
"public ThisKeyword(){\n this(1.0);\n }",
"public int getValue()\r\n/* 21: */ {\r\n/* 22: 71 */ return this.value;\r\n/* 23: */ }",
"public int getInital_value(){\n return this.inital_value;\n }",
"public int getValue(){\n return this.value;\n }",
"protected Value() {\n flags = 0;\n num = null;\n str = null;\n object_labels = getters = setters = null;\n excluded_strings = included_strings = null;\n functionPartitions = null;\n functionTypeSignatures = null;\n var = null;\n hashcode = 0;\n }",
"public int getVal()\n {\n return this.ordinal();\n }",
"public int thisC()\r\n\t{\r\n\t return thisc;\r\n\t}",
"public int value() \n {\n return value;\n }",
"private\tNum(int num) { value = num; }",
"public int getValue() {\n/* 450 */ return this.value;\n/* */ }",
"public TrueValue (){\n }",
"protected int value() {\n System.out.print(\"Cloth Value: \");\n return finalValue;\n }",
"public int getValue(){\n\t\treturn value;\n\t}",
"public Object getValue(){\n \treturn this.value;\n }",
"private int getMY() {\n\t\treturn 0;\r\n\t}",
"public AbstractVariable getVariable () {\n try {\n RemoteStackVariable rsv = thread.getCurrentFrame ().getLocalVariable (\"this\"); // NOI18N\n return new ToolsVariable (\n (ToolsDebugger) getDebugger (),\n rsv.getName (),\n rsv.getValue (),\n rsv.getType ().toString ()\n );\n } catch (Exception e) {\n return null;\n }\n }",
"public int value() {\n return this.value;\n }",
"c(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public String variable()\n\t{\n\t\treturn _var;\n\t}",
"public Object currValue();",
"public int value() {\r\n\t\treturn value;\r\n\t}",
"public int getValue(){\n return value;\n }",
"public int value() { return mode; }",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"protected ObjectRepresentant (Object counterPart, TypeSystemNode type, String name) {\r\n this.counterPart = counterPart;\r\n if (name!=null) {\r\n setName(name);\r\n }\r\n else {\r\n setName(\"this\");\r\n }\r\n typeSystemNode = type;\r\n System.out.println(this+\" value: \"+value());\r\n }",
"public int getValue() \n {\n return value;\n }",
"public Int(int value) { \n this.value = value; \n }",
"public int getValue(){\n return number;\n }",
"protected V getValue() {\n return this.value;\n }",
"public int value() {\n return value;\n }",
"public int getValue() \n {\n return value;\n }",
"public int getValue()\n\t{\n\t\treturn value;\n\t}",
"public int getValue()\n\t{\n\t\treturn value;\n\t}",
"public int getValue()\n\t{\n\t\treturn value;\n\t}",
"public Object getValue() { return _value; }",
"public int value();",
"d(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"int getVar() {\n\n return super.var; //Line n3. refer to its immediate parents variable of var\n }",
"public V value()\n\t\t{\n\t\t\treturn _value;\n\t\t}",
"ByCicle(int weight, String name) {\r\n //super keyword can be used to access the instance variables of superclass\r\n //\"super\" can also be used to invoke parent class constructor and method\r\n super(weight);//Accessign Superclass constructor and its variable\r\n //Global Variable=Local variable\r\n this.name = name;\r\n }",
"public Object getValue() { return this.value; }",
"public int getValue() {\n\t\treturn 3;\n\t}",
"@Override\n\tpublic void initValue() {\n\t\t\n\t}",
"public A(int x)\n {\n xValue = x;\n }",
"public Object getInitValue()\r\n\t{\r\n\t\treturn initValue;\r\n\t}",
"public int getValue()\r\n {\r\n return value;\r\n }",
"public String toString() {\r\n return this.variable;\r\n }",
"public int getValue () {\n return value;\n }",
"public int getValue() {\n return value_;\n }",
"public Constant (int value){\r\n this.value = value;\r\n\r\n }",
"public SuperClass(int x)\r\n {\r\n _x = x;\r\n }",
"private byte getValue() {\n\t\treturn value;\n\t}",
"public int getValue() {\r\n return Value;\r\n }",
"public int getValue() {\r\n return value;\r\n }",
"@Override\n public int getValue() {\n return super.getValue();\n }",
"public Object getValue()\n {\n\treturn value;\n }",
"public V getCValue();",
"public abstract int getValue();",
"public abstract int getValue();",
"public abstract int getValue();",
"public int getInitialValue()\n {\n return _init;\n }",
"public Value(){}",
"public int c() {\n return this.f12363a;\n }",
"public MessageRequestOfAnimalModelNuLtuh91 getValue() {\n return localValue;\n }",
"public MessageRequestOfAnimalModelNuLtuh91 getValue() {\n return localValue;\n }",
"public MessageRequestOfAnimalModelNuLtuh91 getValue() {\n return localValue;\n }",
"public int getValue()\n {\n return value;\n }",
"public int getX(){return this.x;}",
"public String getValue() {\n\t\t\treturn this.val; // to be replaced by student code\n\t\t}",
"protected abstract int getInitialValue();",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"@Override\n\t\t\t\tpublic String getValue() {\n\t\t\t\t\treturn pc.name();\n\t\t\t\t}",
"public int getVal()\r\n\t{\r\n\t\treturn value;\r\n\t}",
"private double classValue(){\n return m_ClassValue;\n }",
"public Value() {}",
"public int\t\tget() { return value; }",
"public int getValue()\n {\n return value;\n }",
"public C40994w getValue() {\n return videoRecordNewActivity.f107324j;\n }",
"public int getValue() {\r\n return value;\r\n }",
"public abstract int getPreferredValue();",
"public S getValue() { return value; }",
"@Override\n\t\tpublic V getValue(){\n\t\t\treturn value;\n\t\t}",
"public int getValue ()\r\n\t{\r\n\t\treturn (m_value);\r\n\t}",
"public int getValue() {\r\n return value;\r\n }",
"@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}",
"@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}",
"public int getValue() {\n return this.value;\n }",
"String getCurrentValue();"
] |
[
"0.63849103",
"0.63377786",
"0.623435",
"0.62048554",
"0.6152668",
"0.6105615",
"0.60850084",
"0.60795283",
"0.60689855",
"0.605577",
"0.6051572",
"0.60293835",
"0.60132027",
"0.5982251",
"0.59588873",
"0.5955112",
"0.5937717",
"0.5937696",
"0.5932526",
"0.58661413",
"0.58637136",
"0.58601105",
"0.5853103",
"0.5846453",
"0.5839414",
"0.58349",
"0.5827497",
"0.5826055",
"0.58146673",
"0.58125275",
"0.5804956",
"0.57995224",
"0.5797495",
"0.57727265",
"0.57710373",
"0.57621634",
"0.57616925",
"0.57482994",
"0.57482994",
"0.57482994",
"0.5747515",
"0.5740825",
"0.57381904",
"0.573709",
"0.57336724",
"0.57313514",
"0.5728399",
"0.5724983",
"0.5712431",
"0.5708481",
"0.56921846",
"0.56896424",
"0.5683366",
"0.56804204",
"0.5678717",
"0.5667159",
"0.5662564",
"0.56617975",
"0.5659014",
"0.5656847",
"0.56488",
"0.56451046",
"0.564319",
"0.5636635",
"0.5636635",
"0.5636635",
"0.5636171",
"0.56338465",
"0.563047",
"0.5628011",
"0.5628011",
"0.5628011",
"0.5624207",
"0.5623582",
"0.56197774",
"0.56167114",
"0.5615027",
"0.5615027",
"0.5615027",
"0.5615027",
"0.5615027",
"0.5615027",
"0.5615027",
"0.5615027",
"0.5614495",
"0.56112576",
"0.5611163",
"0.5610167",
"0.5608721",
"0.5604015",
"0.56030643",
"0.56012547",
"0.5600498",
"0.56000954",
"0.559934",
"0.55927634",
"0.55918944",
"0.55916417",
"0.55916417",
"0.5583833",
"0.5575421"
] |
0.0
|
-1
|
setRelation these two variable are positively related. Throws if no matrix for this variable.
|
public void setRelation( Value inValue )
throws Exception
{
if (getVariable() == inValue.getVariable())
return;
try {
RelationMatrix mat = _var.getMatrixForVariable( inValue._var );
mat.setRelation( this, inValue );
}
catch (Exception ex) {
throw ex;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setNoRelation( Value inValue )\n throws Exception\n {\n if (getVariable() == inValue.getVariable())\n return;\n\n try {\n RelationMatrix mat = _var.getMatrixForVariable( inValue._var );\n mat.setNoRelation( this, inValue );\n }\n catch (Exception ex) {\n throw ex;\n }\n }",
"public void setRelation(Relation<L, Tr, T> r) {\n this.relation = r;\n }",
"public Value getPositiveRelation( Variable inVar )\n throws Exception\n {\n if (inVar == _var)\n return null;\n\n try {\n RelationMatrix mat = _var.getMatrixForVariable( inVar );\n return mat.getPositiveRelation( this );\n }\n catch (Exception ex) {\n throw ex;\n }\n }",
"public void setRelPosition(double x, double y) {\n\t\trelX = x;\n\t\trelY = y;\n\t}",
"public void set_relation(String relation){\n\t\tthis.relation = relation;\n\t}",
"public int getRelation( Value inValue )\n throws Exception\n {\n // identity relation\n if (this == inValue)\n return RelationMatrix.YES;\n\n // two values of the same variable are unrelated\n if (getVariable() == inValue.getVariable())\n return RelationMatrix.NO;\n\n try {\n RelationMatrix mat = _var.getMatrixForVariable( inValue.getVariable() );\n return mat.getRelation( this, inValue );\n }\n catch (Exception ex) {\n throw ex;\n }\n }",
"void addConstraintRelation(IViewRelation relation);",
"public void addRelation(int from, int to){\n this.setAdjacencyMatrixEntry(from, to, 1);\n }",
"public M csmiRelationNull(){if(this.get(\"csmiRelationNot\")==null)this.put(\"csmiRelationNot\", \"\");this.put(\"csmiRelation\", null);return this;}",
"public void setupRelation(String userJID, PersistentRelation relation) throws InvalidRelationException {\n\t\t// Validate the relation request\n\t\t// TODO More should be validated here\n\t\tif (!relation.hasFrom() || !relation.hasTo() || !relation.hasNature()) {\n\t\t\tthrow new InvalidRelationException(\"Relation is missing required elements\");\n\t\t}\n\n\t\t// Verify that the from or to is the user making the request\n\t\tif (!(relation.getFrom().equals(userJID) || relation.getTo().equals(userJID))) {\n\t\t\tthrow new InvalidRelationException(\"Must be part of the relation to create it\");\n\t\t}\n\n\t\t// Assign a unique ID to this new relation\n\t\trelation.setId(DefaultAtomHelper.generateId());\n\n\t\t// Set the request status\n\t\trelation.setStatus(Relation.Status.REQUEST);\n\n\t\t// We store the relation for requestor\n\t\trelation.setOwner(userJID);\n\n\t\t// Persist the relation\n\t\tfinal EntityManager em = OswPlugin.getEmFactory().createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tem.persist(relation);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\n\t\t// We cleanup and notifiy the relation for the recipient\n\t\trelation.setAclRules(null);\n\t\trelation.setComment(null);\n\t\tnotify(userJID, relation);\n\t}",
"private void setRelationsValid(boolean value)\n {\n __relationsValid = value;\n }",
"public void setSpatialRelation(SpatialRelation spatialRelation) {\n this.spatialRelation = spatialRelation;\n }",
"public void setRelations(org.LexGrid.relations.Relations[] relations) {\n this.relations = relations;\n }",
"public void setRelative(boolean r) {\n isRel = r;\n }",
"Relation getNegation();",
"public static void set_RelationDecl(String multiplicity, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaRelationDeclCmd, multiplicity, v);\n UmlCom.check();\n \n _rel_decl[UmlSettings.multiplicity_column(multiplicity)] = v;\n \n }",
"public void createRelation(Agent source, Agent target, double relation) {\n this.gamygdala.createRelation(source, target, relation);\n }",
"void removeConstraintRelation(IViewRelation relation);",
"@Ignore\r\n @Test\r\n public void testSetDirection() {\r\n System.out.println(\"testSetDirection()\");\r\n Relation instance = new Relation(\"singer\");\r\n instance.setDirection(Relation.OUT);\r\n }",
"public interface IRelation {\n\n\t/**\n\t * Gets the negation of the relation.\n\t */\n\tRelation getNegation();\n}",
"public void setLowerBound (int lowerBound) throws ModelException\n\t{\n\t\tif ((lowerBound > getUpperBound()) || (lowerBound < 0))\n\t\t{\n\t\t\tthrow new ModelException(I18NHelper.getMessage(getMessages(),\n\t\t\t\t\"jdo.relationship.lower_cardinality_invalid\"));\t\t// NOI18N\n\t\t}\n\n\t\tgetRelationshipImpl().setLowerBound(lowerBound);\n\t}",
"boolean hasRelation();",
"public void punishment(){\n\t\tthis.cell = 0;\n\t}",
"void addRelation(IViewRelation relation);",
"boolean isSetFurtherRelations();",
"@SuppressWarnings(\"unchecked\")\n\tpublic void updateRelation(String userJID, PersistentRelation relation) throws InvalidRelationException {\n\t\t// Validate the relation request\n\t\t// TODO More should be validated here\n\t\tif (!relation.hasId() || !relation.hasStatus()) {\n\t\t\tthrow new InvalidRelationException(\"Relation is missing required elements\");\n\t\t}\n\n\t\t// Search for an existing relation with the given ID\n\t\tfinal EntityManager em = OswPlugin.getEmFactory().createEntityManager();\n\t\tQuery query = em.createQuery(\"SELECT x FROM Relation x WHERE x.owner = ?1 AND x.guid = ?2\");\n\t\tquery.setParameter(1, userJID);\n\t\tquery.setParameter(2, relation.getId());\n\t\tList<PersistentRelation> relations = query.getResultList();\n\n\t\t// If no match, or more than one, we have an issue\n\t\tif (relations.size() != 1) {\n\t\t\tthrow new InvalidRelationException(\"Could not find relationship with id \" + relation.getId());\n\t\t}\n\n\t\t// We update the persisted relation\n\t\tem.getTransaction().begin();\n\t\tPersistentRelation storedRelation = relations.get(0);\n\t\tstoredRelation.setStatus(relation.getStatus());\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\n\t\t// We cleanup and notifiy the relation for the recipient\n\t\tstoredRelation.setAclRules(null);\n\t\tstoredRelation.setComment(null);\n\t\tnotify(userJID, storedRelation);\n\t}",
"public Relation setRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);",
"public Relation setRelation(XDI3Segment arcXri, ContextNode targetContextNode);",
"@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }",
"public void changeConstraintsToMoreThan() throws IloException {\n /*\n IloRange notes:\n for expr == rhs, set lb = ub = rhs\n for expr <= rhs, set lb = -infinity and ub = rhs\n for expr >= rhs, set lb = rhs and ub = infinity\n */\n for (int i = 0; i < matrix.getNrows(); i++) {\n IloRange rangedExpression = matrix.getRange(i);\n if (rangedExpression.getLB() <= Double.NEGATIVE_INFINITY) {\n rangedExpression.setBounds(-rangedExpression.getLB(), Double.POSITIVE_INFINITY);\n for (int j = 0; j < matrix.getNrows(); j++) {\n matrix.setNZ(i, j, -matrix.getNZ(i, j));\n }\n }\n }\n }",
"void unsetFurtherRelations();",
"public RelationIsA() {\r\n\t\tsuper();\r\n\t}",
"public void setRelations(ru.terralink.mvideo.sap.Relations value)\n {\n if (getRelations() != null)\n {\n if( !__relations.equals(value) )\n {\n _isDirty = true;\n }\n }\n else if(value != null)\n {\n _isDirty = true;\n }\n if(__relations != null)\n {\n __relations.setDirty(_isDirty);\n }\n if (value == null)\n {\n __relationsFK = null;\n }\n else\n {\n value.setDirty(_isDirty);\n __relationsFK = value._pk();\n __IV_FO_TOR_ID = value.getFO_TOR_ID();\n __IV_FU_TOR_ID = value.getFU_TOR_ID();\n }\n __relationsValid = true;\n __relations = value;\n }",
"void setObjectives(com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation objectives);",
"public void changeConstraintsToLessThan() throws IloException {\n /*\n IloRange notes:\n for expr == rhs, set lb = ub = rhs\n for expr <= rhs, set lb = -infinity and ub = rhs\n for expr >= rhs, set lb = rhs and ub = infinity\n */\n for (int i = 0; i < matrix.getNrows(); i++) {\n IloRange rangedExpression = matrix.getRange(i);\n if (rangedExpression.getUB() >= Double.POSITIVE_INFINITY) {\n rangedExpression.setBounds(Double.NEGATIVE_INFINITY, -rangedExpression.getUB());\n for (int j = 0; j < matrix.getNrows(); j++) {\n matrix.setNZ(i, j, -matrix.getNZ(i, j));\n }\n }\n }\n }",
"public int getRelationNo() {\n return _relationNo;\n }",
"public Relation<ModelGraphVertex, ModelGraphVertex> fillRelation() {\n\t\tRelation<ModelGraphVertex, ModelGraphVertex> r = new Relation<ModelGraphVertex, ModelGraphVertex>();\n\n\t\tIterator<JComboBox> it = cmbList.iterator();\n\t\tint position = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tJComboBox cmb = it.next();\n\t\t\tif (cmb.getSelectedIndex() > 0) {\n\t\t\t\tint index = cmb.getSelectedIndex() - 1; // the first item in the\n\t\t\t\t// combobox is no\n\t\t\t\t// transition, but the\n\t\t\t\t// item \"no equivalent\"\n\t\t\t\tModelGraphVertex tProv = provTransitions.get(position);\n\t\t\t\tModelGraphVertex tReq = reqTransitions.get(index);\n\t\t\t\tTuple<ModelGraphVertex, ModelGraphVertex> tuple = new Tuple<ModelGraphVertex, ModelGraphVertex>(\n\t\t\t\t\t\ttProv, tReq);\n\t\t\t\tr.addR(tuple);\n\t\t\t}\n\t\t\tposition++;\n\t\t}\n\t\tposition = 0;\n\t\tit = cmbList.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tJComboBox cmb = it.next();\n\t\t\tif (cmb.getSelectedIndex() > 0) {\n\t\t\t\tint index = cmb.getSelectedIndex() - 1; // the first item in the\n\t\t\t\t// combobox is no\n\t\t\t\t// transition, but the\n\t\t\t\t// item \"no equivalent\"\n\t\t\t\tModelGraphVertex tProv = provTransitions.get(position);\n\t\t\t\tModelGraphVertex tReq = reqTransitions.get(index);\n\t\t\t\tTuple<ModelGraphVertex, ModelGraphVertex> tuple = new Tuple<ModelGraphVertex, ModelGraphVertex>(\n\t\t\t\t\t\ttReq, tProv);\n\t\t\t\tr.addR(tuple);\n\t\t\t}\n\t\t\tposition++;\n\t\t}\n\t\treturn r;\n\t}",
"public static boolean ajouterRelation(Utilisateur u1, Utilisateur u2, Utilisateur.RELATION r) {\n if (r == Utilisateur.RELATION.Ami)\n return insertRelation(u1.getId(), u2.getId(), r.toInt()) && insertRelation(u2.getId(), u1.getId(), r.toInt());\n\n return insertRelation(u1.getId(), u2.getId(), r.toInt());\n }",
"public abstract RelationDeclaration getRelation();",
"public RelationObject(String relation, EVAnnotation relatum) {\n\t\tthis.relation = relation;\n\t\tthis.relatum = relatum;\n\t}",
"@Override\n\tpublic boolean insertOneEdge(NodeRelation nodeRelation) {\n\t\treturn false;\n\t}",
"@Override\n public void addRelationshipBetweenPhysicalAndPhysical(PhysicalObject physicalObjectA,\n PhysicalObject physicalObjectB, double weight) {\n assert false : \"shouldn't call this method\";\n }",
"private void addRelationship(String node1, String node2, String relation)\n {\n try (Session session = driver.session())\n {\n // Wrapping Cypher in an explicit transaction provides atomicity\n // and makes handling errors much easier.\n try (Transaction tx = session.beginTransaction())\n {\n tx.run(\"MATCH (j:Node {value: {x}})\\n\" +\n \"MATCH (k:Node {value: {y}})\\n\" +\n \"MERGE (j)-[r:\" + relation + \"]->(k)\", parameters(\"x\", node1, \"y\", node2));\n tx.success(); // Mark this write as successful.\n }\n }\n }",
"public void setInRelation(String R, int... elements) {\n if (R.equals(\"E\")) { E.addEdge(elements[0], elements[1]); return; }\n this.relations.get(R).set(getIndex(elements));\n }",
"public void directionRestriction(){\n \t\n }",
"@Override\n public void addRelationshipBetweenCentralAndPhysical(PhysicalObject physicalObject,\n double weight) {\n assert false : \"shouldn't call this method\";\n }",
"public void reinitAff()\n\t{\n\t\tthis.gagne = false;\n\t\tthis.perdu = false;\n\t}",
"public void setRelDocument(int v) \n {\n \n if (this.relDocument != v)\n {\n this.relDocument = v;\n setModified(true);\n }\n \n \n }",
"Relation createRelation();",
"void removeRelation(IViewRelation relation);",
"public void setRelationship(Relationship r) {\n\t\trelationship = r;\n\t}",
"private void setObjective() throws IloException{\n\n IloLinearNumExpr expr = this.cplex.linearNumExpr();\n int i = 0;\n for(IloNumVar xi : x){\n expr.addTerm(xi, this.c[i]);\n i++;\n }\n this.objective = this.cplex.addMinimize(expr);\n }",
"public void setRelativePositioning(int i, int i2) {\n if (i2 == 0) {\n this.mRelX = i;\n } else if (i2 == 1) {\n this.mRelY = i;\n }\n }",
"public final native void setRelationship(String relationship) /*-{\n this.setRelationship(relationship);\n }-*/;",
"public void reactivateEqConstraints() {\n\t\t// NOP\n\t}",
"protected void setForceNormalVector() {\n\t\tvn = forceNormalVector(v1, v2);\n\t}",
"public static State addRelationToState(Relation relation, State state, Domain domain) {\n\n\t\tint headIn = domain.addConstant(\"relation\");\n\t\tTerm paramIn = TermList.NIL;\n\t\tparamIn = new TermList(domain.getTermConstant(domain.addConstant(relation.getValue().getIdentifier())), paramIn);\n\t\tparamIn = new TermList(domain.getTermConstant(domain.addConstant(relation.getName())), paramIn);\n\t\tparamIn = new TermList(domain.getTermConstant(domain.addConstant(relation.getMetadata().getIdentifier())), paramIn);\n\n\t\tCollection<Term> arguments = state.getArguments(headIn);\n\t\tif (!arguments.contains(paramIn)) {\n\t\t\tPredicate jShop2Relation = new Predicate(headIn, 0, paramIn);\n\t\t\tstate.add(jShop2Relation);\n\t\t}\n\n\t\tTerm invParamIn = TermList.NIL;\n\t\tinvParamIn = new TermList(domain.getTermConstant(domain.addConstant(relation.getMetadata().getIdentifier())), invParamIn);\n\t\tinvParamIn = new TermList(domain.getTermConstant(domain.addConstant(\"inverse\" + relation.getName().substring(0, 1).toUpperCase() + relation.getName().substring(1))), invParamIn);\n\t\tinvParamIn = new TermList(domain.getTermConstant(domain.addConstant(relation.getValue().getIdentifier())), invParamIn);\n\t\tif (!arguments.contains(invParamIn)) {\n\t\t\tPredicate jShop2Relation = new Predicate(headIn, 0, invParamIn);\n\t\t\tstate.add(jShop2Relation);\n\t\t}\n\n\n\t\taddMetadataToState(relation.getValue(), state, domain);\n\n\t\treturn state;\n\t}",
"void setLeftToRight(boolean ltor);",
"@Override\n \tpublic void setContributedBy(CitagoraAgent contributedBy) {\n \t\t// do nothing if relationship not changed\n \t\tif (this.contributedBy == contributedBy)\n \t\t\treturn; // no change\n \t\t// remove from inverse relationship\n \t\tif (this.contributedBy != null) {\n \t\t\tthis.contributedBy.getAgentReferences().remove(this);\n \t\t}\n \t\t// set forward relationship\n \t\tthis.contributedBy = contributedBy;\n \t\t// set inverse relationship\n \t\tif (contributedBy == null)\n \t\t\treturn;\n \t\tcontributedBy.getAgentReferences().add(this);\n \t}",
"public void addRelation(AS otherAS, int myRelationToThem) {\n if (myRelationToThem == AS.PROVIDER_CODE) {\n this.customers.add(otherAS);\n otherAS.providers.add(this);\n } else if (myRelationToThem == AS.PEER_CODE) {\n this.peers.add(otherAS);\n otherAS.peers.add(this);\n } else if (myRelationToThem == AS.CUSTOMER_CODE) {\n this.providers.add(otherAS);\n otherAS.customers.add(this);\n } else if (myRelationToThem == 3) {\n // ignore\n } else {\n System.err.println(\"WTF bad relation: \" + myRelationToThem);\n System.exit(-1);\n }\n this.trafficOverNeighbors.put(otherAS.asn, 0.0);\n otherAS.trafficOverNeighbors.put(this.asn, 0.0);\n this.volatileTraffic.put(otherAS.asn, 0.0);\n otherAS.volatileTraffic.put(this.asn, 0.0);\n this.botTraffic.put(otherAS.asn, 0.0);\n otherAS.botTraffic.put(this.asn, 0.0);\n this.currentVolatileTraffic.put(otherAS.asn, 0.0);\n otherAS.currentVolatileTraffic.put(this.asn, 0.0);\n this.linkCapacities.put(otherAS.asn, new HashMap<Double, Double>());\n otherAS.linkCapacities.put(this.asn, new HashMap<Double, Double>());\n }",
"private void addVertexNonEdgeConstraint(){\n for (int i=0; i < g.nonEdges.size(); i++){\n Edge edge = g.nonEdges.get(i);\n int vertex1 = edge.from;\n int vertex2 = edge.to;\n for (int pCount =0; pCount < positionCount-1; pCount++){\n ArrayList<Integer> values = new ArrayList<>();\n values.add((variables[vertex1][pCount] * -1));\n values.add((variables[vertex2][pCount+1] * -1));\n clauses.add(values);\n values = new ArrayList<>();\n values.add((variables[vertex1][pCount+1] * -1));\n values.add((variables[vertex2][pCount] * -1));\n clauses.add(values);\n }\n\n }\n }",
"public String getRelation() {\n return relation;\n }",
"public Relation getRelation(int user_num){\n\t\treturn (this.vector[user_num]);\n\t}",
"public void setRight(boolean b){ right = b; }",
"public void setRight(boolean b){ right = b; }",
"public void storeRelation(Doc document, SpatialRelation sr, SpatialElement se1, String se1Role, SpatialElement se2, String se2Role, SpatialElement se3, String se3Role) throws IOException { \n //gets the relation triplet id string\n //also sets each element with their posited role in this relation \n sr.idString = getRelationIdString(se1, se1Role, se2, se2Role, se3, se3Role);\n //the idString is empty when two or more of the three spatial elements are null\n if (sr.idString.equals(\"\"))\n return;\n \n if (sr.classValue.equals(\"1\") && !sr.type.equals(\"LINK\")) {\n Map<String, List<String>> roleOtherElements = document.triggerMoverRoleOtherElements.get(document.filename+\"-\"+se1.id+\"-\"+se2.id);\n if (roleOtherElements == null)\n document.triggerMoverRoleOtherElements.put(document.filename+\"-\"+se1.id+\"-\"+se2.id, roleOtherElements = new HashMap<>());\n if (se3 != null) { \n String role = se3Role.toUpperCase();\n List<String> otherElements = roleOtherElements.get(role);\n if (otherElements == null)\n roleOtherElements.put(role, otherElements = new ArrayList<>());\n if (!otherElements.contains(se3.id))\n otherElements.add(se3.id); \n }\n }\n \n Map<String, SpatialRelation> tripletsSpatialRelations = document.relationTripletsSpatialRelations.get(sr.type);\n if (tripletsSpatialRelations == null)\n document.relationTripletsSpatialRelations.put(sr.type, tripletsSpatialRelations = new HashMap<>());\n \n //for non (or unannotated) relations, a check is made to see if it\n //was added as a positive relation earlier, \n //in which case this new relation is not stored.\n if (!sr.classValue.equals(\"1\") && tripletsSpatialRelations.containsKey(this.idString))\n return;\n \n sr.se1 = se1;\n if (se1 != null)\n sr.rolesString = se1Role;\n sr.se2 = se2;\n if (se2 != null)\n sr.rolesString = sr.rolesString == null ? se2Role : sr.rolesString+\"-\"+se2Role;\n sr.se3 = se3;\n if (se3 != null)\n sr.rolesString = sr.rolesString == null ? se3Role : sr.rolesString+\"-\"+se3Role; \n \n tripletsSpatialRelations.put(sr.idString, sr);\n }",
"@Override\n public void setRelationships(com.gensym.util.Sequence relationships) throws G2AccessException {\n setAttributeValue (SystemAttributeSymbols.RELATIONSHIPS_, relationships);\n }",
"@Override\r\n\tpublic int setIndividualObjectProPerty(String individualName_1,\r\n\t\t\tString individualName_2, String relation) {\n\t\tsynchronized (token) {\r\n\t\t\treturn super.setOWLIndividualObjectProPerty(individualName_1,\r\n\t\t\t\t\tindividualName_2, relation);\r\n\t\t}\r\n\t}",
"private void addVertexPositionConstraint(){\n for (int vertex=0; vertex < vertexCount; vertex++){\n addExactlyOne(variables[vertex]);\n }\n }",
"public org.apache.spark.sql.catalyst.plans.logical.LocalRelation asRelation () { throw new RuntimeException(); }",
"public String get_relation() {\n\t\treturn relation;\n\t}",
"void setConstraints(com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation constraints);",
"@Override\n\tpublic void setOrientation(Vector o)\n\t{\n\t\tsuper.setOrientation(o);\n\t\tif (position != null && normal != null)\n\t\t{\n\t\t\toX = o.dup().norm();\n\t\t\toY = normal.cross(oX).norm();\n\t\t\toX = oY.cross(normal).norm();\n\t\t}\n\t}",
"public SpatialRelation getSpatialRelation() {\n return spatialRelation;\n }",
"@Ignore\r\n @Test\r\n public void testSetType() {\r\n System.out.println(\"testSetType()\");\r\n Relation instance = new Relation(null, null);\r\n instance.setDirection(Relation.OUT);\r\n instance.setType(\"singer\");\r\n }",
"private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }",
"private void setDirection() {\n directionX = corePos.getX() - projectile.getX();\n directionY = corePos.getY() - projectile.getY();\n\n double length = Math.sqrt(directionX*directionX + directionY*directionY);\n\n if (length != 0) {\n directionX = directionX/length;\n directionY = directionY/length;\n }\n }",
"public void mirror() {\n this.mirrored = !this.mirrored;\n }",
"public void addRelation(String value) {\n/* 262 */ addStringToBag(\"relation\", value);\n/* */ }",
"public void extend(){\n\t\tsolenoid1.set(true);\n\t\tsolenoid2.set(true);\n\t}",
"public static void putRelation(final Tree tree) {\n\t\tputRelation(tree, tree.getChecksum());\n\t}",
"public void modifyUtilityRelation(Node util, Node toRemove, boolean inherit) {\n\n Link link;\n NodeList finalVariables, parentNodes, inherited;\n\n\n finalVariables = new NodeList();\n finalVariables.insertNode(util);\n parentNodes = diag.parents(util);\n inherited = diag.parents(toRemove);\n\n finalVariables.merge(parentNodes);\n\n if (inherit == true) {\n finalVariables.merge(inherited);\n\n // Add new links \n\n diag.addLinks(inherited, util);\n }\n\n // Remove link between toRemove and util \n\n link = diag.getLink(toRemove, util);\n try {\n diag.removeLink(link);\n } catch (InvalidEditException iee) {\n ;\n }\n\n // Modify the relation of the value node \n\n finalVariables.removeNode(toRemove);\n diag.getRelation(util).setVariables(finalVariables);\n }",
"public PointRelation pointLineRelation(Coordinates point, Coordinates linePointA, Coordinates linePointB);",
"public Relation(String relationString, EnumSet<Aspects> fixes,\n MinecraftObject obj, ImmutableList<MinecraftObject> otherob) {\n this.fixes = fixes;\n this.relationString = relationString;\n this.obj = obj;\n this.otherobj = otherob;\n }",
"public void setNodeA(int x){\n this.nodeA = x;\n }",
"public void delRelations();",
"public void update(Transaction tx,Tuple old, Tuple nu) throws RelationException;",
"@Override\n public final void solve() {\n this.flag1 = this.neo.getPosition().equals(this.goal);\n \n }",
"protected SpatialRelationBlock() {\n\t\t/* intentionally empty block */}",
"public void xsetNorth(org.apache.xmlbeans.XmlBoolean north)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlBoolean target = null;\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(NORTH$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(NORTH$0);\n }\n target.set(north);\n }\n }",
"public void retract(){\n\t\tsolenoid1.set(false);\n\t\tsolenoid2.set(false);\n\t}",
"public void setInverseRelationship (RelationshipElement inverseRelationship,\n\t\tModel model) throws ModelException\n\t{\n\t\tRelationshipElement old = getInverseRelationship(model);\n\n\t\tif ((old != inverseRelationship) || ((inverseRelationship == null) && \n\t\t\t(getInverseRelationshipName() != null)))\n\t\t{\n\t\t\t// clear old inverse which still points to here\n\t\t\tif (old != null)\n\t\t\t{\n\t\t\t\tRelationshipElement oldInverse = \n\t\t\t\t\told.getInverseRelationship(model);\n\n\t\t\t\tif (this.equals(oldInverse))\n\t\t\t\t\told.changeInverseRelationship(null);\n\t\t\t}\n\n\t\t\t// link from here to new inverse\n\t\t\tchangeInverseRelationship(inverseRelationship);\n\n\t\t\t// link from new inverse back to here\n\t\t\tif (inverseRelationship != null)\n\t\t\t\tinverseRelationship.changeInverseRelationship(this);\n\t\t}\n\t}",
"public void lower() {\n fangSolenoid.set(DoubleSolenoid.Value.kForward);\n }",
"@Override\n\t\tpublic boolean hasRelationship() {\n\t\t\treturn false;\n\t\t}",
"@Override\n public Map<PhysicalObject, Double> getRelationBetweenCentralAndObject() {\n assert false : \"shouldn't call this method\";\n return null;\n }",
"private void switchRelations() throws TransactionAbortedException, DbException {\n // IMPLEMENT ME\n }",
"public void setRelateToPassenger(Integer relateToPassenger) {\r\n this.relateToPassenger = relateToPassenger;\r\n }",
"public void normaliza() {\n switch (o) {\n case SurEste:\n setPos(getX()+1, getY());\n o = OrientacionArista.NorOeste;\n break;\n case SurOeste: \n setPos(getX(), getY()+1);\n o = OrientacionArista.NorEste;\n break;\n case Oeste: \n setPos(getX()-1, getY()+1);\n o = OrientacionArista.Este;\n break;\n }\n }",
"@Override\n\tpublic int getNodeRelationNum() {\n\t\ttry {\n\t\t\tString getNodeNum = \"select count(*) from routefinder.relations\";\n\t\t\tpstmt = conn.prepareStatement(getNodeNum);\n\t\t\trs = pstmt.executeQuery();\n\t\t\t// if there is a result..\n\t\t\tif (rs.next()) {\n\t\t\t\treturn rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(rs, pstmt);\n\t\t}\n\n\t\t// means you get nothing from database..\n\t\t// which means error occurs..\n\t\t// this line may never get execute then?\n\t\treturn -1;\n\n\t}",
"private void setZero(){\r\n\t for(int i = 0; i < nodes.size(); i++){\r\n\t Node currentNode = nodes.get(i);\r\n\t for (int j = 0; j < currentNode.getEdges().size(); j++){\r\n\t Edge currentEdge = currentNode.getEdge(j);\r\n\t currentEdge.setResidualFlow(currentEdge.getFlow());\r\n\t currentEdge.setFlow(0);\r\n }\r\n }\r\n }"
] |
[
"0.64770323",
"0.5888681",
"0.5759072",
"0.56793636",
"0.5538333",
"0.5512412",
"0.5509315",
"0.549629",
"0.54401946",
"0.5368749",
"0.53543043",
"0.52638924",
"0.52210957",
"0.5216324",
"0.5213097",
"0.5184685",
"0.51455545",
"0.51040775",
"0.50993556",
"0.50821626",
"0.5074479",
"0.50619185",
"0.50094515",
"0.5008342",
"0.4966234",
"0.49457228",
"0.49380475",
"0.4932431",
"0.4929868",
"0.49210405",
"0.49192923",
"0.49143165",
"0.49132368",
"0.4906666",
"0.4886126",
"0.48582307",
"0.48577523",
"0.48435766",
"0.48369864",
"0.48364785",
"0.48329723",
"0.4830669",
"0.48115647",
"0.4779465",
"0.4769216",
"0.4768498",
"0.47675347",
"0.47607353",
"0.47533774",
"0.47478026",
"0.47408244",
"0.47357604",
"0.473363",
"0.4722457",
"0.46996817",
"0.46981964",
"0.46815577",
"0.46711537",
"0.46707764",
"0.46705455",
"0.4670157",
"0.46619973",
"0.46536505",
"0.46217075",
"0.46217075",
"0.46189162",
"0.46183863",
"0.4615605",
"0.46143547",
"0.46114802",
"0.45868292",
"0.45819506",
"0.45817763",
"0.45757636",
"0.45748955",
"0.45735368",
"0.4570005",
"0.45651433",
"0.4559967",
"0.45526785",
"0.45455924",
"0.45444214",
"0.45343474",
"0.45277226",
"0.45272648",
"0.45250493",
"0.45247734",
"0.45200863",
"0.45130926",
"0.45126766",
"0.45058554",
"0.45047098",
"0.45015237",
"0.4492592",
"0.44847846",
"0.44830573",
"0.44806674",
"0.44800082",
"0.4472475",
"0.44663107"
] |
0.66563946
|
0
|
setNoRelation these two variable are negatively related. Throws if no matrix for this variable.
|
public void setNoRelation( Value inValue )
throws Exception
{
if (getVariable() == inValue.getVariable())
return;
try {
RelationMatrix mat = _var.getMatrixForVariable( inValue._var );
mat.setNoRelation( this, inValue );
}
catch (Exception ex) {
throw ex;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Relation getNegation();",
"public M csmiRelationNull(){if(this.get(\"csmiRelationNot\")==null)this.put(\"csmiRelationNot\", \"\");this.put(\"csmiRelation\", null);return this;}",
"void unsetFurtherRelations();",
"public void setRelation( Value inValue )\n throws Exception\n {\n if (getVariable() == inValue.getVariable())\n return;\n\n try {\n RelationMatrix mat = _var.getMatrixForVariable( inValue._var );\n mat.setRelation( this, inValue );\n }\n catch (Exception ex) {\n throw ex;\n }\n }",
"public void neg_() {\n TH.THTensor_(neg)(this, this);\n }",
"@External\r\n\t@ClientFunc\r\n\tpublic MetaVar SetNoDraw(MetaVarBoolean noDrawVar);",
"public void setOpposite(boolean opposite) {\n this.opposite = opposite;\n }",
"@Override\n public Literal not() {\n if (negation == null) {\n negation = new NotBoolVar(this);\n }\n return negation;\n }",
"default void negate()\n {\n getAxis().negate();\n setAngle(-getAngle());\n }",
"public final void negate() {\n \n \tthis.m00 = -this.m00;\n \tthis.m01 = -this.m01;\n \tthis.m02 = -this.m02;\n this.m10 = -this.m10;\n this.m11 = -this.m11;\n this.m12 = -this.m12;\n this.m20 = -this.m20;\n this.m21 = -this.m21;\n this.m22 = -this.m22;\n }",
"void removeConstraintRelation(IViewRelation relation);",
"public void removeNonMemberInheritanceRelation(InheritanceRelation relation) throws ChameleonProgrammerException;",
"public Matrix opposite(){\r\n \tMatrix opp = Matrix.copy(this);\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\topp.matrix[i][j]=-this.matrix[i][j];\r\n \t\t}\r\n \t}\r\n \treturn opp;\r\n \t}",
"@JSProperty(\"opposite\")\n void setOpposite(boolean value);",
"void setNilObjectives();",
"public boolean setNoDialog(boolean negated) {\n if (negated)\n value = variable.F;\n else\n value = variable.T;\n //store the name of the variable in the selectedVars list (used in model checker)\n selectedVars.add(name);\n // for each clause in clist that contains not this-term\n\n Iterator i = cnfClause.clist.iterator();\n while ( i.hasNext() ) {\n cnfClause c = ( cnfClause ) i.next();\n if ( c.hasNegTerm( !negated, ( variable )this ) ) {\n if ( c.isUnitOpen() != null )\n cnfClause.stack.push( c );\n else\n if ( c.isViolated() ) {\n cnfClause.ctStr += ((node)c.formula).toString().replace(\"_\",\"\") + \"\\n\";\n return false;\n /*grammar.dumpUserSelections();\n JOptionPane.showMessageDialog( null,\n \"model inconsistency detected -- see stderr for more information\",\n \"Error!\", JOptionPane.ERROR_MESSAGE );\n System.exit(1);*/\n }\n\n }\n }\n return true;\n }",
"public void setNull(){\n for (int i = 0; i < Nodes.size(); i++){\n this.References.add(null);\n }\n }",
"public void unsetNeCell()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NECELL$24, 0);\n }\n }",
"public void setNoLink(DecisionTreeNode node) {\n this.setLeftChild(node);\n }",
"public Value getPositiveRelation( Variable inVar )\n throws Exception\n {\n if (inVar == _var)\n return null;\n\n try {\n RelationMatrix mat = _var.getMatrixForVariable( inVar );\n return mat.getPositiveRelation( this );\n }\n catch (Exception ex) {\n throw ex;\n }\n }",
"void unsetDirection();",
"public void resetNodo()\r\n {\r\n this.nodo = null;\r\n }",
"void removeRelation(IViewRelation relation);",
"public void setInverseRelationship (RelationshipElement inverseRelationship,\n\t\tModel model) throws ModelException\n\t{\n\t\tRelationshipElement old = getInverseRelationship(model);\n\n\t\tif ((old != inverseRelationship) || ((inverseRelationship == null) && \n\t\t\t(getInverseRelationshipName() != null)))\n\t\t{\n\t\t\t// clear old inverse which still points to here\n\t\t\tif (old != null)\n\t\t\t{\n\t\t\t\tRelationshipElement oldInverse = \n\t\t\t\t\told.getInverseRelationship(model);\n\n\t\t\t\tif (this.equals(oldInverse))\n\t\t\t\t\told.changeInverseRelationship(null);\n\t\t\t}\n\n\t\t\t// link from here to new inverse\n\t\t\tchangeInverseRelationship(inverseRelationship);\n\n\t\t\t// link from new inverse back to here\n\t\t\tif (inverseRelationship != null)\n\t\t\t\tinverseRelationship.changeInverseRelationship(this);\n\t\t}\n\t}",
"private void negate()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.negate();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"public void set_relation(String relation){\n\t\tthis.relation = relation;\n\t}",
"private void setRelationsValid(boolean value)\n {\n __relationsValid = value;\n }",
"public abstract String edgeToStringWithNoProb(int nodeSrc, int nodeDst, Set<String> relations);",
"private void negateOclIsOps(PlainGraph graph) {\n List<PlainEdge> typeEdges = graph.edgeSet().stream()\n .filter(e -> labelContainsType(e.label().text()))\n .sorted((i1, i2) ->\n Integer.compare(i2.source().getNumber(), i1.source().getNumber()))\n .collect(Collectors.toList());\n\n // negate all except for the first, starting node (which is on the last index)\n for (int i = 0; i < typeEdges.size() - 1; i++) {\n PlainEdge edge = typeEdges.get(i);\n // negate the edge\n List<PlainEdge> notEdge = getNotEdge(graph, edge);\n if (notEdge.isEmpty()) {\n // add not edge\n addEdge(graph, edge.source(), String.format(\"%s:\", NOT), edge.target());\n } else {\n // remove not edge\n removeEdge(graph, notEdge.get(0));\n }\n }\n }",
"@Override\n\t\tpublic boolean hasRelationship() {\n\t\t\treturn false;\n\t\t}",
"public void setFalse(){\n for (int i = 0; i < Nodes.size(); i++){\n this.MinDistanceStatus.add(false);\n }\n }",
"public void disableNormalizationPlugin();",
"public static boolean addBoolNot(BoolVar LEFT, BoolVar RIGHT) {\n Solver solver = LEFT.getSolver();\n PropSat sat = solver.getMinisat().getPropSat();\n int left_lit = sat.Literal(LEFT);\n int right_lit = sat.Literal(RIGHT);\n sat.addClause(SatSolver.negated(left_lit), SatSolver.negated(right_lit));\n sat.addClause(left_lit, right_lit);\n return true;\n }",
"public void setRelation(Relation<L, Tr, T> r) {\n this.relation = r;\n }",
"public boolean resetEdges();",
"public interface IRelation {\n\n\t/**\n\t * Gets the negation of the relation.\n\t */\n\tRelation getNegation();\n}",
"private void negateProduction(PlainGraph graph) {\n List<? extends PlainEdge> bools = graph.edgeSet().stream().filter(e ->\n e.label().text().equals(String.format(\"%s:%s\", BOOL, TRUE_STRING)) ||\n e.label().text().equals(String.format(\"%s:%s\", BOOL, FALSE_STRING))\n ).collect(Collectors.toList());\n\n for (PlainEdge bool : bools) {\n if (bool.label().text().contains(TRUE_STRING)) {\n addEdge(graph, bool.source(), String.format(\"%s:%s\", BOOL, FALSE_STRING), bool.target());\n } else {\n addEdge(graph, bool.source(), String.format(\"%s:%s\", BOOL, TRUE_STRING), bool.target());\n }\n removeEdge(graph, bool);\n }\n }",
"public static BinaryExpression notEqual(Expression expression0, Expression expression1, boolean liftToNull, Method method) {\n return makeBinary(ExpressionType.NotEqual, expression0, expression1, liftToNull, method);\n }",
"public final AstValidator.rel_op_ne_return rel_op_ne() throws RecognitionException {\n AstValidator.rel_op_ne_return retval = new AstValidator.rel_op_ne_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree set524=null;\n\n CommonTree set524_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:770:11: ( STR_OP_NE | NUM_OP_NE )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n set524=(CommonTree)input.LT(1);\n\n if ( input.LA(1)==NUM_OP_NE||input.LA(1)==STR_OP_NE ) {\n input.consume();\n if ( state.backtracking==0 ) {\n set524_tree = (CommonTree)adaptor.dupNode(set524);\n\n\n adaptor.addChild(root_0, set524_tree);\n }\n\n state.errorRecovery=false;\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n if ( state.backtracking==0 ) {\n } \n\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }",
"public void unassociate(Node otherNode, QName associationTypeQName, Directionality directionality);",
"public Vector2f negateLocal ()\n {\n return negate(this);\n }",
"public void punishment(){\n\t\tthis.cell = 0;\n\t}",
"public void delIncomingRelations();",
"public int getRelation( Value inValue )\n throws Exception\n {\n // identity relation\n if (this == inValue)\n return RelationMatrix.YES;\n\n // two values of the same variable are unrelated\n if (getVariable() == inValue.getVariable())\n return RelationMatrix.NO;\n\n try {\n RelationMatrix mat = _var.getMatrixForVariable( inValue.getVariable() );\n return mat.getRelation( this, inValue );\n }\n catch (Exception ex) {\n throw ex;\n }\n }",
"public JTensor neg() {\n JTensor r = new JTensor();\n TH.THTensor_(neg)(r, this);\n return r;\n }",
"public static Matrix opposite(Matrix amat){\r\n \tMatrix opp = Matrix.copy(amat);\r\n \tfor(int i=0; i<amat.nrow; i++){\r\n \t\tfor(int j=0; j<amat.ncol; j++){\r\n \t\topp.matrix[i][j]=-amat.matrix[i][j];\r\n \t\t}\r\n \t}\r\n \treturn opp;\r\n \t}",
"public void revert()\n\t{\n\t\tswingingWay1 = !swingingWay1;\n\t}",
"public void retract(){\n\t\tsolenoid1.set(false);\n\t\tsolenoid2.set(false);\n\t}",
"void setNilConstraints();",
"public void setStatementNodeOnFalse(StatementNode statement);",
"public void no() {\n\n\t\tno = new JButton(\"No\");\n\n\t\tno.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprevious = current;\n\t\t\t\tcurrent = current.getRight();\n\n\t\t\t\t// if current is not a leaf\n\t\t\t\tif (current != null) {\n\t\t\t\t\tquestion.setText(current.getData().toString());\n\t\t\t\t\tvalidate();\n\t\t\t\t}\n\n\t\t\t\t// Once you hit a leaf, set a final message\n\t\t\t\telse {\n\t\t\t\t\t// Call the function that creates an option panel\n\t\t\t\t\toptionPane();\n\n\t\t\t\t\t// Save changes user made\n\t\t\t\t\tCommutativeExpressionWriter.writeCommutativeExpr(\n\t\t\t\t\t\t\tcontroller.tree, \"food.xml\");\n\n\t\t\t\t\t// add a restart button that restores the game\n\t\t\t\t\trestartGame();\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// add No button to right\n\t\tsouth.add(no, BorderLayout.EAST);\n\t\tvalidate();\n\t}",
"public void unsetIsComparation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ISCOMPARATION$2);\n }\n }",
"void unsetConstraints();",
"@Override\n public void novo(Dependente dependente) {\n if (dependente.getUuid() <= 0) {\n dBC.nova(dependente);\n } else {\n dBC.atualizar(dependente);\n }\n }",
"@Override\n public void deleteRelationshipBetweenPhysicalAndPhysical(PhysicalObject physicalObjectA,\n PhysicalObject physicalObjectB) {\n assert false : \"shouldn't call this method\";\n }",
"public void unsetIntersectRoadwayPI()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(INTERSECTROADWAYPI$22);\r\n }\r\n }",
"private void addVertexNonEdgeConstraint(){\n for (int i=0; i < g.nonEdges.size(); i++){\n Edge edge = g.nonEdges.get(i);\n int vertex1 = edge.from;\n int vertex2 = edge.to;\n for (int pCount =0; pCount < positionCount-1; pCount++){\n ArrayList<Integer> values = new ArrayList<>();\n values.add((variables[vertex1][pCount] * -1));\n values.add((variables[vertex2][pCount+1] * -1));\n clauses.add(values);\n values = new ArrayList<>();\n values.add((variables[vertex1][pCount+1] * -1));\n values.add((variables[vertex2][pCount] * -1));\n clauses.add(values);\n }\n\n }\n }",
"public TriggerAccess not () {\n if (inverse == null) {\n inverse = new TriggerNot(this);\n }\n \n return inverse;\n }",
"public synchronized void setNoOscillation(boolean noOscillation)\n {\n final String funcName = \"setNoOscillation\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"noOsc=%s\", Boolean.toString(noOscillation));\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n this.noOscillation = noOscillation;\n }",
"public T caseRelNotEq(RelNotEq object)\n {\n return null;\n }",
"public void indicateNot() {\r\n notIndicated = true;\r\n }",
"public int getRelationNo() {\n return _relationNo;\n }",
"public final static void disableNormalizationPlugin()\n { /* disableNormalizationPlugin */\n activeNormalization= null;\n }",
"public final EObject ruleGoalNegation() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject lv_operator_0_0 = null;\r\n\r\n EObject lv_value_1_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1772:28: ( ( ( (lv_operator_0_0= ruleNotOperator ) ) ( (lv_value_1_0= ruleGoalBooleanUnit ) ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1773:1: ( ( (lv_operator_0_0= ruleNotOperator ) ) ( (lv_value_1_0= ruleGoalBooleanUnit ) ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1773:1: ( ( (lv_operator_0_0= ruleNotOperator ) ) ( (lv_value_1_0= ruleGoalBooleanUnit ) ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1773:2: ( (lv_operator_0_0= ruleNotOperator ) ) ( (lv_value_1_0= ruleGoalBooleanUnit ) )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1773:2: ( (lv_operator_0_0= ruleNotOperator ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1774:1: (lv_operator_0_0= ruleNotOperator )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1774:1: (lv_operator_0_0= ruleNotOperator )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1775:3: lv_operator_0_0= ruleNotOperator\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getGoalNegationAccess().getOperatorNotOperatorParserRuleCall_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleNotOperator_in_ruleGoalNegation3714);\r\n lv_operator_0_0=ruleNotOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getGoalNegationRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"operator\",\r\n \t\tlv_operator_0_0, \r\n \t\t\"NotOperator\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1791:2: ( (lv_value_1_0= ruleGoalBooleanUnit ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1792:1: (lv_value_1_0= ruleGoalBooleanUnit )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1792:1: (lv_value_1_0= ruleGoalBooleanUnit )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:1793:3: lv_value_1_0= ruleGoalBooleanUnit\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getGoalNegationAccess().getValueGoalBooleanUnitParserRuleCall_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleGoalBooleanUnit_in_ruleGoalNegation3735);\r\n lv_value_1_0=ruleGoalBooleanUnit();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getGoalNegationRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"value\",\r\n \t\tlv_value_1_0, \r\n \t\t\"GoalBooleanUnit\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"public void unAssign(){\n\t\tthis.value = 0;\n\t}",
"public void setOppositePlayer(Player P){\n this.oppositePlayer = P;\n }",
"public void setUnlabeled(){\n\t\tthis._isLabeled = false;\n\t}",
"boolean isWeakRelationship();",
"public void reinitAff()\n\t{\n\t\tthis.gagne = false;\n\t\tthis.perdu = false;\n\t}",
"@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }",
"public void unsetIntersectingRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(INTERSECTINGROADWAYREF$20);\r\n }\r\n }",
"public Value setNotDontDelete() {\n checkNotUnknown();\n if (isNotDontDelete())\n return this;\n Value r = new Value(this);\n r.flags &= ~ATTR_DONTDELETE_ANY;\n r.flags |= ATTR_NOTDONTDELETE;\n return canonicalize(r);\n }",
"public Criteria andIdNotEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"id <> \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"public final void negate(Matrix3f m1) {\n\t\n \tthis.set(m1);\n \tthis.negate();\n }",
"public void setAntiConvergence(boolean b){\n antiConvergence = b;\n }",
"public Direction opposite() {\n return opposite;\n }",
"@JsonProperty(PROP_NEGATE)\n public boolean getNegate() {\n return _negate;\n }",
"public final void invert() {\n\tdouble s = determinant();\n\tif (s == 0.0)\n\t return;\n\ts = 1/s;\n\t// alias-safe way.\n\tset(\n\t m11*m22 - m12*m21, m02*m21 - m01*m22, m01*m12 - m02*m11,\n\t m12*m20 - m10*m22, m00*m22 - m02*m20, m02*m10 - m00*m12,\n\t m10*m21 - m11*m20, m01*m20 - m00*m21, m00*m11 - m01*m10\n\t );\n\tmul((float)s);\n }",
"public void resetReversePoison() {\n\n Set<AS> prevAdvedTo = this.adjOutRib.get(this.asn * -1);\n\n if (prevAdvedTo != null) {\n for (AS pAS : prevAdvedTo) {\n pAS.withdrawPath(this, this.asn * -1);\n }\n }\n\n this.adjOutRib.remove(this.asn * -1);\n\n this.botSet = new HashSet<>();\n }",
"void removeIsEquivalent(Noun oldIsEquivalent);",
"public void reactivateEqConstraints() {\n\t\t// NOP\n\t}",
"public Schema getNot() {\n\t\treturn not;\n\t}",
"public void failLink(Node n1, Node n2) {\r\n\t\tn1.getDistanceVector().put(n2, Integer.MAX_VALUE);\r\n\t\tn2.getDistanceVector().put(n1, Integer.MAX_VALUE);\r\n\t\tn1.getForwardingTable().put(n2, null);\r\n\t\tn2.getForwardingTable().put(n1, null);\r\n\t}",
"public void invertOrientation() {\n\t\tPoint3D temp = getPoint(2);\n\t\tsetPoint(2, getPoint(1));\n\t\tsetPoint(1, temp);\n\n\t\tTriangleElt3D temp2 = getNeighbour(2);\n\t\tsetNeighbour(2, getNeighbour(1));\n\t\tsetNeighbour(1, temp2);\n\t\tif (this.getNetComponent() != null)\n\t\t\tthis.getNetComponent().setOriented(false);\n\t}",
"public Vector2D neg()\n\t{\n\t\treturn this.mul(-1);\n\t}",
"public void normalize()\n\t{\n\t\tif (this.getDenom() < 0)\n\t\t{\n\t\t\tthis.setDenom(this.getDenom() * (-1));\n\t\t\tthis.setNumer(this.getNumer() * (-1));\n\t\t}\n\t}",
"public void setNulled(final boolean nulled) {\n \t\tthis.nulled = nulled;\n \t}",
"boolean isSetFurtherRelations();",
"protected void setForceNormalVector() {\n\t\tvn = forceNormalVector(v1, v2);\n\t}",
"public Vector3 negateLocal () {\n return negate(this);\n }",
"private void setZero(){\r\n\t for(int i = 0; i < nodes.size(); i++){\r\n\t Node currentNode = nodes.get(i);\r\n\t for (int j = 0; j < currentNode.getEdges().size(); j++){\r\n\t Edge currentEdge = currentNode.getEdge(j);\r\n\t currentEdge.setResidualFlow(currentEdge.getFlow());\r\n\t currentEdge.setFlow(0);\r\n }\r\n }\r\n }",
"private void resetProp(){\n proposition.clear();\n for (int i = 0; i<tailleCombinaison; i++) {\n proposition.add(\"-1\");\n }\n }",
"public CommandDataNegate() {\n super();\n }",
"public void setNodesToUnvisited(){\n for(GraphNode node: graphNode){\n if(node.visited){\n node.visited = false;\n }\n }\n }",
"public void setNotHasPermission(Boolean notHasPermission)\r\n {\r\n this.notHasPermission = notHasPermission;\r\n }",
"public void invert() {\n\t\tthis.vector.setXYZ(-this.vector.x(), -this.vector.y(), -this.vector.z());\n\t\tthis.energy = -this.energy;\n\t}",
"public void delRelations();",
"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}",
"public void andNot(BitSet set){\n for(int i=Math.min(wordsInUse,set.wordsInUse)-1;i>=0;i--)\n words[i]&=~set.words[i];\n recalculateWordsInUse();\n checkInvariants();\n }",
"public boolean isOpposite() {\n return opposite;\n }"
] |
[
"0.62181586",
"0.5809172",
"0.5732355",
"0.57304895",
"0.57009554",
"0.5533986",
"0.542021",
"0.53390884",
"0.5299182",
"0.52883714",
"0.52793145",
"0.525139",
"0.5246064",
"0.5164577",
"0.512739",
"0.51148576",
"0.50882185",
"0.5044892",
"0.5044247",
"0.50436544",
"0.5026217",
"0.5018987",
"0.50157356",
"0.49602407",
"0.49564102",
"0.49515954",
"0.4951219",
"0.49443832",
"0.49412334",
"0.4923174",
"0.49209136",
"0.49067166",
"0.49021265",
"0.4891877",
"0.48769918",
"0.48740804",
"0.48737895",
"0.48720187",
"0.48631623",
"0.48621368",
"0.48610827",
"0.48577675",
"0.48545223",
"0.48346588",
"0.48321676",
"0.4825954",
"0.48133072",
"0.48125547",
"0.4812526",
"0.48008263",
"0.47987404",
"0.47766137",
"0.4765935",
"0.47640753",
"0.4758337",
"0.47567874",
"0.47559574",
"0.47529128",
"0.47519046",
"0.47506446",
"0.47464073",
"0.47434968",
"0.4742751",
"0.473745",
"0.47348464",
"0.47344068",
"0.4725497",
"0.47205073",
"0.47196427",
"0.47168258",
"0.47123927",
"0.47123793",
"0.46979386",
"0.4686352",
"0.46827143",
"0.46799648",
"0.46798703",
"0.46629122",
"0.4658311",
"0.46510267",
"0.46497822",
"0.46420592",
"0.46382618",
"0.4635911",
"0.4634494",
"0.46343422",
"0.46335703",
"0.46332484",
"0.46150443",
"0.46110958",
"0.4608229",
"0.45989954",
"0.4589696",
"0.4588859",
"0.4585475",
"0.45831767",
"0.45740455",
"0.45713818",
"0.45708698",
"0.45708618"
] |
0.7466858
|
0
|
getRelation Return the relation between these two values. Throws if no matrix for this variable.
|
public int getRelation( Value inValue )
throws Exception
{
// identity relation
if (this == inValue)
return RelationMatrix.YES;
// two values of the same variable are unrelated
if (getVariable() == inValue.getVariable())
return RelationMatrix.NO;
try {
RelationMatrix mat = _var.getMatrixForVariable( inValue.getVariable() );
return mat.getRelation( this, inValue );
}
catch (Exception ex) {
throw ex;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract RelationDeclaration getRelation();",
"public String getRelation() {\n return relation;\n }",
"public String get_relation() {\n\t\treturn relation;\n\t}",
"public Relation getRelation(String relationName);",
"@Nullable\n public RelationInfo relation() {\n return relation;\n }",
"public Relation getRelation(int user_num){\n\t\treturn (this.vector[user_num]);\n\t}",
"public int getRelationNo() {\n return _relationNo;\n }",
"public SpatialRelation getSpatialRelation() {\n return spatialRelation;\n }",
"public void setRelation( Value inValue )\n throws Exception\n {\n if (getVariable() == inValue.getVariable())\n return;\n\n try {\n RelationMatrix mat = _var.getMatrixForVariable( inValue._var );\n mat.setRelation( this, inValue );\n }\n catch (Exception ex) {\n throw ex;\n }\n }",
"public RelationManager getRelationManager();",
"public final native String getRelationship() /*-{\n return this.getRelationship();\n }-*/;",
"ContextRelation getContextRelation();",
"public String[] getRelations() {\n/* 270 */ return getStringArray(\"relation\");\n/* */ }",
"public ObjectProp getRelationship() {\n return relationship;\n }",
"@Override\n\tpublic List<PersonRelation> getPersonRelation(PersonRelation personRelation) {\n\t\treturn null;\n\t}",
"EReference getRelationReference();",
"public interface IRelation {\n\n\t/**\n\t * Gets the negation of the relation.\n\t */\n\tRelation getNegation();\n}",
"public void set_relation(String relation){\n\t\tthis.relation = relation;\n\t}",
"public org.apache.spark.sql.catalyst.plans.logical.LocalRelation asRelation () { throw new RuntimeException(); }",
"public java.lang.String getRELATION_ID() {\r\n return RELATION_ID;\r\n }",
"public Relation getRelation(String name) {\n return relations.get(name);\n }",
"public Relationship getRelationship() {\n\t\treturn relationship;\n\t}",
"public org.LexGrid.relations.Relations[] getRelations() {\n return relations;\n }",
"public static interface Relation {\n\t\t//some relations are read-only\n\t\tpublic boolean isWriteable();\n\n\t\tpublic String getName();\n\n\t\t/**\n\t\t* Get the model for the relation. This will return a blank tuple, which will show\n\t\t* the ordered list of columns and the type for each. This is basically metadata.\n\t\t*/\n\t\tpublic Tuple getModel();\n\n\t\t/**\n\t\t* Get the number of rows (Tuples) in the relation.\n\t\t*/\n\t\tpublic int getRows();\n\n\t\t//----------------------------\n\t\t//operations on a Relation\n\t\t/**\n\t\t* projection narrows the number of columns in a relation.\n\t\t* This is the part of an sql statement that list the columns, e.g.\n\t\t*\tSELECT firstname,lastname FROM contact.\n\t\t* The contact table has a lot columns that these, but we only need these\n\t\t* two.\n\t\t*/\n\t\tpublic Relation project(Tuple t) throws RelationException;\n\n\t\t/**\n\t\t* Select narrows the number of rows returned.\n\t\t*/\n\t\tpublic Relation select(Condition c) throws RelationException;\n\n\t\t/**\n\t\t* Join this relation with another one based on the condition, and give it a name.\n\t\t* The implementation of this is complicated, because it must also create a dynamic\n\t\t* Tuple\n\t\t*/\n\t\tpublic Relation join(Relation r, Condition c, String name) throws RelationException;\n\t\t//-------------------------------\n\n\t\t/**\n\t\t* A cursor is the equivalent of a ResultSet. There may be different types\n\t\t* of Cursors depending on if this is coming directly from the database\n\t\t* or from a derived relation.\n\t\t*/\n\t\tpublic Cursor getCursor() throws RelationException;\n\n\t\t//-------------------------------\n\t\t//change data in the relation\n\t\t//I had this as part of Transaction, but I guess it belongs here.\n\t\t/**\n\t\t* Insert a Tuple into the relation. This may fail for various reasons\n\t\t* including IO problems, invalid transaction state, or constraint violations.\n\t\t* Or if the relation is read-only\n\t\t*/\n\t\tpublic Key insert(Transaction tx,Tuple t) throws RelationException;\n\n\t\t/**\n\t\t* Get the tuple that you just inserted by the Key\n\t\t*/\n\t\tpublic Tuple get(Key k) throws RelationException;\n\n\t\t/**\n\t\t* Update the relation with changed data in the Tuple.\n\t\t* The old data is stored in the _audit table.\n\t\t*/\n\t\tpublic void update(Transaction tx,Tuple old, Tuple nu) throws RelationException;\n\n\t\t/**\n\t\t* Delete the object. Must provide old state of object before doing so, so it\n\t\t* can be audited.\n\t\t*/\n\t\tpublic void delete(Transaction tx,Tuple old) throws RelationException;\n\n\t}",
"public void setRelation(Relation<L, Tr, T> r) {\n this.relation = r;\n }",
"@Override\n public Map<PhysicalObject, Double> getRelationBetweenCentralAndObject() {\n assert false : \"shouldn't call this method\";\n return null;\n }",
"boolean hasRelation();",
"@Override\n\tpublic int getNodeRelationNum() {\n\t\ttry {\n\t\t\tString getNodeNum = \"select count(*) from routefinder.relations\";\n\t\t\tpstmt = conn.prepareStatement(getNodeNum);\n\t\t\trs = pstmt.executeQuery();\n\t\t\t// if there is a result..\n\t\t\tif (rs.next()) {\n\t\t\t\treturn rs.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(rs, pstmt);\n\t\t}\n\n\t\t// means you get nothing from database..\n\t\t// which means error occurs..\n\t\t// this line may never get execute then?\n\t\treturn -1;\n\n\t}",
"public String getRel() {\r\n return rel;\r\n }",
"Relation createRelation();",
"public javax.accessibility.AccessibleRelationSet getAccessibleRelationSet() {\n try {\n XAccessibleRelationSet unoAccessibleRelationSet = unoAccessibleContext.getAccessibleRelationSet();\n if (unoAccessibleRelationSet == null) {\n return null;\n }\n \n javax.accessibility.AccessibleRelationSet relationSet = new javax.accessibility.AccessibleRelationSet();\n int count = unoAccessibleRelationSet.getRelationCount();\n for (int i = 0; i < count; i++) {\n AccessibleRelation unoAccessibleRelation = unoAccessibleRelationSet.getRelation(i);\n switch (unoAccessibleRelation.RelationType) {\n case AccessibleRelationType.CONTROLLED_BY:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.CONTROLLED_BY,\n create(unoAccessibleRelation.TargetSet)));\n break;\n case AccessibleRelationType.CONTROLLER_FOR:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.CONTROLLER_FOR,\n create(unoAccessibleRelation.TargetSet)));\n break;\n case AccessibleRelationType.LABELED_BY:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.LABELED_BY,\n create(unoAccessibleRelation.TargetSet)));\n break;\n case AccessibleRelationType.LABEL_FOR:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.LABEL_FOR,\n create(unoAccessibleRelation.TargetSet)));\n break;\n case AccessibleRelationType.MEMBER_OF:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.MEMBER_OF,\n create(unoAccessibleRelation.TargetSet)));\n break;\n default:\n break;\n }\n }\n return relationSet;\n } catch (com.sun.star.lang.IndexOutOfBoundsException e) {\n return null;\n } catch (com.sun.star.uno.RuntimeException e) {\n return null;\n }\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"(relation \" +\n\t\t\t\t(this.source != null ? this.source.getId() : \"nil\") + \" \" +\n\t\t\t\tthis.name.toString() + \" \" +\n\t\t\t\t(this.dest != null ? this.dest.toString() : \"nil\") + \")\";\n\t}",
"public String toStringWithRelation();",
"public Relation<ModelGraphVertex, ModelGraphVertex> fillRelation() {\n\t\tRelation<ModelGraphVertex, ModelGraphVertex> r = new Relation<ModelGraphVertex, ModelGraphVertex>();\n\n\t\tIterator<JComboBox> it = cmbList.iterator();\n\t\tint position = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tJComboBox cmb = it.next();\n\t\t\tif (cmb.getSelectedIndex() > 0) {\n\t\t\t\tint index = cmb.getSelectedIndex() - 1; // the first item in the\n\t\t\t\t// combobox is no\n\t\t\t\t// transition, but the\n\t\t\t\t// item \"no equivalent\"\n\t\t\t\tModelGraphVertex tProv = provTransitions.get(position);\n\t\t\t\tModelGraphVertex tReq = reqTransitions.get(index);\n\t\t\t\tTuple<ModelGraphVertex, ModelGraphVertex> tuple = new Tuple<ModelGraphVertex, ModelGraphVertex>(\n\t\t\t\t\t\ttProv, tReq);\n\t\t\t\tr.addR(tuple);\n\t\t\t}\n\t\t\tposition++;\n\t\t}\n\t\tposition = 0;\n\t\tit = cmbList.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tJComboBox cmb = it.next();\n\t\t\tif (cmb.getSelectedIndex() > 0) {\n\t\t\t\tint index = cmb.getSelectedIndex() - 1; // the first item in the\n\t\t\t\t// combobox is no\n\t\t\t\t// transition, but the\n\t\t\t\t// item \"no equivalent\"\n\t\t\t\tModelGraphVertex tProv = provTransitions.get(position);\n\t\t\t\tModelGraphVertex tReq = reqTransitions.get(index);\n\t\t\t\tTuple<ModelGraphVertex, ModelGraphVertex> tuple = new Tuple<ModelGraphVertex, ModelGraphVertex>(\n\t\t\t\t\t\ttReq, tProv);\n\t\t\t\tr.addR(tuple);\n\t\t\t}\n\t\t\tposition++;\n\t\t}\n\t\treturn r;\n\t}",
"public CodeableConcept relationship() {\n return getObject(CodeableConcept.class, FhirPropertyNames.PROPERTY_RELATIONSHIP);\n }",
"public Value getPositiveRelation( Variable inVar )\n throws Exception\n {\n if (inVar == _var)\n return null;\n\n try {\n RelationMatrix mat = _var.getMatrixForVariable( inVar );\n return mat.getPositiveRelation( this );\n }\n catch (Exception ex) {\n throw ex;\n }\n }",
"String findRelation(String person1, String person2);",
"@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }",
"public Set<Relation> getRelations();",
"public Relation getRelation(XDI3Segment arcXri);",
"public Relation getRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);",
"public double[][] getArrayReference(){\r\n \treturn this.matrix;\r\n \t}",
"public String getRelationPropertyName() {\n return getForeignPropertyName();\n }",
"public static String relationDecl(String multiplicity)\n {\n read_if_needed_();\n \n return _rel_decl[UmlSettings.multiplicity_column(multiplicity)];\n }",
"@Override\n\tpublic PersonRelation getPersonRelationById(int personRelationId) {\n\t\treturn null;\n\t}",
"@Override\n final public String getInputRelation() {\n return \"SELECT * FROM TR1_DB1_PROPHECY_Q5_INNER\";\n }",
"public Matrix getValue();",
"public ru.terralink.mvideo.sap.Relations getRelations()\n {\n if (! __relationsValid)\n {\n if( (__relationsFK != null))\n {\n __relations = ru.terralink.mvideo.sap.Relations.find(__relationsFK);\n }\n __relationsValid = true;\n }\n return __relations;\n }",
"public void createRelation(Agent source, Agent target, double relation) {\n this.gamygdala.createRelation(source, target, relation);\n }",
"public RelationObject(String relation, EVAnnotation relatum) {\n\t\tthis.relation = relation;\n\t\tthis.relatum = relatum;\n\t}",
"LinkRelation createLinkRelation();",
"Expr rel() throws IOException {\n\t\tExpr e = expr();\t\t\t\t\t\t\t\t\t\t\t// expr ge expr | expr > expr | expr\n\t\tswitch (look.tag) {\n\t\tcase '<':\n\t\tcase Tag.LE:\n\t\tcase Tag.GE:\n\t\tcase '>':\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\treturn new Rel(tok, e, expr());\n\t\tdefault:\n\t\t\treturn e;\n\t\t}\n\t}",
"public Cursor getCursor() throws RelationException;",
"public Map<Integer, Boolean> getRelate(Geometry geom, String matrix) throws SQLException {\n return retrieveExpected(createNativeRelateStatement(geom, matrix), BOOLEAN);\n }",
"public M csmiRelationNull(){if(this.get(\"csmiRelationNot\")==null)this.put(\"csmiRelationNot\", \"\");this.put(\"csmiRelation\", null);return this;}",
"List<IViewRelation> getConstraintRelations();",
"@Override\n public com.gensym.util.Sequence getRelationships() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.RELATIONSHIPS_);\n return (com.gensym.util.Sequence)retnValue;\n }",
"public ReadOnlyIterator<Relation> getRelations();",
"public abstract double getReference();",
"public abstract double getReference();",
"private String relationGenerator(ArrayList<Verb> candidateRelation){\n String relation = candidateRelation.get(0).token;\n if(candidateRelation.size()>=3){\n if(isBe(candidateRelation.get(0).token) && isAdv(candidateRelation.get(1).type)\n && isVerb(candidateRelation.get(2).type)){\n relation += \" \" + candidateRelation.get(1).token + \" \" + candidateRelation.get(2).token;\n }else if(isBe(candidateRelation.get(0).token) && isPast(candidateRelation.get(1).type)){\n relation += \" \" + candidateRelation.get(1).token;\n }else if(isHave(candidateRelation.get(0).token) && isPast(candidateRelation.get(1).type)){\n relation += \" \" + candidateRelation.get(1).token;\n }\n }\n return relation;\n }",
"public StrColumn getReference() {\n return delegate.getColumn(\"reference\", DelegatingStrColumn::new);\n }",
"@Override\n\tpublic List<PersonRelation> getPersonRelationByPerson(Person person) {\n\t\treturn null;\n\t}",
"public int getC_BP_Relation_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BP_Relation_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public String getInverseRelationshipName ();",
"public HashMap<String, Relation> getRelations() {\n return relations;\n }",
"public Set<OpconRegitemRelation> getOpconRegitemRelation() {\n return opconRegitemRelation;\n }",
"@DISPID(1610940428) //= 0x6005000c. The runtime will prefer the VTID if present\n @VTID(34)\n Relations relations();",
"public String toStringWithRelation() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(toString());\r\n String l = \"\\n \";\r\n if (_member != null)\r\n { sb.append(l).append(xbRDS(_member, \"member\")); }\r\n if (_region != null)\r\n { sb.append(l).append(xbRDS(_region, \"region\")); }\r\n return sb.toString();\r\n }",
"public Tuple next() throws RelationException;",
"public int getC_BPartnerRelation_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartnerRelation_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public Long getRelId() {\n return relId;\n }",
"public SpatialRelation getPolygonRectangleRelation() {\n return polygonRectangleRelation;\n }",
"private Text rel() {\n\t\tText rel = text();\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn rel;\r\n\t}",
"public String getRelationColor(String relation) {\n if (relationColors.containsKey(relation)) {\n return relationColors.get(relation);\n }\n if (possibleColors.size() == 0) {\n if (!reportedColorsDeficiency) {\n logger.severe(\"Ran out of colors for relations when exporting graph. Using the default color (\"\n + defaultRelationColor + \") for the remaining relations.\");\n }\n reportedColorsDeficiency = true;\n }\n if (possibleColors.size() == 0) {\n return defaultRelationColor;\n }\n String color = possibleColors.remove(0);\n relationColors.put(relation, color);\n return color;\n }",
"public RelationMention getRelation(RelationMentionFactory factory, ExtractionObject ... args) {\n for (RelationMention rel : relationMentions) {\n if (rel.argsMatch(args)){\n return rel;\n }\n }\n return RelationMention.createUnrelatedRelation(factory, args);\n }",
"public CycFort getRelevancyRelationship () {\n return relevancyRelationship;\n }",
"public long getID() throws RelationException;",
"public Relatorio get(int row){\n\t\t\t\t\n\t\t\t\treturn valores.get(row);\n\t\t\t}",
"public java.lang.String getStudent_contactRelationship() {\n\t\treturn _primarySchoolStudent.getStudent_contactRelationship();\n\t}",
"public void executeGetOnRelationStatement(XDI3Statement relationStatement, GetOperation operation, MessageResult messageResult, ExecutionContext executionContext) throws Xdi2MessagingException {\r\n\r\n\t\tXDI3Segment contextNodeXri = relationStatement.getContextNodeXri();\r\n\t\tXDI3Segment arcXri = relationStatement.getPredicate();\r\n\t\tXDI3Segment targetContextNodeXri = relationStatement.getObject();\r\n\r\n\t\tthis.getRelation(contextNodeXri, arcXri, targetContextNodeXri, operation, messageResult, executionContext);\r\n\t}",
"public boolean relationalExpressionTypeDerivation() {\r\n\t\treturn this.getImpl().relationalExpressionTypeDerivation();\r\n\t}",
"Relation getNegation();",
"public Matrix getGraphMatrix(){\n\t\treturn graphMatrix;\n\t}",
"public OBOProperty getDefaultRelationship() {\n return DEFAULT_REL; // genotype influences phenotype\n }",
"public java.lang.Object[] getRelationsAsReference() {\n return relationsAsReference;\n }",
"public String[] listRelations();",
"public static ArrayList<Person> mapRelations(Person target,String relation){\n ArrayList<Person> result = new ArrayList<Person>();\n switch(relation){\n case Relationship.MOTHER:\n Person mum = target.getMother();\n result.add(mum);\n break;\n\n case Relationship.FATHER:\n Person father = target.getFather();\n result.add(father);\n break;\n\n case Relationship.SON: \n result = target.getSon(); \n break;\n\n case Relationship.DAUGHTER:\n result = target.getDaughter();\n break; \n \n case Relationship.CHILDREN:\n result = target.getChildren();\n break;\n \n case Relationship.COUSINS:\n result = NoneDirectRelationHandler.getCousin(target);\n break;\n\n case Relationship.BROTHER:\n result = NoneDirectRelationHandler.getBrother(target);\n break;\n \n case Relationship.SISTER:\n result = NoneDirectRelationHandler.getSister(target);\n break;\n\n case Relationship.PATERNAL_UNCLE:\n result = NoneDirectRelationHandler.getPaternalUncle(target);\n break;\n\n case Relationship.PATERNAL_AUNT:\n result = NoneDirectRelationHandler.getPaternalAunt(target);\n break;\n\n case Relationship.MATERNAL_UNCLE:\n result = NoneDirectRelationHandler.getMaternalUncle(target);\n break;\n\n case Relationship.MATERNAL_AUNT:\n result = NoneDirectRelationHandler.getMaternalAunt(target);\n break;\n \n case Relationship.SISTER_IN_LAW:\n result = NoneDirectRelationHandler.getSisterInLaw(target);\n break;\n\n case Relationship.BROTHER_IN_LAW:\n result = NoneDirectRelationHandler.getBrotherInLaw(target);\n break;\n\n case Relationship.GRAND_DAUGHTER:\n result = NoneDirectRelationHandler.getGrandDaughter(target);\n break;\n\n case Relationship.GRAND_SON:\n result = NoneDirectRelationHandler.getGrandSon(target);\n break;\n\n default:\n //TBD: throw error: no relations match \n break;\n\n }\n return result;\n }",
"@Override\n\tpublic Instances relationalValue(final Attribute att) {\n\t\treturn null;\n\t}",
"public final expressionParser.relation_return relation() throws RecognitionException {\n expressionParser.relation_return retval = new expressionParser.relation_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal30=null;\n Token string_literal31=null;\n Token char_literal32=null;\n Token string_literal33=null;\n Token string_literal34=null;\n Token char_literal35=null;\n expressionParser.add_return add29 = null;\n\n expressionParser.add_return add36 = null;\n\n\n CommonTree string_literal30_tree=null;\n CommonTree string_literal31_tree=null;\n CommonTree char_literal32_tree=null;\n CommonTree string_literal33_tree=null;\n CommonTree string_literal34_tree=null;\n CommonTree char_literal35_tree=null;\n\n try {\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:3: ( ( add ( ( '==' | '!=' | '<' | '<=' | '>=' | '>' ) add )* ) )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:5: ( add ( ( '==' | '!=' | '<' | '<=' | '>=' | '>' ) add )* )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:5: ( add ( ( '==' | '!=' | '<' | '<=' | '>=' | '>' ) add )* )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:6: add ( ( '==' | '!=' | '<' | '<=' | '>=' | '>' ) add )*\n {\n pushFollow(FOLLOW_add_in_relation374);\n add29=add();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, add29.getTree());\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:10: ( ( '==' | '!=' | '<' | '<=' | '>=' | '>' ) add )*\n loop15:\n do {\n int alt15=2;\n int LA15_0 = input.LA(1);\n\n if ( ((LA15_0>=40 && LA15_0<=45)) ) {\n alt15=1;\n }\n\n\n switch (alt15) {\n \tcase 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:11: ( '==' | '!=' | '<' | '<=' | '>=' | '>' ) add\n \t {\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:11: ( '==' | '!=' | '<' | '<=' | '>=' | '>' )\n \t int alt14=6;\n \t switch ( input.LA(1) ) {\n \t case 40:\n \t {\n \t alt14=1;\n \t }\n \t break;\n \t case 41:\n \t {\n \t alt14=2;\n \t }\n \t break;\n \t case 42:\n \t {\n \t alt14=3;\n \t }\n \t break;\n \t case 43:\n \t {\n \t alt14=4;\n \t }\n \t break;\n \t case 44:\n \t {\n \t alt14=5;\n \t }\n \t break;\n \t case 45:\n \t {\n \t alt14=6;\n \t }\n \t break;\n \t default:\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n \t NoViableAltException nvae =\n \t new NoViableAltException(\"\", 14, 0, input);\n\n \t throw nvae;\n \t }\n\n \t switch (alt14) {\n \t case 1 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:12: '=='\n \t {\n \t string_literal30=(Token)match(input,40,FOLLOW_40_in_relation378); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t string_literal30_tree = (CommonTree)adaptor.create(string_literal30);\n \t root_0 = (CommonTree)adaptor.becomeRoot(string_literal30_tree, root_0);\n \t }\n\n \t }\n \t break;\n \t case 2 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:20: '!='\n \t {\n \t string_literal31=(Token)match(input,41,FOLLOW_41_in_relation383); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t string_literal31_tree = (CommonTree)adaptor.create(string_literal31);\n \t root_0 = (CommonTree)adaptor.becomeRoot(string_literal31_tree, root_0);\n \t }\n\n \t }\n \t break;\n \t case 3 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:28: '<'\n \t {\n \t char_literal32=(Token)match(input,42,FOLLOW_42_in_relation388); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t char_literal32_tree = (CommonTree)adaptor.create(char_literal32);\n \t root_0 = (CommonTree)adaptor.becomeRoot(char_literal32_tree, root_0);\n \t }\n\n \t }\n \t break;\n \t case 4 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:35: '<='\n \t {\n \t string_literal33=(Token)match(input,43,FOLLOW_43_in_relation393); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t string_literal33_tree = (CommonTree)adaptor.create(string_literal33);\n \t root_0 = (CommonTree)adaptor.becomeRoot(string_literal33_tree, root_0);\n \t }\n\n \t }\n \t break;\n \t case 5 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:43: '>='\n \t {\n \t string_literal34=(Token)match(input,44,FOLLOW_44_in_relation398); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t string_literal34_tree = (CommonTree)adaptor.create(string_literal34);\n \t root_0 = (CommonTree)adaptor.becomeRoot(string_literal34_tree, root_0);\n \t }\n\n \t }\n \t break;\n \t case 6 :\n \t // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:76:51: '>'\n \t {\n \t char_literal35=(Token)match(input,45,FOLLOW_45_in_relation403); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t char_literal35_tree = (CommonTree)adaptor.create(char_literal35);\n \t root_0 = (CommonTree)adaptor.becomeRoot(char_literal35_tree, root_0);\n \t }\n\n \t }\n \t break;\n\n \t }\n\n \t pushFollow(FOLLOW_add_in_relation407);\n \t add36=add();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) adaptor.addChild(root_0, add36.getTree());\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop15;\n }\n } while (true);\n\n\n }\n\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }",
"public String getRelationType()\n {\n String relationType = \"PSX\";\n Iterator i = m_keyNames.iterator();\n while (i.hasNext())\n {\n relationType += i.next().toString();\n }\n relationType += \"Relation\";\n\n return relationType;\n }",
"public void displayRelation() {\n System.out.print(this.name + \"(\");\n for (int i = 0; i < attributes.size(); i++) {\n System.out.print(attributes.get(i) + \":\" + domains.get(i));\n // Don't add a comma on the last key, value pair\n if (i < attributes.size() - 1)\n System.out.print(\",\");\n\n }\n System.out.print(\")\");\n System.out.print(\"\\nNumber of Tuples: \" + table.size() + \"\\n\");\n for (Tuple t : table)\n System.out.println(t);\n\n }",
"@Override\n\tpublic List<PersonRelation> getPersonRelationByrelatedPerson(\n\t\t\tPerson relatedPerson) {\n\t\treturn null;\n\t}",
"public StrColumn getPostRelRecvdCoord() {\n return delegate.getColumn(\"post_rel_recvd_coord\", DelegatingStrColumn::new);\n }",
"@Override\n\t\tpublic Relationship getSingleRelationship(RelationshipType type, Direction dir) {\n\t\t\treturn null;\n\t\t}",
"public static com.matisse.reflect.MtRelationship getGestionaRelationship(com.matisse.MtDatabase db) {\n return (com.matisse.reflect.MtRelationship)db.getCachedObject(gestionaCID);\n }",
"RelatedPerson<Person, Person> relatePerson(String person1, String person2, String relation);",
"public static void set_RelationDecl(String multiplicity, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaRelationDeclCmd, multiplicity, v);\n UmlCom.check();\n \n _rel_decl[UmlSettings.multiplicity_column(multiplicity)] = v;\n \n }",
"void addConstraintRelation(IViewRelation relation);",
"public StrColumn getCoordinateLinkage() {\n return delegate.getColumn(\"coordinate_linkage\", DelegatingStrColumn::new);\n }"
] |
[
"0.7169527",
"0.6835736",
"0.6571766",
"0.646206",
"0.64199764",
"0.6401627",
"0.62520754",
"0.5914669",
"0.5862167",
"0.5842854",
"0.57764024",
"0.5752385",
"0.57344764",
"0.56953794",
"0.569194",
"0.56724733",
"0.56284225",
"0.5613646",
"0.559387",
"0.5582803",
"0.5554476",
"0.55536044",
"0.5477509",
"0.5470605",
"0.54353863",
"0.54248685",
"0.5405811",
"0.53861105",
"0.53211176",
"0.53205854",
"0.53199667",
"0.53072494",
"0.53044456",
"0.53007877",
"0.529967",
"0.52948385",
"0.5274843",
"0.52253664",
"0.5195674",
"0.51956517",
"0.51905",
"0.51630515",
"0.51490736",
"0.5144758",
"0.512566",
"0.5122597",
"0.5075688",
"0.50672096",
"0.50553995",
"0.50290996",
"0.5017185",
"0.5009415",
"0.4995978",
"0.49916118",
"0.49844795",
"0.49824214",
"0.497699",
"0.49744004",
"0.49709338",
"0.49709338",
"0.49475744",
"0.49439573",
"0.49261823",
"0.4920409",
"0.4903132",
"0.4882228",
"0.4877404",
"0.48685578",
"0.48647338",
"0.4854339",
"0.483919",
"0.48326418",
"0.48316848",
"0.48164374",
"0.48122036",
"0.48050416",
"0.48006934",
"0.47745484",
"0.47654212",
"0.4760619",
"0.4755364",
"0.4751871",
"0.4747828",
"0.473823",
"0.47284964",
"0.4703428",
"0.4701795",
"0.47011176",
"0.4692686",
"0.4692334",
"0.46864358",
"0.46856543",
"0.46854135",
"0.46710807",
"0.46593416",
"0.4658874",
"0.4651049",
"0.46319333",
"0.46307826",
"0.46207598"
] |
0.7210842
|
0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.