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 |
|---|---|---|---|---|---|---|
Use QueryAllRevokeCertificatesRequest.newBuilder() to construct. | private QueryAllRevokeCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private QueryAllRevokeCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private QueryGetRevokeCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private QueryGetRevokeCertificatesResp... | [
"0.7825101",
"0.7635388",
"0.7176704",
"0.70519334",
"0.6613282",
"0.65090674",
"0.6358205",
"0.612886",
"0.5820199",
"0.56235135",
"0.56235135",
"0.5307184",
"0.5189811",
"0.5189811",
"0.49133298",
"0.4871489",
"0.48539492",
"0.47891518",
"0.4674495",
"0.4664866",
"0.4605926... | 0.8369529 | 0 |
.cosmos.base.query.v1beta1.PageRequest pagination = 1; | public boolean hasPagination() {
return pagination_ != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagi... | [
"0.8697597",
"0.8697597",
"0.8697597",
"0.80843174",
"0.80843174",
"0.80843174",
"0.7812574",
"0.7812574",
"0.7812574",
"0.73086333",
"0.73086333",
"0.73086333",
"0.72143817",
"0.72143817",
"0.72143817",
"0.69154894",
"0.69154894",
"0.69154894",
"0.67532545",
"0.67532545",
"0... | 0.0 | -1 |
.cosmos.base.query.v1beta1.PageRequest pagination = 1; | public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagi... | [
"0.8697597",
"0.8697597",
"0.8697597",
"0.80843174",
"0.80843174",
"0.80843174",
"0.7812574",
"0.7812574",
"0.7812574",
"0.73086333",
"0.73086333",
"0.73086333",
"0.72143817",
"0.72143817",
"0.72143817",
"0.69154894",
"0.69154894",
"0.69154894",
"0.67532545",
"0.67532545",
"0... | 0.6680123 | 26 |
.cosmos.base.query.v1beta1.PageRequest pagination = 1; | public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
return getPagination();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagi... | [
"0.8698371",
"0.8698371",
"0.8698371",
"0.80841494",
"0.80841494",
"0.80841494",
"0.7814177",
"0.7814177",
"0.7814177",
"0.7309473",
"0.7309473",
"0.7309473",
"0.69171154",
"0.69171154",
"0.69171154",
"0.6754652",
"0.6754652",
"0.6754652",
"0.6699225",
"0.6699225",
"0.6699225... | 0.72150886 | 14 |
.cosmos.base.query.v1beta1.PageRequest pagination = 1; | public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagi... | [
"0.86981446",
"0.86981446",
"0.86981446",
"0.8084251",
"0.8084251",
"0.8084251",
"0.7813481",
"0.7813481",
"0.7813481",
"0.73089916",
"0.73089916",
"0.73089916",
"0.7215433",
"0.7215433",
"0.7215433",
"0.69168335",
"0.69168335",
"0.69168335",
"0.67542696",
"0.67542696",
"0.67... | 0.0 | -1 |
.cosmos.base.query.v1beta1.PageRequest pagination = 1; | public cosmos.base.query.v1beta1.Pagination.PageRequest getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagi... | [
"0.8697597",
"0.8697597",
"0.8697597",
"0.80843174",
"0.80843174",
"0.80843174",
"0.7812574",
"0.7812574",
"0.7812574",
"0.73086333",
"0.73086333",
"0.73086333",
"0.72143817",
"0.72143817",
"0.72143817",
"0.67532545",
"0.67532545",
"0.67532545",
"0.6699193",
"0.6699193",
"0.6... | 0.69154894 | 17 |
.cosmos.base.query.v1beta1.PageRequest pagination = 1; | public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagi... | [
"0.8697597",
"0.8697597",
"0.8697597",
"0.80843174",
"0.80843174",
"0.80843174",
"0.7812574",
"0.7812574",
"0.7812574",
"0.73086333",
"0.73086333",
"0.73086333",
"0.72143817",
"0.72143817",
"0.72143817",
"0.69154894",
"0.69154894",
"0.69154894",
"0.67532545",
"0.67532545",
"0... | 0.6383382 | 30 |
.cosmos.base.query.v1beta1.PageRequest pagination = 1; | public Builder setPagination(
cosmos.base.query.v1beta1.Pagination.PageRequest.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagi... | [
"0.8698371",
"0.8698371",
"0.8698371",
"0.80841494",
"0.80841494",
"0.80841494",
"0.7814177",
"0.7814177",
"0.7814177",
"0.7309473",
"0.7309473",
"0.7309473",
"0.72150886",
"0.72150886",
"0.72150886",
"0.69171154",
"0.69171154",
"0.69171154",
"0.6754652",
"0.6754652",
"0.6754... | 0.0 | -1 |
.cosmos.base.query.v1beta1.PageRequest pagination = 1; | public Builder mergePagination(cosmos.base.query.v1beta1.Pagination.PageRequest value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
cosmos.base.query.v1beta1.Pagination.PageRequest.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagi... | [
"0.86981446",
"0.86981446",
"0.86981446",
"0.8084251",
"0.8084251",
"0.8084251",
"0.7813481",
"0.7813481",
"0.7813481",
"0.73089916",
"0.73089916",
"0.73089916",
"0.7215433",
"0.7215433",
"0.7215433",
"0.69168335",
"0.69168335",
"0.69168335",
"0.67542696",
"0.67542696",
"0.67... | 0.0 | -1 |
.cosmos.base.query.v1beta1.PageRequest pagination = 1; | public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagi... | [
"0.8697597",
"0.8697597",
"0.8697597",
"0.80843174",
"0.80843174",
"0.80843174",
"0.7812574",
"0.7812574",
"0.7812574",
"0.73086333",
"0.73086333",
"0.73086333",
"0.72143817",
"0.72143817",
"0.72143817",
"0.69154894",
"0.69154894",
"0.69154894",
"0.67532545",
"0.67532545",
"0... | 0.0 | -1 |
.cosmos.base.query.v1beta1.PageRequest pagination = 1; | public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagi... | [
"0.8697597",
"0.8697597",
"0.8697597",
"0.80843174",
"0.80843174",
"0.80843174",
"0.7812574",
"0.7812574",
"0.7812574",
"0.73086333",
"0.73086333",
"0.73086333",
"0.72143817",
"0.72143817",
"0.72143817",
"0.69154894",
"0.69154894",
"0.69154894",
"0.67532545",
"0.67532545",
"0... | 0.6326324 | 34 |
.cosmos.base.query.v1beta1.PageRequest pagination = 1; | public cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
cosmos.base.query.v1beta1.Pagination.PageRequest.getDefaultInstance() : pagination_;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagi... | [
"0.8698371",
"0.8698371",
"0.8698371",
"0.80841494",
"0.80841494",
"0.80841494",
"0.7814177",
"0.7814177",
"0.7814177",
"0.7309473",
"0.7309473",
"0.7309473",
"0.72150886",
"0.72150886",
"0.72150886",
"0.69171154",
"0.69171154",
"0.69171154",
"0.6699225",
"0.6699225",
"0.6699... | 0.6754652 | 18 |
.cosmos.base.query.v1beta1.PageRequest pagination = 1; | private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageRequest, cosmos.base.query.v1beta1.Pagination.PageRequest.Builder, cosmos.base.query.v1beta1.Pagination.PageRequestOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagi... | [
"0.86981446",
"0.86981446",
"0.86981446",
"0.8084251",
"0.8084251",
"0.8084251",
"0.7813481",
"0.7813481",
"0.7813481",
"0.73089916",
"0.73089916",
"0.73089916",
"0.7215433",
"0.7215433",
"0.7215433",
"0.69168335",
"0.69168335",
"0.69168335",
"0.67542696",
"0.67542696",
"0.67... | 0.56768125 | 97 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates>
getCertificatesList(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.55069023",
"0.5437435",
"0.... | 0.5788627 | 12 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.55069023",
"0.5437435",
"0.54... | 0.65097004 | 5 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | int getCertificatesCount(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.7316484",
"0.7316484",
"0.662939",
"0.662939",
"0.6509363",
"0.6509363",
"0.63002676",
"0.62965095",
"0.5863458",
"0.5855818",
"0.5790707",
"0.5787635",
"0.5787635",
"0.565567",
"0.56412876",
"0.56412876",
"0.5637679",
"0.55722517",
"0.5505541",
"0.5437803",
"0.5416992",
... | 0.56016695 | 17 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder>
getCertificatesOrBuilderList(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.55069023",
"0.5437435",
"0.54... | 0.56419027 | 14 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(
int index); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.521466 | 48 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | boolean hasPagination(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pa... | [
"0.84290457",
"0.84290457",
"0.84290457",
"0.80419207",
"0.80419207",
"0.80419207",
"0.7569988",
"0.7569988",
"0.7569988",
"0.69449687",
"0.69449687",
"0.69449687",
"0.6943519",
"0.6943519",
"0.6943519",
"0.6567109",
"0.6567109",
"0.6567109",
"0.65444577",
"0.6348891",
"0.634... | 0.0 | -1 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | cosmos.base.query.v1beta1.Pagination.PageResponse getPagination(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder();",
"cosmos.base.... | [
"0.8041068",
"0.8041068",
"0.8041068",
"0.7568509",
"0.7568509",
"0.7568509",
"0.6943146",
"0.6943146",
"0.6943146",
"0.6941871",
"0.6941871",
"0.6941871",
"0.65652025",
"0.65652025",
"0.65652025",
"0.6542446",
"0.63466746",
"0.63466746",
"0.63466746",
"0.6291854",
"0.6243197... | 0.8428308 | 2 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pa... | [
"0.84291315",
"0.84291315",
"0.84291315",
"0.8041769",
"0.8041769",
"0.8041769",
"0.69455814",
"0.69455814",
"0.69455814",
"0.6943291",
"0.6943291",
"0.6943291",
"0.6567632",
"0.6567632",
"0.6567632",
"0.65450776",
"0.63489413",
"0.63489413",
"0.63489413",
"0.6292963",
"0.624... | 0.7569902 | 8 |
Use QueryAllRevokeCertificatesResponse.newBuilder() to construct. | private QueryAllRevokeCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private QueryGetRevokeCertificatesResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private QueryAllRevokeCertificatesRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private QueryGetRevokeCertificatesRequ... | [
"0.7841782",
"0.78186786",
"0.7247885",
"0.7190966",
"0.67453766",
"0.6671457",
"0.66102403",
"0.61428404",
"0.6007132",
"0.57134736",
"0.55362236",
"0.55362236",
"0.5094835",
"0.5094835",
"0.5085038",
"0.495696",
"0.49534312",
"0.48860598",
"0.48682222",
"0.46923807",
"0.469... | 0.83916086 | 0 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {
return certificates_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.505434 | 80 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder>
getCertificatesOrBuilderList() {
return certificates_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.7316484",
"0.7316484",
"0.662939",
"0.662939",
"0.6509363",
"0.6509363",
"0.63002676",
"0.62965095",
"0.5863458",
"0.5855818",
"0.5790707",
"0.5787635",
"0.5787635",
"0.565567",
"0.56412876",
"0.56412876",
"0.5637679",
"0.56016695",
"0.56016695",
"0.55722517",
"0.5505541",... | 0.5416992 | 23 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public int getCertificatesCount() {
return certificates_.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.53321004 | 33 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {
return certificates_.get(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.49355292 | 100 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(
int index) {
return certificates_.get(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.5174811 | 52 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | public boolean hasPagination() {
return pagination_ != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pa... | [
"0.8428308",
"0.8428308",
"0.8428308",
"0.8041068",
"0.8041068",
"0.8041068",
"0.7568509",
"0.7568509",
"0.7568509",
"0.6943146",
"0.6943146",
"0.6943146",
"0.6941871",
"0.6941871",
"0.6941871",
"0.65652025",
"0.65652025",
"0.65652025",
"0.6542446",
"0.63466746",
"0.63466746"... | 0.0 | -1 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pa... | [
"0.84291315",
"0.84291315",
"0.84291315",
"0.8041769",
"0.8041769",
"0.8041769",
"0.7569902",
"0.7569902",
"0.7569902",
"0.69455814",
"0.69455814",
"0.69455814",
"0.6943291",
"0.6943291",
"0.6943291",
"0.6567632",
"0.6567632",
"0.6567632",
"0.65450776",
"0.63489413",
"0.63489... | 0.6058223 | 43 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
return getPagination();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pa... | [
"0.84290457",
"0.84290457",
"0.84290457",
"0.80419207",
"0.80419207",
"0.80419207",
"0.7569988",
"0.7569988",
"0.7569988",
"0.6943519",
"0.6943519",
"0.6943519",
"0.6567109",
"0.6567109",
"0.6567109",
"0.65444577",
"0.6348891",
"0.6348891",
"0.6348891",
"0.62920344",
"0.62442... | 0.69449687 | 11 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {
if (certificatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(certificates_);
} else {
return certificatesBuilder_.getMessageList();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.51292455 | 63 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public int getCertificatesCount() {
if (certificatesBuilder_ == null) {
return certificates_.size();
} else {
return certificatesBuilder_.getCount();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.7316484",
"0.7316484",
"0.662939",
"0.662939",
"0.6509363",
"0.6509363",
"0.63002676",
"0.62965095",
"0.5863458",
"0.5855818",
"0.5790707",
"0.5787635",
"0.5787635",
"0.565567",
"0.56412876",
"0.56412876",
"0.5637679",
"0.56016695",
"0.56016695",
"0.55722517",
"0.5505541",... | 0.0 | -1 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {
if (certificatesBuilder_ == null) {
return certificates_.get(index);
} else {
return certificatesBuilder_.getMessage(index);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.5112074 | 69 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public Builder setCertificates(
int index, liubaninc.m0.pki.CertificatesOuterClass.Certificates value) {
if (certificatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertificatesIsMutable();
certificates_.set(index, value);
onChanged();
} else {
certificatesBuilder_.setMessage(index, value);
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.0 | -1 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public Builder setCertificates(
int index, liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder builderForValue) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
certificates_.set(index, builderForValue.build());
onChanged();
} else {
certificatesBuilder_.setMessage(index, builderForValue.build());
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.0 | -1 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public Builder addCertificates(liubaninc.m0.pki.CertificatesOuterClass.Certificates value) {
if (certificatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertificatesIsMutable();
certificates_.add(value);
onChanged();
} else {
certificatesBuilder_.addMessage(value);
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.7316484",
"0.7316484",
"0.662939",
"0.662939",
"0.6509363",
"0.6509363",
"0.63002676",
"0.62965095",
"0.5863458",
"0.5855818",
"0.5790707",
"0.5787635",
"0.5787635",
"0.565567",
"0.56412876",
"0.56412876",
"0.5637679",
"0.56016695",
"0.56016695",
"0.55722517",
"0.5505541",... | 0.0 | -1 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public Builder addCertificates(
int index, liubaninc.m0.pki.CertificatesOuterClass.Certificates value) {
if (certificatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCertificatesIsMutable();
certificates_.add(index, value);
onChanged();
} else {
certificatesBuilder_.addMessage(index, value);
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.0 | -1 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public Builder addCertificates(
liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder builderForValue) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
certificates_.add(builderForValue.build());
onChanged();
} else {
certificatesBuilder_.addMessage(builderForValue.build());
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.0 | -1 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public Builder addCertificates(
int index, liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder builderForValue) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
certificates_.add(index, builderForValue.build());
onChanged();
} else {
certificatesBuilder_.addMessage(index, builderForValue.build());
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.0 | -1 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public Builder addAllCertificates(
java.lang.Iterable<? extends liubaninc.m0.pki.CertificatesOuterClass.Certificates> values) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, certificates_);
onChanged();
} else {
certificatesBuilder_.addAllMessages(values);
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.7316484",
"0.7316484",
"0.662939",
"0.662939",
"0.6509363",
"0.6509363",
"0.63002676",
"0.62965095",
"0.5863458",
"0.5855818",
"0.5790707",
"0.5787635",
"0.5787635",
"0.565567",
"0.56412876",
"0.56412876",
"0.5637679",
"0.56016695",
"0.56016695",
"0.55722517",
"0.5505541",... | 0.0 | -1 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public Builder clearCertificates() {
if (certificatesBuilder_ == null) {
certificates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
certificatesBuilder_.clear();
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.0 | -1 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public Builder removeCertificates(int index) {
if (certificatesBuilder_ == null) {
ensureCertificatesIsMutable();
certificates_.remove(index);
onChanged();
} else {
certificatesBuilder_.remove(index);
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.0 | -1 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder getCertificatesBuilder(
int index) {
return getCertificatesFieldBuilder().getBuilder(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.0 | -1 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(
int index) {
if (certificatesBuilder_ == null) {
return certificates_.get(index); } else {
return certificatesBuilder_.getMessageOrBuilder(index);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.7316484",
"0.7316484",
"0.662939",
"0.662939",
"0.6509363",
"0.6509363",
"0.63002676",
"0.62965095",
"0.5863458",
"0.5855818",
"0.5790707",
"0.5787635",
"0.5787635",
"0.565567",
"0.56412876",
"0.56412876",
"0.5637679",
"0.56016695",
"0.56016695",
"0.55722517",
"0.5505541",... | 0.51211953 | 66 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder>
getCertificatesOrBuilderList() {
if (certificatesBuilder_ != null) {
return certificatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(certificates_);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.5320372 | 38 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder() {
return getCertificatesFieldBuilder().addBuilder(
liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.54014355 | 25 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder addCertificatesBuilder(
int index) {
return getCertificatesFieldBuilder().addBuilder(
index, liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.73173815",
"0.73173815",
"0.6629637",
"0.6629637",
"0.65097004",
"0.65097004",
"0.63003236",
"0.6297112",
"0.58636725",
"0.5856003",
"0.57907057",
"0.5788627",
"0.5788627",
"0.5656447",
"0.56419027",
"0.56419027",
"0.56379884",
"0.56020963",
"0.56020963",
"0.5572733",
"0.5... | 0.0 | -1 |
repeated .liubaninc.m0.pki.Certificates Certificates = 1; | public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates.Builder>
getCertificatesBuilderList() {
return getCertificatesFieldBuilder().getBuilderList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getC... | [
"0.7316484",
"0.7316484",
"0.662939",
"0.662939",
"0.6509363",
"0.6509363",
"0.63002676",
"0.62965095",
"0.5863458",
"0.5855818",
"0.5790707",
"0.5787635",
"0.5787635",
"0.565567",
"0.56412876",
"0.56412876",
"0.5637679",
"0.56016695",
"0.56016695",
"0.55722517",
"0.5505541",... | 0.0 | -1 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | public boolean hasPagination() {
return paginationBuilder_ != null || pagination_ != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pa... | [
"0.84291315",
"0.84291315",
"0.84291315",
"0.8041769",
"0.8041769",
"0.8041769",
"0.7569902",
"0.7569902",
"0.7569902",
"0.69455814",
"0.69455814",
"0.69455814",
"0.6943291",
"0.6943291",
"0.6943291",
"0.6567632",
"0.6567632",
"0.6567632",
"0.65450776",
"0.63489413",
"0.63489... | 0.0 | -1 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | public cosmos.base.query.v1beta1.Pagination.PageResponse getPagination() {
if (paginationBuilder_ == null) {
return pagination_ == null ? cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
} else {
return paginationBuilder_.getMessage();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pa... | [
"0.84290457",
"0.84290457",
"0.84290457",
"0.80419207",
"0.80419207",
"0.80419207",
"0.7569988",
"0.7569988",
"0.7569988",
"0.69449687",
"0.69449687",
"0.69449687",
"0.6943519",
"0.6943519",
"0.6943519",
"0.6567109",
"0.6567109",
"0.6567109",
"0.65444577",
"0.6348891",
"0.634... | 0.622166 | 26 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | public Builder setPagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pagination_ = value;
onChanged();
} else {
paginationBuilder_.setMessage(value);
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pa... | [
"0.84290457",
"0.84290457",
"0.84290457",
"0.80419207",
"0.80419207",
"0.80419207",
"0.7569988",
"0.7569988",
"0.7569988",
"0.69449687",
"0.69449687",
"0.69449687",
"0.6943519",
"0.6943519",
"0.6943519",
"0.6567109",
"0.6567109",
"0.6567109",
"0.65444577",
"0.6348891",
"0.634... | 0.5812891 | 68 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | public Builder setPagination(
cosmos.base.query.v1beta1.Pagination.PageResponse.Builder builderForValue) {
if (paginationBuilder_ == null) {
pagination_ = builderForValue.build();
onChanged();
} else {
paginationBuilder_.setMessage(builderForValue.build());
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pa... | [
"0.8428308",
"0.8428308",
"0.8428308",
"0.8041068",
"0.8041068",
"0.8041068",
"0.7568509",
"0.7568509",
"0.7568509",
"0.6943146",
"0.6943146",
"0.6943146",
"0.6941871",
"0.6941871",
"0.6941871",
"0.65652025",
"0.65652025",
"0.65652025",
"0.6542446",
"0.63466746",
"0.63466746"... | 0.0 | -1 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | public Builder mergePagination(cosmos.base.query.v1beta1.Pagination.PageResponse value) {
if (paginationBuilder_ == null) {
if (pagination_ != null) {
pagination_ =
cosmos.base.query.v1beta1.Pagination.PageResponse.newBuilder(pagination_).mergeFrom(value).buildPartial();
} else {
pagination_ = value;
}
onChanged();
} else {
paginationBuilder_.mergeFrom(value);
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pa... | [
"0.84291315",
"0.84291315",
"0.84291315",
"0.8041769",
"0.8041769",
"0.8041769",
"0.7569902",
"0.7569902",
"0.7569902",
"0.69455814",
"0.69455814",
"0.69455814",
"0.6943291",
"0.6943291",
"0.6943291",
"0.6567632",
"0.6567632",
"0.6567632",
"0.65450776",
"0.63489413",
"0.63489... | 0.0 | -1 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | public Builder clearPagination() {
if (paginationBuilder_ == null) {
pagination_ = null;
onChanged();
} else {
pagination_ = null;
paginationBuilder_ = null;
}
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pa... | [
"0.84290457",
"0.84290457",
"0.84290457",
"0.80419207",
"0.80419207",
"0.80419207",
"0.7569988",
"0.7569988",
"0.7569988",
"0.69449687",
"0.69449687",
"0.69449687",
"0.6943519",
"0.6943519",
"0.6943519",
"0.6567109",
"0.6567109",
"0.6567109",
"0.65444577",
"0.6348891",
"0.634... | 0.0 | -1 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {
onChanged();
return getPaginationFieldBuilder().getBuilder();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pa... | [
"0.84290457",
"0.84290457",
"0.84290457",
"0.80419207",
"0.80419207",
"0.80419207",
"0.7569988",
"0.7569988",
"0.7569988",
"0.69449687",
"0.69449687",
"0.69449687",
"0.6943519",
"0.6943519",
"0.6943519",
"0.6567109",
"0.6567109",
"0.6567109",
"0.65444577",
"0.6348891",
"0.634... | 0.6109977 | 34 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | public cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder getPaginationOrBuilder() {
if (paginationBuilder_ != null) {
return paginationBuilder_.getMessageOrBuilder();
} else {
return pagination_ == null ?
cosmos.base.query.v1beta1.Pagination.PageResponse.getDefaultInstance() : pagination_;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pa... | [
"0.8428308",
"0.8428308",
"0.8428308",
"0.8041068",
"0.8041068",
"0.8041068",
"0.7568509",
"0.7568509",
"0.7568509",
"0.6943146",
"0.6943146",
"0.6943146",
"0.6941871",
"0.6941871",
"0.6941871",
"0.65652025",
"0.65652025",
"0.65652025",
"0.6542446",
"0.6291854",
"0.6243197",
... | 0.63466746 | 21 |
.cosmos.base.query.v1beta1.PageResponse pagination = 2; | private com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>
getPaginationFieldBuilder() {
if (paginationBuilder_ == null) {
paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cosmos.base.query.v1beta1.Pagination.PageResponse, cosmos.base.query.v1beta1.Pagination.PageResponse.Builder, cosmos.base.query.v1beta1.Pagination.PageResponseOrBuilder>(
getPagination(),
getParentForChildren(),
isClean());
pagination_ = null;
}
return paginationBuilder_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageResponse getPagination();",
"cosmos.base.query.v1beta1.Pagination.PageRequest getPagination();",
"cosmos.base.query.v1beta1.Pa... | [
"0.84291315",
"0.84291315",
"0.84291315",
"0.8041769",
"0.8041769",
"0.8041769",
"0.7569902",
"0.7569902",
"0.7569902",
"0.69455814",
"0.69455814",
"0.69455814",
"0.6943291",
"0.6943291",
"0.6943291",
"0.6567632",
"0.6567632",
"0.6567632",
"0.65450776",
"0.63489413",
"0.63489... | 0.0 | -1 |
Creates new form TelaPrincipal | public TelaPrincipal() {
initComponents();
con.conecta();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TelaPrincipal() {\n initComponents();\n }",
"public TelaPrincipal() {\n initComponents();\n }",
"public VentanaPrincipal() {\n initComponents();\n\n idUsuariosControlador = Fabrica.getInstance().getControladorUsuarios(null).getId();\n idProductosControlador = Fab... | [
"0.73055506",
"0.73055506",
"0.7017973",
"0.6937319",
"0.692018",
"0.691518",
"0.6835888",
"0.66097516",
"0.6599236",
"0.65808576",
"0.65483564",
"0.6540416",
"0.65035284",
"0.6471215",
"0.6349923",
"0.6336112",
"0.6237386",
"0.62290984",
"0.6224598",
"0.6178315",
"0.613788",... | 0.6967606 | 3 |
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() {
jButtonClientePrincipal = new javax.swing.JButton();
jButtonProdutoPrincipal = new javax.swing.JButton();
jButtonRelatorioPrincipal = new javax.swing.JButton();
jLabelBemVindoPrincipal = new javax.swing.JLabel();
jButtonLogoutPrincipal = new javax.swing.JButton();
jButtonFacebook = new javax.swing.JButton();
jButtonInstagram = new javax.swing.JButton();
jLabelFundoPrincipal = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
setTitle("HA Gerencia");
getContentPane().setLayout(null);
jButtonClientePrincipal.setBackground(javax.swing.UIManager.getDefaults().getColor("Nb.ScrollPane.Border.color"));
jButtonClientePrincipal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/cliente.png"))); // NOI18N
jButtonClientePrincipal.setToolTipText("Abrir Clientes");
jButtonClientePrincipal.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonClientePrincipalActionPerformed(evt);
}
});
getContentPane().add(jButtonClientePrincipal);
jButtonClientePrincipal.setBounds(20, 80, 100, 100);
jButtonProdutoPrincipal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/produto.png"))); // NOI18N
jButtonProdutoPrincipal.setToolTipText("Abrir Produtos");
jButtonProdutoPrincipal.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonProdutoPrincipalActionPerformed(evt);
}
});
getContentPane().add(jButtonProdutoPrincipal);
jButtonProdutoPrincipal.setBounds(140, 80, 100, 100);
jButtonRelatorioPrincipal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/relatorio_1.png"))); // NOI18N
jButtonRelatorioPrincipal.setToolTipText("Gerar Relatórios");
jButtonRelatorioPrincipal.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonRelatorioPrincipalActionPerformed(evt);
}
});
getContentPane().add(jButtonRelatorioPrincipal);
jButtonRelatorioPrincipal.setBounds(260, 80, 100, 100);
jLabelBemVindoPrincipal.setFont(new java.awt.Font("NanumMyeongjo", 1, 14)); // NOI18N
jLabelBemVindoPrincipal.setText("Seja Bem Vindo,");
getContentPane().add(jLabelBemVindoPrincipal);
jLabelBemVindoPrincipal.setBounds(40, 30, 120, 19);
jButtonLogoutPrincipal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/logout.png"))); // NOI18N
jButtonLogoutPrincipal.setToolTipText("Realizar Logout (Deslogar)");
jButtonLogoutPrincipal.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonLogoutPrincipalActionPerformed(evt);
}
});
getContentPane().add(jButtonLogoutPrincipal);
jButtonLogoutPrincipal.setBounds(320, 10, 40, 40);
jButtonFacebook.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/facebook.png"))); // NOI18N
jButtonFacebook.setToolTipText("Abrir Facebook");
jButtonFacebook.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonFacebookActionPerformed(evt);
}
});
getContentPane().add(jButtonFacebook);
jButtonFacebook.setBounds(270, 10, 40, 40);
jButtonInstagram.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/instagram.png"))); // NOI18N
jButtonInstagram.setToolTipText("Abrir Instagram");
jButtonInstagram.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButtonInstagramActionPerformed(evt);
}
});
getContentPane().add(jButtonInstagram);
jButtonInstagram.setBounds(220, 10, 40, 40);
jLabelFundoPrincipal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/fundo_com_degrade.jpeg"))); // NOI18N
getContentPane().add(jLabelFundoPrincipal);
jLabelFundoPrincipal.setBounds(0, 0, 440, 200);
setSize(new java.awt.Dimension(381, 225));
setLocationRelativeTo(null);
} | {
"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 ... | [
"0.7319037",
"0.7290621",
"0.7290621",
"0.7290621",
"0.7285163",
"0.72480375",
"0.72130316",
"0.7207723",
"0.7195822",
"0.7189463",
"0.7183591",
"0.71580946",
"0.7147075",
"0.70924276",
"0.70795405",
"0.7056352",
"0.6986753",
"0.6976759",
"0.6954958",
"0.69533294",
"0.6944831... | 0.0 | -1 |
Sets user identity data claim | public void setUserIdentityDataClaim(String claim, String value) {
userIdentityDataMap.put(claim, value);
if(StringUtils.isBlank(value)){
return;
} else if (UserIdentityDataStore.FAIL_LOGIN_ATTEMPTS.equalsIgnoreCase(claim)) {
setFailAttempts(Integer.parseInt(value));
} else if (UserIdentityDataStore.LAST_FAILED_LOGIN_ATTEMPT_TIME.equalsIgnoreCase(claim)) {
setLastFailAttemptTime(Long.parseLong(value));
} else if (UserIdentityDataStore.UNLOCKING_TIME.equalsIgnoreCase(claim)) {
setUnlockTime(Long.parseLong(value));
} else if (UserIdentityDataStore.ONE_TIME_PASSWORD.equalsIgnoreCase(claim)) {
setOneTimeLogin(Boolean.parseBoolean(value));
} else if (UserIdentityDataStore.PASSWORD_CHANGE_REQUIRED.equalsIgnoreCase(claim)) {
setPasswordChangeRequired(Boolean.parseBoolean(value));
} else if (UserIdentityDataStore.LAST_LOGON_TIME.equalsIgnoreCase(claim)) {
setLastLogonTime(Long.parseLong(value));
} else if (UserIdentityDataStore.ACCOUNT_LOCK.equalsIgnoreCase(claim)) {
setAccountLock(Boolean.parseBoolean(value));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUser(UserData data) {\n user = data;\n }",
"void setIdentityId(String identityId);",
"public void setUserData(Object data);",
"public void setIdUser(int value) {\n this.idUser = value;\n }",
"public void setUserid(java.lang.String value) {\n this.userid = value;\n }",... | [
"0.6597062",
"0.6489146",
"0.60645807",
"0.6020434",
"0.60021144",
"0.5888474",
"0.58779824",
"0.5861983",
"0.5859636",
"0.58199036",
"0.5817779",
"0.5789908",
"0.57860833",
"0.5745685",
"0.5719969",
"0.57179016",
"0.5713478",
"0.5713478",
"0.5713478",
"0.5713478",
"0.5705982... | 0.7684238 | 0 |
This method is invoked everytime access token changes | @Override
protected void onCurrentAccessTokenChanged(AccessToken oldAccessToken, AccessToken currentAccessToken) {
useLoginInformation(currentAccessToken);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onTokenRefresh() {\n }",
"@Override\n\t\t\tprotected void onCurrentAccessTokenChanged(\n\t\t\t\t\tAccessToken oldAccessToken,\n\t\t\t\t\tAccessToken currentAccessToken) {\n\t\t\t}",
"@Override\r\n public void onTokenRefresh() {\n App.sendToken();\r\n }",
"@Override\... | [
"0.7907417",
"0.78624594",
"0.7439313",
"0.71423644",
"0.69356275",
"0.6903415",
"0.6901548",
"0.68983406",
"0.68526465",
"0.6830712",
"0.68204767",
"0.68142796",
"0.68091834",
"0.67774945",
"0.67410207",
"0.6738097",
"0.6700435",
"0.6683111",
"0.66810215",
"0.6649108",
"0.66... | 0.74833184 | 2 |
OnCompleted is invoked once the GraphRequest is successful | @Override
public void onCompleted(JSONObject object, GraphResponse response) {
if (object != null) {
String f_name = object.optString("first_name");
String l_name = object.optString("last_name");
fb_email = object.optString("email");
String id = object.optString("id");
String image_url = "https://graph.facebook.com/" + id + "/picture?type=normal";
Log.e("Firstname", "" + f_name);
Log.e("last_name", "" + l_name);
Log.e("fb_email", "" + fb_email);
Log.e("id", "" + id);
Log.e("image_url", "" + image_url);
fb_email = object.optString("email");
fb_name = f_name + l_name;
if (fb_email.length() == 0) {
fb_email = fb_name.trim() + "@facebook.com";
}
Log.e("name", "" + fb_name);
Log.e("email", "" + fb_email);
first_name = RequestBody.create(MediaType.parse("text/plain"), "" + fb_name);
last_name = RequestBody.create(MediaType.parse("text/plain"), "" + l_name);
email = RequestBody.create(MediaType.parse("text/plain"), "" + fb_email);
type = RequestBody.create(MediaType.parse("text/plain"), "2");
mobile_number = RequestBody.create(MediaType.parse("text/plain"), "");
password = RequestBody.create(MediaType.parse("text/plain"), "");
if (image_url != null)
new DownloadTask().execute("" + image_url);
else
SignIn();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onCompleted(GraphResponse response) {\n }",
"public void onCompleted(GraphResponse response) {\n response.getRequest();\n }",
"@Override\n public void onCompleted(GraphUser user, Response response) {\n ... | [
"0.81324846",
"0.78088427",
"0.69577336",
"0.68977296",
"0.6892901",
"0.684262",
"0.67897636",
"0.6767725",
"0.6754182",
"0.6698169",
"0.6663501",
"0.6663501",
"0.6619031",
"0.65874887",
"0.6580752",
"0.6572191",
"0.6566443",
"0.65611905",
"0.6550978",
"0.6531891",
"0.6528792... | 0.65368974 | 19 |
When all async task done | protected void onPostExecute(Bitmap result) {
// Hide the progress dialog
if (result != null) {
new fileFromBitmap(result, getApplicationContext()).execute();
} else {
// Notify user that an error occurred while downloading image
Toast.makeText(LoginActivity.this, "Error", Toast.LENGTH_SHORT).show();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void allFinished() {\n\t}",
"public void notifyAsyncTaskDone();",
"@Override\r\n public void tasksFinished()\r\n {\n }",
"void done(boolean allSucceeded);",
"public void done() {\n try {\n C1000c.this.mo5101e(get());\n } catch (In... | [
"0.71484953",
"0.70334476",
"0.69744104",
"0.6969685",
"0.6757522",
"0.6690452",
"0.6633511",
"0.66321313",
"0.6613489",
"0.66021645",
"0.65878654",
"0.6519981",
"0.65199566",
"0.6443947",
"0.63659596",
"0.63210976",
"0.6318691",
"0.6301395",
"0.6300012",
"0.62855136",
"0.626... | 0.0 | -1 |
private final RobotObject[] existingRobots; | public Simulation(SimConfig config, RobotFactory robotFactory, ResourceFactory resourceFactory, boolean isNovelty) {
super(config.getSimulationSeed());
this.config = config;
this.robotFactory = robotFactory;
this.resourceFactory = resourceFactory;
Settings.velocityThreshold = VELOCITY_THRESHOLD;
this.performingNovelty = isNovelty;
schemaConfigNum = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Robot> getRobots();",
"public List<Robot> getRobotsAlive() {\r\n\t\tList<Robot> listOfAlive = new ArrayList<Robot>();\r\n\r\n\t\tfor(int x = 0; x < 3; ++x) {\r\n\t\t\tif (robots.get(x).isAlive()) {\r\n\t\t\t\tlistOfAlive.add(robots.get(x));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn listOfAlive;\r\n\t}",
... | [
"0.71609306",
"0.63581246",
"0.6209088",
"0.6166317",
"0.6138498",
"0.6012549",
"0.57765067",
"0.5742045",
"0.57090974",
"0.56078804",
"0.5593196",
"0.5561474",
"0.5554285",
"0.5548663",
"0.5534391",
"0.54235643",
"0.5420326",
"0.53628445",
"0.52907205",
"0.5218011",
"0.51247... | 0.0 | -1 |
Once a simulation run is finished, a behaviour characterization is then made and stored (only if novelty search is being used) | @Override
public void finish() {
super.finish();
//construction.updateConstructionZones();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void action() {\n\t\t_agj.addBehaviour(new RecibirDistritos(_agj));\n\t\t_agj.addBehaviour(new RecibirMonedas(_agj));\n\t}",
"@Override\n\tpublic void onSimulationComplete()\n\t{\n\t}",
"public void reproduceVirus() {\n\t\tOrganism newOrg;\n\t\t\n\t\tfor (int i=0; i < 1; i++) {\n\t\t\tnewOr... | [
"0.5654447",
"0.5576615",
"0.5533327",
"0.5528579",
"0.5518014",
"0.5508315",
"0.5435182",
"0.5404246",
"0.5401627",
"0.5388378",
"0.5340837",
"0.53276634",
"0.53085184",
"0.52883786",
"0.5287288",
"0.5277426",
"0.5259683",
"0.52511066",
"0.52453536",
"0.5244935",
"0.52404445... | 0.0 | -1 |
Walls are simply added to environment since they do not need updating | private void createWalls() {
int environmentWidth = config.getEnvironmentWidth();
int environmentHeight = config.getEnvironmentHeight();
// Left
Double2D pos = new Double2D(0, environmentHeight / 2.0);
Double2D v1 = new Double2D(0, -pos.y);
Double2D v2 = new Double2D(0, pos.y);
WallObject wall = new WallObject(physicsWorld, pos, v1, v2);
drawProxy.registerDrawable(wall.getPortrayal());
// Right
pos = new Double2D(environmentWidth, environmentHeight / 2.0);
wall = new WallObject(physicsWorld, pos, v1, v2);
drawProxy.registerDrawable(wall.getPortrayal());
// Top
pos = new Double2D(environmentWidth / 2.0, 0);
v1 = new Double2D(-pos.x, 0);
v2 = new Double2D(pos.x, 0);
wall = new WallObject(physicsWorld, pos, v1, v2);
drawProxy.registerDrawable(wall.getPortrayal());
// Bottom
pos = new Double2D(environmentWidth / 2.0, environmentHeight);
wall = new WallObject(physicsWorld, pos, v1, v2);
drawProxy.registerDrawable(wall.getPortrayal());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void buildWalls() {\n\t\tSystem.out.println(\"Building Glass Walls\");\t\n\t}",
"public void resetWall() {\r\n\tbustedWall = false;\r\n}",
"public void addWall(Wall w)\n {\n walls.add(w);\n }",
"public void breakWall() {\r\n\tbustedWall = true;\r\n}",
"public void build... | [
"0.66065395",
"0.6478895",
"0.6465473",
"0.64386934",
"0.6247755",
"0.62115616",
"0.618096",
"0.61319935",
"0.60395634",
"0.5987123",
"0.5963005",
"0.5958272",
"0.59401035",
"0.5938383",
"0.58450735",
"0.5839784",
"0.5785765",
"0.5755516",
"0.57400936",
"0.5724503",
"0.569857... | 0.69551617 | 0 |
Get the environment (forage area) for this simulation. | public Continuous2D getEnvironment() {
return environment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public GameEnvironment getGameEnvironment() {\r\n return this.gameE;\r\n }",
"public Environment environment()\n {\n return theEnv;\n }",
"public Environment getEnvironment()\n\t{\n\t\treturn environment;\n\t}",
"public int[][] getEnvironment() {\n return this.environment;\n ... | [
"0.73756266",
"0.7315227",
"0.71396685",
"0.7136221",
"0.6993759",
"0.6929287",
"0.67762387",
"0.6771152",
"0.67312616",
"0.6698435",
"0.66082513",
"0.65435505",
"0.6534432",
"0.6452559",
"0.6425474",
"0.6368349",
"0.62937206",
"0.6229087",
"0.62203807",
"0.61684346",
"0.6089... | 0.69975954 | 4 |
remeber that some of these might need to be changed if we use the postiteration method that josh mentioned | public NoveltyBehaviour runNovel() {
final int iterations = config.getSimulationIterations();
return noveltySimulation(iterations);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void iterator() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}",
"protected void runBeforeIteration() {}",
"@Override\n\t\tpublic void reset(int iteration) {\n\t\t\t\n\t\t}",
"protected void runAfterIteration() {}",
"@Override\n public Iterator<T> postOrden()... | [
"0.6784421",
"0.64959675",
"0.63571525",
"0.6133351",
"0.6128469",
"0.6094646",
"0.60582924",
"0.6038945",
"0.60183686",
"0.5996721",
"0.599551",
"0.593817",
"0.59298205",
"0.58282614",
"0.5789119",
"0.57532966",
"0.57470554",
"0.57455254",
"0.57251704",
"0.5722293",
"0.56575... | 0.0 | -1 |
Run the simulation for the number of iterations specified in the config. | public Behaviour runObjective() {
//System.out.println("Simulation runObjective(): running method");
final int iterations = config.getSimulationIterations();
return objectiveSimulation(iterations);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void runSimulation() throws Exception{\n\t\tsimulatable.simulate();\n\t\tprintUsage();\n\t}",
"@Override\r\n public void runSimulation(){\r\n initialize();\r\n initialRun();\r\n initialize(\"square\");\r\n initialRun();\r\n initialize(\"circle\");... | [
"0.61684954",
"0.61231935",
"0.6094721",
"0.6060888",
"0.60539126",
"0.5984138",
"0.591795",
"0.5828224",
"0.58207726",
"0.5787123",
"0.57161474",
"0.57120645",
"0.56807476",
"0.5656383",
"0.5653207",
"0.564592",
"0.5643137",
"0.56402504",
"0.56375885",
"0.5610551",
"0.559629... | 0.52907145 | 60 |
just a temp method to test another way of implementing the fitness functions | private Behaviour objectiveSimulation(int n) {
//System.out.println("Simulation: running objective simulation");
start();
double distanceTravelled = 0;
for(int i = 0; i < n; i++) {
schedule.step(this);
}
ArrayList<RobotObject> tempBots = robotFactory.getPlacedRobots();
ArrayList<ResourceObject> tempResources = resourceFactory.getPlacedResources();
construction.updateConstructionZones();
//THIS IS FOR THE OBJECTIVE FITNESS
Behaviour behaviour = new Behaviour(construction, schemaConfigNum);
finish();
return behaviour;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void fitnessFunction()\n\t{\n\t\t\n\t}",
"public abstract double evaluateFitness();",
"public double fitness()\n/* */ {\n/* 40 */ return 1.0D / (1.0D + this.distance);\n/* */ }",
"public abstract double getFitness(Genotype genotype);",
"@Override\n\tpublic double valuta_figli() {\n\t\t... | [
"0.8382437",
"0.7822615",
"0.77765226",
"0.74950165",
"0.7485335",
"0.73842734",
"0.73218346",
"0.7249843",
"0.7136252",
"0.71310663",
"0.7130051",
"0.70957404",
"0.7064646",
"0.7020995",
"0.7013751",
"0.6996269",
"0.6995501",
"0.69925773",
"0.69746083",
"0.6963915",
"0.69485... | 0.0 | -1 |
If true, this simulation will stop once all the resource objects have been collected. | public boolean isStopOnceCollected() {
return stopOnceCollected;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean drain() {\n return true;\n }",
"protected void finalize() { \n \tstopSelf(); \n }",
"public boolean isReleasable() { return isDone(); }",
"@Override\n public boolean shouldStop() {\n return this.stop;\n }",
"public void terminate() {\r\n running ... | [
"0.6102019",
"0.6053069",
"0.6014201",
"0.59254897",
"0.5907854",
"0.5907663",
"0.58906204",
"0.58610797",
"0.5857759",
"0.58549154",
"0.585119",
"0.58508676",
"0.58508676",
"0.58504176",
"0.58504176",
"0.5836293",
"0.5816552",
"0.581325",
"0.581325",
"0.5805221",
"0.5805221"... | 0.5969321 | 3 |
If set true, this simulation will stop once all the resource objects have been collected. | public void setStopOnceCollected(boolean stopOnceCollected) {
this.stopOnceCollected = stopOnceCollected;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void finalize() { \n \tstopSelf(); \n }",
"public static void stopSimulation()\r\n {\r\n stopSimulation=true;\r\n }",
"public void shutdown() {\n this.dontStop = false;\n }",
"public void stop() {\n\t\trunning = false;\n\t\tfor (ArionumHasher hasher : hashers) {\n\t\t\t... | [
"0.6099596",
"0.60183704",
"0.59438884",
"0.5936171",
"0.5936157",
"0.5896998",
"0.588101",
"0.5862132",
"0.5853739",
"0.5842774",
"0.5833219",
"0.5794619",
"0.57357657",
"0.5727431",
"0.57125884",
"0.5700961",
"0.5696364",
"0.56847775",
"0.56830645",
"0.56682074",
"0.5660574... | 0.5594118 | 28 |
Gets the progress of the simulation as a percentage | public double getProgressFraction() {
return (double) schedule.getSteps() / config.getSimulationIterations();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Double getProgressPercent();",
"public double getProgress()\n {\n return ((double)getCount() / (double)getGoal());\n }",
"public int getProgress() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return -1;\n \n int num = (int)((System.cu... | [
"0.8326026",
"0.7886769",
"0.7795625",
"0.7539038",
"0.7448075",
"0.74090344",
"0.7408894",
"0.7387889",
"0.73355275",
"0.73177683",
"0.7232377",
"0.72228134",
"0.71855515",
"0.7118313",
"0.7117646",
"0.7101796",
"0.7090791",
"0.7086106",
"0.70322555",
"0.70243895",
"0.702185... | 0.82257843 | 1 |
Get the number of steps this simulation has been run for. | public long getStepNumber() {
return schedule.getSteps();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int numberOfSteps() {\t\r\n\t\treturn steps.size();\r\n\t}",
"public long getStepCount(){\r\n\t\treturn steps;\r\n\t}",
"Integer getTotalStepCount();",
"public long getStepCount(){\n return steps;\n }",
"public int length() {\n return steps.size();\n }",
"public int getStepCoun... | [
"0.82520556",
"0.80566704",
"0.78299767",
"0.7729664",
"0.76866186",
"0.7670547",
"0.757803",
"0.7500925",
"0.74748194",
"0.7329514",
"0.7094791",
"0.7079395",
"0.69498813",
"0.685182",
"0.6848714",
"0.6823962",
"0.6758445",
"0.67517096",
"0.67508787",
"0.6686116",
"0.6666168... | 0.7600345 | 6 |
Launching the application from this main method will run the simulation in headless mode. | public static void main (String[] args) {
doLoop(Simulation.class, args);
System.exit(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void launch();",
"void launch();",
"void launch();",
"public static void main(String[] args) {\n //launch it\n launch();\n }",
"public static void main(String[] args) {\n\t\tGameEnvironment runningGame = new GameEnvironment();\n\t\trunningGame.launchStartupScreen();\n\t}",
"public static void main... | [
"0.6708385",
"0.6708385",
"0.6708385",
"0.64843297",
"0.64166576",
"0.6375776",
"0.6264648",
"0.624514",
"0.62206876",
"0.6186639",
"0.6151713",
"0.61442536",
"0.6118185",
"0.60875016",
"0.60875016",
"0.60875016",
"0.60841763",
"0.60734767",
"0.60620326",
"0.60260546",
"0.602... | 0.0 | -1 |
Method to store the average distances over n iterations | public void storeDistances(double distances, int n) {
this.averageDistancesOverRun = distances/n;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void calculateDistances() {\n for (int point = 0; point < ntree.size(); point++) {\n calculateDistances(point);\n }\n }",
"@Override\n\tvoid averageDistance() {\n\t\t\n\t}",
"public double averageEuclideanDistance() {\n\n\t\tdouble sumEuclideanDistances = 0;\n\t\tdouble nDis... | [
"0.6758652",
"0.66453445",
"0.63438135",
"0.6007671",
"0.5771581",
"0.56729054",
"0.5670915",
"0.5658761",
"0.5618804",
"0.5607566",
"0.55922514",
"0.5574505",
"0.5568698",
"0.55619127",
"0.55573624",
"0.5544962",
"0.55333567",
"0.5532629",
"0.55190736",
"0.54844993",
"0.5470... | 0.7078557 | 0 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
Bundle extras = getIntent().getExtras();
if(extras !=null) {
int Value = extras.getInt("id");
if(Value>0){
getMenuInflater().inflate(R.menu.display_contact, menu);
} else{
getMenuInflater().inflate(R.menu.main_menu, menu);
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
User cancelled the dialog | public void onClick(DialogInterface dialog, int id) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cancelDialog() {dispose();}",
"public void cancel() { Common.exitWindow(cancelBtn); }",
"@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }",
"@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t... | [
"0.84252524",
"0.81816214",
"0.81397384",
"0.80922073",
"0.7927849",
"0.79160905",
"0.78777075",
"0.78763556",
"0.7856008",
"0.7849157",
"0.7848072",
"0.7838308",
"0.7804249",
"0.77992254",
"0.7796975",
"0.7796975",
"0.77921396",
"0.7792013",
"0.77904165",
"0.77860636",
"0.77... | 0.0 | -1 |
Testing the xml file reader method which reads all the elements and nodes of a xml file | @Test
public void testGetConstraints(){
Node node = mock(Node.class);
when(xmlFileReader.getConstraints(node)).thenReturn(applicationConstraints);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testXmlReader() throws Exception {\n File file = new File(\"src/test/resources/reader/sample.xml\");\n final URL testdata = file.toURI().toURL();\n reader.parse(testdata, creator);\n assertEquals(\"Did not create expected number of nodes\", 1, creator.size());\n }",
"p... | [
"0.7697041",
"0.69405264",
"0.65793616",
"0.64702004",
"0.6370394",
"0.63493204",
"0.6330051",
"0.63297886",
"0.6269789",
"0.6264075",
"0.624798",
"0.6229431",
"0.62229854",
"0.6196601",
"0.6195147",
"0.617124",
"0.6125253",
"0.6100783",
"0.6097887",
"0.60917455",
"0.60561",
... | 0.0 | -1 |
Testing the get tag values method | @Test
public void testGetTagValues(){
Element element = mock(Element.class);
when(xmlFileReader.getTagValue("String", element)).thenReturn("String");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getTagValue();",
"String getTag();",
"java.lang.String getTag();",
"java.lang.String getTag();",
"public void testGetTagType_1_accuracy() {\n instance.setTagType(\"tagtype\");\n assertEquals(\"The type is not set properly.\", \"tagtype\", instance.getTagType());\n }",
"b... | [
"0.705664",
"0.6346305",
"0.63359344",
"0.63359344",
"0.6290836",
"0.6284009",
"0.6234679",
"0.62142795",
"0.60776037",
"0.60410714",
"0.59439695",
"0.5919081",
"0.5915688",
"0.5800201",
"0.57967657",
"0.5786231",
"0.578584",
"0.5759262",
"0.575865",
"0.57285416",
"0.57284445... | 0.65807086 | 1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_account, container, false);
// connect to the xml
SignOut =(Button)view.findViewById(R.id.signout);
EditButton =(ImageButton)view.findViewById(R.id.editButton);
Username = (TextView)view.findViewById(R.id.Username);
//get username from MySharedPreferences
String username = (String) MySharedPreferences.getuserName(getActivity());
//show the username
Username.setText("Username:" + username);
// logout function
SignOut.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
new AlertDialog.Builder(getActivity())
.setTitle("Log out")
.setMessage("Are you sure you want to Sign Out?")
// Specifying a listener allows user to take an action before dismissing the dialog.
// The dialog is automatically dismissed when a dialog button is clicked.
.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
// go to the login page
goToLogin();
}
})
// A null listener allows the button to dismiss the dialog and take no further action.
.setNegativeButton(android.R.string.no, null)
.setIcon(android.R.drawable.presence_busy)
.show();
}
});
//change password function
EditButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
goToEditPage();
}
});
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
go to the login page | public void onClick(DialogInterface dialog, int which) {
goToLogin();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}",
"@Override\n\tpublic void goToLogin() {\n\t\t\n\t}",
"public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}",
"void redirectToLogin();",
"public LoginPage goToLogin... | [
"0.845259",
"0.8065055",
"0.8025923",
"0.78314054",
"0.7642507",
"0.7641349",
"0.7592174",
"0.7568457",
"0.7533373",
"0.75247955",
"0.7521435",
"0.7431481",
"0.74214315",
"0.7322238",
"0.72641987",
"0.72561073",
"0.7244336",
"0.7203965",
"0.71681017",
"0.71615654",
"0.7139106... | 0.0 | -1 |
jump to login page | private void goToLogin()
{
Intent intent = new Intent(getActivity(), Login_Page.class);
getActivity().startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}",
"@Override\n\tpublic void goToLogin() {\n\t\t\n\t}",
"public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}",
"void redirectToLogin();",
"public void clickGoToLogin... | [
"0.8373894",
"0.8149519",
"0.7950345",
"0.79378265",
"0.76757574",
"0.7436408",
"0.74072814",
"0.73832375",
"0.7363282",
"0.7330006",
"0.7304848",
"0.73003656",
"0.72362113",
"0.7227409",
"0.72041285",
"0.71935976",
"0.71900284",
"0.714188",
"0.7083635",
"0.70492935",
"0.7016... | 0.69258475 | 28 |
jump to edit page | private void goToEditPage()
{
Intent intent = new Intent(getActivity(),EditProfilePage.class);
getActivity().startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void gotoEditProfile();",
"public void clickEdit() {\r\n\t\tEdit.click();\r\n\t}",
"public void clickEditLink() {\r\n\t\tbtn_EditLink.click();\r\n\t}",
"public String gotoeditprofile() throws IOException {\n\t\treturn \"editProfil.xhtml?faces-redirect=true\";\n\t}",
"boolean openPageInEditMode();",
"publ... | [
"0.7356847",
"0.72248375",
"0.7202459",
"0.69699806",
"0.6924662",
"0.6856052",
"0.68384737",
"0.6777302",
"0.67737126",
"0.67419046",
"0.6700383",
"0.66736764",
"0.6625263",
"0.66101044",
"0.6599521",
"0.65961146",
"0.6539277",
"0.65384763",
"0.6508989",
"0.6413899",
"0.6322... | 0.7641092 | 0 |
Anmelden des Nutzers KundenID 1000 8999, MitarbeiterID 9000 9999 | public Person anmelden(int id, String passwort) throws LoginFailedException {
if (id >= 1000 && id < 9000){
return kv.anmelden(id, passwort);
} else if (id >= 9000 && id < 10000){
return mv.anmelden(id, passwort);
} else {
throw new LoginFailedException();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String mo10312id();",
"public long getLichChiTietId();",
"public String getlbr_NFeID();",
"public String getlbr_NFeID();",
"private MAID(int maID){\n\t\t\n\t\t\n\t\tthis.id = maID;\n\t}",
"String getIdNumber();",
"public int getExtendedID()\r\n/* 50: */ {\r\n/* 51: 39 */ return 0;\r\n/* 52:... | [
"0.62301815",
"0.60323715",
"0.5966712",
"0.5966712",
"0.59173286",
"0.5902778",
"0.58344245",
"0.5817853",
"0.5806592",
"0.56993407",
"0.56577164",
"0.5637639",
"0.563262",
"0.5611617",
"0.55877227",
"0.5584762",
"0.5580618",
"0.55799294",
"0.55699044",
"0.5535122",
"0.55212... | 0.0 | -1 |
Erstellt einen neuen Kunden mit fortlaufender Kundennummer | public Kunde erstelleKunde(String firstname, String lastname, String passwort, String address_Street, String address_Zip, String address_Town, Person p) throws MaxIDsException, AccessRestrictedException{
if(istMitarbeiter(p)){
return kv.erstelleKunde(firstname, lastname, passwort, address_Street, address_Zip, address_Town, wv.erstelleWarenkorb());
} else {
throw new AccessRestrictedException(p, "\"Kunde anlegen\"");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Kunde kundenAnlegen()\n {\n Kunde kunde = Kunde.kundeAnlegen(); //TODO static\n return kundenListe.put(kunde.getKundenNummer(), kunde);\n }",
"public Farbe fuehrendesKamel();",
"void setAnzahlVerkauft(String anzahlVerkauft);",
"public void wuerfeln() {\n if (istGefängnis) {\... | [
"0.6226321",
"0.6185734",
"0.60622096",
"0.6031692",
"0.5830652",
"0.5794595",
"0.57915765",
"0.5790964",
"0.57908446",
"0.57652646",
"0.5751235",
"0.5747234",
"0.5734946",
"0.57346547",
"0.5726348",
"0.57067955",
"0.56419563",
"0.5623071",
"0.5619092",
"0.5609134",
"0.558621... | 0.0 | -1 |
Erstellt einen neuen Artikel | public Artikel erstelleArtikel(String bezeichnung, int bestand, double preis, int packungsgroesse, Person p) throws AccessRestrictedException, InvalidAmountException{
if(istMitarbeiter(p)){
Artikel art = av.erstelleArtikel(bezeichnung, bestand, preis, packungsgroesse);
//Ereignis erzeugen
ev.ereignisErstellen(p, Typ.NEU, art, bestand);
return art;
} else {
throw new AccessRestrictedException(p, "\"Artikel anlegen\"");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Artista(String nombreArtista) {\n this.nombreArtista = nombreArtista;\n }",
"public Artikel ladeArtikel() throws IOException, ClassNotFoundException {\n \n Artikel artikel = liesArtikel(ois); //liesArtikel(ois);\n \n return artikel;\n }",
"void addArt(Art art);",
"public A... | [
"0.681055",
"0.6518859",
"0.64021343",
"0.6320061",
"0.62815565",
"0.6277073",
"0.6127471",
"0.6077205",
"0.604289",
"0.59989303",
"0.5945049",
"0.5912306",
"0.5860002",
"0.5847451",
"0.58432364",
"0.5792214",
"0.5787978",
"0.5703956",
"0.56911445",
"0.56897014",
"0.5656795",... | 0.54925394 | 36 |
Leert den Warenkorb eines Kunden | public void warenkorbLeeren(Person p) throws AccessRestrictedException{
if(istKunde(p)){
Warenkorb wk = kv.gibWarenkorbVonKunde(p);
wv.leereWarenkorb(wk);
} else {
throw new AccessRestrictedException(p, "\"Warenkorb leeren\"");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this... | [
"0.6322915",
"0.62518543",
"0.6188133",
"0.61721396",
"0.61547965",
"0.60384154",
"0.5942366",
"0.59423107",
"0.59213585",
"0.58984756",
"0.5838352",
"0.58212256",
"0.57697654",
"0.57269454",
"0.57247263",
"0.571774",
"0.56921625",
"0.56809247",
"0.5673789",
"0.5640103",
"0.5... | 0.5925769 | 8 |
Warenkorb kaufen und Rechnung erstellen | public Rechnung warenkorbKaufen(Person p) throws AccessRestrictedException, InvalidAmountException{
if(istKunde(p)){
//Warenkorb des Benutzers abfragen
Warenkorb wk = kv.gibWarenkorbVonKunde(p);
//Bestand der Artikel im Warenkorb reduzieren und Gesamtpreis errechnen
int gesamt = 0;
Map<Artikel,Integer> inhalt = wk.getArtikel();
for(Map.Entry<Artikel, Integer> ent : inhalt.entrySet()){
try{
av.erhoeheBestand(ent.getKey().getArtikelnummer(), -1 * ent.getValue());
//Ereignis erstellen
ev.ereignisErstellen(p, Typ.KAUF, ent.getKey(), (int) ent.getValue());
} catch (ArticleNonexistantException anne){
}
gesamt += (ent.getValue() * ent.getKey().getPreis());
}
//Warenkorb für Rechnung erzeugen
Warenkorb temp = new Warenkorb();
temp.setArtikel(wk.getArtikel());
//Rechnung erzeugen
Rechnung re = rv.rechnungErzeugen((Kunde) p, new Date(), temp, gesamt);
//Warenkorb von Kunde leeren
wv.leereWarenkorb(wk);
//Rechnungsobjekt an C/GUI zurückgeben
return re;
} else {
throw new AccessRestrictedException(p, "\"Warenkorb bezahlen\"");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void trenneVerbindung();",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\n\tp... | [
"0.71938604",
"0.7147576",
"0.7013638",
"0.6932566",
"0.6871519",
"0.6822169",
"0.6808998",
"0.67785215",
"0.6766236",
"0.66440743",
"0.6640276",
"0.6599772",
"0.65087456",
"0.64763373",
"0.6476043",
"0.64417905",
"0.644159",
"0.64393365",
"0.6376688",
"0.63648385",
"0.631848... | 0.0 | -1 |
Schreibt die Daten der Verwaltungen in die Persistenz | public void schreibeDaten() throws IOException{
av.schreibeDaten(dateipfad + "ARTIKEL.txt");
kv.schreibeDaten(dateipfad + "KUNDEN.txt");
mv.schreibeDaten(dateipfad + "MITARBEITER.txt");
ev.schreibeDaten(dateipfad + "EREIGNISSE.txt");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void leerPersistencia();",
"@PrePersist\n\tvoid erstelltam() {\n\t\tthis.erstelltam = new GregorianCalendar();\n\t}",
"Persistencia() {\n\t}",
"@Override\n public void persist() {\n }",
"public void save() {\n super.storageSave(listPedidosAssistencia.toArray());\n }",
"@Ov... | [
"0.68822277",
"0.6755684",
"0.67457527",
"0.6610495",
"0.6609628",
"0.6543103",
"0.6523951",
"0.6521677",
"0.65008533",
"0.64436746",
"0.644339",
"0.6440436",
"0.6429687",
"0.6402648",
"0.6343256",
"0.6319406",
"0.62772864",
"0.6275045",
"0.6275045",
"0.62741184",
"0.62608194... | 0.0 | -1 |
Erlaubt die Suche nach einer Artikelnummer | public Artikel artikelSuchen(int artikelnummer, Person p) throws ArticleNonexistantException, AccessRestrictedException{
if(istMitarbeiter(p) || istKunde(p)){
return av.sucheArtikel(artikelnummer);
} else {
throw new AccessRestrictedException(p, "\"Artikel suchen (Artikelnummer)\"");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getArtikelNummer() {\r\n\t\treturn artikelNummer;\r\n\t}",
"public void bucheZugang(int artikelNr, int menge){\n int stelle = bestandOperationen(artikelNr, menge);\n getArtikel(stelle).bucheZugang(menge);\n }",
"@Override\n public int altura() {\n return altura(this.raiz);... | [
"0.59568805",
"0.58961993",
"0.58549815",
"0.58548486",
"0.57698435",
"0.5742641",
"0.5741222",
"0.5724255",
"0.568231",
"0.5677519",
"0.5626879",
"0.5624744",
"0.56224257",
"0.5612634",
"0.5590294",
"0.5582549",
"0.5555494",
"0.5554497",
"0.5552657",
"0.5542594",
"0.5534647"... | 0.5476236 | 33 |
Erlaubt die Suche nach einer Artikelbezeichnung | public Vector<Artikel> artikelSuchen(String bezeichnung, Person p) throws ArticleNonexistantException, AccessRestrictedException{
if(istMitarbeiter(p) || istKunde(p)){
return av.sucheArtikel(bezeichnung);
} else {
throw new AccessRestrictedException(p, "\"Artikel suchen (Bezeichnung)\"");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }",
"public Farbe letztesKamel();",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una str... | [
"0.62091684",
"0.6157673",
"0.61569846",
"0.6137826",
"0.59313554",
"0.5916099",
"0.58209866",
"0.5817063",
"0.5773799",
"0.575787",
"0.57500637",
"0.57386374",
"0.5708934",
"0.5662115",
"0.5640256",
"0.5566991",
"0.555254",
"0.55519015",
"0.5550473",
"0.554913",
"0.55476457"... | 0.5753792 | 10 |
/ thread safe singleton design to get database INSTANCE | public static VisitedLocationsDatabase getDatabase(final Context context) {
if (INSTANCE == null) {
synchronized (VisitedLocations.class) {
if (INSTANCE == null) {
INSTANCE = Room.databaseBuilder(context.getApplicationContext(),
VisitedLocationsDatabase.class, "word_database")
.build();
}
}
}
return INSTANCE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static synchronized Database get() {\n return instance;\n }",
"protected static Database getInstance() {\n if (instance == null) {\n instance = new Database();\n }\n return instance;\n }",
"public static Database getInstance() {\n if (database == nul... | [
"0.80620044",
"0.79256076",
"0.775959",
"0.7686095",
"0.7617348",
"0.758492",
"0.75048876",
"0.73804003",
"0.73764974",
"0.73675036",
"0.735018",
"0.7349869",
"0.7334803",
"0.7298965",
"0.72967434",
"0.72899693",
"0.7285926",
"0.72791535",
"0.72564656",
"0.72180355",
"0.72077... | 0.0 | -1 |
Add all item stats to urgot's stats. Then apply any passive or active details after. | public void computeItemStats()
{
for(Entry<String,Item> item: urgotItems.getItems().entrySet())
{
// Add every item stat value.
item.getValue().addItemStats(urgot);
}
for(Entry<String,Item> item: urgotItems.getItems().entrySet())
{
// Add passives after all stats have been added.
item.getValue().applyPassive(urgot);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void calculateTotalStats() {\n int totHp = calculateHp(baseStats.hp, ivStats.hp, evStats.hp);\n int totAtk = calculateStat(baseStats.atk, ivStats.atk, evStats.atk, natureStats.atk);\n int totDef = calculateStat(baseStats.def, ivStats.def, evStats.def, natureStats.def);\n int tot... | [
"0.6031401",
"0.59997565",
"0.58574975",
"0.5699632",
"0.56794024",
"0.56651",
"0.56467146",
"0.56372726",
"0.56303275",
"0.5602002",
"0.5596589",
"0.5595785",
"0.54865944",
"0.5477372",
"0.54600734",
"0.5418869",
"0.54045576",
"0.53964925",
"0.53881145",
"0.5362592",
"0.5299... | 0.80856895 | 0 |
Constructor for PlayerInfo class. | public PlayerInfo(int playerID, boolean AI) {
this.playerID = playerID;
this.AI = AI;
this.robots = new ArrayList<Robot>(3);
/* 0 = scout , 1 = sniper, 2 = tank */
this.robots.add(new Robot(playerID, 0));
this.robots.add(new Robot(playerID, 1));
this.robots.add(new Robot(playerID, 2));
this.curRobotType = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Player() {\t\n\t}",
"public Player(){\r\n\r\n }",
"public Player(){}",
"public Player(){}",
"public Player() {}",
"public Player() {}",
"public Player() {}",
"public Player() {}",
"public Player(){\n\n }",
"public Player() {\n this(\"\", \"\", \"\");\n }",
"Player(String ... | [
"0.7369236",
"0.72997755",
"0.727268",
"0.727268",
"0.72121423",
"0.72121423",
"0.72121423",
"0.72121423",
"0.7196539",
"0.71331364",
"0.7061794",
"0.70537776",
"0.701351",
"0.69751096",
"0.69215375",
"0.69195426",
"0.69169694",
"0.6883285",
"0.6875732",
"0.68618184",
"0.6854... | 0.62307495 | 84 |
Resets stats and refreshes all robots. | public void resetPlayerInfo() {
this.damageDealt = 0;
this.damageTaken = 0;
this.robotsDestroyed = 0;
this.tilesMoved = 0;
this.turnsSinceLastMove = 0;
this.turnsSinceLastFire = 0;
this.robots = new ArrayList<Robot>(3);
/* 0 = scout , 1 = sniper, 2 = tank */
this.robots.add(new Robot(playerID, 0));
this.robots.add(new Robot(playerID, 1));
this.robots.add(new Robot(playerID, 2));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void refreshRobots() {\r\n\t\tfor (Robot curRobot : this.robots) {\r\n\t\t\tif (curRobot.isAlive()) {\r\n\t\t\t\tcurRobot.setMovement(refSheet.getMovement(curRobot.getType()));\r\n\t\t\t\tcurRobot.setFired(false);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void resetStats() {\n }",
"public void resetStats... | [
"0.72119117",
"0.6859789",
"0.6673356",
"0.66249084",
"0.65646887",
"0.64333874",
"0.6395763",
"0.6391661",
"0.6377365",
"0.6283749",
"0.61966145",
"0.61553895",
"0.614904",
"0.6134654",
"0.61330533",
"0.60411686",
"0.5995838",
"0.59713244",
"0.5940693",
"0.5895802",
"0.58679... | 0.6099001 | 15 |
Returns the AI field. | public boolean isAI() {
return AI;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public GameField getField(){\n return this.gameField;\n }",
"String getField();",
"java.lang.String getField1080();",
"java.lang.String getField1020();",
"java.lang.String getField1016();",
"java.lang.String getField1610();",
"public final GF2nField getField()\n {\n r... | [
"0.6438621",
"0.6275569",
"0.60822225",
"0.60153204",
"0.60006756",
"0.597307",
"0.59527236",
"0.59456253",
"0.5943907",
"0.5937263",
"0.5934548",
"0.59296924",
"0.59220004",
"0.5911996",
"0.5906377",
"0.58767146",
"0.5872413",
"0.5852579",
"0.58463967",
"0.5843182",
"0.58318... | 0.0 | -1 |
Return the robot type for current robot. | public int getCurType(){
return this.curRobotType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Robot getRobot(int type) {\r\n\t\treturn this.robots.get(type);\r\n\t}",
"public Robot getRobot(String type) throws Exception {\r\n\t\tint index;\r\n\t\t\r\n\t\tswitch (type.toLowerCase()) {\r\n\t\tcase \"scout\":\r\n\t\t\tindex = 0;\r\n\t\t\tbreak;\r\n\t\tcase \"sniper\":\r\n\t\t\tindex = 1;\r\n\t\t\tbre... | [
"0.7205038",
"0.68401253",
"0.6784684",
"0.6724562",
"0.6544967",
"0.6430923",
"0.6388472",
"0.62430596",
"0.62297904",
"0.61672336",
"0.6153012",
"0.61223763",
"0.6121245",
"0.6113685",
"0.6083331",
"0.6079847",
"0.606636",
"0.60608125",
"0.6052798",
"0.6031502",
"0.5979087"... | 0.7470884 | 0 |
Specific which robot is the current robot | public void setCurType(int CurType){
this.curRobotType = CurType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Robot getRobot(Position pos);",
"public RobotID getRobot() {\n return robot;\n }",
"public Robot getRobot() {\n\t\treturn this.robot;\n\t}",
"public BasicRobot getRobot() {\n\t\treturn robot;\n\t}",
"public boolean isRobot() {\n\t\treturn isRobot;\n\t}",
"public void findRobotPosition(){\n ... | [
"0.7000983",
"0.6865797",
"0.6770721",
"0.6741502",
"0.66739607",
"0.6606127",
"0.6554188",
"0.65489423",
"0.6535376",
"0.64923996",
"0.64634305",
"0.64518476",
"0.64381343",
"0.64071333",
"0.63798296",
"0.63671994",
"0.63632673",
"0.6350682",
"0.6161433",
"0.61429554",
"0.60... | 0.0 | -1 |
Returns the robot that has the specified type for this player. | public Robot getRobot(String type) throws Exception {
int index;
switch (type.toLowerCase()) {
case "scout":
index = 0;
break;
case "sniper":
index = 1;
break;
case "tank":
index = 2;
break;
default:
throw new Exception("Unknown/Invalid robot type.");
}
return this.robots.get(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Robot getRobot(int type) {\r\n\t\treturn this.robots.get(type);\r\n\t}",
"public Robot getRobot() {\n\t\treturn this.robot;\n\t}",
"Robot getRobot(Position pos);",
"public RobotID getRobot() {\n return robot;\n }",
"public BasicRobot getRobot() {\n\t\treturn robot;\n\t}",
"public Robot g... | [
"0.8151462",
"0.6256085",
"0.6186607",
"0.6157678",
"0.6141048",
"0.60367876",
"0.5982508",
"0.59375024",
"0.54730374",
"0.5451307",
"0.5412805",
"0.5371345",
"0.5359089",
"0.52377874",
"0.52312547",
"0.518372",
"0.51501435",
"0.51132774",
"0.50798213",
"0.5079327",
"0.506485... | 0.77133924 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.